From e605de08029a49526b950cc0fbc6c83e97701f0a Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Sun, 29 Sep 2024 18:29:24 +0200 Subject: [PATCH 01/10] chore: upgrade react-admin to v5 --- ui/bun.lockb | Bin 210363 -> 0 bytes ui/package.json | 10 +- ui/yarn.lock | 2413 ++++++++++++++++++++++++++--------------------- 3 files changed, 1325 insertions(+), 1098 deletions(-) delete mode 100755 ui/bun.lockb diff --git a/ui/bun.lockb b/ui/bun.lockb deleted file mode 100755 index bd34373544726d8b387ebdc15d3c83e13b544f56..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 210363 zcmeEvc|4Wd_y0-95F(OFl%Y~YhLA*t45^F}nKB$x<|ztkk|t@UM3K_00VOGE(4biZ zrP3&xgwmkjTF$dSJ-6?@oTK~C@AbO-)#H8k-s`>A+G~%`KHRGyH#RylVyss{$XHfL zjI395h#)*FL80Drd;@}5D!!o+!JbhnF=~Q53}2>+5Ip%U$!2J8M;$9Q-LMaE*Br6G@ghyfyB9GpQre1K>t z1yBs|GblwrUjbr$XFouEBRo~SLnBxW|A5G-(1?PRxLqoh-n4cTr85S1DU|2#q#(4@ji+&sc#D2~O zMEwCF{;Y_AsK|g2-=F|L|ENhIkNRD~4z|}G5c!@EEG##NJhm?|68l?|LE0k#PGb3m zL2Q4I1ET(efM{ktD9S!FRL^wmS8BM@B})g|QfKhp^lC z5D?>02+FZNy8+Qotqi+Ai9Z)0kNx8bi1k{4V*nKZA*4yU!`OP(17g1<1ESsIlss4s z3W#Jd_R6yPU!>XkZpg9yzX*tNISPpF+5w1qo8;MXN`*Xx3i>-TG$@9}c&)%-fQh6! zKy3dFK=jMsGct5;2!kO%f^B~>lw+LZJcENE1dO{-j&`mBBJbEpw%?lp!PO*IL_}zW z3M+PxBAb^?)oYJpw+mK*pgExD733*%L~j%M4pQexXlfpTa{(iyOe z{c5hv#tDEJr)og->k!mqe?&lgAw)?<5M-1esKSm1(eoY3q3e?Rg3~zvq9B9$0QiCS z700sW9UzbGB>n6`<@-ZD#(5g#(QdUGyFI4?Q6Ed4-QIFQ?1utC^oz`QGSA6)`hC93 zgI>)wo&+Gq?bA4RyQ3n50&v2;hCKS+2!jXxsi*J`Aj+Qx#PN4Zn_Yhg z3Q_MlK&VPe*J10M>lqOe5aP#p1$mU;Kc1~OOqaosg8XX8V>=8XkM@>89_{5%VDp8k zau`S8)vs~n1m!U0lBNP;e`x@sUjdOS5iCDetUTn=kAZ-w_Xp_3`Lt1=t$!IH%ENvI z3$(YtGi0#-_x*(IABPOs^RIalyZV*DJ8IVSXm;dKU`AB0_@$VBheJ^bA8eD=5cyngF7{n#pYavZieG z1;lX?6)_I9GZ=4;+3oCr&)6@G6g~k&{xWlR`~xG|aW%7G+t&p|J3pZw{SN>f3OEB0 z`_BXr`%8nuA%M8g@KN<5Q`zm035a5Wsm_G<#j7(_A1qrP{P+!sL9 z=fh%!!FJ2I2s}~9ll|}{tG-71LsluOm+p92#-M;>S7{6MO$N6~%5SI8PhahU7 zf;`4+7o|@pn9W}ec^o&PfXG_`HZYF1q3rU(Fefp7WIg?T9d3epj4N5EcY~A2myTes z$9|z<5P3MkLmt~F0P?tAI6~Vo-wbwe9+7qb1>|wPA^U;`gbU?U0Wto<(QJ7IDxWf! zJ@3+>9R27M%Z|erC`aCVKrBxH#C{b69?s(okjL@<6>uQnGYW44Vm;Z9$i71MtFus# zevp0TFyzrrKxF6Z0fX#6yP+K8Jr7V4@b~>^4yDJFlAB7&jRQn~hmXrB*7VKg>T9&cx?}I$n z6aPSUrysKcC7`?)3`q3<{c^USPa%(fl5^J;D!-eOI|hjQNd6-5MnQfPAohP?WN3&M z==NiUM8<`9Gsro%S1P+-$+|Xw4TAwk%OrO|89)<2?1$#nY`Ndho$^pG2lX4Ez8_#< zBrDPz>?EyY&!Y+J*?a{+^e+I)5hre7$L~4tL?C}2a2TN0Mz;J;$fI71P3&BAZe`Myv-1Q6pV3W#z;K_2I~Fd&YP1)vxEO$89wn;j4z zY%grvo$EpK76xND+yf+4QzCJSG)!C1w!C(Z!M%M@Q^v`0C zBWFO&dqsG9vtSLlL6u8pv)k_vi1lPY@d=3N+>ks#5B6WwR(5=9z&{*EC4jPkir_b5 z%?@_E&jMmSS^vqpzbS_upCy18hdhwO{v8N>?6)IcH}8nA+mWX>?ZW*S1s}ipgY>=z zESuq*_UeA!;Iwlace8V zNiNkE*fG3!V1uyIu_KUSIH1>4dJJG z1%9`ad0raVN-U~=nfvmC@azFKeX1LpN4|1W9XD}Nf~roM*3>;Sd@lDAtFhkq`s>d3 z#V_Ws3qSrjsl&qN>g?9#3lGLxY?=6C$@bZI_2u~!r`(5Yfm{jcIpL&S^34Gr^E)wh1!uC~0e;P&*v z(^^P;lh4drq|LAs%UxgOIJ*C~$4BQalb4MsxOVB%{D``*2PSQ;%boecFV^e+`WzAB&+#mk9@AQzj<+NjpEvteS#JBgG+y2RW!bEJ1nTa z!^r5O$GBY$q&-5%Z!OXaP1CVm9C5)i-=#V+W}oJi>Fs%$y%X0jl054+)vmAaZt>VN z1xdz3XPDmpob>gZLZpM4#qzCv>nkQc^kW#@d^75S#Pg;SsWY-aZayzCPd{3|WOC|` zBMv_jt~)fo-m=AhY{fLW+Oh76?sBg(kE~p!F3c-7NmExX|eZ>EE9k&GH!cRru7*jfdS2K0MhZ z7db}CU&~|H*fDQ6&Z`~P@2a;-oZgC@hZ=J2<&PR(raV;LnBEq$X_18BE(OcNpHJ#s zpE#TjSFCMXU@39^*+R8xlCJknE4;m{6hB3*f9PM**Qxe0@!M+b*_^?bD( ziH^VNwD-o8mh2ZVZRYi!?vPPjSF}&m+b(Z=(-*Ht9{mNz?UQrL`MUJy@J3rVbibc7R#J&KjLyq%_o)PDF*((kSWL7*~wJCUw zCg1iGe7dnYyBl9$@ix5oK2875bGhrwPpO3|ZOFF1dEg!1jNdUp<3&pYpF zm>U04{%E|n=gy+R{!H!C*l(i-FLg4J;dQ^`Xnm^g~Cvw`kfaeVweqYPMT$@f?|0DgQA3ro@*4vu^x2`>pRI zN3-lldvgY!{9?LF)=9PYneyS$NyeVnhlF($Rh+o_nUyYZ>u@H&f$F;@a!pQED@N@6 z@Yc<{{Ox>)%sg|?eVelj_r{K%tY7lx(}F4cm21rVOTQ00eCPYJ_Eq`KvCEt?XicW!a5Q7kS^z zjIRxQ`}=-E_K#5y_1Eawys9+b>ASQl<)=-Sp5(JTGPB+!=g(@~vN74(s43C+$4F(~ zuxxYFiE+Evj+@Dh^YiqpH23be_DB2xogWMQw#xRqsn+3ZXXjlbIk6_MR>Zz?eeQ6R z0lj1y6-Tz~X?!1%T&0)3`@np=7^%9;9s1ha6*fPUsTdy@Di?Z0|59LLcFl*5g?jw= zOSH4C(%SO2m&o*9BsTc`=0P{c-`%NHw=#OlXv+z{Pw!_GE-^W!<#PVsHwCS!H|=~U zh`jG;nqgv5S(a0w7UdawFw%2aWWZSIQn}&L^)_XRhAO=s+l0kl6n_|;ThFJL#WN*w zcSy^J86qkMWo@>uW+R*g!~5|2ED#JQI7ORfl)Nlzo~4 zBc@N8=CWe^CY23x72=nUURtou*l+)c7|4ehNsDRh7wMXB)vAb~TK5JLtIcK%cf~$(wsFod9HP#q)t6W^K)nnSaD_O}W zP4a(;>>_-TmjNPDg|?CA@%?vrxj)_QXnV!Vv){3c_Y@}bFO6H4-0Eht>PO^drLnsW z&b(aem7o!H^wZ_*{(cundnC<$>MMG4`{O$Yi-zqTT)DQ-qooD=VwIi@i9d5L%K=vvF7M+ND06F@Zzq4rh$^BDH^X1#;u)MAO1OggWd9F!GU-PH1gTd41f-+o@W8CBMx2ulz!^LfRi zj&I*;wqdko{_YuC=A- z!K?mcUx`&wZj4uwdfmS+;q+~9U2(GiJQ%oHRXoY}`Jknh8D&m;p8dZ61aB#oTkBbN zR^w-pj1}*S5>aMWy@!T$lDpLt`v%)lMk0or-VB*<@AM(*ijC69_AQgof7hLKC49wz zDK8xRt{eW0oU@b%hOKwCk9*hj%D9ihlzI6_*B<8Sn|6)yIp1sAk_W?*X4K9br7S(( zcfg=+V?I95Fyqj1jMNR`Jw$nUc>1=D!p(yKujgYP#I$H%9WR zWFMXXxml&$W0!Br$UcliSqkIGd@I}E^73(TyZua;UeYJ)iWk2%a&gkKme3{sWqUO> zd79m12yW6!iC6KNzH4p2@P~9&n5YhvXVN(;vF6xYad#ZmXvjTLWGyQ{-AwxXG>Y@WI75}k#nrn zm*BU1rpm7%>ze4kj{VVFhKo!%v2w<@0X|1AOMV?7DEhJ5*xJE*`s(#%zn?olXNo>e zK7M(1W8nPcJ`=RF8|^F&8lT%W#(gZjUpuKZv0aQcr(;}I#_TEHLh{QUYPJq2ej~NC zbk5U`s)M7(^-VXg4>DCMFFxTsZ|AAj0d)sM6W5zQ*sWAGE`D`-bNrFI59boXGVfiz z-MqQru2j5Sb7=Z?(ZrN#n{D3j*gdN<-t~J>#gFMOu^z>P&Of|yqvLs_o~P#}4XZwy z>%8ZcZ`+>GxQ~^Wbt}8*f^`3mZ4IJ>7`|oa-ll~=OenQa(kox~=*rPymXiXfEcSgc z>4<~M_!oO*9#vK!F>Tw*(vyGK?pQ|7fn@ys?oaCd*$ZSse%^Vzt&hZL*6M35yTmhj z*7>HXPue*mezBNTWAM4HPOogQILvPP`8Cb6?To~IzLJVp!}LF$IefXFmOs-;V@4I< z-t$UhExvzok!U9SN#wcnwO2O2_rLc1R9Jdy>tmjW$?@sSHAB|cPU&^z=Imu5LqDCa zzCT>I^6IrWQa0|YUy47@ah&2W$8R-%ZrJE|#$^2`>wZ>DsY<{t-iXSEar>hS>YCOT zS5ySZtEZ%#+;wZv+?!*1!M(ztBp!-90Tk)N{RHOW9)#mW_>X|E2Yk5mV30CSln_}J z_@Ma*{Mo=a1U|-t$%$b~hS)y=A0_~w8!oCK{7>)!+mB^<*TZQdeAV6zhCc8`fhYhE zr~OL!vA{?F;f@LK=eXt{0lqQtvHfV9Tl+1*HwFH1;G+M;FZkGHB67#T@Oa>Zn$E&-hr2V8Eb#;}9+za62`a$>vyW(OU;mgCMCHB#G2q#C0@I!%5w@=EuQ$pnS zQ})UD!!?AHMEH$Bm`ZCu(bJs{!Z(F41?cVPHhxQh|0nG)r`boJxE(+EB^u5@b@t1=`1Nu+m&TapB03X*s zY&(1}i{A}$lt}wG0^gY8BN5}kNh17vz*hr4<~j8p^%Fin1kH}(b7Ggs5WYX~as9yd z;~9+G^>Y#&{H6dOdGNjI|NMfFT_$2b1NcUNz^?(mA@DJFIDUxUE{)UVq@dB}z{h@5 zhlk7~PWdsw$M*L$env3p@cpHy?;rDkuk#1?4+9^^Kh7Uc+m5jzaef7Svi~S@p@Z;e zL&FWhK8~NBtp5jrKNOP>$^)t zb{p_<{la`t=6@|^pY$Ek%c*@)SnzQD!M3A)Zs)%@@Nxenz7yos{yxe+^05CnO{AT* zz#m7mPs+Q~L*ztZ(Zcs15OV5PmW6Cjy`N%WeEV0e>>B{X|c9 zNbKuKvfrObp4;|^Qhee!x8r9w@NxVTes_M8dgAX3;2Zw|UlA@nu>X5%KM44^{vjXR z4r7s{MEu_ed_&+PiIm~z?h=u01im)K=k)A_x(Qznei;b&A6Uja6Dg;%{|H2G7Vr&$ zPu34IkN%NJRS^C?;N$vB^4;-BJ&~6i{A>Jk(}#r50zS?^jiM03YAq(04dWbDRi&KJc;sF+Y@J_Ag(L0U!4d5whcoar~g~ zJ>id&Wv?H|$NLLz?FR!N*Do^uP!A`GjGyDO?DHQJNTiG#eiQKN{m-cmBBvo zKBwcB=q3F1z&ED#AGh(Z1O5cce@?mR1F=774Ey}qQ~zCn??S~N_fLF};Up3JXMvCY zWB2EaS8f z34a0bXMug3_dR)kegJ%oe^2?kW7+q=J>@S1KJGs~<(~k)De$rFIEL^X&PgKi>!9o- z7t8Pr#YrN3ZMbm2^KVc6Uj%%7|3N-Id9k8ARW;Qa?;P&L9+TEeqSxVPV*eTN@%;t! z*mit}<0KLOP&ho9Q+(w8?#DmrBK&CJllLd&ay$NS1E0KqqE2qdzc_5(7(e8peQx(3 zYv9iSKKhLhx9!gbK6!s3F#$E*CL;S3_~iZxN!;2W2)}$t&d0d@_HL!|nR_7WlY-pgxQ} zx8p|<2LEK>1GO{$#4pTum5AIN;M)P8^gpM4Ncb0kkNy)|q@3jc3I8Vtmj^h1ux8qL(HgAkS#vOHX%P$7L8O0Z;IUmA` zjZ%fZL2&+LkuR_8{?D>P{9gfIUf}ve`kh<*FM*Hi5AyNhmahhb2j?H*6F+E8`P+}g z{}ABg_~VpElo5U*kd0}4PW2G}XPW=0n_IpXEFN%#{Gb2a#?Kr0#DBESt^GXUy11{Kde>^Dk*TX-9W@2>>Er3t*-12+F z;fai2)Is!cYTpR>Wd0(TTl-nSr;mSb`|m#RN&L}gZvB^r#$)`Ei?+G7KLhx9e#UkW z=mGy3@L>r4@B4Rd<2Muz&u|3mG2a&WXdhhf{M|=x?XLp9Bk=LP17pW+{6!3Z-T!dP z1vCG%;|u)RU?2S^4}9!45nC4wfBpUvr)@{&gg?ZHeSbpoc#h;G5qWpu3kt$_WVa~PtLDXfNu!)nZU>R;loKH{x1hU9Kk#N=Y&UO2>%rD z;T5>kKGtz-zrP8a&rR&m4zV8zeCUECEW@+!ApF2VBK%{(H>9@^l7U1Lg4Q*o^ zxNX1EWOn%5o3A_Y@de@kyd;pu{tc4$_kqI`#=ob0JK!4vpY%JY{Xp!m1HLiEM;+Yq?*N~S ze{7}z{@@@H`~BeM)AtYB9|Qauf55*Ce4IZ$jlZPjpYgqbkM9pXwO<1KKWV@G)W3dz z$K;^zP=xef0`STHhjWOG!|v1&{t4jY@BiVucYk=eT|Ya3Zv=d_Ed>uECyCgf1f7rP zZ_MM^=XU%j10SxSI@doL;ByLRBoY7nO#d~1kw?nA(?R5>0-v1U zy5rF634bH-@%%($$8G=J0X}*E!7(5~H`2vtV*ea$9;RR)MSH^UW5a%b>M7p__^^cZ z*nS4^|HS{gKeVrC`)BPB0sf!(e-!wC62I@jhauGC_)oF>GyCg+kLQ=3j-RK%{}caJ z?f@h=1ZpY(rk*u4J4{xsnKN>^4@bBj_umuX!xq$IzOuugwLc2@f71T) zKeR6imoK<~@WKQjdjQUb?h;wQJ%La5UpzZvbZ*gL`ABm)l6D34e&6&+7zH@tiilO)ze@xu+k5GK%_JN1n^N%tF-vZ)K+C$ob z`npO)J`(t9z(-l^LvH=g1wM{H!bjvJ5&MrRKH9}HZtV|o`Stw`^0{q43;1|{0@P01 z+{S+^@Xdgaeq;PNO{D!#fj;jt={JI?tE)u#tAS7aM|p1TR{*IpLxV;m-#?jz9F9Q`>ZYA@Fhk=nI8|u!6%x z?6(155BNxvfQOW0zNuLiJG-Qw*nbIp1FHWyoja(5@P~V{_dnAA zoa!L_7~tdlCH>B6KM?*A;QvYcUjyHa7C+(#iPJwJv9IdIwomfh@_i^i#*LdXK@C|{F_co}L=!K76CL%Z4hwVQ%ZAZm~p9p-?f26ES!&D`aEdf5RADqUW z=qCJT;A;S%_>ag*BK+Yj_W#ch^Eh@$d3QR9oDJ}C{UP^eoVJ7T3xSXRlRQCA?Z5hs z-yM(C6FY-_+3N?%lltzE$Oi%682sn7-9#_p9|S(>e~dr3^Y zADKVIzwVImU4f7Ob2{#bUc%o1d>lVy{F3_aknnE--x&BL&uI*Zyo5h{{*u^p+780E z0sdI9&j$_*!-L34BK!lu$MqZSa%vm(6aG`+WBf5s+JN=lCBh#Z@ay*{&_1{E3jn?= z&3<=wNj8^nKR z5Q70%;7KTt`@aZ&;2;rxIK?M{=z&zqO5&mc38&dJZwsYJ6mchTy zU!)H?ae~-S2mTbWk9Iljd(=<(Pl0bo@j3OK&bJC-&tKd>N2%WZV%wUD?Ju!e;>==O6O%9h~SvnXVGy?*+aw#m6#I-W3 zmjd60;v<(^zHlV_{*<(bTR#53I*EPM!EOJS0DlJMKlUBB_C=!pdjHEU-wF7}wD@y- z{@DV2+<(xnWDnYJ67%ctKT!wHVNMe1uWi6LqxsJX7i9?l8SqK`v7Foaqciuf_K9B9 z)m0*L+klVjH|aN0-W3&`)_6Ck;qDAm^~BG2z;~qC=aBxtI8UDUXZ$U| zr?;P5`!9iy?+;}Bayx#E=l^y8;FiAy_+>mTZHpHLgxm~~B0N)t+=r{V$Eq_eHulH~Cjrf6|yGlgPANch3 zmy~zK#X2Ha3Vd9@NS+|4d}iXW^#i%wjz44I_LK5|;*oM9Hz?_^>j$at4hcU2 z_~XDnwi{zl`hipaVc_f2+D~|$f4>PYruVM%2G@Lu@gU^{iT!uLH>TQ;wz(aDY776$ z=XU%=0H5A}+}bY#{^URKpJx%=2gV)~x9i_o z;FJ3=^k8$KA5&K(#Pd`7BICiIl z@IM0|*FTac$SGfQ>0kNW+7AUj&VOQ;AgA_o|B!zV`1Z8%$L;-zQu43$8-3>1|0Li~ zrrGE1uHjTYv2zaiczz*y4(b2%Q)Jm+{pXhN1N`xneNOuxZ4iGmf$v1MzbEsLKjqi` z30-e@?I89YfKSf3sN&YWFU1W%SJ@5@_@#D7rJJzt{Cj_>HyRi3r6|w&S_#u>iNf6?;|IO3b_Xp@V z^0}SAxxmNuoAm$he*ROQ`2P*~Ml}DqJ-0L z4}43oPxjB>=kY(eLhLtFe3U~S+^!$C8-CqCp>3iU^>vkq+-Be#Q2meVAMWFvB*L!- z{%jhbTmNk~{+fS1nZNnK_o3P6cKq3HV(-5=_Aq|j_TNh2YyUz2mjmAj_&D|?;URH_ zk6k7rXSeyU-@kMF{YL@t@%)SZ)|2+X2EGaKi9aG;di|@C$SbG+x_`wO#E^<#qJR5| zh$R5u9PE>R%fEDqeEeG;DJ1-Jz{mTep02<08NbetIDfcZzx^pb`hyQg&Qr1gjDx^; zr2NP6!>xVhmS6iX`p@nBjR3v{*hjmtj&Phv{3W-tWiP$dzKHeX3x^5BOgx>;uZQyfi_jkV1Humqo;Q5Wy zwxbSWKN9%3e{(u+ez%_oe2gF3#x`*31F`=A_!vL5j}Iw_k6k7rCzHi~{~+<>cK&z) zAMK+)w9l>onZU>PllT$8x^x~YiChikKdxVxxV1k#n|=Ny?dFyr4t#7svCsCR`=7-B zeZV&WKH5jyq`W%~M6Ln&WdA}AxBkm*XWK`8oO00)vF`!=8I=Ff4vrJy9|gYIAMo3O zkLy3iuP64ccl;Uu9q`HTuaG&!Nf1c;4RZdh{kgz5q>Ud=`;gdw2K5`(Px6ih!69v3wLfD5ne$COYE&tJ_)1MwExOrIV*el_O#~^jT*@#I_s3gXP8) zLYq1hCy2bslsqElO(}%F=}cWA%9~Sii0BX8$#jkdJE|NJ<>0Qq6JgEhOq?K&O(%FT zKECi^J`f)4uON6ZA)@|Zc(6~Fz=H{~A3Pi2!FqUI>g2<*v6BzSr_O|k?|!-Ppx!)q zFd-su7d(9M?1u*vB90{#L3U5&i!{;Ww(Bjwt^f9>gD1JtErY!NT7V$%8 z$Fl}ikBA>N;RnWLJfI+;F&0vY_DmsXK<>pfLv4EHm zv3wpN$|q3ei1;y)$|Is&5+K@HLX{)p$E8%Bj;Jq%s$WjkBjU#u@B`zR28jAL0HXd) z6sA+W@=c0@xqQs{qmd4M6nw4j?8vqW-&-+yg+&*HZa9D*uGSdaC>dASOgyPd)%* z(MPJBj#$(TKhTd>s{Zc~?-zv7`2XjKO%#T9j0Du6+JlJYnp7SU$DuBjN5qeM@B`&0 zQsrGC%IQ;bbi{H4s+^8kK8Y&t3Q^9Gl0(G25rxKpSTz}cP>A)WRJ|F6=2Sf*)>{B# zktJ3BcZhORsd_{lFIH3@5$mm~JR*LyrONH7azvD~r*H;Uj)?kZQsqumIU>qCQ+YaK zkqcGtO4TExyc>n?R5>EfFE6Uxn=0=LQG`Xw`%?0V_|c!r{~cmG=1}!?#PdTGRZd4N z!h26Vk1PX3ximo3vmPrcME^Hac{-xp7AVJkD;p5ozn#JzfLOni!rg$F5V3qOg$F1s z091tXdw{6#At35|1c(U{{dh{%zohD4QTQ4V{xRNA`9{n@LPUG-sPgxKsJ{ge^?jl0 zzfsshVJ{#dk4YgvAXG8>03xq1R#J$0G03C8;uQ9$>gk9@l2rXbK-4!F5cx8I@Q)!2 zKX5-#1jPE$SV$p$90NZP$HEV+SEushDAb|Kbpf%R27s6l@f<&mDz^p1b!H|Y?#JGM z=!YL5>J0$I^mmBu41{{bITQv_7))UZg`t4xM--Kh21Gk?RCyv*z5o#YSqg{=5qT@9 z`jvoKl?p%5zckEHh<>c4@`zZ!9uVJYbExvaLp*2gr|J<=&jAV#0-~M*K={WvO63cw z{BbOVgoy1arSgc#E2Hvs#G-Pl91%aBgCE%L%YbPA3Lv)o29>`FhzSwxR0CqseX5)r zM89e%9wO!+0;0XAfH>}6Q{`^}F(IN~jTAOf<%sBaGnJiZ1ksK1@6M?^heDf~v^ zcd8x{>wi$#L6sw-p3cToh>PYhZz_YNSq*c$$$3=o#E=dZ@_qPbB};bl*jS+-+cl` zgMF`n^ZCE~gwAku-Yekv`0qY}9gqL+6WDRUdj%X9^m_!X!914#cb|aK`2Xvk0sHO0 z`-IMJW0=FC599IQeF8fk^!o)o5C3pr1Fv;zmwznpq8*m~)znJ=#&yc=R(A=#ECBLp`dkH($e zFl*_s5qV9{*MkMjcNE<)9(jC)OmN-mjuj^N4<$@L+AwJTLPLv{o}=q?ek70803V57 z>`RiEuNU_}IAUa3KSxUOOS`HmNdGP3ocM}H<7`yNLo`lc5^=BPs z9{UhHqT%(mA8Wo!n;aE&?_K!%4Jaadag8B~`7=U6{chXXJ41M@b6hqTPYQjtyLYbu zYhUT%i|jR7*=EL`#lx)1w@%w~r^6^K<7S&&z``1(!QXV%ivmj)TYC%!MMN)kz0;|h zxmo$}#K51FVC=xh*Cn8$1I?E>nruQjQe7IfNzO`6=!lqtDX>Dl=6Q-0tc{1|g;n3@&K@ss6@5)GG3f8Vq z_UG3Y`6Rb7$zA2lQF+bYabGSDt#`e=D3zp4XsL;AFvVZ1h&xH4F`ReTvposX3zkBd+CZZSb=>E+_ z^x|DENldMlw3SE1``mC5$@m<)_sO?&0Ru8N$zJ!3m^%K0IiJE$fmr_^I# zZFQnb)tFP6?svAnmm8eZJYdZJE06R9#P6maWX9!Oe>6L;uf~Q?ErI$D@cUB#(~EbP zBrzRxa<7Wltv9?HwJpe_-U;6LiGYju9w#sTXtM+*>I45sKso+d?Kb2cT2{!6a zA}Zw~%<9T#%(WHci`$g>dVa=IvE&)f@ALPSmzP;jNlo8cX&TGE`(%$Z{O*7x=JVM3 z-md*Z+H`XkZr3lU8JnIyruQdxE#*~L@{Sl?8Ma^X^aq2x2j?W2<&^AD;D4h&IAVZr zmFd9e3r2mK%Njn&3ltH5>A!czoRU+1ve&MM6&sgJ6)^_u#FnU+uNB&vcr@AVe2`$D zx6Xx&mR-KMW5k{0_Upk_HWsEWLVTM`%jRm-Js+dZ5WFyrrWb$rh$QCjh&9i{vVWX> z#yfn)iP&uoTXNP6{UGnR8$4iyJ=jimkrTRX5ix?XxoefmO^(9j}1- zmu=&YF!A@hiNE+=8A;5+8;>`pXjvrIERNAz8vFR8l*I8~7JH{y@f^5n<}MQ8yLFnK zQ_H6X{T+vI8gOOVv$RK_^e?IGo?w_i^~FlRJ!8*AIa_#MNpnjdbSbSOQ<-Ng9i3j_=cn}}*id7Qju+dbiuLW;$anc8a z)v7eT_+39q%tu9I?jBwIcz*uJz02csKacP}v;4T)$Bd#cr$d=L_!WI-fBmxFyhK-H zPJ6~?`Pj!xO_P&!S?v~S{XO<*=?8tQ0Y$`L38EB`c}?`;(!%E0A=6CkYDHVu?Fe4H zQ>F4&ps#*)+2ttvHQ!@|dDHhN>+N}IF;vn2I&VyUhBU%+ z#Pl8^@Vb|(ck7(v zo7%C$dook1 zt77|Y%)VCnZN~N7m5-|yrZpySD14JJsbKF<-ikTje_9O1J%Z@PJ(MKo^PHV8a*|Ja z8R+dy9d|)ot9^FL56Oge{Z2Uu2PQ_HnJ+ZN_SBP%a53kzc?_`xy~xY8>9?|f=tn;Y zjnG@9G)xv05xr7GDIn8{hv{g)DEe{LXvzLZw(l8VenX~V1=G0if(rxH7awp<;Ol)X z{btQ7{?nq5EM_kld)(vw)y;hiL>^4GGMTrQmq(4JcL-hYBI81b8I3O$yk=*;chWGp zWMsPO>eF#o9Olhk{>GvIs4oo%uUr|kWsqxro4|je8sbM_K+)biLkQel?1=`%CY{^K86dx>nvN@yZIR`+eRX~W7cs5O{io_3ik+saG^F_?Z@Xd?fNK~T53+Q<3fKD>y)b`-XGIF-}mJ48++^T^_FgxST%UfrN%WchmYT_+gR5(MD0+x!ImlMDOVpp zy1y^4K2_POW}?xIgbfwJ=M4Dn(e%pG_2w_;&C?vbCB97Uto$*?JkjGDCt51c6iGK4 zu=CX3+iML}c%QFSmHQMa@O7WbNKZNA<+Hrs6{yEg%G__@FzG(RVTZbJ2?#Qjbu|P|0aKs4v z&vvs54PGVl8PfC)r|bO^Uo}mxAx=2&$=L7*rl|@y^G`Dh&g! zf+8{=@GLSO3yO$d{63Z>ruUJpjGyuKCt7EC50T2*#XO$h z>fZc(^C_v;@dtXJH5h%i^4^{B3F>ljQ4Mtowo(fQMtoQ?|C*@e*5{8eyvdhc4~mFh z{C<}tX7uu>LuC|4E*_R;7W6t`*Aiz%hR>X_y4Ox-JZw4J(J#}itaRS6lkO)P-#BhR zs9$mU=Z`v(l4r&PceuGGM8xsU1w}+Jz7vqdbaHcCS@EHKq~6b*!?&6@7mJFWeV)9% z%B56$dC0q~=X7oFejV$p!B9H!>GH9sNdhllr`8uu3-(R4KmE~Jbl8FEC&xebW8T>DMgNE0tNf=$y%s1$4paPDe`u`Ey!L*P z7u!X|j+eG+zCA+Ii)Sj5m|lV2A1A0LH#u*pKVv*A^}w3pBDS-KI>a43(A1K#?&j+0TOS*f@Vat>o?hbEdOW@tM{09hQDs35rM@aL*@+d2ISzy9QaC*D)QJ z(+}leuiEfwtB&5y9cw48FkBU!v%pyNQC|PAXM!1deU@3SS~jhD!`cg~LATnYH~K$| zwVPr-4-^r-xF?asT(wztC8KHEj>_1vDLO?5^i1og^xHS#978(hZ1Sz}ErQASlhci& zb|>%H`m$ZSkM##$hSr0viB@LsMrtTFrfUX)BBEEFCsC0!MGw=2cb^lH-e2FHq(hZIPd@1Jzh_n=SODz9mehP)CO*<0&- zl~3#xUCpq`E$6;gF5C2B+R|+Yuj^^co!Gk}eWj*Wq0s2r5$1mQJMYBbadf@sJr~P` z9R3^}Uaa{%d4y2W{V78ih4LPryDudB+AL9l19C^c2kXzwJM}H>@%UO9pPl9bBU`hN zpOmZ+KJ?X3)aVmUuNGZzV(^JHm&H7;ic<45g)6sQypryd(Xv~W2$mqo^5Su42XW0RnGn!7WVs_HeIjpt`%p;H}+aODE@F+ z^35%>$+1~V1Mio$uuKF7DvLiJQhr$O_{H|tnLF>zjErY34v`2jS#fywW1nyQd8sxZ z?uXO-)uHRnEWUF6a88c+`r&%(>l?>=#4c!VxVG%=IJKg-$}N1;zI;@w+8XJ!IN2op zL2;bgo)PYmiyzih`_;$T&d=?=PO+Y*cRXG1R_U!Fs~aZPCbe%}WHcq%8gXt4r7WZe!)h z9IJg>O_PERA7lov41e3KVfr}nW&LHfkf%*934^mH^JY$LZreURS@_<^b$6e==oKED zV}7i_e6N4ne0BOc3S&(YGb~APM40-Z%|o@;u4llEK*pIKQ3}Z9KcLFLp^ABOdSi1_ z694BDH-8-79=H3rk|IBE!qFvuXIz#uVO|a_h6n zcO@LNL@)mR5=l&J6N?jqepVk%dTEA8*Uj1fU7Q)Jv)@Hk@7X}t1q&WNavyNwOL@h! zqS|L_hee&Xi48WBHMDvt#VkJd&?R4P)jLo`^y(9(fXopYebh4;gKVuQ`6{_>ydHFE z8lRB*Rcis&Ya`T_{;XLo)M^;k^8S8ZYQaF!`qo7?dFT7M2yR^&Cv$G`BcTK9Wodd1 zXnOyRkHp_e|AsP}4x-nPR`zdvBzleh4P`VPM6WTej9Iz1+R!2*zxj@pPy&C|b@z9h z>PllZzFj;uVyx8)+1-MC!Y}%LlWjCNx|#F%$aqC#y_3h6CNwyIo40nhQAB=}4d^0z zP3U@4l-EeB&)y&XZP=W13LW9Q_4TUc%5P6@C=uL|vC<*EqU4pwNWtgRw!h@vc(d1L z3$0HlvvYN34dq=CzR;y{Rx*9QO{VGnH$D=7P5%vLG#x~*8Lf=D{@aCs#7SO`#V!+9 z3AWtOjTtIC|IPS)e)$7Ks?-~5_{I5c&&yWb$OlD4?^L1`kZIEId-#tm#~dp?gW~Hs7CJW~Pq|Eraa}iO?F9?5 z_6v97qrSPzNhtD5TkbWnUv7{aH17NxwP6S9MyXerw2E!TIY#v2T_s7(?1GEZl{c&R zl?N*YO&jzz(VK7CY`%kv)ialsIWN;Od0_Qz@GZZ{h^1$yi_ZU4wJ-Sgy7S44mYPdd zUY_Es>Y!2yiiqCnL@6LM$<5X5@KXg%536MpZ+m~gZ4z&=@m71|6_vS7j$73B&gM0* zEeIK_Kdbf01EJ9qSXVyse1DzQ|Bj{U$)*kKd7S9qi&)Y1R(S5e+#uBG)hEj_dqMln zdA)C#*YW&_uG#WQGDGgB;;NHY*T3v2Uz?%+e!_K83#&c+a~&rX{LFfF(0;4T@ge=5 zfiB{&HC=DA%qB0XMxiOLvn68y5sDlDx2#H>G9e z>&;<;B?{G%yEi{mvtf;|t*KNi+)LAoYY<6H6M@aXg0^9MUO2$3 z786v!GfSgUb+p&_g1lZv;ddu&DV@7LTjyKh?i7itW*5ezDl1) zH9Oyv}j-dEaS@Nvj=ZaFU=`gxUBy)Nh9~{X%{YwWbI@uejMoSXceEu z!({)hE&Du4e%}|>GY20%Rl?WesXgo1=LN~zlg*9n%1gfAPfWcUJpPK#oFRqR<}Vq1 zYrM@@ll}amk$b1Tp1tnnSjpP`P6x}6seXDia~sWH2b#bC#z)d`@ZT!MAim9q2=cK!O{$a>m4dBSF}GLkWe&dA__1kXMtk)>*@EO(rUgqj|@e$X8#EcV#6IIRE zzI4)dTUC_2E6}z>_j1~Ifrhq_L3|@dFu%IHExF+pOVjH_*K6H;VKSpk)7(IG!I8$| zWoH)01&^w`IngC7ZIikAe(hGRYW;p^3qP-ZHB)lf#Cg`3r|5R_IUZ;}#+xDNNmAbt!;`-zn_Y_QQB)+PD9XIn9&j5#zlKVd! zZVh}Av_47XY^cqg0~T4IcrJM?!@o5qahOHdtLc)Kb}9Y<&*`ITEo1Hn?-LhQP2VLI zI%d4I#5=oJf*ZD4kJP#JLd)UWizhqVs|?2cR5&c1X!Y)v>hYtCG7Ea+o<{V#(Dgd6 zt1lnrdFGgJocqyXPj?1AwQtDUxXvb}sGvS~fa2-KQ5PUnf^IuY18f%G?c`S*uHS~HU1fnrfnj3R%PtBn_V>0)hY`V5xwq2DIilY zu4Ubu<06Y!kH4t6!==COFyUUWOua8l0rlG_32+;dx`>y(FF=)Z5E zm$cxf&F8}vuj@g0;12^ZI)wfiRnDS)j+-rB} zo!*f*t!!AtzJWX)Ix%rBzRH`PoKJIEpzQL&!C6kvq@%-4P)JA9dQEv3^X!3o+hUqtAG+QYgWe6i&JyEYgA&9T!6A-sjmzz>I#1y#72LbANu;CH z0bq2lr%ctaCIht-7X{n}d-87~^WO9>E7)>vWu6NW^K8<(V(l-U??RI%q zmU1}Fb;G_&)d{0lTjV_QIH?g`X*g2uV{lc{J=wFX3$t(CVBm;2}EZWR@_ z%%JJ@rR#O^Zi{TSb@6CDR-%53H6zgFm2>>8vN=B|G!*%N6N^Z?RFeGdxlOTmxl3O2 z2iwY)iv4jl{s7NT^*HW8Fe~-m8AW6)mw0Y7eP8?VzJ|=aI(V@+E>x?A=-{0A0 z?-aUUPk|?Pe_M`r?rY~49YvFmY>^%EYV4kqu?*|B*j0-k@Lw6NHhm)~BICiICre$+umL@y#aK+6H3Ou5n0IZ(mNqV)4AoMaMP?U)vZC+pK{&Ciwtvb z_`3Yz*HJ4rX~b_EZ5Q}JFNjh4eo)Y~EXflCK0Dkl@D@Kr(;G>E6S69 z?E5yJrgsiq@79Iq`ewKXY+u$M+gqgK{Jphr8<|&*FmA`m-1VAd(_!^>Wc7~y=?^EZ zIqhy+I>zUx+46)v=GPSTX2yz+?=>M%|Nqf;mr+$U@8j?V4k?`?-Q6wS-Cfck-6);X z-Jovyo;D-Dj@6A!1It`LY(xvhGWU5Tk*Qz@G=5Sx_Y2XO6y?uv@30c#2>vulmR zM{||Y-v}ZL@h`(VN^o0x{ys^4iEzJ1g4c#mApLS_~&^RZWjaB~#B+(W*BdLw?D!kyUV5Izn!+F7a1S?dNU7TyuE z&iN%h+hH8LL!pBJ*BR*ME@Ef6wEDoB`h^hkAH?DR;?P17NMD=V{*mWSFm+V%t?Z}p zbls0d0?R$mvr!Evh*A1&-NPeRR_*(i$qt4Ifa?Nu=~&(X zG%xUjbz;{41QQq|XwBaRRqv8lr|%r7hV-D5{mYDFD|E=(ft((x`0{r|LPg`rE;eU*YL}4TLz|K^i(~xb=AdvE=k9tptM0 zJRNdHx-df>jU3rNa}F-#d(TA3i$<3lbZ~%soV9= zJJC40vXNUfst4Wj5zZHlwzmex5|_H6Nh}f4?{ie^aN4-Tq|i<+`&o_~p4J?|$HUVc zj`k5qYKX0>p3uh0d~CsW1wCVhk@5y zw{g_IIXRy1YG-F~a{0@X18sELXR5_S>8?rnsOC6v-MMGBuh|J85|ulgvL_VAlue?vF`wT4iF9F#L+OL1-#2FWFqoD2drzJeLmLM!@chc|dH>br3Re z7UwOF&8;b&sLo&O3K_;>DAAoLmHBxK+-L9wxX;lA=j#W+KrMFhEri8}QuYCKxa?}? zVie>|{I1T;+t<^>iZneXBZab>?hstQ)iz1nwg_fvGh%rd!?9!jpo=$$Cc&{pPiq5U z*B{_MM;Gh{05A~iY@6>dOY#|JoCpog(UA)FeH<;^h|OE<5+{f`#)=X>EF&c?{Wi`Q zAu_Ml;oCzo(RcoSOY4w#bP~h-of7{Qknhu+6&xTD4wLUweT`9k%%Oh86qh+7<^J+P z#Spc%Cfo6LuZ4rxK5d9;Nn)>3b#uJAZ0gcZs~{WrI#|$?qJLi8)l><3E@Ag# zl<<{%V-bj_5LfUh4fCM1Wd5?kc@^ipa|K+V3<0{rN0{}?Raie6uwWsNh--`&4UBA5 zis8b4{RrG;{(iK$Q1~4J^31VlVdOP(@Eu7ng&)T0=-lWDBckEU>M7mVj}|!JP=Na! zU9cPW92md=yWxPb=jejnr@eY`fC}1&jLr7y;90+*Ii93Ok?BfcPQqa#9mdM{l=(A4 zX^QVaY(MO-n3qAmN-k+k99XsChx#4qSQxGKut ztGEVmV}b7VMw$Kad^!Fo_2Mmuw_Ge?m3>uV=b49<8DnxbXulV=OGhkaqcf~Z)po2t zxxZWRt9C!#WR_1S5yel}v!fA!8wYToqYJKYJOBfk1g724nORMGy@+X{Nf~Hrvnwz4 zEZM6&!ET&v$6LTB?1-hNC`lNlJLV_4LiwHV5*sW~b$`s8kB_T0BdmD_$TtD#p31MJ z)e)4z8vG7(tnhh3Me_J}RjWM4Q@75_%L!|2{`g=cA<7EelYJiX+UBs7P7G5eXNdJW z*25z0Jw=jcUP5YU-Ec0`?y!n3~8F92+l0t!wb7{XVo__p@(Y70BDoW5AcsG_b|2pe~;1Hf#J+El_Ha z`1K(j;6AO%fCJ=T#d`i=*S{6v7N6mUuO%WUkKB0Jbo~db6=}NUmnnXggS51zrxA`i zNei{NTzwcwc!_hy!k!L$KRU6jBMG=Z`Sfpq162H=;9rEaYb}s6u!xNLQGB0=z*?3* zQx&&g&GsyHFb*S@yjZQ z0p?J?nYF=zJH50^?=M>qsh`5q^K@MK>AUPN0q)aY1~@>1x(s6_^ax+?s?CjxzDJt8 zun_4vgs{ei@ZrvJmT&peQw;SvN6$PewK#atLA0)v)@^L9A>U=Ttywb}Wi)&15d!D? zRBLd6R61mqg$%Dp+A{m_l03CPL9F^SRHc23rL!#!SS*o;dc)>=O=R#{xO1iyq_sq? z&d?)`k;_!fPCbH0MWPda_XvUAEHL`mf+F#Qs-0e4tr8&cOlTYiE$$c%v(?6-koZgX zbVdl+ArB{dUzm;9@vg&;YL^L%W)tTIqNv%*+Hwd^*h5@5>I2+tp!=5@sVFBVdr)f_ z)^;VHOl`3O%=e-sk$$7lzpUSaz{#Ql#ire?glQkK9S=)VN0OCzE)hR)`|??mvhOk?o-NHb(^u%y%=*F!zU+F-`>G1cE*byFo)cG?^2hGVO1PD=ULa||?bmnv8nHt}aqxqnIt!*wKP8t&I-H*i?vPvxAY5_ezpBxq9V9O0zf=BCw$2+c|b>@IcNm@cvc?Mju;HZD&-b zF_heEsPQa2s`z46x zG@6~rF*XPEya-t4R&BSh4=rB?6-(Z=bm+F@#Y=zW*+B>7TM2Yu9#+WdOOy(yx_93H zVsN0~+9JwEdG!*{zP3Xf>9<-WG2SusmlYy3)o|<=&}EU~%LjRrQj;hjQU6X#6Zq~) z1Kg)Id~kpg@MRK@p{(=t{umoy=Nt0Z`q_cDr9}p>Pq;Y5_e}dusW5j8V;lmLRjnDy zu^Y9;jYhR*+t7ZJIHcT8S-)d>gur#E2BXi^g559A7FLlKLo}k#z0X%s&}AcL z-BrVWkfPgBX)wyH9n#ooySDK*k>12i9UPYYBmM}1-Fh(kOfA@L0C=FvcqcB~1{z}~ z{H*Rx*KzYZ+?4arPB~-8yRPxck#d5|^yH592BZePY;2soUo`9rShyQ92xT2 z4a{}{`8ERF=jej-ZF&w2V1V7HwW;R}u-gnkK??&}hQ;TJEsHEvx2C~jcLr(SnEd?& zvSum?k1DG7XQ}eD=|Eg%xZ!eZxvz}+HsdCSS=rXlkdrWp1QtmPfb*ztK$mj`BrTfA z`c+DAvzLzf+AiT>X_{dfZ;fM8N_6$DqO`nyK#Mlv8GQC}@S5RQh7`QjyaY04US6a> zX$+(mtMrc+INuh4`y5@c+xi?BzyP~#fU)Q3g59UJc5r}vE$n&4)wVYC_HnVvt(Jm0 zPnqGmi?XJuuifk4Xpp>x$9I#NIdZg7v-Q0pg)&W+-{*JC-q4tSHEaZDgV{9t2!Y)W zF#6bn`ofu@*l^b7p^wAdkIw?MGHqH(53DFhyItThzxwmk9U!zK`l{p#giEkZ7-Ms% zf+&|QD?Wx4?z$uUaj5nE1i0S;?sIg(`E~*@Pz2^VQ)2Ji4w?Z96vL9_8za~P*QNE) zMz+mM&y6rlh`GGvLM*IiD$(fe(LvRYw`<=jUJ?W|jT-$h^w6gX2d@8i0o>>4g7f|H z92md=yWN1X=jejnp69>-2H5QdjDdv63X)-@>kFvQ-=#u#c7Eh|jX&Fu<2+ldZtNn^ z(Mdu!Ex|&wj^Q-k;mM3llq@6WO*|Wll9gKx8-Q^_ZuxXg0K0tv_c^*?xBodXfB|*~ z0AtV51-nms$$u_vxAm4$ynkA5C^eQZ=#k zu+t0pEvcoqggYZiJd7!_$VJ$li4m95$fP_=-;LX*$hdUlryw)$7r$0rPv9?}P$Q}q zZ#*3XV0R3RK2r;J$DhdqGhlZDJn&2{*qwYP56pnwDe%BEwP1JpnLIE9c4xo?&(wn5 z*=O>=4A}hz9(bk}?9M%t2WG(T(=!0i8DMweInhT8>^`j_fdiBorlg;B$+R(gCtMJB z9@@-t2P&87H09?JpnS9B)Xqdor}e%w{|7mB-jE@Z9C5+9Yo1Az$v0xE*@~aj=z|K6 z5ZGM;qtDcW-DQ9WvN!9&gwWSc${tU(g)r_#P~_S|(zJ5FCtF#0@0h$f!V*SIT6Ev@T&A_&Ih3=q8{4mBND?%j`jcuMAr*RCUKz!^cpU zSlVZR-Ly%62dl*6(O@jA3ZG&I(Itb!@25r-VfS*T#m2p{RDj=blS7Bw#yx|qOAKSi+3pd7Z(vL2D+5Jg2Jn}NXg4m_$r7n zVrFaV`mJ61wgC4xz$8PyZ)T$qXl-K);PccqA^Z)T&bpkX1{da%FWEq z3W+9EaIwLA(0tWjXF}9zY`ehUN}2G1C?vO`h`aX?Lz!^f{?wXk>t=`rRTJz@ka)5mO zDfhulSH<-QBZ}zv+;>qztRR5933RQ(`9?-tKdcFu@_M#KWnK@(`JL>4V*W_kTZcR; z!J%g2Mea=N>&X$*jf;FCPl)*VC8OvYr9TlY6=wk~~j=7w&E)3vksnUsrJEWKd8Sag3dShuwV7p;h)*<%LR~dF)=!ELE zLg@Q%_Yo=~(G_Hc#RpaI<<@!JLTpPcjtjUx;bEM#Q}CRue~i$@6TKCShD z1C)s2Jyh$P4SRhOb;{vJ=R)Ti`+!|Tl63mhTY)yL({tnOd;B5AZ;}KWWEY`m$cHH))2@G(aA5q#hT4E6(7i z!|`VIoPVhsz0R548doCQx{Cu{G=u5XWF3N^ljSxZ@p z_Aj?4rOeqs%@h5+{%=!SLwFsfzr zA+yuINgryAy2Oy?eH-jKitOmhW6Ipn(j1g*!fJ!`SBLSBg}cG^C8PIi{FckxwW!~f z*l7MXioku-6QC<|trLR|LSTePlIUUBJml!7B-`Xvw~SfyD8gVm^Pp!FmwoMnEUHe5 zEz9|Kb+HP|+wR;&R4_UjPTiN^RTvkL?H0#o?|WY~AF5#0 z*iAw+dKo`ai5NEetk99&F6MELLOzvN@TA@axBTUaXXqGTK6H&Bz&!)H0}yG9JSkqs zYgb7*TP=7meg3RDllbyFdQ5jC1Y@w7nZ$mi`S1aq)8{7{g?LN@>XfB7d<##_YYMf5 zQ=Ov*;JW=^pbO#J{SMNrf8(U=4HE3k!Cc%{-qp0ho_12cL(T@~4;g>n4U^y2pmlry zAVag1Us|YTcLZ1Tn|Mi$VwyRzHjWkL_i@`pf zQwkU2%;<37vdxvt4^Z~DxF?d==enrtQzVB5?$$&uV++c$*?|7cWL(c48n=)9 z&gN5PLpg&x7S@InbN&qK&7r0^3ZV&=e5Dr%Rl%FEjvzDj7dO=yZs2V)?I)@;tYAri z`}E8LI6$;Ay1_UmT~@KRCJl&Y_a}A=8aenjM3Q272Zp1T0Zl)!9=|(`BAe!HCI?Nn z%48ZaR#VoKS-KpE`%AmnS z&*ok3hHV`T_&Tg!LZ?B7yfu<98Bn(@$#eZJ7#(D~wQ7IVRV9`rx*O9rvh66_ zL;4!XqX6z5&~+!bEaXBVDN`oys8=nZ@_WF+8oFhH4i=twWnos@oAyip+vRiWX!kd1 znV@EiN=&&gK&GP?2}bv0u>Uax_0wkxa2@V}uH(*^oK3Zgo|=#bUNfI4*M_bkQ-uf$ zVLwKcN>bGz^mw(uMW2;_K}z;btEe7BnDRng7Oyu*rJ=9A+WcVZ50Zm3Y1T8$%=x{XDaW_OYV3tj(1h9Xe|-q&li+#9{&YjZLczm0!-xCP&^vAyd>D>Q>Vdz7-9^>KXlX{^l+nDql>wKqM zzd3tEeqXM|gp6bHN95k6ean(3I@+#L0#kj=ZW6pRq9@B&)er%zD`Ff@_ z8PPEc|Gjj^VGTr?ggXHVmg5n(mwS4$@c+zZ`63H#UFSimKviFivSSO^yb%>EGiAw3 zmi<8HY?ve*{j`Sq=?~I9R8WK9yFB;_5x@n7Y`b7+|DtsXqhZU<7Qjm;aTdaA; zJgp5pa*$6h_(2hPN$#om43byW7ut?TZ`qi@X&ciRsn05D+`>S#D8qLw7)M) z7%O@q#kC4WNQLo;(>qDVU|eAS=l;tV9_YSLcx&mVN0@~&9Qjqlb!t&9W0wE?IQjnX z811^_8++t7u8}acW0rE{=-sZE&fv}ZTIuo6odv?$3Qp z7YXP-B=^R47d>8nX}ciWr!?LWwlpl=uHz-P zH}fNp7<1rhD~_1)Jui9Mb9?0Ao=&)@_bY<~)BqjFcN6<%aV!hJB zNyLasu)EC+^CcLa+3=KUatyL#w=dr?Emo-L6e$_gbqxdIdzM2cdoX=igKtw9B{x#OE_a(DLsX9>6}e4#+Ov4N{yw>AK-V5qQa24&)t61y zQc>=-<{SCO6;ozT?PLa+$l~Em)%>$VdE3nZc`kk{he?|KhH8P*d6V~5_CNRE?@C|+^DS`wTv0AJz9%HREB_Os9i*QyP!hr`|G`4x zOr_H&Uw8H^X6aGREwWijM*Y%w915cAFHJ{1h#J#yR`={NDqVn!4Rq@#yhN%MitSdubEc5E@qusrr z^9yP%E}vPP8sLkO{4?<9FDwar5C78~670SLy04?We~cuYe+uBS+z;FL6&H-d9E0gHQA2tKS2!Ghb0})vA0N z0ZmrxVGMHd%F(!yJNFYg-z7`4s$#eM>~L?~6^xs)2qRztTzsHQ$y_{;?h{$^w_yw# z1K-HwXZVLt-Xo~QkQZOE9DjH7b|cwey_04zm_G1Aj}XToP;D4)h+lTFZe1Z*a1k;5 zcfa^|{1O1%=O{3^4uk*~bX9lW zHsxf_QecN1m0_-BIj8DM2+cnP^>?qPT%#o_4WJH0K=-X?V$P^thuKb)4UVPQFG!mq z2MzbrEL14#!(Mf|O?3PStUkfRm!FkZB+}HDWy^PFO5JqHv2NNd4-gI~iah}?G0<(3 zgc7LJ&Qrr>_DJK!OZc)6>8hnF-6ehV zseb!YlC-k~^fOOuhu}Jp0Ntt3yeqyFd(ZNdfNT@c$g(e98WgTylU5qH6Y7 z!Ze2D<6viD?o$62;d2j5O2=dJRUhDUztA0(Whcj zw2dyg6dEcNxK2v}bbpqbl(?w3HLxOd|E&f2>a*6hRwjvvA#QcO+q+Iatagfodk2Ba zhju+WxgO<2I3t$rIP||0n7RzgY;jXs?p+t$c$6 z?=M^&_)DGr2PbOt;CDk<+tKp;idl*RsF_`Eh5UKc^Aw?(_yI00zL{;ob!JF@tRlD$j6fHCygK_J{|D)v)`4SqYKVNA$`I~1t-9;^ zx}BFdN#cvJv{o$~UYT~zT0h=EM6@s*uTNLV4Cs+1z0+y!)h4zAxJ*D76633|B-x3! zwT&%**gHj4L$`?l*B<93rhe2k9XgqzHW}`}HHyS!)Eu z%Y}v*4I05(-wJFmgQka5y7JoNlhQ>*f1~Q7cp4pZt)HL2uC5hGbB#7fGxbk-y!aGV zfvi`z|9`({{`4MHaDWa+NA>v~5^K8r`MPSqk(JFlkIK%V>}}q(u;xoPdAqP6SeTa_ zm!qDsq!Y&rMa@O3dr#G?)STLuCmQRP^kf3^We2)eib{ityivjDy0Cw3QQV*LD>Y%&^{xeAw>(E8m+KY`y{4Q#pWc=()`H z2AMsk-O|d3JM;JG-{F|!ah}`W7>uYEig_U97_=g)M66W+f1E>r}!3aI_0t$GX^|_ zUN6nu|MC?MZY}|TU}TvlylIu>sHWoE(-(hA9DlU3T^tf z{$coW-(0lMyRT5X$hBrcJfO%W%*Uf9qp6h!Y3 z&|aA8j4l+BN-t1IX~dnqVUTP?de>UZ#xN!f190B}T{nB1^;=$wVVIU4yc!IT;XVb1I8Ky*l%2!9?c&3KyLjp^AqBrPd+XrVShaUI{PZj)IA30X z`#AhR2iWBUxFBDT*z+LPbAG=doOYrqkqf<-so5g%iYtiQ1MDy`8+gpT)v~nw`~)MC zh6{HN#sW9EmWZUpNW~Qz!(0&TUaOB;fn9!}8>fq3;?B)Y>v2r!;wA;6(Q1C^%UhO5 zfHv(f^NzWjCe&uHri;?(=hI1Cd@EtdV=;w!TYrc0MMK8STMCBdX-^aE3IJUr$QhM1 zp^j9@{z=}WK=?rz5yu_c1RdB3)gbXnKZ?;CRYTSkxK%0AF7&zTz+u<0arB3oKGnE9 zyw<(|)<_M2D+qL%dxa$ah>3DX$^RBT;zlfe=OC#sERM1OdMII>CXnV?Ug$(VK7Jb- zC}!(@Z8l-%t#|`9bKx(?eMYb)GI;c~J^;>F2-R}%HV~C&`~mrj0$r22F|W9o$4t zN3Ktl?ay5*A&kMwuZmA1N(qAx@Old6PE~|bE&FiB<1gLje&QndocO4WBcf}VWSvdY zMRsL-!8eTE~al^RfNLgIQK*7z+oEYuA5B{E!7LXqFKM(X#b7soz5 zYXx?tfG$7QN5b{Q#g%=bgu~C%ycGR}jap}o36*cYJM-P{c?ezoO7kj_>?S@Yt%cqp zJ)Xu@9`X16hIiA+KKnKV(I5`sN(0?$OO)O}Cak~wwz|&`{J1gE#ORgMEP|Te76tP- zRP7F`UUOcwDUS8$CJTyA&{0&R)Yp^lOlps0z8?vIV~ z4y@a3j}{T1_;+;IzuR^<5ea0%7POji#u_~4B^O_(*xLC%Yj>}dJ{K@-H4|s&I@0s> z%mcU%vOpJ9!=<3Fs_T51(n_&R+h|frdR0#I-J|>!Hg>#BWP{sGKrPe_^-U#KUHmFk zFRPA`V;-8_JO5G{_U{PneZOr0t{lL99R8mJoUc5<1;u(<&vRND&zP4lS|PvLH8^*z zATY)2IKGCbp;K;hcdvRoMCl-JByXr;B=@JHka^}dt*DR@Df-5Eex6Ix9Pu$Lu&V%c z4-Yf2@$`DVua;JH$~w9v1MPm`RKPNSGlR-WV~6|fNU&X3rav1r$Xtb|@N4bkE0?+) zZMl@j1i=CPTMtRRfBOvo=97v*HRV<@)fm0{AOPW>?b?S;BucoZwhC_#ygtCwgLGn0o?z&xByof;DSnH{aSIo zYv!W~FT!hldNVqe+wNVab6-1@|4cl*XF}Aw*r%O`JZbk^Zd+!*W!s!fkA~^gN2Vp# zGxfgQJp%3@s{maL8hFJs4qEnUr#VYMKVomPy1D{8GpSX-fxibb3C$)HTd;=2>XTVQdaU&#SK7pel?;cD-4QXxg1`DhAJ`*&8<%EN{&h7F2H z%J|v~!44>n9-Irh`iYR4F1eFmSuXvyK2H3>&S;p27NQS*Ynq6T4yc0~&=p666zIDN zKRmWiM=%^z@38E>M8MZ zk0g8!1#mq|9q793wJp3%UaY9*Xpkgb!!6(?@fiI~bG`&Qs>^xIfMR1_bl=1-%d;Uk#ue^L~o)sL9WX3gCX18&AJb>uhtC9JQ0z5kkvu81=K8Zlm0;M)6g z(!a3Y-s3{kf^sv)g6U|L;OApjU{@RHb~khqrHB|Qs2(+fg7I?poV<=)4|F}s$=uk7 zHpFSp#Rvv8LR|%^@Yi?kg)4hL-J6gSyfnUmLb(~?5xZyv&ZBgIZZeKBXPw0m%2r*MoS*?grZ_J7w4pMse81X*$R?yLcJ;`zI{Dvq z1$5ir$PXARc6RBiuPw}=Syce)pa*ob4SiH`4Ym7F;}NNkEI@d$g*hy?3o6Ke3+HTb z)A6ADveDBnO;5%X{+=c;y+$5PruO9^8P_!HsMWR@@xYe>xcUJ1e?Axh?puHhQvKC? z+SBMgx)e*|nxZ%WHrsCvN+z%1kC~De^eutx|kwb;=7#~qL<1+&3=3JX| z$1Yh8D(#1P-mp{K^%}bJdZf#k^A8OaGBV>_1E1G01h~&x2P1$Bl8{mq$f&K%?hryb zkDRp_nL&ZnyH2r2`M>8X{@v%zf$n^j_VNV!F0^#R0A`B*%U$t|cyx7_HMRicU0qFErIUL&5P9qx*=3ncNx^3NSz?3!irCOpR2Q1 zagKG}#9vv)#*r!Usmf~pOhi>fnIRH0a-7IZ_voJ0W>bB8p49<7&a8m$p$jT=_Djeb zzK0eG`fTxgsnat{s^RlBAt{jcgrR`>5K)b3yHoBC zhw{X568a!9QEE}d_{bU$c~Acpz_kauDNdbDZzKKK9OPK@UHyZ?vB?_KmHEFAua)j6 zTaF8;;{_Oc(f_8SPM$SXQn7QMqu7(9osHq`Gk1SAHfp*Eyq-A#-Gdx~(1+-&Cg{KY zVw-=cL3%%S(+XfHOqRw2Dpi$!ZZUrnGAR&Tp$jTt@Ehu{UR{rxfM+e@JFm6{QTI z?||9E`;PWA*WE3fLHzfu9SRgu#`}9G`P+?%5Ac2E+)xuw&!mFyZ_Yqhqx;r9m$37^ zd;<3{+=1|K3%B+OA@>^zV;WNJfZnTL=|4Zep?0Iyp~(6OZ^)z4f|7R_y)p1dl3P$J zG$;fKINxyry6-D>IaOZ2$J@3);!jf{>Hy^H3Uo2P1;_ENCuq9Bk}gS)q*beZJ3}M#daTcp)tETh-5kP1rShJ$6549x~$#lD$8`bpyI}T_WLySaD9c z{=*@ekqx9r?Y_OW&S}(^Xr>5nwsl!b;1_pnlSYU2TA5*-=`>01yvbT=sAK53a&zU! zvkU({Z}ji_`yS|a_d_UqC6MOd9n3ZK8Y0?naqPNXk?WNk%d`A0m&buw7LkrJ4~-*e zD;H$tzk`0iXi?d!0ihHcxUw)zMw<>?|NQ`TYZ(*tx_pA2A3BEGNazihWM+D+h3d@| zR%IBQ$b3i0_?4uW#&*-wRCT<#4qpz>i_P6_GGJ{`=Y3#@R+_V~1k}MD=pMtz(&oI7 zYIM&cz?>v_7yE_6R<^QX+!xY~QrvCc#&9~MEPh@Q6e)mHTGe*}`R$wRHLoJhM~Q${z2zQ)lUQrFGd|>J?OQP162W$M zqWubANv&H$SuRS+Zg~xv@*vDW_|*>JdIDV!>eM3_LZfroSz4-Jjb(J}TU%BGzwmYW z%b{YenpB8mh0i7J%W=;0Y2%s|OUjk7`n}#yvYD5%*BP;^4=i>7TrZ$2m|$%!lPB|@ z;H&Bn$hPBPfA@f0r?sDSNPKKmw^23ic|wMeI1ECHt_wRpQAVuc$IAc$VPB!Ctf3 zC+(gm^Kz=@BWFXoUOlXz^wzZFscm;aDHnasDzX~sNS+ULs54Yg;XV-wel@{8y8l_9<6Gcg_a7IJk)D_ve7@Qb=-R{Rw+kUKrki0!g_~hrE8JFcHIqfR{ppl?ldeyf9ocHM8(&qU zvfNslI8}cv_G$zM;etEZac8l$S5g4cFkZvLmIo^-v{fIC{nX9&P8L=yZHEuHQZ#}b-gm=bS69+I3+5a-B9)-` zgK>m3u6Cxt&sl*$*N^ixwUc?Kz-wLnylwvzeI0$_at5_8lYe^dJ$V&zhnBbd4&)b@ zJd>r+E^&%|2sf*#Ci#VE9w05;UsZst3<3ED0o@@Yk;=8#>3oH!S`8E#ldL`;_;Sic zdEq^xzqBm&l4n9f{y>5)j%%KCQ;5FdIf`nIv?=T)8P40{)jNTc5`P15KLXu)x=z}k z*5}&LKjmC3;bP8~qYK`$MOZy>Y<|@c6SXa^T27QT9Gd?Q+bx|eIWFcSzSKBj25({I zYZDukLok&CaD#y^EvHkyRU6sy4Suv_;tmX~hqF71)tQE= zla06sL@e$$Ca*lU2D=64vI%BGPOZ=7m?thaqYuGq>dMF!U2(ec|DFf`cU=z!x?+N! zg-t&i$6g+Xz6eOj_jPU}HZTi{vpz>6sfVW=ZzRFan(D2Y{)0j!?RsEet@&c*L>YlZ zY$)3K{T$qd3vm7r26W%F-^ZUEbEd?e@v8LCQL&+ZxtZ2{GsMu5_IIC5w(Yg8r5hCG z6*T6(v+ZBOrmt0>(ap#r%Q9RX3#LMDM{L;v^$iEQCY=dVp%e)dY3S{2gK(kv_UmcL z1G?0E?w%a*b;Tz~P4mdBfkrDvd@8z7XV-MRwuTFnz8~}Cn-Su=JM9?~0B!`(Wq)Uj zsM{DxLb*o>Jt(xzutz`vmF9>Ot=7Lg z`T*mtgs z9FA2x$$qX6_^_%K13MP}#!c127-uDmW8I7M{TM1`?XezMD^Bqgzt+M4ZZyz6b!qJ? z`dFs#4+_v~V`J>CT8yWiKRsZhK;?JF5LR!SE=%c$woe&8;M2+XD#AWHMjfwH#tJwXI$%y z#jICa-8loygZ6r~7wF-K`K0&fC+riz`B^N`HJfCo*tp}lG5(FczoCAiXsicOl5mc5 zY9uemPE>o(8Dv9P?WH+NLUf9{Zf;(R7fT%Wk$TH5xOdxVI5o@D4Ulgf(EagY6}feR z9lZ{gOO1kT#@tg$m1v{m$5%<@7YC~S7veoH4nn0KmiXB0@?=+wH`K0#t|-F^I*4E7 zBoZuW`q2U0c%W-f-=^9`bE)p|iGF}TRAY|NY;j;a)tV)x{=9amX(5!Q#g2Fp#smJM ztD#G2P`x}YUCHLK#xCkblHG(!_5!fJ2|%}G(59)uoCHarl|0htqkW%d!=-6Zn|s=? zy@}=w6`0=E>jg;ot@M-}P=vGIY>u99Rq3dau)v3z8by|%{B+>Daw5>J$#YZUt$&bf zZvJ~B^D}ysS}2mdfS~tdc4wGwcPpBrUK^F5@I3CgFy@8hk3lC)R1K+6-;1sl*gG*i zK4<+PKpm2Ru3N6XRn6RYPiUK;OB8meP=auES$gm7Uwyr)#Nl?q8;~btmCK0YL%!cL z@~*^5q7m97{Qw({f%Xc*EbCi?Ht=(IGSHnwt%FuJlD&2*U3lZ+;pKUVj3Q1)Cj-sI zs}i}e>X6N)#T(X(iekWaATXXEDZ#HS1JY4{IKD*i*pEM9lK%G`|G(>G3eX)~b?PTN zI=SeRs3a8b;y?>US8xx}yH3aXO+11yH}LagS<>o>wi%MPpLv)fC8ceB{1O%^5`W-p z)Xaxgv)BK=FY?b#1-jLmQtK`Lp_9E)IGzqB(^jb=T3so0bp9N^3tAb&zHfdBYqY$I zxpfNZOlf<;qf`3V&Xn^Vqg-VFgDz(vDSro`zG*;rRyu=7gNXz#tx#8l6P__l`lMOz znC;AiomF#LC369-p0iSSj3MTukGE2BYiqh9610A)Z#_wmU#HiE;-}6SfSV36^p%59DB`)b!?X2lN7sPZDa%G~JBikQ_h5&9B&{eI^!&Ppr_GM_}_$p)cNn|(o zFwS^@8RyVwW+wIsgb)39!dN&_2@=KP^QG3{`s8PM0ri3XhTUPZ0rc(^Y6pOu4RkFP zzI_vW2 z=a*FCTIAof``eEH%?-qNA*HSTN|6BjL6^5b0Qu$uU8VC;{Lbs@b`-L!=;B*?BLC(H ziUl~E!Ej%M7SW~88}b`EBJ9}OqJKQ*E=*vxV+p^O;=Xjh{q5{w_TnJ95LG{Y#t+XxHSj#@id+v9~Cio{;Gb_YU4Dv?)2|f zslA3HcPmFOivP6iLm zsc2DtG2zNgE&C_4_7wEK(9UOL(ypba)=sNz(c}D!%&8H*lQKJ+?rh9`&wK}0u421t z&9jCd2Y$>^{pokJ`oy?_OKzm@)ag;y|7n}|Q&Uaeh4~d+4Qid{x#5zIhjQDrdCuMY z*~Pm1^{UZq-QE8orN8nJlSgZcW| z3FhPCN?XL=NtmcPxpU$aFnAcC{{J@Oj zrdQU&o5cRGn=5zJRi8lv+pLnn;o(;_i?|}#>Qu&2CY%E|ESQn zTekZU)7vdV!yGoM+?0!O{ItH;R<8kl1|2{6Bh>nb^NFHiQ{B4DAA8v)KQ3ZfI!E8V zT)CFoLrNTLHhF&;+Vn&9DZ?BW+2Mz?*4ngGd*5^K+piHv#!S3ZT9r`n!P)(Iv7t?z z#?7G=fX)M*ef%vy|ddv$uZDBsh=Uo*{H^HcHS)gOun+}IctzBO7Sv-&+p-~C*<5v5L!O)T76 zWlfuDW;FU$@^)o+{jcR~GGbPIstg~|{b3PdIb+-uXH@u=S9Vshtu==6xp>}?R}z4mq)^uPW``r&ziqR zA)()lo2L@qXYQ-av~b+x6Ps{)sNI2ESDW54DEP>cdyp%)@MKQz-NuJ6&34Qk>g#yX zq0Fsc`RZ{qn;h+Eaq>`W9V^epF6YGru6>cl3n|ic>jq4|C=Ec?>tm{+z1nJbCcP=$!+$o?N8cao5Nn z%VK?QpGxcg@pGPy-wyTJpM!rz6~+bPLD_gKuQ(GAz1QAqWgmQeQ|Wh*;(2j|EBCC- z1C?1v`drg04K}(M`8(!QPImf>=KGzp*EtW`5?Z-;*7}S&?bld5Y~A|g;WziD$Gb)7 zy3L!QvaRolD}#G1v*X^kWO3y_O)M!#5Xahaj)J8TNg5I-k@z+sf@=qdf<%jI;hZ zWZd9^-25z?E4Opvbf<{JO7GQ7qD?P$c)g`^OZ3%*;QlR}9y&g?qT9rS({9VYTeCT( zVsW(~Y3So?-#uOx?kK)FvqWL2a_zV@Bkub!$GCD^G&@*$!##bqk-Wags0Fpvrgz@w zZ)tg>`_A7l4IVFRtnNECr(6G91*uzWc2&!-YrZjRxqI#C(*@;QeOwn?CdD=8*dd22 zck*zfZmPN?TfA&{dzQ-1;#tb6mQFLHW*fA6cxjBANlx;OBT7w`Tz}x-Wyo|2SCdii z*1hVo|I{8C^PF|I^gUvc&yjnaE4Tj*f$3_W-dnxhZ=br}bo0KKtpkf|Z#=h&Yw&Bc z?lp}q#+yUh$PclPxumANz1N27r82pbhjjWd#j0eL^+S(Vmm@iHPjKaKo_D<}xu_&! zg-2Hdopvz>vpN+{axz+E)K^p9seQZOHxx!H1l%{tSl;t-=lr?N3^i0%um3!*a@Va% zbA6^o8aB4%$UVuGo9{h$mrA>j&x?(_Ug~?sZ;SfkoS!zM5$ za%vCNYi)8@dFPg|m^#_~$?ePCM-6!GJo?g^YaF?!xN>*R>aurjWtm*V&J7yueB0hB zW`FVVMY$SXLMM$K-f>g7*6~cPDd$jB~)q7b{dhtic173EfAAWRxedx%F zq@tH&m$z~a{~h^MVV!qu6Rlc~-1A(yHLiVTEYeKR%zjg>cxLyN!+KX&lw8v&&@!K3 z>pgDY_e(RTOo@%DKDEAkW$WreCA)G%&w6INuRObBWIq+R%LO*E9Jv>`a((<(P02pg zZu*z!XP$U|H=p@@u~x!^u^$#>cK^I0Lv_?spAUrjO^()%;L>U-IiBk+7-x7_>kE~?&NijzL&Ui4Zg>f6}}zr+qd)Jo~p)Z)s;uNK|LO>(~c@yKuW+Wzf*x(qm>`RzyTpr_lrj*%VJENWHT-XBW} z^(Q-8+~092GO%fs?CEar%+04ZDdpPX3RkZ8v!I`jjXZRXIvPyLFZf-sMd`cORFC;Z zBlm>0tT`E{Y2p3AJW)NNZO?geTkRKhIW%Ybudj;n7SXki+xoS#Iqb>Nw}2~G_I&3H zCC{A}>K^b;@7(mwU6~}k$SumLZWrFhlP;m3%pC+#L? zWNQSi5-Kk(6V90Fn|9Y{N`U=?m5-;54l=(xDD=A-cip_km22aAZr7DhDJw2Vc8cr1 zWc{Y}^`q`8%que)x7DS=oLhK$Fb=>1S90=al+P|Hxxtg8ql)jct zKj-f{G|Vz5W?9!g1JyRED;mGPIC1uEj@%nuxlLrM4-Y%_`q)m*F3UXp8}@8uXIhll zbn^aX`%0b%#ZLNq{B6*ftbWHluMM@2`EhG?={~RJ;X4X;S{Vj(_$oAaOyqCSo&2SEvVQOK2ht$JPmMdxSlo|f!AEOE-Xku^S1F6Hv~9Iic|O zSkCaNeKQ+eY%K4xS#ytpQnX#{)O3TCgV{HFo=*=w+v+Lz{^Ax_?ye&n8ZYwh)jlw< z%N*mJ#4&A#-!~k-YVCU4Q;LNyOY;=%indQmuu*Y0?bNa2Q*MTe^5Z#2_U@S#JHBj1 zi*FZRaPz*~T)DOjPmCV;Vrd8Krpqgy$hJNxe{K7&#+O(1sxE5xW!t*j%X=R&3G#lU zI&1ItrMYv*$R+$VI=b@k7>8kw+h59$cFX44_YPOCi~5x`^(=$0oiCU*%WiJ?ZN0qC z3-wpY<7#&dX`j(oJMj6~krlJ^UuAg7Rqbsw(Z;KbpPl@hJf|)#Kc3j%@m4%{Ufku% zjT^K3T!*j~y;ryEHeTt#=Qrh7eS=fZ&bSeytkz3O=Xk})-sgS#eiA;K*<+*GK~ry+ zA^u~lE_N}wHS&Pz!|;zm2^@d8$CVq?srB50&lT)?8-%F@J5`+<8Pd1=mc{qR*7mveDw5?r|;={&C@X&}waFaFuRgGkHE>C@;IJJ0Yqfq&?6J)i$^kbvoJelE-R?Fx$$rx&C!IArrD_6h!nj14qY$u*=mEF(io9mGd z&yUP)GTbEn)VQx3!y2jnTv`+HFfZbpuY8i$#B1gWNB8xcbih`vazgDeceP)_i`@4$ z9&zQqI}q}$*RSpqO=CV*W;!(67O1+{=e*Bw>#K7%o;>I`Ahp)q?biBJS*Mhio;jhf z;HTBir2Vra%9Cd|RV_AOZm-If`wW7>Mdki23$Bb<|7wD3 zOrNq_S;Ouuy!^>tMy9)GsY1oD-@QWytY4J?nOo4H5MTc7(LQ!!WW#MzA;w=L1y;BOnFks)(* zO5-9&6WwP%)^5KpZ*1UjSlCB)!YQjWC)+H&YI0z%!+?hF$6^h)Ufqm0Q?fb6-^_IlG6NL)Q8B+q6fo|3q8e4>g`W<2!8b`u0ik4gdU%soXgEj4Sti>5WRyl!zZGTPv$iSg*QsPyJlV+l#tU z>Ir?y^S>=}d;N2E?Z`Vj&%}6s-)z+E=hng}&)0a`rFYMG-PG%?n-2GVnCD!%%lqwq z)Ubo`Z>8Jj^XDn}r`ld#X?LmH#2;4#*X*GPdG7wkRS*ZRo}Yp<_ej&AUqXy?a~`+_TXbAI`p2d@_|-6QB2 zaLhjD-1~9Wt!5M`-P|?p%!4hD_VwxdBJkwmLoPGhJ$oM{pOg_Xx9h-+l8Ke&uD184 z?6%S6=4UUta;Mfh#_Vh~#jo0>X|qEH+p|52Dnqj@+j(7$t4WE9KiT?omC}Yx>r>C- zRt~TEF{X`C_fe{|R(Cb8^`D&JXEScr43569xNC&BPv5}eU6}ZngOSy7$ z2AxR#Sh!04%IXTsp}XJQ-)wS9_uZmqV`Q_2+wXTgnPa&Bz#84F{a$4TX_giX{CmC_ zyXSI&r*~=03+JQGHQL;L&oZvu6+`tpc0b=W?nl?6=@%PmHQBqheAfXjqxT+T?>CCu z@Zs#efve2BR*&5xC+|I|B6C~!fbOdn=(b+J;;LQo;W_<39_85KHCOJjoRHhwS{leW ze-V7MeeP}KxHs;MU}9RAfz=JWhMOPLRk(ifdw_15`3P6fXKAf8(n{9`X1e_Bydv$MKNCJK`#yZa#4+WC1G)rcmO8fg`w%$iWR$&NN&9u)AK$WAX9f4#hG%ZxPJ zj|F|JYi{=UkT35Z=@hbtdp}>nmAfW#L2*a*uJ7)s?-@`!NLf`ib+GCZIm6#It>wC} zDIBFa>G7cjeOqsDuvhSPjgm*D?#J<)`kpPO-{bJNx(SsQn``$GdR9iduHf=X)1^>KSMTpIGHOb?D-t{9!i)SJcfb6H3qBO58nh zmAs;q%`q z_|6I3-NsA*=G%+;7iMW5e;7a2I6NmMQ7ch3JMR3YQ4^PIEx6$n)Ao9=XIGP>Ep)lh zc`LbcKkvJ%+Mw~M8HrgJ@AmAfef#$4K8?nN%kyPDfv zU2atH$pF9CHGacSC>Fh%v!cIuo?YsmPMPOcXX)kMGEv)d-2c%2h=pScp0>;Lu(BRC z?x{up=ZG*3LEI9hH;yYx>#6izoHTZT=vnrm)mo{wE7ZD7IQwP!<)jb! zk8X1G{l=BMqugG-Y@o-uqsAA$HOvan*gR?Aw=-*B4%zlzTj}}k>%D)haT5M|@WA!m z;uysx6Q^2PFEB{ew_lLEB`|CL!@euGapcx;<-T41W1++9G9AOaS2br;nS~xQedl7G zT#*w!H#A_u*;6IubFy7}mX!QVOvu(f(#^T{!MH=~o-OL6vulswO#g>H4szsv=gNIC zcym(!?o-ZvUTH8UtGkc!P=iz2eTR2@cVx=Bz7F5+mj?voDV`qG?b*2jFQS|Duyy^C zzu#(oiqPM)(Xb0+7EM~uk^6%yS5TtuB3Qp&*E{c5p7W%GKUM~~y_?%`Zd8chw^t<} z@eB2)OExbj@+MIxg%ZgWfrDB+xAr7 z-@+zm`7z=6yH2yGHMRbb^J~)e_}Y8lmC6sP?;71_Y1?^|jAn0qs;K(eMb(QesgoaW{RU+Pq}Q3k(UZMa%;JAZ|8jecCheT!{Y6Z8{aB+YPr~Q zs+VG;LtmZe{r>U(?!6+{j<^JZ% ztvu|tUcRkYOq)4JhVGbg^u6F~_R@X#4QGsPRS+?%_qEh*(>e|tsny9SUjL#^h5W{| zR#TpIExY&e(t#emBQ;hun9k8xAd4^TN6u@?{$XEzdUa^~YK_*j2(u_RgVLU>_S`hK z(sIi)l%26`S984n+KhPG{J8tf5&1z0FEx4?ygYhrz;l<+uekdqGF-WCouV4* z`c3@&c-HL?%lBm5OuzpnVN;*}W9DwLI`mcRz@+sln`djwtgAZb&|J0I)q~rtYg%ub zp&i@Y>*kMbDdww#p`UoYko|XZd(Iu$ZGMOC_-oqx&c04pf7~JZ`_L`EdsRp0bcnw< z{M*>m6ZC%HaXm0zwfC*(j~2zQP8GCO>hZpHe*8Nl?e+T~apX4O%H43qETyz2aLx_2 z0sei|G;9uaTllc%vUXp;uYENq2X~R1y+LEgy%XOjKNxxNqJ8v<1A9(2Z<@BGsmhex zh?W|STG3F6^_AnweNYq;GWK~u@0|&&6bsLe+VXtRn}jA6{&QCL@;J9IYI7e zVSZIaT=1-#x8)1PUkVHzl6&l({I-G1-3=q1Q*J=+-~AyU^9uP1xR3WJaq!y4`KxzT01*8^`THt?*1t@o%926}ieIf_^*KyiNS-+*nt9p@_#WGC3#`KVc|g&1cJGP@NZ2)9+e5B#>WJOOb}c~nKa*}(fi-| zkz>^sAL%QNZ$zXpIyy)g>46`>@cEF)4?=>%@G#SOxIm!zU-UIrmH#IXWUJsP<9OfD z5W%(4qIvZHWJjf)`dchO{^IKw9!c-loyJRR_?=Yp-y-;L5<>c|!>UDlX_+|Ey6`uN zmWq*DKxzT01*8^`T0o)&Xzhs-hE5jZ$G8#6qP&yJq+=lb!#Nq?!X|FbPX zu}AumT0m+6sRg7KkXk@$0jUL~7LZy%Y5}PQq!y4`KxzT01*8^`T0m+6sRg7KkXk@$ z0jUL~7LZy%Y5}PQq!y4`KxzT01*8^`T0m+6sRg7KkXk@$0jUL~7LZy%Y5}PQq!y4` zKxzT01*8^`T0m+6sRg7KkXk@$0jUL~7LZy%Y5}PQq!y4`KxzT01*8^`T0m+6sRg7K zkXk@$0jUL~7LZy%Y5}PQq!y4`KxzT01*8^`T0m+6sRg7KkXk@$0jUL~7LZy%Y5}PQ zq!y4`KxzT01*8^`THyab3+#}ie;Y<1_}N5sY|9gP zGg2sY&^9;KjtWW;hWi_7chmL_2?_`c_s2giCHmC<7JcYjA^t%S`ZqxoL=^L#oT9)>@^MW4gXFR^SQ&8$>Cc=`X4@b*|LT>FQ$v}xyP0@!ud3|>^@s2k1}0RX9N$} zGSVZFEqln8;olb(%wWqNv1QbmJb*rr*)sfF&w^Z>)2E0n!@oHs$YIN#;7DTdZvhL& z0rYvwUWb1pRN%>!2n5gA>!|;2*|HM$Iu(3ZLw~8uFW9o?IA6i`?Il~Lin3K~*(+8a z{yi^`3@d&^#@jxu-FE){H<2Fl{u>)x?t ztx-0GEql+FwLw`TTlRr1qrO_BjK<(2%4i%l0UP$ZFDRqac7O}c>GKUoQlUL?mkRLt zjxwUPfa~maKiD#Dl#OM}ezIjcC|kgm{bI{>QI^7%)#6BP=mAS`PGdy{M0WuC12k4L zY*|N~zh`xpWy?CD>@Zu_fGz8cvLh&?@uSH_v_5bhCp3QY>~&pmz7%CNRtjvH0nV48 zjK-=lTV{y!1t_DjqDe~n83AcHr%zM1%oyicY*{n5%mih*Y?&fk))i%TkVoU9gff~h zra%w2tR;J$8OoB;7>!jcw#*#oZYZO%QfJF7aQ+^kj|N-T4d*nMX{=haW%O^e`I7SZ zv|-DvaPEgPZ5-R83@Qk$ff4L=?b+*WP__nTx;SdFWwtm^W3SU@%etd1oh{R0%j{5A z1;I3a6c>o@0USjcjh`OMs9k%YDM%W>PV99KI9FuLIIH6MmnLar-KHbzr$0j{u zEX*CS@bD}_sLtp??NS_V2s8r7o(cfPdy4NA&nbQ@0!jeQaf-h*Uuk|)Jf%5FbCBj7 z#jMLXUI7XKSqN_c$N{uQH3H-T1)wp|1ZWC8fg-eC(fX7OOb2EFGXa{PH20JN6`(nw z3bX*IyEF%B&e43L`9t%C=7%QG4xo8K^FSLQKPSH?KPJB=KPA5;KP0~+KO?^~226mi zfGJ=GOa@|sI3NL-0?;~{1WW^xf$6{uU?wmdpmnDdptXk977ri?b~z550&;=VKpv0} zoB_@P=YaFT30zO>>1iMj$Op~%76+m6n!Xf0NsI?z;b}r*_8mTt*e1GKpKz^(At^-tOGUx z8-Ygvt*^A6()t+znNdI>;0H_q#scF2Utk0<67U4PfMEcwu>*jCKtF)|z7Nn7Z~$ly z(Hx{X*8`wAPjj5+syRUGaRNYVFs->$fjGbc=neD%oB(H_AJ89g0bGFr0Ik2Y26e&F z05AknAa^ma1fX^KD^Ly4dRzn08cb_0t+BMG(i-|3pou2~$N~)jTK5_PjR0EjXnmvg zjMlHuxV{po0*0b0t@*YmIFhw60M+r*(_gskg9W1@I1_eBmST33vcJ1SnrP0TcjNfos4y;5={vxCmSVwgKCL zme5HZXbz|X{;**HAOyw(qk&O?H!vLN54Zq*fql?tKahs=UBDjT0B{gE1Y`k6fn&gN zAQ#93@_{qJS>POS0k{ZU0QthI35O$06*|O z9_`EmuHt(e$e{a?S18{E^g=o1@CGP12LA-dS->J73|Ne^B>?3J8mLG4FXg*8fZYJ) zxr+hHZ7G)>0(q-}E5LHV7G>Q5JD>+(4xrQ>|S9|!;_ zXB!Pr`9@$J@bizhl~JYy>_q)}IF1BQGXGJ#>%oibso-1|AYJHO9#8-%&*Juxd;K^{ zAn+;bAUgh|yovmH1VFKw;&(aZ()z3c90!5{iao6WibG#;E%~W8@ERxsN&$3>iIEg5 zsa0Ic#7>H#xid(kB({p`8>&M2j~K{Hg*8GdeVAAI#F3i zK&*dfoa+MxY?%p;)Gx|c#sE72vY8b?>jkY@hXD(K))HD*XnhgOqcw)gxZmlVK=XSz zZ~&m#z7OyMJOQ#b>E;gX0?6;Ifz5ze2Wnp|m)ho)t`fdx*u?H{+pt z_yOYqsz=w0`9Pd=d0%`V%U&~%JqFFmE4e$;43b0%2^$ykSHNSBD3H$)mWJI|v-7C;N z1LY0k{DATy%8Mv>XaZ0kLHPvb6_gKBen@#D<%^VeP<}~^`EML3CkO&4@1Yz>2v8n2 z9-usE6fg{+e8?5(5A*{lM)k$f5$FXt0QNu+z!tCo%z&Xaa43)<9c88_)%G04;#7ZwF90eWzm|=%SCKAz%uav*(sLb_1*cYrqDe`%yc< z9(8)+*azqhP(SG037~RkfcoPCxC4WL0l+|j^46ii5WoZQ1iS$1`$%8}FdXm(#sXsi zAHWwF2TTCSj?`zeEuHrQ$W~;h1<;M`Lwo>0y3si00LOr%Ko*b*kgi(+x^@e&8Q27D z1mq!S1CHx~i2%u%1jGYV0C9etfb%$DGC(;jT|-wpX(383rO0vExh<4D(~0c!xUe6D`fm({>3 zU?s2wSOH82<^szB>KC=S3`gqsQeZKV0xSX+0tutCmv6_j_;hVCtHZy zrX!V+?x}1!)ur!b8{)+fw?(|T9v#JP#p0Zbfz03h3vZ>0h>{<{Gh&;7tYU@x!-Ah{%uWY9Ss3DmYdKxJYZ zWaFH!C7b?P&izi;kdJ8q=YcoCIp7p<68M7pXK|!F?hKB3KrV0^pj^-Zpu8@hEu-?+ z0Ldx?ZUDD{BH$755FmNify)5Ny@X?b;39AVpqL}BSBUd#z*V3C5bHwMUje8-f#lJV z>WQzpiSrpKqui5@4FS65KFaR^w}E@WUEl$Gq;jrq)cz9Gd5j~qPqL_QB&QU|SHM%? z2|#)m122IWKnd^+cn;87OxKCq7Tbst%-<+~3s9eE9O!#3`~4G+=D>TP0(b|s1U>*C zfnUH+pb9VsDuK^{FEAST0Z`c&pc?oJd;@BL?*Pe8fNs>LBOq=&5a*;D?b9{@NH-IJ z+K|O}u|DPaPC5qxw6EI;;Py$5y_T+V0vh5w^;ImB`a~S%QYsy(GS=LsqGOXDqs*J!Ki?lcVhc3jo3mXF=NeSX4+sbUA>5eTC~g2E7}ay*l#>{r?G4UCORHwzO}CVI6(oekqF zDtw&_k#T{s0l}=_Ex?p~?DWLII{YyhYZD7|6LaQ{g)|rz{XTxg@0MqocC4sQM5Hh} zI!G8<@^eKnf$^7fzh_n67Bl9i&%n?qm`3}C?~C%) zs$(d(C219&efnR@-Fy}dL|LIfl+_Y5pwPp=yV8eRF=Hx-6#Dv6d|z7jpt$wYb1T4L zOwG~N=I|71$N27}74d!nYISuq!L$Su-_w1khf?b{U{HaqV+ICyB*{}W?7j!h_4Kck z7Af=#^o@*;G97r~!DPJ&0Zbh;GgR^miHd^)f}zEuUW|H@+_X+w6r_<2GUvY&cJkHl z2ZkN(knjnjFt-Oz_HQOKW(idLlM3muKm+)b&Lk4CuuEv ze^T;lM{`3)12UVS0~oTk$BXR~SB&33jM3VhJidNA;xXlyM$aWk+Up$)l<(bZ6d^0K z5hW@p;jbf+!3ZIX#qBqZoX7lo``UZEHi2&NM6w&t_`s&NxXn~X9TV%NmIHQrP9TfI zt1J)?!O$plD)Tn!)?>z0mO(qiz>p_CR-19RbW7<+mO(ocS!vr21l*n@TiTn^0A7Fy z%rdVNOYiBf-lNLYVJteIZD;W$E#Dc6Yhvo!S7r?c7x7$#fPF{l&e=Nlr_jr-te zyQDN940$}XCMM7~LTKD>z=N8Vi5hG>umPCppirS8-b&@fve_HGSZQ@k7L3HgO@8n^q~n8auJKo7Wz4`p0ct10H#$&Y@wCa2pGlX&V0;+6 zf%!vPpGKlNFbGGI)@rtu!ln)lf<@A(o%%Ky#$H>$KVw-Y5J&QZR_%tjx>ogSrK}8T zjcF>u2BbB$18IKYA>ondr&SJK6z{E5r-846NSfvMR$+eT&7RB3P<}<9`hFm0tk4Bq#=xx$Dan%0_`;0b@OI-xr{(CSm{aa5vV|;aIsq{1$wWJ(+ijimMzJ+^o2VT#W>B+O4IJ|ZtqG4Xq16lw#oj#h zpS1pWD>{>*+y+x`MQ7%AU{F+acx1d_%krbcy0lpL6w)YjfFnfu!h0iyf;o93XIKe5 znuB3hbSuF*Xh8n9E3Qjl`{U)6b<7v$dZ#nu4*W?8#Qp2!^KhXY}%6$>n3mJOG2`lyp-CLmJo}oo)Q$V+85OGWFLV zU0f@9of9+ja7A-S`>tBiR`sZAFU(UKZ1_Qa4Uo|=9#X#@coi+d_3{wL6B&lT9e!!` z8DDgq)}7Prah6Vn_q7Ebx55S#6EW*0WHl%!<__w>+{p^J4ra(Zn7l_F_y_g01Pn#X z+M{Q43af={z)%daKo-w32fHNq_Px;-t1~dwy|_c|SejU)k^%;Y{GjQvTQe-fms*3Nd5Zq1 zfua6f(k)6XRQuMF>QFk^O`r=#4NPm(A?ded5A|R)zy!iw2N;@-hZE-NYDXTp&M?Tl z%>?yhB0QdnqkqmUS72Zjgxh% z$cXFw>Alc^Xa3YN{Jt~6H(F@y9~Nc5Y;oUTj=8^JHyDl944z!s8h5Mz7d!-A`Uf8J zr*+6f;8SpUen0p#CNg6xiiv;RvDDf6pBXv6_*ORxf5x{uM&g=fO?P?{8B0toK_^vF ze0$LM_mQAWm4_IQXZ+e449%>|m#0J)f8W~^3~m-E9@O{IKDd_RsKjnsHuaRtrB zwZ&V8zY2&$JfK?{2$QUvHBmjVT+nR1u2Oltq>nGuE1^rNmw7%N8_l4ULAtl5x!9_3>3`Mbmn(|jimUK>~NX|?-!DukF0@m~&T{z3> z2{L>!6B!g5>FbYOy>AI2UltD-D=R~(KWQBk7833|0eksd7V59?@;yj7lBgYtHlUkb z$^Bt6lz@=%@enHTAD;5Q%?LLq^pv8Q1@`9=sK^El%T`*2t=ZQM469sFm_L4N5g6Ta zo6(uKB{%6_lNdy?ps+w;WKeWe^Yn6cji+~z1(3${afLLpftGBE&ye@;DPB{DP$xXh zkJ$^jbf9prrZZZE&>zn149~Q zG)P*mIqIl6t2O-X7#PwzY4UChmq9h#>a@N928%}WkeQJeTz8DR3x*aM)RE{1NDvSc z;h-d~6*srU9kR7Rx2+7H2ODl5|yB{Xlma3s4KtXRLT*^8f; z3zR2X!mY-#%;dzW`5WWx$VV}=P0TC=L11WnUKjZFy8mIReO;YsF!(QdV@@O6xXqbw z>zF_DUN!iRnF$tK!Jm1rh@rd}Z7}gbyaT8vvjoCbA-{eU6EpSWwU{YFT^j9Ei>jQ} zKEz+ByU%(DhGxmY>k%^+>ICnoV8Y)exnD2lG7K}d ze8G?>M)dPZ`nh4LW1X}=ZLJ~`j%z8h*0-A|yEQTWEB!gfYLIszxp#X{C)!VBd&<)v z#KgbSp9^RQ0VX-l=E?guM_N*R!yXRV?J*d-Z*dHB)9ZDX7HXb0;YEGIc8GIQat*p0_`5EBbE6D~`9x)BaTm#uT9nDXe`)&Av5*Z3C%HBytg@;TQ3iQpk-DvwdhW7a&i*oXts6(@UOYr2F_}WqJz)(yE zQw)Z*o_Roc!@$-(hpA&qTE7MZXH5Q?XI)bu974OG=qFhx&^IbPHVnI=Jr_2f@A~W} zBaLBnJBmDhZQ7MKlR}Tt4mvcTm3BWE^6N)OC+<~`PudQKwP+p~iZaDVcPsmOY}*LN zLKNSwf+5`kEyr%}YV>X;7-kO#&+ov{DC{dbQK1uMMEm}%w0Pgp5K2k9eQ$PZ_{xJm zV4wjhH>Z>k2Ds>J$X|)ugGL2-R)8)gi%YG0l}?Jmvx=WAnhk6_QH_Co~x3m6lz{;8{h;MD*vzi|M8VTaA7IhRrtW?~{vd zPy}hDfm_!zn_FKwOYN{0mEhMjrdaFCP=`Fk>8zjMwa%51sADPWDMs7aKg2g+c~RhT zMeoO=-BxC_e|Hg$_V`I1?0Yp;wm}^;(YB$RfoS9ky?5PosoH=i9OMQFh8@$pU}&`8Hq&n1bVf(Y(kO?8CmuBt)oInD zbfEsc{xm+wHehVapI|7b=y-nn(9Ugxu(sxp zqY~#Sli5kQcZOo5wZwSM%o6_mtwmQ+MB3|~aNf7q;za27A7)(qSz2dEqsVvXrOu7{ zr%dUtfR*-V7VxjixcKeHpC9}cyGia3-R|;dko8w|aW=@Wb^Sb1v|nXr#y_T#atcvS zj@kQ9=dk>B__gNOjo)|p+xaVYJB|53*=_6D-hJ9N^tr>%IYgwpU??KB4wSPx8TW(k zC^3J`u&K&Fv-tbNe_!(V_LTolLWmVW1^w|I@;Ia9QBqIzhi+wXCtlxf;{3Y4G%<4k z(walsPWN_&8Ov^+V5K3%=7XWR{ZKxoZ1~(1%5G`>fi?LVi5|l27D;$w!|rwdl_xel zJ;g2)Pfx)})Xj!66p8VGxzCdP#D=2(pWa({*Cw$YCX)YIr|ypOHs&e!NeZ(!$gE8D zd-@M!2(x2WzfL;5gI2!RI6{kLr$yS{CXZjxvv=BjLS9t~hBO#?^VgXlicdt(-kBVh ze=gK-$H88kd0Y{VcUNdz%6Y?+U7OWUd}G>So_wD|W<#2Md^g4~|J@X1Pv|BoP;X}& zbr4?h27+J>#)x#A=Ca4|QNI?Nbz1+q8(vq(pE5CDzd(WRo7oF|DEcWv-%{?gFL^?a-axj?Zy(z0-6kdt$TBSl`I7ps)bJhlqoBe$K5~#I(cI zk?6h5$j!15^|YtY=gHsuY}muLgZYyJhUQ%VbM~#=BHf0w?LdP)U}$_6UP@|u|5`Ej z#nz*QqSr4RXz=UQD>Q^ z535#sA8k5`VHgk51w(PCXt>Ru#l|^Lz_3|OP?T|`FhCfW?Yt%9l98n=+aE|XM;#^` zjPIR(BHu}oVVLdKUTiyhYPst++%K%Ct1|!$jkeXm1VfVzA56f&4=C^T2BQHcqF3VX zylHkyOdV!7A_7bsFdCi8bc&aX-jTtWqRw9#1&O*rnz?}A);qe3w6551zez32i&h!- zE{DI)Ul|{MX@8}sf29t;??|*8GjjZOB>EfkL~X9U$agfIr%!(UKvt`6v{!~ ziIrB)q7N*CAo5SQgE{9P5)()9;L*0nN<%L#-vViLzX0D^>mbUNBR2GN>Jgur3dWRq z?dc!9F|Z$X)S;Vxk^K_u!DW|F2itNK;Oa-q3%Hi<3hS>~Vn$+gVRC=|_mL#OMMWK| zuL1MW3O)TR?fjKG64yq0l}%96Qxsk1>=^kredQc?c1#g1KZBvW_ugCmXJ4E5dvG07 zzdt{5ttzf{?IqeRT5s3t#hrE|%l|WV_@ya1isrUsMUwxoPKFI3jUpd>hriBvyeNf7 z27+3D4-dabt>{TH8xQtD8r`4%nijBDTcywx4C`;l!BAB0=ckhTE3u_D7}`&S4bFoh z8+02k7a!moKwd?=Y+&B?7R`lImZQ$!|Dk8e)M3^i|M9_5`JY@)keM5FVGJA?0pp4A?vKk+&jf%a+_kNr_9bm0LyH&GymCf&NVwQ*k3X+vk~}4 z`9@Gr+nu$E57!AtPm|d3dDK^Ax20dVZ9Lwt!3=uVMtg>MhsjCAG;e)=wZ=`GdyvNN z2?@je!Y5#{pOv!G^V#gw9Nf8L@{p~gBfDWlvG?Hr{6SjQtUhQ5{Ukr|hcxoLtp>#l zV_dq>3drs(@Q(uj`v-q!HOL0p9gP2c9caL2PZH-GlaKQ6kMiFcNz9d*JqMoMa74b~ zD8>;5C4+O5dKovM+!Ax1Hq#pQ6J=bxbj!X^4E7#V$Fv1QakTG`>x4Dd8oT*n+t zb1BBOXna_Pb^~$5&aJC&!ww=cE6Q(uOh!@l`L15ZL+SehYojZCr zVe%c3ZgasoNUz;_5 zmHn|bt+W(F;2{!ylpbdZBueA2!|2A}pMO$=|3I2Vt^b2M|NR>9Yppaul<(YJ>#g1S znPz8pd@u_978OQ~j|mEyAW+e>?-MIuN%u^cK6nIW8WA294KERl_Pu_kVxYowF!=p~ ziMh2PGCU+C1`&I3$m9OX+Z-vcLWYD;F7S^MP8NnmM;%)_Lw)x9dBt)R$(ihl;x4U? z;$Ld0;Z00!Gb~Jk5TPi%r1!Y>`if$Mk7_d5G-f_~(I4`+q+>Brmu&8u(;g(fXop$i zE2`sB)_Xzo)WEp9I`oVs2H~pbdS44AhuL`?CMLi)64i39`Q16)@Y23ICR!L7C5*(c zerJsQovA0|h<30aLo3E-R)fajJuZ|FNyqL=lBJ2c74{GKdm82&79NE6L&mymb?cK6#@J}$bIvd{I5?MI$&}f#y%xdN)8q-VigI7Dh z4m~4>`)&F;gsDIq4DFbCINUVUY}Y)qj0`4SDa+O|k!(AP>V4m=-#7VU9W#$@=ZxTezfNytd(|-+U{oP3D5uAc zZjC}q>zI9PoyRl%oy}G~%CBS2fFTVw?@S7Quh8*U9dj29^>nv$(3r@coipl~w_s?M zDcq#e?wtM`_c}(_U1T={RecMYg)cVMF|ELmw2*O|f8R^ZajavE*gE4|{cNnPrS`Rs z=>>-RQ?@Gl^QN9(Pt-9UU`XqEa(e>DHt!x+#|T+z%k3)kf>YAx)iLp`wES18J6fps ztFB`fvUM(fP1Z`>>b1O%*}%4=(A>fBn9Pc+b<81Fn$^IoM>j1yl2FI|`3oc!naW|z z-{MFPA1+!oqfUD5-Y2X43I4`Ds7(RW8vS`b?{V}&w<`(^Lod?_wu4atBTRY|8#&@R ztqb%V15@}Y7+RTHH5}2-t=-JavNAR%mh|%yK^_=-`eN@E5#Mh18OoyJzF1By9)qEE zySv!{&oDg>{5clVXH;Gy9&!m)DAi z^@U*Q1#mniIz|fn1XvaS&Y=SX@yi#e9Qk$$HQDE5oItX>hZtLfq=(FRO52C((b#g(u$A!xegxiCe zc9=V(scbu4l@-Qor5>hxKxjt(hW#q$wYk_?{-q}FF?7$w+Ik-9D4`v-g^xy1BvPYJw!`v0DLYB)(_IbH}`w!>eC|1Ct{$bbl>0YX{j_jiY#DWI z&PU|E`Koqb#tvLo!1UCdT%N}hVI6*HkH?DU&#)l{ZoVo2o} zuXOhKsf^Z)$A|cedU~p3}%q%?LkB$~j5EO2FdS~BJtz8Vm)T#eIthk+Y zJSZUVooK&e-lW?_)E|0x1^w~GFGXkqJ*-|b;rPavw943s-V0Fk6Ipc4ieBgL9P`#- z>M#+OCnjPP{*yCCLywO2>HDDyX(ZTwggf}|aSyKOvjwHG}gzxaIGU(4Vbd$zuR?jPan z-oxivPbKz;nI_huqVaLxTNwN9ersB{X_mkS5@$U#gX`z876>VnQ?A2N3CETi>x^2- zUUOijVJ+DWMjgyM$5Gyv?rOHo_%QeNXTWHH$=y>``ZTm=D8n!sNXYD1uX=9%?1C zx}iTBU{q1}aOy!>#iiG2_lvv=i~$&Gr=qNPV?CFI9c&%=fi=q*sz)pzJv5#&Rq|2P z;otp=6#n_%U|&{BlrVHM-66Mhc{NONSqIwhwL*l&$PK|2lpk!)FNyDTd$Bkdv#J00 z4^(7=ajiD4<#}oattCELMPDU7S*6^Ck{5|j?ug)fnuOK)mDoBSIU5FdN^oJU!_2wQ zU|K;(y=l%}Dl4?G-QYbH`ieCEph2$$#CA?#KG4QK^yr}=AI>aMcOtOozk28jOu^xK;fwPtLc zIY~52K4#Bbnx^nd^bR01vlQSr6yxt|<`oS+a&9Z58^iGTho>F%G$1?zt3CemNzWmd zj|HwytLv#I+M&671?%w7AAaxU*NtBT{wKvec7tyG{>DFl9!87CwD0+!wml0b z(H$6#DQxfw46OnmlM4nLbgD^b8MM4^>HqZkE=?**9CE-24? zD5%5p9!fX-g$&ki8nZ8@<$CX=^@scbb(Vsm$ftH^QJ>uH1)^WxGw-dZfl&gp>#p~% z3kwfW21(rB*tFa!w~R$JkR?s(3)p0fma=b2F;;CoU!5C zM1wZ3Sq;FP0Yes@vc=uici+`OmVw7he7lL+7vp)a2DavTuLevZ+98j>T^{@3MH~11 zb?v+WLw>F1XxTgF%#Fu&%y*WVzV)o?Be@jX&0}X{^T{G<4OOF$ZCvXto{g}99vJG+ z$7brmfw#U7V(Vb!%)yWiy!VX$tP|ovZ+tT2WAV?=V6?;kz8L@fS$rhVkLofIs%~=!V~T{*|8o zz3uR{PzJazt|2K;d+D2n;> zNP-r{Q%~RavsFc;pnM0?_}k$b1$YR5JN&CAPdl*NUtxGg0Wp!^dnNXV$^H2?kk}4Z zt$(Do#CHCJds_ax0*M+h`(pgQ!=HKc=hyr;_$&S4(HeH+&mj48K7QSJq@kU^_m_|S z8vGUO{FOR?uLggwG@hL~i~>)t%s+oHgC$yrnWy#F67k#i68(+2pX1Mjn$HyFz4JOX z7VKZI*Nx4dpusqHZ|CsV?%|AXLS-V~8d-_K95(j!$m+pU%dGqWnV0Gq?@ouw3cLh_bKO5(d-Hsh+ z@$Mwgd-#wx7IoBNHx~R z^jz8E#&ygKv_pFV8?OYYygM#OzoKV%e%`T6?U*IQ-`;W-KZW~;z9Z2OnEZf$19HSl0QR`NKY>@=joM>KmT5| zii{GjrTLl3)=}=`{8-ukosC$UHP3JIX>0BX>QLNim+Bhkw{dxF-ES`oz)&P_w#>=1 z`K$+cQfxq*{rEg*8T$(g`a=~iX4NqgfBVloh2#Hg3ibcqAf7HWf32DSxBn7*%Iv#H z)PUL57*jq8ks+a zNAlmaU_4|6>d-j74W2Tmad)c?qVci7gTSp|bii~=Oj+|e@eu7jF}`CZI1fe(%!q`o zr@pi--X~@(1TVqRo@&365GRBDYIZ`3}BFuYdH%pZ|&N55D3HyDxV$t+1b?gM8Dy-64+wQBkh% z>Dxlva5?g2zZ?w1NEaUFHL`PSSl&dchOx<)!FyL|xj`>cx#tv3XmAYCTS5jrOC8Mq z8(D^FlU~xi&Bnxce#!g(>r4L52OiL-_$>+rZ{dsVuwQ)oXFvYQulvB8-Ip7W6E~*Zzg4pZks1KF1drE!K#y{9eQM#@9^0;N{=_&7a^4Eh@d_ReTY7`~5GfA3T5i zqqcv_*mwJpC%?}|m;dtoM}P9q-TssB00s!bwh!j|KHAX5_P6#`dj0R)~D*U;6`EWak$CNZcMjIja9~_QC)Cm%r_y=+`2NP`&>&M4tyQe!+XeFLmG3OOWe5 zy#z_T%1rzIA2d&u#h3ryzxJ#_7i*&FN5#-&H3osmk0mw|gDxTr;1 z`{x*^UIcf#w@6<6f?uE>sG@HfkZb1;J0QKzKk*IkGL86`e&b)P-tiCrC%$<|qKZp&&dXOJ>XL>eH)lT z3RJuO;&&TIpPPT^o!|1Ce^tDag*!;q;d(NyTTWj*_VLeq{|A5b&pO(`_Sb+B9(?l~ z|Jxt^ueVNQhfvOEQJ;@FY)}2(&;Rr+SmW#XTR++8C`6_BJ1rTsRCyIjcxlSe!q9%ewh8eWblNGEOH)s|K48z zo*yw??0eq#!4Ebszwuq6&;4t@$awI_zu`O1S6}_xe?ENK-|Me(8sZa_Bct+X-}mVU zuY1kuSHNqLM5rDZ{fqsSqok@+bnh93`)c-&Nc+zWedj;6dF~^>b^9l_KlST!7l_CK zJ?jVfB6G^S&puE!zx>D6`UQErnc?;RHr+qM4xF*sKQ}t=?62vi{K>`38oAz2+m$3_ z?+Cj~b+%Vh5Q!xqSnv5-xodEuBQjhqTQe#9GLtZy!s)>AQzL_H_8F0 zlc%`{$UnOEgnx8vqxvQz%O5=Up7r;=^|8ZdaZS=5{q=wH+T}Q!J-uWD;W&CF@G#{Kr1W#bkco}O}$)8*p0 zIjOqWwGwFfYo_vE zNX6mbqve|0Ay$>PoZOAe;{0XLKKn9vz}V*PeIBs-aHZga zG6U&r3ZxHLxWS2rlLrk=0&Iv>+|`YGCcw+X`!zi0U^VJch6odhrUg$ItY~F%k}J@V zlmK`VhXJCH=4+9P87R_(iucY$L_p$3i0&Pz5S0h8LW~Fc>h)^Lsi!DW-@6KV^pUF& zm6xs3*qTxzL>b<>hosg}-UTbwP7C#RnFAP5uDj+-Q!ft#(;#qSqkut5@Ph4<3<94A z3_i?IA%=;3LqV{z&5E{X!ldYum;xt9sSHdHRgJ8uwwWtUo-5P-q>{kMCL<7UZ-E@I zErwncYfF(egFegU80@}hSdwP60!1Pmq)PFKN=D*hIHH8H5}}WX8MFq+%7pR204+Qg zQu>a;NoW+Ey`Eyw!mzc1YYS!Aoq`8w1uh9;03MJ4qlgh<;cN_GU40l3f|B1%L! ztsW|}DyL7329LzVkVFZ}6YblfI2DXhwHlPB@f;oyjqyww9HmNgL8^ejjWmHdx;!JL zDh)W&1g6&8*i#wmj_PSMpUe)Jul41X3`_f2rJZ`v456|*$q%8i>ZO#47G#>34#7&7 zoNKJ=H*Gm}Z}~Ut$)asG4Lan>dbwT6<-=Y9`@hk}`iMPA{SOewVI^hSa$cR*vlX|i z7;&@axSn22QFeJlZZ7>Or=&`KcOZPRJ70qMXRxACb|gu=gc#7Gfzc%Q4kw58?Am&} zkYOr=E6pf`8Azr3H`=G=R?S7do}e37WrPE{wYobvkV|%DO9B+h256#KrRJN0_}LCA zfEJL6je3=)wq)@Da1z(C?(ssoa&sAg@`EIml^l~ST@Zy;5C{g-wc}_V?6a=5WZ9Hy z<_J*_Ei94ubwy_C`BM6vmFi=hBH}cg`~<}HPi~OSrI-I8NO!Uiwv`D zo?{Mcz?eaBuV0v8(aJNZ%L|MJ5$bWz)8P3@553Lx8iGdH$70m6&n-?fwDns`koOu- zx{8yF$#%1Bwt3wH5GN7O z`r&H1-e}f}bv&jStKJc7>}U9FF?+e#S?1W;A&0Rh=*$)WSh!Vh+$)~sAuT-)6=SjarHWF z;V>DNOb{^+N{*v+45wQlsmrsvnoOs1>shAqX-2I{45^w%Nv?OQ37VZWCNi*5<%*#$svc`8BsGe?`H*nKZy~E z$+$2e$qReH%10U?#x(ljSpbMuA z-QAmu3TMwRYI!>UXW$|c1T>0`qBiNHz$fuh7<_jJ+J^(=Atr8FL!M;Kr%^7@L@^NE zJ-Abr%`p4`ACE?~dwDcr)x`?_7N9N!lnmcUV21NHbM)pn85>LF#*-~&#!($wRB>QU z$G}?2H8rx9VJ2Q|j++@1PK8~wUCo+J#UkvuS+^URw;72guU<}^8*_H@Lcva2&|@?8 zPiYV|2~jj%S-TE30zO1W!47c|ejfUEbc2mzasA}C2_k+k=w`^+QQSd-?Dc#>6w}%r`2JJ?n zDwwx*aqPZ_%?Ov^cQ!Ij?`|&!tqalUV(`hczh400zA!{kmja_O1e!q+BC?wzo67|p z-D1&}heCvG03KCxFQ)5~ehI0@h;A3N14Mh#LeD0%=E!Gd&yelK=9${3Y%$WZ%UiG2 z9#kJ=ec4p!4f@Y98^4D%X&ds&-I4MDCsJIoJDl5{^FZ3BRKT^Z(y!I`Ii@_}5(ql4 zCl6Tr%$HDkx@2Dx?Q~(AsVr_Ln`WBp?|UF9f6o_$LdJrT%@Gp^&Nzy2l#PkL&f2xW zpudbLV#XLr!-y6W#N~FS*s?z5DfXfRav#<~K5b2oX`Ff>*N#5ET{IiH%Q@3+ck)VQ z9GK4OqZ#E22i}D)2QC!>R(=5FDb}$Kr1A`;{touo_Oz~ZhE3`0s+3rOwR3sG@qAO{ z6tBN3TBF4~9!bCuN0WM(`P1yS)qE*C>lOY7tfkuoW6?V8mMy1zJl zu4-qipl|c8&`K|pUE@R$vSp+sWRjYC#59x)ulb(jO9Iq~Rgz0{^AO!28A?_|W(nUe zXTY|b2yJe?-cF9|>Tt^_o%3XfatU_=jOYZ#!ET@h!7`Al^Ql&Gx@=L{)fq;VGj~T^ zrukeB@Vb!5DfiS!%Q17QW?^!ri)nSlX}2qtFmbnG0K%lwUd(6B;(1%4c#=5vD9cVH z2*5`%7DbMOok}Mc?5Z{129D~OR>knrr78nO?aa_CmrGKN{0Ma;n@ErXCpw>@p>}HV+^&$z+{I*G;CS;sTG!&^A>DyO}IXrJ=N_z>kG7#7YcUL zv~@~$hAc^7&3>2FOK}b~8*?qYGhGnMoPvc+>n<*v8JR|na)Bj^F}9D;l5A=U%>a%N zk)^rp*D}hu_VO0@3`PB{p!8q^7v-;D}y-B2I4q6b|4L9f*_$mWkU6ATwrGSC@>}L-~RV` zK;y$fDakaU>TIADau zm1cW?HtDQ4OIGl#p2Z3vtNSb~cQZ?2I~amWQ6@Pf!ht_S;%{6kx)G!ekW@Y3Pm+yq zB_qCHM=|vT3koQcIFdSIG7``3VJjKuR_o?WERUO0 z_VyMhX1y~j5-tTOAVvIfW+^6)N2QhUq_&Q6^)rDFW;2Qp5woG$_EM?vot`6_bbitq z;+~eD@beN35Q8cR!`87W1@ z3fYu1b%lBkmJA9r)rsemm>qPEz8B}^OOB#mRuBp*eZPFC!a{9=TZLsT_EfS)>4!0K zQh3KPA+IDD#+SYU-7~EJfqBHa24?Cbtg)d|oGhXkl2SJM4B5ELT9q3*owu3L@4eFG zZSjKGT*?JaJPis`Xg%~QyhWEU;Fe)BJz7I;(}Z#T*vLy=Xnez`$*O_qEc5hJY!}GF zJ=6ZKuQ^X0kFs;!sb~;Ul&L4LuB_FIWF?!3SU+lU0b1q^K}kMvCvmlvl{lz}b%E4h z9S%yJBq9^ICLI6y>6b)CB6d@9) zBJa?c!J6a)WfIr+Qz11~?f@-dvy>s@fDQB9G;}^$FPK$9=t8R2mxO4r6mSfts}iUf zW%;4jwWAt~GS&7srb*!R?OBPRJyXrtXC5oVAj zaT%wIlaUhu*H1hO*)Nxl0~PKRL#8j&_jG>?=q@;lEB!ue@JTn;>9`~d;OT||L(#>c zqC6e%JRz)r{+1vo}l!Sl=d<>Ib+wByKa}JM8?;#aeqi z!$d0rea90bYY6qhDT#)HdazL--W3KgABJsMYetn;?bO?szw@QyZE)+N;>(~8bS)k* z>-t#YavZna>^g2|SQWr1G(=Q{b%d6*rd`fCozA;^6mh|cg35ei3V8Q{xsvvMrfm7k zOPr7uSKr}`lN68EVbgNEK`T2BocGEQo#X>!61S11)Pshk8%#sVh=?34qn>tD=wP~C zuPUbbKs+xE)LZQqbnh8l?=l}CeVZkwYX~w-}BSS z<{azddX~WwGJz#T%v>q`_Pjo9j%IG3O^yfTgkU$bVBNu>0$A!goAvFxK+6vTRMriA z4*|%BgQ#bC!15L)Vp2s{seof3Rl2-8y)^=zstW3`B6m7;=%Und=z{%T`mgN?N4Bf` zbXj-H%#^K2S_-WrN@PJa+0Jk<$CWNhma{OES(JcZ0+0Jf39^($nZvg$N?eP_7n?U* zE;Vq@CDB*A;e}Nxi{XdaZSVa+)N%jE3d>*T?xACqUMZ7l3s5W$RLWdfiaG1uP;$SGRQA2$J4-p-;N*4c!qXRAIIMm%$wA;in+cP|h zN(sV~A`j`8$7vFp;#Tb9NJl@cqQ>-C9!FjPdtrxQIr$aMrj<7K4)qGcsDW5htFbt*lHT<@JX>=$Pt7y^-q0NjQ@%`f2TU zv22rEaPQX59{(&YshlN&KGP9Ac|J2u@56E9k4GXzcq|gR8XA=kk4IydMdVor8Xvwa zlBi8U6U8ozD6}_tLgcb&OlE0Tu=w!Rkf?-uG#a}aBG&;tDi^;RGVNg=mBy}ysO!NV zSC?=#bZ(gN*j)T-$Xq80W75^obe+WTT&a_IP+u|7T$Y+>R0d5HyDFltVjZe0Rn5&b z)>lI0vNXjL7PX6`mqpdhoJLXjtOEbzaBqa)GD|q9Hy}biEq5Db}uq1<~GbXwlAy+P_j%t$^xTrlDXC z3`cSGDwFEE=~#5AO}=7AM4;x0gFCKl=3@aDi}YNK2^Sr~>WsDf)lPS<+y|F=J?-N6 z+k2y&f%t^P;B+~68^pmnXStttF5aBKx zx4)wv_}Zcw3PL8ZgoxS_OV++nZD2zL>YaZ+-E6kSv1HcXo4|DOuHkB|&1rM(e7QcV zPakN5&SVkCVzcHhkNwW%{j3z{B z0Ea=Wp957;K>4)VO11Loc1#WU_LxbriBgc-3pwADqKj}Hq#PyggC}VpJ9~G z0}3CeqL@fZQmxHmQ=BVbHvQzlj!Xe1Xj(`R0O>-=iwiTHlwD5t zw`^GxKceU3DJpH-1-1W_db2(#BtZ4y_C%>H^|-mrH1k%c(b51PEu{d8VzAT=^xQgf z$j!C7JY<=!TQ}!;Q=LjXhghbuH8<$>SG!<|EZjXF3a9i}AxdoOQ3-4>C1B}3lvX`S zz6hbhjcPlcu2_cx+y!;qDk*2_+3_)IV0t24i0$sbu;b6tK}swXw_-+Xaj@@#qb6Bh z5Sse}piyj8pECN~X>Z_@xHejmTjFG<+oB%apWQC?mC5}xq51w9Ga?6bbY-M7&7hWV zi7Z6t6S*9%G!e+vf9jiM0oYMq|E#u)3o)BORTqQ_Wqo*vG;jy@G3$Vs={2$R=yJ7)u4gq80?mG;;CAg?l!vQ|*ly0AvO?E*ldI>OKvH%JU)S3f z^A9jC1eCj%A~P_?_AW=25$__(O*^d_)6bo0obMAop5q{O&Iv5eCbUIR5Xj$Ucq@0c zIr0c;*DUR~=goZ}>lpx*Yo-3)LmHbG!5BwHU8a&c2=t)bNdR$qo=AFiK0} z%97I57R;o8v*r(W*c=t6{CHa{pq8?ps*Gq2&Ag{QUQD^H@p22Rf!tsnNF6m}?X?nv z)7gs|{yGn@a!vObqkX+AwM~Z+bx0e1`l-@w-%h3M{G;S*^iV>aDjuiKb=_W6Y8F#5 zTDBUCj%UKA z8fq_2Cq;wh(O`5*9dzXWVR?D5YUOnVy)Z5!Q1lRSR`$+_I=_n`*(DtSwd&!{IIt#^Dd(bPk3Y8XfCg<1#`9c7`;iuEfh^Gy+Q!2ZNk;$+reWdv_2R z_$Vgji;p4THh0)&XMAn#x80LdTD8<6&=|( zlasDpB6txA8Fkz-ysopb32A0%w%FuMaZD6Z?p&9R)_$s%!)Gx+yRXFLx?Ft1^+HO6 zK>fnPs|nh$oDXX^5sIM%x0j-VR8qNzTO4G=9~5Uv5AU%HWW5x{VyY{Z;I4llH6E~0Orc9llc@i=fe9qLiK8f? z4iThPBuY>|U~tKgsWE^Kmo^;qsEWQQX{8RfgVlzVA*}Z0@>umg-#$W39EEE~w`TO6 z>-7oX-2YK=m&AP#e8l1WE8*QoE|j{vfiqpYH;D)?x%fCtD_Y-@3?YaL0eBY#PFxZ4 zvbQs*b>+wNoMI};TVtz4CBT5i7F!y!-D=Km?f^E4%UZgKf$F;X+3M~hW4Sh<2pFD$ z4`XpAw;dR^Bx#fdg?e>Y9vF%)1{F7pR|5eZ>o$fVPEpH#NveVd1%eP!K9n@!VVz9y z3@U4ivm|4C)IX5!`2tq=TvnzB?y8v}+)W(SYRcka9T%jTuUh|7dn64QY1SQTr*_6l zci^jRWVQ7ibAH}K$MS&E0&E$Sk0HD3Q~~NPR+Y~03^OCg0JG?T!i@nI*A^^|$_@fe z00U9LU~$Dzl2(TyGCBn`QKHJgNNSw%D&TPmqiU4c$3T(9)mB;RD<&(Q1rHQyg5oI2 z8>7e`b+go_bf3Nn5E2GbRX({nRMw5{#bVk)g%#dzN~SOGW~SKPL~R4DJ?lETj_!a_ ziN&;C(X~9zlrRiHDZ?MMemV=gbpyx5IDM;XW2Thd%#^U3sP$0UmH}V*=S_(u;Flzi z=5T@5a)EY$57PRA$)vL=-lr7)R}F%`QItK1CkkVzWN zV8s9+W620nbwveO%2n8+Sw!s&26u__KyNTzIU{J?<-MWUO*bx@eFYTy&}xaF{D6{pRd+YH2`N1W_)Cf$MDlroSys!{vYxlNn_y4@GBy4|2mpG{|# z4jG3DZ0AU)8J#di{g}?0yzb$)s@(1-PGWkNMJw$NZ!C^^)v^1)w&Ix0HaW_TheEv7 z1rx|%M&;%lEh^*xa@ziOAL4-(!|xQyFuA;LENv`DV!g)(q!J* zTd_e{_fpHAB*OrKvd$R=>e%oub#T`(Vh0h6x&8`ddGXYv!&N7u!=-@Dv08*%`6TWN z@F_3loycfb&>GBDX!9))i1SI{<4JOvh7a_-|NjH}y6gKh!r9erw#B$A?nAqsM!SPl zyOf6-P@<|g4z0VK-$Cl;ahVqBYZNCxhEd0(dz1MJjZX})^dP426`RMd7|+ABSUKXv zHif=8$SruNjBT31`FZ$Sr=Po+?;qB)I;rNyRar9Wi*Ye60xIX` zn{vO?W_8mq{bY|Qay3|^b8h<4-j21$=-D})&hR*rHqP@I)9 zccR_Q*4yIICZ7j_e3(-%((3tcdx8I)+!!U#6>4adILGt>8b@WR<-EdF}oLAp0fFZRtDnzk!7MQUy^n=4vOc0E>sX^4Y5rrqT!_k4@T z4FRS&s%)_ad%WZ+lowzSI~Aud+SV&Z_PnUW2&tj_jKngu1^|&?52#XI>LO`P*q}631we#5s1E#5r@g6PIP7N64wQB!k2yLzaG7QVR9_%4{!t z>-mA8zY+L2T3$)-^^*%l`S7S?$h#Ab*j7q|l`Ovw(N4Fr!_0tM^cr3Zku9Kv|`_Kc}x}73$nct`CPy!T}G#Amy%9V8%DsmlCEl zBiPaeI=#clMufS!Wq9iIfX9cGs4)U4Mn9|)z>1K$m}*z0MG*(Ix~m7epfa>1N0D$- zY80ahM_5LaAyNnXcoYO<9F2z036Ejza| z@KGm;{*5p*RN4&dhO$G_P_hm(C6U}m7C4o>o$9Fpv9d#A2JC!4GDJIuX=?=jS>udZ zSL{1vKIVXWLL-GcM-`c$idv}(V_ae2 Date: Sun, 29 Sep 2024 22:58:14 +0200 Subject: [PATCH 02/10] feat: auth provider and login page --- dkron/api.go | 32 ++++++++------------------------ ui/src/App.tsx | 4 +++- ui/src/LoginPage.tsx | 29 +++++++++++++++++++++++++++++ ui/src/authProvider.ts | 27 +++++++++++++++++++++++++++ ui/src/dataProvider.ts | 20 +++++++++++++++++--- 5 files changed, 84 insertions(+), 28 deletions(-) create mode 100644 ui/src/LoginPage.tsx create mode 100644 ui/src/authProvider.ts diff --git a/dkron/api.go b/dkron/api.go index 7caae5859..ac45399a5 100644 --- a/dkron/api.go +++ b/dkron/api.go @@ -7,7 +7,6 @@ import ( "net/http" "sort" "strconv" - "time" "github.com/distribworks/dkron/v4/types" "github.com/gin-contrib/cors" @@ -48,23 +47,21 @@ func NewTransport(a *Agent, log *logrus.Entry) *HTTPTransport { func (h *HTTPTransport) ServeHTTP() { h.Engine = gin.Default() - h.Engine.Use(h.Options) rootPath := h.Engine.Group("/") - rootPath.Use(cors.New(cors.Config{ - AllowOrigins: []string{"*"}, - AllowMethods: []string{"*"}, - AllowHeaders: []string{"*"}, - ExposeHeaders: []string{"*"}, - AllowCredentials: true, - MaxAge: 12 * time.Hour, - })) + config := cors.DefaultConfig() + config.AllowAllOrigins = true + config.AllowMethods = []string{"*"} + config.AllowHeaders = []string{"*"} + config.ExposeHeaders = []string{"*"} + + rootPath.Use(cors.New(config)) rootPath.Use(h.MetaMiddleware()) h.APIRoutes(rootPath) if h.agent.config.UI { - h.UI(rootPath, uiDist) + h.UI(rootPath, &uiDist) } h.logger.WithFields(logrus.Fields{ @@ -131,19 +128,6 @@ func (h *HTTPTransport) MetaMiddleware() gin.HandlerFunc { } } -func (h *HTTPTransport) Options(c *gin.Context) { - if c.Request.Method != "OPTIONS" { - c.Next() - } else { - c.Header("Allow", "HEAD,GET,POST,PUT,PATCH,DELETE,OPTIONS") - c.Header("Content-Type", "application/json") - gh := cors.Default() - gh(c) - - c.AbortWithStatus(http.StatusOK) - } -} - func renderJSON(c *gin.Context, status int, v interface{}) { if _, ok := c.GetQuery(pretty); ok { c.IndentedJSON(status, v) diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 961de906c..717881010 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -7,8 +7,10 @@ import jobs from './jobs'; import { BusyList } from './executions/BusyList'; import { Layout } from './layout'; import dataProvider from './dataProvider'; +import authProvider from './authProvider'; import Dashboard from './dashboard'; import Settings from './settings/Settings'; +import LoginPage from './LoginPage'; declare global { interface Window { @@ -21,11 +23,11 @@ declare global { } } -const authProvider = () => Promise.resolve(); const history = createHashHistory(); export const App = () => { + const [token, setToken] = useState(''); + const login = useLogin(); + const notify = useNotify(); + + const handleSubmit = e => { + e.preventDefault(); + login({ token }).catch(() => + notify('Invalid token') + ); + }; + + return ( +
+ setToken(e.target.value)} + /> +
+ ); +}; + +export default LoginPage; + diff --git a/ui/src/authProvider.ts b/ui/src/authProvider.ts new file mode 100644 index 000000000..0ce8f2e32 --- /dev/null +++ b/ui/src/authProvider.ts @@ -0,0 +1,27 @@ +import { AuthProvider } from 'react-admin'; + +const authProvider: AuthProvider = { + login: ({ token }) => { + localStorage.setItem('token', token); + return Promise.resolve(); + }, + logout: () => { + localStorage.removeItem('token'); + return Promise.resolve(); + }, + checkAuth: () => + localStorage.getItem('token') ? Promise.resolve() : Promise.reject(), + checkError: (error) => { + const status = error.status; + if (status === 401 || status === 403) { + localStorage.removeItem('token'); + return Promise.reject(); + } + // other error code (404, 500, etc): no need to log out + return Promise.resolve(); + }, + getIdentity: () => Promise.resolve(), + getPermissions: () => Promise.resolve(), +}; + +export default authProvider; diff --git a/ui/src/dataProvider.ts b/ui/src/dataProvider.ts index 771b8eea9..d287afd0d 100644 --- a/ui/src/dataProvider.ts +++ b/ui/src/dataProvider.ts @@ -1,11 +1,25 @@ import { fetchUtils } from 'ra-core'; import jsonServerProvider from 'ra-data-json-server'; import { stringify } from 'query-string'; +import { DataProvider } from 'react-admin'; export const apiUrl = window.DKRON_API_URL || 'http://localhost:8080/v1' -const dataProvider = jsonServerProvider(apiUrl); -const myDataProvider = { +const httpClient = (url: String, options: fetchUtils.Options = {}) => { + if (!options.headers) { + options.headers = fetchUtils.createHeadersFromOptions(options); + } + + const token = localStorage.getItem('token'); + if (token) { + options.headers.set('Authorization', `Bearer ${token}`); + } + return fetchUtils.fetchJson(url, options); +}; + +const dataProvider = jsonServerProvider(apiUrl, httpClient); + +const dkronDataProvider: DataProvider = { ...dataProvider, getManyReference: (resource: any, params: any) => { const { page, perPage } = params.pagination; @@ -39,4 +53,4 @@ const myDataProvider = { } } -export default myDataProvider; +export default dkronDataProvider; From 896e7a78c796a639093222f0481ff156d67892aa Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Sun, 29 Sep 2024 22:58:31 +0200 Subject: [PATCH 03/10] feat: uifs default --- dkron/ui.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dkron/ui.go b/dkron/ui.go index 0b4eb279e..6b631e9e2 100644 --- a/dkron/ui.go +++ b/dkron/ui.go @@ -18,7 +18,11 @@ const uiPathPrefix = "ui/" var uiDist embed.FS // UI registers UI specific routes on the gin RouterGroup. -func (h *HTTPTransport) UI(r *gin.RouterGroup, uifs embed.FS) { +func (h *HTTPTransport) UI(r *gin.RouterGroup, uifs *embed.FS) { + if uifs == nil { + uifs = &uiDist + } + // If we are visiting from a browser redirect to the dashboard r.GET("/", func(c *gin.Context) { switch c.NegotiateFormat(gin.MIMEHTML) { From fee222b7989799e72740f7a7b4e88e8c3e8b6508 Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Mon, 30 Sep 2024 00:01:03 +0200 Subject: [PATCH 04/10] chore: styling login --- ui/src/LoginPage.tsx | 152 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 139 insertions(+), 13 deletions(-) diff --git a/ui/src/LoginPage.tsx b/ui/src/LoginPage.tsx index e044e012f..9cbd37ab8 100644 --- a/ui/src/LoginPage.tsx +++ b/ui/src/LoginPage.tsx @@ -1,29 +1,155 @@ +import { HtmlHTMLAttributes, ReactNode } from 'react'; import { useState } from 'react'; -import { useLogin, useNotify } from 'react-admin'; +import { + Form, + useLogin, + useNotify, + TextInput, + useSafeSetState, +} from 'react-admin'; +import { styled } from '@mui/material/styles'; +import { + Button, + CardContent, + CircularProgress, + Avatar, + Card, + SxProps, +} from '@mui/material'; +import LockIcon from '@mui/icons-material/Lock'; -const LoginPage = ({ theme }) => { +const LoginPage = (props: LoginFormProps) => { const [token, setToken] = useState(''); const login = useLogin(); const notify = useNotify(); + const avatarIcon = ; + const { className } = props; + const [loading, setLoading] = useSafeSetState(false); const handleSubmit = e => { e.preventDefault(); - login({ token }).catch(() => - notify('Invalid token') - ); + setLoading(true); + login({ token }).catch(() => { + setLoading(false); + notify('Invalid token'); + }); }; return ( -
- setToken(e.target.value)} - /> -
+ +
+ {avatarIcon} +
+ + + setToken(e.target.value)} + /> + + + + +
+ ); }; export default LoginPage; +export interface LoginProps extends HtmlHTMLAttributes { + avatarIcon?: ReactNode; + backgroundImage?: string; + children?: ReactNode; + className?: string; + sx?: SxProps; +} + +const PREFIX = 'RaLogin'; +export const LoginClasses = { + card: `${PREFIX}-card`, + avatar: `${PREFIX}-avatar`, + icon: `${PREFIX}-icon`, +}; + +const Root = styled('div', { + name: PREFIX, + overridesResolver: (props, styles) => styles.root, +})(({ theme }) => ({ + display: 'flex', + flexDirection: 'column', + minHeight: '100vh', + height: '1px', + alignItems: 'center', + justifyContent: 'flex-start', + backgroundRepeat: 'no-repeat', + backgroundSize: 'cover', + backgroundImage: + 'radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)', + + [`& .${LoginClasses.card}`]: { + minWidth: 300, + marginTop: '6em', + }, + [`& .${LoginClasses.avatar}`]: { + margin: '1em', + display: 'flex', + justifyContent: 'center', + }, + [`& .${LoginClasses.icon}`]: { + backgroundColor: theme.palette.secondary[500], + }, +})); + +const PREFIXF = 'RaLoginForm'; + +export const LoginFormClasses = { + content: `${PREFIXF}-content`, + button: `${PREFIXF}-button`, + icon: `${PREFIXF + }-icon`, +}; + +const StyledForm = styled(Form, { + name: PREFIXF, + overridesResolver: (props, styles) => styles.root, +})(({ theme }) => ({ + [`& .${LoginFormClasses.content}`]: { + width: 300, + }, + [`& .${LoginFormClasses.button}`]: { + marginTop: theme.spacing(2), + }, + [`& .${LoginFormClasses.icon}`]: { + margin: theme.spacing(0.3), + }, +})); + +export interface LoginFormProps { + redirectTo?: string; + className?: string; +} From b999399a434ac3e5c4fe98bf9cd2e15b7578c7de Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Mon, 30 Sep 2024 00:07:50 +0200 Subject: [PATCH 05/10] feat: login form --- ui/src/LoginPage.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/LoginPage.tsx b/ui/src/LoginPage.tsx index 9cbd37ab8..b0d526e2a 100644 --- a/ui/src/LoginPage.tsx +++ b/ui/src/LoginPage.tsx @@ -26,8 +26,7 @@ const LoginPage = (props: LoginFormProps) => { const { className } = props; const [loading, setLoading] = useSafeSetState(false); - const handleSubmit = e => { - e.preventDefault(); + const handleSubmit = (values: FormData) => { setLoading(true); login({ token }).catch(() => { setLoading(false); @@ -36,7 +35,8 @@ const LoginPage = (props: LoginFormProps) => { }; return ( - + +
{avatarIcon}
@@ -74,8 +74,8 @@ const LoginPage = (props: LoginFormProps) => { -
- +
+ ); }; From 149443a307457335c80498ffe534234cece75d00 Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Mon, 30 Sep 2024 00:47:19 +0200 Subject: [PATCH 06/10] feat: login form and admin update --- dkron/ui-dist/assets/index-3ed3d739.js | 240 ------------------------- dkron/ui-dist/assets/index-51a13e26.js | 235 ++++++++++++++++++++++++ dkron/ui-dist/index.html | 2 +- 3 files changed, 236 insertions(+), 241 deletions(-) delete mode 100644 dkron/ui-dist/assets/index-3ed3d739.js create mode 100644 dkron/ui-dist/assets/index-51a13e26.js diff --git a/dkron/ui-dist/assets/index-3ed3d739.js b/dkron/ui-dist/assets/index-3ed3d739.js deleted file mode 100644 index 6903609f1..000000000 --- a/dkron/ui-dist/assets/index-3ed3d739.js +++ /dev/null @@ -1,240 +0,0 @@ -function D4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var ZT={exports:{}},hv={},e$={exports:{}},ct={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var cd=Symbol.for("react.element"),z4=Symbol.for("react.portal"),V4=Symbol.for("react.fragment"),U4=Symbol.for("react.strict_mode"),W4=Symbol.for("react.profiler"),H4=Symbol.for("react.provider"),q4=Symbol.for("react.context"),K4=Symbol.for("react.forward_ref"),G4=Symbol.for("react.suspense"),Q4=Symbol.for("react.memo"),X4=Symbol.for("react.lazy"),n_=Symbol.iterator;function Y4(e){return e===null||typeof e!="object"?null:(e=n_&&e[n_]||e["@@iterator"],typeof e=="function"?e:null)}var t$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r$=Object.assign,n$={};function Bl(e,t,r){this.props=e,this.context=t,this.refs=n$,this.updater=r||t$}Bl.prototype.isReactComponent={};Bl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Bl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function o$(){}o$.prototype=Bl.prototype;function Z1(e,t,r){this.props=e,this.context=t,this.refs=n$,this.updater=r||t$}var ex=Z1.prototype=new o$;ex.constructor=Z1;r$(ex,Bl.prototype);ex.isPureReactComponent=!0;var o_=Array.isArray,a$=Object.prototype.hasOwnProperty,tx={current:null},i$={key:!0,ref:!0,__self:!0,__source:!0};function s$(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)a$.call(t,n)&&!i$.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,ne=B[re];if(0>>1;reo(Se,q))weo(Re,Se)?(B[re]=Re,B[we]=q,re=we):(B[re]=Se,B[ve]=q,re=ve);else if(weo(Re,q))B[re]=Re,B[we]=q,re=we;else break e}}return U}function o(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=B)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function h(B){if(y=!1,b(B),!g)if(r(u)!==null)g=!0,A(S);else{var U=r(l);U!==null&&H(h,U.startTime-B)}}function S(B,U){g=!1,y&&(y=!1,x(E),E=-1),v=!0;var q=p;try{for(b(U),f=r(u);f!==null&&(!(f.expirationTime>U)||B&&!j());){var re=f.callback;if(typeof re=="function"){f.callback=null,p=f.priorityLevel;var ne=re(f.expirationTime<=U);U=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===r(u)&&n(u),b(U)}else n(u);f=r(u)}if(f!==null)var fe=!0;else{var ve=r(l);ve!==null&&H(h,ve.startTime-U),fe=!1}return fe}finally{f=null,p=q,v=!1}}var C=!1,O=null,E=-1,T=5,$=-1;function j(){return!(e.unstable_now()-$B||125re?(B.sortIndex=q,t(l,B),r(u)===null&&B===r(l)&&(y?(x(E),E=-1):y=!0,H(h,q-re))):(B.sortIndex=ne,t(u,B),g||v||(g=!0,A(S))),B},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(d$);c$.exports=d$;var lN=c$.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var f$=d,gn=lN;function _e(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wy=Object.prototype.hasOwnProperty,uN=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i_={},s_={};function cN(e){return Wy.call(s_,e)?!0:Wy.call(i_,e)?!1:uN.test(e)?s_[e]=!0:(i_[e]=!0,!1)}function dN(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fN(e,t,r,n){if(t===null||typeof t>"u"||dN(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zr(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Sr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Sr[e]=new zr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Sr[t]=new zr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Sr[e]=new zr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Sr[e]=new zr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Sr[e]=new zr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Sr[e]=new zr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Sr[e]=new zr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Sr[e]=new zr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Sr[e]=new zr(e,5,!1,e.toLowerCase(),null,!1,!1)});var nx=/[\-:]([a-z])/g;function ox(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(nx,ox);Sr[t]=new zr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(nx,ox);Sr[t]=new zr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(nx,ox);Sr[t]=new zr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Sr[e]=new zr(e,1,!1,e.toLowerCase(),null,!1,!1)});Sr.xlinkHref=new zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Sr[e]=new zr(e,1,!1,e.toLowerCase(),null,!0,!0)});function ax(e,t,r,n){var o=Sr.hasOwnProperty(t)?Sr[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var u=` -`+o[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Sg=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Nu(e):""}function pN(e){switch(e.tag){case 5:return Nu(e.type);case 16:return Nu("Lazy");case 13:return Nu("Suspense");case 19:return Nu("SuspenseList");case 0:case 2:case 15:return e=Cg(e.type,!1),e;case 11:return e=Cg(e.type.render,!1),e;case 1:return e=Cg(e.type,!0),e;default:return""}}function Gy(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ts:return"Fragment";case Ps:return"Portal";case Hy:return"Profiler";case ix:return"StrictMode";case qy:return"Suspense";case Ky:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v$:return(e.displayName||"Context")+".Consumer";case h$:return(e._context.displayName||"Context")+".Provider";case sx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lx:return t=e.displayName||null,t!==null?t:Gy(e.type)||"Memo";case ma:t=e._payload,e=e._init;try{return Gy(e(t))}catch{}}return null}function hN(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gy(t);case 8:return t===ix?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function g$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vN(e){var t=g$(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ef(e){e._valueTracker||(e._valueTracker=vN(e))}function y$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=g$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function $p(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Qy(e,t){var r=t.checked;return zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function u_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Va(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function b$(e,t){t=t.checked,t!=null&&ax(e,"checked",t,!1)}function Xy(e,t){b$(e,t);var r=Va(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yy(e,t.type,r):t.hasOwnProperty("defaultValue")&&Yy(e,t.type,Va(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function c_(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Yy(e,t,r){(t!=="number"||$p(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Lu=Array.isArray;function Js(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=tf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Qu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mN=["Webkit","ms","Moz","O"];Object.keys(Qu).forEach(function(e){mN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qu[t]=Qu[e]})});function C$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Qu.hasOwnProperty(e)&&Qu[e]?(""+t).trim():t+"px"}function _$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=C$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var gN=zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eb(e,t){if(t){if(gN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_e(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_e(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_e(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_e(62))}}function tb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rb=null;function ux(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nb=null,Zs=null,el=null;function p_(e){if(e=pd(e)){if(typeof nb!="function")throw Error(_e(280));var t=e.stateNode;t&&(t=bv(t),nb(e.stateNode,e.type,t))}}function O$(e){Zs?el?el.push(e):el=[e]:Zs=e}function E$(){if(Zs){var e=Zs,t=el;if(el=Zs=null,p_(e),t)for(e=0;e>>=0,e===0?32:31-(TN(e)/$N|0)|0}var rf=64,nf=4194304;function Du(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ip(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=Du(s):(a&=i,a!==0&&(n=Du(a)))}else i=r&~o,i!==0?n=Du(i):a!==0&&(n=Du(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function dd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yn(t),e[t]=r}function IN(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Yu),S_=String.fromCharCode(32),C_=!1;function q$(e,t){switch(e){case"keyup":return s5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function K$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $s=!1;function u5(e,t){switch(e){case"compositionend":return K$(t);case"keypress":return t.which!==32?null:(C_=!0,S_);case"textInput":return e=t.data,e===S_&&C_?null:e;default:return null}}function c5(e,t){if($s)return e==="compositionend"||!gx&&q$(e,t)?(e=W$(),zf=hx=_a=null,$s=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=P_(r)}}function Y$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Y$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function J$(){for(var e=window,t=$p();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=$p(e.document)}return t}function yx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function b5(e){var t=J$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Y$(r.ownerDocument.documentElement,r)){if(n!==null&&yx(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=T_(r,a);var i=T_(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Rs=null,ub=null,Zu=null,cb=!1;function $_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cb||Rs==null||Rs!==$p(n)||(n=Rs,"selectionStart"in n&&yx(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zu&&Fc(Zu,n)||(Zu=n,n=Fp(ub,"onSelect"),0Is||(e.current=mb[Is],mb[Is]=null,Is--)}function $t(e,t){Is++,mb[Is]=e.current,e.current=t}var Ua={},jr=Ka(Ua),Xr=Ka(!1),Li=Ua;function wl(e,t){var r=e.type.contextTypes;if(!r)return Ua;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Yr(e){return e=e.childContextTypes,e!=null}function Lp(){At(Xr),At(jr)}function F_(e,t,r){if(jr.current!==Ua)throw Error(_e(168));$t(jr,t),$t(Xr,r)}function sR(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(_e(108,hN(e)||"Unknown",o));return zt({},r,n)}function Dp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ua,Li=jr.current,$t(jr,e),$t(Xr,Xr.current),!0}function N_(e,t,r){var n=e.stateNode;if(!n)throw Error(_e(169));r?(e=sR(e,t,Li),n.__reactInternalMemoizedMergedChildContext=e,At(Xr),At(jr),$t(jr,e)):At(Xr),$t(Xr,r)}var zo=null,xv=!1,Ng=!1;function lR(e){zo===null?zo=[e]:zo.push(e)}function k5(e){xv=!0,lR(e)}function Ga(){if(!Ng&&zo!==null){Ng=!0;var e=0,t=gt;try{var r=zo;for(gt=1;e>=i,o-=i,Ho=1<<32-Yn(t)+o|r<E?(T=O,O=null):T=O.sibling;var $=p(x,O,b[E],h);if($===null){O===null&&(O=T);break}e&&O&&$.alternate===null&&t(x,O),m=a($,m,E),C===null?S=$:C.sibling=$,C=$,O=T}if(E===b.length)return r(x,O),Nt&&ci(x,E),S;if(O===null){for(;EE?(T=O,O=null):T=O.sibling;var j=p(x,O,$.value,h);if(j===null){O===null&&(O=T);break}e&&O&&j.alternate===null&&t(x,O),m=a(j,m,E),C===null?S=j:C.sibling=j,C=j,O=T}if($.done)return r(x,O),Nt&&ci(x,E),S;if(O===null){for(;!$.done;E++,$=b.next())$=f(x,$.value,h),$!==null&&(m=a($,m,E),C===null?S=$:C.sibling=$,C=$);return Nt&&ci(x,E),S}for(O=n(x,O);!$.done;E++,$=b.next())$=v(O,x,E,$.value,h),$!==null&&(e&&$.alternate!==null&&O.delete($.key===null?E:$.key),m=a($,m,E),C===null?S=$:C.sibling=$,C=$);return e&&O.forEach(function(M){return t(x,M)}),Nt&&ci(x,E),S}function w(x,m,b,h){if(typeof b=="object"&&b!==null&&b.type===Ts&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Zd:e:{for(var S=b.key,C=m;C!==null;){if(C.key===S){if(S=b.type,S===Ts){if(C.tag===7){r(x,C.sibling),m=o(C,b.props.children),m.return=x,x=m;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ma&&W_(S)===C.type){r(x,C.sibling),m=o(C,b.props),m.ref=wu(x,C,b),m.return=x,x=m;break e}r(x,C);break}else t(x,C);C=C.sibling}b.type===Ts?(m=Ti(b.props.children,x.mode,h,b.key),m.return=x,x=m):(h=Qf(b.type,b.key,b.props,null,x.mode,h),h.ref=wu(x,m,b),h.return=x,x=h)}return i(x);case Ps:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(x,m.sibling),m=o(m,b.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Hg(b,x.mode,h),m.return=x,x=m}return i(x);case ma:return C=b._init,w(x,m,C(b._payload),h)}if(Lu(b))return g(x,m,b,h);if(mu(b))return y(x,m,b,h);df(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(x,m.sibling),m=o(m,b),m.return=x,x=m):(r(x,m),m=Wg(b,x.mode,h),m.return=x,x=m),i(x)):r(x,m)}return w}var Cl=mR(!0),gR=mR(!1),hd={},Co=Ka(hd),Bc=Ka(hd),zc=Ka(hd);function wi(e){if(e===hd)throw Error(_e(174));return e}function Px(e,t){switch($t(zc,t),$t(Bc,e),$t(Co,hd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zy(t,e)}At(Co),$t(Co,t)}function _l(){At(Co),At(Bc),At(zc)}function yR(e){wi(zc.current);var t=wi(Co.current),r=Zy(t,e.type);t!==r&&($t(Bc,e),$t(Co,r))}function Tx(e){Bc.current===e&&(At(Co),At(Bc))}var Dt=Ka(0);function Hp(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lg=[];function $x(){for(var e=0;er?r:4,e(!0);var n=Dg.transition;Dg.transition={};try{e(!1),t()}finally{gt=r,Dg.transition=n}}function AR(){return An().memoizedState}function M5(e,t,r){var n=Ma(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},MR(e))FR(t,r);else if(r=fR(e,t,r,n),r!==null){var o=Lr();Jn(r,e,n,o),NR(r,t,n)}}function F5(e,t,r){var n=Ma(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(MR(e))FR(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,eo(s,i)){var u=t.interleaved;u===null?(o.next=o,Ox(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=fR(e,t,o,n),r!==null&&(o=Lr(),Jn(r,e,n,o),NR(r,t,n))}}function MR(e){var t=e.alternate;return e===Bt||t!==null&&t===Bt}function FR(e,t){ec=qp=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function NR(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,dx(e,r)}}var Kp={readContext:In,useCallback:Er,useContext:Er,useEffect:Er,useImperativeHandle:Er,useInsertionEffect:Er,useLayoutEffect:Er,useMemo:Er,useReducer:Er,useRef:Er,useState:Er,useDebugValue:Er,useDeferredValue:Er,useTransition:Er,useMutableSource:Er,useSyncExternalStore:Er,useId:Er,unstable_isNewReconciler:!1},N5={readContext:In,useCallback:function(e,t){return po().memoizedState=[e,t===void 0?null:t],e},useContext:In,useEffect:q_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Hf(4194308,4,$R.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Hf(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hf(4,2,e,t)},useMemo:function(e,t){var r=po();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=po();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=M5.bind(null,Bt,e),[n.memoizedState,e]},useRef:function(e){var t=po();return e={current:e},t.memoizedState=e},useState:H_,useDebugValue:Ax,useDeferredValue:function(e){return po().memoizedState=e},useTransition:function(){var e=H_(!1),t=e[0];return e=A5.bind(null,e[1]),po().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Bt,o=po();if(Nt){if(r===void 0)throw Error(_e(407));r=r()}else{if(r=t(),fr===null)throw Error(_e(349));Bi&30||wR(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,q_(CR.bind(null,n,a,e),[e]),n.flags|=2048,Wc(9,SR.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=po(),t=fr.identifierPrefix;if(Nt){var r=qo,n=Ho;r=(n&~(1<<32-Yn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Vc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[yo]=t,e[Dc]=n,qR(e,t,!1,!1),t.stateNode=e;e:{switch(i=tb(r,n),r){case"dialog":kt("cancel",e),kt("close",e),o=n;break;case"iframe":case"object":case"embed":kt("load",e),o=n;break;case"video":case"audio":for(o=0;oEl&&(t.flags|=128,n=!0,Su(a,!1),t.lanes=4194304)}else{if(!n)if(e=Hp(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Su(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Nt)return Pr(t),null}else 2*Xt()-a.renderingStartTime>El&&r!==1073741824&&(t.flags|=128,n=!0,Su(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xt(),t.sibling=null,r=Dt.current,$t(Dt,n?r&1|2:r&1),t):(Pr(t),null);case 22:case 23:return Bx(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?fn&1073741824&&(Pr(t),t.subtreeFlags&6&&(t.flags|=8192)):Pr(t),null;case 24:return null;case 25:return null}throw Error(_e(156,t.tag))}function H5(e,t){switch(xx(t),t.tag){case 1:return Yr(t.type)&&Lp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _l(),At(Xr),At(jr),$x(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tx(t),null;case 13:if(At(Dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_e(340));Sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return At(Dt),null;case 4:return _l(),null;case 10:return _x(t.type._context),null;case 22:case 23:return Bx(),null;case 24:return null;default:return null}}var pf=!1,$r=!1,q5=typeof WeakSet=="function"?WeakSet:Set,Le=null;function Ns(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ht(e,t,n)}else r.current=null}function Tb(e,t,r){try{r()}catch(n){Ht(e,t,n)}}var tO=!1;function K5(e,t){if(db=Ap,e=J$(),yx(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==r||o!==0&&f.nodeType!==3||(s=i+o),f!==a||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===o&&(s=i),p===a&&++c===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(fb={focusedElem:e,selectionRange:r},Ap=!1,Le=t;Le!==null;)if(t=Le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Le=e;else for(;Le!==null;){t=Le;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:Un(t.type,y),w);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_e(163))}}catch(h){Ht(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Le=e;break}Le=t.return}return g=tO,tO=!1,g}function tc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Tb(t,r,a)}o=o.next}while(o!==n)}}function Cv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function $b(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function QR(e){var t=e.alternate;t!==null&&(e.alternate=null,QR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yo],delete t[Dc],delete t[vb],delete t[$5],delete t[R5])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function XR(e){return e.tag===5||e.tag===3||e.tag===4}function rO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Np));else if(n!==4&&(e=e.child,e!==null))for(Rb(e,t,r),e=e.sibling;e!==null;)Rb(e,t,r),e=e.sibling}function kb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(kb(e,t,r),e=e.sibling;e!==null;)kb(e,t,r),e=e.sibling}var yr=null,Wn=!1;function ca(e,t,r){for(r=r.child;r!==null;)YR(e,t,r),r=r.sibling}function YR(e,t,r){if(So&&typeof So.onCommitFiberUnmount=="function")try{So.onCommitFiberUnmount(vv,r)}catch{}switch(r.tag){case 5:$r||Ns(r,t);case 6:var n=yr,o=Wn;yr=null,ca(e,t,r),yr=n,Wn=o,yr!==null&&(Wn?(e=yr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):yr.removeChild(r.stateNode));break;case 18:yr!==null&&(Wn?(e=yr,r=r.stateNode,e.nodeType===8?Fg(e.parentNode,r):e.nodeType===1&&Fg(e,r),Ac(e)):Fg(yr,r.stateNode));break;case 4:n=yr,o=Wn,yr=r.stateNode.containerInfo,Wn=!0,ca(e,t,r),yr=n,Wn=o;break;case 0:case 11:case 14:case 15:if(!$r&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Tb(r,t,i),o=o.next}while(o!==n)}ca(e,t,r);break;case 1:if(!$r&&(Ns(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ht(r,t,s)}ca(e,t,r);break;case 21:ca(e,t,r);break;case 22:r.mode&1?($r=(n=$r)||r.memoizedState!==null,ca(e,t,r),$r=n):ca(e,t,r);break;default:ca(e,t,r)}}function nO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new q5),t.forEach(function(n){var o=rL.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Vn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=Xt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Q5(n/1960))-n,10e?16:e,Oa===null)var n=!1;else{if(e=Oa,Oa=null,Xp=0,dt&6)throw Error(_e(331));var o=dt;for(dt|=4,Le=e.current;Le!==null;){var a=Le,i=a.child;if(Le.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uXt()-Lx?Pi(e,0):Nx|=r),Jr(e,t)}function ak(e,t){t===0&&(e.mode&1?(t=nf,nf<<=1,!(nf&130023424)&&(nf=4194304)):t=1);var r=Lr();e=Yo(e,t),e!==null&&(dd(e,t,r),Jr(e,r))}function tL(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ak(e,r)}function rL(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(_e(314))}n!==null&&n.delete(t),ak(e,r)}var ik;ik=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xr.current)Gr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Gr=!1,U5(e,t,r);Gr=!!(e.flags&131072)}else Gr=!1,Nt&&t.flags&1048576&&uR(t,zp,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;qf(e,t),e=t.pendingProps;var o=wl(t,jr.current);rl(t,r),o=kx(null,t,n,e,o,r);var a=jx();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yr(n)?(a=!0,Dp(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ex(t),o.updater=wv,t.stateNode=o,o._reactInternals=t,wb(t,n,e,r),t=_b(null,t,n,!0,a,r)):(t.tag=0,Nt&&a&&bx(t),Fr(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(qf(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=oL(n),e=Un(n,e),o){case 0:t=Cb(null,t,n,e,r);break e;case 1:t=J_(null,t,n,e,r);break e;case 11:t=X_(null,t,n,e,r);break e;case 14:t=Y_(null,t,n,Un(n.type,e),r);break e}throw Error(_e(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Un(n,o),Cb(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Un(n,o),J_(e,t,n,o,r);case 3:e:{if(UR(t),e===null)throw Error(_e(387));n=t.pendingProps,a=t.memoizedState,o=a.element,pR(e,t),Wp(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Ol(Error(_e(423)),t),t=Z_(e,t,n,r,o);break e}else if(n!==o){o=Ol(Error(_e(424)),t),t=Z_(e,t,n,r,o);break e}else for(hn=ja(t.stateNode.containerInfo.firstChild),vn=t,Nt=!0,Hn=null,r=gR(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Sl(),n===o){t=Jo(e,t,r);break e}Fr(e,t,n,r)}t=t.child}return t;case 5:return yR(t),e===null&&yb(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,pb(n,o)?i=null:a!==null&&pb(n,a)&&(t.flags|=32),VR(e,t),Fr(e,t,i,r),t.child;case 6:return e===null&&yb(t),null;case 13:return WR(e,t,r);case 4:return Px(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Cl(t,null,n,r):Fr(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Un(n,o),X_(e,t,n,o,r);case 7:return Fr(e,t,t.pendingProps,r),t.child;case 8:return Fr(e,t,t.pendingProps.children,r),t.child;case 12:return Fr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,$t(Vp,n._currentValue),n._currentValue=i,a!==null)if(eo(a.value,i)){if(a.children===o.children&&!Xr.current){t=Jo(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=Ko(-1,r&-r),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),bb(a.return,r,t),s.lanes|=r;break}u=u.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(_e(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),bb(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Fr(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,rl(t,r),o=In(o),n=n(o),t.flags|=1,Fr(e,t,n,r),t.child;case 14:return n=t.type,o=Un(n,t.pendingProps),o=Un(n.type,o),Y_(e,t,n,o,r);case 15:return BR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Un(n,o),qf(e,t),t.tag=1,Yr(n)?(e=!0,Dp(t)):e=!1,rl(t,r),vR(t,n,o),wb(t,n,o,r),_b(null,t,n,!0,e,r);case 19:return HR(e,t,r);case 22:return zR(e,t,r)}throw Error(_e(156,t.tag))};function sk(e,t){return I$(e,t)}function nL(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(e,t,r,n){return new nL(e,t,r,n)}function Vx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oL(e){if(typeof e=="function")return Vx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sx)return 11;if(e===lx)return 14}return 2}function Fa(e,t){var r=e.alternate;return r===null?(r=Rn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Qf(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")Vx(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ts:return Ti(r.children,o,a,t);case ix:i=8,o|=8;break;case Hy:return e=Rn(12,r,t,o|2),e.elementType=Hy,e.lanes=a,e;case qy:return e=Rn(13,r,t,o),e.elementType=qy,e.lanes=a,e;case Ky:return e=Rn(19,r,t,o),e.elementType=Ky,e.lanes=a,e;case m$:return Ov(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case h$:i=10;break e;case v$:i=9;break e;case sx:i=11;break e;case lx:i=14;break e;case ma:i=16,n=null;break e}throw Error(_e(130,e==null?e:typeof e,""))}return t=Rn(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Ti(e,t,r,n){return e=Rn(7,e,n,t),e.lanes=r,e}function Ov(e,t,r,n){return e=Rn(22,e,n,t),e.elementType=m$,e.lanes=r,e.stateNode={isHidden:!1},e}function Wg(e,t,r){return e=Rn(6,e,null,t),e.lanes=r,e}function Hg(e,t,r){return t=Rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aL(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Og(0),this.expirationTimes=Og(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Og(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ux(e,t,r,n,o,a,i,s,u){return e=new aL(e,t,r,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Rn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ex(a),e}function iL(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dk)}catch(e){console.error(e)}}dk(),u$.exports=xn;var vd=u$.exports;const zu=Jt(vd);var dO=vd;Uy.createRoot=dO.createRoot,Uy.hydrateRoot=dO.hydrateRoot;var dL={id:""},fL={login:function(){return Promise.resolve()},logout:function(){return Promise.resolve()},checkAuth:function(){return Promise.resolve()},checkError:function(){return Promise.resolve()},getPermissions:function(){return Promise.resolve()},getIdentity:function(){return Promise.resolve(dL)}},fk=d.createContext(fL);fk.displayName="AuthContext";const pk=fk;var Rv={loginUrl:"/login",afterLoginUrl:"/"},pL=function(){return d.useContext(pk)};const na=pL;function Fb(e,t){return Fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Fb(e,t)}function no(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fb(e,t)}var Ul=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(n){var o=this,a=n||function(){};return this.listeners.push(a),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(i){return i!==a}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function br(){}function hL(e,t){return typeof e=="function"?e(t):e}function Nb(e){return typeof e=="number"&&e>=0&&e!==1/0}function eh(e){return Array.isArray(e)?e:[e]}function hk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xf(e,t,r){return md(e)?typeof t=="function"?P({},r,{queryKey:e,queryFn:t}):P({},t,{queryKey:e}):e}function vL(e,t,r){return md(e)?typeof t=="function"?P({},r,{mutationKey:e,mutationFn:t}):P({},t,{mutationKey:e}):typeof e=="function"?P({},t,{mutationFn:e}):P({},e)}function ya(e,t,r){return md(e)?[P({},t,{queryKey:e}),r]:[e||{},t]}function mL(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e??!t;return r?"active":"inactive"}function fO(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,u=e.stale;if(md(s)){if(n){if(t.queryHash!==Kx(s,t.options))return!1}else if(!th(t.queryKey,s))return!1}var l=mL(r,a);if(l==="none")return!1;if(l!=="all"){var c=t.isActive();if(l==="active"&&!c||l==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function pO(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(md(a)){if(!t.options.mutationKey)return!1;if(r){if(Si(t.options.mutationKey)!==Si(a))return!1}else if(!th(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function Kx(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||Si;return r(e)}function Si(e){var t=eh(e);return gL(t)}function gL(e){return JSON.stringify(e,function(t,r){return Lb(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function th(e,t){return vk(eh(e),eh(t))}function vk(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!vk(e[r],t[r])}):!1}function rh(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||Lb(e)&&Lb(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,u=0;u"u")return!0;var r=t.prototype;return!(!hO(r)||!r.hasOwnProperty("isPrototypeOf"))}function hO(e){return Object.prototype.toString.call(e)==="[object Object]"}function md(e){return typeof e=="string"||Array.isArray(e)}function bL(e){return new Promise(function(t){setTimeout(t,e)})}function vO(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function mk(){if(typeof AbortController=="function")return new AbortController}var xL=function(e){no(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Zp&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setFocused(s):i.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Ul),oc=new xL,wL=function(e){no(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Zp&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setOnline(s):i.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Ul),Yf=new wL;function SL(e){return Math.min(1e3*Math.pow(2,e),3e4)}function nh(e){return typeof(e==null?void 0:e.cancel)=="function"}var gk=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Jf(e){return e instanceof gk}var yk=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(p){return o==null?void 0:o(p)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(p,v){i=p,s=v});var u=function(v){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(v),a==null||a(),i(v))},l=function(v){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(v),a==null||a(),s(v))},c=function(){return new Promise(function(v){a=v,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function p(){if(!r.isResolved){var v;try{v=t.fn()}catch(g){v=Promise.reject(g)}o=function(y){if(!r.isResolved&&(l(new gk(y)),r.abort==null||r.abort(),nh(v)))try{v.cancel()}catch{}},r.isTransportCancelable=nh(v),Promise.resolve(v).then(u).catch(function(g){var y,w;if(!r.isResolved){var x=(y=t.retry)!=null?y:3,m=(w=t.retryDelay)!=null?w:SL,b=typeof m=="function"?m(r.failureCount,g):m,h=x===!0||typeof x=="number"&&r.failureCount"u"&&(s.exact=!0),this.queries.find(function(u){return fO(s,u)})},r.findAll=function(o,a){var i=ya(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(u){return fO(s,u)}):this.queries},r.notify=function(o){var a=this;Tt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;Tt.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;Tt.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(Ul),PL=function(){function e(r){this.options=P({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||xk(),this.meta=r.meta}var t=e.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(o){return o!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(br).catch(br)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),i.then(function(){return n.executeMutation()}).then(function(s){o=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(o,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(o,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(o,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:o}),o}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),oh().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,o;return this.retryer=new yk({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var o=this;this.state=TL(this.state,n),Tt.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function xk(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function TL(e,t){switch(t.type){case"failed":return P({},e,{failureCount:e.failureCount+1});case"pause":return P({},e,{isPaused:!0});case"continue":return P({},e,{isPaused:!1});case"loading":return P({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return P({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return P({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return P({},e,t.state);default:return e}}var $L=function(e){no(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.mutations=[],o.mutationId=0,o}var r=t.prototype;return r.build=function(o,a,i){var s=new PL({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;Tt.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return pO(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return pO(o,a)})},r.notify=function(o){var a=this;Tt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return Tt.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(br)})},Promise.resolve())})},t}(Ul);function RL(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,u=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,l=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,c=l==null?void 0:l.pageParam,f=(l==null?void 0:l.direction)==="forward",p=(l==null?void 0:l.direction)==="backward",v=((i=t.state.data)==null?void 0:i.pages)||[],g=((s=t.state.data)==null?void 0:s.pageParams)||[],y=mk(),w=y==null?void 0:y.signal,x=g,m=!1,b=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},h=function(N,D,A,H){return x=H?[D].concat(x):[].concat(x,[D]),H?[A].concat(N):[].concat(N,[A])},S=function(N,D,A,H){if(m)return Promise.reject("Cancelled");if(typeof A>"u"&&!D&&N.length)return Promise.resolve(N);var B={queryKey:t.queryKey,signal:w,pageParam:A,meta:t.meta},U=b(B),q=Promise.resolve(U).then(function(ne){return h(N,A,ne,H)});if(nh(U)){var re=q;re.cancel=U.cancel}return q},C;if(!v.length)C=S([]);else if(f){var O=typeof c<"u",E=O?c:mO(t.options,v);C=S(v,O,E)}else if(p){var T=typeof c<"u",$=T?c:kL(t.options,v);C=S(v,T,$,!0)}else(function(){x=[];var k=typeof t.options.getNextPageParam>"u",N=u&&v[0]?u(v[0],0,v):!0;C=N?S([],k,g[0]):Promise.resolve(h([],g[0],v[0]));for(var D=function(B){C=C.then(function(U){var q=u&&v[B]?u(v[B],B,v):!0;if(q){var re=k?g[B]:mO(t.options,U);return S(U,k,re)}return Promise.resolve(h(U,g[B],v[B]))})},A=1;A"u"&&(c.revert=!0);var f=Tt.batch(function(){return i.queryCache.findAll(u).map(function(p){return p.cancel(c)})});return Promise.all(f).then(br).catch(br)},t.invalidateQueries=function(n,o,a){var i,s,u,l=this,c=ya(n,o,a),f=c[0],p=c[1],v=P({},f,{active:(i=(s=f.refetchActive)!=null?s:f.active)!=null?i:!0,inactive:(u=f.refetchInactive)!=null?u:!1});return Tt.batch(function(){return l.queryCache.findAll(f).forEach(function(g){g.invalidate()}),l.refetchQueries(v,p)})},t.refetchQueries=function(n,o,a){var i=this,s=ya(n,o,a),u=s[0],l=s[1],c=Tt.batch(function(){return i.queryCache.findAll(u).map(function(p){return p.fetch(void 0,P({},l,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),f=Promise.all(c).then(br);return l!=null&&l.throwOnError||(f=f.catch(br)),f},t.fetchQuery=function(n,o,a){var i=Xf(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);var u=this.queryCache.build(this,s);return u.isStaleByTime(s.staleTime)?u.fetch(s):Promise.resolve(u.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then(br).catch(br)},t.fetchInfiniteQuery=function(n,o,a){var i=Xf(n,o,a);return i.behavior=RL(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(br).catch(br)},t.cancelMutations=function(){var n=this,o=Tt.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(br).catch(br)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,o){var a=this.queryDefaults.find(function(i){return Si(n)===Si(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:n,defaultOptions:o})},t.getQueryDefaults=function(n){var o;return n?(o=this.queryDefaults.find(function(a){return th(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return Si(n)===Si(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:n,defaultOptions:o})},t.getMutationDefaults=function(n){var o;return n?(o=this.mutationDefaults.find(function(a){return th(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=P({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=Kx(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:P({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),IL=function(e){no(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),gO(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return Db(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return Db(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,a){var i=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var u=this.hasListeners();u&&yO(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),u&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();u&&(this.currentQuery!==s||this.options.enabled!==i.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},r.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,a){var i=this,s={},u=function(c){i.trackedProps.includes(c)||i.trackedProps.push(c)};return Object.keys(o).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return u(l),o[l]}})}),(a.useErrorBoundary||a.suspense)&&u("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var u=a.subscribe(function(l){l.isFetching||(u(),l.isError&&(o!=null&&o.throwOnError)?s(l.error):i(l))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch(P({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return s.fetch().then(function(){return a.createResult(s,i)})},r.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},r.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(br)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(Zp||this.currentResult.isStale||!Nb(this.options.staleTime))){var a=hk(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(Zp||this.options.enabled===!1||!Nb(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||oc.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(o,a){var i=this.currentQuery,s=this.options,u=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,f=o!==i,p=f?o.state:this.currentQueryInitialState,v=f?this.currentResult:this.previousQueryResult,g=o.state,y=g.dataUpdatedAt,w=g.error,x=g.errorUpdatedAt,m=g.isFetching,b=g.status,h=!1,S=!1,C;if(a.optimisticResults){var O=this.hasListeners(),E=!O&&gO(o,a),T=O&&yO(o,i,a,s);(E||T)&&(m=!0,y||(b="loading"))}if(a.keepPreviousData&&!g.dataUpdateCount&&(v!=null&&v.isSuccess)&&b!=="error")C=v.data,y=v.dataUpdatedAt,b=v.status,h=!0;else if(a.select&&typeof g.data<"u")if(u&&g.data===(l==null?void 0:l.data)&&a.select===this.selectFn)C=this.selectResult;else try{this.selectFn=a.select,C=a.select(g.data),a.structuralSharing!==!1&&(C=rh(u==null?void 0:u.data,C)),this.selectResult=C,this.selectError=null}catch(M){oh().error(M),this.selectError=M}else C=g.data;if(typeof a.placeholderData<"u"&&typeof C>"u"&&(b==="loading"||b==="idle")){var $;if(u!=null&&u.isPlaceholderData&&a.placeholderData===(c==null?void 0:c.placeholderData))$=u.data;else if($=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof $<"u")try{$=a.select($),a.structuralSharing!==!1&&($=rh(u==null?void 0:u.data,$)),this.selectError=null}catch(M){oh().error(M),this.selectError=M}typeof $<"u"&&(b="success",C=$,S=!0)}this.selectError&&(w=this.selectError,C=this.selectResult,x=Date.now(),b="error");var j={status:b,isLoading:b==="loading",isSuccess:b==="success",isError:b==="error",isIdle:b==="idle",data:C,dataUpdatedAt:y,error:w,errorUpdatedAt:x,failureCount:g.fetchFailureCount,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:m,isRefetching:m&&b!=="loading",isLoadingError:b==="error"&&g.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:h,isRefetchError:b==="error"&&g.dataUpdatedAt!==0,isStale:Gx(o,a),refetch:this.refetch,remove:this.remove};return j},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,u=i.notifyOnChangePropsExclusions;if(!s&&!u||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(c){var f=c,p=o[f]!==a[f],v=l==null?void 0:l.some(function(y){return y===c}),g=u==null?void 0:u.some(function(y){return y===c});return p&&!g&&(!l||v)})},r.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!yL(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(P({},i,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!Jf(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;Tt.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(Ul);function AL(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function gO(e,t){return AL(e,t)||e.state.dataUpdatedAt>0&&Db(e,t,t.refetchOnMount)}function Db(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Gx(e,t)}return!1}function yO(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Gx(e,r)}function Gx(e,t){return e.isStaleByTime(t.staleTime)}var ML=function(e){no(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.setOptions(o),a.bindMethods(),a.updateResult(),a}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var a={listeners:!0};o.type==="success"?a.onSuccess=!0:o.type==="error"&&(a.onError=!0),this.notify(a)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,P({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:xk(),a=P({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},r.notify=function(o){var a=this;Tt.batch(function(){a.mutateOptions&&(o.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):o.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)})})},t}(Ul),FL=zu.unstable_batchedUpdates;Tt.setBatchNotifyFunction(FL);var NL=console;_L(NL);var bO=he.createContext(void 0),wk=he.createContext(!1);function Sk(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bO),window.ReactQueryClientContext):bO}var oo=function(){var t=he.useContext(Sk(he.useContext(wk)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},LL=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;he.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=Sk(o);return he.createElement(wk.Provider,{value:o},he.createElement(i.Provider,{value:r},a))};function DL(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var BL=he.createContext(DL()),zL=function(){return he.useContext(BL)};function Ck(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function kv(e,t,r){var n=he.useRef(!1),o=he.useState(0),a=o[1],i=vL(e,t,r),s=oo(),u=he.useRef();u.current?u.current.setOptions(i):u.current=new ML(s,i);var l=u.current.getCurrentResult();he.useEffect(function(){n.current=!0;var f=u.current.subscribe(Tt.batchCalls(function(){n.current&&a(function(p){return p+1})}));return function(){n.current=!1,f()}},[]);var c=he.useCallback(function(f,p){u.current.mutate(f,p).catch(br)},[]);if(l.error&&Ck(void 0,u.current.options.useErrorBoundary,[l.error]))throw l.error;return P({},l,{mutate:c,mutateAsync:l.mutate})}function VL(e,t){var r=he.useRef(!1),n=he.useState(0),o=n[1],a=oo(),i=zL(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Tt.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Tt.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Tt.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(i.isReset()||(s.retryOnMount=!1));var u=he.useState(function(){return new t(a,s)}),l=u[0],c=l.getOptimisticResult(s);if(he.useEffect(function(){r.current=!0,i.clearReset();var f=l.subscribe(Tt.batchCalls(function(){r.current&&o(function(p){return p+1})}));return l.updateResult(),function(){r.current=!1,f()}},[i,l]),he.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&c.isLoading)throw l.fetchOptimistic(s).then(function(f){var p=f.data;s.onSuccess==null||s.onSuccess(p),s.onSettled==null||s.onSettled(p,null)}).catch(function(f){i.clearReset(),s.onError==null||s.onError(f),s.onSettled==null||s.onSettled(void 0,f)});if(c.isError&&!i.isReset()&&!c.isFetching&&Ck(s.suspense,s.useErrorBoundary,[c.error,l.getCurrentQuery()]))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=l.trackResult(c,s)),c}function ts(e,t,r){var n=Xf(e,t,r);return VL(n,IL)}/** - * @remix-run/router v1.14.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Qx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xO(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function gd(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var wO;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(wO||(wO={}));function UL(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?gd(t):t,o=Xx(n.pathname||"/",r);if(o==null)return null;let a=_k(e);WL(a);let i=null;for(let s=0;i==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};u.relativePath.startsWith("/")&&(Yt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=Na([n,u.relativePath]),c=r.concat(u);a.children&&a.children.length>0&&(Yt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),_k(a.children,t,c,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:YL(l,a.index),routesMeta:c})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let u of Ok(a.path))o(a,i,u)}),t}function Ok(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=Ok(n.join("/")),s=[];return s.push(...i.map(u=>u===""?a:[a,u].join("/"))),o&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function WL(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:JL(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const HL=/^:[\w-]+$/,qL=3,KL=2,GL=1,QL=10,XL=-2,SO=e=>e==="*";function YL(e,t){let r=e.split("/"),n=r.length;return r.some(SO)&&(n+=XL),t&&(n+=KL),r.filter(o=>!SO(o)).reduce((o,a)=>o+(HL.test(a)?qL:a===""?GL:QL),n)}function JL(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function ZL(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{let{paramName:p,isOptional:v}=c;if(p==="*"){let y=s[f]||"";i=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?l[p]=void 0:l[p]=rD(g||"",p),l},{}),pathname:a,pathnameBase:i,pattern:e}}function eD(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Qx(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function tD(e){try{return decodeURI(e)}catch(t){return Qx(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function rD(e,t){try{return decodeURIComponent(e)}catch(r){return Qx(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Xx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function nD(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?gd(e):e;return{pathname:r?r.startsWith("/")?r:oD(r,t):t,search:sD(n),hash:lD(o)}}function oD(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function qg(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function aD(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Yx(e,t){let r=aD(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Jx(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=gd(e):(o=Bb({},e),Yt(!o.pathname||!o.pathname.includes("?"),qg("?","pathname","search",o)),Yt(!o.pathname||!o.pathname.includes("#"),qg("#","pathname","hash",o)),Yt(!o.search||!o.search.includes("#"),qg("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=nD(o,s),l=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Na=e=>e.join("/").replace(/\/\/+/g,"/"),iD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,lD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function uD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Pk=["post","put","patch","delete"];new Set(Pk);const cD=["get",...Pk];new Set(cD);/** - * React Router v6.21.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;tEk(e,t),[t,e])}function $k(e){d.useContext(oa).static||d.useLayoutEffect(e)}function $o(){let{isDataRoute:e}=d.useContext(To);return e?TD():hD()}function hD(){Qa()||Yt(!1);let e=d.useContext(Zx),{basename:t,future:r,navigator:n}=d.useContext(oa),{matches:o}=d.useContext(To),{pathname:a}=Ir(),i=JSON.stringify(Yx(o,r.v7_relativeSplatPath)),s=d.useRef(!1);return $k(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=Jx(l,JSON.parse(i),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Na([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,a,e])}const vD=d.createContext(null);function mD(e){let t=d.useContext(To).outlet;return t&&d.createElement(vD.Provider,{value:e},t)}function ew(){let{matches:e}=d.useContext(To),t=e[e.length-1];return t?t.params:{}}function Rk(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(oa),{matches:o}=d.useContext(To),{pathname:a}=Ir(),i=JSON.stringify(Yx(o,n.v7_relativeSplatPath));return d.useMemo(()=>Jx(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function gD(e,t){return yD(e,t)}function yD(e,t,r,n){Qa()||Yt(!1);let{navigator:o}=d.useContext(oa),{matches:a}=d.useContext(To),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=Ir(),c;if(t){var f;let w=typeof t=="string"?gd(t):t;u==="/"||(f=w.pathname)!=null&&f.startsWith(u)||Yt(!1),c=w}else c=l;let p=c.pathname||"/",v=u==="/"?p:p.slice(u.length)||"/",g=UL(e,{pathname:v}),y=CD(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Na([u,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:Na([u,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,r,n);return t&&y?d.createElement(jv.Provider,{value:{location:qc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ah.Pop}},y):y}function bD(){let e=PD(),t=uD(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:o},r):null,a)}const xD=d.createElement(bD,null);class wD extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(To.Provider,{value:this.props.routeContext},d.createElement(Tk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function SD(e){let{routeContext:t,match:r,children:n}=e,o=d.useContext(Zx);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(To.Provider,{value:t},n)}function CD(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id]));c>=0||Yt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let v,g=!1,y=null,w=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||xD,u&&(l<0&&p===0?($D("route-fallback",!1),g=!0,w=null):l===p&&(g=!0,w=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let b;return v?b=y:g?b=w:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,d.createElement(SD,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(wD,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var kk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kk||{}),ih=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ih||{});function _D(e){let t=d.useContext(Zx);return t||Yt(!1),t}function OD(e){let t=d.useContext(dD);return t||Yt(!1),t}function ED(e){let t=d.useContext(To);return t||Yt(!1),t}function jk(e){let t=ED(),r=t.matches[t.matches.length-1];return r.route.id||Yt(!1),r.route.id}function PD(){var e;let t=d.useContext(Tk),r=OD(ih.UseRouteError),n=jk(ih.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function TD(){let{router:e}=_D(kk.UseNavigateStable),t=jk(ih.UseNavigateStable),r=d.useRef(!1);return $k(()=>{r.current=!0}),d.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qc({fromRouteId:t},a)))},[e,t])}const CO={};function $D(e,t,r){!t&&!CO[e]&&(CO[e]=!0)}function RD(e){let{to:t,replace:r,state:n,relative:o}=e;Qa()||Yt(!1);let{future:a,static:i}=d.useContext(oa),{matches:s}=d.useContext(To),{pathname:u}=Ir(),l=$o(),c=Jx(t,Yx(s,a.v7_relativeSplatPath),u,o==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:o}),[l,f,o,r,n]),null}function kD(e){return mD(e.context)}function kr(e){Yt(!1)}function jD(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ah.Pop,navigator:a,static:i=!1,future:s}=e;Qa()&&Yt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:a,static:i,future:qc({v7_relativeSplatPath:!1},s)}),[u,s,a,i]);typeof n=="string"&&(n=gd(n));let{pathname:c="/",search:f="",hash:p="",state:v=null,key:g="default"}=n,y=d.useMemo(()=>{let w=Xx(c,u);return w==null?null:{location:{pathname:w,search:f,hash:p,state:v,key:g},navigationType:o}},[u,c,f,p,v,g,o]);return y==null?null:d.createElement(oa.Provider,{value:l},d.createElement(jv.Provider,{children:r,value:y}))}function ol(e){let{children:t,location:r}=e;return gD(zb(t),r)}new Promise(()=>{});function zb(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,o)=>{if(!d.isValidElement(n))return;let a=[...t,o];if(n.type===d.Fragment){r.push.apply(r,zb(n.props.children,a));return}n.type!==kr&&Yt(!1),!n.props.index||!n.props.children||Yt(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=zb(n.props.children,a)),r.push(i)}),r}/** - * React Router DOM v6.21.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function AD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function MD(e,t){return e.button===0&&(!t||t==="_self")&&!AD(e)}const FD=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ND=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zo=d.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=ID(t,FD),{basename:v}=d.useContext(oa),g,y=!1;if(typeof l=="string"&&LD.test(l)&&(g=l,ND))try{let b=new URL(window.location.href),h=l.startsWith("//")?new URL(b.protocol+l):new URL(l),S=Xx(h.pathname,v);h.origin===b.origin&&S!=null?l=S+h.search+h.hash:y=!0}catch{}let w=fD(l,{relative:o}),x=DD(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:o,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||x(b)}return d.createElement("a",Vb({},p,{href:g||w,onClick:y||a?n:m,ref:r,target:u}))});var _O;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_O||(_O={}));var OO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(OO||(OO={}));function DD(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=$o(),l=Ir(),c=Rk(e,{relative:i});return d.useCallback(f=>{if(MD(f,r)){f.preventDefault();let p=n!==void 0?n:xO(l)===xO(c);u(e,{replace:p,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,u,c,n,o,r,e,a,i,s])}var BD="RaStore",zD=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},Ub=zD(),VD=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(BD).concat(t),n=r.length,o={},a=function(s,u){Object.keys(o).forEach(function(l){o[l]&&o[l].key===s&&o[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?EO(s.newValue):void 0;Object.keys(o).forEach(function(f){o[f]&&o[f].key===l&&(c===null?o[f].callback(void 0):o[f].callback(c??void 0))})}};return{setup:function(){if(Ub){var s=Fo().getItem("".concat(r,".version"));if(s&&s!==e){var u=Fo();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}Fo().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){Ub&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=Fo().getItem("".concat(r,".").concat(s));return l==null?u:EO(l)},setItem:function(s,u){u===void 0?Fo().removeItem("".concat(r,".").concat(s)):Fo().setItem("".concat(r,".").concat(s),JSON.stringify(u)),a(s,u)},removeItem:function(s){Fo().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var u=Fo();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);a(c,void 0)}})},reset:function(){var s=Fo();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);a(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return o[l]={key:s,callback:u},function(){delete o[l]}}}},EO=function(e){try{return JSON.parse(e)}catch{return e}},UD=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,o){o.startsWith(t)&&r.valuesMap.delete(o)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),WD=new UD,Fo=function(){return Ub?window.localStorage:WD},HD=typeof Wo=="object"&&Wo&&Wo.Object===Object&&Wo,Ik=HD,qD=Ik,KD=typeof self=="object"&&self&&self.Object===Object&&self,GD=qD||KD||Function("return this")(),ao=GD,QD=ao,XD=QD.Symbol,Wl=XD,PO=Wl,Ak=Object.prototype,YD=Ak.hasOwnProperty,JD=Ak.toString,_u=PO?PO.toStringTag:void 0;function ZD(e){var t=YD.call(e,_u),r=e[_u];try{e[_u]=void 0;var n=!0}catch{}var o=JD.call(e);return n&&(t?e[_u]=r:delete e[_u]),o}var e6=ZD,t6=Object.prototype,r6=t6.toString;function n6(e){return r6.call(e)}var o6=n6,TO=Wl,a6=e6,i6=o6,s6="[object Null]",l6="[object Undefined]",$O=TO?TO.toStringTag:void 0;function u6(e){return e==null?e===void 0?l6:s6:$O&&$O in Object(e)?a6(e):i6(e)}var Hl=u6;function c6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dn=c6,d6=Hl,f6=Dn,p6="[object AsyncFunction]",h6="[object Function]",v6="[object GeneratorFunction]",m6="[object Proxy]";function g6(e){if(!f6(e))return!1;var t=d6(e);return t==h6||t==v6||t==p6||t==m6}var tw=g6,y6=ao,b6=y6["__core-js_shared__"],x6=b6,Kg=x6,RO=function(){var e=/[^.]+$/.exec(Kg&&Kg.keys&&Kg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function w6(e){return!!RO&&RO in e}var S6=w6,C6=Function.prototype,_6=C6.toString;function O6(e){if(e!=null){try{return _6.call(e)}catch{}try{return e+""}catch{}}return""}var Mk=O6,E6=tw,P6=S6,T6=Dn,$6=Mk,R6=/[\\^$.*+?()[\]{}|]/g,k6=/^\[object .+?Constructor\]$/,j6=Function.prototype,I6=Object.prototype,A6=j6.toString,M6=I6.hasOwnProperty,F6=RegExp("^"+A6.call(M6).replace(R6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function N6(e){if(!T6(e)||P6(e))return!1;var t=E6(e)?F6:k6;return t.test($6(e))}var L6=N6;function D6(e,t){return e==null?void 0:e[t]}var B6=D6,z6=L6,V6=B6;function U6(e,t){var r=V6(e,t);return z6(r)?r:void 0}var rs=U6,W6=rs,H6=function(){try{var e=W6(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fk=H6,kO=Fk;function q6(e,t,r){t=="__proto__"&&kO?kO(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var rw=q6;function K6(e,t){return e===t||e!==e&&t!==t}var ql=K6,G6=rw,Q6=ql,X6=Object.prototype,Y6=X6.hasOwnProperty;function J6(e,t,r){var n=e[t];(!(Y6.call(e,t)&&Q6(n,r))||r===void 0&&!(t in e))&&G6(e,t,r)}var nw=J6,Z6=Array.isArray,io=Z6;function eB(e){return e!=null&&typeof e=="object"}var aa=eB,tB=Hl,rB=aa,nB="[object Symbol]";function oB(e){return typeof e=="symbol"||rB(e)&&tB(e)==nB}var Iv=oB,aB=io,iB=Iv,sB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lB=/^\w*$/;function uB(e,t){if(aB(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||iB(e)?!0:lB.test(e)||!sB.test(e)||t!=null&&e in Object(t)}var ow=uB,cB=rs,dB=cB(Object,"create"),Av=dB,jO=Av;function fB(){this.__data__=jO?jO(null):{},this.size=0}var pB=fB;function hB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vB=hB,mB=Av,gB="__lodash_hash_undefined__",yB=Object.prototype,bB=yB.hasOwnProperty;function xB(e){var t=this.__data__;if(mB){var r=t[e];return r===gB?void 0:r}return bB.call(t,e)?t[e]:void 0}var wB=xB,SB=Av,CB=Object.prototype,_B=CB.hasOwnProperty;function OB(e){var t=this.__data__;return SB?t[e]!==void 0:_B.call(t,e)}var EB=OB,PB=Av,TB="__lodash_hash_undefined__";function $B(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=PB&&t===void 0?TB:t,this}var RB=$B,kB=pB,jB=vB,IB=wB,AB=EB,MB=RB;function Kl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var YB=XB,JB=Mv;function ZB(e,t){var r=this.__data__,n=JB(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var e8=ZB,t8=LB,r8=HB,n8=GB,o8=YB,a8=e8;function Gl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&eo?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++ns))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,v=r&_z?new xz:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e<=w7}var hw=S7,C7=Hl,_7=hw,O7=aa,E7="[object Arguments]",P7="[object Array]",T7="[object Boolean]",$7="[object Date]",R7="[object Error]",k7="[object Function]",j7="[object Map]",I7="[object Number]",A7="[object Object]",M7="[object RegExp]",F7="[object Set]",N7="[object String]",L7="[object WeakMap]",D7="[object ArrayBuffer]",B7="[object DataView]",z7="[object Float32Array]",V7="[object Float64Array]",U7="[object Int8Array]",W7="[object Int16Array]",H7="[object Int32Array]",q7="[object Uint8Array]",K7="[object Uint8ClampedArray]",G7="[object Uint16Array]",Q7="[object Uint32Array]",It={};It[z7]=It[V7]=It[U7]=It[W7]=It[H7]=It[q7]=It[K7]=It[G7]=It[Q7]=!0;It[E7]=It[P7]=It[D7]=It[T7]=It[B7]=It[$7]=It[R7]=It[k7]=It[j7]=It[I7]=It[A7]=It[M7]=It[F7]=It[N7]=It[L7]=!1;function X7(e){return O7(e)&&_7(e.length)&&!!It[C7(e)]}var Y7=X7;function J7(e){return function(t){return e(t)}}var Hv=J7,uh={exports:{}};uh.exports;(function(e,t){var r=Ik,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(uh,uh.exports);var vw=uh.exports,Z7=Y7,eV=Hv,WO=vw,HO=WO&&WO.isTypedArray,tV=HO?eV(HO):Z7,mw=tV,rV=u7,nV=Uv,oV=io,aV=Wv,iV=Lv,sV=mw,lV=Object.prototype,uV=lV.hasOwnProperty;function cV(e,t){var r=oV(e),n=!r&&nV(e),o=!r&&!n&&aV(e),a=!r&&!n&&!o&&sV(e),i=r||n||o||a,s=i?rV(e.length,String):[],u=s.length;for(var l in e)(t||uV.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||iV(l,u)))&&s.push(l);return s}var Xk=cV,dV=Object.prototype;function fV(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||dV;return e===r}var gw=fV;function pV(e,t){return function(r){return e(t(r))}}var Yk=pV,hV=Yk,vV=hV(Object.keys,Object),mV=vV,gV=gw,yV=mV,bV=Object.prototype,xV=bV.hasOwnProperty;function wV(e){if(!gV(e))return yV(e);var t=[];for(var r in Object(e))xV.call(e,r)&&r!="constructor"&&t.push(r);return t}var SV=wV,CV=tw,_V=hw;function OV(e){return e!=null&&_V(e.length)&&!CV(e)}var qv=OV,EV=Xk,PV=SV,TV=qv;function $V(e){return TV(e)?EV(e):PV(e)}var Kv=$V,RV=Kk,kV=pw,jV=Kv;function IV(e){return RV(e,jV,kV)}var Jk=IV,qO=Jk,AV=1,MV=Object.prototype,FV=MV.hasOwnProperty;function NV(e,t,r,n,o,a){var i=r&AV,s=qO(e),u=s.length,l=qO(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:FV.call(t,p)))return!1}var v=a.get(e),g=a.get(t);if(v&&g)return v==t&&g==e;var y=!0;a.set(e,t),a.set(t,e);for(var w=i;++f0){if(++t>=oH)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var lH=sH,uH=nH,cH=lH,dH=cH(uH),hj=dH,fH=Cw,pH=pj,hH=hj;function vH(e,t){return hH(pH(e,t,fH),e+"")}var Qv=vH,mH=ql,gH=qv,yH=Lv,bH=Dn;function xH(e,t,r){if(!bH(r))return!1;var n=typeof t;return(n=="number"?gH(r)&&yH(t,r.length):n=="string"&&t in r)?mH(r[t],e):!1}var vj=xH,wH=Qv,SH=vj;function CH(e){return wH(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&SH(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function IH(e){var t=e.basename,r=e.children,n=e.history,o=d.useState({action:n.action,location:n.location}),a=o[0],i=o[1];return d.useLayoutEffect(function(){return n.listen(i)},[n]),d.createElement(jD,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var xj=d.createContext(""),AH=function(e){var t=e.children,r=e.basename;return d.createElement(xj.Provider,{value:r},t)},MH=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=Qa(),i=a?FH:NH;return d.createElement(AH,{basename:a?n:""},d.createElement(i,{basename:n,history:t},o))},FH=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},NH=function(e){var t=e.children,r=e.history,n=d.useMemo(function(){return r||bj()},[r]);return d.createElement(IH,{history:n},t)},Xa=function(){return d.useContext(xj)},ns=function(){var e=Xa();return d.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return vo("".concat(e,"/").concat(r));case"create":return vo("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?vo("".concat(e,"/").concat(r)):vo("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?vo("".concat(e,"/").concat(r)):vo("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},vo=function(e){return e.replace("//","/")},ac=globalThis&&globalThis.__assign||function(){return ac=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Cj="%[a-f0-9]{2}",xE=new RegExp("("+Cj+")|([^%]+?)","gi"),wE=new RegExp("("+Cj+")+","gi");function Xb(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],Xb(r),Xb(n))}function nq(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(xE)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},sq=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;am==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return b=>(h,S)=>{const C=h.length;return S===void 0||m.skipNull&&S===null||m.skipEmptyString&&S===""?h:S===null?[...h,[c(b,m),"[",C,"]"].join("")]:[...h,[c(b,m),"[",c(C,m),"]=",c(S,m)].join("")]};case"bracket":return b=>(h,S)=>S===void 0||m.skipNull&&S===null||m.skipEmptyString&&S===""?h:S===null?[...h,[c(b,m),"[]"].join("")]:[...h,[c(b,m),"[]=",c(S,m)].join("")];case"colon-list-separator":return b=>(h,S)=>S===void 0||m.skipNull&&S===null||m.skipEmptyString&&S===""?h:S===null?[...h,[c(b,m),":list="].join("")]:[...h,[c(b,m),":list=",c(S,m)].join("")];case"comma":case"separator":case"bracket-separator":{const b=m.arrayFormat==="bracket-separator"?"[]=":"=";return h=>(S,C)=>C===void 0||m.skipNull&&C===null||m.skipEmptyString&&C===""?S:(C=C===null?"":C,S.length===0?[[c(h,m),b,c(C,m)].join("")]:[[S,c(C,m)].join(m.arrayFormatSeparator)])}default:return b=>(h,S)=>S===void 0||m.skipNull&&S===null||m.skipEmptyString&&S===""?h:S===null?[...h,c(b,m)]:[...h,[c(b,m),"=",c(S,m)].join("")]}}function u(m){let b;switch(m.arrayFormat){case"index":return(h,S,C)=>{if(b=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!b){C[h]=S;return}C[h]===void 0&&(C[h]={}),C[h][b[1]]=S};case"bracket":return(h,S,C)=>{if(b=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!b){C[h]=S;return}if(C[h]===void 0){C[h]=[S];return}C[h]=[].concat(C[h],S)};case"colon-list-separator":return(h,S,C)=>{if(b=/(:list)$/.exec(h),h=h.replace(/:list$/,""),!b){C[h]=S;return}if(C[h]===void 0){C[h]=[S];return}C[h]=[].concat(C[h],S)};case"comma":case"separator":return(h,S,C)=>{const O=typeof S=="string"&&S.includes(m.arrayFormatSeparator),E=typeof S=="string"&&!O&&f(S,m).includes(m.arrayFormatSeparator);S=E?f(S,m):S;const T=O||E?S.split(m.arrayFormatSeparator).map($=>f($,m)):S===null?S:f(S,m);C[h]=T};case"bracket-separator":return(h,S,C)=>{const O=/(\[\])$/.test(h);if(h=h.replace(/\[\]$/,""),!O){C[h]=S&&f(S,m);return}const E=S===null?[]:S.split(m.arrayFormatSeparator).map(T=>f(T,m));if(C[h]===void 0){C[h]=E;return}C[h]=[].concat(C[h],E)};default:return(h,S,C)=>{if(C[h]===void 0){C[h]=S;return}C[h]=[].concat(C[h],S)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,b){return b.encode?b.strict?t(m):encodeURIComponent(m):m}function f(m,b){return b.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((b,h)=>Number(b)-Number(h)).map(b=>m[b]):m}function v(m){const b=m.indexOf("#");return b!==-1&&(m=m.slice(0,b)),m}function g(m){let b="";const h=m.indexOf("#");return h!==-1&&(b=m.slice(h)),b}function y(m){m=v(m);const b=m.indexOf("?");return b===-1?"":m.slice(b+1)}function w(m,b){return b.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):b.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const h=u(b),S=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return S;for(const C of m.split("&")){if(C==="")continue;let[O,E]=n(b.decode?C.replace(/\+/g," "):C,"=");E=E===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?E:f(E,b),h(f(O,b),E,S)}for(const C of Object.keys(S)){const O=S[C];if(typeof O=="object"&&O!==null)for(const E of Object.keys(O))O[E]=w(O[E],b);else S[C]=w(O,b)}return b.sort===!1?S:(b.sort===!0?Object.keys(S).sort():Object.keys(S).sort(b.sort)).reduce((C,O)=>{const E=S[O];return E&&typeof E=="object"&&!Array.isArray(E)?C[O]=p(E):C[O]=E,C},Object.create(null))}e.extract=y,e.parse=x,e.stringify=(m,b)=>{if(!m)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const h=E=>b.skipNull&&a(m[E])||b.skipEmptyString&&m[E]==="",S=s(b),C={};for(const E of Object.keys(m))h(E)||(C[E]=m[E]);const O=Object.keys(C);return b.sort!==!1&&O.sort(b.sort),O.map(E=>{const T=m[E];return T===void 0?"":T===null?c(E,b):Array.isArray(T)?T.length===0&&b.arrayFormat==="bracket-separator"?c(E,b)+"[]":T.reduce(S(E),[]).join("&"):c(E,b)+"="+c(T,b)}).filter(E=>E.length>0).join("&")},e.parseUrl=(m,b)=>{b=Object.assign({decode:!0},b);const[h,S]=n(m,"#");return Object.assign({url:h.split("?")[0]||"",query:x(y(m),b)},b&&b.parseFragmentIdentifier&&S?{fragmentIdentifier:f(S,b)}:{})},e.stringifyUrl=(m,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const h=v(m.url).split("?")[0]||"",S=e.extract(m.url),C=e.parse(S,{sort:!1}),O=Object.assign(C,m.query);let E=e.stringify(O,b);E&&(E=`?${E}`);let T=g(m.url);return m.fragmentIdentifier&&(T=`#${b[i]?c(m.fragmentIdentifier,b):m.fragmentIdentifier}`),`${h}${E}${T}`},e.pick=(m,b,h)=>{h=Object.assign({parseFragmentIdentifier:!0,[i]:!1},h);const{url:S,query:C,fragmentIdentifier:O}=e.parseUrl(m,h);return e.stringifyUrl({url:S,query:o(C,b),fragmentIdentifier:O},h)},e.exclude=(m,b,h)=>{const S=Array.isArray(b)?C=>!b.includes(C):(C,O)=>!b(C,O);return e.pick(m,S,h)}})(Go);var fh=globalThis&&globalThis.__assign||function(){return fh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new tq(u&&u.message||a,o,u)):Promise.resolve({status:o,headers:i,body:s,json:u})})},cq=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",o=!!Object.keys(e).length;return!t&&!r&&n&&o},Kc=function(e,t){var r;return t===void 0&&(t=[]),cq(e)?Object.assign.apply(Object,lq([{}],Object.keys(e).map(function(n){return Kc(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},Oj={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function a(u,l,c,f,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var v=new o(c,f||u,p),g=r?r+l:l;return u._events[g]?u._events[g].fn?u._events[g]=[u._events[g],v]:u._events[g].push(v):(u._events[g]=v,u._eventsCount++),u}function i(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,f;if(this._eventsCount===0)return l;for(f in c=this._events)t.call(c,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var p=0,v=f.length,g=new Array(v);p0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!e.message?t:e.message};const Pj=vq;var gq=["getList","getMany","getManyReference"],Ya=function(){var e=d.useContext(Sj)||Ej,t=Pj(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,o){if(!(typeof o=="symbol"||o==="then"))return function(){for(var a=[],i=0;i0),n=he.useRef(e.isMutating()>0),o=he.useState(r.current||n.current),a=o[0],i=o[1];return he.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Tt.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(Tt.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),a},ia=function(){var e=oo();return d.useCallback(function(){e.invalidateQueries()},[e])},Tj=function(e,t,r){var n=t.id,o=t.meta,a=Ya();return ts([e,"getOne",{id:String(n),meta:o}],function(){return a.getOne(e,{id:n,meta:o}).then(function(i){var s=i.data;return s})},r)},Bs=globalThis&&globalThis.__assign||function(){return Bs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?$j(s,t-1,r,n,o):Oq(o,s):n||(o[o.length]=s)}return o}var Ow=$j;function Pq(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var Rj=Dq;function Bq(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=eK){var l=t?null:Jq(e);if(l)return Zq(l);i=!1,o=Yq,u=new Gq}else u=t?[]:s;e:for(;++n=t||O<0||f&&E>=a}function x(){var C=Zg();if(w(C))return m(C);s=setTimeout(x,y(C))}function m(C){return s=void 0,p&&n?v(C):(n=o=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=o=s=void 0}function h(){return s===void 0?i:m(Zg())}function S(){var C=Zg(),O=w(C);if(n=arguments,o=this,u=C,O){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),v(u)}return s===void 0&&(s=setTimeout(x,t)),i}return S.cancel=b,S.flush=h,S}var PK=EK;const jj=Jt(PK);function TE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var Ij=function(e,t){if(TE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. -Be sure to pass the props from the parent. Example: - -const My`).concat(e,` = props => ( - <`).concat(e," {...props}> -); - -The missing props are: `).concat(o.join(", ")))},e0=globalThis&&globalThis.__assign||function(){return e0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(f=e.current)[l].apply(f,gf(gf([],p,!1),[c],!1)):a.apply(void 0,p)};return e.current.length>0?(i=e.current)[l].apply(i,gf(gf([],s,!1),[c],!1)):a.apply(void 0,s)}},[]),o=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return o},hh=globalThis&&globalThis.__assign||function(){return hh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]2?t[2]:void 0;for(o&&jG(t[0],t[1],o)&&(n=1);++r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"?"undefined":Zj(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var o in r){var a=r[o],i=this.check(a,o,o,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,o=[],a,i=0;i0&&!l.item&&a===void 0&&(a=l);o=o.concat(u)}}return o}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),YG=XG,JG=typeof window>"u"?Wo:window;function ZG(e,t){if(e instanceof JG[t])return!0;switch(typeof e>"u"?"undefined":Zj(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var ty,NE;function eQ(){return NE||(NE=1,ty=function(t,r,n){var o=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(o)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(o)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(a,i),(n||s(u))&&(u=t+u+t)),u}}),ty}var tQ=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(a)),o.push(f.join(this._options.rowDelimiter)),n=f}}catch(v){s=!0,u=v}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return o}},{key:"_parseArray",value:function(r,n){var o=this;this._headers=this._headers||[];var a=[],i=void 0,s=function(w){var x=o._headers.indexOf(w);return x===-1&&(o._headers.push(w),x=o._headers.indexOf(w)),x};i=function(w){var x=[],m=function(N){return x.push(N.map(function(D){return D??""}))},b=function(){return new Array(o._headers.length).fill(null)},h={},S=b(),C=!0,O=!1,E=void 0;try{for(var T=w[Symbol.iterator](),$;!(C=($=T.next()).done);C=!0){var j=$.value,M=s(j.item);if(S[M]!=null&&(m(S),S=b()),h[M]=h[M]||0,o._options.fillTopRow&&h[M]0&&m(S),a=a.concat(o._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=o._handler.check(v,o._options.mainPathItem,v,r);i(g)}}catch(y){l=!0,c=y}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),LE(a,o._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,o=[],a=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var v=[f.item,p];o.push(v.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[u],l+u,u,r),a.forEach(i)}return this._options.verticalOutput||(o.push(s[0].join(this._options.rowDelimiter)),o.push(s[1].join(this._options.rowDelimiter))),LE(o,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(o){return r._options.rename[r._options.headers.indexOf(o)]||o})),this._options.forceTextDelimiter&&(n=n.map(function(o){return""+r._options.textDelimiter+o+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),aQ=oQ,iQ=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},sQ=iQ,BE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zE=aQ,VE=sQ,lQ=Jj,uQ=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:lQ,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var o=Array.prototype.slice.call(arguments);t=o[0],r=o[1],n=o[2]}else if(arguments.length===2){var a=void 0,i=Array.prototype.slice.call(arguments);t=i[0],a=i[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":BE(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":BE(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new VE(new zE(e));var p=Object.assign({},e,r),v=new zE(p);return t?new Promise(function(g,y){v.parse(t,function(w,x){if(n)return n(w,x);if(w)return y(w);if(y)return g(x)})}):new VE};const cQ=Jt(uQ),dQ=function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var fQ=function(e,t,r,n){return cQ(e,function(o,a){return dQ(a,n)})};const pQ=fQ;var hQ=function(e){return function(t,r,n){return e.getMany(n,{ids:vQ(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},vQ=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))};const mQ=hQ;var ds=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n"u"||o(function(u){if(!Array.isArray(u))return ds([],u,!0);var l=u.indexOf(s);return l>-1?ds(ds([],u.slice(0,l),!0),u.slice(l+1),!0):ds(ds([],u,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},gQ=[],yQ=Vv,bQ=yw,xQ=1,wQ=2;function SQ(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o0&&!O&&h($)},[v.search]);var j=d.useCallback(function(re){C.current&&(S.current?S.current=RE(S.current,re):(S.current=RE($,re),setTimeout(function(){o?x(S.current):g({search:"?".concat(Go.stringify(La(La({},S.current),{filter:JSON.stringify(S.current.filter),displayedFilters:JSON.stringify(S.current.displayedFilters)})))},{state:{_scrollToTop:re.type===Jb}}),S.current=void 0},0)))},UE(UE([],E,!0),[g],!1)),M=d.useCallback(function(re){return j({type:Fj,payload:re})},[j]),k=d.useCallback(function(re){return j({type:Jb,payload:re})},[j]),N=d.useCallback(function(re){return j({type:Nj,payload:re})},[j]),D=$.filter||qE,A=$.displayedFilters||qE,H=jj(function(re,ne){j({type:Zb,payload:{filter:Ui(re),displayedFilters:ne}})},r),B=d.useCallback(function(re,ne,fe){return fe===void 0&&(fe=!0),fe?H(re,ne):j({type:Zb,payload:{filter:Ui(re),displayedFilters:ne}})},[j]),U=d.useCallback(function(re){j({type:Dj,payload:re})},[j]),q=d.useCallback(function(re,ne){j({type:Lj,payload:{filterName:re,defaultValue:ne}})},[j]);return[La({displayedFilters:A,filterValues:D,requestSignature:E},$),{changeParams:j,setPage:k,setPerPage:N,setSort:M,setFilters:B,hideFilter:U,showFilter:q}]},RX=["page","perPage","sort","order","filter","displayedFilters"],WE=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},kX=function(e){var t=e.search,r=PX(Go.parse(t),function(n,o){return RX.indexOf(o)!==-1});return WE(r,"filter"),WE(r,"displayedFilters"),r},jX=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},IX=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:jX(r)?La({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),i.perPage==null&&(i.perPage=a),i.page==null&&(i.page=1),La(La({},i),{page:HE(i.page,1),perPage:HE(i.perPage,10)})},HE=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},qE={},AX={field:"id",order:$i},KE={},kw=d.createContext({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});kw.displayName="ListContext";var oI=d.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),MX=function(e){return d.useMemo(function(){return Xv(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};oI.displayName="ListFilterContext";var aI=d.createContext({sort:null,setSort:null,resource:null}),FX=function(e){return d.useMemo(function(){return Xv(e,["sort","setSort","resource"])},[e.sort,e.setSort])};aI.displayName="ListSortContext";var jw=d.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});jw.displayName="ListPaginationContext";var NX=function(e){return d.useMemo(function(){return Xv(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},iI=function(e){var t=e.value,r=e.children;return d.createElement(kw.Provider,{value:t},d.createElement(oI.Provider,{value:MX(t)},d.createElement(aI.Provider,{value:FX(t)},d.createElement(jw.Provider,{value:NX(t)},r))))},Ri=globalThis&&globalThis.__assign||function(){return Ri=Object.assign||function(e){for(var t,r=1,n=arguments.length;r was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(s&&d.isValidElement(s))throw new Error(" received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var b=He(),h=Zt(),S=$X({debounce:r,disableSyncWithLocation:o,filterDefaultValues:u,perPage:c,resource:w,sort:g,storeKey:y}),C=S[0],O=S[1],E=xd(w),T=E[0],$=E[1],j=xq(w,{pagination:{page:C.page,perPage:C.perPage},sort:{field:C.sort,order:C.order},filter:Ri(Ri({},C.filter),s),meta:x},Ri({keepPreviousData:!0,retry:!1,onError:function(ne){return h((ne==null?void 0:ne.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:ne==null?void 0:ne.message}})}},m)),M=j.data,k=j.pageInfo,N=j.total,D=j.error,A=j.isLoading,H=j.isFetching,B=j.refetch;d.useEffect(function(){if(C.page<=0||!H&&C.page>1&&(M==null||(M==null?void 0:M.length)===0)){O.setPage(1);return}if(N!=null){var ne=Math.ceil(N/C.perPage)||1;!H&&C.page>ne&&O.setPage(ne)}},[H,C.page,C.perPage,M,O,N]);var U=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),q=ou(),re=b("ra.page.list",{name:q(w,2)});return{sort:U,data:M,defaultTitle:re,displayedFilters:C.displayedFilters,error:D,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:O.hideFilter,isFetching:H,isLoading:A,onSelect:$.select,onToggleItem:$.toggle,onUnselectItems:$.clearSelection,page:C.page,perPage:C.perPage,refetch:B,resource:w,selectedIds:T,setFilters:O.setFilters,setPage:O.setPage,setPerPage:O.setPerPage,setSort:O.setSort,showFilter:O.showFilter,total:N,hasNextPage:k?k.hasNextPage:N!=null?C.page*C.perPage1}},BX={field:"id",order:$i},zX=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],Qc=function(e){return Object.keys(e).filter(function(t){return!zX.includes(t)}).reduce(function(t,r){var n;return Ri(Ri({},t),(n={},n[r]=e[r],n))},{})},VX=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o-1?r?[]:yf(yf([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:yf(yf([],u,!0),[t],!1)})},[a,t,r]);return[i,s]},HX=function(e,t){var r=lo("".concat(e,".datagrid.expanded"),[]),n=r[0],o=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});o(a?s:s.concat(t))},[n,o,a,t]);return[a,i]},zs=globalThis&&globalThis.__assign||function(){return zs=Object.assign||function(e){for(var t,r=1,n=arguments.length;rmt(Xe,A.field)?A.order==="ASC"?1:-1:mt(ke,A.field)1,hideFilter:xe,isFetching:m,isLoading:S,onSelect:re.select,onToggleItem:re.toggle,onUnselectItems:re.clearSelection,page:j,perPage:k,resource:void 0,refetch:qX,selectedIds:q,setFilters:je,setPage:M,setPerPage:N,setSort:B,showFilter:Te,total:E==null?void 0:E.total}},GX={},Sn=function(e){var t=d.useContext(kw);return d.useMemo(function(){return os({},e!=null?QX(e):{},t)},[t,e])},QX=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,o=e.displayedFilters,a=e.exporter,i=e.filterValues,s=e.hasCreate,u=e.hideFilter,l=e.isFetching,c=e.isLoading,f=e.onSelect,p=e.onToggleItem,v=e.onUnselectItems,g=e.page,y=e.perPage,w=e.refetch,x=e.resource,m=e.selectedIds,b=e.setFilters,h=e.setPage,S=e.setPerPage,C=e.setSort,O=e.showFilter,E=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:u,isFetching:l,isLoading:c,onSelect:f,onToggleItem:p,onUnselectItems:v,page:g,perPage:y,refetch:w,resource:x,selectedIds:m,setFilters:b,setPage:h,setPerPage:S,setSort:C,showFilter:O,total:E}},XX=function(e){var t=d.useContext(jw);return d.useMemo(function(){return os({},e!=null?YX(e):{},t)},[t,e])},YX=function(e){var t=e.isLoading,r=e.page,n=e.perPage,o=e.setPage,a=e.setPerPage,i=e.hasPreviousPage,s=e.hasNextPage,u=e.total,l=e.resource;return{isLoading:t,page:r,perPage:n,setPage:o,setPerPage:a,hasPreviousPage:i,hasNextPage:s,total:u,resource:l}},sI=function(e){var t=xd(e),r=t[1].unselect;return d.useCallback(function(n){r(n)},[r])},lI=function(e){var t=xd(e),r=t[1].clearSelection;return d.useCallback(function(){r()},[r])},Vs=globalThis&&globalThis.__assign||function(){return Vs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1,setSort:O,showFilter:U,total:ve}},wd=e=>e.type==="checkbox",Us=e=>e instanceof Date,Nr=e=>e==null;const uI=e=>typeof e=="object";var lr=e=>!Nr(e)&&!Array.isArray(e)&&uI(e)&&!Us(e),cI=e=>lr(e)&&e.target?wd(e.target)?e.target.checked:e.target.value:e,eY=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,dI=(e,t)=>e.has(eY(t)),tY=e=>{const t=e.constructor&&e.constructor.prototype;return lr(t)&&t.hasOwnProperty("isPrototypeOf")},Iw=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function qr(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Iw&&(e instanceof Blob||e instanceof FileList))&&(r||lr(e)))if(t=r?[]:{},!r&&!tY(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=qr(e[n]));else return e;return t}var Sd=e=>Array.isArray(e)?e.filter(Boolean):[],qt=e=>e===void 0,Me=(e,t,r)=>{if(!t||!lr(e))return r;const n=Sd(t.split(/[,[\].]+?/)).reduce((o,a)=>Nr(o)?o:o[a],e);return qt(n)||n===e?qt(e[t])?r:e[t]:n},qn=e=>typeof e=="boolean";const mh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Qn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},No={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},fI=he.createContext(null),ru=()=>he.useContext(fI),pI=e=>{const{children:t,...r}=e;return he.createElement(fI.Provider,{value:r},t)};var hI=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Qn.all&&(t._proxyFormState[i]=!n||Qn.all),r&&(r[i]=!0),e[i]}});return o},On=e=>lr(e)&&!Object.keys(e).length,vI=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return On(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||Qn.all))},ep=e=>Array.isArray(e)?e:[e],mI=(e,t,r)=>!e||!t||e===t||ep(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Aw(e){const t=he.useRef(e);t.current=e,he.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Yv(e){const t=ru(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=he.useState(r._formState),u=he.useRef(!0),l=he.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=he.useRef(o);return c.current=o,Aw({disabled:n,next:f=>u.current&&mI(c.current,f.name,a)&&vI(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),he.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),hI(i,r,l.current,!1)}var wo=e=>typeof e=="string",gI=(e,t,r,n,o)=>wo(e)?(n&&t.watch.add(e),Me(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Me(r,a))):(n&&(t.watchAll=!0),r);function rY(e){const t=ru(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=he.useRef(n);s.current=n,Aw({disabled:a,subject:r._subjects.values,next:c=>{mI(s.current,c.name,i)&&l(qr(gI(s.current,r._names,c.values||r._formValues,!1,o)))}});const[u,l]=he.useState(r._getWatch(n,o));return he.useEffect(()=>r._removeUnmounted()),u}var Mw=e=>/^\w*$/.test(e),yI=e=>Sd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Pt=(e,t,r)=>{let n=-1;const o=Mw(t)?[t]:yI(t),a=o.length,i=a-1;for(;++n{const c=o._options.shouldUnregister||a,f=(p,v)=>{const g=Me(o._fields,p);g&&(g._f.mount=v)};if(f(r,!0),c){const p=qr(Me(o._options.defaultValues,r));Pt(o._defaultValues,r,p),qt(Me(o._formValues,r))&&Pt(o._formValues,r,p)}return()=>{(i?c&&!o._state.action:c)?o.unregister(r):f(r,!1)}},[r,o,i,a]),he.useEffect(()=>{Me(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:Me(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:s,...qn(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:he.useCallback(c=>l.current.onChange({target:{value:cI(c),name:r},type:mh.CHANGE}),[r]),onBlur:he.useCallback(()=>l.current.onBlur({target:{value:Me(o._formValues,r),name:r},type:mh.BLUR}),[r,o]),ref:c=>{const f=Me(o._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Me(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Me(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Me(u.touchedFields,r)},error:{enumerable:!0,get:()=>Me(u.errors,r)}})}}var oY=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},XE=e=>({isOnSubmit:!e||e===Qn.onSubmit,isOnBlur:e===Qn.onBlur,isOnChange:e===Qn.onChange,isOnAll:e===Qn.all,isOnTouch:e===Qn.onTouched}),YE=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const lc=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const a=Me(e,o);if(a){const{_f:i,...s}=a;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;lc(s,t)}else lr(s)&&lc(s,t)}}};var aY=(e,t,r)=>{const n=Sd(Me(e,r));return Pt(n,"root",t[r]),Pt(e,r,n),e},Fw=e=>e.type==="file",Ea=e=>typeof e=="function",gh=e=>{if(!Iw)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},tp=e=>wo(e),Nw=e=>e.type==="radio",yh=e=>e instanceof RegExp;const JE={value:!1,isValid:!1},ZE={value:!0,isValid:!0};var bI=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qt(e[0].attributes.value)?qt(e[0].value)||e[0].value===""?ZE:{value:e[0].value,isValid:!0}:ZE:JE}return JE};const eP={isValid:!1,value:null};var xI=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,eP):eP;function tP(e,t,r="validate"){if(tp(e)||Array.isArray(e)&&e.every(tp)||qn(e)&&!e)return{type:r,message:tp(e)?e:"",ref:t}}var fs=e=>lr(e)&&!yh(e)?e:{value:e,message:""},rP=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:v,name:g,valueAsNumber:y,mount:w,disabled:x}=e._f,m=Me(t,g);if(!w||x)return{};const b=i?i[0]:a,h=M=>{n&&b.reportValidity&&(b.setCustomValidity(qn(M)?"":M||""),b.reportValidity())},S={},C=Nw(a),O=wd(a),E=C||O,T=(y||Fw(a))&&qt(a.value)&&qt(m)||gh(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,$=oY.bind(null,g,r,S),j=(M,k,N,D=No.maxLength,A=No.minLength)=>{const H=M?k:N;S[g]={type:M?D:A,message:H,ref:a,...$(M?D:A,H)}};if(o?!Array.isArray(m)||!m.length:s&&(!E&&(T||Nr(m))||qn(m)&&!m||O&&!bI(i).isValid||C&&!xI(i).isValid)){const{value:M,message:k}=tp(s)?{value:!!s,message:s}:fs(s);if(M&&(S[g]={type:No.required,message:k,ref:b,...$(No.required,k)},!r))return h(k),S}if(!T&&(!Nr(c)||!Nr(f))){let M,k;const N=fs(f),D=fs(c);if(!Nr(m)&&!isNaN(m)){const A=a.valueAsNumber||m&&+m;Nr(N.value)||(M=A>N.value),Nr(D.value)||(k=Anew Date(new Date().toDateString()+" "+q),B=a.type=="time",U=a.type=="week";wo(N.value)&&m&&(M=B?H(m)>H(N.value):U?m>N.value:A>new Date(N.value)),wo(D.value)&&m&&(k=B?H(m)+M.value,D=!Nr(k.value)&&m.length<+k.value;if((N||D)&&(j(N,M.message,k.message),!r))return h(S[g].message),S}if(p&&!T&&wo(m)){const{value:M,message:k}=fs(p);if(yh(M)&&!m.match(M)&&(S[g]={type:No.pattern,message:k,ref:a,...$(No.pattern,k)},!r))return h(k),S}if(v){if(Ea(v)){const M=await v(m,t),k=tP(M,b);if(k&&(S[g]={...k,...$(No.validate,k.message)},!r))return h(k.message),S}else if(lr(v)){let M={};for(const k in v){if(!On(M)&&!r)break;const N=tP(await v[k](m,t),b,k);N&&(M={...N,...$(k,N.message)},h(N.message),r&&(S[g]=M))}if(!On(M)&&(S[g]={ref:b,...M},!r))return S}}return h(!0),S};function iY(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},bh=e=>Nr(e)||!uI(e);function Ci(e,t){if(bh(e)||bh(t))return e===t;if(Us(e)&&Us(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const i=t[o];if(Us(a)&&Us(i)||lr(a)&&lr(i)||Array.isArray(a)&&Array.isArray(i)?!Ci(a,i):a!==i)return!1}}return!0}var wI=e=>e.type==="select-multiple",lY=e=>Nw(e)||wd(e),ny=e=>gh(e)&&e.isConnected,SI=e=>{for(const t in e)if(Ea(e[t]))return!0;return!1};function xh(e,t={}){const r=Array.isArray(e);if(lr(e)||r)for(const n in e)Array.isArray(e[n])||lr(e[n])&&!SI(e[n])?(t[n]=Array.isArray(e[n])?[]:{},xh(e[n],t[n])):Nr(e[n])||(t[n]=!0);return t}function CI(e,t,r){const n=Array.isArray(e);if(lr(e)||n)for(const o in e)Array.isArray(e[o])||lr(e[o])&&!SI(e[o])?qt(t)||bh(r[o])?r[o]=Array.isArray(e[o])?xh(e[o],[]):{...xh(e[o])}:CI(e[o],Nr(t)?{}:t[o],r[o]):r[o]=!Ci(e[o],t[o]);return r}var oy=(e,t)=>CI(e,t,xh(t)),_I=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>qt(e)?e:t?e===""?NaN:e&&+e:r&&wo(e)?new Date(e):n?n(e):e;function ay(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Fw(t)?t.files:Nw(t)?xI(e.refs).value:wI(t)?[...t.selectedOptions].map(({value:r})=>r):wd(t)?bI(e.refs).value:_I(qt(t.value)?e.ref.value:t.value,e)}var uY=(e,t,r,n)=>{const o={};for(const a of e){const i=Me(t,a);i&&Pt(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Ou=e=>qt(e)?e:yh(e)?e.source:lr(e)?yh(e.value)?e.value.source:e.value:e,cY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function nP(e,t,r){const n=Me(e,r);if(n||Mw(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=Me(t,a),s=Me(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:r}}var dY=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,fY=(e,t)=>!Sd(Me(e,t)).length&&mr(e,t);const pY={mode:Qn.onSubmit,reValidateMode:Qn.onChange,shouldFocusError:!0};function hY(e={},t){let r={...pY,...e},n={submitCount:0,isDirty:!1,isLoading:Ea(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},a=lr(r.defaultValues)||lr(r.values)?qr(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:qr(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:ry(),array:ry(),state:ry()},v=XE(r.mode),g=XE(r.reValidateMode),y=r.criteriaMode===Qn.all,w=W=>Q=>{clearTimeout(c),c=setTimeout(W,Q)},x=async W=>{if(f.isValid||W){const Q=r.resolver?On((await T()).errors):await j(o,!0);Q!==n.isValid&&p.state.next({isValid:Q})}},m=W=>f.isValidating&&p.state.next({isValidating:W}),b=(W,Q=[],ee,ye,ce=!0,se=!0)=>{if(ye&&ee){if(s.action=!0,se&&Array.isArray(Me(o,W))){const X=ee(Me(o,W),ye.argA,ye.argB);ce&&Pt(o,W,X)}if(se&&Array.isArray(Me(n.errors,W))){const X=ee(Me(n.errors,W),ye.argA,ye.argB);ce&&Pt(n.errors,W,X),fY(n.errors,W)}if(f.touchedFields&&se&&Array.isArray(Me(n.touchedFields,W))){const X=ee(Me(n.touchedFields,W),ye.argA,ye.argB);ce&&Pt(n.touchedFields,W,X)}f.dirtyFields&&(n.dirtyFields=oy(a,i)),p.state.next({name:W,isDirty:k(W,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Pt(i,W,Q)},h=(W,Q)=>{Pt(n.errors,W,Q),p.state.next({errors:n.errors})},S=W=>{n.errors=W,p.state.next({errors:n.errors,isValid:!1})},C=(W,Q,ee,ye)=>{const ce=Me(o,W);if(ce){const se=Me(i,W,qt(ee)?Me(a,W):ee);qt(se)||ye&&ye.defaultChecked||Q?Pt(i,W,Q?se:ay(ce._f)):A(W,se),s.mount&&x()}},O=(W,Q,ee,ye,ce)=>{let se=!1,X=!1;const K={name:W},G=!!(Me(o,W)&&Me(o,W)._f.disabled);if(!ee||ye){f.isDirty&&(X=n.isDirty,n.isDirty=K.isDirty=k(),se=X!==K.isDirty);const Z=G||Ci(Me(a,W),Q);X=!!(!G&&Me(n.dirtyFields,W)),Z||G?mr(n.dirtyFields,W):Pt(n.dirtyFields,W,!0),K.dirtyFields=n.dirtyFields,se=se||f.dirtyFields&&X!==!Z}if(ee){const Z=Me(n.touchedFields,W);Z||(Pt(n.touchedFields,W,ee),K.touchedFields=n.touchedFields,se=se||f.touchedFields&&Z!==ee)}return se&&ce&&p.state.next(K),se?K:{}},E=(W,Q,ee,ye)=>{const ce=Me(n.errors,W),se=f.isValid&&qn(Q)&&n.isValid!==Q;if(e.delayError&&ee?(l=w(()=>h(W,ee)),l(e.delayError)):(clearTimeout(c),l=null,ee?Pt(n.errors,W,ee):mr(n.errors,W)),(ee?!Ci(ce,ee):ce)||!On(ye)||se){const X={...ye,...se&&qn(Q)?{isValid:Q}:{},errors:n.errors,name:W};n={...n,...X},p.state.next(X)}m(!1)},T=async W=>r.resolver(i,r.context,uY(W||u.mount,o,r.criteriaMode,r.shouldUseNativeValidation)),$=async W=>{const{errors:Q}=await T(W);if(W)for(const ee of W){const ye=Me(Q,ee);ye?Pt(n.errors,ee,ye):mr(n.errors,ee)}else n.errors=Q;return Q},j=async(W,Q,ee={valid:!0})=>{for(const ye in W){const ce=W[ye];if(ce){const{_f:se,...X}=ce;if(se){const K=u.array.has(se.name),G=await rP(ce,i,y,r.shouldUseNativeValidation&&!Q,K);if(G[se.name]&&(ee.valid=!1,Q))break;!Q&&(Me(G,se.name)?K?aY(n.errors,G,se.name):Pt(n.errors,se.name,G[se.name]):mr(n.errors,se.name))}X&&await j(X,Q,ee)}}return ee.valid},M=()=>{for(const W of u.unMount){const Q=Me(o,W);Q&&(Q._f.refs?Q._f.refs.every(ee=>!ny(ee)):!ny(Q._f.ref))&&Re(W)}u.unMount=new Set},k=(W,Q)=>(W&&Q&&Pt(i,W,Q),!Ci(ne(),a)),N=(W,Q,ee)=>gI(W,u,{...s.mount?i:qt(Q)?a:wo(W)?{[W]:Q}:Q},ee,Q),D=W=>Sd(Me(s.mount?i:a,W,e.shouldUnregister?Me(a,W,[]):[])),A=(W,Q,ee={})=>{const ye=Me(o,W);let ce=Q;if(ye){const se=ye._f;se&&(!se.disabled&&Pt(i,W,_I(Q,se)),ce=gh(se.ref)&&Nr(Q)?"":Q,wI(se.ref)?[...se.ref.options].forEach(X=>X.selected=ce.includes(X.value)):se.refs?wd(se.ref)?se.refs.length>1?se.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(ce)?!!ce.find(K=>K===X.value):ce===X.value)):se.refs[0]&&(se.refs[0].checked=!!ce):se.refs.forEach(X=>X.checked=X.value===ce):Fw(se.ref)?se.ref.value="":(se.ref.value=ce,se.ref.type||p.values.next({name:W,values:{...i}})))}(ee.shouldDirty||ee.shouldTouch)&&O(W,ce,ee.shouldTouch,ee.shouldDirty,!0),ee.shouldValidate&&re(W)},H=(W,Q,ee)=>{for(const ye in Q){const ce=Q[ye],se=`${W}.${ye}`,X=Me(o,se);(u.array.has(W)||!bh(ce)||X&&!X._f)&&!Us(ce)?H(se,ce,ee):A(se,ce,ee)}},B=(W,Q,ee={})=>{const ye=Me(o,W),ce=u.array.has(W),se=qr(Q);Pt(i,W,se),ce?(p.array.next({name:W,values:{...i}}),(f.isDirty||f.dirtyFields)&&ee.shouldDirty&&p.state.next({name:W,dirtyFields:oy(a,i),isDirty:k(W,se)})):ye&&!ye._f&&!Nr(se)?H(W,se,ee):A(W,se,ee),YE(W,u)&&p.state.next({...n}),p.values.next({name:W,values:{...i}}),!s.mount&&t()},U=async W=>{const Q=W.target;let ee=Q.name,ye=!0;const ce=Me(o,ee),se=()=>Q.type?ay(ce._f):cI(W),X=K=>{ye=Number.isNaN(K)||K===Me(i,ee,K)};if(ce){let K,G;const Z=se(),oe=W.type===mh.BLUR||W.type===mh.FOCUS_OUT,Pe=!cY(ce._f)&&!r.resolver&&!Me(n.errors,ee)&&!ce._f.deps||dY(oe,Me(n.touchedFields,ee),n.isSubmitted,g,v),Ve=YE(ee,u,oe);Pt(i,ee,Z),oe?(ce._f.onBlur&&ce._f.onBlur(W),l&&l(0)):ce._f.onChange&&ce._f.onChange(W);const Ue=O(ee,Z,oe,!1),Ee=!On(Ue)||Ve;if(!oe&&p.values.next({name:ee,type:W.type,values:{...i}}),Pe)return f.isValid&&x(),Ee&&p.state.next({name:ee,...Ve?{}:Ue});if(!oe&&Ve&&p.state.next({...n}),m(!0),r.resolver){const{errors:We}=await T([ee]);if(X(Z),ye){const me=nP(n.errors,o,ee),$e=nP(We,o,me.name||ee);K=$e.error,ee=$e.name,G=On(We)}}else K=(await rP(ce,i,y,r.shouldUseNativeValidation))[ee],X(Z),ye&&(K?G=!1:f.isValid&&(G=await j(o,!0)));ye&&(ce._f.deps&&re(ce._f.deps),E(ee,G,K,Ue))}},q=(W,Q)=>{if(Me(n.errors,Q)&&W.focus)return W.focus(),1},re=async(W,Q={})=>{let ee,ye;const ce=ep(W);if(m(!0),r.resolver){const se=await $(qt(W)?W:ce);ee=On(se),ye=W?!ce.some(X=>Me(se,X)):ee}else W?(ye=(await Promise.all(ce.map(async se=>{const X=Me(o,se);return await j(X&&X._f?{[se]:X}:X)}))).every(Boolean),!(!ye&&!n.isValid)&&x()):ye=ee=await j(o);return p.state.next({...!wo(W)||f.isValid&&ee!==n.isValid?{}:{name:W},...r.resolver||!W?{isValid:ee}:{},errors:n.errors,isValidating:!1}),Q.shouldFocus&&!ye&&lc(o,q,W?ce:u.mount),ye},ne=W=>{const Q={...a,...s.mount?i:{}};return qt(W)?Q:wo(W)?Me(Q,W):W.map(ee=>Me(Q,ee))},fe=(W,Q)=>({invalid:!!Me((Q||n).errors,W),isDirty:!!Me((Q||n).dirtyFields,W),isTouched:!!Me((Q||n).touchedFields,W),error:Me((Q||n).errors,W)}),ve=W=>{W&&ep(W).forEach(Q=>mr(n.errors,Q)),p.state.next({errors:W?n.errors:{}})},Se=(W,Q,ee)=>{const ye=(Me(o,W,{_f:{}})._f||{}).ref;Pt(n.errors,W,{...Q,ref:ye}),p.state.next({name:W,errors:n.errors,isValid:!1}),ee&&ee.shouldFocus&&ye&&ye.focus&&ye.focus()},we=(W,Q)=>Ea(W)?p.values.subscribe({next:ee=>W(N(void 0,Q),ee)}):N(W,Q,!0),Re=(W,Q={})=>{for(const ee of W?ep(W):u.mount)u.mount.delete(ee),u.array.delete(ee),Q.keepValue||(mr(o,ee),mr(i,ee)),!Q.keepError&&mr(n.errors,ee),!Q.keepDirty&&mr(n.dirtyFields,ee),!Q.keepTouched&&mr(n.touchedFields,ee),!r.shouldUnregister&&!Q.keepDefaultValue&&mr(a,ee);p.values.next({values:{...i}}),p.state.next({...n,...Q.keepDirty?{isDirty:k()}:{}}),!Q.keepIsValid&&x()},pe=({disabled:W,name:Q,field:ee,fields:ye,value:ce})=>{if(qn(W)){const se=W?void 0:qt(ce)?ay(ee?ee._f:Me(ye,Q)._f):ce;Pt(i,Q,se),O(Q,se,!1,!1,!0)}},xe=(W,Q={})=>{let ee=Me(o,W);const ye=qn(Q.disabled);return Pt(o,W,{...ee||{},_f:{...ee&&ee._f?ee._f:{ref:{name:W}},name:W,mount:!0,...Q}}),u.mount.add(W),ee?pe({field:ee,disabled:Q.disabled,name:W,value:Q.value}):C(W,!0,Q.value),{...ye?{disabled:Q.disabled}:{},...r.progressive?{required:!!Q.required,min:Ou(Q.min),max:Ou(Q.max),minLength:Ou(Q.minLength),maxLength:Ou(Q.maxLength),pattern:Ou(Q.pattern)}:{},name:W,onChange:U,onBlur:U,ref:ce=>{if(ce){xe(W,Q),ee=Me(o,W);const se=qt(ce.value)&&ce.querySelectorAll&&ce.querySelectorAll("input,select,textarea")[0]||ce,X=lY(se),K=ee._f.refs||[];if(X?K.find(G=>G===se):se===ee._f.ref)return;Pt(o,W,{_f:{...ee._f,...X?{refs:[...K.filter(ny),se,...Array.isArray(Me(a,W))?[{}]:[]],ref:{type:se.type,name:W}}:{ref:se}}}),C(W,!1,void 0,se)}else ee=Me(o,W,{}),ee._f&&(ee._f.mount=!1),(r.shouldUnregister||Q.shouldUnregister)&&!(dI(u.array,W)&&s.action)&&u.unMount.add(W)}}},Te=()=>r.shouldFocusError&&lc(o,q,u.mount),je=W=>{qn(W)&&(p.state.next({disabled:W}),lc(o,(Q,ee)=>{let ye=W;const ce=Me(o,ee);ce&&qn(ce._f.disabled)&&(ye||(ye=ce._f.disabled)),Q.disabled=ye},0,!1))},Oe=(W,Q)=>async ee=>{ee&&(ee.preventDefault&&ee.preventDefault(),ee.persist&&ee.persist());let ye=qr(i);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:ce,values:se}=await T();n.errors=ce,ye=se}else await j(o);mr(n.errors,"root"),On(n.errors)?(p.state.next({errors:{}}),await W(ye,ee)):(Q&&await Q({...n.errors},ee),Te(),setTimeout(Te)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:On(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Ce=(W,Q={})=>{Me(o,W)&&(qt(Q.defaultValue)?B(W,qr(Me(a,W))):(B(W,Q.defaultValue),Pt(a,W,qr(Q.defaultValue))),Q.keepTouched||mr(n.touchedFields,W),Q.keepDirty||(mr(n.dirtyFields,W),n.isDirty=Q.defaultValue?k(W,qr(Me(a,W))):k()),Q.keepError||(mr(n.errors,W),f.isValid&&x()),p.state.next({...n}))},Ie=(W,Q={})=>{const ee=W?qr(W):a,ye=qr(ee),ce=W&&!On(W)?ye:a;if(Q.keepDefaultValues||(a=ee),!Q.keepValues){if(Q.keepDirtyValues)for(const se of u.mount)Me(n.dirtyFields,se)?Pt(ce,se,Me(i,se)):B(se,Me(ce,se));else{if(Iw&&qt(W))for(const se of u.mount){const X=Me(o,se);if(X&&X._f){const K=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(gh(K)){const G=K.closest("form");if(G){G.reset();break}}}}o={}}i=e.shouldUnregister?Q.keepDefaultValues?qr(a):{}:qr(ce),p.array.next({values:{...ce}}),p.values.next({values:{...ce}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!Q.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!Ci(W,a)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Q.keepDirtyValues?n.dirtyFields:Q.keepDefaultValues&&W?oy(a,W):{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ke=(W,Q)=>Ie(Ea(W)?W(i):W,Q);return{control:{register:xe,unregister:Re,getFieldState:fe,handleSubmit:Oe,setError:Se,_executeSchema:T,_getWatch:N,_getDirty:k,_updateValid:x,_removeUnmounted:M,_updateFieldArray:b,_updateDisabledField:pe,_getFieldArray:D,_reset:Ie,_resetDefaultValues:()=>Ea(r.defaultValues)&&r.defaultValues().then(W=>{ke(W,r.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:W=>{n={...n,...W}},_disableForm:je,_subjects:p,_proxyFormState:f,_setErrors:S,get _fields(){return o},get _formValues(){return i},get _state(){return s},set _state(W){s=W},get _defaultValues(){return a},get _names(){return u},set _names(W){u=W},get _formState(){return n},set _formState(W){n=W},get _options(){return r},set _options(W){r={...r,...W}}},trigger:re,register:xe,handleSubmit:Oe,watch:we,setValue:B,getValues:ne,reset:ke,resetField:Ce,clearErrors:ve,unregister:Re,setError:Se,setFocus:(W,Q={})=>{const ee=Me(o,W),ye=ee&&ee._f;if(ye){const ce=ye.refs?ye.refs[0]:ye.ref;ce.focus&&(ce.focus(),Q.shouldSelect&&ce.select())}},getFieldState:fe}}function OI(e={}){const t=he.useRef(),r=he.useRef(),[n,o]=he.useState({isDirty:!1,isValidating:!1,isLoading:Ea(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ea(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...hY(e,()=>o(i=>({...i}))),formState:n});const a=t.current.control;return a._options=e,Aw({subject:a._subjects.state,next:i=>{vI(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),he.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),he.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),he.useEffect(()=>{e.values&&!Ci(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[e.values,a]),he.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),he.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=hI(n,a),t.current}var r0=globalThis&&globalThis.__assign||function(){return r0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?O(E):E},{updatedAt:C}),o.setQueriesData([m,"getManyReference"],function(E){return E&&E.data?{data:O(E.data),total:E.total}:E},{updatedAt:C})},y=kv(function(x){var m=x===void 0?{}:x,b=m.resource,h=b===void 0?e:b,S=m.id,C=S===void 0?p.current.id:S,O=m.data,E=O===void 0?p.current.data:O,T=m.meta,$=T===void 0?p.current.meta:T,j=m.previousData,M=j===void 0?p.current.previousData:j;return n.update(h,{id:C,data:E,previousData:M,meta:$}).then(function(k){var N=k.data;return N})},jt(jt({},c),{onMutate:function(x){return oP(void 0,void 0,void 0,function(){var m;return aP(this,function(b){switch(b.label){case 0:return c.onMutate?[4,c.onMutate(x)]:[3,2];case 1:return m=b.sent()||{},[2,jt({snapshot:v.current},m)];case 2:return[2,{snapshot:v.current}]}})})},onError:function(x,m,b){if(m===void 0&&(m={}),(f.current==="optimistic"||f.current==="undoable")&&b.snapshot.forEach(function(h){var S=h[0],C=h[1];o.setQueryData(S,C)}),c.onError)return c.onError(x,m,b)},onSuccess:function(x,m,b){if(m===void 0&&(m={}),f.current==="pessimistic"){var h=m.resource,S=h===void 0?e:h,C=m.id,O=C===void 0?a:C;g({resource:S,id:O,data:x}),c.onSuccess&&c.onSuccess(x,m,b)}},onSettled:function(x,m,b,h){if(b===void 0&&(b={}),(f.current==="optimistic"||f.current==="undoable")&&h.snapshot.forEach(function(S){var C=S[0];o.invalidateQueries(C)}),c.onSettled)return c.onSettled(x,m,b,h)}})),w=function(x,m,b){return x===void 0&&(x=e),m===void 0&&(m={}),b===void 0&&(b={}),oP(void 0,void 0,void 0,function(){var h,S,C,O,E,T,$,j,M,k,N,D,A,H;return aP(this,function(B){switch(B.label){case 0:return h=b.mutationMode,S=b.returnPromise,C=S===void 0?c.returnPromise:S,O=b.onSuccess,E=b.onSettled,T=b.onError,p.current=t,h&&(f.current=h),C&&f.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),f.current==="pessimistic"?C?[2,y.mutateAsync(jt({resource:x},m),{onSuccess:O,onSettled:E,onError:T})]:[2,y.mutate(jt({resource:x},m),{onSuccess:O,onSettled:E,onError:T})]:($=m.id,j=$===void 0?a:$,M=m.data,k=M===void 0?i:M,N=m.meta,D=N===void 0?s:N,A=o.getQueryData([x,"getOne",{id:String(j),meta:D}]),H=[[x,"getOne",{id:String(j),meta:D}],[x,"getList"],[x,"getInfiniteList"],[x,"getMany"],[x,"getManyReference"]],v.current=H.reduce(function(U,q){return U.concat(o.getQueriesData(q))},[]),[4,Promise.all(v.current.map(function(U){var q=U[0];return o.cancelQueries(q)}))]);case 1:return B.sent(),g({resource:x,id:j,data:k}),O&&setTimeout(function(){return O(jt(jt({},A),k),jt({resource:x},m),{snapshot:v.current})},0),c.onSuccess&&setTimeout(function(){return c.onSuccess(jt(jt({},A),k),jt({resource:x},m),{snapshot:v.current})},0),f.current==="optimistic"?[2,y.mutate(jt({resource:x},m),{onSettled:E,onError:T})]:(Gc.once("end",function(U){var q=U.isUndo;q?v.current.forEach(function(re){var ne=re[0],fe=re[1];o.setQueryData(ne,fe)}):y.mutate(jt({resource:x},m),{onSettled:E,onError:T})}),[2])}})})};return[Wi(w),y]},Wr=globalThis&&globalThis.__assign||function(){return Wr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?S(C):C},{updatedAt:h}),o.setQueriesData([x,"getManyReference"],function(C){if(!C||!C.data)return C;var O=S(C.data),E=O.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?h(S):S},{updatedAt:b}),o.setQueriesData([w,"getManyReference"],function(S){if(!S||!S.data)return S;var C=h(S.data),O=C.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,c]),[a,l]},MY=function(e){var t=d.useState(e),r=t[0],n=t[1],o=d.useCallback(function(a){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:i.resources.concat(a.resources)}})},[]);return[r,n,o]},FY=function(e,t){var r=RI(),n=r.register,o=r.unregister;d.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);o(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,o])},NY=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return kI(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},kI=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},Vu=function(e){var t=[],r=[],n=[];return d.Children.forEach(e,function(o){if(d.isValidElement(o)){if(o.type===d.Fragment){var a=Vu(o.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(o.type.raName==="CustomRoutes"){var i=o;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else o.type.raName==="Resource"&&n.push(o)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n}},LY=function(e){LH();var t=ns(),r=IY(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.menu,p=e.requireAuth,v=e.ready,g=e.title,y=d.useState(!p),w=y[0],x=y[1],m=GI();return d.useEffect(function(){p&&m().then(function(){x(!0)}).catch(function(){})},[m,p]),a==="empty"?d.createElement(v,null):a==="loading"||!w?d.createElement(ol,null,o,d.createElement(kr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):d.createElement(ol,null,o,d.createElement(kr,{path:"/*",element:d.createElement("div",null,d.createElement(s,{dashboard:l,menu:f,title:g},d.createElement(ol,null,n,d.Children.map(i,function(b){return d.createElement(kr,{key:b.props.name,path:"".concat(b.props.name,"/*"),element:b})}),d.createElement(kr,{path:"/",element:l?d.createElement(wJ,{authParams:DY,component:l}):i.length>0?d.createElement(RD,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(kr,{path:"*",element:d.createElement(u,{title:g})}))))}))},DY={params:{route:"dashboard"}},BY=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},zY=function(e){var t=e.catchAll,r=t===void 0?hP:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,u=s===void 0?BY:s,l=e.loading,c=l===void 0?hP:l,f=e.loginPage,p=f===void 0?!1:f,v=e.authCallbackPage,g=v===void 0?!1:v,y=e.menu,w=e.ready,x=w===void 0?oJ:w,m=e.title,b=m===void 0?"React Admin":m,h=e.requireAuth,S=h===void 0?!1:h;return d.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var C=new Image;C.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),d.createElement(ol,null,p!==!1&&p!==!0?d.createElement(kr,{path:"/login",element:pP(p)}):null,g!==!1&&g!==!0?d.createElement(kr,{path:"/auth-callback",element:pP(g)}):null,d.createElement(kr,{path:"/*",element:d.createElement(LY,{catchAll:r,dashboard:o,layout:u,loading:c,menu:y,requireAuth:S,ready:x,title:b},n)}))},pP=function(e){return d.isValidElement(e)?e:d.createElement(e)},hP=function(){return null},jI=function(e){return null};jI.raName="CustomRoutes";var II={exports:{}},Ot={};/** @license React v17.0.2 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Jv=60103,Zv=60106,Cd=60107,_d=60108,Od=60114,Ed=60109,Pd=60110,Td=60112,$d=60113,Dw=60120,Rd=60115,kd=60116,AI=60121,MI=60122,FI=60117,NI=60129,LI=60131;if(typeof Symbol=="function"&&Symbol.for){var vr=Symbol.for;Jv=vr("react.element"),Zv=vr("react.portal"),Cd=vr("react.fragment"),_d=vr("react.strict_mode"),Od=vr("react.profiler"),Ed=vr("react.provider"),Pd=vr("react.context"),Td=vr("react.forward_ref"),$d=vr("react.suspense"),Dw=vr("react.suspense_list"),Rd=vr("react.memo"),kd=vr("react.lazy"),AI=vr("react.block"),MI=vr("react.server.block"),FI=vr("react.fundamental"),NI=vr("react.debug_trace_mode"),LI=vr("react.legacy_hidden")}function so(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jv:switch(e=e.type,e){case Cd:case Od:case _d:case $d:case Dw:return e;default:switch(e=e&&e.$$typeof,e){case Pd:case Td:case kd:case Rd:case Ed:return e;default:return t}}case Zv:return t}}}var VY=Ed,UY=Jv,WY=Td,HY=Cd,qY=kd,KY=Rd,GY=Zv,QY=Od,XY=_d,YY=$d;Ot.ContextConsumer=Pd;Ot.ContextProvider=VY;Ot.Element=UY;Ot.ForwardRef=WY;Ot.Fragment=HY;Ot.Lazy=qY;Ot.Memo=KY;Ot.Portal=GY;Ot.Profiler=QY;Ot.StrictMode=XY;Ot.Suspense=YY;Ot.isAsyncMode=function(){return!1};Ot.isConcurrentMode=function(){return!1};Ot.isContextConsumer=function(e){return so(e)===Pd};Ot.isContextProvider=function(e){return so(e)===Ed};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jv};Ot.isForwardRef=function(e){return so(e)===Td};Ot.isFragment=function(e){return so(e)===Cd};Ot.isLazy=function(e){return so(e)===kd};Ot.isMemo=function(e){return so(e)===Rd};Ot.isPortal=function(e){return so(e)===Zv};Ot.isProfiler=function(e){return so(e)===Od};Ot.isStrictMode=function(e){return so(e)===_d};Ot.isSuspense=function(e){return so(e)===$d};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cd||e===Od||e===NI||e===_d||e===$d||e===Dw||e===LI||typeof e=="object"&&e!==null&&(e.$$typeof===kd||e.$$typeof===Rd||e.$$typeof===Ed||e.$$typeof===Pd||e.$$typeof===Td||e.$$typeof===FI||e.$$typeof===AI||e[0]===MI)};Ot.typeOf=so;II.exports=Ot;var DI=II.exports,BI=d.createContext(void 0),nu=function(e){var t=e.children,r=e.value;return r?d.createElement(BI.Provider,{value:r},t):t},Hs=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return d.createElement(nu,{value:o},d.createElement(ol,null,t&&d.createElement(kr,{path:"create/*",element:bf(t)}),a&&d.createElement(kr,{path:":id/show/*",element:bf(a)}),r&&d.createElement(kr,{path:":id/*",element:bf(r)}),n&&d.createElement(kr,{path:"/*",element:bf(n)}),e.children))},bf=function(e){return d.isValidElement(e)?e:DI.isValidElementType(e)?d.createElement(e,null):null};Hs.raName="Resource";Hs.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var zI={exports:{}};/*! - * inflection - * Copyright(c) 2011 Ben Lin - * MIT Licensed - * - * @fileoverview - * A port of inflection-js to node.js module. - */(function(e,t){(function(r,n){e.exports=n()})(Wo,function(){var r=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],n={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},o=[[n.plural.men],[n.plural.people],[n.plural.children],[n.plural.tia],[n.plural.analyses],[n.plural.hives],[n.plural.curves],[n.plural.lrves],[n.plural.foves],[n.plural.aeiouyies],[n.plural.series],[n.plural.movies],[n.plural.xes],[n.plural.mice],[n.plural.buses],[n.plural.oes],[n.plural.shoes],[n.plural.crises],[n.plural.octopi],[n.plural.aliases],[n.plural.summonses],[n.plural.oxen],[n.plural.matrices],[n.plural.feet],[n.plural.teeth],[n.plural.geese],[n.plural.quizzes],[n.plural.whereases],[n.plural.criteria],[n.plural.genera],[n.singular.man,"$1en"],[n.singular.person,"$1ople"],[n.singular.child,"$1ren"],[n.singular.ox,"$1en"],[n.singular.axis,"$1es"],[n.singular.octopus,"$1i"],[n.singular.alias,"$1es"],[n.singular.summons,"$1es"],[n.singular.bus,"$1ses"],[n.singular.buffalo,"$1oes"],[n.singular.tium,"$1a"],[n.singular.sis,"ses"],[n.singular.ffe,"$1$2ves"],[n.singular.hive,"$1ves"],[n.singular.aeiouyy,"$1ies"],[n.singular.matrix,"$1ices"],[n.singular.vertex,"$1ices"],[n.singular.x,"$1es"],[n.singular.mouse,"$1ice"],[n.singular.foot,"feet"],[n.singular.tooth,"teeth"],[n.singular.goose,"geese"],[n.singular.quiz,"$1zes"],[n.singular.whereas,"$1es"],[n.singular.criterion,"$1a"],[n.singular.genus,"genera"],[n.singular.s,"s"],[n.singular.common,"s"]],a=[[n.singular.man],[n.singular.person],[n.singular.child],[n.singular.ox],[n.singular.axis],[n.singular.octopus],[n.singular.alias],[n.singular.summons],[n.singular.bus],[n.singular.buffalo],[n.singular.tium],[n.singular.sis],[n.singular.ffe],[n.singular.hive],[n.singular.aeiouyy],[n.singular.x],[n.singular.matrix],[n.singular.mouse],[n.singular.foot],[n.singular.tooth],[n.singular.goose],[n.singular.quiz],[n.singular.whereas],[n.singular.criterion],[n.singular.genus],[n.plural.men,"$1an"],[n.plural.people,"$1rson"],[n.plural.children,"$1"],[n.plural.genera,"genus"],[n.plural.criteria,"$1on"],[n.plural.tia,"$1um"],[n.plural.analyses,"$1$2sis"],[n.plural.hives,"$1ve"],[n.plural.curves,"$1"],[n.plural.lrves,"$1f"],[n.plural.aves,"$1ve"],[n.plural.foves,"$1fe"],[n.plural.movies,"$1ovie"],[n.plural.aeiouyies,"$1y"],[n.plural.series,"$1eries"],[n.plural.xes,"$1"],[n.plural.mice,"$1ouse"],[n.plural.buses,"$1"],[n.plural.oes,"$1"],[n.plural.shoes,"$1"],[n.plural.crises,"$1is"],[n.plural.octopi,"$1us"],[n.plural.aliases,"$1"],[n.plural.summonses,"$1"],[n.plural.oxen,"$1"],[n.plural.matrices,"$1ix"],[n.plural.vertices,"$1ex"],[n.plural.feet,"foot"],[n.plural.teeth,"tooth"],[n.plural.geese,"goose"],[n.plural.quizzes,"$1"],[n.plural.whereases,"$1"],[n.plural.ss,"ss"],[n.plural.s,""]],i=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],s=new RegExp("(_ids|_id)$","g"),u=new RegExp("_","g"),l=new RegExp("[ _]","g"),c=new RegExp("([A-Z])","g"),f=new RegExp("^_"),p={_apply_rules:function(v,g,y,w){if(w)v=w;else{var x=p.indexOf(y,v.toLowerCase())>-1;if(!x){for(var m=0,b=g.length;m1?p._apply_rules(v,o,r,w):p._apply_rules(v,a,r,y)},camelize:function(v,g){for(var y=v.split("/"),w=0,x=y.length,m,b,h,S;w1?Da.pluralize(r):Da.singularize(r))});return a}},yt=function(e){var t=d.useContext(BI);return e&&e.resource||t},Ja=function(e){var t=yt(e),r=em(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return os({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:u},r[t])},[t,r,o,a,i,s,u]);return l},Bw=function(e){var t=Ja({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?mt(r,t):d.isValidElement(t)?t:"#".concat(r.id):""},[t])},He=function(){var e=_w(),t=d.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:ZY},ZY=function(e){return e},eJ=function(){var e=He(),t=WI(),r=yt();return d.useCallback(function(n){var o=n.source,a=n.label,i=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,tJ({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},VI=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=eJ();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,a({label:r,resource:n,source:t}),o&&d.createElement("span",{"aria-hidden":"true"}," *"))};VI.displayName="FieldTitle";const Eo=d.memo(VI),tJ=function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var i=rJ(a),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=Da.transform(u.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:l}]:r?["".concat(r,".").concat(s),{_:l}]:["resources.".concat(o,".fields.").concat(s),{_:l}]};var rJ=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){nJ(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},nJ=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};const tm=function(e,t,r){if(e[t]&&!DI.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))};var vP=globalThis&&globalThis.__assign||function(){return vP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"?t:p)});return function(){return f()}},[e,a,t,n,s]);var l=Wi(function(c,f){var p=typeof c=="function"?c(s):c;o(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},iJ=function(e){var t=zv().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},sJ=function(e){var t=zv().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},lJ=function(){var e=zv().reset;return e},uJ=function(){var e=na(),t=oo(),r=lJ(),n=$o(),o=d.useRef(n),a=Ir(),i=d.useRef(a),s=Xa(),u=vo("".concat(s,"/").concat(Rv.loginUrl));d.useEffect(function(){i.current=a,o.current=n},[a,n]);var l=d.useCallback(function(f,p,v){return f===void 0&&(f={}),p===void 0&&(p=u),v===void 0&&(v=!0),e.logout(f).then(function(g){if(g===!1||p===!1){r(),t.clear();return}var y=g||p;if(y!=null&&y.startsWith("http"))return r(),t.clear(),window.location.href=y,y;var w=y.split("?"),x={pathname:w[0]},m={};return v&&i.current&&i.current.pathname&&(m={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),w[1]&&(x.search=w[1]),o.current(x,m),r(),t.clear(),g})},[e,r,u,t]),c=d.useCallback(function(f){return n({pathname:u},{state:{nextPathname:a&&a.pathname}}),r(),t.clear(),Promise.resolve()},[r,a,n,u,t]);return e?l:c};const jd=uJ;var o0=globalThis&&globalThis.__assign||function(){return o0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},a0=globalThis&&globalThis.__assign||function(){return a0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"),au(t);var i=KI(t).permissions;if(o)return d.createElement(o,uc({permissions:i},a));if(n)return n(uc({permissions:i},a));if(r)return r(uc({permissions:i},a))};const wJ=xJ;var SJ=function(){var e=na(),t=Ir(),r=t.state,n=$o(),o=Xa(),a=oj().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=vo("".concat(o,"/").concat(Rv.afterLoginUrl)),l=d.useCallback(function(f,p){return f===void 0&&(f={}),e.login(f).then(function(v){if(a(),v&&v.hasOwnProperty("redirectTo"))v&&n(v.redirectTo);else{var g=p||i+s||u;n(g)}return v})},[e,n,i,s,a,u]),c=d.useCallback(function(f,p){return a(),n(u),Promise.resolve()},[n,a,u]);return e?l:c};const CJ=SJ;var _J="AUTH_LOGIN",OJ="AUTH_CHECK",EJ="AUTH_ERROR",PJ="AUTH_LOGOUT",TJ="AUTH_GET_PERMISSIONS";const $J=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},i0=globalThis&&globalThis.__assign||function(){return i0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return lo(r&&e?"".concat(r,".").concat(e):r??e,t)},Vw=function(){return d.useContext(TI)},BJ=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]a.current&&t&&(a.current=n,Object.keys(o).length>0&&i("ra.message.invalid_form",{type:"error"}))},[o,n,i,t])},tZ=function(e,t,r){var n=d.useContext(oa).navigator,o=Ir(),a=He(),i=Yv(r?{control:r}:void 0),s=i.isSubmitSuccessful,u=i.isSubmitting,l=i.dirtyFields,c=Object.keys(l).length>0,f=d.useRef(t||o.pathname);d.useEffect(function(){if(!(!e||!c)&&n.block){var p=n.block(function(v){var g=v.location.pathname.startsWith(f.current),y=v.location.pathname.startsWith("".concat(f.current,"/show")),w=g&&!y;!u&&(w||s||window.confirm(a("ra.message.unsaved_changes")))?(p(),v.retry()):u&&setTimeout(function(){v.retry()},100)});return p}},[e,o,n,c,u,s,a])},rZ=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},c0=globalThis&&globalThis.__assign||function(){return c0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Za=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function lZ(e){return e?e.hasOwnProperty("message"):!1}var ei=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},ti=function(e){return Dk(e,function(){for(var t=[],r=0;re?ei(t,{max:e},r,n):void 0}});ti(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Za(r)&&re?ei(t,{max:e},r,n):void 0}});ti(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Za(t)&&isNaN(Number(t))?ei(e,void 0,t,r):void 0}});var fZ=Dk(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Za(r)&&typeof r=="string"&&!e.test(r)?ei(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});ti(function(e){return e===void 0&&(e="ra.validation.email"),fZ(sZ,e)});var pZ=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};ti(function(e,t){return t===void 0&&(t=pZ),function(r,n){return!Za(r)&&e.indexOf(r)===-1?ei(t,{list:e},r,n):void 0}});var hZ=d.createContext(void 0),vZ=function(){var e=d.useContext(JI);return e},mZ=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=Lt(t),s=ru(),u=s.getValues,l=s.resetField,c=s.getFieldState,f=s.formState,p=s.reset,v=mt(i,a),g=mt(u(),a),y=c(a,f).isDirty;d.useEffect(function(){if(!(o==null||g!=null||v!=null||y)){var w=a.split(".").some(function(b){return gZ.test(b)});if(w){var x=a.split(".").slice(0,-1).join("."),m=mt(u(),x);if(m==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(o),p({},{keepValues:!0});return}l(a,{defaultValue:o})}})},gZ=/^\d+$/,yZ=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,o=n===void 0?"id":n,a=e.disableValue,i=a===void 0?"disabled":a,s=e.translateChoice,u=s===void 0?!0:s,l=He(),c=d.useCallback(function(v){if(d.isValidElement(r))return d.createElement(tu,{value:v},r);var g=typeof r=="function"?r(v):mt(v,r);return d.isValidElement(g)?g:u?l(String(g),{_:g}):String(g)},[r,l,u]),f=d.useCallback(function(v){return mt(v,o)},[o]),p=d.useCallback(function(v){return mt(v,i)},[i]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},bZ=function(){var e=d.useContext(hZ);return e},xZ=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const wZ=xZ;var Ks=globalThis&&globalThis.__assign||function(){return Ks=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=0)&&(r[o]=e[o]);return r}function oA(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var LZ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,DZ=oA(function(e){return LZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function BZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?xr(su,--tn):0,Tl--,rr===10&&(Tl=1,nm--),rr}function mn(){return rr=tn2||Zc(rr)>3?"":" "}function ZZ(e,t){for(;--t&&mn()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return Id(e,rp()+(t<6&&_o()==32&&mn()==32))}function h0(e){for(;mn();)switch(rr){case e:return tn;case 34:case 39:e!==34&&e!==39&&h0(rr);break;case 40:e===41&&h0(e);break;case 92:mn();break}return tn}function eee(e,t){for(;mn()&&e+rr!==47+10;)if(e+rr===42+42&&_o()===47)break;return"/*"+Id(t,tn-1)+"*"+rm(e===47?e:mn())}function tee(e){for(;!Zc(_o());)mn();return Id(e,tn)}function ree(e){return cA(op("",null,null,null,[""],e=uA(e),0,[0],e))}function op(e,t,r,n,o,a,i,s,u){for(var l=0,c=0,f=i,p=0,v=0,g=0,y=1,w=1,x=1,m=0,b="",h=o,S=a,C=n,O=b;w;)switch(g=m,m=mn()){case 40:if(g!=108&&xr(O,f-1)==58){p0(O+=vt(np(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:O+=np(m);break;case 9:case 10:case 13:case 32:O+=JZ(g);break;case 92:O+=ZZ(rp()-1,7);continue;case 47:switch(_o()){case 42:case 47:xf(nee(eee(mn(),rp()),t,r),u);break;default:O+="/"}break;case 123*y:s[l++]=mo(O)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:w=0;case 59+c:x==-1&&(O=vt(O,/\f/g,"")),v>0&&mo(O)-f&&xf(v>32?wP(O+";",n,r,f-1):wP(vt(O," ","")+";",n,r,f-2),u);break;case 59:O+=";";default:if(xf(C=xP(O,t,r,l,c,o,s,b,h=[],S=[],f),a),m===123)if(c===0)op(O,t,C,C,h,a,f,s,S);else switch(p===99&&xr(O,3)===110?100:p){case 100:case 108:case 109:case 115:op(e,C,C,n&&xf(xP(e,C,C,0,0,o,s,b,o,h=[],f),S),o,S,f,s,n?h:S);break;default:op(O,C,C,C,[""],S,0,s,S)}}l=c=v=0,y=x=1,b=O="",f=i;break;case 58:f=1+mo(O),v=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&YZ()==125)continue}switch(O+=rm(m),m*y){case 38:x=c>0?1:(O+="\f",-1);break;case 44:s[l++]=(mo(O)-1)*x,x=1;break;case 64:_o()===45&&(O+=np(mn())),p=_o(),c=f=mo(b=O+=tee(rp())),m++;break;case 45:g===45&&mo(O)==2&&(y=0)}}return a}function xP(e,t,r,n,o,a,i,s,u,l,c){for(var f=o-1,p=o===0?a:[""],v=Hw(p),g=0,y=0,w=0;g0?p[x]+" "+m:vt(m,/&\f/g,p[x])))&&(u[w++]=b);return om(e,t,r,o===0?Uw:s,u,l,c)}function nee(e,t,r){return om(e,t,r,aA,rm(XZ()),Jc(e,2,-2),0)}function wP(e,t,r,n){return om(e,t,r,Ww,Jc(e,0,n),Jc(e,n+1,-1),n)}function al(e,t){for(var r="",n=Hw(e),o=0;o6)switch(xr(e,t+1)){case 109:if(xr(e,t+4)!==45)break;case 102:return vt(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+Ch+(xr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~p0(e,"stretch")?dA(vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(xr(e,t+1)!==115)break;case 6444:switch(xr(e,mo(e)-3-(~p0(e,"!important")&&10))){case 107:return vt(e,":",":"+ht)+e;case 101:return vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(xr(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+Tr+"$2box$3")+e}break;case 5936:switch(xr(e,t+11)){case 114:return ht+e+Tr+vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+Tr+vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+Tr+vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+Tr+e+e}return e}var fee=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ww:t.return=dA(t.value,t.length);break;case iA:return al([Pu(t,{value:vt(t.value,"@","@"+ht)})],o);case Uw:if(t.length)return QZ(t.props,function(a){switch(GZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return al([Pu(t,{props:[vt(a,/:(read-\w+)/,":"+Ch+"$1")]})],o);case"::placeholder":return al([Pu(t,{props:[vt(a,/:(plac\w+)/,":"+ht+"input-$1")]}),Pu(t,{props:[vt(a,/:(plac\w+)/,":"+Ch+"$1")]}),Pu(t,{props:[vt(a,/:(plac\w+)/,Tr+"input-$1")]})],o)}return""})}},pee=[fee],hee=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||pee,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),x=1;x=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Eee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pee=/[A-Z]|^ms/g,Tee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yA=function(t){return t.charCodeAt(1)===45},CP=function(t){return t!=null&&typeof t!="boolean"},ly=oA(function(e){return yA(e)?e:e.replace(Pee,"-$&").toLowerCase()}),_P=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Tee,function(n,o,a){return go={name:o,styles:a,next:go},o})}return Eee[t]!==1&&!yA(t)&&typeof r=="number"&&r!==0?r+"px":r};function ed(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return go={name:r.name,styles:r.styles,next:go},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)go={name:n.name,styles:n.styles,next:go},n=n.next;var o=r.styles+";";return o}return $ee(e,t,r)}case"function":{if(e!==void 0){var a=go,i=r(e);return go=a,ed(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function $ee(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Iee:Aee},TP=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Mee=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return mA(r,n,o),kee(function(){return gA(r,n,o)}),null},Fee=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=TP(t,r,n),u=s||PP(o),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,v=1;vt(Uee(o)?r:o):t;return R.jsx(jee,{styles:n})}/** - * @mui/styled-engine v5.15.4 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function OA(e,t){return v0(e,t)}const Hee=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Uo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function EA(e){if(!Uo(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=EA(e[r])}),t}function pr(e,t,r={clone:!0}){const n=r.clone?P({},e):e;return Uo(e)&&Uo(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Uo(t[o])&&o in e&&Uo(e[o])?n[o]=pr(e[o],t[o],r):r.clone?n[o]=Uo(t[o])?EA(t[o]):t[o]:n[o]=t[o])}),n}var PA={exports:{}},xt={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Yw=Symbol.for("react.element"),Jw=Symbol.for("react.portal"),mm=Symbol.for("react.fragment"),gm=Symbol.for("react.strict_mode"),ym=Symbol.for("react.profiler"),bm=Symbol.for("react.provider"),xm=Symbol.for("react.context"),qee=Symbol.for("react.server_context"),wm=Symbol.for("react.forward_ref"),Sm=Symbol.for("react.suspense"),Cm=Symbol.for("react.suspense_list"),_m=Symbol.for("react.memo"),Om=Symbol.for("react.lazy"),Kee=Symbol.for("react.offscreen"),TA;TA=Symbol.for("react.module.reference");function Bn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yw:switch(e=e.type,e){case mm:case ym:case gm:case Sm:case Cm:return e;default:switch(e=e&&e.$$typeof,e){case qee:case xm:case wm:case Om:case _m:case bm:return e;default:return t}}case Jw:return t}}}xt.ContextConsumer=xm;xt.ContextProvider=bm;xt.Element=Yw;xt.ForwardRef=wm;xt.Fragment=mm;xt.Lazy=Om;xt.Memo=_m;xt.Portal=Jw;xt.Profiler=ym;xt.StrictMode=gm;xt.Suspense=Sm;xt.SuspenseList=Cm;xt.isAsyncMode=function(){return!1};xt.isConcurrentMode=function(){return!1};xt.isContextConsumer=function(e){return Bn(e)===xm};xt.isContextProvider=function(e){return Bn(e)===bm};xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yw};xt.isForwardRef=function(e){return Bn(e)===wm};xt.isFragment=function(e){return Bn(e)===mm};xt.isLazy=function(e){return Bn(e)===Om};xt.isMemo=function(e){return Bn(e)===_m};xt.isPortal=function(e){return Bn(e)===Jw};xt.isProfiler=function(e){return Bn(e)===ym};xt.isStrictMode=function(e){return Bn(e)===gm};xt.isSuspense=function(e){return Bn(e)===Sm};xt.isSuspenseList=function(e){return Bn(e)===Cm};xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mm||e===ym||e===gm||e===Sm||e===Cm||e===Kee||typeof e=="object"&&e!==null&&(e.$$typeof===Om||e.$$typeof===_m||e.$$typeof===bm||e.$$typeof===xm||e.$$typeof===wm||e.$$typeof===TA||e.getModuleId!==void 0)};xt.typeOf=Bn;PA.exports=xt;var $A=PA.exports;function le(e){if(typeof e!="string")throw new Error(Wa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function m0(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function lu(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Gee(e,t){return()=>null}function ap(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function ar(e){return e&&e.ownerDocument||document}function Mn(e){return ar(e).defaultView||window}function Qee(e,t){return()=>null}function _h(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xee=typeof window<"u"?d.useLayoutEffect:d.useEffect,yn=Xee;let $P=0;function Yee(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&($P+=1,r(`mui-${$P}`))},[t]),n}const RP=Tp["useId".toString()];function qi(e){if(RP!==void 0){const t=RP();return e??t}return Yee(e)}function Jee(e,t,r,n,o){return null}function $l({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=d.useRef(e!==void 0),[a,i]=d.useState(t),s=o?e:a,u=d.useCallback(l=>{o||i(l)},[]);return[s,u]}function Qr(e){const t=d.useRef(e);return yn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Vt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{_h(r,t)})},e)}let Em=!0,g0=!1,kP;const Zee={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ete(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Zee[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tte(e){e.metaKey||e.altKey||e.ctrlKey||(Em=!0)}function uy(){Em=!1}function rte(){this.visibilityState==="hidden"&&g0&&(Em=!0)}function nte(e){e.addEventListener("keydown",tte,!0),e.addEventListener("mousedown",uy,!0),e.addEventListener("pointerdown",uy,!0),e.addEventListener("touchstart",uy,!0),e.addEventListener("visibilitychange",rte,!0)}function ote(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Em||ete(t)}function Pm(){const e=d.useCallback(o=>{o!=null&&nte(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(g0=!0,window.clearTimeout(kP),kP=window.setTimeout(()=>{g0=!1},100),t.current=!1,!0):!1}function n(o){return ote(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function RA(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ys;function kA(){if(ys)return ys;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ys="reverse",e.scrollLeft>0?ys="default":(e.scrollLeft=1,e.scrollLeft===0&&(ys="negative")),document.body.removeChild(e),ys}function ate(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(kA()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function Zw(e,t){const r=P({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=P({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=P({},a),Object.keys(o).forEach(i=>{r[n][i]=Zw(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function De(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}const jP=e=>e,ite=()=>{let e=jP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=jP}}},ste=ite(),eS=ste,lte={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Fe(e,t,r="Mui"){const n=lte[t];return n?`${r}-${n}`:`${eS.generate(e)}-${t}`}function Ne(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Fe(e,o,r)}),n}const ute=["values","unit","step"],cte=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>P({},r,{[n.key]:n.val}),{})};function dte(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=be(e,ute),a=cte(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,v){const g=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:v)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${tS[e]}px)`};function to(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||IP;return t.reduce((i,s,u)=>(i[a.up(a.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const a=n.breakpoints||IP;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||tS).indexOf(s)!==-1){const u=a.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function jA(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function IA(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function hte(e,...t){const r=jA(e),n=[r,...t].reduce((o,a)=>pr(o,a),{});return IA(Object.keys(r),n)}function vte(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function cy({values:e,breakpoints:t,base:r}){const n=r||vte(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function Rl(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Oh(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Rl(e,r)||n,t&&(o=t(o,n,e)),o}function er(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Rl(u,n)||{};return to(i,s,f=>{let p=Oh(l,o,f);return f===p&&typeof f=="string"&&(p=Oh(l,o,`${t}${f==="default"?"":le(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function mte(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const gte={m:"margin",p:"padding"},yte={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},AP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bte=mte(e=>{if(e.length>2)if(AP[e])e=AP[e];else return[e];const[t,r]=e.split(""),n=gte[t],o=yte[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),rS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],nS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rS,...nS];function Md(e,t,r,n){var o;const a=(o=Rl(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function oS(e){return Md(e,"spacing",8)}function Ki(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function xte(e,t){return r=>e.reduce((n,o)=>(n[o]=Ki(t,r),n),{})}function wte(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=bte(r),a=xte(o,n),i=e[r];return to(e,i,a)}function AA(e,t){const r=oS(e.theme);return Object.keys(e).map(n=>wte(e,t,n,r)).reduce(cc,{})}function Ut(e){return AA(e,rS)}Ut.propTypes={};Ut.filterProps=rS;function Wt(e){return AA(e,nS)}Wt.propTypes={};Wt.filterProps=nS;function Ste(e=8){if(e.mui)return e;const t=oS({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Tm(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?cc(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function $n(e){return typeof e!="number"?e:`${e}px solid`}function zn(e,t){return er({prop:e,themeKey:"borders",transform:t})}const Cte=zn("border",$n),_te=zn("borderTop",$n),Ote=zn("borderRight",$n),Ete=zn("borderBottom",$n),Pte=zn("borderLeft",$n),Tte=zn("borderColor"),$te=zn("borderTopColor"),Rte=zn("borderRightColor"),kte=zn("borderBottomColor"),jte=zn("borderLeftColor"),Ite=zn("outline",$n),Ate=zn("outlineColor"),$m=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Md(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ki(t,n)});return to(e,e.borderRadius,r)}return null};$m.propTypes={};$m.filterProps=["borderRadius"];Tm(Cte,_te,Ote,Ete,Pte,Tte,$te,Rte,kte,jte,$m,Ite,Ate);const Rm=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Md(e.theme,"spacing",8),r=n=>({gap:Ki(t,n)});return to(e,e.gap,r)}return null};Rm.propTypes={};Rm.filterProps=["gap"];const km=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Md(e.theme,"spacing",8),r=n=>({columnGap:Ki(t,n)});return to(e,e.columnGap,r)}return null};km.propTypes={};km.filterProps=["columnGap"];const jm=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Md(e.theme,"spacing",8),r=n=>({rowGap:Ki(t,n)});return to(e,e.rowGap,r)}return null};jm.propTypes={};jm.filterProps=["rowGap"];const Mte=er({prop:"gridColumn"}),Fte=er({prop:"gridRow"}),Nte=er({prop:"gridAutoFlow"}),Lte=er({prop:"gridAutoColumns"}),Dte=er({prop:"gridAutoRows"}),Bte=er({prop:"gridTemplateColumns"}),zte=er({prop:"gridTemplateRows"}),Vte=er({prop:"gridTemplateAreas"}),Ute=er({prop:"gridArea"});Tm(Rm,km,jm,Mte,Fte,Nte,Lte,Dte,Bte,zte,Vte,Ute);function il(e,t){return t==="grey"?t:e}const Wte=er({prop:"color",themeKey:"palette",transform:il}),Hte=er({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:il}),qte=er({prop:"backgroundColor",themeKey:"palette",transform:il});Tm(Wte,Hte,qte);function pn(e){return e<=1&&e!==0?`${e*100}%`:e}const Kte=er({prop:"width",transform:pn}),aS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||tS[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pn(r)}};return to(e,e.maxWidth,t)}return null};aS.filterProps=["maxWidth"];const Gte=er({prop:"minWidth",transform:pn}),Qte=er({prop:"height",transform:pn}),Xte=er({prop:"maxHeight",transform:pn}),Yte=er({prop:"minHeight",transform:pn});er({prop:"size",cssProperty:"width",transform:pn});er({prop:"size",cssProperty:"height",transform:pn});const Jte=er({prop:"boxSizing"});Tm(Kte,aS,Gte,Qte,Xte,Yte,Jte);const Zte={border:{themeKey:"borders",transform:$n},borderTop:{themeKey:"borders",transform:$n},borderRight:{themeKey:"borders",transform:$n},borderBottom:{themeKey:"borders",transform:$n},borderLeft:{themeKey:"borders",transform:$n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$n},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$m},color:{themeKey:"palette",transform:il},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:il},backgroundColor:{themeKey:"palette",transform:il},p:{style:Wt},pt:{style:Wt},pr:{style:Wt},pb:{style:Wt},pl:{style:Wt},px:{style:Wt},py:{style:Wt},padding:{style:Wt},paddingTop:{style:Wt},paddingRight:{style:Wt},paddingBottom:{style:Wt},paddingLeft:{style:Wt},paddingX:{style:Wt},paddingY:{style:Wt},paddingInline:{style:Wt},paddingInlineStart:{style:Wt},paddingInlineEnd:{style:Wt},paddingBlock:{style:Wt},paddingBlockStart:{style:Wt},paddingBlockEnd:{style:Wt},m:{style:Ut},mt:{style:Ut},mr:{style:Ut},mb:{style:Ut},ml:{style:Ut},mx:{style:Ut},my:{style:Ut},margin:{style:Ut},marginTop:{style:Ut},marginRight:{style:Ut},marginBottom:{style:Ut},marginLeft:{style:Ut},marginX:{style:Ut},marginY:{style:Ut},marginInline:{style:Ut},marginInlineStart:{style:Ut},marginInlineEnd:{style:Ut},marginBlock:{style:Ut},marginBlockStart:{style:Ut},marginBlockEnd:{style:Ut},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Rm},rowGap:{style:jm},columnGap:{style:km},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pn},maxWidth:{style:aS},minWidth:{transform:pn},height:{transform:pn},maxHeight:{transform:pn},minHeight:{transform:pn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Im=Zte;function ere(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function tre(e,t){return typeof e=="function"?e(t):e}function rre(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Rl(o,l)||{};return f?f(i):to(i,n,g=>{let y=Oh(p,c,g);return g===y&&typeof g=="string"&&(y=Oh(p,c,`${r}${g==="default"?"":le(g)}`,g)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Im;function s(u){let l=u;if(typeof u=="function")l=u(a);else if(typeof u!="object")return u;if(!l)return null;const c=jA(a.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(v=>{const g=tre(l[v],a);if(g!=null)if(typeof g=="object")if(i[v])p=cc(p,e(v,g,a,i));else{const y=to({theme:a},g,w=>({[v]:w}));ere(y,g)?p[v]=t({sx:g,theme:a}):p=cc(p,y)}else p=cc(p,e(v,g,a,i))}),IA(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const MA=rre();MA.filterProps=["sx"];const Am=MA,nre=["breakpoints","palette","spacing","shape"];function Mm(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=be(e,nre),s=dte(r),u=Ste(o);let l=pr({breakpoints:s,direction:"ltr",components:{},palette:P({mode:"light"},n),spacing:u,shape:P({},pte,a)},i);return l=t.reduce((c,f)=>pr(c,f),l),l.unstable_sxConfig=P({},Im,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return Am({sx:f,theme:this})},l}function ore(e){return Object.keys(e).length===0}function Fm(e=null){const t=d.useContext(vm);return!t||ore(t)?e:t}const are=Mm();function Nm(e=are){return Fm(e)}function ire({styles:e,themeId:t,defaultTheme:r={}}){const n=Nm(r),o=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(Wee,{styles:o})}const sre=["sx"],lre=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Im;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function iS(e){const{sx:t}=e,r=be(e,sre),{systemProps:n,otherProps:o}=lre(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Uo(s)?P({},n,s):n}:a=P({},n,t),P({},o,{sx:a})}function FA(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Am);return d.forwardRef(function(u,l){const c=Nm(r),f=iS(u),{className:p,component:v="div"}=f,g=be(f,ure);return R.jsx(a,P({as:v,ref:l,className:ge(p,o?o(n):n),theme:t&&c[t]||c},g))})}const dre=["variant"];function MP(e){return e.length===0}function NA(e){const{variant:t}=e,r=be(e,dre);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=MP(n)?e[o]:le(e[o]):n+=`${MP(n)?o:le(o)}${le(e[o].toString())}`}),n}const fre=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function pre(e){return Object.keys(e).length===0}function hre(e){return typeof e=="string"&&e.charCodeAt(0)>96}const vre=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Eh=e=>{let t=0;const r={};return e&&e.forEach(n=>{let o="";typeof n.props=="function"?(o=`callback${t}`,t+=1):o=NA(n.props),r[o]=n.style}),r},mre=(e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),Eh(r)},Ph=(e,t,r)=>{const{ownerState:n={}}=e,o=[];let a=0;return r&&r.forEach(i=>{let s=!0;if(typeof i.props=="function"){const u=P({},e,n);s=i.props(u)}else Object.keys(i.props).forEach(u=>{n[u]!==i.props[u]&&e[u]!==i.props[u]&&(s=!1)});s&&(typeof i.props=="function"?o.push(t[`callback${a}`]):o.push(t[NA(i.props)])),typeof i.props=="function"&&(a+=1)}),o},gre=(e,t,r,n)=>{var o;const a=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return Ph(e,t,a)};function dc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const yre=Mm(),bre=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ip({defaultTheme:e,theme:t,themeId:r}){return pre(t)?e:t[r]||t}function xre(e){return e?(t,r)=>r[e]:null}const FP=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(P({},t,{theme:ip(P({},t,{defaultTheme:r,themeId:n}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Ph(t,Eh(a),a);return[o,...i]}return o};function LA(e={}){const{themeId:t,defaultTheme:r=yre,rootShouldForwardProp:n=dc,slotShouldForwardProp:o=dc}=e,a=i=>Am(P({},i,{theme:ip(P({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Hee(i,h=>h.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=xre(bre(l))}=s,v=be(s,fre),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let w,x=dc;l==="Root"||l==="root"?x=n:l?x=o:hre(i)&&(x=void 0);const m=OA(i,P({shouldForwardProp:x,label:w},v)),b=(h,...S)=>{const C=S?S.map($=>{if(typeof $=="function"&&$.__emotion_real!==$)return j=>FP({styledArg:$,props:j,defaultTheme:r,themeId:t});if(Uo($)){let j=$,M;return $&&$.variants&&(M=$.variants,delete j.variants,j=k=>{let N=$;return Ph(k,Eh(M),M).forEach(A=>{N=pr(N,A)}),N}),j}return $}):[];let O=h;if(Uo(h)){let $;h&&h.variants&&($=h.variants,delete O.variants,O=j=>{let M=h;return Ph(j,Eh($),$).forEach(N=>{M=pr(M,N)}),M})}else typeof h=="function"&&h.__emotion_real!==h&&(O=$=>FP({styledArg:h,props:$,defaultTheme:r,themeId:t}));u&&p&&C.push($=>{const j=ip(P({},$,{defaultTheme:r,themeId:t})),M=vre(u,j);if(M){const k={};return Object.entries(M).forEach(([N,D])=>{k[N]=typeof D=="function"?D(P({},$,{theme:j})):D}),p($,k)}return null}),u&&!g&&C.push($=>{const j=ip(P({},$,{defaultTheme:r,themeId:t}));return gre($,mre(u,j),j,u)}),y||C.push(a);const E=C.length-S.length;if(Array.isArray(h)&&E>0){const $=new Array(E).fill("");O=[...h,...$],O.raw=[...h.raw,...$]}const T=m(O,...C);return i.muiName&&(T.muiName=i.muiName),T};return m.withConfig&&(b.withConfig=m.withConfig),b}}const wre=LA(),Sre=wre;function DA(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Zw(t.components[r].defaultProps,n)}function BA({props:e,name:t,defaultTheme:r,themeId:n}){let o=Nm(r);return n&&(o=o[n]||o),DA({theme:o,name:t,props:e})}function sS(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function Cre(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Gi(e){if(e.type)return e;if(e.charAt(0)==="#")return Gi(Cre(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Wa(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Wa(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function Lm(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function _re(e){e=Gi(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(l,c=(l+r/30)%12)=>o-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Lm({type:s,values:u})}function y0(e){e=Gi(e);let t=e.type==="hsl"||e.type==="hsla"?Gi(_re(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ore(e,t){const r=y0(e),n=y0(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function et(e,t){return e=Gi(e),t=sS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Lm(e)}function Dm(e,t){if(e=Gi(e),t=sS(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Lm(e)}function Fd(e,t){if(e=Gi(e),t=sS(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Lm(e)}function Ere(e,t=.15){return y0(e)>.5?Dm(e,t):Fd(e,t)}const Pre=d.createContext(null),zA=Pre;function lS(){return d.useContext(zA)}const Tre=typeof Symbol=="function"&&Symbol.for,VA=Tre?Symbol.for("mui.nested"):"__THEME_NESTED__";function $re(e,t){return typeof t=="function"?t(e):P({},e,t)}function Rre(e){const{children:t,theme:r}=e,n=lS(),o=d.useMemo(()=>{const a=n===null?r:$re(n,r);return a!=null&&(a[VA]=n!==null),a},[r,n]);return R.jsx(zA.Provider,{value:o,children:t})}const NP={};function LP(e,t,r,n=!1){return d.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?P({},t,{[e]:a}):a;return n?()=>i:i}return e?P({},t,{[e]:r}):P({},t,r)},[e,t,r,n])}function kre(e){const{children:t,theme:r,themeId:n}=e,o=Fm(NP),a=lS()||NP,i=LP(n,o,r),s=LP(n,a,r,!0);return R.jsx(Rre,{theme:s,children:R.jsx(vm.Provider,{value:i,children:t})})}const jre=["component","direction","spacing","divider","children","className","useFlexGap"],Ire=Mm(),Are=Sre("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Mre(e){return BA({props:e,name:"MuiStack",defaultTheme:Ire})}function Fre(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Lre=({ownerState:e,theme:t})=>{let r=P({display:"flex",flexDirection:"column"},to({theme:t},cy({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oS(t),o=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),a=cy({values:e.direction,base:o}),i=cy({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,l,c)=>{if(!a[u]){const p=l>0?a[c[l-1]]:"column";a[u]=p}}),r=pr(r,to({theme:t},i,(u,l)=>e.useFlexGap?{gap:Ki(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Nre(l?a[l]:e.direction)}`]:Ki(n,u)}}))}return r=hte(t.breakpoints,r),r};function Dre(e={}){const{createStyledComponent:t=Are,useThemeProps:r=Mre,componentName:n="MuiStack"}=e,o=()=>De({root:["root"]},u=>Fe(n,u),{}),a=t(Lre);return d.forwardRef(function(u,l){const c=r(u),f=iS(c),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:w,className:x,useFlexGap:m=!1}=f,b=be(f,jre),h={direction:v,spacing:g,useFlexGap:m},S=o();return R.jsx(a,P({as:p,ownerState:h,ref:l,className:ge(S.root,x)},b,{children:y?Fre(w,y):w}))})}function Bre(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const zre=["mode","contrastThreshold","tonalOffset"],DP={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Yc.white,default:Yc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dy={text:{primary:Yc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Yc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function BP(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Fd(e.main,o):t==="dark"&&(e.dark=Dm(e.main,a)))}function Vre(e="light"){return e==="dark"?{main:vs[200],light:vs[50],dark:vs[400]}:{main:vs[700],light:vs[400],dark:vs[800]}}function Ure(e="light"){return e==="dark"?{main:hs[200],light:hs[50],dark:hs[400]}:{main:hs[500],light:hs[300],dark:hs[700]}}function Wre(e="light"){return e==="dark"?{main:ps[500],light:ps[300],dark:ps[700]}:{main:ps[700],light:ps[400],dark:ps[800]}}function Hre(e="light"){return e==="dark"?{main:ms[400],light:ms[300],dark:ms[700]}:{main:ms[700],light:ms[500],dark:ms[900]}}function qre(e="light"){return e==="dark"?{main:gs[400],light:gs[300],dark:gs[700]}:{main:gs[800],light:gs[500],dark:gs[900]}}function Kre(e="light"){return e==="dark"?{main:Eu[400],light:Eu[300],dark:Eu[700]}:{main:"#ed6c02",light:Eu[500],dark:Eu[900]}}function Gre(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=be(e,zre),a=e.primary||Vre(t),i=e.secondary||Ure(t),s=e.error||Wre(t),u=e.info||Hre(t),l=e.success||qre(t),c=e.warning||Kre(t);function f(y){return Ore(y,dy.text.primary)>=r?dy.text.primary:DP.text.primary}const p=({color:y,name:w,mainShade:x=500,lightShade:m=300,darkShade:b=700})=>{if(y=P({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(Wa(11,w?` (${w})`:"",x));if(typeof y.main!="string")throw new Error(Wa(12,w?` (${w})`:"",JSON.stringify(y.main)));return BP(y,"light",m,n),BP(y,"dark",b,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:dy,light:DP};return pr(P({common:P({},Yc),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:NZ,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),o)}const Qre=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xre(e){return Math.round(e*1e5)/1e5}const zP={textTransform:"uppercase"},VP='"Roboto", "Helvetica", "Arial", sans-serif';function Yre(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=VP,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=be(r,Qre),v=o/14,g=f||(x=>`${x/l*v}rem`),y=(x,m,b,h,S)=>P({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:b},n===VP?{letterSpacing:`${Xre(h/m)}em`}:{},S,c),w={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,zP),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,zP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pr(P({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},w),p,{clone:!1})}const Jre=.2,Zre=.14,ene=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Jre})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zre})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ene})`].join(",")}const tne=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],rne=tne,nne=["duration","easing","delay"],one={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ane={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function UP(e){return`${Math.round(e)}ms`}function ine(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sne(e){const t=P({},one,e.easing),r=P({},ane,e.duration);return P({getAutoHeightDuration:ine,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=a;return be(a,nne),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:UP(i)} ${s} ${typeof u=="string"?u:UP(u)}`).join(",")}},e,{easing:t,duration:r})}const lne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},une=lne,cne=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Th(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=be(e,cne);if(e.vars)throw new Error(Wa(18));const s=Gre(n),u=Mm(e);let l=pr(u,{mixins:Bre(u.breakpoints,r),palette:s,shadows:rne.slice(),typography:Yre(s,a),transitions:sne(o),zIndex:P({},une)});return l=pr(l,i),l=t.reduce((c,f)=>pr(c,f),l),l.unstable_sxConfig=P({},Im,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return Am({sx:f,theme:this})},l}const dne=Th(),Bm=dne;function nn(){const e=Nm(Bm);return e[Hi]||e}function Be({props:e,name:t}){return BA({props:e,name:t,defaultTheme:Bm,themeId:Hi})}const Cr=e=>dc(e)&&e!=="classes",fne=dc,pne=LA({themeId:Hi,defaultTheme:Bm,rootShouldForwardProp:Cr}),Y=pne,hne=["theme"];function vne(e){let{theme:t}=e,r=be(e,hne);const n=t[Hi];return R.jsx(kre,P({},r,{themeId:n?Hi:void 0,theme:n||t}))}const mne=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},WP=mne;function gne(e){return Fe("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yne=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bne=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(r)}`]};return De(o,gne,n)},xne=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${le(r.color)}`],t[`fontSize${le(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,u,l,c,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),UA=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=be(n,yne),g=d.isValidElement(o)&&o.type==="svg",y=P({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),w={};c||(w.viewBox=p);const x=bne(y);return R.jsxs(xne,P({as:s,className:ge(x.root,a),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},w,v,g&&o.props,{ownerState:y,children:[g?o.props.children:o,f?R.jsx("title",{children:f}):null]}))});UA.muiName="SvgIcon";const HP=UA;function on(e,t){function r(n,o){return R.jsx(HP,P({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=HP.muiName,d.memo(d.forwardRef(r))}const wne={configure:e=>{eS.configure(e)}},Sne=Object.freeze(Object.defineProperty({__proto__:null,capitalize:le,createChainedFunction:m0,createSvgIcon:on,debounce:lu,deprecatedPropType:Gee,isMuiElement:ap,ownerDocument:ar,ownerWindow:Mn,requirePropFactory:Qee,setRef:_h,unstable_ClassNameGenerator:wne,unstable_useEnhancedEffect:yn,unstable_useId:qi,unsupportedProp:Jee,useControlled:$l,useEventCallback:Qr,useForkRef:Vt,useIsFocusVisible:Pm},Symbol.toStringTag,{value:"Module"})),qP={disabled:!1},$h=he.createContext(null);var Cne=function(t){return t.scrollTop},Uu="unmounted",pi="exited",hi="entering",_s="entered",b0="exiting",sa=function(e){no(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=pi,a.appearStatus=hi):u=_s:n.unmountOnExit||n.mountOnEnter?u=Uu:u=pi,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Uu?{status:pi}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==hi&&i!==_s&&(a=hi):(i===hi||i===_s)&&(a=b0)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===hi){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:zu.findDOMNode(this);i&&Cne(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pi&&this.setState({status:Uu})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[zu.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||qP.disabled){this.safeSetState({status:_s},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:hi},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:_s},function(){a.props.onEntered(l,c)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:zu.findDOMNode(this);if(!a||qP.disabled){this.safeSetState({status:pi},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:b0},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:pi},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:zu.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Uu)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=be(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return he.createElement($h.Provider,{value:null},typeof i=="function"?i(o,s):he.cloneElement(he.Children.only(i),s))},t}(he.Component);sa.contextType=$h;sa.propTypes={};function bs(){}sa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bs,onEntering:bs,onEntered:bs,onExit:bs,onExiting:bs,onExited:bs};sa.UNMOUNTED=Uu;sa.EXITED=pi;sa.ENTERING=hi;sa.ENTERED=_s;sa.EXITING=b0;const uS=sa;function cS(e,t){var r=function(a){return t&&d.isValidElement(a)?t(a):a},n=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function _ne(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function kl(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function Rne(e){return Fe("MuiPaper",e)}Ne("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const kne=["className","component","elevation","square","variant"],jne=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return De(a,Rne,o)},Ine=Y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return P({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${et("#fff",WP(t.elevation))}, ${et("#fff",WP(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Ane=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=be(n,kne),c=P({},n,{component:a,elevation:i,square:s,variant:u}),f=jne(c);return R.jsx(Ine,P({as:a,ownerState:c,className:ge(f.root,o),ref:r},l))}),ri=Ane;function Mne(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ge(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=ge(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),R.jsx("span",{className:p,style:v,children:R.jsx("span",{className:g})})}const Fne=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),En=Fne,Nne=["center","classes","className"];let zm=e=>e,KP,GP,QP,XP;const x0=550,Lne=80,Dne=Ad(KP||(KP=zm` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Bne=Ad(GP||(GP=zm` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),zne=Ad(QP||(QP=zm` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),Vne=Y("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Une=Y(Mne,{name:"MuiTouchRipple",slot:"Ripple"})(XP||(XP=zm` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),En.rippleVisible,Dne,x0,({theme:e})=>e.transitions.easing.easeInOut,En.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,En.child,En.childLeaving,Bne,x0,({theme:e})=>e.transitions.easing.easeInOut,En.childPulsate,zne,({theme:e})=>e.transitions.easing.easeInOut),Wne=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=be(n,Nne),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),v=d.useRef(0),g=d.useRef(null),y=d.useRef(null);d.useEffect(()=>()=>{v.current&&clearTimeout(v.current)},[]);const w=d.useCallback(h=>{const{pulsate:S,rippleX:C,rippleY:O,rippleSize:E,cb:T}=h;l($=>[...$,R.jsx(Une,{classes:{ripple:ge(a.ripple,En.ripple),rippleVisible:ge(a.rippleVisible,En.rippleVisible),ripplePulsate:ge(a.ripplePulsate,En.ripplePulsate),child:ge(a.child,En.child),childLeaving:ge(a.childLeaving,En.childLeaving),childPulsate:ge(a.childPulsate,En.childPulsate)},timeout:x0,pulsate:S,rippleX:C,rippleY:O,rippleSize:E},c.current)]),c.current+=1,f.current=T},[a]),x=d.useCallback((h={},S={},C=()=>{})=>{const{pulsate:O=!1,center:E=o||S.pulsate,fakeElement:T=!1}=S;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const $=T?null:y.current,j=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,k,N;if(E||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)M=Math.round(j.width/2),k=Math.round(j.height/2);else{const{clientX:D,clientY:A}=h.touches&&h.touches.length>0?h.touches[0]:h;M=Math.round(D-j.left),k=Math.round(A-j.top)}if(E)N=Math.sqrt((2*j.width**2+j.height**2)/3),N%2===0&&(N+=1);else{const D=Math.max(Math.abs(($?$.clientWidth:0)-M),M)*2+2,A=Math.max(Math.abs(($?$.clientHeight:0)-k),k)*2+2;N=Math.sqrt(D**2+A**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{w({pulsate:O,rippleX:M,rippleY:k,rippleSize:N,cb:C})},v.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},Lne)):w({pulsate:O,rippleX:M,rippleY:k,rippleSize:N,cb:C})},[o,w]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),b=d.useCallback((h,S)=>{if(clearTimeout(v.current),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,v.current=setTimeout(()=>{b(h,S)});return}g.current=null,l(C=>C.length>0?C.slice(1):C),f.current=S},[]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:b}),[m,x,b]),R.jsx(Vne,P({className:ge(En.root,a.root,i),ref:y},s,{children:R.jsx($ne,{component:null,exit:!0,children:u})}))}),Hne=Wne;function qne(e){return Fe("MuiButtonBase",e)}const Kne=Ne("MuiButtonBase",["root","disabled","focusVisible"]),Gne=Kne,Qne=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Xne=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=De({root:["root",t&&"disabled",r&&"focusVisible"]},qne,o);return r&&n&&(i.root+=` ${n}`),i},Yne=Y("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Gne.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jne=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:w,onDragLeave:x,onFocus:m,onFocusVisible:b,onKeyDown:h,onKeyUp:S,onMouseDown:C,onMouseLeave:O,onMouseUp:E,onTouchEnd:T,onTouchMove:$,onTouchStart:j,tabIndex:M=0,TouchRippleProps:k,touchRippleRef:N,type:D}=n,A=be(n,Qne),H=d.useRef(null),B=d.useRef(null),U=Vt(B,N),{isFocusVisibleRef:q,onFocus:re,onBlur:ne,ref:fe}=Pm(),[ve,Se]=d.useState(!1);l&&ve&&Se(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),H.current.focus()}}),[]);const[we,Re]=d.useState(!1);d.useEffect(()=>{Re(!0)},[]);const pe=we&&!c&&!l;d.useEffect(()=>{ve&&p&&!c&&we&&B.current.pulsate()},[c,p,ve,we]);function xe(oe,Pe,Ve=f){return Qr(Ue=>(Pe&&Pe(Ue),!Ve&&B.current&&B.current[oe](Ue),!0))}const Te=xe("start",C),je=xe("stop",w),Oe=xe("stop",x),Ce=xe("stop",E),Ie=xe("stop",oe=>{ve&&oe.preventDefault(),O&&O(oe)}),ke=xe("start",j),Xe=xe("stop",T),Je=xe("stop",$),Ke=xe("stop",oe=>{ne(oe),q.current===!1&&Se(!1),g&&g(oe)},!1),W=Qr(oe=>{H.current||(H.current=oe.currentTarget),re(oe),q.current===!0&&(Se(!0),b&&b(oe)),m&&m(oe)}),Q=()=>{const oe=H.current;return u&&u!=="button"&&!(oe.tagName==="A"&&oe.href)},ee=d.useRef(!1),ye=Qr(oe=>{p&&!ee.current&&ve&&B.current&&oe.key===" "&&(ee.current=!0,B.current.stop(oe,()=>{B.current.start(oe)})),oe.target===oe.currentTarget&&Q()&&oe.key===" "&&oe.preventDefault(),h&&h(oe),oe.target===oe.currentTarget&&Q()&&oe.key==="Enter"&&!l&&(oe.preventDefault(),y&&y(oe))}),ce=Qr(oe=>{p&&oe.key===" "&&B.current&&ve&&!oe.defaultPrevented&&(ee.current=!1,B.current.stop(oe,()=>{B.current.pulsate(oe)})),S&&S(oe),y&&oe.target===oe.currentTarget&&Q()&&oe.key===" "&&!oe.defaultPrevented&&y(oe)});let se=u;se==="button"&&(A.href||A.to)&&(se=v);const X={};se==="button"?(X.type=D===void 0?"button":D,X.disabled=l):(!A.href&&!A.to&&(X.role="button"),l&&(X["aria-disabled"]=l));const K=Vt(r,fe,H),G=P({},n,{centerRipple:a,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:M,focusVisible:ve}),Z=Xne(G);return R.jsxs(Yne,P({as:se,className:ge(Z.root,s),ownerState:G,onBlur:Ke,onClick:y,onContextMenu:je,onFocus:W,onKeyDown:ye,onKeyUp:ce,onMouseDown:Te,onMouseLeave:Ie,onMouseUp:Ce,onDragLeave:Oe,onTouchEnd:Xe,onTouchMove:Je,onTouchStart:ke,ref:K,tabIndex:l?-1:M,type:D},X,A,{children:[i,pe?R.jsx(Hne,P({ref:U,center:a},k)):null]}))}),ro=Jne;function Zne(e){return Fe("MuiIconButton",e)}const eoe=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),toe=eoe,roe=["edge","children","className","color","disabled","disableFocusRipple","size"],noe=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${le(n)}`,o&&`edge${le(o)}`,`size${le(a)}`]};return De(i,Zne,t)},ooe=Y(ro,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${le(r.color)}`],r.edge&&t[`edge${le(r.edge)}`],t[`size${le(r.size)}`]]}})(({theme:e,ownerState:t})=>P({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":P({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${toe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),aoe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=be(n,roe),p=P({},n,{edge:o,color:s,disabled:u,disableFocusRipple:l,size:c}),v=noe(p);return R.jsx(ooe,P({className:ge(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r,ownerState:p},f,{children:a}))}),or=aoe;function ioe(e){return Fe("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const soe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],loe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${le(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return De(s,ioe,i)},uoe=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${le(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),YP={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},coe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},doe=e=>coe[e]||e,foe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTypography"}),o=doe(n.color),a=iS(P({},n,{color:o})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=YP}=a,g=be(a,soe),y=P({},a,{align:i,color:o,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:v}),w=u||(f?"p":v[p]||YP[p])||"span",x=loe(y);return R.jsx(uoe,P({as:w,ref:r,ownerState:y,className:ge(x.root,s)},g))}),it=foe;function poe(e){return Fe("MuiAppBar",e)}Ne("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const hoe=["className","color","enableColorOnDark","position"],voe=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${le(t)}`,`position${le(r)}`]};return De(o,poe,n)},wf=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,moe=Y(ri,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${le(r.position)}`],t[`color${le(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&P({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:wf(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:wf(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:wf(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:wf(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),goe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=be(n,hoe),l=P({},n,{color:a,position:s,enableColorOnDark:i}),c=voe(l);return R.jsx(moe,P({square:!0,component:"header",ownerState:l,elevation:4,className:ge(c.root,o,s==="fixed"&&"mui-fixed"),ref:r},u))}),yoe=goe;function td(e){return typeof e=="string"}function Wu(e,t,r){return e===void 0||td(e)?t:P({},t,{ownerState:P({},t.ownerState,r)})}const boe={disableDefaultClasses:!1},xoe=d.createContext(boe);function woe(e){const{disableDefaultClasses:t}=d.useContext(xoe);return r=>t?"":e(r)}function Rh(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Soe(e,t,r){return typeof e=="function"?e(t,r):e}function JP(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Coe(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const v=ge(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=P({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=P({},r,o,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=Rh(P({},o,n)),s=JP(n),u=JP(o),l=t(i),c=ge(l==null?void 0:l.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=P({},l==null?void 0:l.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=P({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}const _oe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fn(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=be(e,_oe),s=a?{}:Soe(n,o),{props:u,internalRef:l}=Coe(P({},i,{externalSlotProps:s})),c=Vt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Wu(r,P({},u,{ref:c}),o)}function ZP(e){return e.substring(2).toLowerCase()}function Ooe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Vt(t.ref,s),f=Qr(g=>{const y=l.current;l.current=!1;const w=ar(s.current);if(!u.current||!s.current||"clientX"in g&&Ooe(g,w))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!w.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!y)&&o(g)}),p=g=>y=>{l.current=!0;const w=t.props[g];w&&w(y)},v={ref:c};return a!==!1&&(v[a]=p(a)),d.useEffect(()=>{if(a!==!1){const g=ZP(a),y=ar(s.current),w=()=>{i.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",w),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",w)}}},[f,a]),n!==!1&&(v[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=ZP(n),y=ar(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,n]),R.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const Poe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Toe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function $oe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Roe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$oe(e))}function koe(e){const t=[],r=[];return Array.from(e.querySelectorAll(Poe)).forEach((n,o)=>{const a=Toe(n);a===-1||!Roe(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function joe(){return!0}function Ioe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=koe,isEnabled:i=joe,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),y=Vt(t.ref,g),w=d.useRef(null);d.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const b=ar(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const b=ar(g.current),h=O=>{w.current=O,!(n||!i()||O.key!=="Tab")&&b.activeElement===g.current&&O.shiftKey&&(u.current=!0,c.current&&c.current.focus())},S=()=>{const O=g.current;if(O===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(O.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let E=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(E=a(g.current)),E.length>0){var T,$;const j=!!((T=w.current)!=null&&T.shiftKey&&(($=w.current)==null?void 0:$.key)==="Tab"),M=E[0],k=E[E.length-1];typeof M!="string"&&typeof k!="string"&&(j?k.focus():M.focus())}else O.focus()};b.addEventListener("focusin",S),b.addEventListener("keydown",h,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",S),b.removeEventListener("keydown",h,!0)}},[r,n,o,i,s,a]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0,p.current=b.target;const h=t.props.onFocus;h&&h(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0};return R.jsxs(d.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:y,onFocus:x}),R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}var Zr="top",Nn="bottom",Ln="right",en="left",pS="auto",Nd=[Zr,Nn,Ln,en],jl="start",rd="end",Aoe="clippingParents",WA="viewport",Tu="popper",Moe="reference",e2=Nd.reduce(function(e,t){return e.concat([t+"-"+jl,t+"-"+rd])},[]),HA=[].concat(Nd,[pS]).reduce(function(e,t){return e.concat([t,t+"-"+jl,t+"-"+rd])},[]),Foe="beforeRead",Noe="read",Loe="afterRead",Doe="beforeMain",Boe="main",zoe="afterMain",Voe="beforeWrite",Uoe="write",Woe="afterWrite",Hoe=[Foe,Noe,Loe,Doe,Boe,zoe,Voe,Uoe,Woe];function Po(e){return e?(e.nodeName||"").toLowerCase():null}function bn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qi(e){var t=bn(e).Element;return e instanceof t||e instanceof Element}function jn(e){var t=bn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hS(e){if(typeof ShadowRoot>"u")return!1;var t=bn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qoe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!jn(a)||!Po(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function Koe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!jn(o)||!Po(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const Goe={name:"applyStyles",enabled:!0,phase:"write",fn:qoe,effect:Koe,requires:["computeStyles"]};function Oo(e){return e.split("-")[0]}var ki=Math.max,kh=Math.min,Il=Math.round;function w0(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qA(){return!/^((?!chrome|android).)*safari/i.test(w0())}function Al(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&jn(e)&&(o=e.offsetWidth>0&&Il(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Il(n.height)/e.offsetHeight||1);var i=Qi(e)?bn(e):window,s=i.visualViewport,u=!qA()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/o,c=(n.top+(u&&s?s.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function vS(e){var t=Al(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function KA(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&hS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ea(e){return bn(e).getComputedStyle(e)}function Qoe(e){return["table","td","th"].indexOf(Po(e))>=0}function ni(e){return((Qi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vm(e){return Po(e)==="html"?e:e.assignedSlot||e.parentNode||(hS(e)?e.host:null)||ni(e)}function t2(e){return!jn(e)||ea(e).position==="fixed"?null:e.offsetParent}function Xoe(e){var t=/firefox/i.test(w0()),r=/Trident/i.test(w0());if(r&&jn(e)){var n=ea(e);if(n.position==="fixed")return null}var o=Vm(e);for(hS(o)&&(o=o.host);jn(o)&&["html","body"].indexOf(Po(o))<0;){var a=ea(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ld(e){for(var t=bn(e),r=t2(e);r&&Qoe(r)&&ea(r).position==="static";)r=t2(r);return r&&(Po(r)==="html"||Po(r)==="body"&&ea(r).position==="static")?t:r||Xoe(e)||t}function mS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fc(e,t,r){return ki(e,kh(t,r))}function Yoe(e,t,r){var n=fc(e,t,r);return n>r?r:n}function GA(){return{top:0,right:0,bottom:0,left:0}}function QA(e){return Object.assign({},GA(),e)}function XA(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Joe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,QA(typeof t!="number"?t:XA(t,Nd))};function Zoe(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Oo(r.placement),u=mS(s),l=[en,Ln].indexOf(s)>=0,c=l?"height":"width";if(!(!a||!i)){var f=Joe(o.padding,r),p=vS(a),v=u==="y"?Zr:en,g=u==="y"?Nn:Ln,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],w=i[u]-r.rects.reference[u],x=Ld(a),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-w/2,h=f[v],S=m-p[c]-f[g],C=m/2-p[c]/2+b,O=fc(h,C,S),E=u;r.modifiersData[n]=(t={},t[E]=O,t.centerOffset=O-C,t)}}function eae(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||KA(t.elements.popper,o)&&(t.elements.arrow=o))}const tae={name:"arrow",enabled:!0,phase:"main",fn:Zoe,effect:eae,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ml(e){return e.split("-")[1]}var rae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nae(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Il(r*o)/o||0,y:Il(n*o)/o||0}}function r2(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,g=i.y,y=g===void 0?0:g,w=typeof c=="function"?c({x:v,y}):{x:v,y};v=w.x,y=w.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=en,h=Zr,S=window;if(l){var C=Ld(r),O="clientHeight",E="clientWidth";if(C===bn(r)&&(C=ni(r),ea(C).position!=="static"&&s==="absolute"&&(O="scrollHeight",E="scrollWidth")),C=C,o===Zr||(o===en||o===Ln)&&a===rd){h=Nn;var T=f&&C===S&&S.visualViewport?S.visualViewport.height:C[O];y-=T-n.height,y*=u?1:-1}if(o===en||(o===Zr||o===Nn)&&a===rd){b=Ln;var $=f&&C===S&&S.visualViewport?S.visualViewport.width:C[E];v-=$-n.width,v*=u?1:-1}}var j=Object.assign({position:s},l&&rae),M=c===!0?nae({x:v,y},bn(r)):{x:v,y};if(v=M.x,y=M.y,u){var k;return Object.assign({},j,(k={},k[h]=m?"0":"",k[b]=x?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",k))}return Object.assign({},j,(t={},t[h]=m?y+"px":"",t[b]=x?v+"px":"",t.transform="",t))}function oae(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:Oo(t.placement),variation:Ml(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,r2(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,r2(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const aae={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oae,data:{}};var Sf={passive:!0};function iae(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,u=bn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",r.update,Sf)}),s&&u.addEventListener("resize",r.update,Sf),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",r.update,Sf)}),s&&u.removeEventListener("resize",r.update,Sf)}}const sae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iae,data:{}};var lae={left:"right",right:"left",bottom:"top",top:"bottom"};function sp(e){return e.replace(/left|right|bottom|top/g,function(t){return lae[t]})}var uae={start:"end",end:"start"};function n2(e){return e.replace(/start|end/g,function(t){return uae[t]})}function gS(e){var t=bn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function yS(e){return Al(ni(e)).left+gS(e).scrollLeft}function cae(e,t){var r=bn(e),n=ni(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;var l=qA();(l||!l&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s+yS(e),y:u}}function dae(e){var t,r=ni(e),n=gS(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=ki(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ki(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+yS(e),u=-n.scrollTop;return ea(o||r).direction==="rtl"&&(s+=ki(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:u}}function bS(e){var t=ea(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function YA(e){return["html","body","#document"].indexOf(Po(e))>=0?e.ownerDocument.body:jn(e)&&bS(e)?e:YA(Vm(e))}function pc(e,t){var r;t===void 0&&(t=[]);var n=YA(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=bn(n),i=o?[a].concat(a.visualViewport||[],bS(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(pc(Vm(i)))}function S0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fae(e,t){var r=Al(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function o2(e,t,r){return t===WA?S0(cae(e,r)):Qi(t)?fae(t,r):S0(dae(ni(e)))}function pae(e){var t=pc(Vm(e)),r=["absolute","fixed"].indexOf(ea(e).position)>=0,n=r&&jn(e)?Ld(e):e;return Qi(n)?t.filter(function(o){return Qi(o)&&KA(o,n)&&Po(o)!=="body"}):[]}function hae(e,t,r,n){var o=t==="clippingParents"?pae(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(u,l){var c=o2(e,l,n);return u.top=ki(c.top,u.top),u.right=kh(c.right,u.right),u.bottom=kh(c.bottom,u.bottom),u.left=ki(c.left,u.left),u},o2(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function JA(e){var t=e.reference,r=e.element,n=e.placement,o=n?Oo(n):null,a=n?Ml(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Zr:u={x:i,y:t.y-r.height};break;case Nn:u={x:i,y:t.y+t.height};break;case Ln:u={x:t.x+t.width,y:s};break;case en:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=o?mS(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case jl:u[l]=u[l]-(t[c]/2-r[c]/2);break;case rd:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function nd(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,u=s===void 0?Aoe:s,l=r.rootBoundary,c=l===void 0?WA:l,f=r.elementContext,p=f===void 0?Tu:f,v=r.altBoundary,g=v===void 0?!1:v,y=r.padding,w=y===void 0?0:y,x=QA(typeof w!="number"?w:XA(w,Nd)),m=p===Tu?Moe:Tu,b=e.rects.popper,h=e.elements[g?m:p],S=hae(Qi(h)?h:h.contextElement||ni(e.elements.popper),u,c,i),C=Al(e.elements.reference),O=JA({reference:C,element:b,strategy:"absolute",placement:o}),E=S0(Object.assign({},b,O)),T=p===Tu?E:C,$={top:S.top-T.top+x.top,bottom:T.bottom-S.bottom+x.bottom,left:S.left-T.left+x.left,right:T.right-S.right+x.right},j=e.modifiersData.offset;if(p===Tu&&j){var M=j[o];Object.keys($).forEach(function(k){var N=[Ln,Nn].indexOf(k)>=0?1:-1,D=[Zr,Nn].indexOf(k)>=0?"y":"x";$[k]+=M[D]*N})}return $}function vae(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?HA:u,c=Ml(n),f=c?s?e2:e2.filter(function(g){return Ml(g)===c}):Nd,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var v=p.reduce(function(g,y){return g[y]=nd(e,{placement:y,boundary:o,rootBoundary:a,padding:i})[Oo(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function mae(e){if(Oo(e)===pS)return[];var t=sp(e);return[n2(e),t,n2(t)]}function gae(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,y=r.allowedAutoPlacements,w=t.options.placement,x=Oo(w),m=x===w,b=u||(m||!g?[sp(w)]:mae(w)),h=[w].concat(b).reduce(function(ve,Se){return ve.concat(Oo(Se)===pS?vae(t,{placement:Se,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:y}):Se)},[]),S=t.rects.reference,C=t.rects.popper,O=new Map,E=!0,T=h[0],$=0;$=0,D=N?"width":"height",A=nd(t,{placement:j,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),H=N?k?Ln:en:k?Nn:Zr;S[D]>C[D]&&(H=sp(H));var B=sp(H),U=[];if(a&&U.push(A[M]<=0),s&&U.push(A[H]<=0,A[B]<=0),U.every(function(ve){return ve})){T=j,E=!1;break}O.set(j,U)}if(E)for(var q=g?3:1,re=function(Se){var we=h.find(function(Re){var pe=O.get(Re);if(pe)return pe.slice(0,Se).every(function(xe){return xe})});if(we)return T=we,"break"},ne=q;ne>0;ne--){var fe=re(ne);if(fe==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}const yae={name:"flip",enabled:!0,phase:"main",fn:gae,requiresIfExists:["offset"],data:{_skip:!1}};function a2(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function i2(e){return[Zr,Ln,Nn,en].some(function(t){return e[t]>=0})}function bae(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=nd(t,{elementContext:"reference"}),s=nd(t,{altBoundary:!0}),u=a2(i,n),l=a2(s,o,a),c=i2(u),f=i2(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const xae={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bae};function wae(e,t,r){var n=Oo(e),o=[en,Zr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[en,Ln].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Sae(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=HA.reduce(function(c,f){return c[f]=wae(f,t.rects,a),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Cae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Sae};function _ae(e){var t=e.state,r=e.name;t.modifiersData[r]=JA({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Oae={name:"popperOffsets",enabled:!0,phase:"read",fn:_ae,data:{}};function Eae(e){return e==="x"?"y":"x"}function Pae(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,g=r.tetherOffset,y=g===void 0?0:g,w=nd(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=Oo(t.placement),m=Ml(t.placement),b=!m,h=mS(x),S=Eae(h),C=t.modifiersData.popperOffsets,O=t.rects.reference,E=t.rects.popper,T=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(a){var k,N=h==="y"?Zr:en,D=h==="y"?Nn:Ln,A=h==="y"?"height":"width",H=C[h],B=H+w[N],U=H-w[D],q=v?-E[A]/2:0,re=m===jl?O[A]:E[A],ne=m===jl?-E[A]:-O[A],fe=t.elements.arrow,ve=v&&fe?vS(fe):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:GA(),we=Se[N],Re=Se[D],pe=fc(0,O[A],ve[A]),xe=b?O[A]/2-q-pe-we-$.mainAxis:re-pe-we-$.mainAxis,Te=b?-O[A]/2+q+pe+Re+$.mainAxis:ne+pe+Re+$.mainAxis,je=t.elements.arrow&&Ld(t.elements.arrow),Oe=je?h==="y"?je.clientTop||0:je.clientLeft||0:0,Ce=(k=j==null?void 0:j[h])!=null?k:0,Ie=H+xe-Ce-Oe,ke=H+Te-Ce,Xe=fc(v?kh(B,Ie):B,H,v?ki(U,ke):U);C[h]=Xe,M[h]=Xe-H}if(s){var Je,Ke=h==="x"?Zr:en,W=h==="x"?Nn:Ln,Q=C[S],ee=S==="y"?"height":"width",ye=Q+w[Ke],ce=Q-w[W],se=[Zr,en].indexOf(x)!==-1,X=(Je=j==null?void 0:j[S])!=null?Je:0,K=se?ye:Q-O[ee]-E[ee]-X+$.altAxis,G=se?Q+O[ee]+E[ee]-X-$.altAxis:ce,Z=v&&se?Yoe(K,Q,G):fc(v?K:ye,Q,v?G:ce);C[S]=Z,M[S]=Z-Q}t.modifiersData[n]=M}}const Tae={name:"preventOverflow",enabled:!0,phase:"main",fn:Pae,requiresIfExists:["offset"]};function $ae(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Rae(e){return e===bn(e)||!jn(e)?gS(e):$ae(e)}function kae(e){var t=e.getBoundingClientRect(),r=Il(t.width)/e.offsetWidth||1,n=Il(t.height)/e.offsetHeight||1;return r!==1||n!==1}function jae(e,t,r){r===void 0&&(r=!1);var n=jn(t),o=jn(t)&&kae(t),a=ni(t),i=Al(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Po(t)!=="body"||bS(a))&&(s=Rae(t)),jn(t)?(u=Al(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=yS(a))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Iae(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function Aae(e){var t=Iae(e);return Hoe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Mae(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Fae(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var s2={placement:"bottom",modifiers:[],strategy:"absolute"};function l2(){for(var e=arguments.length,t=new Array(e),r=0;r{a||s(Bae(o)||document.body)},[o,a]),yn(()=>{if(i&&!a)return _h(r,i),()=>{_h(r,null)}},[r,i,a]),a){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return R.jsx(d.Fragment,{children:n})}return R.jsx(d.Fragment,{children:i&&vd.createPortal(n,i)})});function zae(e){return Fe("MuiPopper",e)}Ne("MuiPopper",["root"]);const Vae=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Uae=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Wae(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function C0(e){return typeof e=="function"?e():e}function Hae(e){return e.nodeType!==void 0}const qae=()=>De({root:["root"]},woe(zae)),Kae={},Gae=d.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:v={},slots:g={},TransitionProps:y}=t,w=be(t,Vae),x=d.useRef(null),m=Vt(x,r),b=d.useRef(null),h=Vt(b,p),S=d.useRef(h);yn(()=>{S.current=h},[h]),d.useImperativeHandle(p,()=>b.current,[]);const C=Wae(c,i),[O,E]=d.useState(C),[T,$]=d.useState(C0(o));d.useEffect(()=>{b.current&&b.current.forceUpdate()}),d.useEffect(()=>{o&&$(C0(o))},[o]),yn(()=>{if(!T||!l)return;const D=B=>{E(B.placement)};let A=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{D(B)}}];u!=null&&(A=A.concat(u)),f&&f.modifiers!=null&&(A=A.concat(f.modifiers));const H=Dae(T,x.current,P({placement:C},f,{modifiers:A}));return S.current(H),()=>{H.destroy(),S.current(null)}},[T,s,u,l,f,C]);const j={placement:O};y!==null&&(j.TransitionProps=y);const M=qae(),k=(n=g.root)!=null?n:"div",N=Fn({elementType:k,externalSlotProps:v.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:M.root});return R.jsx(k,P({},N,{children:typeof a=="function"?a(j):a}))}),Qae=d.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=Kae,popperRef:v,style:g,transition:y=!1,slotProps:w={},slots:x={}}=t,m=be(t,Uae),[b,h]=d.useState(!0),S=()=>{h(!1)},C=()=>{h(!0)};if(!u&&!c&&(!y||b))return null;let O;if(a)O=a;else if(n){const $=C0(n);O=$&&Hae($)?ar($).body:ar(null).body}const E=!c&&u&&(!y||b)?"none":void 0,T=y?{in:c,onEnter:S,onExited:C}:void 0;return R.jsx(ZA,{disablePortal:s,container:O,children:R.jsx(Gae,P({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!b:c,placement:f,popperOptions:p,popperRef:v,slotProps:w,slots:x},m,{style:P({position:"fixed",top:0,left:0,display:E},g),TransitionProps:T,children:o}))})});function Xae(e){const t=ar(e);return t.body===e?Mn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function u2(e){return parseInt(Mn(e).getComputedStyle(e).paddingRight,10)||0}function Yae(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function c2(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,u=!Yae(i);s&&u&&hc(i,o)})}function fy(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Jae(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Xae(n)){const i=RA(ar(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${u2(n)+i}px`;const s=ar(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${u2(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=ar(n).body;else{const i=n.parentElement,s=Mn(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function Zae(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class eie{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&hc(t.modalRef,!1);const o=Zae(r);c2(r,t.mount,t.modalRef,o,!0);const a=fy(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=fy(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=Jae(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=fy(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&hc(t.modalRef,r),c2(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&hc(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function tie(e){return typeof e=="function"?e():e}function rie(e){return e?e.props.hasOwnProperty("in"):!1}const nie=new eie;function oie(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=nie,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),y=Vt(g,f),[w,x]=d.useState(!c),m=rie(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const h=()=>ar(v.current),S=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),C=()=>{o.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},O=Qr(()=>{const A=tie(t)||h().body;o.add(S(),A),g.current&&C()}),E=d.useCallback(()=>o.isTopModal(S()),[o]),T=Qr(A=>{v.current=A,A&&(c&&E()?C():g.current&&hc(g.current,b))}),$=d.useCallback(()=>{o.remove(S(),b)},[b,o]);d.useEffect(()=>()=>{$()},[$]),d.useEffect(()=>{c?O():(!m||!a)&&$()},[c,$,m,a,O]);const j=A=>H=>{var B;(B=A.onKeyDown)==null||B.call(A,H),!(H.key!=="Escape"||H.which===229||!E())&&(r||(H.stopPropagation(),l&&l(H,"escapeKeyDown")))},M=A=>H=>{var B;(B=A.onClick)==null||B.call(A,H),H.target===H.currentTarget&&l&&l(H,"backdropClick")};return{getRootProps:(A={})=>{const H=Rh(e);delete H.onTransitionEnter,delete H.onTransitionExited;const B=P({},H,A);return P({role:"presentation"},B,{onKeyDown:j(B),ref:y})},getBackdropProps:(A={})=>{const H=A;return P({"aria-hidden":!0},H,{onClick:M(H),open:c})},getTransitionProps:()=>{const A=()=>{x(!1),i&&i()},H=()=>{x(!0),s&&s(),a&&$()};return{onEnter:m0(A,u==null?void 0:u.props.onEnter),onExited:m0(H,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:T,isTopModal:E,exited:w,hasTransition:m}}function aie(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=d.useRef();d.useEffect(()=>{if(!o)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[o,n]);const s=Qr((x,m)=>{n==null||n(x,m)}),u=Qr(x=>{!n||x==null||(clearTimeout(i.current),i.current=setTimeout(()=>{s(null,"timeout")},x))});d.useEffect(()=>(o&&u(t),()=>{clearTimeout(i.current)}),[o,t,u]);const l=x=>{n==null||n(x,"clickaway")},c=()=>{clearTimeout(i.current)},f=d.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),p=x=>m=>{const b=x.onBlur;b==null||b(m),f()},v=x=>m=>{const b=x.onFocus;b==null||b(m),c()},g=x=>m=>{const b=x.onMouseEnter;b==null||b(m),c()},y=x=>m=>{const b=x.onMouseLeave;b==null||b(m),f()};return d.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,f,o]),{getRootProps:(x={})=>{const m=P({},Rh(e),Rh(x));return P({role:"presentation"},x,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:g(m),onMouseLeave:y(m)})},onClickAway:l}}const iie=["onChange","maxRows","minRows","style","value"];function Cf(e){return parseInt(e,10)||0}const sie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function d2(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const lie=d.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,u=be(t,iie),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=Vt(r,c),p=d.useRef(null),v=d.useRef(0),[g,y]=d.useState({outerHeightStyle:0}),w=d.useCallback(()=>{const h=c.current,C=Mn(h).getComputedStyle(h);if(C.width==="0px")return{outerHeightStyle:0};const O=p.current;O.style.width=C.width,O.value=h.value||t.placeholder||"x",O.value.slice(-1)===` -`&&(O.value+=" ");const E=C.boxSizing,T=Cf(C.paddingBottom)+Cf(C.paddingTop),$=Cf(C.borderBottomWidth)+Cf(C.borderTopWidth),j=O.scrollHeight;O.value="x";const M=O.scrollHeight;let k=j;a&&(k=Math.max(Number(a)*M,k)),o&&(k=Math.min(Number(o)*M,k)),k=Math.max(k,M);const N=k+(E==="border-box"?T+$:0),D=Math.abs(k-j)<=1;return{outerHeightStyle:N,overflow:D}},[o,a,t.placeholder]),x=(h,S)=>{const{outerHeightStyle:C,overflow:O}=S;return v.current<20&&(C>0&&Math.abs((h.outerHeightStyle||0)-C)>1||h.overflow!==O)?(v.current+=1,{overflow:O,outerHeightStyle:C}):h},m=d.useCallback(()=>{const h=w();d2(h)||y(S=>x(S,h))},[w]);yn(()=>{const h=()=>{const j=w();d2(j)||vd.flushSync(()=>{y(M=>x(M,j))})},S=()=>{v.current=0,h()};let C;const O=lu(S),E=c.current,T=Mn(E);T.addEventListener("resize",O);let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(S),$.observe(E)),()=>{O.clear(),cancelAnimationFrame(C),T.removeEventListener("resize",O),$&&$.disconnect()}},[w]),yn(()=>{m()}),d.useEffect(()=>{v.current=0},[s]);const b=h=>{v.current=0,l||m(),n&&n(h)};return R.jsxs(d.Fragment,{children:[R.jsx("textarea",P({value:s,onChange:b,ref:f,rows:a,style:P({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},i)},u)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:P({},sie.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),uie=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],cie=Y(Qae,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),die=d.forwardRef(function(t,r){var n;const o=Fm(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:w,popperRef:x,transition:m,slots:b,slotProps:h}=a,S=be(a,uie),C=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,O=P({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:w,popperRef:x,transition:m},S);return R.jsx(cie,P({as:s,direction:o==null?void 0:o.direction,slots:{root:C},slotProps:h??l},O,{ref:r}))}),eM=die,fie=on(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function pie(e){return Fe("MuiChip",e)}const hie=Ne("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),pt=hie,vie=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],mie=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${le(n)}`,`color${le(o)}`,s&&"clickable",s&&`clickableColor${le(o)}`,i&&"deletable",i&&`deletableColor${le(o)}`,`${u}${le(o)}`],label:["label",`label${le(n)}`],avatar:["avatar",`avatar${le(n)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(n)}`,`iconColor${le(a)}`],deleteIcon:["deleteIcon",`deleteIcon${le(n)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(u)}Color${le(o)}`]};return De(l,pie,t)},gie=Y("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:s,variant:u}=r;return[{[`& .${pt.avatar}`]:t.avatar},{[`& .${pt.avatar}`]:t[`avatar${le(s)}`]},{[`& .${pt.avatar}`]:t[`avatarColor${le(n)}`]},{[`& .${pt.icon}`]:t.icon},{[`& .${pt.icon}`]:t[`icon${le(s)}`]},{[`& .${pt.icon}`]:t[`iconColor${le(o)}`]},{[`& .${pt.deleteIcon}`]:t.deleteIcon},{[`& .${pt.deleteIcon}`]:t[`deleteIcon${le(s)}`]},{[`& .${pt.deleteIcon}`]:t[`deleteIconColor${le(n)}`]},{[`& .${pt.deleteIcon}`]:t[`deleteIcon${le(u)}Color${le(n)}`]},t.root,t[`size${le(s)}`],t[`color${le(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${le(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${le(n)}`],t[u],t[`${u}${le(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${pt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${pt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${pt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${pt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${pt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${pt.icon}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${pt.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:et(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:et(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:et(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${pt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${pt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${pt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${pt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${pt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${pt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${pt.avatar}`]:{marginLeft:4},[`& .${pt.avatarSmall}`]:{marginLeft:2},[`& .${pt.icon}`]:{marginLeft:4},[`& .${pt.iconSmall}`]:{marginLeft:2},[`& .${pt.deleteIcon}`]:{marginRight:5},[`& .${pt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:et(e.palette[t.color].main,.7)}`,[`&.${pt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${pt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:et(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${pt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:et(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),yie=Y("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${le(n)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function f2(e){return e.key==="Backspace"||e.key==="Delete"}const bie=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:w,size:x="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:h=!1}=n,S=be(n,vie),C=d.useRef(null),O=Vt(C,r),E=U=>{U.stopPropagation(),g&&g(U)},T=U=>{U.currentTarget===U.target&&f2(U)&&U.preventDefault(),y&&y(U)},$=U=>{U.currentTarget===U.target&&(g&&f2(U)?g(U):U.key==="Escape"&&C.current&&C.current.blur()),w&&w(U)},j=i!==!1&&v?!0:i,M=j||g?ro:u||"div",k=P({},n,{component:M,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:j,variant:m}),N=mie(k),D=M===ro?P({component:u||"div",focusVisibleClassName:N.focusVisible},g&&{disableRipple:!0}):{};let A=null;g&&(A=l&&d.isValidElement(l)?d.cloneElement(l,{className:ge(l.props.className,N.deleteIcon),onClick:E}):R.jsx(fie,{className:ge(N.deleteIcon),onClick:E}));let H=null;o&&d.isValidElement(o)&&(H=d.cloneElement(o,{className:ge(N.avatar,o.props.className)}));let B=null;return f&&d.isValidElement(f)&&(B=d.cloneElement(f,{className:ge(N.icon,f.props.className)})),R.jsxs(gie,P({as:M,className:ge(N.root,a),disabled:j&&c?!0:void 0,onClick:v,onKeyDown:T,onKeyUp:$,ref:O,tabIndex:h&&c?-1:b,ownerState:k},D,S,{children:[H||B,R.jsx(yie,{className:ge(N.label),ownerState:k,children:p}),A]}))}),xie=bie;function oi({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const wie=d.createContext(void 0),Um=wie;function jo(){return d.useContext(Um)}function Sie(e){return R.jsx(ire,P({},e,{defaultTheme:Bm,themeId:Hi}))}function p2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function jh(e,t=!1){return e&&(p2(e.value)&&e.value!==""||t&&p2(e.defaultValue)&&e.defaultValue!=="")}function Cie(e){return e.startAdornment}function _ie(e){return Fe("MuiInputBase",e)}const Oie=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Fl=Oie,Eie=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Wm=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${le(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Hm=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Pie=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:v,type:g}=e,y={root:["root",`color${le(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${le(p)}`,c&&"multiline",v&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return De(y,_ie,t)},qm=Y("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wm})(({theme:e,ownerState:t})=>P({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fl.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Km=Y("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Hm})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=P({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return P({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fl.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Fl.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Tie=R.jsx(Sie,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$ie=d.forwardRef(function(t,r){var n;const o=Be({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:w,inputComponent:x="input",inputProps:m={},inputRef:b,maxRows:h,minRows:S,multiline:C=!1,name:O,onBlur:E,onChange:T,onClick:$,onFocus:j,onKeyDown:M,onKeyUp:k,placeholder:N,readOnly:D,renderSuffix:A,rows:H,slotProps:B={},slots:U={},startAdornment:q,type:re="text",value:ne}=o,fe=be(o,Eie),ve=m.value!=null?m.value:ne,{current:Se}=d.useRef(ve!=null),we=d.useRef(),Re=d.useCallback(Z=>{},[]),pe=Vt(we,b,m.ref,Re),[xe,Te]=d.useState(!1),je=jo(),Oe=oi({props:o,muiFormControl:je,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Oe.focused=je?je.focused:xe,d.useEffect(()=>{!je&&p&&xe&&(Te(!1),E&&E())},[je,p,xe,E]);const Ce=je&&je.onFilled,Ie=je&&je.onEmpty,ke=d.useCallback(Z=>{jh(Z)?Ce&&Ce():Ie&&Ie()},[Ce,Ie]);yn(()=>{Se&&ke({value:ve})},[ve,ke,Se]);const Xe=Z=>{if(Oe.disabled){Z.stopPropagation();return}j&&j(Z),m.onFocus&&m.onFocus(Z),je&&je.onFocus?je.onFocus(Z):Te(!0)},Je=Z=>{E&&E(Z),m.onBlur&&m.onBlur(Z),je&&je.onBlur?je.onBlur(Z):Te(!1)},Ke=(Z,...oe)=>{if(!Se){const Pe=Z.target||we.current;if(Pe==null)throw new Error(Wa(1));ke({value:Pe.value})}m.onChange&&m.onChange(Z,...oe),T&&T(Z,...oe)};d.useEffect(()=>{ke(we.current)},[]);const W=Z=>{we.current&&Z.currentTarget===Z.target&&we.current.focus(),$&&$(Z)};let Q=x,ee=m;C&&Q==="input"&&(H?ee=P({type:void 0,minRows:H,maxRows:H},ee):ee=P({type:void 0,maxRows:h,minRows:S},ee),Q=lie);const ye=Z=>{ke(Z.animationName==="mui-auto-fill-cancel"?we.current:{value:"x"})};d.useEffect(()=>{je&&je.setAdornedStart(!!q)},[je,q]);const ce=P({},o,{color:Oe.color||"primary",disabled:Oe.disabled,endAdornment:g,error:Oe.error,focused:Oe.focused,formControl:je,fullWidth:y,hiddenLabel:Oe.hiddenLabel,multiline:C,size:Oe.size,startAdornment:q,type:re}),se=Pie(ce),X=U.root||l.Root||qm,K=B.root||c.root||{},G=U.input||l.Input||Km;return ee=P({},ee,(n=B.input)!=null?n:c.input),R.jsxs(d.Fragment,{children:[!v&&Tie,R.jsxs(X,P({},K,!td(X)&&{ownerState:P({},ce,K.ownerState)},{ref:r,onClick:W},fe,{className:ge(se.root,K.className,u,D&&"MuiInputBase-readOnly"),children:[q,R.jsx(Um.Provider,{value:null,children:R.jsx(G,P({ownerState:ce,"aria-invalid":Oe.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Oe.disabled,id:w,onAnimationStart:ye,name:O,placeholder:N,readOnly:D,required:Oe.required,rows:H,value:ve,onKeyDown:M,onKeyUp:k,type:re},ee,!td(G)&&{as:Q,ownerState:P({},ce,ee.ownerState)},{ref:pe,className:ge(se.input,ee.className,D&&"MuiInputBase-readOnly"),onBlur:Je,onChange:Ke,onFocus:Xe}))}),g,A?A(P({},Oe,{startAdornment:q})):null]}))]})}),Gm=$ie;function Rie(e){return Fe("MuiInput",e)}const kie=P({},Fl,Ne("MuiInput",["root","underline","input"])),$u=kie;function jie(e){return Fe("MuiOutlinedInput",e)}const Iie=P({},Fl,Ne("MuiOutlinedInput",["root","notchedOutline","input"])),da=Iie;function Aie(e){return Fe("MuiFilledInput",e)}const Mie=P({},Fl,Ne("MuiFilledInput",["root","underline","input"])),si=Mie,Fie=on(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Nie=on(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Lie(e){return Fe("MuiAvatar",e)}Ne("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Die=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Bie=e=>{const{classes:t,variant:r,colorDefault:n}=e;return De({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Lie,t)},zie=Y("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&P({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Vie=Y("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Uie=Y(Nie,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Wie({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const Hie=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:u,sizes:l,src:c,srcSet:f,variant:p="circular"}=n,v=be(n,Die);let g=null;const y=Wie(P({},u,{src:c,srcSet:f})),w=c||f,x=w&&y!=="error",m=P({},n,{colorDefault:!x,component:s,variant:p}),b=Bie(m);return x?g=R.jsx(Vie,P({alt:o,srcSet:f,src:c,sizes:l,ownerState:m,className:b.img},u)):a!=null?g=a:w&&o?g=o[0]:g=R.jsx(Uie,{ownerState:m,className:b.fallback}),R.jsx(zie,P({as:s,ownerState:m,className:ge(b.root,i),ref:r},v,{children:g}))}),_0=Hie,qie=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Kie={entering:{opacity:1},entered:{opacity:1}},Gie=d.forwardRef(function(t,r){const n=nn(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:g,onExiting:y,style:w,timeout:x=o,TransitionComponent:m=uS}=t,b=be(t,qie),h=d.useRef(null),S=Vt(h,s.ref,r),C=N=>D=>{if(N){const A=h.current;D===void 0?N(A):N(A,D)}},O=C(p),E=C((N,D)=>{fS(N);const A=kl({style:w,timeout:x,easing:u},{mode:"enter"});N.style.webkitTransition=n.transitions.create("opacity",A),N.style.transition=n.transitions.create("opacity",A),c&&c(N,D)}),T=C(f),$=C(y),j=C(N=>{const D=kl({style:w,timeout:x,easing:u},{mode:"exit"});N.style.webkitTransition=n.transitions.create("opacity",D),N.style.transition=n.transitions.create("opacity",D),v&&v(N)}),M=C(g),k=N=>{a&&a(h.current,N)};return R.jsx(m,P({appear:i,in:l,nodeRef:h,onEnter:E,onEntered:T,onEntering:O,onExit:j,onExited:M,onExiting:$,addEndListener:k,timeout:x},b,{children:(N,D)=>d.cloneElement(s,P({style:P({opacity:0,visibility:N==="exited"&&!l?"hidden":void 0},Kie[N],w,s.props.style),ref:S},D))}))}),tM=Gie;function Qie(e){return Fe("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const Xie=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Yie=e=>{const{classes:t,invisible:r}=e;return De({root:["root",r&&"invisible"]},Qie,t)},Jie=Y("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>P({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Zie=d.forwardRef(function(t,r){var n,o,a;const i=Be({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:w=tM,transitionDuration:x}=i,m=be(i,Xie),b=P({},i,{component:l,invisible:p}),h=Yie(b),S=(n=g.root)!=null?n:f.root;return R.jsx(w,P({in:v,timeout:x},m,{children:R.jsx(Jie,P({"aria-hidden":!0},S,{as:(o=(a=y.root)!=null?a:c.Root)!=null?o:l,className:ge(h.root,u,S==null?void 0:S.className),ownerState:P({},b,S==null?void 0:S.ownerState),classes:h,ref:r,children:s}))}))}),rM=Zie,ese=Ne("MuiBox",["root"]),tse=ese,rse=Th(),nse=cre({themeId:Hi,defaultTheme:rse,defaultClassName:tse.root,generateClassName:eS.generate}),lp=nse;function ose(e){return Fe("MuiButton",e)}const ase=Ne("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),_f=ase,ise=d.createContext({}),sse=ise,lse=d.createContext(void 0),use=lse,cse=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dse=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${le(t)}`,`size${le(o)}`,`${a}Size${le(o)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${le(o)}`],endIcon:["endIcon",`iconSize${le(o)}`]},u=De(s,ose,i);return P({},i,u)},nM=e=>P({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),fse=Y(ro,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${le(r.color)}`],t[`size${le(r.size)}`],t[`${r.variant}Size${le(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return P({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${_f.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${_f.disabled}`]:P({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${et(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${_f.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_f.disabled}`]:{boxShadow:"none"}}),pse=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${le(r.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},nM(e))),hse=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${le(r.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},nM(e))),vse=d.forwardRef(function(t,r){const n=d.useContext(sse),o=d.useContext(use),a=Zw(n,t),i=Be({props:a,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:w=!1,size:x="medium",startIcon:m,type:b,variant:h="text"}=i,S=be(i,cse),C=P({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:w,size:x,type:b,variant:h}),O=dse(C),E=m&&R.jsx(pse,{className:O.startIcon,ownerState:C,children:m}),T=g&&R.jsx(hse,{className:O.endIcon,ownerState:C,children:g}),$=o||"";return R.jsxs(fse,P({ownerState:C,className:ge(n.className,O.root,c,$),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ge(O.focusVisible,y),ref:r,type:b},S,{classes:O,children:[E,s,T]}))}),rn=vse;function mse(e){return Fe("MuiCard",e)}Ne("MuiCard",["root"]);const gse=["className","raised"],yse=e=>{const{classes:t}=e;return De({root:["root"]},mse,t)},bse=Y(ri,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),xse=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=be(n,gse),s=P({},n,{raised:a}),u=yse(s);return R.jsx(bse,P({className:ge(u.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),ta=xse;function wse(e){return Fe("MuiCardContent",e)}Ne("MuiCardContent",["root"]);const Sse=["className","component"],Cse=e=>{const{classes:t}=e;return De({root:["root"]},wse,t)},_se=Y("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ose=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=be(n,Sse),s=P({},n,{component:a}),u=Cse(s);return R.jsx(_se,P({as:a,className:ge(u.root,o),ownerState:s,ref:r},i))}),Xi=Ose;function Ese(e){return Fe("MuiCardHeader",e)}const Pse=Ne("MuiCardHeader",["root","avatar","action","content","title","subheader"]),h2=Pse,Tse=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],$se=e=>{const{classes:t}=e;return De({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ese,t)},Rse=Y("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>P({[`& .${h2.title}`]:t.title,[`& .${h2.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),kse=Y("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),jse=Y("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Ise=Y("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Ase=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=n,v=be(n,Tse),g=P({},n,{component:s,disableTypography:u}),y=$se(g);let w=f;w!=null&&w.type!==it&&!u&&(w=R.jsx(it,P({variant:a?"body2":"h5",className:y.title,component:"span",display:"block"},p,{children:w})));let x=l;return x!=null&&x.type!==it&&!u&&(x=R.jsx(it,P({variant:a?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),R.jsxs(Rse,P({className:ge(y.root,i),as:s,ref:r,ownerState:g},v,{children:[a&&R.jsx(kse,{className:y.avatar,ownerState:g,children:a}),R.jsxs(Ise,{className:y.content,ownerState:g,children:[w,x]}),o&&R.jsx(jse,{className:y.action,ownerState:g,children:o})]}))}),v2=Ase;function Mse(e){return Fe("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Fse=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Nse=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${le(o)}`],input:["input"]};return De(a,Mse,t)},Lse=Y(ro)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Dse=Y("input",{shouldForwardProp:Cr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Bse=d.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:v,inputRef:g,name:y,onBlur:w,onChange:x,onFocus:m,readOnly:b,required:h=!1,tabIndex:S,type:C,value:O}=t,E=be(t,Fse),[T,$]=$l({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),j=jo(),M=U=>{m&&m(U),j&&j.onFocus&&j.onFocus(U)},k=U=>{w&&w(U),j&&j.onBlur&&j.onBlur(U)},N=U=>{if(U.nativeEvent.defaultPrevented)return;const q=U.target.checked;$(q),x&&x(U,q)};let D=u;j&&typeof D>"u"&&(D=j.disabled);const A=C==="checkbox"||C==="radio",H=P({},t,{checked:T,disabled:D,disableFocusRipple:l,edge:c}),B=Nse(H);return R.jsxs(Lse,P({component:"span",className:ge(B.root,i),centerRipple:!0,focusRipple:!l,disabled:D,tabIndex:null,role:void 0,onFocus:M,onBlur:k,ownerState:H,ref:r},E,{children:[R.jsx(Dse,P({autoFocus:n,checked:o,defaultChecked:s,className:B.input,disabled:D,id:A?p:void 0,name:y,onChange:N,readOnly:b,ref:g,required:h,ownerState:H,tabIndex:S,type:C},C==="checkbox"&&O===void 0?{}:{value:O},v)),T?a:f]}))}),oM=Bse,zse=on(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Vse=on(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Use=on(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Wse(e){return Fe("MuiCheckbox",e)}const Hse=Ne("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),py=Hse,qse=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Kse=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${le(n)}`,`size${le(o)}`]},i=De(a,Wse,t);return P({},t,i)},Gse=Y(oM,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${le(r.size)}`],r.color!=="default"&&t[`color${le(r.color)}`]]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${py.checked}, &.${py.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${py.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Qse=R.jsx(Vse,{}),Xse=R.jsx(zse,{}),Yse=R.jsx(Use,{}),Jse=d.forwardRef(function(t,r){var n,o;const a=Be({props:t,name:"MuiCheckbox"}),{checkedIcon:i=Qse,color:s="primary",icon:u=Xse,indeterminate:l=!1,indeterminateIcon:c=Yse,inputProps:f,size:p="medium",className:v}=a,g=be(a,qse),y=l?c:u,w=l?c:i,x=P({},a,{color:s,indeterminate:l,size:p}),m=Kse(x);return R.jsx(Gse,P({type:"checkbox",inputProps:P({"data-indeterminate":l},f),icon:d.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:p}),ownerState:x,ref:r,className:ge(m.root,v)},g,{classes:m}))}),Ih=Jse;function Zse(e){return Fe("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ele=["className","color","disableShrink","size","style","thickness","value","variant"];let Qm=e=>e,m2,g2,y2,b2;const fa=44,tle=Ad(m2||(m2=Qm` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),rle=Ad(g2||(g2=Qm` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),nle=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${le(n)}`],svg:["svg"],circle:["circle",`circle${le(r)}`,o&&"circleDisableShrink"]};return De(a,Zse,t)},ole=Y("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${le(r.color)}`]]}})(({ownerState:e,theme:t})=>P({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Xw(y2||(y2=Qm` - animation: ${0} 1.4s linear infinite; - `),tle)),ale=Y("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ile=Y("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${le(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Xw(b2||(b2=Qm` - animation: ${0} 1.4s ease-in-out infinite; - `),rle)),sle=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=be(n,ele),v=P({},n,{color:a,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=nle(v),y={},w={},x={};if(f==="determinate"){const m=2*Math.PI*((fa-l)/2);y.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,w.transform="rotate(-90deg)"}return R.jsx(ole,P({className:ge(g.root,o),style:P({width:s,height:s},w,u),ownerState:v,ref:r,role:"progressbar"},x,p,{children:R.jsx(ale,{className:g.svg,ownerState:v,viewBox:`${fa/2} ${fa/2} ${fa} ${fa}`,children:R.jsx(ile,{className:g.circle,style:y,ownerState:v,cx:fa,cy:fa,r:(fa-l)/2,fill:"none",strokeWidth:l})})}))}),Dd=sle,lle=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),ule=e=>P({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});function cle(e){return Fe("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const dle=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],fle=e=>{const{open:t,exited:r,classes:n}=e;return De({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},cle,n)},ple=Y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),hle=Y(rM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vle=d.forwardRef(function(t,r){var n,o,a,i,s,u;const l=Be({name:"MuiModal",props:t}),{BackdropComponent:c=hle,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:y,component:w,components:x={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:S=!1,disablePortal:C=!1,disableRestoreFocus:O=!1,disableScrollLock:E=!1,hideBackdrop:T=!1,keepMounted:$=!1,onBackdropClick:j,open:M,slotProps:k,slots:N}=l,D=be(l,dle),A=P({},l,{closeAfterTransition:v,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:O,disableScrollLock:E,hideBackdrop:T,keepMounted:$}),{getRootProps:H,getBackdropProps:B,getTransitionProps:U,portalRef:q,isTopModal:re,exited:ne,hasTransition:fe}=oie(P({},A,{rootRef:r})),ve=P({},A,{exited:ne}),Se=fle(ve),we={};if(g.props.tabIndex===void 0&&(we.tabIndex="-1"),fe){const{onEnter:Ce,onExited:Ie}=U();we.onEnter=Ce,we.onExited=Ie}const Re=(n=(o=N==null?void 0:N.root)!=null?o:x.Root)!=null?n:ple,pe=(a=(i=N==null?void 0:N.backdrop)!=null?i:x.Backdrop)!=null?a:c,xe=(s=k==null?void 0:k.root)!=null?s:m.root,Te=(u=k==null?void 0:k.backdrop)!=null?u:m.backdrop,je=Fn({elementType:Re,externalSlotProps:xe,externalForwardedProps:D,getSlotProps:H,additionalProps:{ref:r,as:w},ownerState:ve,className:ge(p,xe==null?void 0:xe.className,Se==null?void 0:Se.root,!ve.open&&ve.exited&&(Se==null?void 0:Se.hidden))}),Oe=Fn({elementType:pe,externalSlotProps:Te,additionalProps:f,getSlotProps:Ce=>B(P({},Ce,{onClick:Ie=>{j&&j(Ie),Ce!=null&&Ce.onClick&&Ce.onClick(Ie)}})),className:ge(Te==null?void 0:Te.className,f==null?void 0:f.className,Se==null?void 0:Se.backdrop),ownerState:ve});return!$&&!M&&(!fe||ne)?null:R.jsx(ZA,{ref:q,container:y,disablePortal:C,children:R.jsxs(Re,P({},je,{children:[!T&&c?R.jsx(pe,P({},Oe)):null,R.jsx(Ioe,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:O,isEnabled:re,open:M,children:d.cloneElement(g,we)})]}))})}),xS=vle;function mle(e){return Fe("MuiDialog",e)}const gle=Ne("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hy=gle,yle=d.createContext({}),aM=yle,ble=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],xle=Y(rM,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),wle=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${le(r)}`],paper:["paper",`paperScroll${le(r)}`,`paperWidth${le(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return De(i,mle,t)},Sle=Y(xS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Cle=Y("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${le(r.scroll)}`]]}})(({ownerState:e})=>P({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),_le=Y(ri,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${le(r.scroll)}`],t[`paperWidth${le(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>P({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${hy.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${hy.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${hy.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Ole=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiDialog"}),o=nn(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:w,onClose:x,open:m,PaperComponent:b=ri,PaperProps:h={},scroll:S="paper",TransitionComponent:C=tM,transitionDuration:O=a,TransitionProps:E}=n,T=be(n,ble),$=P({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:y,scroll:S}),j=wle($),M=d.useRef(),k=H=>{M.current=H.target===H.currentTarget},N=H=>{M.current&&(M.current=null,w&&w(H),x&&x(H,"backdropClick"))},D=qi(s),A=d.useMemo(()=>({titleId:D}),[D]);return R.jsx(Sle,P({className:ge(j.root,f),closeAfterTransition:!0,components:{Backdrop:xle},componentsProps:{backdrop:P({transitionDuration:O,as:u},l)},disableEscapeKeyDown:p,onClose:x,open:m,ref:r,onClick:N,ownerState:$},T,{children:R.jsx(C,P({appear:!0,in:m,timeout:O,role:"presentation"},E,{children:R.jsx(Cle,{className:ge(j.container),onMouseDown:k,ownerState:$,children:R.jsx(_le,P({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":D},h,{className:ge(j.paper,h.className),ownerState:$,children:R.jsx(aM.Provider,{value:A,children:c})}))})}))}))}),wS=Ole;function Ele(e){return Fe("MuiDialogActions",e)}Ne("MuiDialogActions",["root","spacing"]);const Ple=["className","disableSpacing"],Tle=e=>{const{classes:t,disableSpacing:r}=e;return De({root:["root",!r&&"spacing"]},Ele,t)},$le=Y("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>P({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Rle=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=be(n,Ple),s=P({},n,{disableSpacing:a}),u=Tle(s);return R.jsx($le,P({className:ge(u.root,o),ownerState:s,ref:r},i))}),SS=Rle;function kle(e){return Fe("MuiDialogContent",e)}Ne("MuiDialogContent",["root","dividers"]);function jle(e){return Fe("MuiDialogTitle",e)}const Ile=Ne("MuiDialogTitle",["root"]),Ale=Ile,Mle=["className","dividers"],Fle=e=>{const{classes:t,dividers:r}=e;return De({root:["root",r&&"dividers"]},kle,t)},Nle=Y("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>P({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Ale.root} + &`]:{paddingTop:0}})),Lle=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=be(n,Mle),s=P({},n,{dividers:a}),u=Fle(s);return R.jsx(Nle,P({className:ge(u.root,o),ownerState:s,ref:r},i))}),CS=Lle;function Dle(e){return Fe("MuiDialogContentText",e)}Ne("MuiDialogContentText",["root"]);const Ble=["children","className"],zle=e=>{const{classes:t}=e,n=De({root:["root"]},Dle,t);return P({},t,n)},Vle=Y(it,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ule=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=be(n,Ble),i=zle(a);return R.jsx(Vle,P({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:ge(i.root,o)},n,{classes:i}))}),iM=Ule,Wle=["className","id"],Hle=e=>{const{classes:t}=e;return De({root:["root"]},jle,t)},qle=Y(it,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Kle=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=be(n,Wle),s=n,u=Hle(s),{titleId:l=a}=d.useContext(aM);return R.jsx(qle,P({component:"h2",className:ge(u.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),_S=Kle;function Gle(e){return Fe("MuiDivider",e)}const Qle=Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),x2=Qle,Xle=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Yle=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:u}=e;return De({root:["root",t&&"absolute",u,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Gle,n)},Jle=Y("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>P({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:et(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>P({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>P({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Zle=Y("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>P({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),sM=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:u=!1,light:l=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=be(n,Xle),y=P({},n,{absolute:o,component:s,flexItem:u,light:l,orientation:c,role:f,textAlign:p,variant:v}),w=Yle(y);return R.jsx(Jle,P({as:s,className:ge(w.root,i),role:f,ref:r,ownerState:y},g,{children:a?R.jsx(Zle,{className:w.wrapper,ownerState:y,children:a}):null}))});sM.muiSkipListHighlight=!0;const O0=sM,eue=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tue(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Mn(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=a.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+u-n.top}px)`:`translateY(${a.innerHeight+u-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function rue(e){return typeof e=="function"?e():e}function Of(e,t,r){const n=rue(r),o=tue(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const nue=d.forwardRef(function(t,r){const n=nn(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=o,in:p,onEnter:v,onEntered:g,onEntering:y,onExit:w,onExited:x,onExiting:m,style:b,timeout:h=a,TransitionComponent:S=uS}=t,C=be(t,eue),O=d.useRef(null),E=Vt(u.ref,O,r),T=B=>U=>{B&&(U===void 0?B(O.current):B(O.current,U))},$=T((B,U)=>{Of(c,B,l),fS(B),v&&v(B,U)}),j=T((B,U)=>{const q=kl({timeout:h,style:b,easing:f},{mode:"enter"});B.style.webkitTransition=n.transitions.create("-webkit-transform",P({},q)),B.style.transition=n.transitions.create("transform",P({},q)),B.style.webkitTransform="none",B.style.transform="none",y&&y(B,U)}),M=T(g),k=T(m),N=T(B=>{const U=kl({timeout:h,style:b,easing:f},{mode:"exit"});B.style.webkitTransition=n.transitions.create("-webkit-transform",U),B.style.transition=n.transitions.create("transform",U),Of(c,B,l),w&&w(B)}),D=T(B=>{B.style.webkitTransition="",B.style.transition="",x&&x(B)}),A=B=>{i&&i(O.current,B)},H=d.useCallback(()=>{O.current&&Of(c,O.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const B=lu(()=>{O.current&&Of(c,O.current,l)}),U=Mn(O.current);return U.addEventListener("resize",B),()=>{B.clear(),U.removeEventListener("resize",B)}},[c,p,l]),d.useEffect(()=>{p||H()},[p,H]),R.jsx(S,P({nodeRef:O,onEnter:$,onEntered:M,onEntering:j,onExit:N,onExited:D,onExiting:k,addEndListener:A,appear:s,in:p,timeout:h},C,{children:(B,U)=>d.cloneElement(u,P({ref:E,style:P({visibility:B==="exited"&&!p?"hidden":void 0},b,u.props.style)},U))}))}),lM=nue;function oue(e){return Fe("MuiDrawer",e)}Ne("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const aue=["BackdropProps"],iue=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],uM=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},sue=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${le(r)}`,n!=="temporary"&&`paperAnchorDocked${le(r)}`]};return De(o,oue,t)},lue=Y(xS,{name:"MuiDrawer",slot:"Root",overridesResolver:uM})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),w2=Y("div",{shouldForwardProp:Cr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:uM})({flex:"0 0 auto"}),uue=Y(ri,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${le(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${le(r.anchor)}`]]}})(({theme:e,ownerState:t})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),cM={left:"right",right:"left",top:"down",bottom:"up"};function cue(e){return["left","right"].indexOf(e)!==-1}function due(e,t){return e.direction==="rtl"&&cue(t)?cM[t]:t}const fue=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiDrawer"}),o=nn(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:s,children:u,className:l,elevation:c=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p}={},onClose:v,open:g=!1,PaperProps:y={},SlideProps:w,TransitionComponent:x=lM,transitionDuration:m=a,variant:b="temporary"}=n,h=be(n.ModalProps,aue),S=be(n,iue),C=d.useRef(!1);d.useEffect(()=>{C.current=!0},[]);const O=due(o,i),T=P({},n,{anchor:i,elevation:c,open:g,variant:b},S),$=sue(T),j=R.jsx(uue,P({elevation:b==="temporary"?c:0,square:!0},y,{className:ge($.paper,y.className),ownerState:T,children:u}));if(b==="permanent")return R.jsx(w2,P({className:ge($.root,$.docked,l),ownerState:T,ref:r},S,{children:j}));const M=R.jsx(x,P({in:g,direction:cM[O],timeout:m,appear:C.current},w,{children:j}));return b==="persistent"?R.jsx(w2,P({className:ge($.root,$.docked,l),ownerState:T,ref:r},S,{children:M})):R.jsx(lue,P({BackdropProps:P({},s,p,{transitionDuration:m}),className:ge($.root,$.modal,l),open:g,ownerState:T,onClose:v,hideBackdrop:f,ref:r},S,h,{children:M}))}),pue=fue;function hue(e){return Fe("MuiFab",e)}const vue=Ne("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),S2=vue,mue=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],gue=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${le(o)}`,t==="inherit"?"colorInherit":t]},i=De(a,hue,n);return P({},n,i)},yue=Y(ro,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Cr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${le(r.size)}`],r.color==="inherit"&&t.colorInherit,t[le(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return P({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${S2.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>P({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${S2.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),bue=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,v=be(n,mue),g=P({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),y=gue(g);return R.jsx(yue,P({className:ge(y.root,a),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ge(y.focusVisible,c),ownerState:g,ref:r},v,{classes:y,children:o}))}),xue=bue,wue=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Sue=e=>{const{classes:t,disableUnderline:r}=e,o=De({root:["root",!r&&"underline"],input:["input"]},Aie,t);return P({},t,o)},Cue=Y(qm,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Wm(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${si.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${si.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${si.disabled}, .${si.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${si.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),_ue=Y(Km,{name:"MuiFilledInput",slot:"Input",overridesResolver:Hm})(({theme:e,ownerState:t})=>P({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),dM=d.forwardRef(function(t,r){var n,o,a,i;const s=Be({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,w=be(s,wue),x=P({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),m=Sue(s),b={root:{ownerState:x},input:{ownerState:x}},h=v??l?pr(b,v??l):b,S=(n=(o=g.root)!=null?o:u.Root)!=null?n:Cue,C=(a=(i=g.input)!=null?i:u.Input)!=null?a:_ue;return R.jsx(Gm,P({slots:{root:S,input:C},componentsProps:h,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},w,{classes:m}))});dM.muiName="Input";const fM=dM;function Oue(e){return Fe("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Eue=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Pue=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${le(r)}`,n&&"fullWidth"]};return De(o,Oue,t)},Tue=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${le(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),$ue=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:y="medium",variant:w="outlined"}=n,x=be(n,Eue),m=P({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:y,variant:w}),b=Pue(m),[h,S]=d.useState(()=>{let k=!1;return o&&d.Children.forEach(o,N=>{if(!ap(N,["Input","Select"]))return;const D=ap(N,["Select"])?N.props.input:N;D&&Cie(D.props)&&(k=!0)}),k}),[C,O]=d.useState(()=>{let k=!1;return o&&d.Children.forEach(o,N=>{ap(N,["Input","Select"])&&(jh(N.props,!0)||jh(N.props.inputProps,!0))&&(k=!0)}),k}),[E,T]=d.useState(!1);u&&E&&T(!1);const $=c!==void 0&&!u?c:E;let j;const M=d.useMemo(()=>({adornedStart:h,setAdornedStart:S,color:i,disabled:u,error:l,filled:C,focused:$,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{T(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{T(!0)},registerEffect:j,required:g,variant:w}),[h,i,u,l,C,$,f,p,j,g,y,w]);return R.jsx(Um.Provider,{value:M,children:R.jsx(Tue,P({as:s,ownerState:m,className:ge(b.root,a),ref:r},x,{children:o}))})}),Rue=$ue,kue=Dre({createStyledComponent:Y("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),Xm=kue;function jue(e){return Fe("MuiFormControlLabel",e)}const Iue=Ne("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Hu=Iue,Aue=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Mue=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${le(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return De(i,jue,t)},Fue=Y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Hu.label}`]:t.label},t.root,t[`labelPlacement${le(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hu.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Hu.label}`]:{[`&.${Hu.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Nue=Y("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hu.error}`]:{color:(e.vars||e).palette.error.main}})),Lue=d.forwardRef(function(t,r){var n,o;const a=Be({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=a,y=be(a,Aue),w=jo(),x=(n=l??u.props.disabled)!=null?n:w==null?void 0:w.disabled,m=v??u.props.required,b={disabled:x,required:m};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof u.props[T]>"u"&&typeof a[T]<"u"&&(b[T]=a[T])});const h=oi({props:a,muiFormControl:w,states:["error"]}),S=P({},a,{disabled:x,labelPlacement:p,required:m,error:h.error}),C=Mue(S),O=(o=g.typography)!=null?o:s.typography;let E=f;return E!=null&&E.type!==it&&!c&&(E=R.jsx(it,P({component:"span"},O,{className:ge(C.label,O==null?void 0:O.className),children:E}))),R.jsxs(Fue,P({className:ge(C.root,i),ownerState:S,ref:r},y,{children:[d.cloneElement(u,b),m?R.jsxs(Xm,{display:"block",children:[E,R.jsxs(Nue,{ownerState:S,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):E]}))}),Due=Lue;function Bue(e){return Fe("MuiFormGroup",e)}Ne("MuiFormGroup",["root","row","error"]);const zue=["className","row"],Vue=e=>{const{classes:t,row:r,error:n}=e;return De({root:["root",r&&"row",n&&"error"]},Bue,t)},Uue=Y("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Wue=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=n,i=be(n,zue),s=jo(),u=oi({props:n,muiFormControl:s,states:["error"]}),l=P({},n,{row:a,error:u.error}),c=Vue(l);return R.jsx(Uue,P({className:ge(c.root,o),ownerState:l,ref:r},i))}),Hue=Wue;function que(e){return Fe("MuiFormHelperText",e)}const Kue=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),C2=Kue;var _2;const Gue=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Que=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:u}=e,l={root:["root",o&&"disabled",a&&"error",n&&`size${le(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return De(l,que,t)},Xue=Y("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${le(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${C2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${C2.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Yue=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=be(n,Gue),u=jo(),l=oi({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=P({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Que(c);return R.jsx(Xue,P({as:i,ownerState:c,className:ge(f.root,a),ref:r},s,{children:o===" "?_2||(_2=R.jsx("span",{className:"notranslate",children:"​"})):o}))}),OS=Yue;function Jue(e){return Fe("MuiFormLabel",e)}const Zue=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),vc=Zue,ece=["children","className","color","component","disabled","error","filled","focused","required"],tce=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,u={root:["root",`color${le(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return De(u,Jue,t)},rce=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${vc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${vc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vc.error}`]:{color:(e.vars||e).palette.error.main}})),nce=Y("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${vc.error}`]:{color:(e.vars||e).palette.error.main}})),oce=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=be(n,ece),u=jo(),l=oi({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=P({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=tce(c);return R.jsxs(rce,P({as:i,ownerState:c,className:ge(f.root,a),ref:r},s,{children:[o,l.required&&R.jsxs(nce,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),ace=oce,ice=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function E0(e){return`scale(${e}, ${e**2})`}const sce={entering:{opacity:1,transform:E0(1)},entered:{opacity:1,transform:"none"}},vy=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pM=d.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:y="auto",TransitionComponent:w=uS}=t,x=be(t,ice),m=d.useRef(),b=d.useRef(),h=nn(),S=d.useRef(null),C=Vt(S,a.ref,r),O=D=>A=>{if(D){const H=S.current;A===void 0?D(H):D(H,A)}},E=O(c),T=O((D,A)=>{fS(D);const{duration:H,delay:B,easing:U}=kl({style:g,timeout:y,easing:i},{mode:"enter"});let q;y==="auto"?(q=h.transitions.getAutoHeightDuration(D.clientHeight),b.current=q):q=H,D.style.transition=[h.transitions.create("opacity",{duration:q,delay:B}),h.transitions.create("transform",{duration:vy?q:q*.666,delay:B,easing:U})].join(","),u&&u(D,A)}),$=O(l),j=O(v),M=O(D=>{const{duration:A,delay:H,easing:B}=kl({style:g,timeout:y,easing:i},{mode:"exit"});let U;y==="auto"?(U=h.transitions.getAutoHeightDuration(D.clientHeight),b.current=U):U=A,D.style.transition=[h.transitions.create("opacity",{duration:U,delay:H}),h.transitions.create("transform",{duration:vy?U:U*.666,delay:vy?H:H||U*.333,easing:B})].join(","),D.style.opacity=0,D.style.transform=E0(.75),f&&f(D)}),k=O(p),N=D=>{y==="auto"&&(m.current=setTimeout(D,b.current||0)),n&&n(S.current,D)};return d.useEffect(()=>()=>{clearTimeout(m.current)},[]),R.jsx(w,P({appear:o,in:s,nodeRef:S,onEnter:T,onEntered:$,onEntering:E,onExit:M,onExited:k,onExiting:j,addEndListener:N,timeout:y==="auto"?null:y},x,{children:(D,A)=>d.cloneElement(a,P({style:P({opacity:0,transform:E0(.75),visibility:D==="exited"&&!s?"hidden":void 0},sce[D],g,a.props.style),ref:C},A))}))});pM.muiSupportAuto=!0;const Ah=pM;function lce(e,t,r,n,o){const[a,i]=d.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return yn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),a}const hM=Tp["useSyncExternalStore"];function uce(e,t,r,n,o){const a=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return a},[a,e,n,o,r]),[s,u]=d.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,r,e]);return hM(u,s,i)}function an(e,t={}){const r=Fm(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=DA({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(hM!==void 0?uce:lce)(u,o,a,i,s)}const cce=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],dce=e=>{const{classes:t,disableUnderline:r}=e,o=De({root:["root",!r&&"underline"],input:["input"]},Rie,t);return P({},t,o)},fce=Y(qm,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Wm(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),P({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$u.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$u.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$u.disabled}, .${$u.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$u.disabled}:before`]:{borderBottomStyle:"dotted"}})}),pce=Y(Km,{name:"MuiInput",slot:"Input",overridesResolver:Hm})({}),vM=d.forwardRef(function(t,r){var n,o,a,i;const s=Be({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:y={},type:w="text"}=s,x=be(s,cce),m=dce(s),h={root:{ownerState:{disableUnderline:u}}},S=g??c?pr(g??c,h):h,C=(n=(o=y.root)!=null?o:l.Root)!=null?n:fce,O=(a=(i=y.input)!=null?i:l.Input)!=null?a:pce;return R.jsx(Gm,P({slots:{root:C,input:O},slotProps:S,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:w},x,{classes:m}))});vM.muiName="Input";const mM=vM;function hce(e){return Fe("MuiInputAdornment",e)}const vce=Ne("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),O2=vce;var E2;const mce=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gce=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${le(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},yce=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${le(o)}`,i,n&&"hiddenLabel",a&&`size${le(a)}`]};return De(s,hce,t)},bce=Y("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gce})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${O2.positionStart}&:not(.${O2.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),xce=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=be(n,mce),p=jo()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=P({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),y=yce(g);return R.jsx(Um.Provider,{value:null,children:R.jsx(bce,P({as:i,ownerState:g,className:ge(y.root,a),ref:r},f,{children:typeof o=="string"&&!u?R.jsx(it,{color:"text.secondary",children:o}):R.jsxs(d.Fragment,{children:[l==="start"?E2||(E2=R.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),up=xce;function wce(e){return Fe("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Sce=["disableAnimation","margin","shrink","variant","className"],Cce=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${le(n)}`,i],asterisk:[s&&"asterisk"]},l=De(u,wce,t);return P({},t,l)},_ce=Y(ace,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${vc.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>P({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&P({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&P({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&P({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Oce=d.forwardRef(function(t,r){const n=Be({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=be(n,Sce),u=jo();let l=a;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=oi({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=P({},n,{disableAnimation:o,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Cce(f);return R.jsx(_ce,P({"data-shrink":l,ownerState:f,ref:r,className:ge(p.root,i)},s,{classes:p}))}),Ece=Oce;function Pce(e){return Fe("MuiLink",e)}const Tce=Ne("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),$ce=Tce,gM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Rce=e=>gM[e]||e,kce=({theme:e,ownerState:t})=>{const r=Rce(t.color),n=Rl(e,`palette.${r}`,!1)||t.color,o=Rl(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:et(n,.4)},jce=kce,Ice=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Ace=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${le(o)}`,r==="button"&&"button",n&&"focusVisible"]};return De(a,Pce,t)},Mce=Y(it,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${le(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>P({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&P({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:jce({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$ce.focusVisible}`]:{outline:"auto"}})),Fce=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,v=be(n,Ice),{isFocusVisibleRef:g,onBlur:y,onFocus:w,ref:x}=Pm(),[m,b]=d.useState(!1),h=Vt(r,x),S=T=>{y(T),g.current===!1&&b(!1),s&&s(T)},C=T=>{w(T),g.current===!0&&b(!0),u&&u(T)},O=P({},n,{color:a,component:i,focusVisible:m,underline:c,variant:f}),E=Ace(O);return R.jsx(Mce,P({color:a,className:ge(E.root,o),classes:l,component:i,onBlur:S,onFocus:C,ref:h,ownerState:O,variant:f,sx:[...Object.keys(gM).includes(a)?[]:[{color:a}],...Array.isArray(p)?p:[p]]},v))}),Nce=Fce,Lce=d.createContext({}),od=Lce;function Dce(e){return Fe("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const Bce=["children","className","component","dense","disablePadding","subheader"],zce=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return De({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Dce,t)},Vce=Y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Uce=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=be(n,Bce),f=d.useMemo(()=>({dense:s}),[s]),p=P({},n,{component:i,dense:s,disablePadding:u}),v=zce(p);return R.jsx(od.Provider,{value:f,children:R.jsxs(Vce,P({as:i,className:ge(v.root,a),ref:r,ownerState:p},c,{children:[l,o]}))})}),Wce=Uce;function Hce(e){return Fe("MuiListItemIcon",e)}const qce=Ne("MuiListItemIcon",["root","alignItemsFlexStart"]),P2=qce,Kce=["className"],Gce=e=>{const{alignItems:t,classes:r}=e;return De({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Hce,r)},Qce=Y("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Xce=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=be(n,Kce),i=d.useContext(od),s=P({},n,{alignItems:i.alignItems}),u=Gce(s);return R.jsx(Qce,P({className:ge(u.root,o),ownerState:s,ref:r},a))}),yM=Xce;function Yce(e){return Fe("MuiListItemText",e)}const Jce=Ne("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Mh=Jce,Zce=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ede=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return De({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Yce,t)},tde=Y("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Mh.primary}`]:t.primary},{[`& .${Mh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),rde=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=be(n,Zce),{dense:v}=d.useContext(od);let g=u??o,y=c;const w=P({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!y,dense:v}),x=ede(w);return g!=null&&g.type!==it&&!i&&(g=R.jsx(it,P({variant:v?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),y!=null&&y.type!==it&&!i&&(y=R.jsx(it,P({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),R.jsxs(tde,P({className:ge(x.root,a),ownerState:w,ref:r},p,{children:[g,y]}))}),nde=rde,ode=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function my(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function T2(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function bM(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Ru(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!bM(s,a)||u)s=o(e,s,r);else return s.focus(),!0}return!1}const ade=d.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=be(t,ode),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{o&&v.current.focus()},[o]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,h)=>{const S=!v.current.style.width;if(b.clientHeight{const h=v.current,S=b.key,C=ar(h).activeElement;if(S==="ArrowDown")b.preventDefault(),Ru(h,C,l,u,my);else if(S==="ArrowUp")b.preventDefault(),Ru(h,C,l,u,T2);else if(S==="Home")b.preventDefault(),Ru(h,null,l,u,my);else if(S==="End")b.preventDefault(),Ru(h,null,l,u,T2);else if(S.length===1){const O=g.current,E=S.toLowerCase(),T=performance.now();O.keys.length>0&&(T-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&E!==O.keys[0]&&(O.repeating=!1)),O.lastTime=T,O.keys.push(E);const $=C&&!O.repeating&&bM(C,O);O.previousKeyMatched&&($||Ru(h,C,!1,u,my,O))?b.preventDefault():O.previousKeyMatched=!1}c&&c(b)},w=Vt(v,r);let x=-1;d.Children.forEach(i,(b,h)=>{if(!d.isValidElement(b)){x===h&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=h),x===h&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(b,h)=>{if(h===x){const S={};return a&&(S.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(S.tabIndex=0),d.cloneElement(b,S)}return b});return R.jsx(Wce,P({role:"menu",ref:w,className:s,onKeyDown:y,tabIndex:o?0:-1},p,{children:m}))}),xM=ade;function ide(e){return Fe("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);const sde=["onEntering"],lde=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ude=["slotProps"];function $2(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function R2(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function k2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gy(e){return typeof e=="function"?e():e}const cde=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"]},ide,t)},dde=Y(xS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wM=Y(ri,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fde=d.forwardRef(function(t,r){var n,o,a;const i=Be({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:y=8,marginThreshold:w=16,open:x,PaperProps:m={},slots:b,slotProps:h,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:C=Ah,transitionDuration:O="auto",TransitionProps:{onEntering:E}={},disableScrollLock:T=!1}=i,$=be(i.TransitionProps,sde),j=be(i,lde),M=(n=h==null?void 0:h.paper)!=null?n:m,k=d.useRef(),N=Vt(k,M.ref),D=P({},i,{anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:w,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:C,transitionDuration:O,TransitionProps:$}),A=cde(D),H=d.useCallback(()=>{if(f==="anchorPosition")return c;const Ce=gy(u),ke=(Ce&&Ce.nodeType===1?Ce:ar(k.current).body).getBoundingClientRect();return{top:ke.top+$2(ke,l.vertical),left:ke.left+R2(ke,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),B=d.useCallback(Ce=>({vertical:$2(Ce,S.vertical),horizontal:R2(Ce,S.horizontal)}),[S.horizontal,S.vertical]),U=d.useCallback(Ce=>{const Ie={width:Ce.offsetWidth,height:Ce.offsetHeight},ke=B(Ie);if(f==="none")return{top:null,left:null,transformOrigin:k2(ke)};const Xe=H();let Je=Xe.top-ke.vertical,Ke=Xe.left-ke.horizontal;const W=Je+Ie.height,Q=Ke+Ie.width,ee=Mn(gy(u)),ye=ee.innerHeight-w,ce=ee.innerWidth-w;if(w!==null&&Jeye){const se=W-ye;Je-=se,ke.vertical+=se}if(w!==null&&Kece){const se=Q-ce;Ke-=se,ke.horizontal+=se}return{top:`${Math.round(Je)}px`,left:`${Math.round(Ke)}px`,transformOrigin:k2(ke)}},[u,f,H,B,w]),[q,re]=d.useState(x),ne=d.useCallback(()=>{const Ce=k.current;if(!Ce)return;const Ie=U(Ce);Ie.top!==null&&(Ce.style.top=Ie.top),Ie.left!==null&&(Ce.style.left=Ie.left),Ce.style.transformOrigin=Ie.transformOrigin,re(!0)},[U]);d.useEffect(()=>(T&&window.addEventListener("scroll",ne),()=>window.removeEventListener("scroll",ne)),[u,T,ne]);const fe=(Ce,Ie)=>{E&&E(Ce,Ie),ne()},ve=()=>{re(!1)};d.useEffect(()=>{x&&ne()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{ne()}}:null,[x,ne]),d.useEffect(()=>{if(!x)return;const Ce=lu(()=>{ne()}),Ie=Mn(u);return Ie.addEventListener("resize",Ce),()=>{Ce.clear(),Ie.removeEventListener("resize",Ce)}},[u,x,ne]);let Se=O;O==="auto"&&!C.muiSupportAuto&&(Se=void 0);const we=g||(u?ar(gy(u)).body:void 0),Re=(o=b==null?void 0:b.root)!=null?o:dde,pe=(a=b==null?void 0:b.paper)!=null?a:wM,xe=Fn({elementType:pe,externalSlotProps:P({},M,{style:q?M.style:P({},M.style,{opacity:0})}),additionalProps:{elevation:y,ref:N},ownerState:D,className:ge(A.paper,M==null?void 0:M.className)}),Te=Fn({elementType:Re,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:j,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:we,open:x},ownerState:D,className:ge(A.root,v)}),{slotProps:je}=Te,Oe=be(Te,ude);return R.jsx(Re,P({},Oe,!td(Re)&&{slotProps:je,disableScrollLock:T},{children:R.jsx(C,P({appear:!0,in:x,onEntering:fe,onExited:ve,timeout:Se},$,{children:R.jsx(pe,P({},xe,{children:p}))}))}))}),SM=fde;function pde(e){return Fe("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const hde=["onEntering"],vde=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],mde={vertical:"top",horizontal:"right"},gde={vertical:"top",horizontal:"left"},yde=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"],list:["list"]},pde,t)},bde=Y(SM,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xde=Y(wM,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wde=Y(xM,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Sde=d.forwardRef(function(t,r){var n,o;const a=Be({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:w}={},variant:x="selectedMenu",slots:m={},slotProps:b={}}=a,h=be(a.TransitionProps,hde),S=be(a,vde),C=nn(),O=C.direction==="rtl",E=P({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:w,PaperProps:v,transitionDuration:y,TransitionProps:h,variant:x}),T=yde(E),$=i&&!l&&p,j=d.useRef(null),M=(U,q)=>{j.current&&j.current.adjustStyleForScrollbar(U,C),w&&w(U,q)},k=U=>{U.key==="Tab"&&(U.preventDefault(),f&&f(U,"tabKeyDown"))};let N=-1;d.Children.map(s,(U,q)=>{d.isValidElement(U)&&(U.props.disabled||(x==="selectedMenu"&&U.props.selected||N===-1)&&(N=q))});const D=(n=m.paper)!=null?n:xde,A=(o=b.paper)!=null?o:v,H=Fn({elementType:m.root,externalSlotProps:b.root,ownerState:E,className:[T.root,u]}),B=Fn({elementType:D,externalSlotProps:A,ownerState:E,className:T.paper});return R.jsx(bde,P({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?mde:gde,slots:{paper:D,root:m.root},slotProps:{root:H,paper:B},open:p,ref:r,transitionDuration:y,TransitionProps:P({onEntering:M},h),ownerState:E},S,{classes:g,children:R.jsx(wde,P({onKeyDown:k,actions:j,autoFocus:i&&(N===-1||l),autoFocusItem:$,variant:x},c,{className:ge(T.list,c.className),children:s}))}))}),Ym=Sde;function Cde(e){return Fe("MuiMenuItem",e)}const _de=Ne("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ku=_de,Ode=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ede=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Pde=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,u=De({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},Cde,i);return P({},i,u)},Tde=Y(ro,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ede})(({theme:e,ownerState:t})=>P({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ku.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:et(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ku.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ku.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:et(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:et(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ku.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ku.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${x2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${x2.inset}`]:{marginLeft:52},[`& .${Mh.root}`]:{marginTop:0,marginBottom:0},[`& .${Mh.inset}`]:{paddingLeft:36},[`& .${P2.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${P2.root} svg`]:{fontSize:"1.25rem"}}))),$de=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,v=be(n,Ode),g=d.useContext(od),y=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),w=d.useRef(null);yn(()=>{o&&w.current&&w.current.focus()},[o]);const x=P({},n,{dense:y.dense,divider:s,disableGutters:u}),m=Pde(n),b=Vt(w,r);let h;return n.disabled||(h=f!==void 0?f:-1),R.jsx(od.Provider,{value:y,children:R.jsx(Tde,P({ref:b,role:c,tabIndex:h,component:a,focusVisibleClassName:ge(m.focusVisible,l),className:ge(m.root,p)},v,{ownerState:x,classes:m}))})}),Xn=$de;function Rde(e){return Fe("MuiNativeSelect",e)}const kde=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ES=kde,jde=["className","disabled","error","IconComponent","inputRef","variant"],Ide=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${le(r)}`,a&&"iconOpen",n&&"disabled"]};return De(s,Rde,t)},CM=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ES.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Ade=Y("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ES.multiple}`]:t.multiple}]}})(CM),_M=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ES.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Mde=Y("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${le(r.variant)}`],r.open&&t.iconOpen]}})(_M),Fde=d.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=be(t,jde),c=P({},t,{disabled:o,variant:u,error:a}),f=Ide(c);return R.jsxs(d.Fragment,{children:[R.jsx(Ade,P({ownerState:c,className:ge(f.select,n),disabled:o,ref:s||r},l)),t.multiple?null:R.jsx(Mde,{as:i,ownerState:c,className:f.icon})]})}),Nde=Fde;var j2;const Lde=["children","classes","className","label","notched"],Dde=Y("fieldset",{shouldForwardProp:Cr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Bde=Y("legend",{shouldForwardProp:Cr})(({ownerState:e,theme:t})=>P({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&P({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zde(e){const{className:t,label:r,notched:n}=e,o=be(e,Lde),a=r!=null&&r!=="",i=P({},e,{notched:n,withLabel:a});return R.jsx(Dde,P({"aria-hidden":!0,className:t,ownerState:i},o,{children:R.jsx(Bde,{ownerState:i,children:a?R.jsx("span",{children:r}):j2||(j2=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const Vde=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ude=e=>{const{classes:t}=e,n=De({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jie,t);return P({},t,n)},Wde=Y(qm,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wm})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${da.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${da.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${da.focused} .${da.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${da.error} .${da.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${da.disabled} .${da.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Hde=Y(zde,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),qde=Y(Km,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Hm})(({theme:e,ownerState:t})=>P({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),OM=d.forwardRef(function(t,r){var n,o,a,i,s;const u=Be({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:y={},type:w="text"}=u,x=be(u,Vde),m=Ude(u),b=jo(),h=oi({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=P({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:b,fullWidth:c,hiddenLabel:h.hiddenLabel,multiline:v,size:h.size,type:w}),C=(n=(o=y.root)!=null?o:l.Root)!=null?n:Wde,O=(a=(i=y.input)!=null?i:l.Input)!=null?a:qde;return R.jsx(Gm,P({slots:{root:C,input:O},renderSuffix:E=>R.jsx(Hde,{ownerState:S,className:m.notchedOutline,label:p!=null&&p!==""&&h.required?s||(s=R.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:r,type:w},x,{classes:P({},m,{notchedOutline:null})}))});OM.muiName="Input";const EM=OM;function Kde(e){return Fe("MuiPagination",e)}Ne("MuiPagination",["root","ul","outlined","text"]);const Gde=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Qde(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=be(e,Gde),[g,y]=$l({controlled:l,default:o,name:r,state:"page"}),w=(T,$)=>{l||y($),u&&u(T,$)},x=(T,$)=>{const j=$-T+1;return Array.from({length:j},(M,k)=>T+k)},m=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),h=Math.max(Math.min(g-p,n-t-p*2-1),t+2),S=Math.min(Math.max(g+p,t+p*2+2),b.length>0?b[0]-2:n-1),C=[...c?["first"]:[],...s?[]:["previous"],...m,...h>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...f?["last"]:[]],O=T=>{switch(T){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},E=C.map(T=>typeof T=="number"?{onClick:$=>{w($,T)},type:"page",page:T,selected:T===g,disabled:a,"aria-current":T===g?"true":void 0}:{onClick:$=>{w($,O(T))},type:T,page:O(T),selected:!1,disabled:a||T.indexOf("ellipsis")===-1&&(T==="next"||T==="last"?g>=n:g<=1)});return P({items:E},v)}function Xde(e){return Fe("MuiPaginationItem",e)}const Yde=Ne("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),_n=Yde,P0=on(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),T0=on(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),I2=on(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),A2=on(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Jde=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],PM=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${le(r.size)}`],r.variant==="text"&&t[`text${le(r.color)}`],r.variant==="outlined"&&t[`outlined${le(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Zde=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:u}=e,l={root:["root",`size${le(a)}`,u,i,r!=="standard"&&`${u}${le(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return De(l,Xde,t)},efe=Y("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:PM})(({theme:e,ownerState:t})=>P({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${_n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),tfe=Y(ro,{name:"MuiPaginationItem",slot:"Root",overridesResolver:PM})(({theme:e,ownerState:t})=>P({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${_n.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_n.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_n.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${_n.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>P({},t.variant==="text"&&{[`&.${_n.selected}`]:P({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${_n.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${_n.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${_n.selected}`]:P({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:et(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:et(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_n.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${_n.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),rfe=Y("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>P({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),nfe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:v={},type:g="page",variant:y="text"}=n,w=be(n,Jde),x=P({},n,{color:a,disabled:u,selected:c,shape:f,size:p,type:g,variant:y}),m=nn(),b=Zde(x),S=(m.direction==="rtl"?{previous:v.next||s.next||A2,next:v.previous||s.previous||I2,last:v.first||s.first||P0,first:v.last||s.last||T0}:{previous:v.previous||s.previous||I2,next:v.next||s.next||A2,first:v.first||s.first||P0,last:v.last||s.last||T0})[g];return g==="start-ellipsis"||g==="end-ellipsis"?R.jsx(efe,{ref:r,ownerState:x,className:ge(b.root,o),children:"…"}):R.jsxs(tfe,P({ref:r,ownerState:x,component:i,disabled:u,className:ge(b.root,o)},w,{children:[g==="page"&&l,S?R.jsx(rfe,{as:S,ownerState:x,className:b.icon}):null]}))}),ofe=nfe,afe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],ife=e=>{const{classes:t,variant:r}=e;return De({root:["root",r],ul:["ul"]},Kde,t)},sfe=Y("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),lfe=Y("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function ufe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const cfe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=ufe,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=E=>R.jsx(ofe,P({},E)),shape:g="circular",showFirstButton:y=!1,showLastButton:w=!1,siblingCount:x=1,size:m="medium",variant:b="text"}=n,h=be(n,afe),{items:S}=Qde(P({},n,{componentName:"Pagination"})),C=P({},n,{boundaryCount:o,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:g,showFirstButton:y,showLastButton:w,siblingCount:x,size:m,variant:b}),O=ife(C);return R.jsx(sfe,P({"aria-label":"pagination navigation",className:ge(O.root,a),ownerState:C,ref:r},h,{children:R.jsx(lfe,{className:O.ul,ownerState:C,children:S.map((E,T)=>R.jsx("li",{children:v(P({},E,{color:i,"aria-label":c(E.type,E.page,E.selected),shape:g,size:m,variant:b}))},T))})}))}),dfe=cfe;function ffe(e){return Fe("MuiScopedCssBaseline",e)}Ne("MuiScopedCssBaseline",["root"]);const pfe=["className","component","enableColorScheme"],hfe=e=>{const{classes:t}=e;return De({root:["root"]},ffe,t)},vfe=Y("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var a;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(a=o.palette)==null?void 0:a.mode}}),P({},lle(e,t.enableColorScheme),ule(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),mfe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=be(n,pfe),s=P({},n,{component:a}),u=hfe(s);return R.jsx(vfe,P({as:a,className:ge(u.root,o),ref:r,ownerState:s},i))}),gfe=mfe;function yfe(e){return Fe("MuiSelect",e)}const bfe=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ju=bfe;var M2;const xfe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],wfe=Y("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ju.select}`]:t.select},{[`&.${ju.select}`]:t[r.variant]},{[`&.${ju.error}`]:t.error},{[`&.${ju.multiple}`]:t.multiple}]}})(CM,{[`&.${ju.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sfe=Y("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${le(r.variant)}`],r.open&&t.iconOpen]}})(_M),Cfe=Y("input",{shouldForwardProp:e=>fne(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function F2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _fe(e){return e==null||typeof e=="string"&&!e.trim()}const Ofe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${le(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return De(s,yfe,t)},Efe=d.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:w,labelId:x,MenuProps:m={},multiple:b,name:h,onBlur:S,onChange:C,onClose:O,onFocus:E,onOpen:T,open:$,readOnly:j,renderValue:M,SelectDisplayProps:k={},tabIndex:N,value:D,variant:A="standard"}=t,H=be(t,xfe),[B,U]=$l({controlled:D,default:f,name:"Select"}),[q,re]=$l({controlled:$,default:c,name:"Select"}),ne=d.useRef(null),fe=d.useRef(null),[ve,Se]=d.useState(null),{current:we}=d.useRef($!=null),[Re,pe]=d.useState(),xe=Vt(r,w),Te=d.useCallback(Ee=>{fe.current=Ee,Ee&&Se(Ee)},[]),je=ve==null?void 0:ve.parentNode;d.useImperativeHandle(xe,()=>({focus:()=>{fe.current.focus()},node:ne.current,value:B}),[B]),d.useEffect(()=>{c&&q&&ve&&!we&&(pe(s?null:je.clientWidth),fe.current.focus())},[ve,s]),d.useEffect(()=>{i&&fe.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const Ee=ar(fe.current).getElementById(x);if(Ee){const We=()=>{getSelection().isCollapsed&&fe.current.focus()};return Ee.addEventListener("click",We),()=>{Ee.removeEventListener("click",We)}}},[x]);const Oe=(Ee,We)=>{Ee?T&&T(We):O&&O(We),we||(pe(s?null:je.clientWidth),re(Ee))},Ce=Ee=>{Ee.button===0&&(Ee.preventDefault(),fe.current.focus(),Oe(!0,Ee))},Ie=Ee=>{Oe(!1,Ee)},ke=d.Children.toArray(u),Xe=Ee=>{const We=ke.find(me=>me.props.value===Ee.target.value);We!==void 0&&(U(We.props.value),C&&C(Ee,We))},Je=Ee=>We=>{let me;if(We.currentTarget.hasAttribute("tabindex")){if(b){me=Array.isArray(B)?B.slice():[];const $e=B.indexOf(Ee.props.value);$e===-1?me.push(Ee.props.value):me.splice($e,1)}else me=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(We),B!==me&&(U(me),C)){const $e=We.nativeEvent||We,ze=new $e.constructor($e.type,$e);Object.defineProperty(ze,"target",{writable:!0,value:{value:me,name:h}}),C(ze,Ee)}b||Oe(!1,We)}},Ke=Ee=>{j||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ee.key)!==-1&&(Ee.preventDefault(),Oe(!0,Ee))},W=ve!==null&&q,Q=Ee=>{!W&&S&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:B,name:h}}),S(Ee))};delete H["aria-invalid"];let ee,ye;const ce=[];let se=!1;(jh({value:B})||v)&&(M?ee=M(B):se=!0);const X=ke.map(Ee=>{if(!d.isValidElement(Ee))return null;let We;if(b){if(!Array.isArray(B))throw new Error(Wa(2));We=B.some(me=>F2(me,Ee.props.value)),We&&se&&ce.push(Ee.props.children)}else We=F2(B,Ee.props.value),We&&se&&(ye=Ee.props.children);return d.cloneElement(Ee,{"aria-selected":We?"true":"false",onClick:Je(Ee),onKeyUp:me=>{me.key===" "&&me.preventDefault(),Ee.props.onKeyUp&&Ee.props.onKeyUp(me)},role:"option",selected:We,value:void 0,"data-value":Ee.props.value})});se&&(b?ce.length===0?ee=null:ee=ce.reduce((Ee,We,me)=>(Ee.push(We),me{const{classes:t}=e;return t},PS={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Cr(e)&&e!=="variant",slot:"Root"},kfe=Y(mM,PS)(""),jfe=Y(EM,PS)(""),Ife=Y(fM,PS)(""),TM=d.forwardRef(function(t,r){const n=Be({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Fie,id:f,input:p,inputProps:v,label:g,labelId:y,MenuProps:w,multiple:x=!1,native:m=!1,onClose:b,onOpen:h,open:S,renderValue:C,SelectDisplayProps:O,variant:E="outlined"}=n,T=be(n,Tfe),$=m?Nde:Pfe,j=jo(),M=oi({props:n,muiFormControl:j,states:["variant","error"]}),k=M.variant||E,N=P({},n,{variant:k,classes:i}),D=Rfe(N),A=be(D,$fe),H=p||{standard:R.jsx(kfe,{ownerState:N}),outlined:R.jsx(jfe,{label:g,ownerState:N}),filled:R.jsx(Ife,{ownerState:N})}[k],B=Vt(r,H.ref);return R.jsx(d.Fragment,{children:d.cloneElement(H,P({inputComponent:$,inputProps:P({children:a,error:M.error,IconComponent:c,variant:k,type:void 0,multiple:x},m?{id:f}:{autoWidth:o,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:w,onClose:b,onOpen:h,open:S,renderValue:C,SelectDisplayProps:P({id:f},O)},v,{classes:v?pr(A,v.classes):A},p?p.props.inputProps:{})},x&&m&&k==="outlined"?{notched:!0}:{},{ref:B,className:ge(H.props.className,s,D.root)},!p&&{variant:k},T))})});TM.muiName="Select";const $M=TM;function Afe(e){return Fe("MuiSnackbarContent",e)}Ne("MuiSnackbarContent",["root","message","action"]);const Mfe=["action","className","message","role"],Ffe=e=>{const{classes:t}=e;return De({root:["root"],action:["action"],message:["message"]},Afe,t)},Nfe=Y(ri,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Ere(e.palette.background.default,t);return P({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),Lfe=Y("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Dfe=Y("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Bfe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,u=be(n,Mfe),l=n,c=Ffe(l);return R.jsxs(Nfe,P({role:s,square:!0,elevation:6,className:ge(c.root,a),ownerState:l,ref:r},u,{children:[R.jsx(Lfe,{className:c.message,ownerState:l,children:i}),o?R.jsx(Dfe,{className:c.action,ownerState:l,children:o}):null]}))}),zfe=Bfe;function Vfe(e){return Fe("MuiSnackbar",e)}Ne("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Ufe=["onEnter","onExited"],Wfe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Hfe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${le(r.vertical)}${le(r.horizontal)}`]};return De(n,Vfe,t)},N2=Y("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${le(r.anchorOrigin.vertical)}${le(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return P({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:P({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),qfe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiSnackbar"}),o=nn(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:g=!1,message:y,open:w,TransitionComponent:x=Ah,transitionDuration:m=a,TransitionProps:{onEnter:b,onExited:h}={}}=n,S=be(n.TransitionProps,Ufe),C=be(n,Wfe),O=P({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),E=Hfe(O),{getRootProps:T,onClickAway:$}=aie(P({},O)),[j,M]=d.useState(!0),k=Fn({elementType:N2,getSlotProps:T,externalForwardedProps:C,ownerState:O,additionalProps:{ref:r},className:[E.root,f]}),N=A=>{M(!0),h&&h(A)},D=(A,H)=>{M(!1),b&&b(A,H)};return!w&&j?null:R.jsx(Eoe,P({onClickAway:$},p,{children:R.jsx(N2,P({},k,{children:R.jsx(x,P({appear:!0,in:w,timeout:m,direction:s==="top"?"down":"up",onEnter:D,onExited:N},S,{children:c||R.jsx(zfe,P({message:y,action:i},v))}))}))}))}),Kfe=qfe;function Gfe(e){return Fe("MuiTooltip",e)}const Qfe=Ne("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Pa=Qfe,Xfe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Yfe(e){return Math.round(e*1e5)/1e5}const Jfe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${le(a.split("-")[0])}`],arrow:["arrow"]};return De(i,Gfe,t)},Zfe=Y(eM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Pa.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Pa.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Pa.arrow}`]:P({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Pa.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),epe=Y("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${le(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:et(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Yfe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Pa.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Pa.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Pa.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Pa.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),tpe=Y("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:et(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ef=!1,yy=null,Iu={x:0,y:0};function Pf(e,t){return r=>{t&&t(r),e(r)}}const rpe=d.forwardRef(function(t,r){var n,o,a,i,s,u,l,c,f,p,v,g,y,w,x,m,b,h,S;const C=Be({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:E,components:T={},componentsProps:$={},describeChild:j=!1,disableFocusListener:M=!1,disableHoverListener:k=!1,disableInteractive:N=!1,disableTouchListener:D=!1,enterDelay:A=100,enterNextDelay:H=0,enterTouchDelay:B=700,followCursor:U=!1,id:q,leaveDelay:re=0,leaveTouchDelay:ne=1500,onClose:fe,onOpen:ve,open:Se,placement:we="bottom",PopperComponent:Re,PopperProps:pe={},slotProps:xe={},slots:Te={},title:je,TransitionComponent:Oe=Ah,TransitionProps:Ce}=C,Ie=be(C,Xfe),ke=d.isValidElement(E)?E:R.jsx("span",{children:E}),Xe=nn(),Je=Xe.direction==="rtl",[Ke,W]=d.useState(),[Q,ee]=d.useState(null),ye=d.useRef(!1),ce=N||U,se=d.useRef(),X=d.useRef(),K=d.useRef(),G=d.useRef(),[Z,oe]=$l({controlled:Se,default:!1,name:"Tooltip",state:"open"});let Pe=Z;const Ve=qi(q),Ue=d.useRef(),Ee=d.useCallback(()=>{Ue.current!==void 0&&(document.body.style.WebkitUserSelect=Ue.current,Ue.current=void 0),clearTimeout(G.current)},[]);d.useEffect(()=>()=>{clearTimeout(se.current),clearTimeout(X.current),clearTimeout(K.current),Ee()},[Ee]);const We=ae=>{clearTimeout(yy),Ef=!0,oe(!0),ve&&!Pe&&ve(ae)},me=Qr(ae=>{clearTimeout(yy),yy=setTimeout(()=>{Ef=!1},800+re),oe(!1),fe&&Pe&&fe(ae),clearTimeout(se.current),se.current=setTimeout(()=>{ye.current=!1},Xe.transitions.duration.shortest)}),$e=ae=>{ye.current&&ae.type!=="touchstart"||(Ke&&Ke.removeAttribute("title"),clearTimeout(X.current),clearTimeout(K.current),A||Ef&&H?X.current=setTimeout(()=>{We(ae)},Ef?H:A):We(ae))},ze=ae=>{clearTimeout(X.current),clearTimeout(K.current),K.current=setTimeout(()=>{me(ae)},re)},{isFocusVisibleRef:Ge,onBlur:st,onFocus:wt,ref:Rt}=Pm(),[,St]=d.useState(!1),Ye=ae=>{st(ae),Ge.current===!1&&(St(!1),ze(ae))},Mt=ae=>{Ke||W(ae.currentTarget),wt(ae),Ge.current===!0&&(St(!0),$e(ae))},ur=ae=>{ye.current=!0;const Ae=ke.props;Ae.onTouchStart&&Ae.onTouchStart(ae)},sn=$e,Vr=ze,Ar=ae=>{ur(ae),clearTimeout(K.current),clearTimeout(se.current),Ee(),Ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ue.current,$e(ae)},B)},ln=ae=>{ke.props.onTouchEnd&&ke.props.onTouchEnd(ae),Ee(),clearTimeout(K.current),K.current=setTimeout(()=>{me(ae)},ne)};d.useEffect(()=>{if(!Pe)return;function ae(Ae){(Ae.key==="Escape"||Ae.key==="Esc")&&me(Ae)}return document.addEventListener("keydown",ae),()=>{document.removeEventListener("keydown",ae)}},[me,Pe]);const ua=Vt(ke.ref,Rt,W,r);!je&&je!==0&&(Pe=!1);const Io=d.useRef(),hg=ae=>{const Ae=ke.props;Ae.onMouseMove&&Ae.onMouseMove(ae),Iu={x:ae.clientX,y:ae.clientY},Io.current&&Io.current.update()},uo={},hu=typeof je=="string";j?(uo.title=!Pe&&hu&&!k?je:null,uo["aria-describedby"]=Pe?Ve:null):(uo["aria-label"]=hu?je:null,uo["aria-labelledby"]=Pe&&!hu?Ve:null);const un=P({},uo,Ie,ke.props,{className:ge(Ie.className,ke.props.className),onTouchStart:ur,ref:ua},U?{onMouseMove:hg}:{}),ii={};D||(un.onTouchStart=Ar,un.onTouchEnd=ln),k||(un.onMouseOver=Pf(sn,un.onMouseOver),un.onMouseLeave=Pf(Vr,un.onMouseLeave),ce||(ii.onMouseOver=sn,ii.onMouseLeave=Vr)),M||(un.onFocus=Pf(Mt,un.onFocus),un.onBlur=Pf(Ye,un.onBlur),ce||(ii.onFocus=Mt,ii.onBlur=Ye));const vg=d.useMemo(()=>{var ae;let Ae=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(ae=pe.popperOptions)!=null&&ae.modifiers&&(Ae=Ae.concat(pe.popperOptions.modifiers)),P({},pe.popperOptions,{modifiers:Ae})},[Q,pe]),co=P({},C,{isRtl:Je,arrow:O,disableInteractive:ce,placement:we,PopperComponentProp:Re,touch:ye.current}),z=Jfe(co),V=(n=(o=Te.popper)!=null?o:T.Popper)!=null?n:Zfe,I=(a=(i=(s=Te.transition)!=null?s:T.Transition)!=null?i:Oe)!=null?a:Ah,F=(u=(l=Te.tooltip)!=null?l:T.Tooltip)!=null?u:epe,L=(c=(f=Te.arrow)!=null?f:T.Arrow)!=null?c:tpe,te=Wu(V,P({},pe,(p=xe.popper)!=null?p:$.popper,{className:ge(z.popper,pe==null?void 0:pe.className,(v=(g=xe.popper)!=null?g:$.popper)==null?void 0:v.className)}),co),ue=Wu(I,P({},Ce,(y=xe.transition)!=null?y:$.transition),co),ie=Wu(F,P({},(w=xe.tooltip)!=null?w:$.tooltip,{className:ge(z.tooltip,(x=(m=xe.tooltip)!=null?m:$.tooltip)==null?void 0:x.className)}),co),J=Wu(L,P({},(b=xe.arrow)!=null?b:$.arrow,{className:ge(z.arrow,(h=(S=xe.arrow)!=null?S:$.arrow)==null?void 0:h.className)}),co);return R.jsxs(d.Fragment,{children:[d.cloneElement(ke,un),R.jsx(V,P({as:Re??eM,placement:we,anchorEl:U?{getBoundingClientRect:()=>({top:Iu.y,left:Iu.x,right:Iu.x,bottom:Iu.y,width:0,height:0})}:Ke,popperRef:Io,open:Ke?Pe:!1,id:Ve,transition:!0},ii,te,{popperOptions:vg,children:({TransitionProps:ae})=>R.jsx(I,P({timeout:Xe.transitions.duration.shorter},ae,ue,{children:R.jsxs(F,P({},ie,{children:[je,O?R.jsx(L,P({},J,{ref:ee})):null]}))}))}))]})}),Dr=rpe;function npe(e){return Fe("MuiSwitch",e)}const ope=Ne("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Mr=ope,ape=["className","color","edge","size","sx"],ipe=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&`edge${le(r)}`,`size${le(n)}`],switchBase:["switchBase",`color${le(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=De(s,npe,t);return P({},t,u)},spe=Y("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${le(r.edge)}`],t[`size${le(r.size)}`]]}})(({ownerState:e})=>P({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Mr.thumb}`]:{width:16,height:16},[`& .${Mr.switchBase}`]:{padding:4,[`&.${Mr.checked}`]:{transform:"translateX(16px)"}}})),lpe=Y(oM,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Mr.input}`]:t.input},r.color!=="default"&&t[`color${le(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Mr.checked}`]:{transform:"translateX(20px)"},[`&.${Mr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Mr.checked} + .${Mr.track}`]:{opacity:.5},[`&.${Mr.disabled} + .${Mr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Mr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Mr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Fd(e.palette[t.color].main,.62):Dm(e.palette[t.color].main,.55)}`}},[`&.${Mr.checked} + .${Mr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),upe=Y("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),cpe=Y("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),dpe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:u}=n,l=be(n,ape),c=P({},n,{color:a,edge:i,size:s}),f=ipe(c),p=R.jsx(cpe,{className:f.thumb,ownerState:c});return R.jsxs(spe,{className:ge(f.root,o),sx:u,ownerState:c,children:[R.jsx(lpe,P({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:c},l,{classes:P({},f,{root:f.switchBase})})),R.jsx(upe,{className:f.track,ownerState:c})]})}),RM=dpe;function fpe(e){return Fe("MuiTab",e)}const ppe=Ne("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),li=ppe,hpe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],vpe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:u}=e,l={root:["root",a&&i&&"labelIcon",`textColor${le(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return De(l,fpe,t)},mpe=Y(ro,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${le(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${li.iconWrapper}`]:P({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${li.selected}`]:{opacity:1},[`&.${li.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${li.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${li.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${li.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${li.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),gpe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:y,selectionFollowsFocus:w,textColor:x="inherit",value:m,wrapped:b=!1}=n,h=be(n,hpe),S=P({},n,{disabled:a,disableFocusRipple:i,selected:y,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=vpe(S),O=u&&f&&d.isValidElement(u)?d.cloneElement(u,{className:ge(C.iconWrapper,u.props.className)}):u,E=$=>{!y&&p&&p($,m),v&&v($)},T=$=>{w&&!y&&p&&p($,m),g&&g($)};return R.jsxs(mpe,P({focusRipple:!i,className:ge(C.root,o),ref:r,role:"tab","aria-selected":y,disabled:a,onClick:E,onFocus:T,ownerState:S,tabIndex:y?0:-1},h,{children:[l==="top"||l==="start"?R.jsxs(d.Fragment,{children:[O,f]}):R.jsxs(d.Fragment,{children:[f,O]}),c]}))}),ype=gpe,bpe=d.createContext(),kM=bpe;function xpe(e){return Fe("MuiTable",e)}Ne("MuiTable",["root","stickyHeader"]);const wpe=["className","component","padding","size","stickyHeader"],Spe=e=>{const{classes:t,stickyHeader:r}=e;return De({root:["root",r&&"stickyHeader"]},xpe,t)},Cpe=Y("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":P({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),L2="table",_pe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTable"}),{className:o,component:a=L2,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=be(n,wpe),c=P({},n,{component:a,padding:i,size:s,stickyHeader:u}),f=Spe(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return R.jsx(kM.Provider,{value:p,children:R.jsx(Cpe,P({as:a,role:a===L2?null:"table",ref:r,className:ge(f.root,o),ownerState:c},l))})}),jM=_pe,Ope=d.createContext(),Jm=Ope;function Epe(e){return Fe("MuiTableBody",e)}Ne("MuiTableBody",["root"]);const Ppe=["className","component"],Tpe=e=>{const{classes:t}=e;return De({root:["root"]},Epe,t)},$pe=Y("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Rpe={variant:"body"},D2="tbody",kpe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTableBody"}),{className:o,component:a=D2}=n,i=be(n,Ppe),s=P({},n,{component:a}),u=Tpe(s);return R.jsx(Jm.Provider,{value:Rpe,children:R.jsx($pe,P({className:ge(u.root,o),as:a,ref:r,role:a===D2?null:"rowgroup",ownerState:s},i))})}),IM=kpe;function jpe(e){return Fe("MuiTableCell",e)}const Ipe=Ne("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Ape=Ipe,Mpe=["align","className","component","padding","scope","size","sortDirection","variant"],Fpe=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${le(n)}`,o!=="normal"&&`padding${le(o)}`,`size${le(a)}`]};return De(s,jpe,t)},Npe=Y("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${le(r.size)}`],r.padding!=="normal"&&t[`padding${le(r.padding)}`],r.align!=="inherit"&&t[`align${le(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Fd(et(e.palette.divider,1),.88):Dm(et(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Ape.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Lpe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=be(n,Mpe),v=d.useContext(kM),g=d.useContext(Jm),y=g&&g.variant==="head";let w;i?w=i:w=y?"th":"td";let x=u;w==="td"?x=void 0:!x&&y&&(x="col");const m=f||g&&g.variant,b=P({},n,{align:o,component:w,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),h=Fpe(b);let S=null;return c&&(S=c==="asc"?"ascending":"descending"),R.jsx(Npe,P({as:w,ref:r,className:ge(h.root,a),"aria-sort":S,scope:x,ownerState:b},p))}),Rr=Lpe;function Dpe(e){return Fe("MuiTableHead",e)}Ne("MuiTableHead",["root"]);const Bpe=["className","component"],zpe=e=>{const{classes:t}=e;return De({root:["root"]},Dpe,t)},Vpe=Y("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Upe={variant:"head"},B2="thead",Wpe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTableHead"}),{className:o,component:a=B2}=n,i=be(n,Bpe),s=P({},n,{component:a}),u=zpe(s);return R.jsx(Jm.Provider,{value:Upe,children:R.jsx(Vpe,P({as:a,className:ge(u.root,o),ref:r,role:a===B2?null:"rowgroup",ownerState:s},i))})}),AM=Wpe;function Hpe(e){return Fe("MuiToolbar",e)}Ne("MuiToolbar",["root","gutters","regular","dense"]);const qpe=["className","component","disableGutters","variant"],Kpe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return De({root:["root",!r&&"gutters",n]},Hpe,t)},Gpe=Y("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Qpe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,u=be(n,qpe),l=P({},n,{component:a,disableGutters:i,variant:s}),c=Kpe(l);return R.jsx(Gpe,P({as:a,className:ge(c.root,o),ref:r,ownerState:l},u))}),uu=Qpe,MM=on(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),FM=on(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Xpe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Ype=d.forwardRef(function(t,r){var n,o,a,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:w,page:x,rowsPerPage:m,showFirstButton:b,showLastButton:h,slots:S={},slotProps:C={}}=t,O=be(t,Xpe),E=nn(),T=xe=>{w(xe,0)},$=xe=>{w(xe,x-1)},j=xe=>{w(xe,x+1)},M=xe=>{w(xe,Math.max(0,Math.ceil(p/m)-1))},k=(n=S.firstButton)!=null?n:or,N=(o=S.lastButton)!=null?o:or,D=(a=S.nextButton)!=null?a:or,A=(i=S.previousButton)!=null?i:or,H=(s=S.firstButtonIcon)!=null?s:P0,B=(u=S.lastButtonIcon)!=null?u:T0,U=(l=S.nextButtonIcon)!=null?l:FM,q=(c=S.previousButtonIcon)!=null?c:MM,re=E.direction==="rtl"?N:k,ne=E.direction==="rtl"?D:A,fe=E.direction==="rtl"?A:D,ve=E.direction==="rtl"?k:N,Se=E.direction==="rtl"?C.lastButton:C.firstButton,we=E.direction==="rtl"?C.nextButton:C.previousButton,Re=E.direction==="rtl"?C.previousButton:C.nextButton,pe=E.direction==="rtl"?C.firstButton:C.lastButton;return R.jsxs("div",P({ref:r},O,{children:[b&&R.jsx(re,P({onClick:T,disabled:v||x===0,"aria-label":g("first",x),title:g("first",x)},Se,{children:E.direction==="rtl"?R.jsx(B,P({},C.lastButtonIcon)):R.jsx(H,P({},C.firstButtonIcon))})),R.jsx(ne,P({onClick:$,disabled:v||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},we??f,{children:E.direction==="rtl"?R.jsx(U,P({},C.nextButtonIcon)):R.jsx(q,P({},C.previousButtonIcon))})),R.jsx(fe,P({onClick:j,disabled:v||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},Re??y,{children:E.direction==="rtl"?R.jsx(q,P({},C.previousButtonIcon)):R.jsx(U,P({},C.nextButtonIcon))})),h&&R.jsx(ve,P({onClick:M,disabled:v||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},pe,{children:E.direction==="rtl"?R.jsx(H,P({},C.firstButtonIcon)):R.jsx(B,P({},C.lastButtonIcon))}))]}))}),Jpe=Ype;function Zpe(e){return Fe("MuiTablePagination",e)}const ehe=Ne("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),mc=ehe;var z2;const the=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],rhe=Y(Rr,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),nhe=Y(uu,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${mc.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${mc.actions}`]:{flexShrink:0,marginLeft:20}})),ohe=Y("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),ahe=Y("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),ihe=Y($M,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${mc.selectIcon}`]:t.selectIcon,[`& .${mc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${mc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),she=Y(Xn,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),lhe=Y("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function uhe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function che(e){return`Go to ${e} page`}const dhe=e=>{const{classes:t}=e;return De({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Zpe,t)},fhe=d.forwardRef(function(t,r){var n;const o=Be({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=Jpe,backIconButtonProps:i,className:s,colSpan:u,component:l=Rr,count:c,disabled:f=!1,getItemAriaLabel:p=che,labelDisplayedRows:v=uhe,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:w,onRowsPerPageChange:x,page:m,rowsPerPage:b,rowsPerPageOptions:h=[10,25,50,100],SelectProps:S={},showFirstButton:C=!1,showLastButton:O=!1,slotProps:E={},slots:T={}}=o,$=be(o,the),j=o,M=dhe(j),k=(n=E==null?void 0:E.select)!=null?n:S,N=k.native?"option":she;let D;(l===Rr||l==="td")&&(D=u||1e3);const A=qi(k.id),H=qi(k.labelId),B=()=>c===-1?(m+1)*b:b===-1?c:Math.min(c,(m+1)*b);return R.jsx(rhe,P({colSpan:D,ref:r,as:l,ownerState:j,className:ge(M.root,s)},$,{children:R.jsxs(nhe,{className:M.toolbar,children:[R.jsx(ohe,{className:M.spacer}),h.length>1&&R.jsx(ahe,{className:M.selectLabel,id:H,children:g}),h.length>1&&R.jsx(ihe,P({variant:"standard"},!k.variant&&{input:z2||(z2=R.jsx(Gm,{}))},{value:b,onChange:x,id:A,labelId:H},k,{classes:P({},k.classes,{root:ge(M.input,M.selectRoot,(k.classes||{}).root),select:ge(M.select,(k.classes||{}).select),icon:ge(M.selectIcon,(k.classes||{}).icon)}),disabled:f,children:h.map(U=>d.createElement(N,P({},!td(N)&&{ownerState:j},{className:M.menuItem,key:U.label?U.label:U,value:U.value?U.value:U}),U.label?U.label:U))})),R.jsx(lhe,{className:M.displayedRows,children:v({from:c===0?0:m*b+1,to:B(),count:c===-1?-1:c,page:m})}),R.jsx(a,{className:M.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:w,page:m,rowsPerPage:b,showFirstButton:C,showLastButton:O,slotProps:E.actions,slots:T.actions,getItemAriaLabel:p,disabled:f})]})}))}),V2=fhe;function phe(e){return Fe("MuiTableRow",e)}const hhe=Ne("MuiTableRow",["root","selected","hover","head","footer"]),U2=hhe,vhe=["className","component","hover","selected"],mhe=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return De({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},phe,t)},ghe=Y("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${U2.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${U2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:et(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:et(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),W2="tr",yhe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTableRow"}),{className:o,component:a=W2,hover:i=!1,selected:s=!1}=n,u=be(n,vhe),l=d.useContext(Jm),c=P({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=mhe(c);return R.jsx(ghe,P({as:a,ref:r,className:ge(f.root,o),role:a===W2?null:"row",ownerState:c},u))}),ad=yhe,bhe=on(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function xhe(e){return Fe("MuiTableSortLabel",e)}const whe=Ne("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),by=whe,She=["active","children","className","direction","hideSortIcon","IconComponent"],Che=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${le(r)}`]};return De(o,xhe,t)},_he=Y(ro,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${by.icon}`]:{opacity:.5}},[`&.${by.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${by.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),Ohe=Y("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${le(r.direction)}`]]}})(({theme:e,ownerState:t})=>P({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),Ehe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=bhe}=n,c=be(n,She),f=P({},n,{active:o,direction:s,hideSortIcon:u,IconComponent:l}),p=Che(f);return R.jsxs(_he,P({className:ge(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[a,u&&!o?null:R.jsx(Ohe,{as:l,className:ge(p.icon),ownerState:f})]}))}),Phe=Ehe;function The(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function $he(e,t,r,n={},o=()=>{}){const{ease:a=The,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const c=()=>{l=!0},f=p=>{if(l){o(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=a(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return u===r?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Rhe=["onChange"],khe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function jhe(e){const{onChange:t}=e,r=be(e,Rhe),n=d.useRef(),o=d.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return yn(()=>{const i=lu(()=>{const u=n.current;a(),u!==n.current&&t(n.current)}),s=Mn(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{a(),t(n.current)},[t]),R.jsx("div",P({style:khe,ref:o},r))}function Ihe(e){return Fe("MuiTabScrollButton",e)}const Ahe=Ne("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Mhe=Ahe,Fhe=["className","slots","slotProps","direction","orientation","disabled"],Nhe=e=>{const{classes:t,orientation:r,disabled:n}=e;return De({root:["root",r,n&&"disabled"]},Ihe,t)},Lhe=Y(ro,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${Mhe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Dhe=d.forwardRef(function(t,r){var n,o;const a=Be({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=a,c=be(a,Fhe),p=nn().direction==="rtl",v=P({isRtl:p},a),g=Nhe(v),y=(n=s.StartScrollButtonIcon)!=null?n:MM,w=(o=s.EndScrollButtonIcon)!=null?o:FM,x=Fn({elementType:y,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),m=Fn({elementType:w,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return R.jsx(Lhe,P({component:"div",className:ge(g.root,i),ref:r,role:null,ownerState:v,tabIndex:null},c,{children:l==="left"?R.jsx(y,P({},x)):R.jsx(w,P({},m))}))}),Bhe=Dhe;function zhe(e){return Fe("MuiTabs",e)}const Vhe=Ne("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),xy=Vhe,Uhe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],H2=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,q2=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Tf=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},Whe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return De({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},zhe,u)},Hhe=Y("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${xy.scrollButtons}`]:t.scrollButtons},{[`& .${xy.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${xy.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),qhe=Y("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Khe=Y("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Ghe=Y("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Qhe=Y(jhe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),K2={},Xhe=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTabs"}),o=nn(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:y,orientation:w="horizontal",ScrollButtonComponent:x=Bhe,scrollButtons:m="auto",selectionFollowsFocus:b,slots:h={},slotProps:S={},TabIndicatorProps:C={},TabScrollButtonProps:O={},textColor:E="primary",value:T,variant:$="standard",visibleScrollbar:j=!1}=n,M=be(n,Uhe),k=$==="scrollable",N=w==="vertical",D=N?"scrollTop":"scrollLeft",A=N?"top":"left",H=N?"bottom":"right",B=N?"clientHeight":"clientWidth",U=N?"height":"width",q=P({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:w,vertical:N,scrollButtons:m,textColor:E,variant:$,visibleScrollbar:j,fixed:!k,hideScrollbar:k&&!j,scrollableX:k&&!N,scrollableY:k&&N,centered:l&&!k,scrollButtonsHideMobile:!v}),re=Whe(q),ne=Fn({elementType:h.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:q}),fe=Fn({elementType:h.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:q}),[ve,Se]=d.useState(!1),[we,Re]=d.useState(K2),[pe,xe]=d.useState(!1),[Te,je]=d.useState(!1),[Oe,Ce]=d.useState(!1),[Ie,ke]=d.useState({overflow:"hidden",scrollbarWidth:0}),Xe=new Map,Je=d.useRef(null),Ke=d.useRef(null),W=()=>{const me=Je.current;let $e;if(me){const Ge=me.getBoundingClientRect();$e={clientWidth:me.clientWidth,scrollLeft:me.scrollLeft,scrollTop:me.scrollTop,scrollLeftNormalized:ate(me,o.direction),scrollWidth:me.scrollWidth,top:Ge.top,bottom:Ge.bottom,left:Ge.left,right:Ge.right}}let ze;if(me&&T!==!1){const Ge=Ke.current.children;if(Ge.length>0){const st=Ge[Xe.get(T)];ze=st?st.getBoundingClientRect():null}}return{tabsMeta:$e,tabMeta:ze}},Q=Qr(()=>{const{tabsMeta:me,tabMeta:$e}=W();let ze=0,Ge;if(N)Ge="top",$e&&me&&(ze=$e.top-me.top+me.scrollTop);else if(Ge=a?"right":"left",$e&&me){const wt=a?me.scrollLeftNormalized+me.clientWidth-me.scrollWidth:me.scrollLeft;ze=(a?-1:1)*($e[Ge]-me[Ge]+wt)}const st={[Ge]:ze,[U]:$e?$e[U]:0};if(isNaN(we[Ge])||isNaN(we[U]))Re(st);else{const wt=Math.abs(we[Ge]-st[Ge]),Rt=Math.abs(we[U]-st[U]);(wt>=1||Rt>=1)&&Re(st)}}),ee=(me,{animation:$e=!0}={})=>{$e?$he(D,Je.current,me,{duration:o.transitions.duration.standard}):Je.current[D]=me},ye=me=>{let $e=Je.current[D];N?$e+=me:($e+=me*(a?-1:1),$e*=a&&kA()==="reverse"?-1:1),ee($e)},ce=()=>{const me=Je.current[B];let $e=0;const ze=Array.from(Ke.current.children);for(let Ge=0;Geme){Ge===0&&($e=me);break}$e+=st[B]}return $e},se=()=>{ye(-1*ce())},X=()=>{ye(ce())},K=d.useCallback(me=>{ke({overflow:null,scrollbarWidth:me})},[]),G=()=>{const me={};me.scrollbarSizeListener=k?R.jsx(Qhe,{onChange:K,className:ge(re.scrollableX,re.hideScrollbar)}):null;const ze=k&&(m==="auto"&&(pe||Te)||m===!0);return me.scrollButtonStart=ze?R.jsx(x,P({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ne},orientation:w,direction:a?"right":"left",onClick:se,disabled:!pe},O,{className:ge(re.scrollButtons,O.className)})):null,me.scrollButtonEnd=ze?R.jsx(x,P({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:fe},orientation:w,direction:a?"left":"right",onClick:X,disabled:!Te},O,{className:ge(re.scrollButtons,O.className)})):null,me},Z=Qr(me=>{const{tabsMeta:$e,tabMeta:ze}=W();if(!(!ze||!$e)){if(ze[A]<$e[A]){const Ge=$e[D]+(ze[A]-$e[A]);ee(Ge,{animation:me})}else if(ze[H]>$e[H]){const Ge=$e[D]+(ze[H]-$e[H]);ee(Ge,{animation:me})}}}),oe=Qr(()=>{k&&m!==!1&&Ce(!Oe)});d.useEffect(()=>{const me=lu(()=>{Je.current&&Q()});let $e;const ze=wt=>{wt.forEach(Rt=>{Rt.removedNodes.forEach(St=>{var Ye;(Ye=$e)==null||Ye.unobserve(St)}),Rt.addedNodes.forEach(St=>{var Ye;(Ye=$e)==null||Ye.observe(St)})}),me(),oe()},Ge=Mn(Je.current);Ge.addEventListener("resize",me);let st;return typeof ResizeObserver<"u"&&($e=new ResizeObserver(me),Array.from(Ke.current.children).forEach(wt=>{$e.observe(wt)})),typeof MutationObserver<"u"&&(st=new MutationObserver(ze),st.observe(Ke.current,{childList:!0})),()=>{var wt,Rt;me.clear(),Ge.removeEventListener("resize",me),(wt=st)==null||wt.disconnect(),(Rt=$e)==null||Rt.disconnect()}},[Q,oe]),d.useEffect(()=>{const me=Array.from(Ke.current.children),$e=me.length;if(typeof IntersectionObserver<"u"&&$e>0&&k&&m!==!1){const ze=me[0],Ge=me[$e-1],st={root:Je.current,threshold:.99},wt=Mt=>{xe(!Mt[0].isIntersecting)},Rt=new IntersectionObserver(wt,st);Rt.observe(ze);const St=Mt=>{je(!Mt[0].isIntersecting)},Ye=new IntersectionObserver(St,st);return Ye.observe(Ge),()=>{Rt.disconnect(),Ye.disconnect()}}},[k,m,Oe,c==null?void 0:c.length]),d.useEffect(()=>{Se(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Z(K2!==we)},[Z,we]),d.useImperativeHandle(u,()=>({updateIndicator:Q,updateScrollButtons:oe}),[Q,oe]);const Pe=R.jsx(Ghe,P({},C,{className:ge(re.indicator,C.className),ownerState:q,style:P({},we,C.style)}));let Ve=0;const Ue=d.Children.map(c,me=>{if(!d.isValidElement(me))return null;const $e=me.props.value===void 0?Ve:me.props.value;Xe.set($e,Ve);const ze=$e===T;return Ve+=1,d.cloneElement(me,P({fullWidth:$==="fullWidth",indicator:ze&&!ve&&Pe,selected:ze,selectionFollowsFocus:b,onChange:y,textColor:E,value:$e},Ve===1&&T===!1&&!me.props.tabIndex?{tabIndex:0}:{}))}),Ee=me=>{const $e=Ke.current,ze=ar($e).activeElement;if(ze.getAttribute("role")!=="tab")return;let st=w==="horizontal"?"ArrowLeft":"ArrowUp",wt=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&a&&(st="ArrowRight",wt="ArrowLeft"),me.key){case st:me.preventDefault(),Tf($e,ze,q2);break;case wt:me.preventDefault(),Tf($e,ze,H2);break;case"Home":me.preventDefault(),Tf($e,null,H2);break;case"End":me.preventDefault(),Tf($e,null,q2);break}},We=G();return R.jsxs(Hhe,P({className:ge(re.root,f),ownerState:q,ref:r,as:p},M,{children:[We.scrollButtonStart,We.scrollbarSizeListener,R.jsxs(qhe,{className:re.scroller,ownerState:q,style:{overflow:Ie.overflow,[N?`margin${a?"Left":"Right"}`:"marginBottom"]:j?void 0:-Ie.scrollbarWidth},ref:Je,children:[R.jsx(Khe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,className:re.flexContainer,ownerState:q,onKeyDown:Ee,ref:Ke,role:"tablist",children:Ue}),ve&&Pe]}),We.scrollButtonEnd]}))}),Yhe=Xhe;function Jhe(e){return Fe("MuiTextField",e)}Ne("MuiTextField",["root"]);const Zhe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],eve={standard:mM,filled:fM,outlined:EM},tve=e=>{const{classes:t}=e;return De({root:["root"]},Jhe,t)},rve=Y(Rue,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nve=d.forwardRef(function(t,r){const n=Be({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:w,inputProps:x,InputProps:m,inputRef:b,label:h,maxRows:S,minRows:C,multiline:O=!1,name:E,onBlur:T,onChange:$,onFocus:j,placeholder:M,required:k=!1,rows:N,select:D=!1,SelectProps:A,type:H,value:B,variant:U="outlined"}=n,q=be(n,Zhe),re=P({},n,{autoFocus:a,color:u,disabled:c,error:f,fullWidth:v,multiline:O,required:k,select:D,variant:U}),ne=tve(re),fe={};U==="outlined"&&(w&&typeof w.shrink<"u"&&(fe.notched=w.shrink),fe.label=h),D&&((!A||!A.native)&&(fe.id=void 0),fe["aria-describedby"]=void 0);const ve=qi(y),Se=g&&ve?`${ve}-helper-text`:void 0,we=h&&ve?`${ve}-label`:void 0,Re=eve[U],pe=R.jsx(Re,P({"aria-describedby":Se,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:v,multiline:O,name:E,rows:N,maxRows:S,minRows:C,type:H,value:B,id:ve,inputRef:b,onBlur:T,onChange:$,onFocus:j,placeholder:M,inputProps:x},fe,m));return R.jsxs(rve,P({className:ge(ne.root,s),disabled:c,error:f,fullWidth:v,ref:r,required:k,color:u,variant:U,ownerState:re},q,{children:[h!=null&&h!==""&&R.jsx(Ece,P({htmlFor:ve,id:we},w,{children:h})),D?R.jsx($M,P({"aria-describedby":Se,id:ve,labelId:we,value:B,input:pe},A,{children:i})):pe,g&&R.jsx(OS,P({id:Se},p,{children:g}))]}))}),Bd=nve,ove=["getTrigger","target"];function ave(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const ive=typeof window<"u"?window:null;function NM(e={}){const{getTrigger:t=ave,target:r=ive}=e,n=be(e,ove),o=d.useRef(),[a,i]=d.useState(()=>t(o,n));return d.useEffect(()=>{const s=()=>{i(t(o,P({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var TS={},LM={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(LM);var tt=LM.exports,wy={};const sve=B4(Sne);var G2;function rt(){return G2||(G2=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sve}(wy)),wy}var lve=tt;Object.defineProperty(TS,"__esModule",{value:!0});var $S=TS.default=void 0,uve=lve(rt()),cve=R;$S=TS.default=(0,uve.default)((0,cve.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var gc=globalThis&&globalThis.__assign||function(){return gc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(hye,null):null,t&&d.createElement(dme,null),d.createElement(GM,null))},hme=d.createElement(pme,null);zS.propTypes={alwaysOn:_.bool,children:_.node,className:_.string,color:_.oneOf(["default","inherit","primary","secondary","transparent"]),container:tm,open:_.bool,toolbar:_.element,userMenu:_.oneOfType([_.element,_.bool])};var vme=d.createElement(Zm,null),vi="RaAppBar",Ei={appBar:"".concat(vi,"-appBar"),toolbar:"".concat(vi,"-toolbar"),menuButton:"".concat(vi,"-menuButton"),menuButtonIconClosed:"".concat(vi,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(vi,"-menuButtonIconOpen"),title:"".concat(vi,"-title")},mme=Y(yoe,{name:vi,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Ei.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Ei.menuButton)]={marginRight:"0.2em"},t["& .".concat(Ei.title)]={},t}),VS={},gme=tt;Object.defineProperty(VS,"__esModule",{value:!0});var tg=VS.default=void 0,yme=gme(rt()),bme=R;tg=VS.default=(0,yme.default)((0,bme.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var US={},xme=tt;Object.defineProperty(US,"__esModule",{value:!0});var r3=US.default=void 0,wme=xme(rt()),Sme=R;r3=US.default=(0,wme.default)((0,Sme.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var bc=globalThis&&globalThis.__assign||function(){return bc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),vd.createPortal(d.createElement(oge,z0({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},rg=_.oneOfType([_.string,_.element]);ai.propTypes={defaultTitle:_.string,className:_.string,record:_.any,title:rg};var ige=function(e){var t=Ir().pathname,r=d.useRef(t);d.useEffect(function(){t!==r.current&&e()},[t,e])},V0=globalThis&&globalThis.__assign||function(){return V0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0,$=kye(w===!1||w===void 0?void 0:!w,l||!T||O||E);zw(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var j=d.useCallback(function(N){return Z2(void 0,void 0,void 0,function(){var D;return eT(this,function(A){switch(A.label){case 0:return h!=null&&h.save?[4,h.save(N,Sc(Sc({},u),{transform:p}))]:[3,2];case 1:D=A.sent(),A.label=2;case 2:return D!=null&&tA(D,b.setError),[2]}})})},[b.setError,h,u,p]),M=d.useCallback(function(N){return Z2(void 0,void 0,void 0,function(){return eT(this,function(D){switch(D.label){case 0:return s&&s(N),N.defaultPrevented?[2]:f!=="button"?[3,2]:(N.stopPropagation(),[4,b.handleSubmit(j)(N)]);case 1:D.sent(),D.label=2;case 2:return[2]}})})},[s,f,b,j]),k=i&&m(i,{_:i});return d.createElement(Rye,Sc({variant:g,type:f,color:r,"aria-label":k,disabled:$,onClick:M},x),E?d.createElement(Dd,{sx:Pye,size:14,thickness:3,color:"inherit"}):o,k)},Pye={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},Tye=d.createElement(k3,null);j3.propTypes={className:_.string,invalid:_.bool,label:_.string,variant:_.oneOf(["text","outlined","contained"]),icon:_.element,alwaysEnable:_.bool};var $ye="RaSaveButton",Rye=Y(rn,{name:$ye,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),kye=function(e,t){return typeof e>"u"?t:e},jye=function(){return he.createElement(Aye,{onClick:Mye,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Iye="RaSkipNavigationButton",Aye=Y(_r,{name:Iye,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),Mye=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},n1=globalThis&&globalThis.__assign||function(){return n1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=Pbe&&(a=Ebe,i=!1,t=new wbe(t));e:for(;++o0&&h.length>0&&h.every(function(S){return g.includes(S)}),onChange:b,onClick:function(S){return S.stopPropagation()}})),d.Children.map(t,function(S,C){return d.isValidElement(S)?d.createElement(vbe,{className:Qe(qe.headerCell,"column-".concat(S.props.source)),sort:f,field:S,isSorting:f.field===(S.props.sortBy||S.props.source),key:S.props.source||C,resource:u,updateSort:m}):null})))};gC.propTypes={children:_.node,className:_.string,sort:_.exact({field:_.string,order:_.oneOf(["ASC","DESC"])}),data:_.arrayOf(_.any),hasExpand:_.bool,hasBulkActions:_.bool,isRowSelectable:_.func,isRowExpandable:_.func,onSelect:_.func,onToggleItem:_.func,resource:_.string,selectedIds:_.arrayOf(_.any),setSort:_.func};gC.displayName="DatagridHeader";var Lbe=function(e){var t=e.children,r=e.value;return he.createElement(N3.Provider,{value:r},t)};const Dbe=Lbe;var yC={},Bbe=tt;Object.defineProperty(yC,"__esModule",{value:!0});var W3=yC.default=void 0,zbe=Bbe(rt()),Vbe=R;W3=yC.default=(0,zbe.default)((0,Vbe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var f1=globalThis&&globalThis.__assign||function(){return f1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1] element instead.")})},[r]);var c=function(){var p=a.getValues();return r.filter(function(v){var g=mt(p,v.props.source);return v.props.alwaysOn||u[v.props.source]||g!==""&&typeof g<"u"})},f=d.useCallback(function(p){return l(p.currentTarget.dataset.key)},[l]);return d.createElement(HI,{prefix:"resources.".concat(o,".fields")},d.createElement(_xe,Ba({className:t},wxe(n),{onSubmit:xxe}),c().map(function(p){return d.createElement(X3,{key:p.props.source,filterElement:p,handleHide:f,resource:o,className:ev.filterFormInput})}),d.createElement("div",{className:ev.clearFix})))},xxe=function(e){return e.preventDefault(),!1};J3.propTypes={resource:_.string,filters:_.arrayOf(_.node).isRequired,displayedFilters:_.object,hideFilter:_.func,initialValues:_.object,className:_.string};var wxe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=bC(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},Sxe=function(e,t){return Ba(Ba({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return Dv(Ba({},r),n.props.source,n.props.defaultValue)},{})),e)},Cxe=function(e){return e.preventDefault(),e.stopPropagation(),!1},h1="RaFilterForm",ev={clearFix:"".concat(h1,"-clearFix"),filterFormInput:"".concat(h1,"-filterFormInput")},_xe=Y("form",{name:h1,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(ev.clearFix)]={clear:"right"},t["& .".concat(ev.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Oxe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=Z3(e,o,t),n},(r=Q3(t))!==null&&r!==void 0?r:{})},Z3=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return mt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=Z3(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return mt(r,t,"")},xC={},Exe=tt;Object.defineProperty(xC,"__esModule",{value:!0});var eF=xC.default=void 0,Pxe=Exe(rt()),Txe=R;eF=xC.default=(0,Pxe.default)((0,Txe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var tF=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=yt(e),i=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return d.createElement(Xn,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},d.createElement(Eo,{label:r.props.label,source:r.props.source,resource:a}))});tF.propTypes={filter:_.element.isRequired,onShow:_.func.isRequired,resource:_.string,autoFocus:_.bool};var wC=function(e){return lo("".concat(e,".savedQueries"),[])},SC=function(e){return Array.isArray(e)?e.filter(function(t){return $xe(t)}):[]},$xe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},Rxe=function(e){var t=e.open,r=e.onClose,n=He(),o=Sn(),a=o.resource,i=o.filterValues,s=o.displayedFilters,u=o.sort,l=o.perPage,c=wC(a),f=c[0],p=c[1],v=d.useState(""),g=v[0],y=v[1],w=function(b){y(b.target.value)},x=function(b){b.preventDefault(),m()},m=function(){var b={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},h=SC(f);p(h.concat(b)),y(""),r()};return d.createElement(wS,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(_S,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(CS,null,d.createElement("form",{onSubmit:x},d.createElement(Bd,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:w}))),d.createElement(SS,null,d.createElement(rn,{onClick:r},n("ra.action.cancel")),d.createElement(rn,{onClick:m,color:"primary"},n("ra.action.save"))))},pT=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n component requires the prop to be set");var T=a.filter(function(fe){return!fe.props.alwaysOn&&!p[fe.props.source]&&typeof mt(v,fe.props.source)>"u"}),$=d.useCallback(function(fe){fe.preventDefault(),O(!0),E.current=fe.currentTarget},[E,O]),j=d.useCallback(function(){O(!1)},[O]),M=d.useCallback(function(fe){var ve=fe.source,Se=fe.defaultValue;w(ve,Se===""?void 0:Se),setTimeout(function(){var we=document.querySelector("input[name='".concat(ve,"']"));we&&we.focus()},50),O(!1)},[w,O]),k=d.useState(!1),N=k[0],D=k[1],A=function(){D(!1)},H=function(){O(!1),D(!0)},B=d.useState(!1),U=B[0],q=B[1],re=function(){q(!1)},ne=function(){O(!1),q(!0)};return T.length===0&&b.length===0&&!m?null:d.createElement(Axe,v1({className:r},jxe(o)),d.createElement(_r,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:$},d.createElement(eF,null)),d.createElement(Ym,{open:C,anchorEl:E.current,onClose:j},T.map(function(fe,ve){return d.createElement(tF,{key:fe.props.source,filter:fe,resource:i,onShow:M,autoFocus:ve===0})}),b.map(function(fe,ve){return Zn(fe.value,{filter:v,sort:x,perPage:g,displayedFilters:p})?d.createElement(Xn,{onClick:ne,key:ve},s("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:fe.label})):d.createElement(Xn,{onClick:function(){l({search:Go.stringify({filter:JSON.stringify(fe.value.filter),sort:fe.value.sort.field,order:fe.value.sort.order,page:1,perPage:fe.value.perPage,displayedFilters:JSON.stringify(fe.value.displayedFilters)})}),O(!1)},key:ve},fe.label)}),m&&!h&&!n&&d.createElement(Xn,{onClick:H},s("ra.saved_queries.new_label",{_:"Save current query..."})),m&&d.createElement(Xn,{onClick:function(){y({},{},!1),O(!1)}},s("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&d.createElement(d.Fragment,null,d.createElement(Rxe,{open:N,onClose:A}),d.createElement(kxe,{open:U,onClose:re})))},jxe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=rF(e,["displayedFilters","filterValues","showFilter"]);return t};CC.propTypes={resource:_.string,filters:_.arrayOf(_.node),displayedFilters:_.object,filterValues:_.object,showFilter:_.func,className:_.string};var Ixe="RaFilterButton",Axe=Y("div",{name:Ixe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),nF=function(e){var t=e.children,r=function(){return d.createElement(CC,{className:vT.button})},n=function(){return d.createElement(Y3,{className:vT.form})};return d.createElement(Hd.Provider,{value:d.Children.toArray(t)},e.context==="button"?r():n())};nF.propTypes={children:_.node,classes:_.object,context:_.oneOf(["form","button"])};var hT="RaFilter",vT={button:"".concat(hT,"-button"),form:"".concat(hT,"-form")},m1=globalThis&&globalThis.__assign||function(){return m1=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:E+1}));v(E+1)},[x,v,y]),b=d.useCallback(function(O){g(O.target.value)},[g]),h=d.useCallback(function(O){var E=O.from,T=O.to,$=O.count;return $===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:E,offsetEnd:T,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:E,offsetEnd:T,total:$===-1?T:$,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),S=d.useCallback(function(O){return y("ra.navigation.".concat(O),{_:"Go to ".concat(O," page")})},[y]);if(u)return d.createElement(uu,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return a!=null,null;if(w)return d.createElement(V2,tv({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:Dxe,component:"span",labelDisplayedRows:h},Qc(i)));var C=n||(!u&&p!=null?aF:void 0);return d.createElement(V2,tv({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:b,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:S,rowsPerPageOptions:r},Qc(i)))});_C.propTypes={actions:tm,limit:_.element,rowsPerPageOptions:_.arrayOf(_.number)};var Lxe=[5,10,25,50],Dxe=[],rv=globalThis&&globalThis.__assign||function(){return rv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof pe.target.value>"u")){var xe=pe.target;q(xe.value);var Te=xe.valueAsNumber!==void 0&&xe.valueAsNumber!==null&&!isNaN(xe.valueAsNumber)?p?p(xe.valueAsNumber):xe.valueAsNumber:p?p(xe.value):ewe(xe.value);E.onChange(Te)}},fe=function(pe){f&&f(pe),re.current=!0},ve=function(){A&&A(),re.current=!1;var pe=a(E.value);q(function(xe){return xe!==pe?pe:xe})},Se=i!==!1||(M||k)&&j,we=E.ref,Re=bT(E,["ref"]);return d.createElement(Bd,Gs({id:N},Re,{inputRef:we,value:U,onChange:ne,onFocus:fe,onBlur:ve,className:Qe("ra-input","ra-input-".concat(g),t),type:"number",size:"small",variant:h,error:(M||k)&&j,helperText:Se?d.createElement(Yi,{touched:M||k,error:$==null?void 0:$.message,helperText:i}):null,label:d.createElement(Eo,{label:s,source:g,resource:v,isRequired:D}),margin:u,inputProps:H},Wd(C)))};EC.propTypes={label:_.oneOfType([_.string,_.bool,_.element]),resource:_.string,source:_.string,step:_.oneOfType([_.string,_.number])};EC.defaultProps={step:"any",textAlign:"right"};var ewe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},twe=function(e){return e==null||isNaN(e)?"":e.toString()},av=globalThis&&globalThis.__assign||function(){return av=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(lwe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Xi,{className:cl.content},d.createElement(dn,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:qs(),fullWidth:!0}),d.createElement(dn,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:qs(),fullWidth:!0}),d.createElement(rn,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:cl.button},o?d.createElement(Dd,{className:cl.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},gp="RaLoginForm",cl={content:"".concat(gp,"-content"),button:"".concat(gp,"-button"),icon:"".concat(gp,"-icon")},lwe=Y(rA,{name:gp,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(cl.content)]={width:300},t["& .".concat(cl.button)]={marginTop:r.spacing(2)},t["& .".concat(cl.icon)]={margin:r.spacing(.3)},t});cF.propTypes={redirectTo:_.string};var g1=globalThis&&globalThis.__assign||function(){return g1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?d.createElement(mF,null):r;return o?d.createElement(gwe,w1({className:Qe("edit-page",a)},mwe(l)),d.createElement(ai,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),y,d.createElement("div",{className:Qe(pl.main,(t={},t[pl.noActions]=!y,t))},d.createElement(s,{className:pl.card},g?o:d.createElement(Xi,null," ")),n)):null};yF.propTypes={actions:_.oneOfType([_.element,_.bool]),aside:_.element,className:_.string,component:tm,defaultTitle:_.any,hasList:_.bool,hasShow:_.bool,mutationMode:_.oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:_.object,record:_.object,redirect:_.oneOfType([_.string,_.bool,_.func]),resource:_.string,save:_.func,title:_.node};var mwe=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isFetching,e.isLoading,e.location,e.match,e.options,e.queryOptions,e.mutationOptions,e.permissions,e.refetch,e.removeMiddleware,e.resource,e.save,e.saving,e.transform;var t=gF(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"]);return t},xp="RaEdit",pl={main:"".concat(xp,"-main"),noActions:"".concat(xp,"-noActions"),card:"".concat(xp,"-card")},gwe=Y("div",{name:xp,overridesResolver:function(e,t){return t.root}})((Au={},Au["& .".concat(pl.main)]={display:"flex",alignItems:"flex-start"},Au["& .".concat(pl.noActions)]={marginTop:"1em"},Au["& .".concat(pl.card)]={flex:"1 1 auto"},Au)),S1=globalThis&&globalThis.__assign||function(){return S1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&w?Owe:r;return!o||!y&&l?null:d.createElement(Pwe,_1({className:Qe("show-page",a)},Ewe(f)),d.createElement(ai,{title:c,defaultTitle:g,preferenceKey:"".concat(v,".show.title")}),x!==!1&&x,d.createElement("div",{className:Qe(vl.main,(t={},t[vl.noActions]=!x,t))},d.createElement(s,{className:vl.card},o),n))};OF.propTypes={actions:_.oneOfType([_.element,_.bool]),children:_.node,className:_.string,emptyWhileLoading:_.bool,title:_.any};var Ewe=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;var t=_F(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},Sp="RaShow",vl={main:"".concat(Sp,"-main"),noActions:"".concat(Sp,"-noActions"),card:"".concat(Sp,"-card")},Pwe=Y("div",{name:Sp,overridesResolver:function(e,t){return t.root}})((Mu={},Mu["& .".concat(vl.main)]={display:"flex"},Mu["& .".concat(vl.noActions)]={marginTop:"1em"},Mu["& .".concat(vl.card)]={flex:"1 1 auto"},Mu)),O1=globalThis&&globalThis.__assign||function(){return O1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var g=Lt(e);if(!g)return null;var y=mt(g,l);if(y==null||y==="")return r?d.createElement(it,Ii({component:"span",variant:"body2",className:t},Ji(p)),r&&v(r,{_:r})):null;var w=f(y),x="";if(i&&u)x=Oy?w.toLocaleString(n,o):w.toLocaleString();else if(u){var m=o??(typeof y=="string"&&y.length<=10?{timeZone:"UTC"}:void 0);x=Oy?w.toLocaleDateString(n,m):w.toLocaleDateString()}else i&&(x=Oy?w.toLocaleTimeString(n,o):w.toLocaleTimeString());return d.createElement(it,Ii({component:"span",variant:"body2",className:t},Ji(p)),x)};RC.propTypes=Ii(Ii(Ii({},it.propTypes),Dl),{locales:_.oneOfType([_.string,_.arrayOf(_.string)]),options:_.object,showTime:_.bool,showDate:_.bool});RC.displayName="DateFieldImpl";var xo=lg(RC),Fwe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},Oy=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Ai=globalThis&&globalThis.__assign||function(){return Ai=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};kF.propTypes={children:_.node};var Cc=globalThis&&globalThis.__assign||function(){return Cc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=3&&(o=n),$Se.call(t)==="[object Array]"?RSe(t,r,o):typeof t=="string"?kSe(t,r,o):jSe(t,r,o)},ASe=ISe,MSe="Function.prototype.bind called on incompatible ",Ey=Array.prototype.slice,FSe=Object.prototype.toString,NSe="[object Function]",LSe=function(t){var r=this;if(typeof r!="function"||FSe.call(r)!==NSe)throw new TypeError(MSe+r);for(var n=Ey.call(arguments,1),o,a=function(){if(this instanceof o){var c=r.apply(this,n.concat(Ey.call(arguments)));return Object(c)===c?c:this}else return r.apply(t,n.concat(Ey.call(arguments)))},i=Math.max(0,r.length-n.length),s=[],u=0;u"u"?lt:pa(Uint8Array),Oc={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":xs?pa([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":N1("async function () {}"),"%AsyncGenerator%":D1,"%AsyncGeneratorFunction%":L1,"%AsyncIteratorPrototype%":CT?pa(CT):lt,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":WSe,"%GeneratorFunction%":N1("function* () {}"),"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xs?pa(pa([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xs?lt:pa(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xs?lt:pa(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xs?pa(""[Symbol.iterator]()):lt,"%Symbol%":xs?Symbol:lt,"%SyntaxError%":HF,"%ThrowTypeError%":HSe,"%TypedArray%":qSe,"%TypeError%":gl,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet},_T={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},MC=dg,uv=AC,KSe=MC.call(Function.call,Array.prototype.concat),GSe=MC.call(Function.apply,Array.prototype.splice),OT=MC.call(Function.call,String.prototype.replace),QSe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,XSe=/\\(\\)?/g,YSe=function(t){var r=[];return OT(t,QSe,function(n,o,a,i){r[r.length]=a?OT(i,XSe,"$1"):o||n}),r},JSe=function(t,r){var n=t,o;if(uv(_T,n)&&(o=_T[n],n="%"+o[0]+"%"),uv(Oc,n)){var a=Oc[n];if(typeof a>"u"&&!r)throw new gl("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new HF("intrinsic "+t+" does not exist!")},qF=function(t,r){if(typeof t!="string"||t.length===0)throw new gl("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new gl('"allowMissing" argument must be a boolean');var n=YSe(t),o=n.length>0?n[0]:"",a=JSe("%"+o+"%",r),i=a.name,s=a.value,u=!1,l=a.alias;l&&(o=l[0],GSe(n,KSe([0,1],l)));for(var c=1,f=!0;c=n.length){var v=Mi(s,p);if(f=!!v,!r&&!(p in s))throw new gl("base intrinsic for "+t+" exists, but the property is not available.");f&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[p]}else f=uv(s,p),s=s[p];f&&!u&&(Oc[i]=s)}}return s};(function(e){var t=dg,r=qF,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(o,n),i=r("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=null}e.exports=function(){return a(t,o,arguments)};var s=function(){return a(t,n,arguments)};i?i(e.exports,"apply",{value:s}):e.exports.apply=s})(WF);var KF=WF.exports,ET=Object.prototype.toString,GF=function(t){var r=ET.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&ET.call(t.callee)==="[object Function]"),n},Ty,PT;function ZSe(){if(PT)return Ty;PT=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=GF,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",w=n(v),x=g&&r.call(v)==="[object String]",m=[];if(!g&&!y&&!w)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(x&&v.length>0&&!t.call(v,0))for(var h=0;h0)for(var S=0;S2?arguments[2]:{},n=nCe(t);oCe&&(n=iCe.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o"u"?ut:ha(Uint8Array),Ec={"%AggregateError%":typeof AggregateError>"u"?ut:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ut:ArrayBuffer,"%ArrayIteratorPrototype%":ws?ha([][Symbol.iterator]()):ut,"%AsyncFromSyncIteratorPrototype%":ut,"%AsyncFunction%":B1("async function () {}"),"%AsyncGenerator%":V1,"%AsyncGeneratorFunction%":z1,"%AsyncIteratorPrototype%":kT?ha(kT):ut,"%Atomics%":typeof Atomics>"u"?ut:Atomics,"%BigInt%":typeof BigInt>"u"?ut:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ut:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ut:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ut:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ut:FinalizationRegistry,"%Function%":pCe,"%GeneratorFunction%":B1("function* () {}"),"%Int8Array%":typeof Int8Array>"u"?ut:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ut:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ut:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ws?ha(ha([][Symbol.iterator]())):ut,"%JSON%":typeof JSON=="object"?JSON:ut,"%Map%":typeof Map>"u"?ut:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ws?ut:ha(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ut:Promise,"%Proxy%":typeof Proxy>"u"?ut:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ut:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ut:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ws?ut:ha(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ut:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ws?ha(""[Symbol.iterator]()):ut,"%Symbol%":ws?Symbol:ut,"%SyntaxError%":JF,"%ThrowTypeError%":hCe,"%TypedArray%":vCe,"%TypeError%":yl,"%Uint8Array%":typeof Uint8Array>"u"?ut:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ut:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ut:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ut:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ut:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ut:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ut:WeakSet},jT={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},NC=dg,cv=AC,mCe=NC.call(Function.call,Array.prototype.concat),gCe=NC.call(Function.apply,Array.prototype.splice),IT=NC.call(Function.call,String.prototype.replace),yCe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bCe=/\\(\\)?/g,xCe=function(t){var r=[];return IT(t,yCe,function(n,o,a,i){r[r.length]=a?IT(i,bCe,"$1"):o||n}),r},wCe=function(t,r){var n=t,o;if(cv(jT,n)&&(o=jT[n],n="%"+o[0]+"%"),cv(Ec,n)){var a=Ec[n];if(typeof a>"u"&&!r)throw new yl("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new JF("intrinsic "+t+" does not exist!")},ZF=function(t,r){if(typeof t!="string"||t.length===0)throw new yl("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new yl('"allowMissing" argument must be a boolean');var n=xCe(t),o=n.length>0?n[0]:"",a=wCe("%"+o+"%",r),i=a.name,s=a.value,u=!1,l=a.alias;l&&(o=l[0],gCe(n,mCe([0,1],l)));for(var c=1,f=!0;c=n.length){var v=Fi(s,p);if(f=!!v,!r&&!(p in s))throw new yl("base intrinsic for "+t+" exists, but the property is not available.");f&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[p]}else f=cv(s,p),s=s[p];f&&!u&&(Ec[i]=s)}}return s},SCe=ZF,CCe=SCe("%TypeError%"),_Ce=function(t,r){if(t==null)throw new CCe(r||"Cannot call method on "+t);return t},OCe=_Ce,e4=ZF,ECe=e4("%String%"),PCe=e4("%TypeError%"),TCe=function(t){if(typeof t=="symbol")throw new PCe("Cannot convert a Symbol value to a string");return ECe(t)},t4=qF,r4=KF,$Ce=r4(t4("String.prototype.indexOf")),RCe=function(t,r){var n=t4(t,!!r);return typeof n=="function"&&$Ce(t,".prototype.")>-1?r4(n):n},kCe=OCe,jCe=TCe,ICe=RCe,AT=ICe("String.prototype.replace"),ACe=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,MCe=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,n4=function(){var t=jCe(kCe(this));return AT(AT(t,ACe,""),MCe,"")},FCe=n4,MT="​",o4=function(){return String.prototype.trim&&MT.trim()===MT?String.prototype.trim:FCe},NCe=YF,LCe=o4,DCe=function(){var t=LCe();return NCe(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},BCe=KF,zCe=YF,VCe=n4,a4=o4,UCe=DCe,i4=BCe(a4());zCe(i4,{getPolyfill:a4,implementation:VCe,shim:UCe});var WCe=i4,dv=ASe,s4=AC,HCe=WCe,qCe=function(t){},KCe=String.prototype.replace,l4=String.prototype.split,Pp="||||",Ry=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},u4={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Ry,chinese:function(){return 0},croatian:Ry,french:function(e){return e>1?1:0},german:function(e){return e!==1?1:0},russian:Ry,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function GCe(e){var t={};return dv(e,function(r,n){dv(r,function(o){t[o]=n})}),t}function QCe(e,t){var r=GCe(e.pluralTypeToLanguages);return r[t]||r[l4.call(t,/-/,1)[0]]||r.en}function XCe(e,t,r){return e.pluralTypes[QCe(e,t)](r)}function FT(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function YCe(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Pp||r===Pp)throw new RangeError('"'+Pp+'" token is reserved for pluralization');return new RegExp(FT(t)+"(.*?)"+FT(r),"g")}var JCe=/%\{(.*?)\}/g;function LC(e,t,r,n,o){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var a=e,i=n||JCe,s=o||u4,u=typeof t=="number"?{smart_count:t}:t;if(u.smart_count!=null&&a){var l=l4.call(a,Pp);a=HCe(l[XCe(s,r||"en",u.smart_count)]||l[0])}return a=KCe.call(a,i,function(c,f){return!s4(u,f)||u[f]==null?c:u[f]}),a}function la(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?LC:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||qCe,this.tokenRegex=YCe(t.interpolation),this.pluralRules=t.pluralRules||u4}la.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};la.prototype.extend=function(e,t){dv(e,function(r,n){var o=t?t+"."+n:n;typeof r=="object"?this.extend(r,o):this.phrases[o]=r},this)};la.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:dv(e,function(r,n){var o=t?t+"."+n:n;typeof r=="object"?this.unset(r,o):delete this.phrases[o]},this)};la.prototype.clear=function(){this.phrases={}};la.prototype.replace=function(e){this.clear(),this.extend(e)};la.prototype.t=function(e,t){var r,n,o=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof o._=="string")r=o._;else if(this.onMissingKey){var a=this.onMissingKey;n=a(e,o,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=LC(r,o,this.currentLocale,this.tokenRegex,this.pluralRules)),n};la.prototype.has=function(e){return s4(this.phrases,e)};la.transformPhrase=function(t,r,n){return LC(t,r,n)};var ZCe=la;const NT=Jt(ZCe);var Xs=globalThis&&globalThis.__assign||function(){return Xs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i={...Kc(t.filter),[t.target]:t.id,_sort:o,_order:a,_start:(r-1)*n,_end:r*n,output_size_limit:200},s=`${as}/${t.target}/${t.id}/${e}?${Go.stringify(i)}`;return _j(s).then(({headers:u,json:l})=>{if(!u.has("x-total-count"))throw new Error("The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?");return{data:l,total:parseInt(u.get("x-total-count").split("/").pop()||"",10)}})}};var BC={},c_e=tt;Object.defineProperty(BC,"__esModule",{value:!0});var fg=BC.default=void 0,d_e=c_e(rt()),f_e=R;fg=BC.default=(0,d_e.default)((0,f_e.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");const p_e=({selectedIds:e})=>{const t=Zt(),r=ia(),n=lI,[o,a]=d.useState(!1),i=()=>{for(let s of e)a(!0),fetch(`${as}/jobs/${s}`,{method:"POST"}).then(()=>{t("Success running job")}).catch(u=>{t("Error on running job",{type:"warning"})}).finally(()=>{a(!1),r()});n("jobs")};return R.jsx(_r,{label:"Run",onClick:i,disabled:o,children:R.jsx(fg,{})})},h_e=({selectedIds:e})=>{const t=Zt(),r=ia(),n=lI,[o,a]=d.useState(!1),i=()=>{for(let s of e)a(!0),fetch(`${as}/jobs/${s}/toggle`,{method:"POST"}).then(()=>{t("Job toggled")}).catch(u=>{t("Error on job toggle",{type:"warning"})}).finally(()=>{a(!1),r()});n("jobs")};return R.jsx(_r,{label:"Toggle",title:"Enable/disable execution of selected jobs",onClick:i,disabled:o,children:R.jsx(fg,{})})};var zC={},v_e=tt;Object.defineProperty(zC,"__esModule",{value:!0});var VC=zC.default=void 0,m_e=v_e(rt()),g_e=R;VC=zC.default=(0,m_e.default)((0,g_e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var UC={},y_e=tt;Object.defineProperty(UC,"__esModule",{value:!0});var d4=UC.default=void 0,b_e=y_e(rt()),x_e=R;d4=UC.default=(0,b_e.default)((0,x_e.jsx)("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer");const w_e=()=>{const e=Lt();return e.status==="success"?R.jsx(Dr,{title:"Success",children:R.jsx(tg,{htmlColor:"green"})}):e.status==="failed"?R.jsx(Dr,{title:"Error",children:R.jsx(VC,{htmlColor:"red"})}):R.jsx(Dr,{title:"Waiting to Run",children:R.jsx(d4,{htmlColor:"blue"})})},S_e=()=>Lt().disabled?R.jsx(Dr,{title:"Disabled",children:R.jsx(VC,{htmlColor:"red"})}):R.jsx(Dr,{title:"Enabled",children:R.jsx(tg,{htmlColor:"green"})}),C_e=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function O_e(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,o=n===""?"":`${n}-`;let a=0;const i=()=>(a+=1,a);return(s,u)=>{const l=u.options.name;if(l&&l.indexOf("Mui")===0&&!u.options.link&&!t){if(C_e.indexOf(s.key)!==-1)return`Mui-${s.key}`;const c=`${o}${l}-${s.key}`;return!u.options.theme[VA]||n!==""?c:`${c}-${i()}`}return`${o}${r}${i()}`}}var LT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kd=(typeof window>"u"?"undefined":LT(window))==="object"&&(typeof document>"u"?"undefined":LT(document))==="object"&&document.nodeType===9,E_e={}.constructor;function U1(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(U1);if(e.constructor!==E_e)return e;var t={};for(var r in e)t[r]=U1(e[r]);return t}function WC(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,o=U1(t),a=n.plugins.onCreateRule(e,o,r);return a||(e[0],null)}var DT=function(t,r){for(var n="",o=0;o<+~=|^:(),"'`\s])/g,BT=typeof CSS<"u"&&CSS.escape,HC=function(e){return BT?BT(e):e.replace(P_e,"\\$1")},f4=function(){function e(r,n,o){this.type="style",this.isProcessed=!1;var a=o.sheet,i=o.Renderer;this.key=r,this.options=o,this.style=n,a?this.renderer=a.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,o,a){if(o===void 0)return this.style[n];var i=a?a.force:!1;if(!i&&this.style[n]===o)return this;var s=o;(!a||a.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),W1=function(e){no(t,e);function t(n,o,a){var i;i=e.call(this,n,o,a)||this;var s=a.selector,u=a.scoped,l=a.sheet,c=a.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(f0(f0(i)),l),i.selectorText="."+HC(i.id)),i}var r=t.prototype;return r.applyTo=function(o){var a=this.renderer;if(a){var i=this.toJSON();for(var s in i)a.setProperty(o,s,i[s])}return this},r.toJSON=function(){var o={};for(var a in this.style){var i=this.style[a];typeof i!="object"?o[a]=i:Array.isArray(i)&&(o[a]=Ni(i))}return o},r.toString=function(o){var a=this.options.sheet,i=a?a.options.link:!1,s=i?P({},o,{allowEmpty:!0}):o;return ud(this.selectorText,this.style,s)},nA(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var a=this.renderer,i=this.renderable;if(!(!i||!a)){var s=a.setSelector(i,o);s||a.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(f4),T_e={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new W1(t,r,n)}},ky={indent:1,children:!0},$_e=/@([\w-]+)/,R_e=function(){function e(r,n,o){this.type="conditional",this.isProcessed=!1,this.key=r;var a=r.match($_e);this.at=a?a[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new pg(P({},o,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,o,a){var i=this.rules.add(n,o,a);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,o,a){var i=this.rules.replace(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=ky);var o=pu(n),a=o.linebreak;if(n.indent==null&&(n.indent=ky.indent),n.children==null&&(n.children=ky.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+a+i+a+"}":""},e}(),k_e=/@container|@media|@supports\s+/,j_e={onCreateRule:function(t,r,n){return k_e.test(t)?new R_e(t,r,n):null}},jy={indent:1,children:!0},I_e=/@keyframes\s+([\w-]+)/,H1=function(){function e(r,n,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var a=r.match(I_e);a&&a[1]?this.name=a[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var i=o.scoped,s=o.sheet,u=o.generateId;this.id=i===!1?this.name:HC(u(this,s)),this.rules=new pg(P({},o,{parent:this}));for(var l in n)this.rules.add(l,n[l],P({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=jy);var o=pu(n),a=o.linebreak;if(n.indent==null&&(n.indent=jy.indent),n.children==null&&(n.children=jy.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+a+i+a),this.at+" "+this.id+" {"+i+"}"},e}(),A_e=/@keyframes\s+/,M_e=/\$([\w-]+)/g,q1=function(t,r){return typeof t=="string"?t.replace(M_e,function(n,o){return o in r?r[o]:n}):t},zT=function(t,r,n){var o=t[r],a=q1(o,n);a!==o&&(t[r]=a)},F_e={onCreateRule:function(t,r,n){return typeof t=="string"&&A_e.test(t)?new H1(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&zT(t,"animation-name",n.keyframes),"animation"in t&&zT(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var o=n.options.sheet;if(!o)return t;switch(r){case"animation":return q1(t,o.keyframes);case"animation-name":return q1(t,o.keyframes);default:return t}}},N_e=function(e){no(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(o){var a=this.options.sheet,i=a?a.options.link:!1,s=i?P({},o,{allowEmpty:!0}):o;return ud(this.key,this.style,s)},t}(f4),L_e={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new N_e(t,r,n):null}},D_e=function(){function e(r,n,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=o}var t=e.prototype;return t.toString=function(n){var o=pu(n),a=o.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){o.push(n);return}for(var i=0;ia){o.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,a=o.attached,i=be(o,["attached"]),s=pu(i),u=s.linebreak,l="",c=0;c-1?o.substr(0,a-1):o;t.style.setProperty(r,i,a>-1?"important":"")}}catch{return!1}return!0},J_e=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},Z_e=function(t,r){return t.selectorText=r,t.selectorText===r},v4=h4(function(){return document.querySelector("head")});function eOe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function tOe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function rOe(e){for(var t=v4(),r=0;r0){var r=eOe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=tOe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=rOe(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function oOe(e,t){var r=t.insertionPoint,n=nOe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,a=o.parentNode;a&&a.insertBefore(e,o.nextSibling);return}v4().appendChild(e)}var aOe=h4(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),qT=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},KT=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},iOe=function(){var t=document.createElement("style");return t.textContent=` -`,t},sOe=function(){function e(r){this.getPropertyValue=X_e,this.setProperty=Y_e,this.removeProperty=J_e,this.setSelector=Z_e,this.hasInsertedRules=!1,this.cssRules=[],r&&Pc.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,a=n.meta,i=n.element;this.element=i||iOe(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),a&&this.element.setAttribute("data-meta",a);var s=aOe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){oOe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` -`)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` -`+n.toString()+` -`}},t.insertRules=function(n,o){for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1){var a=_4[t];if(!Array.isArray(a))return nt.js+Ha(a)in r?nt.css+a:!1;if(!o)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},a=Object.keys(r).sort(e),i=0;i"u"?null:lEe(),uEe()]}}function E4(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const o=P({},t);return Object.keys(r).forEach(a=>{r[a]&&(o[a]=`${t[a]} ${r[a]}`)}),o}const dEe={set:(e,t,r,n)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},Ys=dEe;function fEe(){var e;const t=lS();return(e=t==null?void 0:t.$$material)!=null?e:t}const pEe=m4(cEe()),hEe=O_e(),vEe=new Map,mEe={disableGeneration:!1,generateClassName:hEe,jss:pEe,sheetsCache:null,sheetsManager:vEe,sheetsRegistry:null},gEe=d.createContext(mEe);let YT=-1e9;function yEe(){return YT+=1,YT}const bEe=["variant"];function JT(e){return e.length===0}function xEe(e){const{variant:t}=e,r=be(e,bEe);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=JT(n)?e[o]:le(e[o]):n+=`${JT(n)?o:le(o)}${le(e[o].toString())}`}),n}const wEe={},SEe=wEe;function CEe(e){const t=typeof e=="function";return{create:(r,n)=>{let o;try{o=t?e(r):e}catch(u){throw u}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return o;const a=r.components[n].styleOverrides||{},i=r.components[n].variants||[],s=P({},o);return Object.keys(a).forEach(u=>{s[u]=pr(s[u]||{},a[u])}),i.forEach(u=>{const l=xEe(u.props);s[l]=pr(s[l]||{},u.style)}),s},options:{}}}const _Ee=["name","classNamePrefix","Component","defaultTheme"];function OEe({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,o=!0),o&&(e.cacheClasses.value=E4({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function EEe({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:o},a){if(r.disableGeneration)return;let i=Ys.get(r.sheetsManager,n,t);i||(i={refs:0,staticSheet:null,dynamicStyles:null},Ys.set(r.sheetsManager,n,t,i));const s=P({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=r.sheetsRegistry;if(i.refs===0){let l;r.sheetsCache&&(l=Ys.get(r.sheetsCache,n,t));const c=n.create(t,o);l||(l=r.jss.createStyleSheet(c,P({link:!1},s)),l.attach(),r.sheetsCache&&Ys.set(r.sheetsCache,n,t,l)),u&&u.add(l),i.staticSheet=l,i.dynamicStyles=g4(c)}if(i.dynamicStyles){const l=r.jss.createStyleSheet(i.dynamicStyles,P({link:!0},s));l.update(a),l.attach(),e.dynamicSheet=l,e.classes=E4({baseClasses:i.staticSheet.classes,newClasses:l.classes}),u&&u.add(l)}else e.classes=i.staticSheet.classes;i.refs+=1}function PEe({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function TEe({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const o=Ys.get(r.sheetsManager,n,t);o.refs-=1;const a=r.sheetsRegistry;o.refs===0&&(Ys.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}function $Ee(e,t){const r=d.useRef([]);let n;const o=d.useMemo(()=>({}),t);r.current!==o&&(r.current=o,n=e()),d.useEffect(()=>()=>{n&&n()},[o])}function P4(e,t={}){const{name:r,classNamePrefix:n,Component:o,defaultTheme:a=SEe}=t,i=be(t,_Ee),s=CEe(e),u=r||n||"makeStyles";return s.options={index:yEe(),name:r,meta:u,classNamePrefix:u},(c={})=>{const f=fEe()||a,p=P({},d.useContext(gEe),i),v=d.useRef(),g=d.useRef();return $Ee(()=>{const w={name:r,state:{},stylesCreator:s,stylesOptions:p,theme:f};return EEe(w,c),g.current=!1,v.current=w,()=>{TEe(w)}},[f,s]),d.useEffect(()=>{g.current&&PEe(v.current,c),g.current=!0}),OEe(v.current,c.classes,o)}}const REe=e=>R.jsxs(nF,{...e,children:[R.jsx(dn,{label:"Search",source:"q",alwaysOn:!0}),R.jsx(PC,{source:"status",choices:[{id:"success",name:"Success"},{id:"failed",name:"Failed"},{id:"untriggered",name:"Waiting to Run"}]}),R.jsx(Yh,{source:"disabled"})]}),kEe=e=>R.jsxs(d.Fragment,{children:[R.jsx(p_e,{...e}),R.jsx(h_e,{...e}),R.jsx(iC,{...e})]}),jEe=e=>R.jsx(_C,{rowsPerPageOptions:[5,10,25,50,100],...e}),IEe=P4(e=>({hiddenOnSmallScreens:{display:"table-cell",[e.breakpoints.down("md")]:{display:"none"}},cell:{padding:"6px 8px 6px 8px"}})),AEe=e=>{const t=IEe();return R.jsx(cg,{...e,filters:R.jsx(REe,{}),bulkActionButtons:R.jsx(kEe,{}),pagination:R.jsx(jEe,{}),children:R.jsxs(fu,{rowClick:"show",classes:{rowCell:t.cell},children:[R.jsx(Qt,{source:"id",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Qt,{source:"displayname",label:"Display name"}),R.jsx(Qt,{source:"timezone",sortable:!1,cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Qt,{source:"schedule"}),R.jsx(Cp,{source:"success_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Cp,{source:"error_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(xo,{source:"last_success",showTime:!0}),R.jsx(xo,{source:"last_error",showTime:!0}),R.jsx(S_e,{source:"disabled",label:"Enabled",sortable:!1}),R.jsx(Cp,{source:"retries",sortable:!1}),R.jsx(w_e,{source:"status",sortable:!1}),R.jsx(xo,{source:"next",showTime:!0}),R.jsx(ig,{})]})})};var T4={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Wo,function(r){return function(n){var o={};function a(i){if(o[i])return o[i].exports;var s=o[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=n,a.c=o,a.d=function(i,s,u){a.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},a.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},a.t=function(i,s){if(1&s&&(i=a(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)a.d(u,l,(function(c){return i[c]}).bind(null,l));return u},a.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(s,"a",s),s},a.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},a.p="",a(a.s=48)}([function(n,o){n.exports=r},function(n,o){var a=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=a)},function(n,o,a){var i=a(26)("wks"),s=a(17),u=a(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,o){var a=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},function(n,o,a){n.exports=!a(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,o){var a={}.hasOwnProperty;n.exports=function(i,s){return a.call(i,s)}},function(n,o,a){var i=a(7),s=a(16);n.exports=a(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,o,a){var i=a(10),s=a(35),u=a(23),l=Object.defineProperty;o.f=a(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,o){n.exports=function(a){try{return!!a()}catch{return!0}}},function(n,o,a){var i=a(40),s=a(22);n.exports=function(u){return i(s(u))}},function(n,o,a){var i=a(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,o){n.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},function(n,o){n.exports={}},function(n,o,a){var i=a(39),s=a(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,o){n.exports=!0},function(n,o,a){var i=a(3),s=a(1),u=a(53),l=a(6),c=a(5),f=function(p,v,g){var y,w,x,m=p&f.F,b=p&f.G,h=p&f.S,S=p&f.P,C=p&f.B,O=p&f.W,E=b?s:s[v]||(s[v]={}),T=E.prototype,$=b?i:h?i[v]:(i[v]||{}).prototype;for(y in b&&(g=v),g)(w=!m&&$&&$[y]!==void 0)&&c(E,y)||(x=w?$[y]:g[y],E[y]=b&&typeof $[y]!="function"?g[y]:C&&w?u(x,i):O&&$[y]==x?function(j){var M=function(k,N,D){if(this instanceof j){switch(arguments.length){case 0:return new j;case 1:return new j(k);case 2:return new j(k,N)}return new j(k,N,D)}return j.apply(this,arguments)};return M.prototype=j.prototype,M}(x):S&&typeof x=="function"?u(Function.call,x):x,S&&((E.virtual||(E.virtual={}))[y]=x,p&f.R&&T&&!T[y]&&l(T,y,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,o){n.exports=function(a,i){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:i}}},function(n,o){var a=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++a+i).toString(36))}},function(n,o,a){var i=a(22);n.exports=function(s){return Object(i(s))}},function(n,o){o.f={}.propertyIsEnumerable},function(n,o,a){var i=a(52)(!0);a(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,o){var a=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:a)(s)}},function(n,o){n.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(n,o,a){var i=a(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,o){var a={}.toString;n.exports=function(i){return a.call(i).slice(8,-1)}},function(n,o,a){var i=a(26)("keys"),s=a(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,o,a){var i=a(1),s=a(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:a(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,o){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,o,a){var i=a(7).f,s=a(5),u=a(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,o,a){a(62);for(var i=a(3),s=a(6),u=a(12),l=a(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,v){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),v===void 0?g:s(g,v)}},function(n,o,a){var i=a(5),s=a(9),u=a(57)(!1),l=a(25)("IE_PROTO");n.exports=function(c,f){var p,v=s(c),g=0,y=[];for(p in v)p!=l&&i(v,p)&&y.push(p);for(;f.length>g;)i(v,p=f[g++])&&(~u(y,p)||y.push(p));return y}},function(n,o,a){var i=a(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,o,a){var i=a(39),s=a(27).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,o,a){var i=a(24),s=a(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(v,g){try{return v[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,o){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}n.exports=a},function(n,o){var a=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(a)}},function(n,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.getBase16Theme=o.createStyling=o.invertTheme=void 0;var i=w(a(49)),s=w(a(76)),u=w(a(81)),l=w(a(89)),c=w(a(93)),f=function(T){if(T&&T.__esModule)return T;var $={};if(T!=null)for(var j in T)Object.prototype.hasOwnProperty.call(T,j)&&($[j]=T[j]);return $.default=T,$}(a(94)),p=w(a(132)),v=w(a(133)),g=w(a(138)),y=a(139);function w(T){return T&&T.__esModule?T:{default:T}}var x=f.default,m=(0,l.default)(x),b=(0,g.default)(v.default,y.rgb2yuv,function(T){var $,j=(0,u.default)(T,3),M=j[0],k=j[1],N=j[2];return[($=M,$<.25?1:$<.5?.9-$:1.1-$),k,N]},y.yuv2rgb,p.default),h=function(T){return function($){return{className:[$.className,T.className].filter(Boolean).join(" "),style:(0,s.default)({},$.style||{},T.style||{})}}},S=function(T,$){var j=(0,l.default)($);for(var M in T)j.indexOf(M)===-1&&j.push(M);return j.reduce(function(k,N){return k[N]=function(D,A){if(D===void 0)return A;if(A===void 0)return D;var H=D===void 0?"undefined":(0,i.default)(D),B=A===void 0?"undefined":(0,i.default)(A);switch(H){case"string":switch(B){case"string":return[A,D].filter(Boolean).join(" ");case"object":return h({className:D,style:A});case"function":return function(U){for(var q=arguments.length,re=Array(q>1?q-1:0),ne=1;ne1?q-1:0),ne=1;ne1?q-1:0),ne=1;ne1?q-1:0),ne=1;ne1?q-1:0),ne=1;ne2?j-2:0),k=2;k3?$-3:0),M=3;M<$;M++)j[M-3]=arguments[M];var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=k.defaultBase16,A=D===void 0?x:D,H=k.base16Themes,B=H===void 0?null:H,U=E(N,B);U&&(N=(0,s.default)({},U,N));var q=m.reduce(function(ve,Se){return ve[Se]=N[Se]||A[Se],ve},{}),re=(0,l.default)(N).reduce(function(ve,Se){return m.indexOf(Se)===-1&&(ve[Se]=N[Se]),ve},{}),ne=T(q),fe=S(re,ne);return(0,c.default)(C,2).apply(void 0,[fe].concat(j))},3),o.getBase16Theme=function(T,$){if(T&&T.extend&&(T=T.extend),typeof T=="string"){var j=T.split(":"),M=(0,u.default)(j,2),k=M[0],N=M[1];T=($||{})[k]||f[k],N==="inverted"&&(T=O(T))}return T&&T.hasOwnProperty("base00")?T:void 0})},function(n,o,a){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(h,S,C){return Function.prototype.apply.call(h,S,C)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var l=Number.isNaN||function(h){return h!=h};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(h,S){return new Promise(function(C,O){function E(){T!==void 0&&h.removeListener("error",T),C([].slice.call(arguments))}var T;S!=="error"&&(T=function($){h.removeListener(S,E),O($)},h.once("error",T)),h.once(S,E)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function v(h){return h._maxListeners===void 0?c.defaultMaxListeners:h._maxListeners}function g(h,S,C,O){var E,T,$,j;if(p(C),(T=h._events)===void 0?(T=h._events=Object.create(null),h._eventsCount=0):(T.newListener!==void 0&&(h.emit("newListener",S,C.listener?C.listener:C),T=h._events),$=T[S]),$===void 0)$=T[S]=C,++h._eventsCount;else if(typeof $=="function"?$=T[S]=O?[C,$]:[$,C]:O?$.unshift(C):$.push(C),(E=v(h))>0&&$.length>E&&!$.warned){$.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=h,M.type=S,M.count=$.length,j=M,console&&console.warn&&console.warn(j)}return h}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(h,S,C){var O={fired:!1,wrapFn:void 0,target:h,type:S,listener:C},E=y.bind(O);return E.listener=C,O.wrapFn=E,E}function x(h,S,C){var O=h._events;if(O===void 0)return[];var E=O[S];return E===void 0?[]:typeof E=="function"?C?[E.listener||E]:[E]:C?function(T){for(var $=new Array(T.length),j=0;j<$.length;++j)$[j]=T[j].listener||T[j];return $}(E):b(E,E.length)}function m(h){var S=this._events;if(S!==void 0){var C=S[h];if(typeof C=="function")return 1;if(C!==void 0)return C.length}return 0}function b(h,S){for(var C=new Array(S),O=0;O0&&(T=S[0]),T instanceof Error)throw T;var $=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw $.context=T,$}var j=E[h];if(j===void 0)return!1;if(typeof j=="function")u(j,this,S);else{var M=j.length,k=b(j,M);for(C=0;C=0;T--)if(C[T]===S||C[T].listener===S){$=C[T].listener,E=T;break}if(E<0)return this;E===0?C.shift():function(j,M){for(;M+1=0;O--)this.removeListener(h,S[O]);return this},c.prototype.listeners=function(h){return x(this,h,!0)},c.prototype.rawListeners=function(h){return x(this,h,!1)},c.listenerCount=function(h,S){return typeof h.listenerCount=="function"?h.listenerCount(S):m.call(h,S)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,o,a){n.exports.Dispatcher=a(140)},function(n,o,a){n.exports=a(142)},function(n,o,a){o.__esModule=!0;var i=l(a(50)),s=l(a(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}o.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,o,a){n.exports={default:a(51),__esModule:!0}},function(n,o,a){a(20),a(29),n.exports=a(30).f("iterator")},function(n,o,a){var i=a(21),s=a(22);n.exports=function(u){return function(l,c){var f,p,v=String(s(l)),g=i(c),y=v.length;return g<0||g>=y?u?"":void 0:(f=v.charCodeAt(g))<55296||f>56319||g+1===y||(p=v.charCodeAt(g+1))<56320||p>57343?u?v.charAt(g):f:u?v.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,o,a){var i=a(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,o){n.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},function(n,o,a){var i=a(38),s=a(16),u=a(28),l={};a(6)(l,a(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,o,a){var i=a(7),s=a(10),u=a(13);n.exports=a(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),v=p.length,g=0;v>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,o,a){var i=a(9),s=a(58),u=a(59);n.exports=function(l){return function(c,f,p){var v,g=i(c),y=s(g.length),w=u(p,y);if(l&&f!=f){for(;y>w;)if((v=g[w++])!=v)return!0}else for(;y>w;w++)if((l||w in g)&&g[w]===f)return l||w||0;return!l&&-1}}},function(n,o,a){var i=a(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,o,a){var i=a(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,o,a){var i=a(3).document;n.exports=i&&i.documentElement},function(n,o,a){var i=a(5),s=a(18),u=a(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,o,a){var i=a(63),s=a(64),u=a(12),l=a(9);n.exports=a(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,o){n.exports=function(){}},function(n,o){n.exports=function(a,i){return{value:i,done:!!a}}},function(n,o,a){n.exports={default:a(66),__esModule:!0}},function(n,o,a){a(67),a(73),a(74),a(75),n.exports=a(1).Symbol},function(n,o,a){var i=a(3),s=a(5),u=a(4),l=a(15),c=a(37),f=a(68).KEY,p=a(8),v=a(26),g=a(28),y=a(17),w=a(2),x=a(30),m=a(31),b=a(69),h=a(70),S=a(10),C=a(11),O=a(18),E=a(9),T=a(23),$=a(16),j=a(38),M=a(71),k=a(72),N=a(32),D=a(7),A=a(13),H=k.f,B=D.f,U=M.f,q=i.Symbol,re=i.JSON,ne=re&&re.stringify,fe=w("_hidden"),ve=w("toPrimitive"),Se={}.propertyIsEnumerable,we=v("symbol-registry"),Re=v("symbols"),pe=v("op-symbols"),xe=Object.prototype,Te=typeof q=="function"&&!!N.f,je=i.QObject,Oe=!je||!je.prototype||!je.prototype.findChild,Ce=u&&p(function(){return j(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(G,Z,oe){var Pe=H(xe,Z);Pe&&delete xe[Z],B(G,Z,oe),Pe&&G!==xe&&B(xe,Z,Pe)}:B,Ie=function(G){var Z=Re[G]=j(q.prototype);return Z._k=G,Z},ke=Te&&typeof q.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof q},Xe=function(G,Z,oe){return G===xe&&Xe(pe,Z,oe),S(G),Z=T(Z,!0),S(oe),s(Re,Z)?(oe.enumerable?(s(G,fe)&&G[fe][Z]&&(G[fe][Z]=!1),oe=j(oe,{enumerable:$(0,!1)})):(s(G,fe)||B(G,fe,$(1,{})),G[fe][Z]=!0),Ce(G,Z,oe)):B(G,Z,oe)},Je=function(G,Z){S(G);for(var oe,Pe=b(Z=E(Z)),Ve=0,Ue=Pe.length;Ue>Ve;)Xe(G,oe=Pe[Ve++],Z[oe]);return G},Ke=function(G){var Z=Se.call(this,G=T(G,!0));return!(this===xe&&s(Re,G)&&!s(pe,G))&&(!(Z||!s(this,G)||!s(Re,G)||s(this,fe)&&this[fe][G])||Z)},W=function(G,Z){if(G=E(G),Z=T(Z,!0),G!==xe||!s(Re,Z)||s(pe,Z)){var oe=H(G,Z);return!oe||!s(Re,Z)||s(G,fe)&&G[fe][Z]||(oe.enumerable=!0),oe}},Q=function(G){for(var Z,oe=U(E(G)),Pe=[],Ve=0;oe.length>Ve;)s(Re,Z=oe[Ve++])||Z==fe||Z==f||Pe.push(Z);return Pe},ee=function(G){for(var Z,oe=G===xe,Pe=U(oe?pe:E(G)),Ve=[],Ue=0;Pe.length>Ue;)!s(Re,Z=Pe[Ue++])||oe&&!s(xe,Z)||Ve.push(Re[Z]);return Ve};Te||(c((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var G=y(arguments.length>0?arguments[0]:void 0),Z=function(oe){this===xe&&Z.call(pe,oe),s(this,fe)&&s(this[fe],G)&&(this[fe][G]=!1),Ce(this,G,$(1,oe))};return u&&Oe&&Ce(xe,G,{configurable:!0,set:Z}),Ie(G)}).prototype,"toString",function(){return this._k}),k.f=W,D.f=Xe,a(41).f=M.f=Q,a(19).f=Ke,N.f=ee,u&&!a(14)&&c(xe,"propertyIsEnumerable",Ke,!0),x.f=function(G){return Ie(w(G))}),l(l.G+l.W+l.F*!Te,{Symbol:q});for(var ye="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ce=0;ye.length>ce;)w(ye[ce++]);for(var se=A(w.store),X=0;se.length>X;)m(se[X++]);l(l.S+l.F*!Te,"Symbol",{for:function(G){return s(we,G+="")?we[G]:we[G]=q(G)},keyFor:function(G){if(!ke(G))throw TypeError(G+" is not a symbol!");for(var Z in we)if(we[Z]===G)return Z},useSetter:function(){Oe=!0},useSimple:function(){Oe=!1}}),l(l.S+l.F*!Te,"Object",{create:function(G,Z){return Z===void 0?j(G):Je(j(G),Z)},defineProperty:Xe,defineProperties:Je,getOwnPropertyDescriptor:W,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var K=p(function(){N.f(1)});l(l.S+l.F*K,"Object",{getOwnPropertySymbols:function(G){return N.f(O(G))}}),re&&l(l.S+l.F*(!Te||p(function(){var G=q();return ne([G])!="[null]"||ne({a:G})!="{}"||ne(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var Z,oe,Pe=[G],Ve=1;arguments.length>Ve;)Pe.push(arguments[Ve++]);if(oe=Z=Pe[1],(C(Z)||G!==void 0)&&!ke(G))return h(Z)||(Z=function(Ue,Ee){if(typeof oe=="function"&&(Ee=oe.call(this,Ue,Ee)),!ke(Ee))return Ee}),Pe[1]=Z,ne.apply(re,Pe)}}),q.prototype[ve]||a(6)(q.prototype,ve,q.prototype.valueOf),g(q,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,o,a){var i=a(17)("meta"),s=a(11),u=a(5),l=a(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!a(8)(function(){return f(Object.preventExtensions({}))}),v=function(y){l(y,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(y,w){if(!s(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!u(y,i)){if(!f(y))return"F";if(!w)return"E";v(y)}return y[i].i},getWeak:function(y,w){if(!u(y,i)){if(!f(y))return!0;if(!w)return!1;v(y)}return y[i].w},onFreeze:function(y){return p&&g.NEED&&f(y)&&!u(y,i)&&v(y),y}}},function(n,o,a){var i=a(13),s=a(32),u=a(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,v=f(l),g=u.f,y=0;v.length>y;)g.call(l,p=v[y++])&&c.push(p);return c}},function(n,o,a){var i=a(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,o,a){var i=a(9),s=a(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,o,a){var i=a(19),s=a(16),u=a(9),l=a(23),c=a(5),f=a(35),p=Object.getOwnPropertyDescriptor;o.f=a(4)?p:function(v,g){if(v=u(v),g=l(g,!0),f)try{return p(v,g)}catch{}if(c(v,g))return s(!i.f.call(v,g),v[g])}},function(n,o){},function(n,o,a){a(31)("asyncIterator")},function(n,o,a){a(31)("observable")},function(n,o,a){o.__esModule=!0;var i,s=a(77),u=(i=s)&&i.__esModule?i:{default:i};o.default=u.default||function(l){for(var c=1;cx;)for(var h,S=f(arguments[x++]),C=m?s(S).concat(m(S)):s(S),O=C.length,E=0;O>E;)h=C[E++],i&&!b.call(S,h)||(y[h]=S[h]);return y}:p},function(n,o,a){o.__esModule=!0;var i=u(a(82)),s=u(a(85));function u(l){return l&&l.__esModule?l:{default:l}}o.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var v=[],g=!0,y=!1,w=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(v.push(x.value),!p||v.length!==p);g=!0);}catch(b){y=!0,w=b}finally{try{!g&&m.return&&m.return()}finally{if(y)throw w}}return v}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,o,a){n.exports={default:a(83),__esModule:!0}},function(n,o,a){a(29),a(20),n.exports=a(84)},function(n,o,a){var i=a(42),s=a(2)("iterator"),u=a(12);n.exports=a(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,o,a){n.exports={default:a(86),__esModule:!0}},function(n,o,a){a(29),a(20),n.exports=a(87)},function(n,o,a){var i=a(10),s=a(88);n.exports=a(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,o,a){var i=a(42),s=a(2)("iterator"),u=a(12);n.exports=a(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,o,a){n.exports={default:a(90),__esModule:!0}},function(n,o,a){a(91),n.exports=a(1).Object.keys},function(n,o,a){var i=a(18),s=a(13);a(92)("keys",function(){return function(u){return s(i(u))}})},function(n,o,a){var i=a(15),s=a(1),u=a(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,o,a){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,y=/^0o[0-7]+$/i,w=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,h=m||b||Function("return this")();function S(X,K,G){switch(G.length){case 0:return X.call(K);case 1:return X.call(K,G[0]);case 2:return X.call(K,G[0],G[1]);case 3:return X.call(K,G[0],G[1],G[2])}return X.apply(K,G)}function C(X,K){return!!(X&&X.length)&&function(G,Z,oe){if(Z!=Z)return function(Ue,Ee,We,me){for(var $e=Ue.length,ze=We+(me?1:-1);me?ze--:++ze<$e;)if(Ee(Ue[ze],ze,Ue))return ze;return-1}(G,O,oe);for(var Pe=oe-1,Ve=G.length;++Pe-1}function O(X){return X!=X}function E(X,K){for(var G=X.length,Z=0;G--;)X[G]===K&&Z++;return Z}function T(X,K){for(var G=-1,Z=X.length,oe=0,Pe=[];++G2?j:void 0);function Se(X){return ye(X)?re(X):{}}function we(X){return!(!ye(X)||function(K){return!!A&&A in K}(X))&&(function(K){var G=ye(K)?U.call(K):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(X)||function(K){var G=!1;if(K!=null&&typeof K.toString!="function")try{G=!!(K+"")}catch{}return G}(X)?q:g).test(function(K){if(K!=null){try{return H.call(K)}catch{}try{return K+""}catch{}}return""}(X))}function Re(X,K,G,Z){for(var oe=-1,Pe=X.length,Ve=G.length,Ue=-1,Ee=K.length,We=ne(Pe-Ve,0),me=Array(Ee+We),$e=!Z;++Ue1&&Ye.reverse(),me&&Ee1?"& ":"")+K[Z],K=K.join(G>2?", ":" "),X.replace(l,`{ -/* [wrapped with `+K+`] */ -`)}function Je(X,K){return!!(K=K??9007199254740991)&&(typeof X=="number"||w.test(X))&&X>-1&&X%1==0&&X1&&u--,c=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,l[g]=255*c;return l}},function(n,o,a){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,l=s||u||Function("return this")();function c(T,$,j){switch(j.length){case 0:return T.call($);case 1:return T.call($,j[0]);case 2:return T.call($,j[0],j[1]);case 3:return T.call($,j[0],j[1],j[2])}return T.apply($,j)}function f(T,$){for(var j=-1,M=$.length,k=T.length;++j-1&&k%1==0&&k<=9007199254740991}(M.length)&&!function(k){var N=function(D){var A=typeof D;return!!D&&(A=="object"||A=="function")}(k)?g.call(k):"";return N=="[object Function]"||N=="[object GeneratorFunction]"}(M)}(j)}($)&&v.call($,"callee")&&(!w.call($,"callee")||g.call($)=="[object Arguments]")}(T)||!!(x&&T&&T[x])}var h=Array.isArray,S,C,O,E=(C=function(T){var $=(T=function M(k,N,D,A,H){var B=-1,U=k.length;for(D||(D=b),H||(H=[]);++B0&&D(q)?N>1?M(q,N-1,D,A,H):f(H,q):A||(H[H.length]=q)}return H}(T,1)).length,j=$;for(S;j--;)if(typeof T[j]!="function")throw new TypeError("Expected a function");return function(){for(var M=0,k=$?T[M].apply(this,arguments):arguments[0];++M<$;)k=T[M].call(this,k);return k}},O=m(O===void 0?C.length-1:O,0),function(){for(var T=arguments,$=-1,j=m(T.length-O,0),M=Array(j);++$2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var I,F=g(z);if(V){var L=g(this).constructor;I=Reflect.construct(F,arguments,L)}else I=F.apply(this,arguments);return x(this,I)}}a.r(o);var b=a(0),h=a.n(b);function S(){var z=this.constructor.getDerivedStateFromProps(this.props,this.state);z!=null&&this.setState(z)}function C(z){this.setState((function(V){var I=this.constructor.getDerivedStateFromProps(z,V);return I??null}).bind(this))}function O(z,V){try{var I=this.props,F=this.state;this.props=z,this.state=V,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(I,F)}finally{this.props=I,this.state=F}}function E(z){var V=z.prototype;if(!V||!V.isReactComponent)throw new Error("Can only polyfill class components");if(typeof z.getDerivedStateFromProps!="function"&&typeof V.getSnapshotBeforeUpdate!="function")return z;var I=null,F=null,L=null;if(typeof V.componentWillMount=="function"?I="componentWillMount":typeof V.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof V.componentWillReceiveProps=="function"?F="componentWillReceiveProps":typeof V.UNSAFE_componentWillReceiveProps=="function"&&(F="UNSAFE_componentWillReceiveProps"),typeof V.componentWillUpdate=="function"?L="componentWillUpdate":typeof V.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),I!==null||F!==null||L!==null){var te=z.displayName||z.name,ue=typeof z.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. - -`+te+" uses "+ue+" but also contains the following legacy lifecycles:"+(I!==null?` - `+I:"")+(F!==null?` - `+F:"")+(L!==null?` - `+L:"")+` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof z.getDerivedStateFromProps=="function"&&(V.componentWillMount=S,V.componentWillReceiveProps=C),typeof V.getSnapshotBeforeUpdate=="function"){if(typeof V.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");V.componentWillUpdate=O;var ie=V.componentDidUpdate;V.componentDidUpdate=function(J,ae,Ae){var at=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ae;ie.call(this,J,ae,at)}}return z}function T(z,V){if(z==null)return{};var I,F,L=function(ue,ie){if(ue==null)return{};var J,ae,Ae={},at=Object.keys(ue);for(ae=0;ae=0||(Ae[J]=ue[J]);return Ae}(z,V);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(z);for(F=0;F=0||Object.prototype.propertyIsEnumerable.call(z,I)&&(L[I]=z[I])}return L}function $(z){var V=function(I){return{}.toString.call(I).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(z);return V==="number"&&(V=isNaN(z)?"nan":(0|z)!=z?"float":"integer"),V}S.__suppressDeprecationWarning=!0,C.__suppressDeprecationWarning=!0,O.__suppressDeprecationWarning=!0;var j={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},M={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},k={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},N=a(45),D=function(z){var V=function(I){return{backgroundColor:I.base00,ellipsisColor:I.base09,braceColor:I.base07,expandedIcon:I.base0D,collapsedIcon:I.base0E,keyColor:I.base07,arrayKeyColor:I.base0C,objectSize:I.base04,copyToClipboard:I.base0F,copyToClipboardCheck:I.base0D,objectBorder:I.base02,dataTypes:{boolean:I.base0E,date:I.base0D,float:I.base0B,function:I.base0D,integer:I.base0F,string:I.base09,nan:I.base08,null:I.base0A,undefined:I.base05,regexp:I.base0A,background:I.base02},editVariable:{editIcon:I.base0E,cancelIcon:I.base09,removeIcon:I.base09,addIcon:I.base0E,checkIcon:I.base0E,background:I.base01,color:I.base0A,border:I.base07},addKeyModal:{background:I.base05,border:I.base04,color:I.base0A,labelColor:I.base01},validationFailure:{background:I.base09,iconColor:I.base01,fontColor:I.base01}}}(z);return{"app-container":{fontFamily:k.globalFontFamily,cursor:k.globalCursor,backgroundColor:V.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:V.ellipsisColor,fontSize:k.ellipsisFontSize,lineHeight:k.ellipsisLineHeight,cursor:k.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:k.braceCursor,fontWeight:k.braceFontWeight,color:V.braceColor},"expanded-icon":{color:V.expandedIcon},"collapsed-icon":{color:V.collapsedIcon},colon:{display:"inline-block",margin:k.keyMargin,color:V.keyColor,verticalAlign:"top"},objectKeyVal:function(I,F){return{style:u({paddingTop:k.keyValPaddingTop,paddingRight:k.keyValPaddingRight,paddingBottom:k.keyValPaddingBottom,borderLeft:k.keyValBorderLeft+" "+V.objectBorder,":hover":{paddingLeft:F.paddingLeft-1+"px",borderLeft:k.keyValBorderHover+" "+V.objectBorder}},F)}},"object-key-val-no-border":{padding:k.keyValPadding},"pushed-content":{marginLeft:k.pushedContentMarginLeft},variableValue:function(I,F){return{style:u({display:"inline-block",paddingRight:k.variableValuePaddingRight,position:"relative"},F)}},"object-name":{display:"inline-block",color:V.keyColor,letterSpacing:k.keyLetterSpacing,fontStyle:k.keyFontStyle,verticalAlign:k.keyVerticalAlign,opacity:k.keyOpacity,":hover":{opacity:k.keyOpacityHover}},"array-key":{display:"inline-block",color:V.arrayKeyColor,letterSpacing:k.keyLetterSpacing,fontStyle:k.keyFontStyle,verticalAlign:k.keyVerticalAlign,opacity:k.keyOpacity,":hover":{opacity:k.keyOpacityHover}},"object-size":{color:V.objectSize,borderRadius:k.objectSizeBorderRadius,fontStyle:k.objectSizeFontStyle,margin:k.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:k.dataTypeFontSize,marginRight:k.dataTypeMarginRight,opacity:k.datatypeOpacity},boolean:{display:"inline-block",color:V.dataTypes.boolean},date:{display:"inline-block",color:V.dataTypes.date},"date-value":{marginLeft:k.dateValueMarginLeft},float:{display:"inline-block",color:V.dataTypes.float},function:{display:"inline-block",color:V.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:V.dataTypes.integer},string:{display:"inline-block",color:V.dataTypes.string},nan:{display:"inline-block",color:V.dataTypes.nan,fontSize:k.nanFontSize,fontWeight:k.nanFontWeight,backgroundColor:V.dataTypes.background,padding:k.nanPadding,borderRadius:k.nanBorderRadius},null:{display:"inline-block",color:V.dataTypes.null,fontSize:k.nullFontSize,fontWeight:k.nullFontWeight,backgroundColor:V.dataTypes.background,padding:k.nullPadding,borderRadius:k.nullBorderRadius},undefined:{display:"inline-block",color:V.dataTypes.undefined,fontSize:k.undefinedFontSize,padding:k.undefinedPadding,borderRadius:k.undefinedBorderRadius,backgroundColor:V.dataTypes.background},regexp:{display:"inline-block",color:V.dataTypes.regexp},"copy-to-clipboard":{cursor:k.clipboardCursor},"copy-icon":{color:V.copyToClipboard,fontSize:k.iconFontSize,marginRight:k.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:V.copyToClipboardCheck,marginLeft:k.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:k.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:k.metaDataPadding},"icon-container":{display:"inline-block",width:k.iconContainerWidth},tooltip:{padding:k.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:V.editVariable.removeIcon,cursor:k.iconCursor,fontSize:k.iconFontSize,marginRight:k.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:V.editVariable.addIcon,cursor:k.iconCursor,fontSize:k.iconFontSize,marginRight:k.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:V.editVariable.editIcon,cursor:k.iconCursor,fontSize:k.iconFontSize,marginRight:k.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:k.iconCursor,color:V.editVariable.checkIcon,fontSize:k.iconFontSize,paddingRight:k.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:k.iconCursor,color:V.editVariable.cancelIcon,fontSize:k.iconFontSize,paddingRight:k.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:k.editInputMinWidth,borderRadius:k.editInputBorderRadius,backgroundColor:V.editVariable.background,color:V.editVariable.color,padding:k.editInputPadding,marginRight:k.editInputMarginRight,fontFamily:k.editInputFontFamily},"detected-row":{paddingTop:k.detectedRowPaddingTop},"key-modal-request":{position:k.addKeyCoverPosition,top:k.addKeyCoverPositionPx,left:k.addKeyCoverPositionPx,right:k.addKeyCoverPositionPx,bottom:k.addKeyCoverPositionPx,backgroundColor:k.addKeyCoverBackground},"key-modal":{width:k.addKeyModalWidth,backgroundColor:V.addKeyModal.background,marginLeft:k.addKeyModalMargin,marginRight:k.addKeyModalMargin,padding:k.addKeyModalPadding,borderRadius:k.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:V.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:V.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:V.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:V.addKeyModal.labelColor,fontSize:k.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:V.editVariable.addIcon,fontSize:k.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:V.ellipsisColor,fontSize:k.ellipsisFontSize,lineHeight:k.ellipsisLineHeight,cursor:k.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:V.validationFailure.fontColor,backgroundColor:V.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:V.validationFailure.iconColor,fontSize:k.iconFontSize,transform:"rotate(45deg)"}}};function A(z,V,I){return z||console.error("theme has not been set"),function(F){var L=j;return F!==!1&&F!=="none"||(L=M),Object(N.createStyling)(D,{defaultBase16:L})(F)}(z)(V,I)}var H=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=(F.rjvId,F.type_name),te=F.displayDataTypes,ue=F.theme;return te?h.a.createElement("span",Object.assign({className:"data-type-label"},A(ue,"data-type-label")),L):null}}]),I}(h.a.PureComponent),B=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props;return h.a.createElement("div",A(F.theme,"boolean"),h.a.createElement(H,Object.assign({type_name:"bool"},F)),F.value?"true":"false")}}]),I}(h.a.PureComponent),U=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props;return h.a.createElement("div",A(F.theme,"date"),h.a.createElement(H,Object.assign({type_name:"date"},F)),h.a.createElement("span",Object.assign({className:"date-value"},A(F.theme,"date-value")),F.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),I}(h.a.PureComponent),q=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props;return h.a.createElement("div",A(F.theme,"float"),h.a.createElement(H,Object.assign({type_name:"float"},F)),this.props.value)}}]),I}(h.a.PureComponent);function re(z,V){(V==null||V>z.length)&&(V=z.length);for(var I=0,F=new Array(V);I"u"||z[Symbol.iterator]==null){if(Array.isArray(z)||(I=ne(z))||V&&z&&typeof z.length=="number"){I&&(z=I);var F=0,L=function(){};return{s:L,n:function(){return F>=z.length?{done:!0}:{done:!1,value:z[F++]}},e:function(J){throw J},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var te,ue=!0,ie=!1;return{s:function(){I=z[Symbol.iterator]()},n:function(){var J=I.next();return ue=J.done,J},e:function(J){ie=!0,te=J},f:function(){try{ue||I.return==null||I.return()}finally{if(ie)throw te}}}}function ve(z){return function(V){if(Array.isArray(V))return re(V)}(z)||function(V){if(typeof Symbol<"u"&&Symbol.iterator in Object(V))return Array.from(V)}(z)||ne(z)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Se=a(46),we=new(a(47)).Dispatcher,Re=new(function(z){v(I,z);var V=m(I);function I(){var F;l(this,I);for(var L=arguments.length,te=new Array(L),ue=0;ueL&&(ie.style.cursor="pointer",this.state.collapsed&&(ue=h.a.createElement("span",null,ue.substring(0,L),h.a.createElement("span",A(te,"ellipsis")," ...")))),h.a.createElement("div",A(te,"string"),h.a.createElement(H,Object.assign({type_name:"string"},F)),h.a.createElement("span",Object.assign({className:"string-value"},ie,{onClick:this.toggleCollapsed}),'"',ue,'"'))}}]),I}(h.a.PureComponent),ke=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){return h.a.createElement("div",A(this.props.theme,"undefined"),"undefined")}}]),I}(h.a.PureComponent);function Xe(){return(Xe=Object.assign||function(z){for(var V=1;V=0||(Qd[cn]=Ze[cn]);return Qd}(z,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Ae,at=ae.value!==void 0,ft=Object(b.useRef)(null),Ct=Q(ft,V),ot=Object(b.useRef)(0),_t=Object(b.useRef)(),Kt=function(){var Ze=ft.current,cr=I&&_t.current?_t.current:function(Mo){var Xd=window.getComputedStyle(Mo);if(Xd===null)return null;var is,Or=(is=Xd,X.reduce(function(vu,ls){return vu[ls]=is[ls],vu},{})),ss=Or.boxSizing;return ss===""?null:(K&&ss==="border-box"&&(Or.width=parseFloat(Or.width)+parseFloat(Or.borderRightWidth)+parseFloat(Or.borderLeftWidth)+parseFloat(Or.paddingRight)+parseFloat(Or.paddingLeft)+"px"),{sizingStyle:Or,paddingSize:parseFloat(Or.paddingBottom)+parseFloat(Or.paddingTop),borderSize:parseFloat(Or.borderBottomWidth)+parseFloat(Or.borderTopWidth)})}(Ze);if(cr){_t.current=cr;var cn=function(Mo,Xd,is,Or){is===void 0&&(is=1),Or===void 0&&(Or=1/0),ce||((ce=document.createElement("textarea")).setAttribute("tab-index","-1"),ce.setAttribute("aria-hidden","true"),ye(ce)),ce.parentNode===null&&document.body.appendChild(ce);var ss=Mo.paddingSize,vu=Mo.borderSize,ls=Mo.sizingStyle,t_=ls.boxSizing;Object.keys(ls).forEach(function(bg){var us=bg;ce.style[us]=ls[us]}),ye(ce),ce.value=Xd;var Yd=function(bg,us){var r_=bg.scrollHeight;return us.sizingStyle.boxSizing==="border-box"?r_+us.borderSize:r_-us.paddingSize}(ce,Mo);ce.value="x";var mg=ce.scrollHeight-ss,gg=mg*is;t_==="border-box"&&(gg=gg+ss+vu),Yd=Math.max(gg,Yd);var yg=mg*Or;return t_==="border-box"&&(yg=yg+ss+vu),[Yd=Math.min(yg,Yd),mg]}(cr,Ze.value||Ze.placeholder||"x",L,F),Ao=cn[0],Qd=cn[1];ot.current!==Ao&&(ot.current=Ao,Ze.style.setProperty("height",Ao+"px","important"),J(Ao,{rowHeight:Qd}))}};return Object(b.useLayoutEffect)(Kt),Ae=Ke(Kt),Object(b.useLayoutEffect)(function(){var Ze=function(cr){Ae.current(cr)};return window.addEventListener("resize",Ze),function(){window.removeEventListener("resize",Ze)}},[]),Object(b.createElement)("textarea",Xe({},ae,{onChange:function(Ze){at||Kt(),ue(Ze)},ref:Ct}))},Z=Object(b.forwardRef)(G);function oe(z){z=z.trim();try{if((z=JSON.stringify(JSON.parse(z)))[0]==="[")return Pe("array",JSON.parse(z));if(z[0]==="{")return Pe("object",JSON.parse(z));if(z.match(/\-?\d+\.\d+/)&&z.match(/\-?\d+\.\d+/)[0]===z)return Pe("float",parseFloat(z));if(z.match(/\-?\d+e-\d+/)&&z.match(/\-?\d+e-\d+/)[0]===z)return Pe("float",Number(z));if(z.match(/\-?\d+/)&&z.match(/\-?\d+/)[0]===z)return Pe("integer",parseInt(z));if(z.match(/\-?\d+e\+\d+/)&&z.match(/\-?\d+e\+\d+/)[0]===z)return Pe("integer",Number(z))}catch{}switch(z=z.toLowerCase()){case"undefined":return Pe("undefined",void 0);case"nan":return Pe("nan",NaN);case"null":return Pe("null",null);case"true":return Pe("boolean",!0);case"false":return Pe("boolean",!1);default:if(z=Date.parse(z))return Pe("date",new Date(z))}return Pe(!1,null)}function Pe(z,V){return{type:z,value:V}}var Ve=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",Object.assign({},Ye(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),I}(h.a.PureComponent),Ue=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",Object.assign({},Ye(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),I}(h.a.PureComponent),Ee=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]),ue=Ye(L).style;return h.a.createElement("span",te,h.a.createElement("svg",{fill:ue.color,width:ue.height,height:ue.width,style:ue,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),We=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]),ue=Ye(L).style;return h.a.createElement("span",te,h.a.createElement("svg",{fill:ue.color,width:ue.height,height:ue.width,style:ue,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),me=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",{style:u(u({},Ye(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),I}(h.a.PureComponent),$e=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",{style:u(u({},Ye(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),I}(h.a.PureComponent),ze=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",Object.assign({},Ye(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),I}(h.a.PureComponent),Ge=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",Object.assign({},Ye(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),st=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",Object.assign({},Ye(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),wt=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",Object.assign({},Ye(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),I}(h.a.PureComponent),Rt=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",Object.assign({},Ye(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),I}(h.a.PureComponent),St=function(z){v(I,z);var V=m(I);function I(){return l(this,I),V.apply(this,arguments)}return f(I,[{key:"render",value:function(){var F=this.props,L=F.style,te=T(F,["style"]);return h.a.createElement("span",te,h.a.createElement("svg",Object.assign({},Ye(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent);function Ye(z){return z||(z={}),{style:u(u({verticalAlign:"middle"},z),{},{color:z.color?z.color:"#000000",height:"1em",width:"1em"})}}var Mt=function(z){v(I,z);var V=m(I);function I(F){var L;return l(this,I),(L=V.call(this,F)).copiedTimer=null,L.handleCopy=function(){var te=document.createElement("textarea"),ue=L.props,ie=ue.clickCallback,J=ue.src,ae=ue.namespace;te.innerHTML=JSON.stringify(L.clipboardValue(J),null," "),document.body.appendChild(te),te.select(),document.execCommand("copy"),document.body.removeChild(te),L.copiedTimer=setTimeout(function(){L.setState({copied:!1})},5500),L.setState({copied:!0},function(){typeof ie=="function"&&ie({src:J,namespace:ae,name:ae[ae.length-1]})})},L.getClippyIcon=function(){var te=L.props.theme;return L.state.copied?h.a.createElement("span",null,h.a.createElement(ze,Object.assign({className:"copy-icon"},A(te,"copy-icon"))),h.a.createElement("span",A(te,"copy-icon-copied"),"✔")):h.a.createElement(ze,Object.assign({className:"copy-icon"},A(te,"copy-icon")))},L.clipboardValue=function(te){switch($(te)){case"function":case"regexp":return te.toString();default:return te}},L.state={copied:!1},L}return f(I,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var F=this.props,L=(F.src,F.theme),te=F.hidden,ue=F.rowHovered,ie=A(L,"copy-to-clipboard").style,J="inline";return te&&(J="none"),h.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:ue?"inline-block":"none"}},h.a.createElement("span",{style:u(u({},ie),{},{display:J}),onClick:this.handleCopy},this.getClippyIcon()))}}]),I}(h.a.PureComponent),ur=function(z){v(I,z);var V=m(I);function I(F){var L;return l(this,I),(L=V.call(this,F)).getEditIcon=function(){var te=L.props,ue=te.variable,ie=te.theme;return h.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(Rt,Object.assign({className:"click-to-edit-icon"},A(ie,"editVarIcon"),{onClick:function(){L.prepopInput(ue)}})))},L.prepopInput=function(te){if(L.props.onEdit!==!1){var ue=function(J){var ae;switch($(J)){case"undefined":ae="undefined";break;case"nan":ae="NaN";break;case"string":ae=J;break;case"date":case"function":case"regexp":ae=J.toString();break;default:try{ae=JSON.stringify(J,null," ")}catch{ae=""}}return ae}(te.value),ie=oe(ue);L.setState({editMode:!0,editValue:ue,parsedInput:{type:ie.type,value:ie.value}})}},L.getRemoveIcon=function(){var te=L.props,ue=te.variable,ie=te.namespace,J=te.theme,ae=te.rjvId;return h.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(Ge,Object.assign({className:"click-to-remove-icon"},A(J,"removeVarIcon"),{onClick:function(){we.dispatch({name:"VARIABLE_REMOVED",rjvId:ae,data:{name:ue.name,namespace:ie,existing_value:ue.value,variable_removed:!0}})}})))},L.getValue=function(te,ue){var ie=!ue&&te.type,J=w(L).props;switch(ie){case!1:return L.getEditInput();case"string":return h.a.createElement(Ie,Object.assign({value:te.value},J));case"integer":return h.a.createElement(Oe,Object.assign({value:te.value},J));case"float":return h.a.createElement(q,Object.assign({value:te.value},J));case"boolean":return h.a.createElement(B,Object.assign({value:te.value},J));case"function":return h.a.createElement(xe,Object.assign({value:te.value},J));case"null":return h.a.createElement(je,J);case"nan":return h.a.createElement(Te,J);case"undefined":return h.a.createElement(ke,J);case"date":return h.a.createElement(U,Object.assign({value:te.value},J));case"regexp":return h.a.createElement(Ce,Object.assign({value:te.value},J));default:return h.a.createElement("div",{className:"object-value"},JSON.stringify(te.value))}},L.getEditInput=function(){var te=L.props.theme,ue=L.state.editValue;return h.a.createElement("div",null,h.a.createElement(Z,Object.assign({type:"text",inputRef:function(ie){return ie&&ie.focus()},value:ue,className:"variable-editor",onChange:function(ie){var J=ie.target.value,ae=oe(J);L.setState({editValue:J,parsedInput:{type:ae.type,value:ae.value}})},onKeyDown:function(ie){switch(ie.key){case"Escape":L.setState({editMode:!1,editValue:""});break;case"Enter":(ie.ctrlKey||ie.metaKey)&&L.submitEdit(!0)}ie.stopPropagation()},placeholder:"update this value",minRows:2},A(te,"edit-input"))),h.a.createElement("div",A(te,"edit-icon-container"),h.a.createElement(Ge,Object.assign({className:"edit-cancel"},A(te,"cancel-icon"),{onClick:function(){L.setState({editMode:!1,editValue:""})}})),h.a.createElement(St,Object.assign({className:"edit-check string-value"},A(te,"check-icon"),{onClick:function(){L.submitEdit()}})),h.a.createElement("div",null,L.showDetected())))},L.submitEdit=function(te){var ue=L.props,ie=ue.variable,J=ue.namespace,ae=ue.rjvId,Ae=L.state,at=Ae.editValue,ft=Ae.parsedInput,Ct=at;te&&ft.type&&(Ct=ft.value),L.setState({editMode:!1}),we.dispatch({name:"VARIABLE_UPDATED",rjvId:ae,data:{name:ie.name,namespace:J,existing_value:ie.value,new_value:Ct,variable_removed:!1}})},L.showDetected=function(){var te=L.props,ue=te.theme,ie=(te.variable,te.namespace,te.rjvId,L.state.parsedInput),J=(ie.type,ie.value,L.getDetectedInput());if(J)return h.a.createElement("div",null,h.a.createElement("div",A(ue,"detected-row"),J,h.a.createElement(St,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},A(ue,"check-icon").style),onClick:function(){L.submitEdit(!0)}})))},L.getDetectedInput=function(){var te=L.state.parsedInput,ue=te.type,ie=te.value,J=w(L).props,ae=J.theme;if(ue!==!1)switch(ue.toLowerCase()){case"object":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},A(ae,"brace").style),{},{cursor:"default"})},"{"),h.a.createElement("span",{style:u(u({},A(ae,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},A(ae,"brace").style),{},{cursor:"default"})},"}"));case"array":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},A(ae,"brace").style),{},{cursor:"default"})},"["),h.a.createElement("span",{style:u(u({},A(ae,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},A(ae,"brace").style),{},{cursor:"default"})},"]"));case"string":return h.a.createElement(Ie,Object.assign({value:ie},J));case"integer":return h.a.createElement(Oe,Object.assign({value:ie},J));case"float":return h.a.createElement(q,Object.assign({value:ie},J));case"boolean":return h.a.createElement(B,Object.assign({value:ie},J));case"function":return h.a.createElement(xe,Object.assign({value:ie},J));case"null":return h.a.createElement(je,J);case"nan":return h.a.createElement(Te,J);case"undefined":return h.a.createElement(ke,J);case"date":return h.a.createElement(U,Object.assign({value:new Date(ie)},J))}},L.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},L}return f(I,[{key:"render",value:function(){var F=this,L=this.props,te=L.variable,ue=L.singleIndent,ie=L.type,J=L.theme,ae=L.namespace,Ae=L.indentWidth,at=L.enableClipboard,ft=L.onEdit,Ct=L.onDelete,ot=L.onSelect,_t=L.displayArrayKey,Kt=L.quotesOnKeys,Ze=this.state.editMode;return h.a.createElement("div",Object.assign({},A(J,"objectKeyVal",{paddingLeft:Ae*ue}),{onMouseEnter:function(){return F.setState(u(u({},F.state),{},{hovered:!0}))},onMouseLeave:function(){return F.setState(u(u({},F.state),{},{hovered:!1}))},className:"variable-row",key:te.name}),ie=="array"?_t?h.a.createElement("span",Object.assign({},A(J,"array-key"),{key:te.name+"_"+ae}),te.name,h.a.createElement("div",A(J,"colon"),":")):null:h.a.createElement("span",null,h.a.createElement("span",Object.assign({},A(J,"object-name"),{className:"object-key",key:te.name+"_"+ae}),!!Kt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",{style:{display:"inline-block"}},te.name),!!Kt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",A(J,"colon"),":")),h.a.createElement("div",Object.assign({className:"variable-value",onClick:ot===!1&&ft===!1?null:function(cr){var cn=ve(ae);(cr.ctrlKey||cr.metaKey)&&ft!==!1?F.prepopInput(te):ot!==!1&&(cn.shift(),ot(u(u({},te),{},{namespace:cn})))}},A(J,"variableValue",{cursor:ot===!1?"default":"pointer"})),this.getValue(te,Ze)),at?h.a.createElement(Mt,{rowHovered:this.state.hovered,hidden:Ze,src:te.value,clickCallback:at,theme:J,namespace:[].concat(ve(ae),[te.name])}):null,ft!==!1&&Ze==0?this.getEditIcon():null,Ct!==!1&&Ze==0?this.getRemoveIcon():null)}}]),I}(h.a.PureComponent),sn=function(z){v(I,z);var V=m(I);function I(){var F;l(this,I);for(var L=arguments.length,te=new Array(L),ue=0;ue0?at:null,namespace:Ae.splice(0,Ae.length-1),existing_value:ft,variable_removed:!1,key_name:null};$(ft)==="object"?we.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Ct,data:_t}):we.dispatch({name:"VARIABLE_ADDED",rjvId:Ct,data:u(u({},_t),{},{new_value:[].concat(ve(ft),[null])})})}})))},F.getRemoveObject=function(ie){var J=F.props,ae=J.theme,Ae=(J.hover,J.namespace),at=J.name,ft=J.src,Ct=J.rjvId;if(Ae.length!==1)return h.a.createElement("span",{className:"click-to-remove",style:{display:ie?"inline-block":"none"}},h.a.createElement(Ge,Object.assign({className:"click-to-remove-icon"},A(ae,"removeVarIcon"),{onClick:function(){we.dispatch({name:"VARIABLE_REMOVED",rjvId:Ct,data:{name:at,namespace:Ae.splice(0,Ae.length-1),existing_value:ft,variable_removed:!0}})}})))},F.render=function(){var ie=F.props,J=ie.theme,ae=ie.onDelete,Ae=ie.onAdd,at=ie.enableClipboard,ft=ie.src,Ct=ie.namespace,ot=ie.rowHovered;return h.a.createElement("div",Object.assign({},A(J,"object-meta-data"),{className:"object-meta-data",onClick:function(_t){_t.stopPropagation()}}),F.getObjectSize(),at?h.a.createElement(Mt,{rowHovered:ot,clickCallback:at,src:ft,theme:J,namespace:Ct}):null,Ae!==!1?F.getAddAttribute(ot):null,ae!==!1?F.getRemoveObject(ot):null)},F}return I}(h.a.PureComponent);function Vr(z){var V=z.parent_type,I=z.namespace,F=z.quotesOnKeys,L=z.theme,te=z.jsvRoot,ue=z.name,ie=z.displayArrayKey,J=z.name?z.name:"";return!te||ue!==!1&&ue!==null?V=="array"?ie?h.a.createElement("span",Object.assign({},A(L,"array-key"),{key:I}),h.a.createElement("span",{className:"array-key"},J),h.a.createElement("span",A(L,"colon"),":")):h.a.createElement("span",null):h.a.createElement("span",Object.assign({},A(L,"object-name"),{key:I}),h.a.createElement("span",{className:"object-key"},F&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",null,J),F&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",A(L,"colon"),":")):h.a.createElement("span",null)}function Ar(z){var V=z.theme;switch(z.iconStyle){case"triangle":return h.a.createElement($e,Object.assign({},A(V,"expanded-icon"),{className:"expanded-icon"}));case"square":return h.a.createElement(Ee,Object.assign({},A(V,"expanded-icon"),{className:"expanded-icon"}));default:return h.a.createElement(Ve,Object.assign({},A(V,"expanded-icon"),{className:"expanded-icon"}))}}function ln(z){var V=z.theme;switch(z.iconStyle){case"triangle":return h.a.createElement(me,Object.assign({},A(V,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h.a.createElement(We,Object.assign({},A(V,"collapsed-icon"),{className:"collapsed-icon"}));default:return h.a.createElement(Ue,Object.assign({},A(V,"collapsed-icon"),{className:"collapsed-icon"}))}}var ua=function(z){v(I,z);var V=m(I);function I(F){var L;return l(this,I),(L=V.call(this,F)).toggleCollapsed=function(te){var ue=[];for(var ie in L.state.expanded)ue.push(L.state.expanded[ie]);ue[te]=!ue[te],L.setState({expanded:ue})},L.state={expanded:[]},L}return f(I,[{key:"getExpandedIcon",value:function(F){var L=this.props,te=L.theme,ue=L.iconStyle;return this.state.expanded[F]?h.a.createElement(Ar,{theme:te,iconStyle:ue}):h.a.createElement(ln,{theme:te,iconStyle:ue})}},{key:"render",value:function(){var F=this,L=this.props,te=L.src,ue=L.groupArraysAfterLength,ie=(L.depth,L.name),J=L.theme,ae=L.jsvRoot,Ae=L.namespace,at=(L.parent_type,T(L,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),ft=0,Ct=5*this.props.indentWidth;ae||(ft=5*this.props.indentWidth);var ot=ue,_t=Math.ceil(te.length/ot);return h.a.createElement("div",Object.assign({className:"object-key-val"},A(J,ae?"jsv-root":"objectKeyVal",{paddingLeft:ft})),h.a.createElement(Vr,this.props),h.a.createElement("span",null,h.a.createElement(sn,Object.assign({size:te.length},this.props))),ve(Array(_t)).map(function(Kt,Ze){return h.a.createElement("div",Object.assign({key:Ze,className:"object-key-val array-group"},A(J,"objectKeyVal",{marginLeft:6,paddingLeft:Ct})),h.a.createElement("span",A(J,"brace-row"),h.a.createElement("div",Object.assign({className:"icon-container"},A(J,"icon-container"),{onClick:function(cr){F.toggleCollapsed(Ze)}}),F.getExpandedIcon(Ze)),F.state.expanded[Ze]?h.a.createElement(uo,Object.assign({key:ie+Ze,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:ot,index_offset:Ze*ot,src:te.slice(Ze*ot,Ze*ot+ot),namespace:Ae,type:"array",parent_type:"array_group",theme:J},at)):h.a.createElement("span",Object.assign({},A(J,"brace"),{onClick:function(cr){F.toggleCollapsed(Ze)},className:"array-group-brace"}),"[",h.a.createElement("div",Object.assign({},A(J,"array-group-meta-data"),{className:"array-group-meta-data"}),h.a.createElement("span",Object.assign({className:"object-size"},A(J,"object-size")),Ze*ot," - ",Ze*ot+ot>te.length?te.length:Ze*ot+ot)),"]")))}))}}]),I}(h.a.PureComponent),Io=function(z){v(I,z);var V=m(I);function I(F){var L;l(this,I),(L=V.call(this,F)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){pe.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(ue,ie,J){return h.a.createElement("div",{className:"pushed-content object-container"},h.a.createElement("div",Object.assign({className:"object-content"},A(L.props.theme,"pushed-content")),L.renderObjectContents(ie,J)))},L.getEllipsis=function(){return L.state.size===0?null:h.a.createElement("div",Object.assign({},A(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(ue){var ie=L.props,J=(ie.rjvId,ie.theme,L.state),ae=J.size,Ae=J.hovered;return h.a.createElement(sn,Object.assign({rowHovered:Ae,size:ae},L.props))},L.renderObjectContents=function(ue,ie){var J,ae=L.props,Ae=ae.depth,at=ae.parent_type,ft=ae.index_offset,Ct=ae.groupArraysAfterLength,ot=ae.namespace,_t=L.state.object_type,Kt=[],Ze=Object.keys(ue||{});return L.props.sortKeys&&_t!=="array"&&(Ze=Ze.sort()),Ze.forEach(function(cr){if(J=new hg(cr,ue[cr]),at==="array_group"&&ft&&(J.name=parseInt(J.name)+ft),ue.hasOwnProperty(cr))if(J.type==="object")Kt.push(h.a.createElement(uo,Object.assign({key:J.name,depth:Ae+1,name:J.name,src:J.value,namespace:ot.concat(J.name),parent_type:_t},ie)));else if(J.type==="array"){var cn=uo;Ct&&J.value.length>Ct&&(cn=ua),Kt.push(h.a.createElement(cn,Object.assign({key:J.name,depth:Ae+1,name:J.name,src:J.value,namespace:ot.concat(J.name),type:"array",parent_type:_t},ie)))}else Kt.push(h.a.createElement(ur,Object.assign({key:J.name+"_"+ot,variable:J,singleIndent:5,namespace:ot,type:L.props.type},ie)))}),Kt};var te=I.getState(F);return L.state=u(u({},te),{},{prevProps:{}}),L}return f(I,[{key:"getBraceStart",value:function(F,L){var te=this,ue=this.props,ie=ue.src,J=ue.theme,ae=ue.iconStyle;if(ue.parent_type==="array_group")return h.a.createElement("span",null,h.a.createElement("span",A(J,"brace"),F==="array"?"[":"{"),L?this.getObjectMetaData(ie):null);var Ae=L?Ar:ln;return h.a.createElement("span",null,h.a.createElement("span",Object.assign({onClick:function(at){te.toggleCollapsed()}},A(J,"brace-row")),h.a.createElement("div",Object.assign({className:"icon-container"},A(J,"icon-container")),h.a.createElement(Ae,{theme:J,iconStyle:ae})),h.a.createElement(Vr,this.props),h.a.createElement("span",A(J,"brace"),F==="array"?"[":"{")),L?this.getObjectMetaData(ie):null)}},{key:"render",value:function(){var F=this,L=this.props,te=L.depth,ue=L.src,ie=(L.namespace,L.name,L.type,L.parent_type),J=L.theme,ae=L.jsvRoot,Ae=L.iconStyle,at=T(L,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),ft=this.state,Ct=ft.object_type,ot=ft.expanded,_t={};return ae||ie==="array_group"?ie==="array_group"&&(_t.borderLeft=0,_t.display="inline"):_t.paddingLeft=5*this.props.indentWidth,h.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return F.setState(u(u({},F.state),{},{hovered:!0}))},onMouseLeave:function(){return F.setState(u(u({},F.state),{},{hovered:!1}))}},A(J,ae?"jsv-root":"objectKeyVal",_t)),this.getBraceStart(Ct,ot),ot?this.getObjectContent(te,ue,u({theme:J,iconStyle:Ae},at)):this.getEllipsis(),h.a.createElement("span",{className:"brace-row"},h.a.createElement("span",{style:u(u({},A(J,"brace").style),{},{paddingLeft:ot?"3px":"0px"})},Ct==="array"?"]":"}"),ot?null:this.getObjectMetaData(ue)))}}],[{key:"getDerivedStateFromProps",value:function(F,L){var te=L.prevProps;return F.src!==te.src||F.collapsed!==te.collapsed||F.name!==te.name||F.namespace!==te.namespace||F.rjvId!==te.rjvId?u(u({},I.getState(F)),{},{prevProps:F}):null}}]),I}(h.a.PureComponent);Io.getState=function(z){var V=Object.keys(z.src).length,I=(z.collapsed===!1||z.collapsed!==!0&&z.collapsed>z.depth)&&(!z.shouldCollapse||z.shouldCollapse({name:z.name,src:z.src,type:$(z.src),namespace:z.namespace})===!1)&&V!==0;return{expanded:pe.get(z.rjvId,z.namespace,"expanded",I),object_type:z.type==="array"?"array":"object",parent_type:z.type==="array"?"array":"object",size:V,hovered:!1}};var hg=function z(V,I){l(this,z),this.name=V,this.value=I,this.type=$(I)};E(Io);var uo=Io,hu=function(z){v(I,z);var V=m(I);function I(){var F;l(this,I);for(var L=arguments.length,te=new Array(L),ue=0;ueie.groupArraysAfterLength&&(ae=ua),h.a.createElement("div",{className:"pretty-json-container object-container"},h.a.createElement("div",{className:"object-content"},h.a.createElement(ae,Object.assign({namespace:J,depth:0,jsvRoot:!0},ie))))},F}return I}(h.a.PureComponent),un=function(z){v(I,z);var V=m(I);function I(F){var L;return l(this,I),(L=V.call(this,F)).closeModal=function(){we.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:F.input?F.input:""},L}return f(I,[{key:"render",value:function(){var F=this,L=this.props,te=L.theme,ue=L.rjvId,ie=L.isValid,J=this.state.input,ae=ie(J);return h.a.createElement("div",Object.assign({className:"key-modal-request"},A(te,"key-modal-request"),{onClick:this.closeModal}),h.a.createElement("div",Object.assign({},A(te,"key-modal"),{onClick:function(Ae){Ae.stopPropagation()}}),h.a.createElement("div",A(te,"key-modal-label"),"Key Name:"),h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("input",Object.assign({},A(te,"key-modal-input"),{className:"key-modal-input",ref:function(Ae){return Ae&&Ae.focus()},spellCheck:!1,value:J,placeholder:"...",onChange:function(Ae){F.setState({input:Ae.target.value})},onKeyPress:function(Ae){ae&&Ae.key==="Enter"?F.submit():Ae.key==="Escape"&&F.closeModal()}})),ae?h.a.createElement(St,Object.assign({},A(te,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Ae){return F.submit()}})):null),h.a.createElement("span",A(te,"key-modal-cancel"),h.a.createElement(wt,Object.assign({},A(te,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){we.dispatch({rjvId:ue,name:"RESET"})}})))))}}]),I}(h.a.PureComponent),ii=function(z){v(I,z);var V=m(I);function I(){var F;l(this,I);for(var L=arguments.length,te=new Array(L),ue=0;ue{const e=Lt();return R.jsx(bF,{...e,children:R.jsx(R4,{})})},NEe=e=>R.jsx(hF,{...e,children:R.jsx(R4,{})}),R4=e=>R.jsxs(SF,{...e,children:[R.jsx(dn,{disabled:!0,source:"id",helperText:"Job id. Must be unique, it's a copy of name."}),R.jsx(dn,{source:"name",helperText:"Job name. Must be unique, acts as the id.",validate:qs()}),R.jsx(dn,{source:"displayname",helperText:"Display name of the job. If present, displayed instead of the name."}),R.jsx(dn,{source:"timezone",helperText:"The timezone where the cron expression will be evaluated in."}),R.jsx(dn,{source:"schedule",helperText:"Cron expression for the job. When to run the job.",validate:qs()}),R.jsx(dn,{source:"owner",helperText:"Arbitrary string indicating the owner of the job.",disabled:!0}),R.jsx(dn,{source:"owner_email",helperText:"Email address to use for notifications."}),R.jsx(dn,{source:"parent_job",helperText:"Job id of job that this job is dependent upon."}),R.jsx(Yh,{source:"ephemeral",helperText:"Delete the job after the first successful execution."}),R.jsx(iF,{source:"expires_at",helperText:"The job will not be executed after this time."}),R.jsx(PC,{source:"concurrency",choices:[{id:"allow",name:"Allow"},{id:"forbid",name:"Forbid"}],helperText:"Concurrency policy for this job (allow, forbid)."}),R.jsx(Ff,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Processor plugins to use for this job."}),R.jsx(Ff,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Tags of the target servers to run this job against."}),R.jsx(Ff,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Job metadata describes the job and allows filtering from the API."}),R.jsx(dn,{source:"executor",helperText:"Executor plugin to be used in this job.",validate:qs()}),R.jsx(Ff,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!0,enableClipboard:!1,displayDataTypes:!1},helperText:"Configuration arguments for the specific executor.",validate:qs()}),R.jsx(Yh,{source:"disabled",helperText:"Is this job disabled?"}),R.jsx(EC,{source:"retries",helperText:"Number of times to retry a job that failed an execution."})]});var GC={},LEe=tt;Object.defineProperty(GC,"__esModule",{value:!0});var k4=GC.default=void 0,DEe=LEe(rt()),BEe=R;k4=GC.default=(0,DEe.default)((0,BEe.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const zEe=()=>{const e=Lt(),t=ia(),r=Zt(),[n,o]=d.useState(!1),a=()=>{o(!0),fetch(`${as}/jobs/${e.id}/toggle`,{method:"POST"}).then(()=>{r("Job toggled"),t()}).catch(i=>{r("Error on toggle job",{type:"warning"})}).finally(()=>{o(!1)})};return R.jsx(_r,{label:"Toggle",onClick:a,disabled:n,children:R.jsx(k4,{})})},VEe=()=>{const e=Lt(),t=ia(),r=Zt(),[n,o]=d.useState(!1),a=()=>{o(!0),fetch(`${as}/jobs/${e.id}`,{method:"POST"}).then(()=>{r("Success running job"),t()}).catch(i=>{r("Error on running job",{type:"warning"})}).finally(()=>{o(!1)})};return R.jsx(_r,{label:"Run",onClick:a,disabled:n,children:R.jsx(fg,{})})},UEe=e=>(e.record!==void 0&&e.source!==void 0&&e.record[e.source]==="0001-01-01T00:00:00Z"&&(e.record[e.source]=null),R.jsx(xo,{...e}));var QC={},WEe=tt;Object.defineProperty(QC,"__esModule",{value:!0});var j4=QC.default=void 0,HEe=WEe(rt()),qEe=R;j4=QC.default=(0,HEe.default)((0,qEe.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"}),"BatteryFull");const KEe=({basePath:e,data:t,resource:r})=>R.jsxs(aC,{children:[R.jsx(VEe,{}),R.jsx(zEe,{}),R.jsx(ig,{record:t})]}),GEe=e=>e.record!==void 0&&e.record.finished_at===null?R.jsx(Dr,{title:"Running",children:R.jsx(ag,{})}):R.jsx(TF,{...e}),QEe=({record:e})=>{const t=Zt(),[r,n]=d.useState(!1),o=()=>{n(!0),fetch(`${as}/jobs/${e.job_name}/executions/${e.id}`).then(a=>{if(a.ok)return t("Success loading full output"),a.json();throw a}).then(a=>{e.output_truncated=!1,e.output=a.output}).catch(a=>{t("Error on loading full output",{type:"warning"})}).finally(()=>{n(!1)})};return R.jsx(_r,{label:"Load full output",onClick:o,disabled:r,children:R.jsx(j4,{})})},XEe=({id:e,record:t,resource:r})=>R.jsxs("div",{className:"execution-output",children:[t.output_truncated?R.jsx("div",{children:R.jsx(QEe,{record:t})}):"",t.output||"Nothing to show"]}),YEe=e=>R.jsx(EF,{actions:R.jsx(KEe,{...e}),...e,children:R.jsxs(jC,{children:[R.jsxs(lv,{label:"summary",children:[R.jsx(Qt,{source:"name"}),R.jsx(Qt,{source:"timezone"}),R.jsx(Qt,{source:"schedule"}),R.jsx(xo,{label:"Last success",source:"last_success",showTime:!0}),R.jsx(xo,{source:"last_error",showTime:!0}),R.jsx(Qt,{source:"status"}),R.jsx(Qt,{source:"concurrency"}),R.jsx(TF,{source:"ephemeral"}),R.jsx(xo,{source:"expires_at",showTime:!0}),R.jsx(xo,{source:"next",sortable:!1,showTime:!0}),R.jsx(Mf,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(Mf,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(Mf,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1}}),R.jsx(Qt,{source:"executor"}),R.jsx(Mf,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}})]}),R.jsx(lv,{label:"executions",path:"executions",children:R.jsx(RF,{reference:"executions",target:"jobs",label:"Executions",children:R.jsxs(fu,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(XEe,{...e}),children:[R.jsx(Qt,{source:"id"}),R.jsx(Qt,{source:"group",sortable:!1}),R.jsx(Qt,{source:"job_name",sortable:!1}),R.jsx(xo,{source:"started_at",showTime:!0}),R.jsx(UEe,{source:"finished_at",showTime:!0}),R.jsx(Qt,{source:"node_name",sortable:!1}),R.jsx(GEe,{source:"success",sortable:!1}),R.jsx(Cp,{source:"attempt"})]})})})]})}),JEe={list:AEe,edit:FEe,create:NEe,show:YEe,icon:ag},ZEe=({id:e,record:t,resource:r})=>R.jsx("div",{className:"execution-output",children:t.output||"Empty output"}),ePe=e=>R.jsx(cg,{...e,pagination:!1,children:R.jsxs(fu,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(ZEe,{}),children:[R.jsx(Qt,{source:"id",sortable:!1}),R.jsx(Qt,{source:"job_name",sortable:!1}),R.jsx(Qt,{source:"node_name",sortable:!1}),R.jsx(xo,{source:"started_at",sortable:!1,showTime:!0})]})});var XC={},tPe=tt;Object.defineProperty(XC,"__esModule",{value:!0});var I4=XC.default=void 0,rPe=tPe(rt()),nPe=R;I4=XC.default=(0,rPe.default)((0,nPe.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book");class oPe extends d.Component{constructor(t){super(t),this.state={date:new Date}}componentDidMount(){this.timer=setInterval(()=>this.setState({date:new Date}),1e3)}componentWillUnmount(){clearInterval(this.timer)}render(){return R.jsx("div",{className:"clock",children:R.jsx("div",{children:this.state.date.toLocaleTimeString()})})}}const aPe=""+new URL("dkron-logo-2b1c801f.png",import.meta.url).href,zy="CustomAppBar",bl={title:`${zy}-title`,spacer:`${zy}-spacer`,logo:`${zy}-logo`},iPe=Y(zS)({[`& .${bl.title}`]:{flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[`& .${bl.spacer}`]:{flex:1},[`& .${bl.logo}`]:{maxWidth:"125px"}});d.forwardRef((e,t)=>R.jsx(cu,{ref:t,to:"/settings",primaryText:"Settings",leftIcon:R.jsx(JS,{}),onClick:e.onClick}));const sPe=e=>R.jsx(Zm,{...e,children:R.jsx(cu,{to:"https://dkron.io/docs/basics/getting-started",primaryText:"Docs",leftIcon:R.jsx(I4,{})})}),lPe=e=>R.jsxs(iPe,{...e,elevation:1,userMenu:R.jsx(sPe,{}),children:[R.jsx(it,{variant:"h6",color:"inherit",className:bl.title,id:"react-admin-title"}),R.jsx("div",{children:R.jsx($F,{to:"/",color:"inherit",underline:"none",children:R.jsx("img",{src:aPe,alt:"logo",className:bl.logo})})}),R.jsx("span",{className:bl.spacer}),R.jsx(oPe,{})]}),uPe=e=>R.jsx(rC,{...e,size:200}),cPe=e=>R.jsx(f3,{...e,appBar:lPe,sidebar:uPe});const A4=({record:e})=>e===void 0?null:R.jsx("ul",{children:Object.keys(e.Tags).map(t=>R.jsx(xie,{label:t+": "+e.Tags[t]}))});A4.defaultProps={addLabel:!0};var YC={},dPe=tt;Object.defineProperty(YC,"__esModule",{value:!0});var M4=YC.default=void 0,fPe=dPe(rt()),pPe=R;M4=YC.default=(0,fPe.default)((0,pPe.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");const Gd=({icon:e,title:t,subtitle:r,to:n,children:o})=>R.jsxs(ta,{sx:{minHeight:52,display:"flex",flexDirection:"column",flex:"1","& a":{textDecoration:"none",color:"inherit"}},children:[R.jsx(Zo,{to:n,children:R.jsxs(lp,{sx:{position:"relative",overflow:"hidden",padding:"16px",display:"flex",justifyContent:"space-between",alignItems:"center","& .icon":{color:"secondary.main"},"&:before":{position:"absolute",top:"50%",left:0,display:"block",content:"''",height:"200%",aspectRatio:"1",transform:"translate(-30%, -60%)",borderRadius:"50%",backgroundColor:"secondary.main",opacity:.15}},children:[R.jsx(lp,{width:"3em",className:"icon",children:d.createElement(e,{fontSize:"large"})}),R.jsxs(lp,{textAlign:"right",children:[R.jsx(it,{color:"textSecondary",children:t}),R.jsx(it,{variant:"h5",component:"h2",children:r||" "})]})]})}),o&&R.jsx(O0,{}),o]}),hPe=({value:e})=>R.jsx(Gd,{to:"/jobs",icon:M4,title:"Leader",subtitle:e});var JC={},vPe=tt;Object.defineProperty(JC,"__esModule",{value:!0});var F4=JC.default=void 0,mPe=vPe(rt()),gPe=R;F4=JC.default=(0,mPe.default)((0,gPe.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown");const yPe=({value:e})=>R.jsx(Gd,{to:'/jobs?filter={"status":"failed"}',icon:F4,title:"Failed Jobs",subtitle:e});var ZC={},bPe=tt;Object.defineProperty(ZC,"__esModule",{value:!0});var N4=ZC.default=void 0,xPe=bPe(rt()),wPe=R;N4=ZC.default=(0,xPe.default)((0,wPe.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp");const SPe=({value:e})=>R.jsx(Gd,{to:'/jobs?filter={"status":"success"}',icon:N4,title:"Successful Jobs",subtitle:e});var e_={},CPe=tt;Object.defineProperty(e_,"__esModule",{value:!0});var L4=e_.default=void 0,_Pe=CPe(rt()),OPe=R;L4=e_.default=(0,_Pe.default)((0,OPe.jsx)("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"}),"NewReleases");const EPe=({value:e})=>R.jsx(Gd,{to:'/jobs?filter={"status":"untriggered"}',icon:L4,title:"Untriggered Jobs",subtitle:e}),PPe=({value:e})=>R.jsx(Gd,{to:"/jobs",icon:ag,title:"Total Jobs",subtitle:e});let TPe={basePath:"/members",count:10,hasCreate:!1,hasEdit:!1,hasList:!0,hasShow:!1,location:{pathname:"/",search:"",hash:"",state:void 0},match:{path:"/",url:"/",isExact:!0,params:{}},options:{},permissions:null,resource:"members"};const Vy={flex:{display:"flex"},flexColumn:{display:"flex",flexDirection:"column"},leftCol:{flex:1,marginRight:"0.5em"},rightCol:{flex:1,marginLeft:"0.5em"},singleCol:{marginTop:"1em",marginBottom:"1em"}},Nf=()=>R.jsx("span",{style:{width:"1em"}}),$Pe=()=>R.jsxs("div",{children:[R.jsxs(ta,{children:[R.jsx(v2,{title:"Welcome"}),R.jsx(Xi,{children:R.jsx("div",{style:Vy.flex,children:R.jsx("div",{style:Vy.leftCol,children:R.jsxs("div",{style:Vy.flex,children:[R.jsx(hPe,{value:window.DKRON_LEADER||"devel"}),R.jsx(Nf,{}),R.jsx(PPe,{value:window.DKRON_TOTAL_JOBS||"0"}),R.jsx(Nf,{}),R.jsx(SPe,{value:window.DKRON_SUCCESSFUL_JOBS||"0"}),R.jsx(Nf,{}),R.jsx(yPe,{value:window.DKRON_FAILED_JOBS||"0"}),R.jsx(Nf,{}),R.jsx(EPe,{value:window.DKRON_UNTRIGGERED_JOBS||"0"})]})})})})]}),R.jsxs(ta,{children:[R.jsx(v2,{title:"Nodes"}),R.jsx(Xi,{children:R.jsx(cg,{...TPe,children:R.jsxs(fu,{isRowSelectable:e=>!1,children:[R.jsx(Qt,{source:"Name",sortable:!1}),R.jsx(Qt,{source:"Addr",sortable:!1}),R.jsx(Qt,{source:"Port",sortable:!1}),R.jsx(Qt,{label:"Status",source:"statusText",sortable:!1}),R.jsx(A4,{source:"Tags",sortable:!1})]})})})]})]}),RPe=P4({label:{width:"10em",display:"inline-block"},button:{margin:"1em"}}),kPe=()=>(RPe(),R.jsxs(ta,{children:[R.jsx(ai,{title:"Settings"}),R.jsx(Xi,{})]})),jPe=()=>Promise.resolve();bj();const IPe=()=>R.jsxs(n_e,{dashboard:$Pe,authProvider:jPe,dataProvider:u_e,layout:cPe,children:[R.jsx(Hs,{name:"jobs",...JEe}),R.jsx(Hs,{name:"busy",options:{label:"Busy"},list:ePe,icon:c4}),R.jsx(Hs,{name:"executions"}),R.jsx(Hs,{name:"members"}),R.jsx(jI,{children:R.jsx(kr,{path:"/settings",element:R.jsx(kPe,{})})})]});Uy.createRoot(document.getElementById("root")).render(R.jsx(he.StrictMode,{children:R.jsx(IPe,{})})); diff --git a/dkron/ui-dist/assets/index-51a13e26.js b/dkron/ui-dist/assets/index-51a13e26.js new file mode 100644 index 000000000..40dfa4d23 --- /dev/null +++ b/dkron/ui-dist/assets/index-51a13e26.js @@ -0,0 +1,235 @@ +var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e,t,"read from private field"),r?r.call(e):t.get(e)),Xe=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ze=(e,t,r,n)=>(eb(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var jp=(e,t,r,n)=>({set _(a){ze(e,t,a,r)},get _(){return J(e,t,n)}}),pt=(e,t,r)=>(eb(e,t,"access private method"),r);function jk(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Do(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Ik={exports:{}},rm={},Ak={exports:{}},yt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xf=Symbol.for("react.element"),AL=Symbol.for("react.portal"),ML=Symbol.for("react.fragment"),FL=Symbol.for("react.strict_mode"),NL=Symbol.for("react.profiler"),LL=Symbol.for("react.provider"),DL=Symbol.for("react.context"),BL=Symbol.for("react.forward_ref"),zL=Symbol.for("react.suspense"),VL=Symbol.for("react.memo"),UL=Symbol.for("react.lazy"),ZE=Symbol.iterator;function WL(e){return e===null||typeof e!="object"?null:(e=ZE&&e[ZE]||e["@@iterator"],typeof e=="function"?e:null)}var Mk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fk=Object.assign,Nk={};function ic(e,t,r){this.props=e,this.context=t,this.refs=Nk,this.updater=r||Mk}ic.prototype.isReactComponent={};ic.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ic.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lk(){}Lk.prototype=ic.prototype;function Kw(e,t,r){this.props=e,this.context=t,this.refs=Nk,this.updater=r||Mk}var Gw=Kw.prototype=new Lk;Gw.constructor=Kw;Fk(Gw,ic.prototype);Gw.isPureReactComponent=!0;var eO=Array.isArray,Dk=Object.prototype.hasOwnProperty,Qw={current:null},Bk={key:!0,ref:!0,__self:!0,__source:!0};function zk(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Dk.call(t,n)&&!Bk.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1>>1,oe=B[ie];if(0>>1;iea(Te,q))yea(be,Te)?(B[ie]=be,B[ye]=q,ie=ye):(B[ie]=Te,B[pe]=q,ie=pe);else if(yea(be,q))B[ie]=be,B[ye]=q,ie=ye;else break e}}return U}function a(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=B)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function h(B){if(y=!1,b(B),!g)if(r(u)!==null)g=!0,M(_);else{var U=r(l);U!==null&&W(h,U.startTime-B)}}function _(B,U){g=!1,y&&(y=!1,x(w),w=-1),v=!0;var q=p;try{for(b(U),f=r(u);f!==null&&(!(f.expirationTime>U)||B&&!k());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,p=f.priorityLevel;var oe=ie(f.expirationTime<=U);U=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===r(u)&&n(u),b(U)}else n(u);f=r(u)}if(f!==null)var Ee=!0;else{var pe=r(l);pe!==null&&W(h,pe.startTime-U),Ee=!1}return Ee}finally{f=null,p=q,v=!1}}var C=!1,E=null,w=-1,O=5,P=-1;function k(){return!(e.unstable_now()-PB||125ie?(B.sortIndex=q,t(l,B),r(u)===null&&B===r(l)&&(y?(x(w),w=-1):y=!0,W(h,q-ie))):(B.sortIndex=oe,t(u,B),g||v||(g=!0,M(_))),B},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(qk);Hk.exports=qk;var tD=Hk.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var rD=d,Hn=tD;function Ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M0=Object.prototype.hasOwnProperty,nD=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rO={},nO={};function aD(e){return M0.call(nO,e)?!0:M0.call(rO,e)?!1:nD.test(e)?nO[e]=!0:(rO[e]=!0,!1)}function oD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function iD(e,t,r,n){if(t===null||typeof t>"u"||oD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gn(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ur[e]=new gn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ur[t]=new gn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ur[e]=new gn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ur[e]=new gn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ur[e]=new gn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ur[e]=new gn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ur[e]=new gn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ur[e]=new gn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ur[e]=new gn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yw=/[\-:]([a-z])/g;function Jw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ur.xlinkHref=new gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zw(e,t,r,n){var a=Ur.hasOwnProperty(t)?Ur[t]:null;(a!==null?a.type!==0:n||!(2s||a[i]!==o[s]){var u=` +`+a[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{nb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ad(e):""}function sD(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=ab(e.type,!1),e;case 11:return e=ab(e.type.render,!1),e;case 1:return e=ab(e.type,!0),e;default:return""}}function D0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fl:return"Fragment";case Ml:return"Portal";case F0:return"Profiler";case eS:return"StrictMode";case N0:return"Suspense";case L0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qk:return(e.displayName||"Context")+".Consumer";case Gk:return(e._context.displayName||"Context")+".Provider";case tS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rS:return t=e.displayName||null,t!==null?t:D0(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return D0(e(t))}catch{}}return null}function lD(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D0(t);case 8:return t===eS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uD(e){var t=Yk(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mp(e){e._valueTracker||(e._valueTracker=uD(e))}function Jk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Yk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function B0(e,t){var r=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function oO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zk(e,t){t=t.checked,t!=null&&Zw(e,"checked",t,!1)}function z0(e,t){Zk(e,t);var r=Fi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?V0(e,t.type,r):t.hasOwnProperty("defaultValue")&&V0(e,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function V0(e,t,r){(t!=="number"||gv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var od=Array.isArray;function nu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Fp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var md={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cD=["Webkit","ms","Moz","O"];Object.keys(md).forEach(function(e){cD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),md[t]=md[e]})});function nj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||md.hasOwnProperty(e)&&md[e]?(""+t).trim():t+"px"}function aj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=nj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var dD=rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function H0(e,t){if(t){if(dD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function q0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var K0=null;function nS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var G0=null,au=null,ou=null;function uO(e){if(e=Zf(e)){if(typeof G0!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=sm(t),G0(e.stateNode,e.type,t))}}function oj(e){au?ou?ou.push(e):ou=[e]:au=e}function ij(){if(au){var e=au,t=ou;if(ou=au=null,uO(e),t)for(e=0;e>>=0,e===0?32:31-(SD(e)/_D|0)|0}var Np=64,Lp=4194304;function id(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=id(s):(o&=i,o!==0&&(n=id(o)))}else i=r&~a,i!==0?n=id(i):o!==0&&(n=id(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=r}function PD(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=bd),yO=String.fromCharCode(32),bO=!1;function Oj(e,t){switch(e){case"keyup":return t6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function n6(e,t){switch(e){case"compositionend":return Pj(t);case"keypress":return t.which!==32?null:(bO=!0,yO);case"textInput":return e=t.data,e===yO&&bO?null:e;default:return null}}function a6(e,t){if(Nl)return e==="compositionend"||!dS&&Oj(e,t)?(e=Cj(),Ph=lS=xi=null,Nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_O(r)}}function kj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jj(){for(var e=window,t=gv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gv(e.document)}return t}function fS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function p6(e){var t=jj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kj(r.ownerDocument.documentElement,r)){if(n!==null&&fS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=CO(r,o);var i=CO(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ll=null,e1=null,wd=null,t1=!1;function EO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t1||Ll==null||Ll!==gv(n)||(n=Ll,"selectionStart"in n&&fS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wd&&af(wd,n)||(wd=n,n=_v(e1,"onSelect"),0zl||(e.current=s1[zl],s1[zl]=null,zl--)}function Ht(e,t){zl++,s1[zl]=e.current,e.current=t}var Ni={},tn=Vi(Ni),On=Vi(!1),Vs=Ni;function zu(e,t){var r=e.type.contextTypes;if(!r)return Ni;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pn(e){return e=e.childContextTypes,e!=null}function Ev(){Qt(On),Qt(tn)}function jO(e,t,r){if(tn.current!==Ni)throw Error(Ie(168));Ht(tn,t),Ht(On,r)}function zj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Ie(108,lD(e)||"Unknown",a));return rr({},r,n)}function Ov(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Vs=tn.current,Ht(tn,e),Ht(On,On.current),!0}function IO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=zj(e,t,Vs),n.__reactInternalMemoizedMergedChildContext=e,Qt(On),Qt(tn),Ht(tn,e)):Qt(On),Ht(On,r)}var wo=null,lm=!1,yb=!1;function Vj(e){wo===null?wo=[e]:wo.push(e)}function E6(e){lm=!0,Vj(e)}function Ui(){if(!yb&&wo!==null){yb=!0;var e=0,t=At;try{var r=wo;for(At=1;e>=i,a-=i,Eo=1<<32-$a(t)+a|r<w?(O=E,E=null):O=E.sibling;var P=p(x,E,b[w],h);if(P===null){E===null&&(E=O);break}e&&E&&P.alternate===null&&t(x,E),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P,E=O}if(w===b.length)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;ww?(O=E,E=null):O=E.sibling;var k=p(x,E,P.value,h);if(k===null){E===null&&(E=O);break}e&&E&&k.alternate===null&&t(x,E),m=o(k,m,w),C===null?_=k:C.sibling=k,C=k,E=O}if(P.done)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;!P.done;w++,P=b.next())P=f(x,P.value,h),P!==null&&(m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return Yt&&rs(x,w),_}for(E=n(x,E);!P.done;w++,P=b.next())P=v(E,x,w,P.value,h),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?w:P.key),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return e&&E.forEach(function(j){return t(x,j)}),Yt&&rs(x,w),_}function S(x,m,b,h){if(typeof b=="object"&&b!==null&&b.type===Fl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ap:e:{for(var _=b.key,C=m;C!==null;){if(C.key===_){if(_=b.type,_===Fl){if(C.tag===7){r(x,C.sibling),m=a(C,b.props.children),m.return=x,x=m;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ni&&FO(_)===C.type){r(x,C.sibling),m=a(C,b.props),m.ref=Dc(x,C,b),m.return=x,x=m;break e}r(x,C);break}else t(x,C);C=C.sibling}b.type===Fl?(m=Ms(b.props.children,x.mode,h,b.key),m.return=x,x=m):(h=Mh(b.type,b.key,b.props,null,x.mode,h),h.ref=Dc(x,m,b),h.return=x,x=h)}return i(x);case Ml:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(x,m.sibling),m=a(m,b.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Ob(b,x.mode,h),m.return=x,x=m}return i(x);case ni:return C=b._init,S(x,m,C(b._payload),h)}if(od(b))return g(x,m,b,h);if(Ac(b))return y(x,m,b,h);Hp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(x,m.sibling),m=a(m,b),m.return=x,x=m):(r(x,m),m=Eb(b,x.mode,h),m.return=x,x=m),i(x)):r(x,m)}return S}var Uu=qj(!0),Kj=qj(!1),Tv=Vi(null),$v=null,Wl=null,gS=null;function mS(){gS=Wl=$v=null}function yS(e){var t=Tv.current;Qt(Tv),e._currentValue=t}function c1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function su(e,t){$v=e,gS=Wl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(En=!0),e.firstContext=null)}function ua(e){var t=e._currentValue;if(gS!==e)if(e={context:e,memoizedValue:t,next:null},Wl===null){if($v===null)throw Error(Ie(308));Wl=e,$v.dependencies={lanes:0,firstContext:e}}else Wl=Wl.next=e;return t}var ys=null;function bS(e){ys===null?ys=[e]:ys.push(e)}function Gj(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,bS(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ao(e,n)}function Ao(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ai=!1;function xS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ct&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ao(e,r)}return a=n.interleaved,a===null?(t.next=t,bS(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ao(e,r)}function Th(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}function NO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function kv(e,t,r,n){var a=e.updateQueue;ai=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,v=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,f,p):g,p==null)break e;f=rr({},f,p);break e;case 2:ai=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=v,u=f):c=c.next=v,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(c===null&&(u=f),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hs|=i,e.lanes=i,e.memoizedState=f}}function LO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=xb.transition;xb.transition={};try{e(!1),t()}finally{At=r,xb.transition=n}}function fI(){return ca().memoizedState}function T6(e,t,r){var n=ji(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pI(e))hI(t,r);else if(r=Gj(e,t,r,n),r!==null){var a=pn();ka(r,e,n,a),vI(r,t,n)}}function $6(e,t,r){var n=ji(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pI(e))hI(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,Ia(s,i)){var u=t.interleaved;u===null?(a.next=a,bS(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=Gj(e,t,a,n),r!==null&&(a=pn(),ka(r,e,n,a),vI(r,t,n))}}function pI(e){var t=e.alternate;return e===tr||t!==null&&t===tr}function hI(e,t){Sd=Iv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function vI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}var Av={readContext:ua,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},k6={readContext:ua,useCallback:function(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:BO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,kh(4194308,4,sI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return kh(4194308,4,e,t)},useInsertionEffect:function(e,t){return kh(4,2,e,t)},useMemo:function(e,t){var r=Ba();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ba();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=T6.bind(null,tr,e),[n.memoizedState,e]},useRef:function(e){var t=Ba();return e={current:e},t.memoizedState=e},useState:DO,useDebugValue:RS,useDeferredValue:function(e){return Ba().memoizedState=e},useTransition:function(){var e=DO(!1),t=e[0];return e=R6.bind(null,e[1]),Ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tr,a=Ba();if(Yt){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Ar===null)throw Error(Ie(349));Ws&30||Zj(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,BO(tI.bind(null,n,o,e),[e]),n.flags|=2048,pf(9,eI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ba(),t=Ar.identifierPrefix;if(Yt){var r=Oo,n=Eo;r=(n&~(1<<32-$a(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=df++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Qa]=t,e[lf]=n,EI(e,t,!1,!1),t.stateNode=e;e:{switch(i=q0(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),a=n;break;case"iframe":case"object":case"embed":Kt("load",e),a=n;break;case"video":case"audio":for(a=0;aqu&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304)}else{if(!n)if(e=jv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Yt)return Xr(t),null}else 2*pr()-o.renderingStartTime>qu&&r!==1073741824&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pr(),t.sibling=null,r=er.current,Ht(er,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return AS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function D6(e,t){switch(hS(t),t.tag){case 1:return Pn(t.type)&&Ev(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wu(),Qt(On),Qt(tn),_S(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return SS(t),null;case 13:if(Qt(er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(er),null;case 4:return Wu(),null;case 10:return yS(t.type._context),null;case 22:case 23:return AS(),null;case 24:return null;default:return null}}var Kp=!1,Zr=!1,B6=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Hl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){sr(e,t,n)}else r.current=null}function b1(e,t,r){try{r()}catch(n){sr(e,t,n)}}var YO=!1;function z6(e,t){if(r1=wv,e=jj(),fS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==r||a!==0&&f.nodeType!==3||(s=i+a),f!==o||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(n1={focusedElem:e,selectionRange:r},wv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:wa(t.type,y),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){sr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=YO,YO=!1,g}function _d(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&b1(t,r,o)}a=a.next}while(a!==n)}}function dm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function x1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function RI(e){var t=e.alternate;t!==null&&(e.alternate=null,RI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qa],delete t[lf],delete t[i1],delete t[_6],delete t[C6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function TI(e){return e.tag===5||e.tag===3||e.tag===4}function JO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Cv));else if(n!==4&&(e=e.child,e!==null))for(w1(e,t,r),e=e.sibling;e!==null;)w1(e,t,r),e=e.sibling}function S1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(S1(e,t,r),e=e.sibling;e!==null;)S1(e,t,r),e=e.sibling}var Dr=null,_a=!1;function Xo(e,t,r){for(r=r.child;r!==null;)$I(e,t,r),r=r.sibling}function $I(e,t,r){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(nm,r)}catch{}switch(r.tag){case 5:Zr||Hl(r,t);case 6:var n=Dr,a=_a;Dr=null,Xo(e,t,r),Dr=n,_a=a,Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?mb(e.parentNode,r):e.nodeType===1&&mb(e,r),rf(e)):mb(Dr,r.stateNode));break;case 4:n=Dr,a=_a,Dr=r.stateNode.containerInfo,_a=!0,Xo(e,t,r),Dr=n,_a=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&b1(r,t,i),a=a.next}while(a!==n)}Xo(e,t,r);break;case 1:if(!Zr&&(Hl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){sr(r,t,s)}Xo(e,t,r);break;case 21:Xo(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Xo(e,t,r),Zr=n):Xo(e,t,r);break;default:Xo(e,t,r)}}function ZO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new B6),t.forEach(function(n){var a=X6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=pr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*U6(n/1960))-n,10e?16:e,wi===null)var n=!1;else{if(e=wi,wi=null,Nv=0,Ct&6)throw Error(Ie(331));var a=Ct;for(Ct|=4,Ve=e.current;Ve!==null;){var o=Ve,i=o.child;if(Ve.flags&16){var s=o.deletions;if(s!==null){for(var u=0;upr()-jS?As(e,0):kS|=r),Rn(e,t)}function LI(e,t){t===0&&(e.mode&1?(t=Lp,Lp<<=1,!(Lp&130023424)&&(Lp=4194304)):t=1);var r=pn();e=Ao(e,t),e!==null&&(Yf(e,t,r),Rn(e,r))}function Q6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),LI(e,r)}function X6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ie(314))}n!==null&&n.delete(t),LI(e,r)}var DI;DI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)En=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return En=!1,N6(e,t,r);En=!!(e.flags&131072)}else En=!1,Yt&&t.flags&1048576&&Uj(t,Rv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;jh(e,t),e=t.pendingProps;var a=zu(t,tn.current);su(t,r),a=ES(null,t,n,e,a,r);var o=OS();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(n)?(o=!0,Ov(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xS(t),a.updater=cm,t.stateNode=a,a._reactInternals=t,f1(t,n,e,r),t=v1(null,t,n,!0,o,r)):(t.tag=0,Yt&&o&&pS(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(jh(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=J6(n),e=wa(n,e),a){case 0:t=h1(null,t,n,e,r);break e;case 1:t=GO(null,t,n,e,r);break e;case 11:t=qO(null,t,n,e,r);break e;case 14:t=KO(null,t,n,wa(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),h1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),GO(e,t,n,a,r);case 3:e:{if(SI(t),e===null)throw Error(Ie(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Qj(e,t),kv(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Hu(Error(Ie(423)),t),t=QO(e,t,n,r,a);break e}else if(n!==a){a=Hu(Error(Ie(424)),t),t=QO(e,t,n,r,a);break e}else for(Vn=Ti(t.stateNode.containerInfo.firstChild),Un=t,Yt=!0,Ea=null,r=Kj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vu(),n===a){t=Mo(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return Xj(t),e===null&&u1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,a1(n,a)?i=null:o!==null&&a1(n,o)&&(t.flags|=32),wI(e,t),cn(e,t,i,r),t.child;case 6:return e===null&&u1(t),null;case 13:return _I(e,t,r);case 4:return wS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Uu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),qO(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ht(Tv,n._currentValue),n._currentValue=i,o!==null)if(Ia(o.value,i)){if(o.children===a.children&&!On.current){t=Mo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=To(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),c1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ie(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),c1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,su(t,r),a=ua(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=wa(n,t.pendingProps),a=wa(n.type,a),KO(e,t,n,a,r);case 15:return bI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),jh(e,t),t.tag=1,Pn(n)?(e=!0,Ov(t)):e=!1,su(t,r),gI(t,n,a),f1(t,n,a,r),v1(null,t,n,!0,e,r);case 19:return CI(e,t,r);case 22:return xI(e,t,r)}throw Error(Ie(156,t.tag))};function BI(e,t){return pj(e,t)}function Y6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ia(e,t,r,n){return new Y6(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function J6(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tS)return 11;if(e===rS)return 14}return 2}function Ii(e,t){var r=e.alternate;return r===null?(r=ia(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Mh(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")FS(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fl:return Ms(r.children,a,o,t);case eS:i=8,a|=8;break;case F0:return e=ia(12,r,t,a|2),e.elementType=F0,e.lanes=o,e;case N0:return e=ia(13,r,t,a),e.elementType=N0,e.lanes=o,e;case L0:return e=ia(19,r,t,a),e.elementType=L0,e.lanes=o,e;case Xk:return pm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gk:i=10;break e;case Qk:i=9;break e;case tS:i=11;break e;case rS:i=14;break e;case ni:i=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ia(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Ms(e,t,r,n){return e=ia(7,e,n,t),e.lanes=r,e}function pm(e,t,r,n){return e=ia(22,e,n,t),e.elementType=Xk,e.lanes=r,e.stateNode={isHidden:!1},e}function Eb(e,t,r){return e=ia(6,e,null,t),e.lanes=r,e}function Ob(e,t,r){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z6(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function NS(e,t,r,n,a,o,i,s,u){return e=new Z6(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ia(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},xS(o),e}function eB(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WI)}catch(e){console.error(e)}}WI(),Wk.exports=Gn;var tp=Wk.exports;const ld=Mr(tp),oB=jk({__proto__:null,default:ld},[tp]);var sP=tp;A0.createRoot=sP.createRoot,A0.hydrateRoot=sP.hydrateRoot;var zS=d.createContext(void 0);zS.displayName="AuthContext";var ym={loginUrl:"/login",afterLoginUrl:"/"},iB=function(){return d.useContext(zS)};const zo=iB;var uc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ku=typeof window>"u"||"Deno"in globalThis;function Zn(){}function sB(e,t){return typeof e=="function"?e(t):e}function P1(e){return typeof e=="number"&&e>=0&&e!==1/0}function HI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uu(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){return typeof e=="function"?e(t):e}function lP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==VS(i,t.options))return!1}else if(!vf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function uP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ks(t.options.mutationKey)!==Ks(o))return!1}else if(!vf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function VS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ks)(e)}function Ks(e){return JSON.stringify(e,(t,r)=>R1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function vf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!vf(e[r],t[r])):!1}function qI(e,t){if(e===t)return e;const r=cP(e)&&cP(t);if(r||R1(e)&&R1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function T1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?qI(e,t):t}function uB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function cB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var KI=Symbol();function GI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===KI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Os,fi,Ou,Sk,dB=(Sk=class extends uc{constructor(){super();Xe(this,Os,void 0);Xe(this,fi,void 0);Xe(this,Ou,void 0);ze(this,Ou,t=>{if(!Ku&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){J(this,fi)||this.setEventListener(J(this,Ou))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,fi))==null||t.call(this),ze(this,fi,void 0))}setEventListener(t){var r;ze(this,Ou,t),(r=J(this,fi))==null||r.call(this),ze(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){J(this,Os)!==t&&(ze(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof J(this,Os)=="boolean"?J(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,fi=new WeakMap,Ou=new WeakMap,Sk),US=new dB,Pu,pi,Ru,_k,fB=(_k=class extends uc{constructor(){super();Xe(this,Pu,!0);Xe(this,pi,void 0);Xe(this,Ru,void 0);ze(this,Ru,t=>{if(!Ku&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){J(this,pi)||this.setEventListener(J(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,pi))==null||t.call(this),ze(this,pi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=J(this,pi))==null||r.call(this),ze(this,pi,t(this.setOnline.bind(this)))}setOnline(t){J(this,Pu)!==t&&(ze(this,Pu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return J(this,Pu)}},Pu=new WeakMap,pi=new WeakMap,Ru=new WeakMap,_k),zv=new fB;function pB(e){return Math.min(1e3*2**e,3e4)}function QI(e){return(e??"online")==="online"?zv.isOnline():!0}var XI=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Pb(e){return e instanceof XI}function YI(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,m)=>{o=x,i=m}),u=x=>{var m;n||(g(new XI(x)),(m=e.abort)==null||m.call(e))},l=()=>{t=!0},c=()=>{t=!1},f=()=>US.isFocused()&&(e.networkMode==="always"||zv.isOnline())&&e.canRun(),p=()=>QI(e.networkMode)&&e.canRun(),v=x=>{var m;n||(n=!0,(m=e.onSuccess)==null||m.call(e,x),a==null||a(),o(x))},g=x=>{var m;n||(n=!0,(m=e.onError)==null||m.call(e,x),a==null||a(),i(x))},y=()=>new Promise(x=>{var m;a=b=>{(n||f())&&x(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),S=()=>{if(n)return;let x;const m=r===0?e.initialPromise:void 0;try{x=m??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(v).catch(b=>{var w;if(n)return;const h=e.retry??(Ku?0:3),_=e.retryDelay??pB,C=typeof _=="function"?_(r,b):_,E=h===!0||typeof h=="number"&&rf()?void 0:y()).then(()=>{t?g(b):S()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?S():y().then(S),s)}}function hB(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=s=>setTimeout(s,0);const o=s=>{t?e.push(s):a(()=>{r(s)})},i=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var hr=hB(),Ps,Ck,JI=(Ck=class{constructor(){Xe(this,Ps,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P1(this.gcTime)&&ze(this,Ps,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ku?1/0:5*60*1e3))}clearGcTimeout(){J(this,Ps)&&(clearTimeout(J(this,Ps)),ze(this,Ps,void 0))}},Ps=new WeakMap,Ck),Tu,$u,Jn,Jr,Lf,Rs,Sa,yo,Ek,vB=(Ek=class extends JI{constructor(t){super();Xe(this,Sa);Xe(this,Tu,void 0);Xe(this,$u,void 0);Xe(this,Jn,void 0);Xe(this,Jr,void 0);Xe(this,Lf,void 0);Xe(this,Rs,void 0);ze(this,Rs,!1),ze(this,Lf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Jn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Tu,gB(this.options)),this.state=t.state??J(this,Tu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...J(this,Lf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Jn).remove(this)}setData(t,r){const n=T1(this.state.data,t,this.options);return pt(this,Sa,yo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){pt(this,Sa,yo).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=J(this,Jr))==null?void 0:n.promise;return(a=J(this,Jr))==null||a.cancel(t),r?r.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Tu))}isActive(){return this.observers.some(t=>Oa(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!HI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(J(this,Jr)&&(J(this,Rs)?J(this,Jr).cancel({revert:!0}):J(this,Jr).cancelRetry()),this.scheduleGc()),J(this,Jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Sa,yo).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(J(this,Jr))return J(this,Jr).continueRetry(),J(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ze(this,Rs,!0),n.signal)})},o=()=>{const f=GI(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Rs,!1),this.options.persister?this.options.persister(f,p,this):f(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,$u,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&pt(this,Sa,yo).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=f=>{var p,v,g,y;Pb(f)&&f.silent||pt(this,Sa,yo).call(this,{type:"error",error:f}),Pb(f)||((v=(p=J(this,Jn).config).onError)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,YI({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,v,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){s(S);return}(v=(p=J(this,Jn).config).onSuccess)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,p)=>{pt(this,Sa,yo).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pt(this,Sa,yo).call(this,{type:"pause"})},onContinue:()=>{pt(this,Sa,yo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),J(this,Jr).start()}},Tu=new WeakMap,$u=new WeakMap,Jn=new WeakMap,Jr=new WeakMap,Lf=new WeakMap,Rs=new WeakMap,Sa=new WeakSet,yo=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...ZI(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Pb(a)&&a.revert&&J(this,$u)?{...J(this,$u),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),J(this,Jn).notify({query:this,type:"updated",action:t})})},Ek);function ZI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function gB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Va,Ok,mB=(Ok=class extends uc{constructor(t={}){super();Xe(this,Va,void 0);this.config=t,ze(this,Va,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??VS(a,r);let i=this.get(o);return i||(i=new vB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){J(this,Va).has(t.queryHash)||(J(this,Va).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=J(this,Va).get(t.queryHash);r&&(t.destroy(),r===t&&J(this,Va).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Va).get(t)}getAll(){return[...J(this,Va).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>lP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>lP(t,n)):r}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){hr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Va=new WeakMap,Ok),Ua,sn,Ts,Wa,ei,Pk,yB=(Pk=class extends JI{constructor(t){super();Xe(this,Wa);Xe(this,Ua,void 0);Xe(this,sn,void 0);Xe(this,Ts,void 0);this.mutationId=t.mutationId,ze(this,sn,t.mutationCache),ze(this,Ua,[]),this.state=t.state||eA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Ua).includes(t)||(J(this,Ua).push(t),this.clearGcTimeout(),J(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ua,J(this,Ua).filter(r=>r!==t)),this.scheduleGc(),J(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Ua).length||(this.state.status==="pending"?this.scheduleGc():J(this,sn).remove(this))}continue(){var t;return((t=J(this,Ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_,C,E;ze(this,Ts,YI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,O)=>{pt(this,Wa,ei).call(this,{type:"failed",failureCount:w,error:O})},onPause:()=>{pt(this,Wa,ei).call(this,{type:"pause"})},onContinue:()=>{pt(this,Wa,ei).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,sn).canRun(this)}));const r=this.state.status==="pending",n=!J(this,Ts).canStart();try{if(!r){pt(this,Wa,ei).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=J(this,sn).config).onMutate)==null?void 0:o.call(a,t,this));const O=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));O!==this.state.context&&pt(this,Wa,ei).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const w=await J(this,Ts).start();return await((l=(u=J(this,sn).config).onSuccess)==null?void 0:l.call(u,w,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,w,t,this.state.context)),await((v=(p=J(this,sn).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,w,null,t,this.state.context)),pt(this,Wa,ei).call(this,{type:"success",data:w}),w}catch(w){try{throw await((x=(S=J(this,sn).config).onError)==null?void 0:x.call(S,w,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,w,t,this.state.context)),await((_=(h=J(this,sn).config).onSettled)==null?void 0:_.call(h,void 0,w,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,w,t,this.state.context)),w}finally{pt(this,Wa,ei).call(this,{type:"error",error:w})}}finally{J(this,sn).runNext(this)}}},Ua=new WeakMap,sn=new WeakMap,Ts=new WeakMap,Wa=new WeakSet,ei=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),hr.batch(()=>{J(this,Ua).forEach(n=>{n.onMutationUpdate(t)}),J(this,sn).notify({mutation:this,type:"updated",action:t})})},Pk);function eA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,Df,Rk,bB=(Rk=class extends uc{constructor(t={}){super();Xe(this,Fn,void 0);Xe(this,Df,void 0);this.config=t,ze(this,Fn,new Map),ze(this,Df,Date.now())}build(t,r,n){const a=new yB({mutationCache:this,mutationId:++jp(this,Df)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Xp(t),n=J(this,Fn).get(r)??[];n.push(t),J(this,Fn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Xp(t);if(J(this,Fn).has(r)){const a=(n=J(this,Fn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?J(this,Fn).delete(r):J(this,Fn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...J(this,Fn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uP(r,n))}findAll(t={}){return this.getAll().filter(r=>uP(t,r))}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return hr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Zn))))}},Fn=new WeakMap,Df=new WeakMap,Rk);function Xp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fP(e){return{onFetch:(t,r)=>{var c,f,p,v,g;const n=t.options,a=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let y=!1;const S=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},x=GI(t.options,t.fetchOptions),m=async(b,h,_)=>{if(y)return Promise.reject();if(h==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:t.queryKey,pageParam:h,direction:_?"backward":"forward",meta:t.options.meta};S(C);const E=await x(C),{maxPages:w}=t.options,O=_?cB:uB;return{pages:O(b.pages,E,w),pageParams:O(b.pageParams,h,w)}};if(a&&o.length){const b=a==="backward",h=b?xB:pP,_={pages:o,pageParams:i},C=h(n,_);s=await m(_,C,b)}else{const b=e??o.length;do{const h=u===0?i[0]??n.initialPageParam:pP(n,s);if(u>0&&h==null)break;s=await m(s,h),u++}while(u{var y,S;return(S=(y=t.options).persister)==null?void 0:S.call(y,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function pP(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function xB(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ir,hi,vi,ku,ju,gi,Iu,Au,Tk,wB=(Tk=class{constructor(e={}){Xe(this,ir,void 0);Xe(this,hi,void 0);Xe(this,vi,void 0);Xe(this,ku,void 0);Xe(this,ju,void 0);Xe(this,gi,void 0);Xe(this,Iu,void 0);Xe(this,Au,void 0);ze(this,ir,e.queryCache||new mB),ze(this,hi,e.mutationCache||new bB),ze(this,vi,e.defaultOptions||{}),ze(this,ku,new Map),ze(this,ju,new Map),ze(this,gi,0)}mount(){jp(this,gi)._++,J(this,gi)===1&&(ze(this,Iu,US.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onFocus())})),ze(this,Au,zv.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onOnline())})))}unmount(){var e,t;jp(this,gi)._--,J(this,gi)===0&&((e=J(this,Iu))==null||e.call(this),ze(this,Iu,void 0),(t=J(this,Au))==null||t.call(this),ze(this,Au,void 0))}isFetching(e){return J(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=J(this,ir).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(uu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return J(this,ir).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=J(this,ir).get(n.queryHash),o=a==null?void 0:a.state.data,i=sB(t,o);if(i!==void 0)return J(this,ir).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return hr.batch(()=>J(this,ir).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=J(this,ir);hr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=J(this,ir),n={type:"active",...e};return hr.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=hr.batch(()=>J(this,ir).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Zn).catch(Zn)}invalidateQueries(e={},t={}){return hr.batch(()=>{if(J(this,ir).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=hr.batch(()=>J(this,ir).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Zn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=J(this,ir).build(this,t);return r.isStaleByTime(uu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=fP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=fP(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zv.isOnline()?J(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,ir)}getMutationCache(){return J(this,hi)}getDefaultOptions(){return J(this,vi)}setDefaultOptions(e){ze(this,vi,e)}setQueryDefaults(e,t){J(this,ku).set(Ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ku).values()];let r={};return t.forEach(n=>{vf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){J(this,ju).set(Ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,ju).values()];let r={};return t.forEach(n=>{vf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===KI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,vi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,ir).clear(),J(this,hi).clear()}},ir=new WeakMap,hi=new WeakMap,vi=new WeakMap,ku=new WeakMap,ju=new WeakMap,gi=new WeakMap,Iu=new WeakMap,Au=new WeakMap,Tk),wn,wt,Bf,ln,$s,Mu,Ha,zf,Fu,Nu,ks,js,mi,Lu,Is,ud,Vf,$1,Uf,k1,Wf,j1,Hf,I1,qf,A1,Kf,M1,Gf,F1,tm,tA,$k,SB=($k=class extends uc{constructor(t,r){super();Xe(this,Is);Xe(this,Vf);Xe(this,Uf);Xe(this,Wf);Xe(this,Hf);Xe(this,qf);Xe(this,Kf);Xe(this,Gf);Xe(this,tm);Xe(this,wn,void 0);Xe(this,wt,void 0);Xe(this,Bf,void 0);Xe(this,ln,void 0);Xe(this,$s,void 0);Xe(this,Mu,void 0);Xe(this,Ha,void 0);Xe(this,zf,void 0);Xe(this,Fu,void 0);Xe(this,Nu,void 0);Xe(this,ks,void 0);Xe(this,js,void 0);Xe(this,mi,void 0);Xe(this,Lu,new Set);this.options=r,ze(this,wn,t),ze(this,Ha,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,wt).addObserver(this),hP(J(this,wt),this.options)?pt(this,Is,ud).call(this):this.updateResult(),pt(this,Hf,I1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return N1(J(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return N1(J(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,qf,A1).call(this),pt(this,Kf,M1).call(this),J(this,wt).removeObserver(this)}setOptions(t,r){const n=this.options,a=J(this,wt);if(this.options=J(this,wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oa(this.options.enabled,J(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Gf,F1).call(this),J(this,wt).setOptions(this.options),n._defaulted&&!Bv(this.options,n)&&J(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,wt),observer:this});const o=this.hasListeners();o&&vP(J(this,wt),a,this.options,n)&&pt(this,Is,ud).call(this),this.updateResult(r),o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||uu(this.options.staleTime,J(this,wt))!==uu(n.staleTime,J(this,wt)))&&pt(this,Vf,$1).call(this);const i=pt(this,Uf,k1).call(this);o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||i!==J(this,mi))&&pt(this,Wf,j1).call(this,i)}getOptimisticResult(t){const r=J(this,wn).getQueryCache().build(J(this,wn),t),n=this.createResult(r,t);return CB(this,n)&&(ze(this,ln,n),ze(this,Mu,this.options),ze(this,$s,J(this,wt).state)),n}getCurrentResult(){return J(this,ln)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){J(this,Lu).add(t)}getCurrentQuery(){return J(this,wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=J(this,wn).defaultQueryOptions(t),n=J(this,wn).getQueryCache().build(J(this,wn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return pt(this,Is,ud).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,ln)))}createResult(t,r){var E;const n=J(this,wt),a=this.options,o=J(this,ln),i=J(this,$s),s=J(this,Mu),l=t!==n?t.state:J(this,Bf),{state:c}=t;let f={...c},p=!1,v;if(r._optimisticResults){const w=this.hasListeners(),O=!w&&hP(t,r),P=w&&vP(t,n,r,a);(O||P)&&(f={...f,...ZI(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:S}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(i==null?void 0:i.data)&&r.select===J(this,zf))v=J(this,Fu);else try{ze(this,zf,r.select),v=r.select(f.data),v=T1(o==null?void 0:o.data,v,r),ze(this,Fu,v),ze(this,Ha,null)}catch(w){ze(this,Ha,w)}else v=f.data;if(r.placeholderData!==void 0&&v===void 0&&S==="pending"){let w;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))w=o.data;else if(w=typeof r.placeholderData=="function"?r.placeholderData((E=J(this,Nu))==null?void 0:E.state.data,J(this,Nu)):r.placeholderData,r.select&&w!==void 0)try{w=r.select(w),ze(this,Ha,null)}catch(O){ze(this,Ha,O)}w!==void 0&&(S="success",v=T1(o==null?void 0:o.data,w,r),p=!0)}J(this,Ha)&&(g=J(this,Ha),v=J(this,Fu),y=Date.now(),S="error");const x=f.fetchStatus==="fetching",m=S==="pending",b=S==="error",h=m&&x,_=v!==void 0;return{status:S,fetchStatus:f.fetchStatus,isPending:m,isSuccess:S==="success",isError:b,isInitialLoading:h,isLoading:h,data:v,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!m,isLoadingError:b&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&_,isStale:WS(t,r),refetch:this.refetch}}updateResult(t){const r=J(this,ln),n=this.createResult(J(this,wt),this.options);if(ze(this,$s,J(this,wt).state),ze(this,Mu,this.options),J(this,$s).data!==void 0&&ze(this,Nu,J(this,wt)),Bv(n,r))return;ze(this,ln,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!J(this,Lu).size)return!0;const u=new Set(s??J(this,Lu));return this.options.throwOnError&&u.add("error"),Object.keys(J(this,ln)).some(l=>{const c=l;return J(this,ln)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),pt(this,tm,tA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Hf,I1).call(this)}},wn=new WeakMap,wt=new WeakMap,Bf=new WeakMap,ln=new WeakMap,$s=new WeakMap,Mu=new WeakMap,Ha=new WeakMap,zf=new WeakMap,Fu=new WeakMap,Nu=new WeakMap,ks=new WeakMap,js=new WeakMap,mi=new WeakMap,Lu=new WeakMap,Is=new WeakSet,ud=function(t){pt(this,Gf,F1).call(this);let r=J(this,wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Zn)),r},Vf=new WeakSet,$1=function(){pt(this,qf,A1).call(this);const t=uu(this.options.staleTime,J(this,wt));if(Ku||J(this,ln).isStale||!P1(t))return;const n=HI(J(this,ln).dataUpdatedAt,t)+1;ze(this,ks,setTimeout(()=>{J(this,ln).isStale||this.updateResult()},n))},Uf=new WeakSet,k1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,wt)):this.options.refetchInterval)??!1},Wf=new WeakSet,j1=function(t){pt(this,Kf,M1).call(this),ze(this,mi,t),!(Ku||Oa(this.options.enabled,J(this,wt))===!1||!P1(J(this,mi))||J(this,mi)===0)&&ze(this,js,setInterval(()=>{(this.options.refetchIntervalInBackground||US.isFocused())&&pt(this,Is,ud).call(this)},J(this,mi)))},Hf=new WeakSet,I1=function(){pt(this,Vf,$1).call(this),pt(this,Wf,j1).call(this,pt(this,Uf,k1).call(this))},qf=new WeakSet,A1=function(){J(this,ks)&&(clearTimeout(J(this,ks)),ze(this,ks,void 0))},Kf=new WeakSet,M1=function(){J(this,js)&&(clearInterval(J(this,js)),ze(this,js,void 0))},Gf=new WeakSet,F1=function(){const t=J(this,wn).getQueryCache().build(J(this,wn),this.options);if(t===J(this,wt))return;const r=J(this,wt);ze(this,wt,t),ze(this,Bf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},tm=new WeakSet,tA=function(t){hr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(J(this,ln))}),J(this,wn).getQueryCache().notify({query:J(this,wt),type:"observerResultsUpdated"})})},$k);function _B(e,t){return Oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hP(e,t){return _B(e,t)||e.state.data!==void 0&&N1(e,t,t.refetchOnMount)}function N1(e,t,r){if(Oa(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&WS(e,t)}return!1}function vP(e,t,r,n){return(e!==t||Oa(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&WS(e,r)}function WS(e,t){return Oa(t.enabled,e)!==!1&&e.isStaleByTime(uu(t.staleTime,e))}function CB(e,t){return!Bv(e.getCurrentResult(),t)}var yi,bi,Sn,_o,Du,Fh,Qf,L1,kk,EB=(kk=class extends uc{constructor(r,n){super();Xe(this,Du);Xe(this,Qf);Xe(this,yi,void 0);Xe(this,bi,void 0);Xe(this,Sn,void 0);Xe(this,_o,void 0);ze(this,yi,r),this.setOptions(n),this.bindMethods(),pt(this,Du,Fh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=J(this,yi).defaultMutationOptions(r),Bv(this.options,n)||J(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ks(n.mutationKey)!==Ks(this.options.mutationKey)?this.reset():((a=J(this,Sn))==null?void 0:a.state.status)==="pending"&&J(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=J(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this,r)}getCurrentResult(){return J(this,bi)}reset(){var r;(r=J(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this)}mutate(r,n){var a;return ze(this,_o,n),(a=J(this,Sn))==null||a.removeObserver(this),ze(this,Sn,J(this,yi).getMutationCache().build(J(this,yi),this.options)),J(this,Sn).addObserver(this),J(this,Sn).execute(r)}},yi=new WeakMap,bi=new WeakMap,Sn=new WeakMap,_o=new WeakMap,Du=new WeakSet,Fh=function(){var n;const r=((n=J(this,Sn))==null?void 0:n.state)??eA();ze(this,bi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Qf=new WeakSet,L1=function(r){hr.batch(()=>{var n,a,o,i,s,u,l,c;if(J(this,_o)&&this.hasListeners()){const f=J(this,bi).variables,p=J(this,bi).context;(r==null?void 0:r.type)==="success"?((a=(n=J(this,_o)).onSuccess)==null||a.call(n,r.data,f,p),(i=(o=J(this,_o)).onSettled)==null||i.call(o,r.data,null,f,p)):(r==null?void 0:r.type)==="error"&&((u=(s=J(this,_o)).onError)==null||u.call(s,r.error,f,p),(c=(l=J(this,_o)).onSettled)==null||c.call(l,void 0,r.error,f,p))}this.listeners.forEach(f=>{f(J(this,bi))})})},kk),rA=d.createContext(void 0),Fa=e=>{const t=d.useContext(rA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OB=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(rA.Provider,{value:e,children:t})),nA=d.createContext(!1),PB=()=>d.useContext(nA);nA.Provider;function RB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var TB=d.createContext(RB()),$B=()=>d.useContext(TB);function aA(e,t){return typeof e=="function"?e(...t):!!e}function kB(){}var jB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},IB=e=>{d.useEffect(()=>{e.clearReset()},[e])},AB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&aA(r,[e.error,n]),MB=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},FB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,NB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function LB(e,t,r){var l,c,f,p;const n=Fa(r),a=PB(),o=$B(),i=n.defaultQueryOptions(e);(c=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||c.call(l,i),i._optimisticResults=a?"isRestoring":"optimistic",MB(i),jB(i,o),IB(o);const[s]=d.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(d.useSyncExternalStore(d.useCallback(v=>{const g=a?()=>{}:s.subscribe(hr.batchCalls(v));return s.updateResult(),g},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),FB(i,u))throw NB(i,s,o);if(AB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return(p=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,i,u),i.notifyOnChangeProps?u:s.trackResult(u)}function il(e,t){return LB(e,SB,t)}function bm(e,t){const r=Fa(t),[n]=d.useState(()=>new EB(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(hr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,s)=>{n.mutate(i,s).catch(kB)},[n]);if(a.error&&aA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** + * @remix-run/router v1.19.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BB(){return Math.random().toString(36).substr(2,8)}function mP(e,t){return{usr:e.state,key:e.key,idx:t}}function gf(e,t,r,n){return r===void 0&&(r=null),Zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?io(t):t,{state:r,key:t&&t.key||n||BB()})}function Qs(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function io(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function zB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=dr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(Zt({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function f(){s=dr.Pop;let S=c(),x=S==null?null:S-l;l=S,u&&u({action:s,location:y.location,delta:x})}function p(S,x){s=dr.Push;let m=gf(y.location,S,x);r&&r(m,S),l=c()+1;let b=mP(m,l),h=y.createHref(m);try{i.pushState(b,"",h)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(h)}o&&u&&u({action:s,location:y.location,delta:1})}function v(S,x){s=dr.Replace;let m=gf(y.location,S,x);r&&r(m,S),l=c();let b=mP(m,l),h=y.createHref(m);i.replaceState(b,"",h),o&&u&&u({action:s,location:y.location,delta:0})}function g(S){let x=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof S=="string"?S:Qs(S);return m=m.replace(/ $/,"%20"),dt(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let y={get action(){return s},get location(){return e(a,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(gP,f),u=S,()=>{a.removeEventListener(gP,f),u=null}},createHref(S){return t(a,S)},createURL:g,encodeLocation(S){let x=g(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return i.go(S)}};return y}var zt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zt||(zt={}));const VB=new Set(["lazy","caseSensitive","path","id","index","children"]);function UB(e){return e.index===!0}function mf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(dt(a.index!==!0||!a.children,"Cannot specify children on an index route"),dt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),UB(a)){let u=Zt({},a,t(a),{id:s});return n[s]=u,u}else{let u=Zt({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=mf(a.children,t,i,n)),u}})}function us(e,t,r){return r===void 0&&(r="/"),Nh(e,t,r,!1)}function Nh(e,t,r,n){let a=typeof t=="string"?io(t):t,o=Li(a.pathname||"/",r);if(o==null)return null;let i=oA(e);HB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(dt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=$o([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),oA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:JB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of iA(o.path))a(o,i,u)}),t}function iA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=iA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function HB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ZB(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const qB=/^:[\w-]+$/,KB=3,GB=2,QB=1,XB=10,YB=-2,yP=e=>e==="*";function JB(e,t){let r=e.split("/"),n=r.length;return r.some(yP)&&(n+=YB),t&&(n+=GB),r.filter(a=>!yP(a)).reduce((a,o)=>a+(qB.test(o)?KB:o===""?QB:XB),n)}function ZB(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function e8(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:v}=c;if(p==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function t8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function sA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gs(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Li(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function r8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?io(e):e;return{pathname:r?r.startsWith("/")?r:n8(r,t):t,search:o8(n),hash:i8(a)}}function n8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Rb(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function xm(e,t){let r=lA(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function wm(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=io(e):(a=Zt({},e),dt(!a.pathname||!a.pathname.includes("?"),Rb("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),Rb("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),Rb("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=r8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const $o=e=>e.join("/").replace(/\/\/+/g,"/"),a8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Vv{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Sm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uA=["post","put","patch","delete"],s8=new Set(uA),l8=["get",...uA],u8=new Set(l8),c8=new Set([301,302,303,307,308]),d8=new Set([307,308]),Tb={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},f8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),cA="remix-router-transitions";function h8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;dt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;a=ee=>({hasErrorBoundary:X(ee)})}else a=p8;let o={},i=mf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||x8,c=e.unstable_patchRoutesOnNavigation,f=Zt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,g=1e3,y=new Set,S=null,x=null,m=null,b=e.hydrationData!=null,h=us(i,e.history.location,u),_=null;if(h==null&&!c){let X=un(404,{pathname:e.history.location.pathname}),{matches:ee,route:ce}=PP(i);h=ee,_={[ce.id]:X}}h&&!e.hydrationData&&Mn(h,i,e.history.location.pathname).active&&(h=null);let C;if(h)if(h.some(X=>X.route.lazy))C=!1;else if(!h.some(X=>X.route.loader))C=!0;else if(f.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null,ce=Ce=>Ce.route.loader?typeof Ce.route.loader=="function"&&Ce.route.loader.hydrate===!0?!1:X&&X[Ce.route.id]!==void 0||ee&&ee[Ce.route.id]!==void 0:!0;if(ee){let Ce=h.findIndex(N=>ee[N.route.id]!==void 0);C=h.slice(0,Ce+1).every(ce)}else C=h.every(ce)}else C=e.hydrationData!=null;else if(C=!1,h=[],f.v7_partialHydration){let X=Mn(null,i,e.history.location.pathname);X.active&&X.matches&&(h=X.matches)}let E,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:C,navigation:Tb,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},O=dr.Pop,P=!1,k,j=!1,$=new Map,F=null,z=!1,M=!1,W=[],B=new Set,U=new Map,q=0,ie=-1,oe=new Map,Ee=new Set,pe=new Map,Te=new Map,ye=new Set,be=new Map,we=new Map,ve=new Map,De;function Me(){if(p=e.history.listen(X=>{let{action:ee,location:ce,delta:Ce}=X;if(De){De(),De=void 0;return}Gs(we.size===0||Ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let N=Pt({currentLocation:w.location,nextLocation:ce,historyAction:ee});if(N&&Ce!=null){let D=new Promise(I=>{De=I});e.history.go(Ce*-1),kt(N,{state:"blocked",location:ce,proceed(){kt(N,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),D.then(()=>e.history.go(Ce))},reset(){let I=new Map(w.blockers);I.set(N,Tl),Ae({blockers:I})}});return}return V(ee,ce)}),r){M8(t,$);let X=()=>F8(t,$);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return w.initialized||V(dr.Pop,w.location,{initialHydration:!0}),E}function Qe(){p&&p(),F&&F(),v.clear(),k&&k.abort(),w.fetchers.forEach((X,ee)=>je(ee)),w.blockers.forEach((X,ee)=>Ot(ee))}function Ne(X){return v.add(X),()=>v.delete(X)}function Ae(X,ee){ee===void 0&&(ee={}),w=Zt({},w,X);let ce=[],Ce=[];f.v7_fetcherPersist&&w.fetchers.forEach((N,D)=>{N.state==="idle"&&(ye.has(D)?Ce.push(D):ce.push(D))}),[...v].forEach(N=>N(w,{deletedFetchers:Ce,unstable_viewTransitionOpts:ee.viewTransitionOpts,unstable_flushSync:ee.flushSync===!0})),f.v7_fetcherPersist&&(ce.forEach(N=>w.fetchers.delete(N)),Ce.forEach(N=>je(N)))}function He(X,ee,ce){var Ce,N;let{flushSync:D}=ce===void 0?{}:ce,I=w.actionData!=null&&w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&w.navigation.state==="loading"&&((Ce=X.state)==null?void 0:Ce._isRedirect)!==!0,A;ee.actionData?Object.keys(ee.actionData).length>0?A=ee.actionData:A=null:I?A=w.actionData:A=null;let L=ee.loaderData?EP(w.loaderData,ee.loaderData,ee.matches||[],ee.errors):w.loaderData,H=w.blockers;H.size>0&&(H=new Map(H),H.forEach((Q,me)=>H.set(me,Tl)));let re=P===!0||w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&((N=X.state)==null?void 0:N._isRedirect)!==!0;s&&(i=s,s=void 0),z||O===dr.Pop||(O===dr.Push?e.history.push(X,X.state):O===dr.Replace&&e.history.replace(X,X.state));let Y;if(O===dr.Pop){let Q=$.get(w.location.pathname);Q&&Q.has(X.pathname)?Y={currentLocation:w.location,nextLocation:X}:$.has(X.pathname)&&(Y={currentLocation:X,nextLocation:w.location})}else if(j){let Q=$.get(w.location.pathname);Q?Q.add(X.pathname):(Q=new Set([X.pathname]),$.set(w.location.pathname,Q)),Y={currentLocation:w.location,nextLocation:X}}Ae(Zt({},ee,{actionData:A,loaderData:L,historyAction:O,location:X,initialized:!0,navigation:Tb,revalidation:"idle",restoreScrollPosition:Tr(X,ee.matches||w.matches),preventScrollReset:re,blockers:H}),{viewTransitionOpts:Y,flushSync:D===!0}),O=dr.Pop,P=!1,j=!1,z=!1,M=!1,W=[]}async function ht(X,ee){if(typeof X=="number"){e.history.go(X);return}let ce=B1(w.location,w.matches,u,f.v7_prependBasename,X,f.v7_relativeSplatPath,ee==null?void 0:ee.fromRouteId,ee==null?void 0:ee.relative),{path:Ce,submission:N,error:D}=bP(f.v7_normalizeFormMethod,!1,ce,ee),I=w.location,A=gf(w.location,Ce,ee&&ee.state);A=Zt({},A,e.history.encodeLocation(A));let L=ee&&ee.replace!=null?ee.replace:void 0,H=dr.Push;L===!0?H=dr.Replace:L===!1||N!=null&&Ca(N.formMethod)&&N.formAction===w.location.pathname+w.location.search&&(H=dr.Replace);let re=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,Y=(ee&&ee.unstable_flushSync)===!0,Q=Pt({currentLocation:I,nextLocation:A,historyAction:H});if(Q){kt(Q,{state:"blocked",location:A,proceed(){kt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ht(X,ee)},reset(){let me=new Map(w.blockers);me.set(Q,Tl),Ae({blockers:me})}});return}return await V(H,A,{submission:N,pendingError:D,preventScrollReset:re,replace:ee&&ee.replace,enableViewTransition:ee&&ee.unstable_viewTransition,flushSync:Y})}function ut(){if(he(),Ae({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){V(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}V(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:j===!0})}}async function V(X,ee,ce){k&&k.abort(),k=null,O=X,z=(ce&&ce.startUninterruptedRevalidation)===!0,Nr(w.location,w.matches),P=(ce&&ce.preventScrollReset)===!0,j=(ce&&ce.enableViewTransition)===!0;let Ce=s||i,N=ce&&ce.overrideNavigation,D=us(Ce,ee,u),I=(ce&&ce.flushSync)===!0,A=Mn(D,Ce,ee.pathname);if(A.active&&A.matches&&(D=A.matches),!D){let{error:$e,notFoundMatches:Ze,route:tt}=at(ee.pathname);He(ee,{matches:Ze,loaderData:{},errors:{[tt.id]:$e}},{flushSync:I});return}if(w.initialized&&!M&&O8(w.location,ee)&&!(ce&&ce.submission&&Ca(ce.submission.formMethod))){He(ee,{matches:D},{flushSync:I});return}k=new AbortController;let L=vl(e.history,ee,k.signal,ce&&ce.submission),H;if(ce&&ce.pendingError)H=[Kl(D).route.id,{type:zt.error,error:ce.pendingError}];else if(ce&&ce.submission&&Ca(ce.submission.formMethod)){let $e=await K(L,ee,ce.submission,D,A.active,{replace:ce.replace,flushSync:I});if($e.shortCircuited)return;if($e.pendingActionResult){let[Ze,tt]=$e.pendingActionResult;if(Dn(tt)&&Sm(tt.error)&&tt.error.status===404){k=null,He(ee,{matches:$e.matches,loaderData:{},errors:{[Ze]:tt.error}});return}}D=$e.matches||D,H=$e.pendingActionResult,N=$b(ee,ce.submission),I=!1,A.active=!1,L=vl(e.history,L.url,L.signal)}let{shortCircuited:re,matches:Y,loaderData:Q,errors:me}=await te(L,ee,D,A.active,N,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,I,H);re||(k=null,He(ee,Zt({matches:Y||D},OP(H),{loaderData:Q,errors:me})))}async function K(X,ee,ce,Ce,N,D){D===void 0&&(D={}),he();let I=I8(ee,ce);if(Ae({navigation:I},{flushSync:D.flushSync===!0}),N){let H=await Kr(Ce,ee.pathname,X.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let{boundaryId:re,error:Y}=It(ee.pathname,H);return{matches:H.partialMatches,pendingActionResult:[re,{type:zt.error,error:Y}]}}else if(H.matches)Ce=H.matches;else{let{notFoundMatches:re,error:Y,route:Q}=at(ee.pathname);return{matches:re,pendingActionResult:[Q.id,{type:zt.error,error:Y}]}}}let A,L=cd(Ce,ee);if(!L.route.action&&!L.route.lazy)A={type:zt.error,error:un(405,{method:X.method,pathname:ee.pathname,routeId:L.route.id})};else if(A=(await G("action",w,X,[L],Ce,null))[L.route.id],X.signal.aborted)return{shortCircuited:!0};if(xs(A)){let H;return D&&D.replace!=null?H=D.replace:H=SP(A.response.headers.get("Location"),new URL(X.url),u)===w.location.pathname+w.location.search,await Z(X,A,!0,{submission:ce,replace:H}),{shortCircuited:!0}}if(Si(A))throw un(400,{type:"defer-action"});if(Dn(A)){let H=Kl(Ce,L.route.id);return(D&&D.replace)!==!0&&(O=dr.Push),{matches:Ce,pendingActionResult:[H.route.id,A]}}return{matches:Ce,pendingActionResult:[L.route.id,A]}}async function te(X,ee,ce,Ce,N,D,I,A,L,H,re){let Y=N||$b(ee,D),Q=D||I||TP(Y),me=!z&&(!f.v7_partialHydration||!L);if(Ce){if(me){let Vt=se(re);Ae(Zt({navigation:Y},Vt!==void 0?{actionData:Vt}:{}),{flushSync:H})}let ot=await Kr(ce,ee.pathname,X.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){let{boundaryId:Vt,error:mr}=It(ee.pathname,ot);return{matches:ot.partialMatches,loaderData:{},errors:{[Vt]:mr}}}else if(ot.matches)ce=ot.matches;else{let{error:Vt,notFoundMatches:mr,route:vt}=at(ee.pathname);return{matches:mr,loaderData:{},errors:{[vt.id]:Vt}}}}let $e=s||i,[Ze,tt]=xP(e.history,w,ce,Q,ee,f.v7_partialHydration&&L===!0,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,$e,u,re);if(nr(ot=>!(ce&&ce.some(Vt=>Vt.route.id===ot))||Ze&&Ze.some(Vt=>Vt.route.id===ot)),ie=++q,Ze.length===0&&tt.length===0){let ot=Ge();return He(ee,Zt({matches:ce,loaderData:{},errors:re&&Dn(re[1])?{[re[0]]:re[1].error}:null},OP(re),ot?{fetchers:new Map(w.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(me){let ot={};if(!Ce){ot.navigation=Y;let Vt=se(re);Vt!==void 0&&(ot.actionData=Vt)}tt.length>0&&(ot.fetchers=de(tt)),Ae(ot,{flushSync:H})}tt.forEach(ot=>{U.has(ot.key)&&_e(ot.key),ot.controller&&U.set(ot.key,ot.controller)});let St=()=>tt.forEach(ot=>_e(ot.key));k&&k.signal.addEventListener("abort",St);let{loaderResults:st,fetcherResults:xt}=await le(w,ce,Ze,tt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",St),tt.forEach(ot=>U.delete(ot.key));let jt=Yp(st);if(jt)return await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};if(jt=Yp(xt),jt)return Ee.add(jt.key),await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:lt,errors:Dt}=CP(w,ce,Ze,st,re,tt,xt,be);be.forEach((ot,Vt)=>{ot.subscribe(mr=>{(mr||ot.done)&&be.delete(Vt)})}),f.v7_partialHydration&&L&&w.errors&&Object.entries(w.errors).filter(ot=>{let[Vt]=ot;return!Ze.some(mr=>mr.route.id===Vt)}).forEach(ot=>{let[Vt,mr]=ot;Dt=Object.assign(Dt||{},{[Vt]:mr})});let kr=Ge(),yn=nt(ie),vo=kr||yn||tt.length>0;return Zt({matches:ce,loaderData:lt,errors:Dt},vo?{fetchers:new Map(w.fetchers)}:{})}function se(X){if(X&&!Dn(X[1]))return{[X[0]]:X[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function de(X){return X.forEach(ee=>{let ce=w.fetchers.get(ee.key),Ce=Vc(void 0,ce?ce.data:void 0);w.fetchers.set(ee.key,Ce)}),new Map(w.fetchers)}function fe(X,ee,ce,Ce){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(X)&&_e(X);let N=(Ce&&Ce.unstable_flushSync)===!0,D=s||i,I=B1(w.location,w.matches,u,f.v7_prependBasename,ce,f.v7_relativeSplatPath,ee,Ce==null?void 0:Ce.relative),A=us(D,I,u),L=Mn(A,D,I);if(L.active&&L.matches&&(A=L.matches),!A){Be(X,ee,un(404,{pathname:I}),{flushSync:N});return}let{path:H,submission:re,error:Y}=bP(f.v7_normalizeFormMethod,!0,I,Ce);if(Y){Be(X,ee,Y,{flushSync:N});return}let Q=cd(A,H);if(P=(Ce&&Ce.preventScrollReset)===!0,re&&Ca(re.formMethod)){Oe(X,ee,H,Q,A,L.active,N,re);return}pe.set(X,{routeId:ee,path:H}),ae(X,ee,H,Q,A,L.active,N,re)}async function Oe(X,ee,ce,Ce,N,D,I,A){he(),pe.delete(X);function L(vt){if(!vt.route.action&&!vt.route.lazy){let Gr=un(405,{method:A.formMethod,pathname:ce,routeId:ee});return Be(X,ee,Gr,{flushSync:I}),!0}return!1}if(!D&&L(Ce))return;let H=w.fetchers.get(X);Re(X,A8(A,H),{flushSync:I});let re=new AbortController,Y=vl(e.history,ce,re.signal,A);if(D){let vt=await Kr(N,ce,Y.signal);if(vt.type==="aborted")return;if(vt.type==="error"){let{error:Gr}=It(ce,vt);Be(X,ee,Gr,{flushSync:I});return}else if(vt.matches){if(N=vt.matches,Ce=cd(N,ce),L(Ce))return}else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,re);let Q=q,$e=(await G("action",w,Y,[Ce],N,X))[Ce.route.id];if(Y.signal.aborted){U.get(X)===re&&U.delete(X);return}if(f.v7_fetcherPersist&&ye.has(X)){if(xs($e)||Dn($e)){Re(X,ti(void 0));return}}else{if(xs($e))if(U.delete(X),ie>Q){Re(X,ti(void 0));return}else return Ee.add(X),Re(X,Vc(A)),Z(Y,$e,!1,{fetcherSubmission:A});if(Dn($e)){Be(X,ee,$e.error);return}}if(Si($e))throw un(400,{type:"defer-action"});let Ze=w.navigation.location||w.location,tt=vl(e.history,Ze,re.signal),St=s||i,st=w.navigation.state!=="idle"?us(St,w.navigation.location,u):w.matches;dt(st,"Didn't find any matches after fetcher action");let xt=++q;oe.set(X,xt);let jt=Vc(A,$e.data);w.fetchers.set(X,jt);let[lt,Dt]=xP(e.history,w,st,A,Ze,!1,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,St,u,[Ce.route.id,$e]);Dt.filter(vt=>vt.key!==X).forEach(vt=>{let Gr=vt.key,Go=w.fetchers.get(Gr),Qo=Vc(void 0,Go?Go.data:void 0);w.fetchers.set(Gr,Qo),U.has(Gr)&&_e(Gr),vt.controller&&U.set(Gr,vt.controller)}),Ae({fetchers:new Map(w.fetchers)});let kr=()=>Dt.forEach(vt=>_e(vt.key));re.signal.addEventListener("abort",kr);let{loaderResults:yn,fetcherResults:vo}=await le(w,st,lt,Dt,tt);if(re.signal.aborted)return;re.signal.removeEventListener("abort",kr),oe.delete(X),U.delete(X),Dt.forEach(vt=>U.delete(vt.key));let ot=Yp(yn);if(ot)return Z(tt,ot.result,!1);if(ot=Yp(vo),ot)return Ee.add(ot.key),Z(tt,ot.result,!1);let{loaderData:Vt,errors:mr}=CP(w,st,lt,yn,void 0,Dt,vo,be);if(w.fetchers.has(X)){let vt=ti($e.data);w.fetchers.set(X,vt)}nt(xt),w.navigation.state==="loading"&&xt>ie?(dt(O,"Expected pending action"),k&&k.abort(),He(w.navigation.location,{matches:st,loaderData:Vt,errors:mr,fetchers:new Map(w.fetchers)})):(Ae({errors:mr,loaderData:EP(w.loaderData,Vt,st,mr),fetchers:new Map(w.fetchers)}),M=!1)}async function ae(X,ee,ce,Ce,N,D,I,A){let L=w.fetchers.get(X);Re(X,Vc(A,L?L.data:void 0),{flushSync:I});let H=new AbortController,re=vl(e.history,ce,H.signal);if(D){let $e=await Kr(N,ce,re.signal);if($e.type==="aborted")return;if($e.type==="error"){let{error:Ze}=It(ce,$e);Be(X,ee,Ze,{flushSync:I});return}else if($e.matches)N=$e.matches,Ce=cd(N,ce);else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,H);let Y=q,me=(await G("loader",w,re,[Ce],N,X))[Ce.route.id];if(Si(me)&&(me=await qS(me,re.signal,!0)||me),U.get(X)===H&&U.delete(X),!re.signal.aborted){if(ye.has(X)){Re(X,ti(void 0));return}if(xs(me))if(ie>Y){Re(X,ti(void 0));return}else{Ee.add(X),await Z(re,me,!1);return}if(Dn(me)){Be(X,ee,me.error);return}dt(!Si(me),"Unhandled fetcher deferred data"),Re(X,ti(me.data))}}async function Z(X,ee,ce,Ce){let{submission:N,fetcherSubmission:D,replace:I}=Ce===void 0?{}:Ce;ee.response.headers.has("X-Remix-Revalidate")&&(M=!0);let A=ee.response.headers.get("Location");dt(A,"Expected a Location header on the redirect Response"),A=SP(A,new URL(X.url),u);let L=gf(w.location,A,{_isRedirect:!0});if(r){let $e=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))$e=!0;else if(HS.test(A)){const Ze=e.history.createURL(A);$e=Ze.origin!==t.location.origin||Li(Ze.pathname,u)==null}if($e){I?t.location.replace(A):t.location.assign(A);return}}k=null;let H=I===!0||ee.response.headers.has("X-Remix-Replace")?dr.Replace:dr.Push,{formMethod:re,formAction:Y,formEncType:Q}=w.navigation;!N&&!D&&re&&Y&&Q&&(N=TP(w.navigation));let me=N||D;if(d8.has(ee.response.status)&&me&&Ca(me.formMethod))await V(H,L,{submission:Zt({},me,{formAction:A}),preventScrollReset:P,enableViewTransition:ce?j:void 0});else{let $e=$b(L,N);await V(H,L,{overrideNavigation:$e,fetcherSubmission:D,preventScrollReset:P,enableViewTransition:ce?j:void 0})}}async function G(X,ee,ce,Ce,N,D){let I,A={};try{I=await w8(l,X,ee,ce,Ce,N,D,o,a)}catch(L){return Ce.forEach(H=>{A[H.route.id]={type:zt.error,error:L}}),A}for(let[L,H]of Object.entries(I))if(R8(H)){let re=H.result;A[L]={type:zt.redirect,response:C8(re,ce,L,N,u,f.v7_relativeSplatPath)}}else A[L]=await _8(H);return A}async function le(X,ee,ce,Ce,N){let D=X.matches,I=G("loader",X,N,ce,ee,null),A=Promise.all(Ce.map(async re=>{if(re.matches&&re.match&&re.controller){let Q=(await G("loader",X,vl(e.history,re.path,re.controller.signal),[re.match],re.matches,re.key))[re.match.route.id];return{[re.key]:Q}}else return Promise.resolve({[re.key]:{type:zt.error,error:un(404,{pathname:re.path})}})})),L=await I,H=(await A).reduce((re,Y)=>Object.assign(re,Y),{});return await Promise.all([k8(ee,L,N.signal,D,X.loaderData),j8(ee,H,Ce)]),{loaderResults:L,fetcherResults:H}}function he(){M=!0,W.push(...nr()),pe.forEach((X,ee)=>{U.has(ee)&&(B.add(ee),_e(ee))})}function Re(X,ee,ce){ce===void 0&&(ce={}),w.fetchers.set(X,ee),Ae({fetchers:new Map(w.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Be(X,ee,ce,Ce){Ce===void 0&&(Ce={});let N=Kl(w.matches,ee);je(X),Ae({errors:{[N.route.id]:ce},fetchers:new Map(w.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function Ye(X){return f.v7_fetcherPersist&&(Te.set(X,(Te.get(X)||0)+1),ye.has(X)&&ye.delete(X)),w.fetchers.get(X)||f8}function je(X){let ee=w.fetchers.get(X);U.has(X)&&!(ee&&ee.state==="loading"&&oe.has(X))&&_e(X),pe.delete(X),oe.delete(X),Ee.delete(X),ye.delete(X),B.delete(X),w.fetchers.delete(X)}function Je(X){if(f.v7_fetcherPersist){let ee=(Te.get(X)||0)-1;ee<=0?(Te.delete(X),ye.add(X)):Te.set(X,ee)}else je(X);Ae({fetchers:new Map(w.fetchers)})}function _e(X){let ee=U.get(X);dt(ee,"Expected fetch controller: "+X),ee.abort(),U.delete(X)}function Fe(X){for(let ee of X){let ce=Ye(ee),Ce=ti(ce.data);w.fetchers.set(ee,Ce)}}function Ge(){let X=[],ee=!1;for(let ce of Ee){let Ce=w.fetchers.get(ce);dt(Ce,"Expected fetcher: "+ce),Ce.state==="loading"&&(Ee.delete(ce),X.push(ce),ee=!0)}return Fe(X),ee}function nt(X){let ee=[];for(let[ce,Ce]of oe)if(Ce0}function mt(X,ee){let ce=w.blockers.get(X)||Tl;return we.get(X)!==ee&&we.set(X,ee),ce}function Ot(X){w.blockers.delete(X),we.delete(X)}function kt(X,ee){let ce=w.blockers.get(X)||Tl;dt(ce.state==="unblocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="proceeding"||ce.state==="blocked"&&ee.state==="unblocked"||ce.state==="proceeding"&&ee.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+ee.state);let Ce=new Map(w.blockers);Ce.set(X,ee),Ae({blockers:Ce})}function Pt(X){let{currentLocation:ee,nextLocation:ce,historyAction:Ce}=X;if(we.size===0)return;we.size>1&&Gs(!1,"A router only supports one blocker at a time");let N=Array.from(we.entries()),[D,I]=N[N.length-1],A=w.blockers.get(D);if(!(A&&A.state==="proceeding")&&I({currentLocation:ee,nextLocation:ce,historyAction:Ce}))return D}function at(X){let ee=un(404,{pathname:X}),ce=s||i,{matches:Ce,route:N}=PP(ce);return nr(),{notFoundMatches:Ce,route:N,error:ee}}function It(X,ee){return{boundaryId:Kl(ee.partialMatches).route.id,error:un(400,{type:"route-discovery",pathname:X,message:ee.error!=null&&"message"in ee.error?ee.error:String(ee.error)})}}function nr(X){let ee=[];return be.forEach((ce,Ce)=>{(!X||X(Ce))&&(ce.cancel(),ee.push(Ce),be.delete(Ce))}),ee}function mn(X,ee,ce){if(S=X,m=ee,x=ce||null,!b&&w.navigation===Tb){b=!0;let Ce=Tr(w.location,w.matches);Ce!=null&&Ae({restoreScrollPosition:Ce})}return()=>{S=null,m=null,x=null}}function qr(X,ee){return x&&x(X,ee.map(Ce=>WB(Ce,w.loaderData)))||X.key}function Nr(X,ee){if(S&&m){let ce=qr(X,ee);S[ce]=m()}}function Tr(X,ee){if(S){let ce=qr(X,ee),Ce=S[ce];if(typeof Ce=="number")return Ce}return null}function Mn(X,ee,ce){if(c){if(y.has(ce))return{active:!1,matches:X};if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:Nh(ee,ce,u,!0)}}else return{active:!0,matches:Nh(ee,ce,u,!0)||[]}}return{active:!1,matches:null}}async function Kr(X,ee,ce){let Ce=X;for(;;){let N=s==null,D=s||i;try{await y8(c,ee,Ce,D,o,a,ve,ce)}catch(L){return{type:"error",error:L,partialMatches:Ce}}finally{N&&(i=[...i])}if(ce.aborted)return{type:"aborted"};let I=us(D,ee,u);if(I)return Ko(ee,y),{type:"success",matches:I};let A=Nh(D,ee,u,!0);if(!A||Ce.length===A.length&&Ce.every((L,H)=>L.route.id===A[H].route.id))return Ko(ee,y),{type:"success",matches:null};Ce=A}}function Ko(X,ee){if(ee.size>=g){let ce=ee.values().next().value;ee.delete(ce)}ee.add(X)}function $r(X){o={},s=mf(X,a,void 0,o)}function ho(X,ee){let ce=s==null;fA(X,ee,s||i,o,a),ce&&(i=[...i],Ae({}))}return E={get basename(){return u},get future(){return f},get state(){return w},get routes(){return i},get window(){return t},initialize:Me,subscribe:Ne,enableScrollRestoration:mn,navigate:ht,fetch:fe,revalidate:ut,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ye,deleteFetcher:Je,dispose:Qe,getBlocker:mt,deleteBlocker:Ot,patchRoutes:ho,_internalFetchControllers:U,_internalActiveDeferreds:be,_internalSetRoutes:$r},E}function v8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function B1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let f of t)if(u.push(f),f.route.id===i){l=f;break}}else u=t,l=t[t.length-1];let c=wm(a||".",xm(u,o),Li(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!KS(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:$o([r,c.pathname])),Qs(c)}function bP(e,t,r,n){if(!n||!v8(n))return{path:r};if(n.formMethod&&!$8(n.formMethod))return{path:r,error:un(405,{method:n.formMethod})};let a=()=>({path:r,error:un(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=pA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ca(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,S]=g;return""+v+y+"="+S+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Ca(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}dt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=z1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=z1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=_P(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=_P(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Ca(c.formMethod))return{path:r,submission:c};let f=io(r);return t&&f.search&&KS(f.search)&&u.append("index",""),f.search="?"+u,{path:Qs(f),submission:c}}function g8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function xP(e,t,r,n,a,o,i,s,u,l,c,f,p,v,g,y){let S=y?Dn(y[1])?y[1].error:y[1].data:void 0,x=e.createURL(t.location),m=e.createURL(a),b=y&&Dn(y[1])?y[0]:void 0,h=b?g8(r,b):r,_=y?y[1].statusCode:void 0,C=i&&_&&_>=400,E=h.filter((O,P)=>{let{route:k}=O;if(k.lazy)return!0;if(k.loader==null)return!1;if(o)return typeof k.loader!="function"||k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(m8(t.loaderData,t.matches[P],O)||u.some(F=>F===O.route.id))return!0;let j=t.matches[P],$=O;return wP(O,Zt({currentUrl:x,currentParams:j.params,nextUrl:m,nextParams:$.params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s||x.pathname+x.search===m.pathname+m.search||x.search!==m.search||dA(j,$)}))}),w=[];return f.forEach((O,P)=>{if(o||!r.some(z=>z.route.id===O.routeId)||c.has(P))return;let k=us(v,O.path,g);if(!k){w.push({key:P,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(P),$=cd(k,O.path),F=!1;p.has(P)?F=!1:l.has(P)?(l.delete(P),F=!0):j&&j.state!=="idle"&&j.data===void 0?F=s:F=wP($,Zt({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s})),F&&w.push({key:P,routeId:O.routeId,path:O.path,matches:k,match:$,controller:new AbortController})}),[E,w]}function m8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function dA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function y8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,f)=>{s.aborted||fA(c,f,n,a,o)}}),i.set(u,l)),l&&P8(l)&&await l}finally{i.delete(u)}}function fA(e,t,r,n,a){if(e){var o;let i=n[e];dt(i,"No route found to patch children into: routeId = "+e);let s=mf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=mf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function b8(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];dt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";Gs(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!VB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Zt({},t(a),{lazy:void 0}))}async function x8(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function w8(e,t,r,n,a,o,i,s,u,l){let c=o.map(v=>v.route.lazy?b8(v.route,u,s):void 0),f=o.map((v,g)=>{let y=c[g],S=a.some(m=>m.route.id===v.route.id);return Zt({},v,{shouldLoad:S,resolve:async m=>(m&&n.method==="GET"&&(v.route.lazy||v.route.loader)&&(S=!0),S?S8(t,n,v,y,m,l):Promise.resolve({type:zt.data,result:void 0}))})}),p=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:l});try{await Promise.all(c)}catch{}return p}async function S8(e,t,r,n,a,o){let i,s,u=l=>{let c,f=new Promise((g,y)=>c=y);s=()=>c(),t.signal.addEventListener("abort",s);let p=g=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):l({request:t,params:r.params,context:o},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(y=>p(y)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,f])};try{let l=r.route[e];if(n)if(l){let c,[f]=await Promise.all([u(l).catch(p=>{c=p}),n]);if(c!==void 0)throw c;i=f}else if(await n,l=r.route[e],l)i=await u(l);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw un(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:zt.data,result:void 0};else if(l)i=await u(l);else{let c=new URL(t.url),f=c.pathname+c.search;throw un(404,{pathname:f})}dt(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(l){return{type:zt.error,result:l}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function _8(e){let{result:t,type:r}=e;if(hA(t)){let l;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(c){return{type:zt.error,error:c}}return r===zt.error?{type:zt.error,error:new Vv(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:zt.data,data:l,statusCode:t.status,headers:t.headers}}if(r===zt.error){if(RP(t)){var n;if(t.data instanceof Error){var a;return{type:zt.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new Vv(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zt.error,error:t,statusCode:Sm(t)?t.status:void 0}}if(T8(t)){var o,i;return{type:zt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(RP(t)){var s,u;return{type:zt.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:zt.data,data:t}}function C8(e,t,r,n,a,o){let i=e.headers.get("Location");if(dt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!HS.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=B1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function SP(e,t,r){if(HS.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Li(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function vl(e,t,r,n){let a=e.createURL(pA(t)).toString(),o={signal:r};if(n&&Ca(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=z1(n.formData):o.body=n.formData}return new Request(a,o)}function z1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function _P(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function E8(e,t,r,n,a){let o={},i=null,s,u=!1,l={},c=r&&Dn(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,v=t[p];if(dt(!xs(v),"Cannot handle redirect results in processLoaderData"),Dn(v)){let g=v.error;if(c!==void 0&&(g=c,c=void 0),i=i||{},a)i[p]=g;else{let y=Kl(e,p);i[y.route.id]==null&&(i[y.route.id]=g)}o[p]=void 0,u||(u=!0,s=Sm(v.error)?v.error.status:500),v.headers&&(l[p]=v.headers)}else Si(v)?(n.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers))}),c!==void 0&&r&&(i={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:l}}function CP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=E8(t,n,a,s,!1);return o.forEach(c=>{let{key:f,match:p,controller:v}=c,g=i[f];if(dt(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Dn(g)){let y=Kl(e.matches,p==null?void 0:p.route.id);l&&l[y.route.id]||(l=Zt({},l,{[y.route.id]:g.error})),e.fetchers.delete(f)}else if(xs(g))dt(!1,"Unhandled fetcher revalidation redirect");else if(Si(g))dt(!1,"Unhandled fetcher deferred data");else{let y=ti(g.data);e.fetchers.set(f,y)}}),{loaderData:u,errors:l}}function EP(e,t,r,n){let a=Zt({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function OP(e){return e?Dn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kl(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function PP(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function un(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+i):a&&r&&n?u="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new Vv(e||500,s,new Error(u),!0)}function Yp(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(xs(a))return{key:n,result:a}}}function pA(e){let t=typeof e=="string"?io(e):e;return Qs(Zt({},t,{hash:""}))}function O8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function P8(e){return typeof e=="object"&&e!=null&&"then"in e}function R8(e){return hA(e.result)&&c8.has(e.result.status)}function Si(e){return e.type===zt.deferred}function Dn(e){return e.type===zt.error}function xs(e){return(e&&e.type)===zt.redirect}function RP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function T8(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function hA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function $8(e){return u8.has(e.toLowerCase())}function Ca(e){return s8.has(e.toLowerCase())}async function k8(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(p==null?void 0:p.route.id)===s);if(!l)continue;let c=n.find(p=>p.route.id===l.route.id),f=c!=null&&!dA(c,l)&&(a&&a[l.route.id])!==void 0;Si(u)&&f&&await qS(u,r,!1).then(p=>{p&&(t[s]=p)})}}async function j8(e,t,r){for(let n=0;n(l==null?void 0:l.route.id)===o)&&Si(s)&&(dt(i,"Expected an AbortController for revalidating fetcher deferred result"),await qS(s,i.signal,!0).then(l=>{l&&(t[a]=l)}))}}async function qS(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zt.error,error:a}}return{type:zt.data,data:e.deferredData.data}}}function KS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cd(e,t){let r=typeof t=="string"?io(t).search:t.search;if(e[e.length-1].route.index&&KS(r||""))return e[e.length-1];let n=lA(e);return n[n.length-1]}function TP(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function $b(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function I8(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Vc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function A8(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ti(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function M8(e,t){try{let r=e.sessionStorage.getItem(cA);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function F8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(cA,JSON.stringify(r))}catch(n){Gs(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;tD1(e,sA(t)),[t,e])}function gA(e){d.useContext(Wi).static||d.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=d.useContext(so);return e?J8():D8()}function D8(){Hi()||dt(!1);let e=d.useContext(rp),{basename:t,future:r,navigator:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,r.v7_relativeSplatPath)),s=d.useRef(!1);return gA(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=wm(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$o([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,o,e])}const B8=d.createContext(null);function z8(e){let t=d.useContext(so).outlet;return t&&d.createElement(B8.Provider,{value:e},t)}function QS(){let{matches:e}=d.useContext(so),t=e[e.length-1];return t?t.params:{}}function mA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,n.v7_relativeSplatPath));return d.useMemo(()=>wm(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function V8(e,t){return yA(e,t)}function yA(e,t,r,n){Hi()||dt(!1);let{navigator:a}=d.useContext(Wi),{matches:o}=d.useContext(so),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=rn(),c;if(t){var f;let S=typeof t=="string"?io(t):t;u==="/"||(f=S.pathname)!=null&&f.startsWith(u)||dt(!1),c=S}else c=l;let p=c.pathname||"/",v=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=us(e,{pathname:v}),y=K8(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$o([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$o([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&y?d.createElement(_m.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dr.Pop}},y):y}function U8(){let e=Q8(),t=Sm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,o)}const W8=d.createElement(U8,null);class H8 extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(so.Provider,{value:this.props.routeContext},d.createElement(vA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function q8(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(rp);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(so.Provider,{value:t},n)}function K8(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||dt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let v,g=!1,y=null,S=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||W8,u&&(l<0&&p===0?(Z8("route-fallback",!1),g=!0,S=null):l===p&&(g=!0,S=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let b;return v?b=y:g?b=S:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,d.createElement(q8,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(H8,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var XS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(XS||{}),yf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yf||{});function bA(e){let t=d.useContext(rp);return t||dt(!1),t}function xA(e){let t=d.useContext(GS);return t||dt(!1),t}function G8(e){let t=d.useContext(so);return t||dt(!1),t}function wA(e){let t=G8(),r=t.matches[t.matches.length-1];return r.route.id||dt(!1),r.route.id}function Q8(){var e;let t=d.useContext(vA),r=xA(yf.UseRouteError),n=wA(yf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let X8=0;function Y8(e){let{router:t,basename:r}=bA(XS.UseBlocker),n=xA(yf.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:Xs({},u,{pathname:Li(u.pathname,r)||u.pathname}),nextLocation:Xs({},l,{pathname:Li(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return d.useEffect(()=>{let s=String(++X8);return o(s),()=>t.deleteBlocker(s)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Tl}function J8(){let{router:e}=bA(XS.UseNavigateStable),t=wA(yf.UseNavigateStable),r=d.useRef(!1);return gA(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Xs({fromRouteId:t},o)))},[e,t])}const $P={};function Z8(e,t,r){!t&&!$P[e]&&($P[e]=!0)}function ez(e){let{to:t,replace:r,state:n,relative:a}=e;Hi()||dt(!1);let{future:o,static:i}=d.useContext(Wi),{matches:s}=d.useContext(so),{pathname:u}=rn(),l=lo(),c=wm(t,xm(s,o.v7_relativeSplatPath),u,a==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:a}),[l,f,a,r,n]),null}function tz(e){return z8(e.context)}function zr(e){dt(!1)}function rz(e){let{basename:t="/",children:r=null,location:n,navigationType:a=dr.Pop,navigator:o,static:i=!1,future:s}=e;Hi()&&dt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:o,static:i,future:Xs({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=io(n));let{pathname:c="/",search:f="",hash:p="",state:v=null,key:g="default"}=n,y=d.useMemo(()=>{let S=Li(c,u);return S==null?null:{location:{pathname:S,search:f,hash:p,state:v,key:g},navigationType:a}},[u,c,f,p,v,g,a]);return y==null?null:d.createElement(Wi.Provider,{value:l},d.createElement(_m.Provider,{children:r,value:y}))}function ws(e){let{children:t,location:r}=e;return V8(V1(t),r)}new Promise(()=>{});function V1(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,V1(n.props.children,o));return}n.type!==zr&&dt(!1),!n.props.index||!n.props.children||dt(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=V1(n.props.children,o)),r.push(i)}),r}function nz(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function oz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iz(e,t){return e.button===0&&(!t||t==="_self")&&!oz(e)}const sz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],lz="6";try{window.__reactRouterVersion=lz}catch{}function uz(e,t){return h8({basename:t==null?void 0:t.basename,future:bf({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:DB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||cz(),routes:e,mapRouteProperties:nz,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function cz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bf({},t,{errors:dz(t.errors)})),t}function dz(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new Vv(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const fz=d.createContext({isTransitioning:!1}),pz=d.createContext(new Map),hz="startTransition",kP=Xd[hz],vz="flushSync",jP=oB[vz];function gz(e){kP?kP(e):e()}function Uc(e){jP?jP(e):e()}class mz{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function yz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,s]=d.useState(),[u,l]=d.useState({isTransitioning:!1}),[c,f]=d.useState(),[p,v]=d.useState(),[g,y]=d.useState(),S=d.useRef(new Map),{v7_startTransition:x}=n||{},m=d.useCallback(w=>{x?gz(w):w()},[x]),b=d.useCallback((w,O)=>{let{deletedFetchers:P,unstable_flushSync:k,unstable_viewTransitionOpts:j}=O;P.forEach(F=>S.current.delete(F)),w.fetchers.forEach((F,z)=>{F.data!==void 0&&S.current.set(z,F.data)});let $=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!j||$){k?Uc(()=>o(w)):m(()=>o(w));return}if(k){Uc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let F=r.window.document.startViewTransition(()=>{Uc(()=>o(w))});F.finished.finally(()=>{Uc(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})})}),Uc(()=>v(F));return}p?(c&&c.resolve(),p.skipTransition(),y({state:w,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(s(w),l({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[r.window,p,c,S,m]);d.useLayoutEffect(()=>r.subscribe(b),[r,b]),d.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new mz)},[u]),d.useEffect(()=>{if(c&&i&&r.window){let w=i,O=c.promise,P=r.window.document.startViewTransition(async()=>{m(()=>o(w)),await O});P.finished.finally(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})}),v(P)}},[m,i,c,r.window]),d.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),d.useEffect(()=>{!u.isTransitioning&&g&&(s(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[u.isTransitioning,g]),d.useEffect(()=>{},[]);let h=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:w=>r.navigate(w),push:(w,O,P)=>r.navigate(w,{state:O,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(w,O,P)=>r.navigate(w,{replace:!0,state:O,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[r]),_=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:h,static:!1,basename:_}),[r,h,_]),E=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(rp.Provider,{value:C},d.createElement(GS.Provider,{value:a},d.createElement(pz.Provider,{value:S.current},d.createElement(fz.Provider,{value:u},d.createElement(rz,{basename:_,location:a.location,navigationType:a.historyAction,navigator:h,future:E},a.initialized||r.future.v7_partialHydration?d.createElement(bz,{routes:r.routes,future:r.future,state:a}):t))))),null)}const bz=d.memo(xz);function xz(e){let{routes:t,future:r,state:n}=e;return yA(t,void 0,n,r)}const wz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=az(t,sz),{basename:v}=d.useContext(Wi),g,y=!1;if(typeof l=="string"&&Sz.test(l)&&(g=l,wz))try{let b=new URL(window.location.href),h=l.startsWith("//")?new URL(b.protocol+l):new URL(l),_=Li(h.pathname,v);h.origin===b.origin&&_!=null?l=_+h.search+h.hash:y=!0}catch{}let S=N8(l,{relative:a}),x=_z(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||x(b)}return d.createElement("a",bf({},p,{href:g||S,onClick:y||o?n:m,ref:r,target:u}))});var IP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(IP||(IP={}));var AP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AP||(AP={}));function _z(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lo(),l=rn(),c=mA(e,{relative:i});return d.useCallback(f=>{if(iz(f,r)){f.preventDefault();let p=n!==void 0?n:Qs(l)===Qs(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var Cz="RaStore",Ez=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},U1=Ez(),Oz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Cz).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?MP(s.newValue):void 0;Object.keys(a).forEach(function(f){a[f]&&a[f].key===l&&(c===null?a[f].callback(void 0):a[f].callback(c??void 0))})}};return{setup:function(){if(U1){var s=go().getItem("".concat(r,".version"));if(s&&s!==e){var u=go();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}go().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){U1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=go().getItem("".concat(r,".").concat(s));return l==null?u:MP(l)},setItem:function(s,u){u===void 0?go().removeItem("".concat(r,".").concat(s)):go().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){go().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=go();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=go();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},MP=function(e){try{return JSON.parse(e)}catch{return e}},Pz=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),Rz=new Pz,go=function(){return U1?window.localStorage:Rz},Tz=typeof Al=="object"&&Al&&Al.Object===Object&&Al,SA=Tz,$z=SA,kz=typeof self=="object"&&self&&self.Object===Object&&self,jz=$z||kz||Function("return this")(),Na=jz,Iz=Na,Az=Iz.Symbol,cc=Az,FP=cc,_A=Object.prototype,Mz=_A.hasOwnProperty,Fz=_A.toString,Wc=FP?FP.toStringTag:void 0;function Nz(e){var t=Mz.call(e,Wc),r=e[Wc];try{e[Wc]=void 0;var n=!0}catch{}var a=Fz.call(e);return n&&(t?e[Wc]=r:delete e[Wc]),a}var Lz=Nz,Dz=Object.prototype,Bz=Dz.toString;function zz(e){return Bz.call(e)}var Vz=zz,NP=cc,Uz=Lz,Wz=Vz,Hz="[object Null]",qz="[object Undefined]",LP=NP?NP.toStringTag:void 0;function Kz(e){return e==null?e===void 0?qz:Hz:LP&&LP in Object(e)?Uz(e):Wz(e)}var dc=Kz;function Gz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var La=Gz,Qz=dc,Xz=La,Yz="[object AsyncFunction]",Jz="[object Function]",Zz="[object GeneratorFunction]",e9="[object Proxy]";function t9(e){if(!Xz(e))return!1;var t=Qz(e);return t==Jz||t==Zz||t==Yz||t==e9}var YS=t9,r9=Na,n9=r9["__core-js_shared__"],a9=n9,kb=a9,DP=function(){var e=/[^.]+$/.exec(kb&&kb.keys&&kb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o9(e){return!!DP&&DP in e}var i9=o9,s9=Function.prototype,l9=s9.toString;function u9(e){if(e!=null){try{return l9.call(e)}catch{}try{return e+""}catch{}}return""}var CA=u9,c9=YS,d9=i9,f9=La,p9=CA,h9=/[\\^$.*+?()[\]{}|]/g,v9=/^\[object .+?Constructor\]$/,g9=Function.prototype,m9=Object.prototype,y9=g9.toString,b9=m9.hasOwnProperty,x9=RegExp("^"+y9.call(b9).replace(h9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w9(e){if(!f9(e)||d9(e))return!1;var t=c9(e)?x9:v9;return t.test(p9(e))}var S9=w9;function _9(e,t){return e==null?void 0:e[t]}var C9=_9,E9=S9,O9=C9;function P9(e,t){var r=O9(e,t);return E9(r)?r:void 0}var sl=P9,R9=sl,T9=function(){try{var e=R9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),EA=T9,BP=EA;function $9(e,t,r){t=="__proto__"&&BP?BP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var JS=$9;function k9(e,t){return e===t||e!==e&&t!==t}var fc=k9,j9=JS,I9=fc,A9=Object.prototype,M9=A9.hasOwnProperty;function F9(e,t,r){var n=e[t];(!(M9.call(e,t)&&I9(n,r))||r===void 0&&!(t in e))&&j9(e,t,r)}var ZS=F9,N9=Array.isArray,uo=N9;function L9(e){return e!=null&&typeof e=="object"}var Vo=L9,D9=dc,B9=Vo,z9="[object Symbol]";function V9(e){return typeof e=="symbol"||B9(e)&&D9(e)==z9}var Cm=V9,U9=uo,W9=Cm,H9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q9=/^\w*$/;function K9(e,t){if(U9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||W9(e)?!0:q9.test(e)||!H9.test(e)||t!=null&&e in Object(t)}var G9=K9,Q9=sl,X9=Q9(Object,"create"),Em=X9,zP=Em;function Y9(){this.__data__=zP?zP(null):{},this.size=0}var J9=Y9;function Z9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var e7=Z9,t7=Em,r7="__lodash_hash_undefined__",n7=Object.prototype,a7=n7.hasOwnProperty;function o7(e){var t=this.__data__;if(t7){var r=t[e];return r===r7?void 0:r}return a7.call(t,e)?t[e]:void 0}var i7=o7,s7=Em,l7=Object.prototype,u7=l7.hasOwnProperty;function c7(e){var t=this.__data__;return s7?t[e]!==void 0:u7.call(t,e)}var d7=c7,f7=Em,p7="__lodash_hash_undefined__";function h7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=f7&&t===void 0?p7:t,this}var v7=h7,g7=J9,m7=e7,y7=i7,b7=d7,x7=v7;function pc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var F7=M7,N7=Om;function L7(e,t){var r=this.__data__,n=N7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var D7=L7,B7=_7,z7=$7,V7=I7,U7=F7,W7=D7;function hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,v=r&cW?new iW:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e<=sH}var c_=lH,uH=dc,cH=c_,dH=Vo,fH="[object Arguments]",pH="[object Array]",hH="[object Boolean]",vH="[object Date]",gH="[object Error]",mH="[object Function]",yH="[object Map]",bH="[object Number]",xH="[object Object]",wH="[object RegExp]",SH="[object Set]",_H="[object String]",CH="[object WeakMap]",EH="[object ArrayBuffer]",OH="[object DataView]",PH="[object Float32Array]",RH="[object Float64Array]",TH="[object Int8Array]",$H="[object Int16Array]",kH="[object Int32Array]",jH="[object Uint8Array]",IH="[object Uint8ClampedArray]",AH="[object Uint16Array]",MH="[object Uint32Array]",Gt={};Gt[PH]=Gt[RH]=Gt[TH]=Gt[$H]=Gt[kH]=Gt[jH]=Gt[IH]=Gt[AH]=Gt[MH]=!0;Gt[fH]=Gt[pH]=Gt[EH]=Gt[hH]=Gt[OH]=Gt[vH]=Gt[gH]=Gt[mH]=Gt[yH]=Gt[bH]=Gt[xH]=Gt[wH]=Gt[SH]=Gt[_H]=Gt[CH]=!1;function FH(e){return dH(e)&&cH(e.length)&&!!Gt[uH(e)]}var NH=FH;function LH(e){return function(t){return e(t)}}var Mm=LH,Hv={exports:{}};Hv.exports;(function(e,t){var r=SA,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Hv,Hv.exports);var d_=Hv.exports,DH=NH,BH=Mm,ZP=d_,e2=ZP&&ZP.isTypedArray,zH=e2?BH(e2):DH,f_=zH,VH=QW,UH=Im,WH=uo,HH=Am,qH=Tm,KH=f_,GH=Object.prototype,QH=GH.hasOwnProperty;function XH(e,t){var r=WH(e),n=!r&&UH(e),a=!r&&!n&&HH(e),o=!r&&!n&&!a&&KH(e),i=r||n||a||o,s=i?VH(e.length,String):[],u=s.length;for(var l in e)(t||QH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||qH(l,u)))&&s.push(l);return s}var DA=XH,YH=Object.prototype;function JH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||YH;return e===r}var p_=JH;function ZH(e,t){return function(r){return e(t(r))}}var BA=ZH,eq=BA,tq=eq(Object.keys,Object),rq=tq,nq=p_,aq=rq,oq=Object.prototype,iq=oq.hasOwnProperty;function sq(e){if(!nq(e))return aq(e);var t=[];for(var r in Object(e))iq.call(e,r)&&r!="constructor"&&t.push(r);return t}var lq=sq,uq=YS,cq=c_;function dq(e){return e!=null&&cq(e.length)&&!uq(e)}var Fm=dq,fq=DA,pq=lq,hq=Fm;function vq(e){return hq(e)?fq(e):pq(e)}var h_=vq,gq=FA,mq=u_,yq=h_;function bq(e){return gq(e,yq,mq)}var zA=bq,t2=zA,xq=1,wq=Object.prototype,Sq=wq.hasOwnProperty;function _q(e,t,r,n,a,o){var i=r&xq,s=t2(e),u=s.length,l=t2(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:Sq.call(t,p)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var S=i;++f0){if(++t>=HG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var QG=GG,XG=WG,YG=QG,JG=YG(XG),aM=JG,ZG=rM,eQ=nM,tQ=aM;function rQ(e,t){return tQ(eQ(e,t,ZG),e+"")}var Lm=rQ,nQ=fc,aQ=Fm,oQ=Tm,iQ=La;function sQ(e,t,r){if(!iQ(r))return!1;var n=typeof t;return(n=="number"?aQ(r)&&oQ(t,r.length):n=="string"&&t in r)?nQ(r[t],e):!1}var oM=sQ,lQ=Lm,uQ=oM;function cQ(e){return lQ(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&uQ(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||E<0||f&&w>=o}function x(){var C=Ab();if(S(C))return m(C);s=setTimeout(x,y(C))}function m(C){return s=void 0,p&&n?v(C):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function h(){return s===void 0?i:m(Ab())}function _(){var C=Ab(),E=S(C);if(n=arguments,a=this,u=C,E){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),v(u)}return s===void 0&&(s=setTimeout(x,t)),i}return _.cancel=b,_.flush=h,_}var SJ=wJ;const x_=Mr(SJ);var _J=function(e,t){t===void 0&&(t=250);var r=CJ(e,t),n=r[0],a=r[1],o=rn();d.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},CJ=function(e,t){t===void 0&&(t=250);var r=ya(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=x_(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},EJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return _J(r,a),t},qi=function(){return d.useContext(hM)},ll=function(){var e=qi();return d.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return qa("".concat(e,"/").concat(r));case"create":return qa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},qa=function(e){return e.replace("//","/")};function A2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var vM=function(e,t){if(A2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. +Be sure to pass the props from the parent. Example: + +const My`).concat(e,` = props => ( + <`).concat(e," {...props}> +); + +The missing props are: `).concat(a.join(", ")))},Gv=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),PM="%[a-f0-9]{2}",D2=new RegExp("("+PM+")|([^%]+?)","gi"),B2=new RegExp("("+PM+")+","gi");function J1(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],J1(r),J1(n))}function eZ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(D2)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},aZ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;om==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return b=>(h,_)=>{const C=h.length;return _===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[",C,"]"].join("")]:[...h,[c(b,m),"[",c(C,m),"]=",c(_,m)].join("")]};case"bracket":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[]"].join("")]:[...h,[c(b,m),"[]=",c(_,m)].join("")];case"colon-list-separator":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),":list="].join("")]:[...h,[c(b,m),":list=",c(_,m)].join("")];case"comma":case"separator":case"bracket-separator":{const b=m.arrayFormat==="bracket-separator"?"[]=":"=";return h=>(_,C)=>C===void 0||m.skipNull&&C===null||m.skipEmptyString&&C===""?_:(C=C===null?"":C,_.length===0?[[c(h,m),b,c(C,m)].join("")]:[[_,c(C,m)].join(m.arrayFormatSeparator)])}default:return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,c(b,m)]:[...h,[c(b,m),"=",c(_,m)].join("")]}}function u(m){let b;switch(m.arrayFormat){case"index":return(h,_,C)=>{if(b=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!b){C[h]=_;return}C[h]===void 0&&(C[h]={}),C[h][b[1]]=_};case"bracket":return(h,_,C)=>{if(b=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"colon-list-separator":return(h,_,C)=>{if(b=/(:list)$/.exec(h),h=h.replace(/:list$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"comma":case"separator":return(h,_,C)=>{const E=typeof _=="string"&&_.includes(m.arrayFormatSeparator),w=typeof _=="string"&&!E&&f(_,m).includes(m.arrayFormatSeparator);_=w?f(_,m):_;const O=E||w?_.split(m.arrayFormatSeparator).map(P=>f(P,m)):_===null?_:f(_,m);C[h]=O};case"bracket-separator":return(h,_,C)=>{const E=/(\[\])$/.test(h);if(h=h.replace(/\[\]$/,""),!E){C[h]=_&&f(_,m);return}const w=_===null?[]:_.split(m.arrayFormatSeparator).map(O=>f(O,m));if(C[h]===void 0){C[h]=w;return}C[h]=[].concat(C[h],w)};default:return(h,_,C)=>{if(C[h]===void 0){C[h]=_;return}C[h]=[].concat(C[h],_)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,b){return b.encode?b.strict?t(m):encodeURIComponent(m):m}function f(m,b){return b.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((b,h)=>Number(b)-Number(h)).map(b=>m[b]):m}function v(m){const b=m.indexOf("#");return b!==-1&&(m=m.slice(0,b)),m}function g(m){let b="";const h=m.indexOf("#");return h!==-1&&(b=m.slice(h)),b}function y(m){m=v(m);const b=m.indexOf("?");return b===-1?"":m.slice(b+1)}function S(m,b){return b.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):b.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const h=u(b),_=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return _;for(const C of m.split("&")){if(C==="")continue;let[E,w]=n(b.decode?C.replace(/\+/g," "):C,"=");w=w===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?w:f(w,b),h(f(E,b),w,_)}for(const C of Object.keys(_)){const E=_[C];if(typeof E=="object"&&E!==null)for(const w of Object.keys(E))E[w]=S(E[w],b);else _[C]=S(E,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((C,E)=>{const w=_[E];return w&&typeof w=="object"&&!Array.isArray(w)?C[E]=p(w):C[E]=w,C},Object.create(null))}e.extract=y,e.parse=x,e.stringify=(m,b)=>{if(!m)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const h=w=>b.skipNull&&o(m[w])||b.skipEmptyString&&m[w]==="",_=s(b),C={};for(const w of Object.keys(m))h(w)||(C[w]=m[w]);const E=Object.keys(C);return b.sort!==!1&&E.sort(b.sort),E.map(w=>{const O=m[w];return O===void 0?"":O===null?c(w,b):Array.isArray(O)?O.length===0&&b.arrayFormat==="bracket-separator"?c(w,b)+"[]":O.reduce(_(w),[]).join("&"):c(w,b)+"="+c(O,b)}).filter(w=>w.length>0).join("&")},e.parseUrl=(m,b)=>{b=Object.assign({decode:!0},b);const[h,_]=n(m,"#");return Object.assign({url:h.split("?")[0]||"",query:x(y(m),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:f(_,b)}:{})},e.stringifyUrl=(m,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const h=v(m.url).split("?")[0]||"",_=e.extract(m.url),C=e.parse(_,{sort:!1}),E=Object.assign(C,m.query);let w=e.stringify(E,b);w&&(w=`?${w}`);let O=g(m.url);return m.fragmentIdentifier&&(O=`#${b[i]?c(m.fragmentIdentifier,b):m.fragmentIdentifier}`),`${h}${w}${O}`},e.pick=(m,b,h)=>{h=Object.assign({parseFragmentIdentifier:!0,[i]:!1},h);const{url:_,query:C,fragmentIdentifier:E}=e.parseUrl(m,h);return e.stringifyUrl({url:_,query:a(C,b),fragmentIdentifier:E},h)},e.exclude=(m,b,h)=>{const _=Array.isArray(b)?C=>!b.includes(C):(C,E)=>!b(C,E);return e.pick(m,_,h)}})(ko);var z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message};const $M=dZ;var pZ=["getList","getMany","getManyReference"],Ki=function(){var e=d.useContext(OM)||w_,t=$M(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=ke.useRef(e.isMutating()>0),a=ke.useState(r.current||n.current),o=a[0],i=a[1];return ke.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(hr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(hr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},Uo=function(){var e=Fa();return d.useCallback(function(){e.invalidateQueries()},[e])},Z1=globalThis&&globalThis.__assign||function(){return Z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?jM(s,t-1,r,n,a):_Z(a,s):n||(a[a.length]=s)}return a}var S_=jM;function EZ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var IM=NZ;function LZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=JZ){var l=t?null:XZ(e);if(l)return YZ(l);i=!1,a=QZ,u=new qZ}else u=t?[]:s;e:for(;++n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?$(F):F},{updatedAt:j}),a.setQueriesData({queryKey:[w,"getManyReference"]},function(F){return F&&F.data?{data:$(F.data),total:F.total}:F},{updatedAt:j})},h=bm(Bt(Bt({mutationFn:function(E){var w=E===void 0?{}:E,O=w.resource,P=O===void 0?e:O,k=w.id,j=k===void 0?v.current.id:k,$=w.data,F=$===void 0?v.current.data:$,z=w.meta,M=z===void 0?v.current.meta:z,W=w.previousData,B=W===void 0?v.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(j==null)throw new Error("useUpdate mutation requires a non-empty id");if(!F)throw new Error("useUpdate mutation requires a non-empty data object");return y.current(P,{id:j,data:F,previousData:B,meta:M}).then(function(U){var q=U.data;return q})}},f),{onMutate:function(E){return q2(void 0,void 0,void 0,function(){var w;return K2(this,function(O){switch(O.label){case 0:return f.onMutate?[4,f.onMutate(E)]:[3,2];case 1:return w=O.sent()||{},[2,Bt({snapshot:g.current},w)];case 2:return[2,{snapshot:g.current}]}})})},onError:function(E,w,O){if(w===void 0&&(w={}),(p.current==="optimistic"||p.current==="undoable")&&O.snapshot.forEach(function(P){var k=P[0],j=P[1];a.setQueryData(k,j)}),S.current)return S.current(E,w,O);if(f.onError)return f.onError(E,w,O)},onSuccess:function(E,w,O){if(w===void 0&&(w={}),p.current==="pessimistic"){var P=w.resource,k=P===void 0?e:P,j=w.id,$=j===void 0?o:j;b({resource:k,id:$,data:E}),f.onSuccess&&!m.current&&f.onSuccess(E,w,O)}},onSettled:function(E,w,O,P){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function(k){var j=k[0];a.invalidateQueries({queryKey:j})}),x.current)return x.current(E,w,O,P);if(f.onSettled)return f.onSettled(E,w,O,P)}})),_=function(E,w,O){return E===void 0&&(E=e),w===void 0&&(w={}),O===void 0&&(O={}),q2(void 0,void 0,void 0,function(){var P,k,j,$,F,z,M,W,B,U,q,ie,oe,Ee,pe;return K2(this,function(Te){switch(Te.label){case 0:return P=O.mutationMode,k=O.returnPromise,j=k===void 0?f.returnPromise:k,$=O.onError,F=O.onSettled,z=O.onSuccess,M=G2(O,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?y.current=c(n.update.bind(n)):y.current=n.update,m.current=!!z,S.current=$,x.current=F,v.current=t,P&&(p.current=P),j&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?j?[2,h.mutateAsync(Bt({resource:E},w),Bt({onSuccess:z},M))]:[2,h.mutate(Bt({resource:E},w),Bt({onSuccess:z},M))]:(W=w.id,B=W===void 0?o:W,U=w.data,q=U===void 0?i:U,ie=w.meta,oe=ie===void 0?s:ie,Ee=a.getQueryData([E,"getOne",{id:String(B),meta:oe}]),pe=[[E,"getOne",{id:String(B),meta:oe}],[E,"getList"],[E,"getInfiniteList"],[E,"getMany"],[E,"getManyReference"]],g.current=pe.reduce(function(ye,be){return ye.concat(a.getQueriesData({queryKey:be}))},[]),[4,Promise.all(g.current.map(function(ye){var be=ye[0];return a.cancelQueries({queryKey:be})}))]);case 1:return Te.sent(),b({resource:E,id:B,data:q}),setTimeout(function(){z?z(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current}):f.onSuccess&&!m.current&&f.onSuccess(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current})},0),p.current==="optimistic"?[2,h.mutate(Bt({resource:E},w))]:(xf.once("end",function(ye){var be=ye.isUndo;be?g.current.forEach(function(we){var ve=we[0],De=we[1];a.setQueryData(ve,De)}):h.mutate(Bt({resource:E},w))}),[2])}})})},C=d.useMemo(function(){return Bt({isLoading:h.isPending},h)},[h]);return[Mt(_),C]},nn=globalThis&&globalThis.__assign||function(){return nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(P):P},{updatedAt:w}),a.setQueriesData({queryKey:[_,"getManyReference"]},function(P){if(!P||!P.data)return P;var k=O(P.data),j=k.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?w(O):O},{updatedAt:E}),a.setQueriesData({queryKey:[h,"getManyReference"]},function(O){if(!O||!O.data)return O;var P=w(O.data),k=P.length=0?i[l].apply(i,Hc(Hc([],f,!1),[c],!1)):o.apply(void 0,f)};return i.length>0?i[l].apply(i,Hc(Hc([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Qv=globalThis&&globalThis.__assign||function(){return Qv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;ie||y(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M instanceof Error||typeof M=="object"&&M!==null&&M.hasOwnProperty("message")?M.message:void 0}})}},_),{returnPromise:!0,getMutateWithMiddlewares:w})),k=P[0],j=P[1].isPending,$=d.useCallback(function(M,W){W===void 0&&(W={});var B=W.transform,U=W.meta,q=aR(W,["transform","meta"]);return Promise.resolve(B?B(M):o?o(M):M).then(function(ie){return rR(void 0,void 0,void 0,function(){var oe,Ee;return nR(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,2,,3]),[4,k(u,{data:ie,meta:U??h},q)];case 1:return pe.sent(),[3,3];case 2:return oe=pe.sent(),(oe instanceof JJ||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((Ee=oe.body)===null||Ee===void 0?void 0:Ee.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[k,h,u,o]),F=_c(),z=g("ra.page.create",{name:F(u,1)});return{isFetching:!1,isLoading:!1,isPending:j,saving:j,defaultTitle:z,save:$,resource:u,record:x,redirect:p,registerMutationMiddleware:E,unregisterMutationMiddleware:O}},ete=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ko.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},tte=function(e,t){return t?"edit":e?"show":"list"},C_=d.createContext(void 0);C_.displayName="RecordContext";var bc=function(e){var t=e.children,r=e.value;return d.createElement(C_.Provider,{value:r},t)},E_=d.createContext(null);E_.displayName="CreateContext";var Xv=globalThis&&globalThis.__assign||function(){return Xv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!Ae||a!=="pessimistic")&&y(typeof ve=="string"?ve:ve.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ve=="string"?ve:ve instanceof Error||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("message")?ve.message:void 0}})}},O),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:j})),ye=Te[0],be=Te[1].isPending,we=d.useCallback(function(ve,De){var Me=De===void 0?{}:De,Qe=Me.onSuccess,Ne=Me.onError,Ae=Me.transform,He=Me.meta;return Promise.resolve(Ae?Ae(ve,{previousData:pe.previousData}):f?f(ve,{previousData:pe.previousData}):ve).then(function(ht){return oR(void 0,void 0,void 0,function(){var ut,V;return iR(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,ye(p,{id:b,data:ht,meta:He??C},{onError:Ne,onSuccess:Qe})];case 1:return K.sent(),[3,3];case 2:return ut=K.sent(),((V=ut.body)===null||V===void 0?void 0:V.errors)!=null?[2,ut.body.errors]:[3,3];case 3:return[2]}})})})},[b,C,p,f,ye,pe.previousData]);return{defaultTitle:Ee,error:M,isFetching:B,isLoading:W,isPending:U,mutationMode:a,record:z,redirect:c,refetch:q,registerMutationMiddleware:k,resource:p,save:we,saving:be,unregisterMutationMiddleware:$}},ste="list",_r=function(e){var t=d.useContext(C_);return e&&e.record||t},zM=function(e){var t=e.value,r=e.children;return t?d.createElement(bc,{value:t},r):r},O_=d.createContext(null);O_.displayName="EditContext";var lte=function(e){var t=e.children,r=e.value;return d.createElement(O_.Provider,{value:r},d.createElement(LM,{value:DM(r)},d.createElement(bc,{value:r&&r.record},t)))},ute=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":UM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),yte=mte,bte=typeof window>"u"?Al:window;function xte(e,t){if(e instanceof bte[t])return!0;switch(typeof e>"u"?"undefined":UM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Ub,lR;function wte(){return lR||(lR=1,Ub=function(t,r,n){var a=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),Ub}var Ste=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(o)),a.push(f.join(this._options.rowDelimiter)),n=f}}catch(v){s=!0,u=v}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(S){var x=a._headers.indexOf(S);return x===-1&&(a._headers.push(S),x=a._headers.indexOf(S)),x};i=function(S){var x=[],m=function(F){return x.push(F.map(function(z){return z??""}))},b=function(){return new Array(a._headers.length).fill(null)},h={},_=b(),C=!0,E=!1,w=void 0;try{for(var O=S[Symbol.iterator](),P;!(C=(P=O.next()).done);C=!0){var k=P.value,j=s(k.item);if(_[j]!=null&&(m(_),_=b()),h[j]=h[j]||0,a._options.fillTopRow&&h[j]0&&m(_),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=a._handler.check(v,a._options.mainPathItem,v,r);i(g)}}catch(y){l=!0,c=y}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),uR(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var v=[f.item,p];a.push(v.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),uR(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Ote=Ete,Pte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Rte=Pte,dR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fR=Ote,pR=Rte,Tte=VM,$te=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:Tte,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":dR(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":dR(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new pR(new fR(e));var p=Object.assign({},e,r),v=new fR(p);return t?new Promise(function(g,y){v.parse(t,function(S,x){if(n)return n(S,x);if(S)return y(S);if(y)return g(x)})}):new pR};const kte=Mr($te);var jte=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},Ite=function(e,t,r,n){return kte(e,function(a,o){return jte(o,n)})},Ate=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},Mte=function(e){return function(t,r,n){return e.getMany(n,{ids:Ate(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},gl=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||g(function(m){if(!Array.isArray(m))return gl([],m,!0);var b=m.indexOf(x);return b>-1?gl(gl([],m.slice(0,b),!0),m.slice(b+1),!0):gl(gl([],m,!0),[x],!1)})},clearSelection:function(){y()}}},[g,y]);return[v,S]},Wb=[];function Bn(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useRef(!1);d.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=d.useCallback(function(i){if(a.current)return n(i)},[a,n]);return[r,o]}function P_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Bn(!1),n=r[0],a=r[1];return d.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function Fte(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Po=globalThis&&globalThis.__assign||function(){return Po=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&h(O)},[v.search]);var P=d.useCallback(function(q){C.current&&(_.current?_.current=F2(_.current,q):(_.current=F2(O,q),setTimeout(function(){_.current&&(a&&!p?x(_.current):a&&p?h(_.current):g({search:"?".concat(ko.stringify(Po(Po({},_.current),{filter:JSON.stringify(_.current.filter),displayedFilters:JSON.stringify(_.current.displayedFilters)})))},{state:{_scrollToTop:q.type===X1}}),_.current=void 0)},0)))},hR(hR([],E,!0),[g],!1)),k=d.useCallback(function(q){return P({type:yM,payload:q})},[P]),j=d.useCallback(function(q){return P({type:X1,payload:q})},[P]),$=d.useCallback(function(q){return P({type:bM,payload:q})},[P]),F=O.filter||mR,z=O.displayedFilters||mR,M=x_(function(q,ie){P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},r),W=d.useCallback(function(q,ie,oe){return ie===void 0&&(ie=void 0),oe===void 0&&(oe=!1),oe?M(q,ie):P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},[P]),B=d.useCallback(function(q){P({type:wM,payload:q})},[P]),U=d.useCallback(function(q,ie){P({type:xM,payload:{filterName:q,defaultValue:ie}})},[P]);return[Po(Po({filterValues:F,requestSignature:E},O),{displayedFilters:z}),{changeParams:P,setPage:j,setPerPage:$,setSort:k,setFilters:W,hideFilter:B,showFilter:U}]},vR=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Lte=function(e){var t=e.search,r=ko.parse(t);return vR(r,"filter"),vR(r,"displayedFilters"),r},Dte=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Bte=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:Dte(r)?Po({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Po(Po({},i),{page:gR(i.page,1),perPage:gR(i.perPage,10)})},gR=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},mR={},zte={field:"id",order:Fs},yR={},Bm=d.createContext(null);Bm.displayName="ListContext";var WM=d.createContext(void 0),Vte=function(e){return d.useMemo(function(){return Dm(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};WM.displayName="ListFilterContext";var HM=d.createContext(void 0),Ute=function(e){return d.useMemo(function(){return Dm(e,["sort","setSort","resource"])},[e.sort,e.setSort])};HM.displayName="ListSortContext";var R_=d.createContext(void 0);R_.displayName="ListPaginationContext";var Wte=function(e){return d.useMemo(function(){return Dm(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},qM=function(e){var t=e.value,r=e.children;return d.createElement(Bm.Provider,{value:t},d.createElement(WM.Provider,{value:Vte(t)},d.createElement(HM.Provider,{value:Ute(t)},d.createElement(R_.Provider,{value:Wte(t)},r))))},Ns=globalThis&&globalThis.__assign||function(){return Ns=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(j==null||(j==null?void 0:j.length)===0)){E.setPage(1);return}if(F!=null){var pe=Math.ceil(F/C.perPage)||1;!B&&C.page>pe&&E.setPage(pe)}},[B,C.page,C.perPage,j,E,F]);var ie=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),oe=_c(),Ee=b("ra.page.list",{name:oe(S,2)});return{sort:ie,data:j,meta:z,defaultTitle:Ee,displayedFilters:C.displayedFilters,error:M,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:E.hideFilter,isFetching:B,isLoading:W,isPending:U,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:C.page,perPage:C.perPage,refetch:q,resource:S,selectedIds:O,setFilters:E.setFilters,setPage:E.setPage,setPerPage:E.setPerPage,setSort:E.setSort,showFilter:E.showFilter,total:F,hasNextPage:$?$.hasNextPage:F!=null?C.page*C.perPage1}},Kte={field:"id",order:Fs},Gte=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],wf=function(e){return Object.keys(e).filter(function(t){return!Gte.includes(t)}).reduce(function(t,r){var n;return Ns(Ns({},t),(n={},n[r]=e[r],n))},{})},Qte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Zp(Zp([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Zp(Zp([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},Jte=function(e,t){var r=ya("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},Gl=globalThis&&globalThis.__assign||function(){return Gl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(de,oe.field)?oe.order==="ASC"?1:-1:qt(se,oe.field)1,hideFilter:He,isFetching:_,isLoading:w,isPending:k,onSelect:be.select,onToggleItem:be.toggle,onUnselectItems:be.clearSelection,page:W,perPage:U,resource:"",refetch:Zte,selectedIds:ye,setFilters:ut,setPage:B,setPerPage:q,setSort:pe,showFilter:ht,total:F==null?void 0:F.total}},tre={},ga=function(){var e=d.useContext(Bm);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},rre=Lm,nre=fc,are=oM,ore=yc,KM=Object.prototype,ire=KM.hasOwnProperty,sre=rre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&are(t[0],t[1],a)&&(n=1);++r1,setSort:F,showFilter:ye,total:Me}},fre={},ip=e=>e.type==="checkbox",Ql=e=>e instanceof Date,dn=e=>e==null;const YM=e=>typeof e=="object";var Sr=e=>!dn(e)&&!Array.isArray(e)&&YM(e)&&!Ql(e),JM=e=>Sr(e)&&e.target?ip(e.target)?e.target.checked:e.target.value:e,pre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ZM=(e,t)=>e.has(pre(t)),hre=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},$_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!($_&&(e instanceof Blob||e instanceof FileList))&&(r||Sr(e)))if(t=r?[]:{},!r&&!hre(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=xn(e[n]));else return e;return t}var zm=e=>Array.isArray(e)?e.filter(Boolean):[],lr=e=>e===void 0,Le=(e,t,r)=>{if(!t||!Sr(e))return r;const n=zm(t.split(/[,[\].]+?/)).reduce((a,o)=>dn(a)?a:a[o],e);return lr(n)||n===e?lr(e[t])?r:e[t]:n},ta=e=>typeof e=="boolean",k_=e=>/^\w*$/.test(e),e3=e=>zm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ut=(e,t,r)=>{let n=-1;const a=k_(t)?[t]:e3(t),o=a.length,i=o-1;for(;++nke.useContext(t3),r3=e=>{const{children:t,...r}=e;return ke.createElement(t3.Provider,{value:r},t)};var n3=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Ra.all&&(t._proxyFormState[i]=!n||Ra.all),r&&(r[i]=!0),e[i]}});return a},_n=e=>Sr(e)&&!Object.keys(e).length,a3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return _n(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Ra.all))},Td=e=>Array.isArray(e)?e:[e],o3=(e,t,r)=>!e||!t||e===t||Td(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function j_(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Vm(e){const t=xc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=ke.useState(r._formState),u=ke.useRef(!0),l=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ke.useRef(a);return c.current=a,j_({disabled:n,next:f=>u.current&&o3(c.current,f.name,o)&&a3(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),ke.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),n3(i,r,l.current,!1)}var Ja=e=>typeof e=="string",i3=(e,t,r,n,a)=>Ja(e)?(n&&t.watch.add(e),Le(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Le(r,o))):(n&&(t.watchAll=!0),r);function vre(e){const t=xc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=ke.useRef(n);s.current=n,j_({disabled:o,subject:r._subjects.values,next:c=>{o3(s.current,c.name,i)&&l(xn(i3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),u}function gre(e){const t=xc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=ZM(a._names.array,r),s=vre({control:a,name:r,defaultValue:Le(a._formValues,r,Le(a._defaultValues,r,e.defaultValue)),exact:!0}),u=Vm({control:a,name:r,exact:!0}),l=ke.useRef(a.register(r,{...e.rules,value:s,...ta(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const c=a._options.shouldUnregister||o,f=(p,v)=>{const g=Le(a._fields,p);g&&g._f&&(g._f.mount=v)};if(f(r,!0),c){const p=xn(Le(a._options.defaultValues,r));Ut(a._defaultValues,r,p),lr(Le(a._formValues,r))&&Ut(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):f(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Le(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Le(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ta(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:ke.useCallback(c=>l.current.onChange({target:{value:JM(c),name:r},type:Yv.CHANGE}),[r]),onBlur:ke.useCallback(()=>l.current.onBlur({target:{value:Le(a._formValues,r),name:r},type:Yv.BLUR}),[r,a]),ref:ke.useCallback(c=>{const f=Le(a._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})},[a._fields,r])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Le(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Le(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Le(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Le(u.validatingFields,r)},error:{enumerable:!0,get:()=>Le(u.errors,r)}})}}var mre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},xR=e=>({isOnSubmit:!e||e===Ra.onSubmit,isOnBlur:e===Ra.onBlur,isOnChange:e===Ra.onChange,isOnAll:e===Ra.all,isOnTouch:e===Ra.onTouched}),wR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const $d=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Le(e,a);if(o){const{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if($d(s,t))break}else if(Sr(s)&&$d(s,t))break}}};var yre=(e,t,r)=>{const n=Td(Le(e,r));return Ut(n,"root",t[r]),Ut(e,r,n),e},I_=e=>e.type==="file",Ro=e=>typeof e=="function",Jv=e=>{if(!$_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Bh=e=>Ja(e),A_=e=>e.type==="radio",Zv=e=>e instanceof RegExp;const SR={value:!1,isValid:!1},_R={value:!0,isValid:!0};var s3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!lr(e[0].attributes.value)?lr(e[0].value)||e[0].value===""?_R:{value:e[0].value,isValid:!0}:_R:SR}return SR};const CR={isValid:!1,value:null};var l3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,CR):CR;function ER(e,t,r="validate"){if(Bh(e)||Array.isArray(e)&&e.every(Bh)||ta(e)&&!e)return{type:r,message:Bh(e)?e:"",ref:t}}var ml=e=>Sr(e)&&!Zv(e)?e:{value:e,message:""},OR=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:v,name:g,valueAsNumber:y,mount:S,disabled:x}=e._f,m=Le(t,g);if(!S||x)return{};const b=i?i[0]:o,h=j=>{n&&b.reportValidity&&(b.setCustomValidity(ta(j)?"":j||""),b.reportValidity())},_={},C=A_(o),E=ip(o),w=C||E,O=(y||I_(o))&&lr(o.value)&&lr(m)||Jv(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,P=mre.bind(null,g,r,_),k=(j,$,F,z=mo.maxLength,M=mo.minLength)=>{const W=j?$:F;_[g]={type:j?z:M,message:W,ref:o,...P(j?z:M,W)}};if(a?!Array.isArray(m)||!m.length:s&&(!w&&(O||dn(m))||ta(m)&&!m||E&&!s3(i).isValid||C&&!l3(i).isValid)){const{value:j,message:$}=Bh(s)?{value:!!s,message:s}:ml(s);if(j&&(_[g]={type:mo.required,message:$,ref:b,...P(mo.required,$)},!r))return h($),_}if(!O&&(!dn(c)||!dn(f))){let j,$;const F=ml(f),z=ml(c);if(!dn(m)&&!isNaN(m)){const M=o.valueAsNumber||m&&+m;dn(F.value)||(j=M>F.value),dn(z.value)||($=Mnew Date(new Date().toDateString()+" "+q),B=o.type=="time",U=o.type=="week";Ja(F.value)&&m&&(j=B?W(m)>W(F.value):U?m>F.value:M>new Date(F.value)),Ja(z.value)&&m&&($=B?W(m)+j.value,z=!dn($.value)&&m.length<+$.value;if((F||z)&&(k(F,j.message,$.message),!r))return h(_[g].message),_}if(p&&!O&&Ja(m)){const{value:j,message:$}=ml(p);if(Zv(j)&&!m.match(j)&&(_[g]={type:mo.pattern,message:$,ref:o,...P(mo.pattern,$)},!r))return h($),_}if(v){if(Ro(v)){const j=await v(m,t),$=ER(j,b);if($&&(_[g]={...$,...P(mo.validate,$.message)},!r))return h($.message),_}else if(Sr(v)){let j={};for(const $ in v){if(!_n(j)&&!r)break;const F=ER(await v[$](m,t),b,$);F&&(j={...F,...P($,F.message)},h(F.message),r&&(_[g]=j))}if(!_n(j)&&(_[g]={ref:b,...j},!r))return _}}return h(!0),_};function bre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},eg=e=>dn(e)||!YM(e);function ci(e,t){if(eg(e)||eg(t))return e===t;if(Ql(e)&&Ql(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Ql(o)&&Ql(i)||Sr(o)&&Sr(i)||Array.isArray(o)&&Array.isArray(i)?!ci(o,i):o!==i)return!1}}return!0}var u3=e=>e.type==="select-multiple",wre=e=>A_(e)||ip(e),Kb=e=>Jv(e)&&e.isConnected,c3=e=>{for(const t in e)if(Ro(e[t]))return!0;return!1};function tg(e,t={}){const r=Array.isArray(e);if(Sr(e)||r)for(const n in e)Array.isArray(e[n])||Sr(e[n])&&!c3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},tg(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function d3(e,t,r){const n=Array.isArray(e);if(Sr(e)||n)for(const a in e)Array.isArray(e[a])||Sr(e[a])&&!c3(e[a])?lr(t)||eg(r[a])?r[a]=Array.isArray(e[a])?tg(e[a],[]):{...tg(e[a])}:d3(e[a],dn(t)?{}:t[a],r[a]):r[a]=!ci(e[a],t[a]);return r}var eh=(e,t)=>d3(e,t,tg(t)),f3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>lr(e)?e:t?e===""?NaN:e&&+e:r&&Ja(e)?new Date(e):n?n(e):e;function Gb(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return I_(t)?t.files:A_(t)?l3(e.refs).value:u3(t)?[...t.selectedOptions].map(({value:r})=>r):ip(t)?s3(e.refs).value:f3(lr(t.value)?e.ref.value:t.value,e)}var Sre=(e,t,r,n)=>{const a={};for(const o of e){const i=Le(t,o);i&&Ut(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},qc=e=>lr(e)?e:Zv(e)?e.source:Sr(e)?Zv(e.value)?e.value.source:e.value:e;const PR="AsyncFunction";var _re=e=>(!e||!e.validate)&&!!(Ro(e.validate)&&e.validate.constructor.name===PR||Sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===PR)),Cre=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function RR(e,t,r){const n=Le(e,r);if(n||k_(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Le(t,o),s=Le(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Ere=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Ore=(e,t)=>!zm(Le(e,t)).length&&Cr(e,t);const Pre={mode:Ra.onSubmit,reValidateMode:Ra.onChange,shouldFocusError:!0};function Rre(e={}){let t={...Pre,...e},r={submitCount:0,isDirty:!1,isLoading:Ro(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Sr(t.defaultValues)||Sr(t.values)?xn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:xn(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:qb(),array:qb(),state:qb()},p=xR(t.mode),v=xR(t.reValidateMode),g=t.criteriaMode===Ra.all,y=V=>K=>{clearTimeout(l),l=setTimeout(V,K)},S=async V=>{if(c.isValid||V){const K=t.resolver?_n((await w()).errors):await P(n,!0);K!==r.isValid&&f.state.next({isValid:K})}},x=(V,K)=>{(c.isValidating||c.validatingFields)&&((V||Array.from(s.mount)).forEach(te=>{te&&(K?Ut(r.validatingFields,te,K):Cr(r.validatingFields,te))}),f.state.next({validatingFields:r.validatingFields,isValidating:!_n(r.validatingFields)}))},m=(V,K=[],te,se,de=!0,fe=!0)=>{if(se&&te){if(i.action=!0,fe&&Array.isArray(Le(n,V))){const Oe=te(Le(n,V),se.argA,se.argB);de&&Ut(n,V,Oe)}if(fe&&Array.isArray(Le(r.errors,V))){const Oe=te(Le(r.errors,V),se.argA,se.argB);de&&Ut(r.errors,V,Oe),Ore(r.errors,V)}if(c.touchedFields&&fe&&Array.isArray(Le(r.touchedFields,V))){const Oe=te(Le(r.touchedFields,V),se.argA,se.argB);de&&Ut(r.touchedFields,V,Oe)}c.dirtyFields&&(r.dirtyFields=eh(a,o)),f.state.next({name:V,isDirty:j(V,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ut(o,V,K)},b=(V,K)=>{Ut(r.errors,V,K),f.state.next({errors:r.errors})},h=V=>{r.errors=V,f.state.next({errors:r.errors,isValid:!1})},_=(V,K,te,se)=>{const de=Le(n,V);if(de){const fe=Le(o,V,lr(te)?Le(a,V):te);lr(fe)||se&&se.defaultChecked||K?Ut(o,V,K?fe:Gb(de._f)):z(V,fe),i.mount&&S()}},C=(V,K,te,se,de)=>{let fe=!1,Oe=!1;const ae={name:V},Z=!!(Le(n,V)&&Le(n,V)._f&&Le(n,V)._f.disabled);if(!te||se){c.isDirty&&(Oe=r.isDirty,r.isDirty=ae.isDirty=j(),fe=Oe!==ae.isDirty);const G=Z||ci(Le(a,V),K);Oe=!!(!Z&&Le(r.dirtyFields,V)),G||Z?Cr(r.dirtyFields,V):Ut(r.dirtyFields,V,!0),ae.dirtyFields=r.dirtyFields,fe=fe||c.dirtyFields&&Oe!==!G}if(te){const G=Le(r.touchedFields,V);G||(Ut(r.touchedFields,V,te),ae.touchedFields=r.touchedFields,fe=fe||c.touchedFields&&G!==te)}return fe&&de&&f.state.next(ae),fe?ae:{}},E=(V,K,te,se)=>{const de=Le(r.errors,V),fe=c.isValid&&ta(K)&&r.isValid!==K;if(e.delayError&&te?(u=y(()=>b(V,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Ut(r.errors,V,te):Cr(r.errors,V)),(te?!ci(de,te):de)||!_n(se)||fe){const Oe={...se,...fe&&ta(K)?{isValid:K}:{},errors:r.errors,name:V};r={...r,...Oe},f.state.next(Oe)}},w=async V=>{x(V,!0);const K=await t.resolver(o,t.context,Sre(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(V),K},O=async V=>{const{errors:K}=await w(V);if(V)for(const te of V){const se=Le(K,te);se?Ut(r.errors,te,se):Cr(r.errors,te)}else r.errors=K;return K},P=async(V,K,te={valid:!0})=>{for(const se in V){const de=V[se];if(de){const{_f:fe,...Oe}=de;if(fe){const ae=s.array.has(fe.name),Z=de._f&&_re(de._f);Z&&c.validatingFields&&x([se],!0);const G=await OR(de,o,g,t.shouldUseNativeValidation&&!K,ae);if(Z&&c.validatingFields&&x([se]),G[fe.name]&&(te.valid=!1,K))break;!K&&(Le(G,fe.name)?ae?yre(r.errors,G,fe.name):Ut(r.errors,fe.name,G[fe.name]):Cr(r.errors,fe.name))}!_n(Oe)&&await P(Oe,K,te)}}return te.valid},k=()=>{for(const V of s.unMount){const K=Le(n,V);K&&(K._f.refs?K._f.refs.every(te=>!Kb(te)):!Kb(K._f.ref))&&ye(V)}s.unMount=new Set},j=(V,K)=>(V&&K&&Ut(o,V,K),!ci(ie(),a)),$=(V,K,te)=>i3(V,s,{...i.mount?o:lr(K)?a:Ja(V)?{[V]:K}:K},te,K),F=V=>zm(Le(i.mount?o:a,V,e.shouldUnregister?Le(a,V,[]):[])),z=(V,K,te={})=>{const se=Le(n,V);let de=K;if(se){const fe=se._f;fe&&(!fe.disabled&&Ut(o,V,f3(K,fe)),de=Jv(fe.ref)&&dn(K)?"":K,u3(fe.ref)?[...fe.ref.options].forEach(Oe=>Oe.selected=de.includes(Oe.value)):fe.refs?ip(fe.ref)?fe.refs.length>1?fe.refs.forEach(Oe=>(!Oe.defaultChecked||!Oe.disabled)&&(Oe.checked=Array.isArray(de)?!!de.find(ae=>ae===Oe.value):de===Oe.value)):fe.refs[0]&&(fe.refs[0].checked=!!de):fe.refs.forEach(Oe=>Oe.checked=Oe.value===de):I_(fe.ref)?fe.ref.value="":(fe.ref.value=de,fe.ref.type||f.values.next({name:V,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&C(V,de,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&q(V)},M=(V,K,te)=>{for(const se in K){const de=K[se],fe=`${V}.${se}`,Oe=Le(n,fe);(s.array.has(V)||!eg(de)||Oe&&!Oe._f)&&!Ql(de)?M(fe,de,te):z(fe,de,te)}},W=(V,K,te={})=>{const se=Le(n,V),de=s.array.has(V),fe=xn(K);Ut(o,V,fe),de?(f.array.next({name:V,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&f.state.next({name:V,dirtyFields:eh(a,o),isDirty:j(V,fe)})):se&&!se._f&&!dn(fe)?M(V,fe,te):z(V,fe,te),wR(V,s)&&f.state.next({...r}),f.values.next({name:i.mount?V:void 0,values:{...o}})},B=async V=>{i.mount=!0;const K=V.target;let te=K.name,se=!0;const de=Le(n,te),fe=()=>K.type?Gb(de._f):JM(V),Oe=ae=>{se=Number.isNaN(ae)||ci(ae,Le(o,te,ae))};if(de){let ae,Z;const G=fe(),le=V.type===Yv.BLUR||V.type===Yv.FOCUS_OUT,he=!Cre(de._f)&&!t.resolver&&!Le(r.errors,te)&&!de._f.deps||Ere(le,Le(r.touchedFields,te),r.isSubmitted,v,p),Re=wR(te,s,le);Ut(o,te,G),le?(de._f.onBlur&&de._f.onBlur(V),u&&u(0)):de._f.onChange&&de._f.onChange(V);const Be=C(te,G,le,!1),Ye=!_n(Be)||Re;if(!le&&f.values.next({name:te,type:V.type,values:{...o}}),he)return c.isValid&&(e.mode==="onBlur"?le&&S():S()),Ye&&f.state.next({name:te,...Re?{}:Be});if(!le&&Re&&f.state.next({...r}),t.resolver){const{errors:je}=await w([te]);if(Oe(G),se){const Je=RR(r.errors,n,te),_e=RR(je,n,Je.name||te);ae=_e.error,te=_e.name,Z=_n(je)}}else x([te],!0),ae=(await OR(de,o,g,t.shouldUseNativeValidation))[te],x([te]),Oe(G),se&&(ae?Z=!1:c.isValid&&(Z=await P(n,!0)));se&&(de._f.deps&&q(de._f.deps),E(te,Z,ae,Be))}},U=(V,K)=>{if(Le(r.errors,K)&&V.focus)return V.focus(),1},q=async(V,K={})=>{let te,se;const de=Td(V);if(t.resolver){const fe=await O(lr(V)?V:de);te=_n(fe),se=V?!de.some(Oe=>Le(fe,Oe)):te}else V?(se=(await Promise.all(de.map(async fe=>{const Oe=Le(n,fe);return await P(Oe&&Oe._f?{[fe]:Oe}:Oe)}))).every(Boolean),!(!se&&!r.isValid)&&S()):se=te=await P(n);return f.state.next({...!Ja(V)||c.isValid&&te!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:te}:{},errors:r.errors}),K.shouldFocus&&!se&&$d(n,U,V?de:s.mount),se},ie=V=>{const K={...i.mount?o:a};return lr(V)?K:Ja(V)?Le(K,V):V.map(te=>Le(K,te))},oe=(V,K)=>({invalid:!!Le((K||r).errors,V),isDirty:!!Le((K||r).dirtyFields,V),error:Le((K||r).errors,V),isValidating:!!Le(r.validatingFields,V),isTouched:!!Le((K||r).touchedFields,V)}),Ee=V=>{V&&Td(V).forEach(K=>Cr(r.errors,K)),f.state.next({errors:V?r.errors:{}})},pe=(V,K,te)=>{const se=(Le(n,V,{_f:{}})._f||{}).ref,de=Le(r.errors,V)||{},{ref:fe,message:Oe,type:ae,...Z}=de;Ut(r.errors,V,{...Z,...K,ref:se}),f.state.next({name:V,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&se&&se.focus&&se.focus()},Te=(V,K)=>Ro(V)?f.values.subscribe({next:te=>V($(void 0,K),te)}):$(V,K,!0),ye=(V,K={})=>{for(const te of V?Td(V):s.mount)s.mount.delete(te),s.array.delete(te),K.keepValue||(Cr(n,te),Cr(o,te)),!K.keepError&&Cr(r.errors,te),!K.keepDirty&&Cr(r.dirtyFields,te),!K.keepTouched&&Cr(r.touchedFields,te),!K.keepIsValidating&&Cr(r.validatingFields,te),!t.shouldUnregister&&!K.keepDefaultValue&&Cr(a,te);f.values.next({values:{...o}}),f.state.next({...r,...K.keepDirty?{isDirty:j()}:{}}),!K.keepIsValid&&S()},be=({disabled:V,name:K,field:te,fields:se,value:de})=>{if(ta(V)&&i.mount||V){const fe=V?void 0:lr(de)?Gb(te?te._f:Le(se,K)._f):de;Ut(o,K,fe),C(K,fe,!1,!1,!0)}},we=(V,K={})=>{let te=Le(n,V);const se=ta(K.disabled)||ta(e.disabled);return Ut(n,V,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:V}},name:V,mount:!0,...K}}),s.mount.add(V),te?be({field:te,disabled:ta(K.disabled)?K.disabled:e.disabled,name:V,value:K.value}):_(V,!0,K.value),{...se?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:qc(K.min),max:qc(K.max),minLength:qc(K.minLength),maxLength:qc(K.maxLength),pattern:qc(K.pattern)}:{},name:V,onChange:B,onBlur:B,ref:de=>{if(de){we(V,K),te=Le(n,V);const fe=lr(de.value)&&de.querySelectorAll&&de.querySelectorAll("input,select,textarea")[0]||de,Oe=wre(fe),ae=te._f.refs||[];if(Oe?ae.find(Z=>Z===fe):fe===te._f.ref)return;Ut(n,V,{_f:{...te._f,...Oe?{refs:[...ae.filter(Kb),fe,...Array.isArray(Le(a,V))?[{}]:[]],ref:{type:fe.type,name:V}}:{ref:fe}}}),_(V,!1,void 0,fe)}else te=Le(n,V,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(ZM(s.array,V)&&i.action)&&s.unMount.add(V)}}},ve=()=>t.shouldFocusError&&$d(n,U,s.mount),De=V=>{ta(V)&&(f.state.next({disabled:V}),$d(n,(K,te)=>{const se=Le(n,te);se&&(K.disabled=se._f.disabled||V,Array.isArray(se._f.refs)&&se._f.refs.forEach(de=>{de.disabled=se._f.disabled||V}))},0,!1))},Me=(V,K)=>async te=>{let se;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let de=xn(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:fe,values:Oe}=await w();r.errors=fe,de=Oe}else await P(n);if(Cr(r.errors,"root"),_n(r.errors)){f.state.next({errors:{}});try{await V(de,te)}catch(fe){se=fe}}else K&&await K({...r.errors},te),ve(),setTimeout(ve);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_n(r.errors)&&!se,submitCount:r.submitCount+1,errors:r.errors}),se)throw se},Qe=(V,K={})=>{Le(n,V)&&(lr(K.defaultValue)?W(V,xn(Le(a,V))):(W(V,K.defaultValue),Ut(a,V,xn(K.defaultValue))),K.keepTouched||Cr(r.touchedFields,V),K.keepDirty||(Cr(r.dirtyFields,V),r.isDirty=K.defaultValue?j(V,xn(Le(a,V))):j()),K.keepError||(Cr(r.errors,V),c.isValid&&S()),f.state.next({...r}))},Ne=(V,K={})=>{const te=V?xn(V):a,se=xn(te),de=_n(V),fe=de?a:se;if(K.keepDefaultValues||(a=te),!K.keepValues){if(K.keepDirtyValues)for(const Oe of s.mount)Le(r.dirtyFields,Oe)?Ut(fe,Oe,Le(o,Oe)):W(Oe,Le(fe,Oe));else{if($_&&lr(V))for(const Oe of s.mount){const ae=Le(n,Oe);if(ae&&ae._f){const Z=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Jv(Z)){const G=Z.closest("form");if(G){G.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?xn(a):{}:xn(fe),f.array.next({values:{...fe}}),f.values.next({values:{...fe}})}s={mount:K.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:de?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!ci(V,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:de?{}:K.keepDirtyValues?K.keepDefaultValues&&o?eh(a,o):r.dirtyFields:K.keepDefaultValues&&V?eh(a,V):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ae=(V,K)=>Ne(Ro(V)?V(o):V,K);return{control:{register:we,unregister:ye,getFieldState:oe,handleSubmit:Me,setError:pe,_executeSchema:w,_getWatch:$,_getDirty:j,_updateValid:S,_removeUnmounted:k,_updateFieldArray:m,_updateDisabledField:be,_getFieldArray:F,_reset:Ne,_resetDefaultValues:()=>Ro(t.defaultValues)&&t.defaultValues().then(V=>{Ae(V,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:De,_subjects:f,_proxyFormState:c,_setErrors:h,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(V){i=V},get _defaultValues(){return a},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:q,register:we,handleSubmit:Me,watch:Te,setValue:W,getValues:ie,reset:Ae,resetField:Qe,clearErrors:Ee,unregister:ye,setError:pe,setFocus:(V,K={})=>{const te=Le(n,V),se=te&&te._f;if(se){const de=se.refs?se.refs[0]:se.ref;de.focus&&(de.focus(),K.shouldSelect&&de.select())}},getFieldState:oe}}function p3(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:Ro(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ro(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Rre(e),formState:n});const o=t.current.control;return o._options=e,j_({subject:o._subjects.state,next:i=>{a3(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ke.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),ke.useEffect(()=>{e.values&&!ci(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=n3(n,o),t.current}var h3=d.createContext(void 0),rx=globalThis&&globalThis.__assign||function(){return rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=d.useState(!1),l=u[0],c=u[1],f=!e||!s||o,p=Y8(function(v){var g=v.currentLocation,y=v.nextLocation;if(f)return!1;var S=t||g.pathname,x=y.pathname.startsWith(S),m=y.pathname.startsWith("".concat(S,"/show")),b=x&&!m;return!b});d.useEffect(function(){if(p.state==="blocked"){if(f){p.proceed();return}c(!0)}},[p.state]),d.useEffect(function(){if(l){var v=window.confirm(n("ra.message.unsaved_changes"));v?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),d.useEffect(function(){var v=function(g){g.preventDefault(),g.returnValue=!0};if(!f)return window.addEventListener("beforeunload",v),function(){window.removeEventListener("beforeunload",v)}},[f])},zre=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return Bre(r,n,a),null};function Vre(e,t){var r=iM({},Ure(e,t),t);return r}function Ure(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var m3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},Wre=function(e,t){t===void 0&&(t=!0);var r=Vm(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=ur();d.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},Hre=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},ax=globalThis&&globalThis.__assign||function(){return ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Yre(e){return e?e.hasOwnProperty("message"):!1}var Qi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Xi=function(e){return RA(e,function(){for(var t=[],r=0;re?Qi(t,{max:e},r,n):void 0}});Xi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gi(r)&&re?Qi(t,{max:e},r,n):void 0}});Xi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gi(t)&&isNaN(Number(t))?Qi(e,void 0,t,r):void 0}});var tne=RA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gi(r)&&typeof r=="string"&&!e.test(r)?Qi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Xi(function(e){return e===void 0&&(e="ra.validation.email"),tne(Xre,e)});var rne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xi(function(e,t){return t===void 0&&(t=rne),function(r,n){return!Gi(r)&&e.indexOf(r)===-1?Qi(t,{list:e},r,n):void 0}});var nne=d.createContext(null),ane=function(){var e=d.useContext(h3);return e},one=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=H3(o),s=_r(t),u=xc(),l=u.getValues,c=u.resetField,f=u.formState,p=u.reset,v=qt(s,i),g=qt(l(),i),y=f.dirtyFields,S=Object.keys(y).includes(i);d.useEffect(function(){if(!(a==null||g!=null||v!=null||S)){var x=i.split(".").some(function(h){return ine.test(h)});if(x){var m=i.split(".").slice(0,-1).join("."),b=qt(l(),m);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},ine=/^\d+$/,sne=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,s=e.translateChoice,u=s===void 0?!0:s,l=et(),c=d.useCallback(function(v){if(d.isValidElement(r))return d.createElement(bc,{value:v},r);var g=typeof r=="function"?r(v):qt(v,r);return d.isValidElement(g)?g:u?l(String(g),{_:g}):String(g)},[r,l,u]),f=d.useCallback(function(v){return qt(v,a)},[a]),p=d.useCallback(function(v){return qt(v,i)},[i]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},lne=function(){var e=d.useContext(nne);return e},une=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const cne=une;var fs=globalThis&&globalThis.__assign||function(){return fs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var S3=function(){return d.useContext(x3)},sx=globalThis&&globalThis.__assign||function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Fne=function(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Nne=function(e,t){var r=S3(),n=r.register,a=r.unregister;d.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},Lne=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return _3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},_3=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},dd=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(d.Children.forEach(e,function(a){if(d.isValidElement(a)){if(a.type===d.Fragment){var o=dd(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},C3=d.createContext(!1),Dne=C3.Provider,Bne=function(){return d.useContext(C3)},zne=function(e){One();var t=ll(),r=Ane(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.requireAuth,p=e.ready,v=d.useState(f),g=v[0],y=v[1],S=d.useState(f),x=S[0],m=S[1],b=Y3();if(d.useEffect(function(){f&&b(void 0,!1).then(function(){y(!1)}).catch(function(){}).finally(function(){m(!1)})},[b,f]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(p,null)}return o==="loading"||x?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):g?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement(Nae,null)})):d.createElement(ws,null,a,d.createElement(zr,{path:"/*",element:d.createElement(Dne,{value:!!l},d.createElement(s,null,d.createElement(ws,null,n,d.Children.map(i,function(h){return d.createElement(zr,{key:h.props.name,path:"".concat(h.props.name,"/*"),element:h})}),d.createElement(zr,{path:"/",element:l?d.createElement(Tae,{authParams:Vne,component:l}):i.length>0?d.createElement(ez,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(u,null)}))))}))},Vne={params:{route:"dashboard"}},E3=d.createContext("React Admin"),Une=E3.Provider,O3=function(){return d.useContext(E3)},Wne=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Hne=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return y3(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},qne=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?AR:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,p=e.error,v=p===void 0?Hne:p,g=e.layout,y=g===void 0?Wne:g,S=e.loading,x=S===void 0?AR:S,m=e.loginPage,b=m===void 0?!1:m,h=e.ready,_=h===void 0?sae:h,C=e.requireAuth,E=C===void 0?!1:C,w=e.title,O=w===void 0?"React Admin":w;d.useEffect(function(){if(!(f||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var k=new Image;k.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var P=function(k,j){return n(j)};return d.createElement(Une,{value:O},d.createElement(w3,{onError:P,fallbackRender:function(k){var j=k.error,$=k.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(v,{error:j,errorInfo:r,resetErrorBoundary:$}))}},d.createElement(ws,null,b!==!1&&b!==!0?d.createElement(zr,{path:"/login",element:IR(b)}):null,o!==!1&&o!==!0?d.createElement(zr,{path:"/auth-callback",element:IR(o)}):null,d.createElement(zr,{path:"/*",element:d.createElement(zne,{catchAll:s,dashboard:l,layout:y,loading:x,requireAuth:E,ready:_},u)}))))},IR=function(e){return d.isValidElement(e)?e:d.createElement(e)},AR=function(){return null},P3=function(e){return null};P3.raName="CustomRoutes";var R3=d.createContext(void 0),ul=function(e){var t=e.children,r=e.value;return r?d.createElement(R3.Provider,{value:r},t):t},Kne=function(e){var t=e.value,r=e.children;return t?d.createElement(ul,{value:t},r):r},T3={exports:{}},Ft={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var N_=Symbol.for("react.element"),L_=Symbol.for("react.portal"),Um=Symbol.for("react.fragment"),Wm=Symbol.for("react.strict_mode"),Hm=Symbol.for("react.profiler"),qm=Symbol.for("react.provider"),Km=Symbol.for("react.context"),Gne=Symbol.for("react.server_context"),Gm=Symbol.for("react.forward_ref"),Qm=Symbol.for("react.suspense"),Xm=Symbol.for("react.suspense_list"),Ym=Symbol.for("react.memo"),Jm=Symbol.for("react.lazy"),Qne=Symbol.for("react.offscreen"),$3;$3=Symbol.for("react.module.reference");function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N_:switch(e=e.type,e){case Um:case Hm:case Wm:case Qm:case Xm:return e;default:switch(e=e&&e.$$typeof,e){case Gne:case Km:case Gm:case Jm:case Ym:case qm:return e;default:return t}}case L_:return t}}}Ft.ContextConsumer=Km;Ft.ContextProvider=qm;Ft.Element=N_;Ft.ForwardRef=Gm;Ft.Fragment=Um;Ft.Lazy=Jm;Ft.Memo=Ym;Ft.Portal=L_;Ft.Profiler=Hm;Ft.StrictMode=Wm;Ft.Suspense=Qm;Ft.SuspenseList=Xm;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return ma(e)===Km};Ft.isContextProvider=function(e){return ma(e)===qm};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N_};Ft.isForwardRef=function(e){return ma(e)===Gm};Ft.isFragment=function(e){return ma(e)===Um};Ft.isLazy=function(e){return ma(e)===Jm};Ft.isMemo=function(e){return ma(e)===Ym};Ft.isPortal=function(e){return ma(e)===L_};Ft.isProfiler=function(e){return ma(e)===Hm};Ft.isStrictMode=function(e){return ma(e)===Wm};Ft.isSuspense=function(e){return ma(e)===Qm};Ft.isSuspenseList=function(e){return ma(e)===Xm};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Um||e===Hm||e===Wm||e===Qm||e===Xm||e===Qne||typeof e=="object"&&e!==null&&(e.$$typeof===Jm||e.$$typeof===Ym||e.$$typeof===qm||e.$$typeof===Km||e.$$typeof===Gm||e.$$typeof===$3||e.getModuleId!==void 0)};Ft.typeOf=ma;T3.exports=Ft;var lx=T3.exports,Yl=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(ul,{value:a},d.createElement(ws,null,t&&d.createElement(zr,{path:"create/*",element:th(t)}),o&&d.createElement(zr,{path:":id/show/*",element:th(o)}),r&&d.createElement(zr,{path:":id/*",element:th(r)}),n&&d.createElement(zr,{path:"/*",element:d.createElement(EJ,{storeKey:"".concat(a,".list.scrollPosition")},th(n))}),e.children))},th=function(e){if(d.isValidElement(e))return e;if(lx.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};Yl.raName="Resource";Yl.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var D_=d.createContext(void 0),Xne={getSource:function(e){return e},getLabel:function(e){return e}},k3=D_.Provider,Yne=function(){var e=d.useContext(D_);return e||Xne},Jne=function(){return d.useContext(D_)},sp=function(){return S3().definitions},$t={};/*! + * inflection + * Copyright(c) 2011 Ben Lin + * MIT Licensed + * + * @fileoverview + * A port of inflection-js to node.js module. + */Object.defineProperty($t,"__esModule",{value:!0});var j3=$t.transform=$t.ordinalize=$t.foreignKey=$t.classify=$t.tableize=$t.demodulize=$t.titleize=$t.dasherize=$t.capitalize=ey=$t.humanize=$t.underscore=$t.camelize=N3=$t.inflect=V_=$t.singularize=F3=$t.pluralize=void 0;const ag=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],xe={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},I3=[[xe.plural.men],[xe.plural.people],[xe.plural.children],[xe.plural.tia],[xe.plural.analyses],[xe.plural.databases],[xe.plural.drives],[xe.plural.hives],[xe.plural.curves],[xe.plural.lrves],[xe.plural.foves],[xe.plural.aeiouyies],[xe.plural.series],[xe.plural.movies],[xe.plural.xes],[xe.plural.mice],[xe.plural.buses],[xe.plural.oes],[xe.plural.shoes],[xe.plural.crises],[xe.plural.octopuses],[xe.plural.aliases],[xe.plural.summonses],[xe.plural.oxen],[xe.plural.matrices],[xe.plural.feet],[xe.plural.teeth],[xe.plural.geese],[xe.plural.quizzes],[xe.plural.whereases],[xe.plural.criteria],[xe.plural.genera],[xe.singular.man,"$1en"],[xe.singular.person,"$1ople"],[xe.singular.child,"$1ren"],[xe.singular.drive,"$1s"],[xe.singular.ox,"$1en"],[xe.singular.axis,"$1es"],[xe.singular.octopus,"$1uses"],[xe.singular.alias,"$1es"],[xe.singular.summons,"$1es"],[xe.singular.bus,"$1ses"],[xe.singular.buffalo,"$1oes"],[xe.singular.tium,"$1a"],[xe.singular.sis,"ses"],[xe.singular.ffe,"$1$2ves"],[xe.singular.hive,"$1ves"],[xe.singular.aeiouyy,"$1ies"],[xe.singular.matrix,"$1ices"],[xe.singular.vertex,"$1ices"],[xe.singular.x,"$1es"],[xe.singular.mouse,"$1ice"],[xe.singular.foot,"feet"],[xe.singular.tooth,"teeth"],[xe.singular.goose,"geese"],[xe.singular.quiz,"$1zes"],[xe.singular.whereas,"$1es"],[xe.singular.criterion,"$1a"],[xe.singular.genus,"genera"],[xe.singular.s,"s"],[xe.singular.common,"s"]],A3=[[xe.singular.man],[xe.singular.person],[xe.singular.child],[xe.singular.drive],[xe.singular.ox],[xe.singular.axis],[xe.singular.octopus],[xe.singular.alias],[xe.singular.summons],[xe.singular.bus],[xe.singular.buffalo],[xe.singular.tium],[xe.singular.sis],[xe.singular.ffe],[xe.singular.hive],[xe.singular.aeiouyy],[xe.singular.x],[xe.singular.matrix],[xe.singular.mouse],[xe.singular.foot],[xe.singular.tooth],[xe.singular.goose],[xe.singular.quiz],[xe.singular.whereas],[xe.singular.criterion],[xe.singular.genus],[xe.plural.men,"$1an"],[xe.plural.people,"$1rson"],[xe.plural.children,"$1"],[xe.plural.databases,"$1"],[xe.plural.drives,"$1"],[xe.plural.genera,"genus"],[xe.plural.criteria,"$1on"],[xe.plural.tia,"$1um"],[xe.plural.analyses,"$1$2sis"],[xe.plural.hives,"$1ve"],[xe.plural.curves,"$1"],[xe.plural.lrves,"$1f"],[xe.plural.aves,"$1ve"],[xe.plural.foves,"$1fe"],[xe.plural.movies,"$1ovie"],[xe.plural.aeiouyies,"$1y"],[xe.plural.series,"$1eries"],[xe.plural.xes,"$1"],[xe.plural.mice,"$1ouse"],[xe.plural.buses,"$1"],[xe.plural.oes,"$1"],[xe.plural.shoes,"$1"],[xe.plural.crises,"$1is"],[xe.plural.octopuses,"$1us"],[xe.plural.aliases,"$1"],[xe.plural.summonses,"$1"],[xe.plural.oxen,"$1"],[xe.plural.matrices,"$1ix"],[xe.plural.vertices,"$1ex"],[xe.plural.feet,"foot"],[xe.plural.teeth,"tooth"],[xe.plural.geese,"goose"],[xe.plural.quizzes,"$1"],[xe.plural.whereases,"$1"],[xe.plural.ss,"ss"],[xe.plural.s,""]],Zne=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],eae=new RegExp("(_ids|_id)$","g"),M3=new RegExp("_","g"),tae=new RegExp("[ _]","g"),rae=new RegExp("([A-Z])","g"),nae=new RegExp("^_");function og(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const a of t)if(e.match(a[0]))return a[1]!==void 0?e.replace(a[0],a[1]):e;return e}function B_(e,t){return og(e,I3,ag,t)}var F3=$t.pluralize=B_;function z_(e,t){return og(e,A3,ag,t)}var V_=$t.singularize=z_;function aae(e,t,r,n){return isNaN(t)?e:t===1?og(e,A3,ag,r):og(e,I3,ag,n)}var N3=$t.inflect=aae;function U_(e,t){const r=e.split("/"),n=r.length;let a,o,i,s;for(let u=0;u1?F3(r):V_(r))});return o}},Nt=function(e){var t=d.useContext(R3);return e&&e.resource||t},Wo=function(e){var t=Nt(e),r=sp(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return T_({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},H_=function(e){var t=Wo({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?qt(r,t):d.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},H3=function(e){var t=Yne();return t.getSource(e)},q3=function(){var e=et(),t=Nt(),r=Jne();return d.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,lae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},K3=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=q3();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,o({label:r,resource:n,source:t}),a&&d.createElement("span",{"aria-hidden":"true"}," *"))};K3.displayName="FieldTitle";const no=d.memo(K3);var MR=globalThis&&globalThis.__assign||function(){return MR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return[""];var i=uae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=j3(u.replace(/\./g," "),["underscore","humanize"]);return n?[FR(n,s),{_:l}]:r?[r,{_:l}]:[FR(a||"undefined",s),{_:l}]},FR=function(e,t){return"resources.".concat(e,".fields.").concat(t)},uae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){cae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},cae=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function dae(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var fae=typeof window<"u"?d.useLayoutEffect:d.useEffect,Mt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return fae(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,o,t,n,s]);var l=Mt(function(c,f){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},pae=function(e){var t=jm().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},hae=function(e){var t=jm().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},vae=function(){var e=jm().reset;return e},gae=function(){var e=zo(),t=Fa(),r=vae(),n=lo(),a=d.useRef(n),o=rn(),i=d.useRef(o),s=qi(),u=qa("".concat(s,"/").concat(ym.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=d.useCallback(function(c,f,p){return c===void 0&&(c={}),f===void 0&&(f=u),p===void 0&&(p=!0),e?e.logout(c).then(function(v){if(v===!1||f===!1){r(),t.clear();return}var g=v||f;if(g!=null&&g.startsWith("http"))return r(),t.clear(),window.location.href=g,g;var y=g.split("?"),S={pathname:y[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),y[1]&&(S.search=y[1]),a.current(S,x),r(),t.clear(),v}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l};const Cc=gae;var ps=globalThis&&globalThis.__assign||function(){return ps=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},LR=function(){},hs=globalThis&&globalThis.__assign||function(){return hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Ec(t);var i=Q3(t).permissions;if(a)return d.createElement(a,jd({permissions:i},o));if(n)return n(jd({permissions:i},o));if(r)return r(jd({permissions:i},o))};const Tae=Rae;var $ae=function(){var e=zo(),t=rn(),r=t.state,n=lo(),a=qi(),o=KA().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=qa("".concat(a,"/").concat(ym.afterLoginUrl)),l=d.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var v=f||i+s||u;n(v)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l};const X3=$ae;var kae="AUTH_LOGIN",jae="AUTH_CHECK",Iae="AUTH_ERROR",Aae="AUTH_LOGOUT",Mae="AUTH_GET_PERMISSIONS";const Fae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Id=globalThis&&globalThis.__assign||function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return ya(r&&e?"".concat(r,".").concat(e):r??e,t)},K_=function(){var e=d.useContext(b3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},Xae=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Br(Oc,--jn):0,Qu--,br===10&&(Qu=1,ay--),br}function Wn(){return br=jn2||Cf(br)>3?"":" "}function Eoe(e,t){for(;--t&&Wn()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return lp(e,zh()+(t<6&&to()==32&&Wn()==32))}function dx(e){for(;Wn();)switch(br){case e:return jn;case 34:case 39:e!==34&&e!==39&&dx(br);break;case 40:e===41&&dx(e);break;case 92:Wn();break}return jn}function Ooe(e,t){for(;Wn()&&e+br!==47+10;)if(e+br===42+42&&to()===47)break;return"/*"+lp(t,jn-1)+"*"+ny(e===47?e:Wn())}function Poe(e){for(;!Cf(to());)Wn();return lp(e,jn)}function Roe(e){return sF(Uh("",null,null,null,[""],e=iF(e),0,[0],e))}function Uh(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,f=i,p=0,v=0,g=0,y=1,S=1,x=1,m=0,b="",h=a,_=o,C=n,E=b;S;)switch(g=m,m=Wn()){case 40:if(g!=108&&Br(E,f-1)==58){cx(E+=Tt(Vh(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Vh(m);break;case 9:case 10:case 13:case 32:E+=Coe(g);break;case 92:E+=Eoe(zh()-1,7);continue;case 47:switch(to()){case 42:case 47:rh(Toe(Ooe(Wn(),zh()),t,r),u);break;default:E+="/"}break;case 123*y:s[l++]=Ka(E)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+c:x==-1&&(E=Tt(E,/\f/g,"")),v>0&&Ka(E)-f&&rh(v>32?UR(E+";",n,r,f-1):UR(Tt(E," ","")+";",n,r,f-2),u);break;case 59:E+=";";default:if(rh(C=VR(E,t,r,l,c,a,s,b,h=[],_=[],f),o),m===123)if(c===0)Uh(E,t,C,C,h,o,f,s,_);else switch(p===99&&Br(E,3)===110?100:p){case 100:case 108:case 109:case 115:Uh(e,C,C,n&&rh(VR(e,C,C,0,0,a,s,b,a,h=[],f),_),a,_,f,s,n?h:_);break;default:Uh(E,C,C,C,[""],_,0,s,_)}}l=c=v=0,y=x=1,b=E="",f=i;break;case 58:f=1+Ka(E),v=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&_oe()==125)continue}switch(E+=ny(m),m*y){case 38:x=c>0?1:(E+="\f",-1);break;case 44:s[l++]=(Ka(E)-1)*x,x=1;break;case 64:to()===45&&(E+=Vh(Wn())),p=to(),c=f=Ka(b=E+=Poe(zh())),m++;break;case 45:g===45&&Ka(E)==2&&(y=0)}}return o}function VR(e,t,r,n,a,o,i,s,u,l,c){for(var f=a-1,p=a===0?o:[""],v=X_(p),g=0,y=0,S=0;g0?p[x]+" "+m:Tt(m,/&\f/g,p[x])))&&(u[S++]=b);return oy(e,t,r,a===0?G_:s,u,l,c)}function Toe(e,t,r){return oy(e,t,r,rF,ny(Soe()),_f(e,2,-2),0)}function UR(e,t,r,n){return oy(e,t,r,Q_,_f(e,0,n),_f(e,n+1,-1),n)}function cu(e,t){for(var r="",n=X_(e),a=0;a6)switch(Br(e,t+1)){case 109:if(Br(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+ig+(Br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cx(e,"stretch")?lF(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Br(e,t+1)!==115)break;case 6444:switch(Br(e,Ka(e)-3-(~cx(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Br(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Br(e,t+11)){case 114:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Yr+e+e}return e}var Loe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Q_:t.return=lF(t.value,t.length);break;case nF:return cu([Gc(t,{value:Tt(t.value,"@","@"+Rt)})],a);case G_:if(t.length)return woe(t.props,function(o){switch(xoe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Gc(t,{props:[Tt(o,/:(read-\w+)/,":"+ig+"$1")]})],a);case"::placeholder":return cu([Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+ig+"$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Doe=[Loe],uF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||Doe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),x=1;x=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Yoe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Joe=!1,Zoe=/[A-Z]|^ms/g,eie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gF=function(t){return t.charCodeAt(1)===45},HR=function(t){return t!=null&&typeof t!="boolean"},Yb=tF(function(e){return gF(e)?e:e.replace(Zoe,"-$&").toLowerCase()}),qR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(eie,function(n,a,o){return Ga={name:a,styles:o,next:Ga},a})}return Yoe[t]!==1&&!gF(t)&&typeof r=="number"&&r!==0?r+"px":r},tie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ef(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Ga={name:a.name,styles:a.styles,next:Ga},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ga={name:i.name,styles:i.styles,next:Ga},i=i.next;var s=o.styles+";";return s}return rie(e,t,r)}case"function":{if(e!==void 0){var u=Ga,l=r(e);return Ga=u,Ef(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function rie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?sie:lie},YR=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},uie=!1,cie=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return hF(r,n,a),aie(function(){return vF(r,n,a)}),null},die=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=YR(t,r,n),u=s||XR(a),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,v=1;vt(hie(a)?r:a):t;return R.jsx(iie,{styles:n})}/** + * @mui/styled-engine v5.16.6 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function tC(e,t){return fx(e,t)}const SF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},vie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wF,StyledEngineProvider:pie,ThemeContext:up,css:gy,default:tC,internal_processStyles:SF,keyframes:Pc},Symbol.toStringTag,{value:"Module"}));function Co(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _F(e){if(!Co(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=_F(e[r])}),t}function Rr(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return Co(e)&&Co(t)&&Object.keys(t).forEach(a=>{Co(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Co(e[a])?n[a]=Rr(e[a],t[a],r):r.clone?n[a]=Co(t[a])?_F(t[a]):t[a]:n[a]=t[a]}),n}const gie=Object.freeze(Object.defineProperty({__proto__:null,default:Rr,isPlainObject:Co},Symbol.toStringTag,{value:"Module"})),mie=["values","unit","step"],yie=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>T({},r,{[n.key]:n.val}),{})};function CF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Pe(e,mie),o=yie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,v){const g=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:v)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rC[e]}px)`};function Aa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||JR;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||JR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rC).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function EF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function OF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function wie(e,...t){const r=EF(e),n=[r,...t].reduce((a,o)=>Rr(a,o),{});return OF(Object.keys(r),n)}function Sie(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function Zb({values:e,breakpoints:t,base:r}){const n=r||Sie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function ge(e){if(typeof e!="string")throw new Error(No(7));return e.charAt(0).toUpperCase()+e.slice(1)}const _ie=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));function Xu(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function sg(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Xu(e,r)||n,t&&(a=t(a,n,e)),a}function vr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Xu(u,n)||{};return Aa(i,s,f=>{let p=sg(l,a,f);return f===p&&typeof f=="string"&&(p=sg(l,a,`${t}${f==="default"?"":ge(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Cie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Eie={m:"margin",p:"padding"},Oie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pie=Cie(e=>{if(e.length>2)if(ZR[e])e=ZR[e];else return[e];const[t,r]=e.split(""),n=Eie[t],a=Oie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nC,...aC];function cp(e,t,r,n){var a;const o=(a=Xu(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function oC(e){return cp(e,"spacing",8)}function Zs(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Rie(e,t){return r=>e.reduce((n,a)=>(n[a]=Zs(t,r),n),{})}function Tie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Pie(r),o=Rie(a,n),i=e[r];return Aa(e,i,o)}function PF(e,t){const r=oC(e.theme);return Object.keys(e).map(n=>Tie(e,t,n,r)).reduce(Ad,{})}function ar(e){return PF(e,nC)}ar.propTypes={};ar.filterProps=nC;function or(e){return PF(e,aC)}or.propTypes={};or.filterProps=aC;function $ie(e=8){if(e.mui)return e;const t=oC({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function my(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Ad(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function oa(e){return typeof e!="number"?e:`${e}px solid`}function ba(e,t){return vr({prop:e,themeKey:"borders",transform:t})}const kie=ba("border",oa),jie=ba("borderTop",oa),Iie=ba("borderRight",oa),Aie=ba("borderBottom",oa),Mie=ba("borderLeft",oa),Fie=ba("borderColor"),Nie=ba("borderTopColor"),Lie=ba("borderRightColor"),Die=ba("borderBottomColor"),Bie=ba("borderLeftColor"),zie=ba("outline",oa),Vie=ba("outlineColor"),yy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zs(t,n)});return Aa(e,e.borderRadius,r)}return null};yy.propTypes={};yy.filterProps=["borderRadius"];my(kie,jie,Iie,Aie,Mie,Fie,Nie,Lie,Die,Bie,yy,zie,Vie);const by=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cp(e.theme,"spacing",8),r=n=>({gap:Zs(t,n)});return Aa(e,e.gap,r)}return null};by.propTypes={};by.filterProps=["gap"];const xy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({columnGap:Zs(t,n)});return Aa(e,e.columnGap,r)}return null};xy.propTypes={};xy.filterProps=["columnGap"];const wy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({rowGap:Zs(t,n)});return Aa(e,e.rowGap,r)}return null};wy.propTypes={};wy.filterProps=["rowGap"];const Uie=vr({prop:"gridColumn"}),Wie=vr({prop:"gridRow"}),Hie=vr({prop:"gridAutoFlow"}),qie=vr({prop:"gridAutoColumns"}),Kie=vr({prop:"gridAutoRows"}),Gie=vr({prop:"gridTemplateColumns"}),Qie=vr({prop:"gridTemplateRows"}),Xie=vr({prop:"gridTemplateAreas"}),Yie=vr({prop:"gridArea"});my(by,xy,wy,Uie,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie);function du(e,t){return t==="grey"?t:e}const Jie=vr({prop:"color",themeKey:"palette",transform:du}),Zie=vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:du}),ese=vr({prop:"backgroundColor",themeKey:"palette",transform:du});my(Jie,Zie,ese);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const tse=vr({prop:"width",transform:zn}),iC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||rC[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:zn(r)}};return Aa(e,e.maxWidth,t)}return null};iC.filterProps=["maxWidth"];const rse=vr({prop:"minWidth",transform:zn}),nse=vr({prop:"height",transform:zn}),ase=vr({prop:"maxHeight",transform:zn}),ose=vr({prop:"minHeight",transform:zn});vr({prop:"size",cssProperty:"width",transform:zn});vr({prop:"size",cssProperty:"height",transform:zn});const ise=vr({prop:"boxSizing"});my(tse,iC,rse,nse,ase,ose,ise);const sse={border:{themeKey:"borders",transform:oa},borderTop:{themeKey:"borders",transform:oa},borderRight:{themeKey:"borders",transform:oa},borderBottom:{themeKey:"borders",transform:oa},borderLeft:{themeKey:"borders",transform:oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yy},color:{themeKey:"palette",transform:du},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:du},backgroundColor:{themeKey:"palette",transform:du},p:{style:or},pt:{style:or},pr:{style:or},pb:{style:or},pl:{style:or},px:{style:or},py:{style:or},padding:{style:or},paddingTop:{style:or},paddingRight:{style:or},paddingBottom:{style:or},paddingLeft:{style:or},paddingX:{style:or},paddingY:{style:or},paddingInline:{style:or},paddingInlineStart:{style:or},paddingInlineEnd:{style:or},paddingBlock:{style:or},paddingBlockStart:{style:or},paddingBlockEnd:{style:or},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:by},rowGap:{style:wy},columnGap:{style:xy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:iC},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dp=sse;function lse(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function use(e,t){return typeof e=="function"?e(t):e}function RF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Xu(a,l)||{};return f?f(i):Aa(i,n,g=>{let y=sg(p,c,g);return g===y&&typeof g=="string"&&(y=sg(p,c,`${r}${g==="default"?"":ge(g)}`,g)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:dp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=EF(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(v=>{const g=use(l[v],o);if(g!=null)if(typeof g=="object")if(i[v])p=Ad(p,e(v,g,o,i));else{const y=Aa({theme:o},g,S=>({[v]:S}));lse(y,g)?p[v]=t({sx:g,theme:o}):p=Ad(p,y)}else p=Ad(p,e(v,g,o,i))}),OF(f,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const TF=RF();TF.filterProps=["sx"];const fp=TF;function $F(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const cse=["breakpoints","palette","spacing","shape"];function pp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Pe(e,cse),s=CF(r),u=$ie(a);let l=Rr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:u,shape:T({},xie,o)},i);return l.applyStyles=$F,l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const dse=Object.freeze(Object.defineProperty({__proto__:null,default:pp,private_createBreakpoints:CF,unstable_applyStyles:$F},Symbol.toStringTag,{value:"Module"}));function fse(e){return Object.keys(e).length===0}function sC(e=null){const t=d.useContext(up);return!t||fse(t)?e:t}const pse=pp();function Sy(e=pse){return sC(e)}function hse({styles:e,themeId:t,defaultTheme:r={}}){const n=Sy(r),a=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(wF,{styles:a})}const vse=["sx"],gse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:dp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function _y(e){const{sx:t}=e,r=Pe(e,vse),{systemProps:n,otherProps:a}=gse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Co(s)?T({},n,s):n}:o=T({},n,t),T({},a,{sx:o})}const mse=Object.freeze(Object.defineProperty({__proto__:null,default:fp,extendSxProp:_y,unstable_createStyleFunctionSx:RF,unstable_defaultSxConfig:dp},Symbol.toStringTag,{value:"Module"})),eT=e=>e,yse=()=>{let e=eT;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eT}}},bse=yse(),lC=bse;function kF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(fp);return d.forwardRef(function(u,l){const c=Sy(r),f=_y(u),{className:p,component:v="div"}=f,g=Pe(f,xse);return R.jsx(o,T({as:v,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},g))})}const Sse={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,t,r="Mui"){const n=Sse[t];return n?`${r}-${n}`:`${lC.generate(e)}-${t}`}function We(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ue(e,a,r)}),n}const _se=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jF(e){const t=`${e}`.match(_se);return t&&t[1]||""}function IF(e,t=""){return e.displayName||e.name||jF(e)||t}function tT(e,t,r){const n=IF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Cse(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return IF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lx.ForwardRef:return tT(e,e.render,"ForwardRef");case lx.Memo:return tT(e,e.type,"memo");default:return}}}const Ese=Object.freeze(Object.defineProperty({__proto__:null,default:Cse,getFunctionName:jF},Symbol.toStringTag,{value:"Module"})),Ose=["ownerState"],Pse=["variants"],Rse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Tse(e){return Object.keys(e).length===0}function $se(e){return typeof e=="string"&&e.charCodeAt(0)>96}function e0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kse=pp(),jse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nh({defaultTheme:e,theme:t,themeId:r}){return Tse(t)?e:t[r]||t}function Ise(e){return e?(t,r)=>r[e]:null}function Wh(e,t){let{ownerState:r}=t,n=Pe(t,Ose);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Wh(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Pe(a,Pse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(T({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(T({ownerState:r},n,r)):u.style))}),s}return a}function Ase(e={}){const{themeId:t,defaultTheme:r=kse,rootShouldForwardProp:n=e0,slotShouldForwardProp:a=e0}=e,o=i=>fp(T({},i,{theme:nh(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{SF(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Ise(jse(l))}=s,v=Pe(s,Rse),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=e0;l==="Root"||l==="root"?x=n:l?x=a:$se(i)&&(x=void 0);const m=tC(i,T({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||Co(_)?C=>Wh(_,T({},C,{theme:nh({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=nh(T({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Wh(M,T({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=nh(T({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Wh({variants:F},T({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}const Mse=Ase(),Fse=Mse;function Of(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=T({},o),Object.keys(a).forEach(i=>{r[n][i]=Of(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function AF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Of(t.components[r].defaultProps,n)}function MF({props:e,name:t,defaultTheme:r,themeId:n}){let a=Sy(r);return n&&(a=a[n]||a),AF({theme:a,name:t,props:e})}const Nse=typeof window<"u"?d.useLayoutEffect:d.useEffect,qn=Nse;function Lse(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const FF=Xd["useSyncExternalStore"];function Dse(e,t,r,n,a){const o=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return FF(u,s,i)}function In(e,t={}){const r=sC(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=AF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(FF!==void 0?Dse:Lse)(u,a,o,i,s)}function NF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Bse=Object.freeze(Object.defineProperty({__proto__:null,default:NF},Symbol.toStringTag,{value:"Module"}));function LF(e,t=0,r=1){return NF(e,t,r)}function zse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function uC(e){if(e.type)return e;if(e.charAt(0)==="#")return uC(zse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(No(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(No(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function DF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Pf(e,t){return e=uC(e),t=LF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,DF(e)}function Vse(e,t){if(e=uC(e),t=LF(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return DF(e)}function hx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Rc(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Use(e,t){return()=>null}function Hh(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function wr(e){return e&&e.ownerDocument||document}function da(e){return wr(e).defaultView||window}function Wse(e,t){return()=>null}function lg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rT=0;function Hse(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(rT+=1,r(`mui-${rT}`))},[t]),n}const nT=Xd["useId".toString()];function el(e){if(nT!==void 0){const t=nT();return e??t}return Hse(e)}function qse(e,t,r,n,a){return null}function Yu({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),s=a?e:o,u=d.useCallback(l=>{a||i(l)},[]);return[s,u]}function fn(e){const t=d.useRef(e);return qn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{lg(r,t)})},e)}const aT={};function Kse(e,t){const r=d.useRef(aT);return r.current===aT&&(r.current=e(t)),r}const Gse=[];function Qse(e){d.useEffect(e,Gse)}class hp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hp}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ss(){const e=Kse(hp.create).current;return Qse(e.disposeEffect),e}let Cy=!0,vx=!1;const Xse=new hp,Yse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Jse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Yse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Zse(e){e.metaKey||e.altKey||e.ctrlKey||(Cy=!0)}function t0(){Cy=!1}function ele(){this.visibilityState==="hidden"&&vx&&(Cy=!0)}function tle(e){e.addEventListener("keydown",Zse,!0),e.addEventListener("mousedown",t0,!0),e.addEventListener("pointerdown",t0,!0),e.addEventListener("touchstart",t0,!0),e.addEventListener("visibilitychange",ele,!0)}function rle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Cy||Jse(t)}function Ey(){const e=d.useCallback(a=>{a!=null&&tle(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(vx=!0,Xse.start(100,()=>{vx=!1}),t.current=!1,!0):!1}function n(a){return rle(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function BF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let _l;function zF(){if(_l)return _l;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),_l="reverse",e.scrollLeft>0?_l="default":(e.scrollLeft=1,e.scrollLeft===0&&(_l="negative")),document.body.removeChild(e),_l}function nle(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(zF()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function qe(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function Rf(e){return typeof e=="string"}function Jl(e,t,r){return e===void 0||Rf(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function ug(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function oT(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function VF(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const v=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=T({},r,a,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=ug(T({},a,n)),s=oT(n),u=oT(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f=T({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=T({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function UF(e,t,r){return typeof e=="function"?e(t,r):e}const ale=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Pe(e,ale),s=o?{}:UF(n,a),{props:u,internalRef:l}=VF(T({},i,{externalSlotProps:s})),c=Jt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jl(r,T({},u,{ref:c}),a)}const ole=d.createContext(null),WF=ole;function cC(){return d.useContext(WF)}const ile=typeof Symbol=="function"&&Symbol.for,HF=ile?Symbol.for("mui.nested"):"__THEME_NESTED__";function sle(e,t){return typeof t=="function"?t(e):T({},e,t)}function lle(e){const{children:t,theme:r}=e,n=cC(),a=d.useMemo(()=>{const o=n===null?r:sle(n,r);return o!=null&&(o[HF]=n!==null),o},[r,n]);return R.jsx(WF.Provider,{value:a,children:t})}const ule=["value"],qF=d.createContext();function cle(e){let{value:t}=e,r=Pe(e,ule);return R.jsx(qF.Provider,T({value:t??!0},r))}const cl=()=>{const e=d.useContext(qF);return e??!1},KF=d.createContext(void 0);function dle({value:e,children:t}){return R.jsx(KF.Provider,{value:e,children:t})}function fle(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?Of(a.defaultProps,n):!a.styleOverrides&&!a.variants?Of(a,n):n}function ple({props:e,name:t}){const r=d.useContext(KF);return fle({props:e,name:t,theme:{components:r}})}const iT={};function sT(e,t,r,n=!1){return d.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?T({},t,{[e]:o}):o;return n?()=>i:i}return e?T({},t,{[e]:r}):T({},t,r)},[e,t,r,n])}function hle(e){const{children:t,theme:r,themeId:n}=e,a=sC(iT),o=cC()||iT,i=sT(n,a,r),s=sT(n,o,r,!0),u=i.direction==="rtl";return R.jsx(lle,{theme:s,children:R.jsx(up.Provider,{value:i,children:R.jsx(cle,{value:u,children:R.jsx(dle,{value:i==null?void 0:i.components,children:t})})})})}function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function vle(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gle(e){var t=vle(e,"string");return Tf(t)=="symbol"?t:t+""}const mle=["component","direction","spacing","divider","children","className","useFlexGap"],yle=pp(),ble=Fse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xle(e){return MF({props:e,name:"MuiStack",defaultTheme:yle})}function wle(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],_le=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Aa({theme:t},Zb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oC(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=Zb({values:e.direction,base:a}),i=Zb({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Rr(r,Aa({theme:t},i,(u,l)=>e.useFlexGap?{gap:Zs(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Sle(l?o[l]:e.direction)}`]:Zs(n,u)}}))}return r=wie(t.breakpoints,r),r};function Cle(e={}){const{createStyledComponent:t=ble,useThemeProps:r=xle,componentName:n="MuiStack"}=e,a=()=>qe({root:["root"]},u=>Ue(n,u),{}),o=t(_le);return d.forwardRef(function(u,l){const c=r(u),f=_y(c),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:S,className:x,useFlexGap:m=!1}=f,b=Pe(f,mle),h={direction:v,spacing:g,useFlexGap:m},_=a();return R.jsx(o,T({as:p,ownerState:h,ref:l,className:ue(_.root,x)},b,{children:y?wle(S,y):S}))})}function Ele(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gr={},GF={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(GF);var it=GF.exports;const Ole=Do(loe),Ple=Do(Bse);var QF=it;Object.defineProperty(gr,"__esModule",{value:!0});var gt=gr.alpha=ZF;gr.blend=Dle;gr.colorChannel=void 0;var dC=gr.darken=hC;gr.decomposeColor=pa;var Rle=gr.emphasize=e4,Tle=gr.getContrastRatio=Ale;gr.getLuminance=cg;gr.hexToRgb=XF;gr.hslToRgb=JF;var fC=gr.lighten=vC;gr.private_safeAlpha=Mle;gr.private_safeColorChannel=void 0;gr.private_safeDarken=Fle;gr.private_safeEmphasize=Lle;gr.private_safeLighten=Nle;gr.recomposeColor=Tc;gr.rgbToHex=Ile;var lT=QF(Ole),$le=QF(Ple);function pC(e,t=0,r=1){return(0,$le.default)(e,t,r)}function XF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function kle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pa(e){if(e.type)return e;if(e.charAt(0)==="#")return pa(XF(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,lT.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,lT.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const YF=e=>{const t=pa(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};gr.colorChannel=YF;const jle=(e,t)=>{try{return YF(e)}catch{return e}};gr.private_safeColorChannel=jle;function Tc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Ile(e){if(e.indexOf("#")===0)return e;const{values:t}=pa(e);return`#${t.map((r,n)=>kle(n===3?Math.round(255*r):r)).join("")}`}function JF(e){e=pa(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Tc({type:s,values:u})}function cg(e){e=pa(e);let t=e.type==="hsl"||e.type==="hsla"?pa(JF(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ale(e,t){const r=cg(e),n=cg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ZF(e,t){return e=pa(e),t=pC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tc(e)}function Mle(e,t,r){try{return ZF(e,t)}catch{return e}}function hC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Tc(e)}function Fle(e,t,r){try{return hC(e,t)}catch{return e}}function vC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Tc(e)}function Nle(e,t,r){try{return vC(e,t)}catch{return e}}function e4(e,t=.15){return cg(e)>.5?hC(e,t):vC(e,t)}function Lle(e,t,r){try{return e4(e,t)}catch{return e}}function Dle(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=pa(e),i=pa(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Tc({type:"rgb",values:s})}const Ble=["mode","contrastThreshold","tonalOffset"],uT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sf.white,default:Sf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},r0={text:{primary:Sf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Sf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cT(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fC(e.main,a):t==="dark"&&(e.dark=dC(e.main,o)))}function zle(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[700],light:xl[400],dark:xl[800]}}function Vle(e="light"){return e==="dark"?{main:bl[200],light:bl[50],dark:bl[400]}:{main:bl[500],light:bl[300],dark:bl[700]}}function Ule(e="light"){return e==="dark"?{main:yl[500],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[400],dark:yl[800]}}function Wle(e="light"){return e==="dark"?{main:wl[400],light:wl[300],dark:wl[700]}:{main:wl[700],light:wl[500],dark:wl[900]}}function Hle(e="light"){return e==="dark"?{main:Sl[400],light:Sl[300],dark:Sl[700]}:{main:Sl[800],light:Sl[500],dark:Sl[900]}}function qle(e="light"){return e==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:"#ed6c02",light:Kc[500],dark:Kc[900]}}function Kle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Pe(e,Ble),o=e.primary||zle(t),i=e.secondary||Vle(t),s=e.error||Ule(t),u=e.info||Wle(t),l=e.success||Hle(t),c=e.warning||qle(t);function f(y){return Tle(y,r0.text.primary)>=r?r0.text.primary:uT.text.primary}const p=({color:y,name:S,mainShade:x=500,lightShade:m=300,darkShade:b=700})=>{if(y=T({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(No(11,S?` (${S})`:"",x));if(typeof y.main!="string")throw new Error(No(12,S?` (${S})`:"",JSON.stringify(y.main)));return cT(y,"light",m,n),cT(y,"dark",b,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:r0,light:uT};return Rr(T({common:T({},Sf),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:soe,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),a)}const Gle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Qle(e){return Math.round(e*1e5)/1e5}const dT={textTransform:"uppercase"},fT='"Roboto", "Helvetica", "Arial", sans-serif';function Xle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=fT,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=Pe(r,Gle),v=a/14,g=f||(x=>`${x/l*v}rem`),y=(x,m,b,h,_)=>T({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:b},n===fT?{letterSpacing:`${Qle(h/m)}em`}:{},_,c),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,dT),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,dT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr(T({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},S),p,{clone:!1})}const Yle=.2,Jle=.14,Zle=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Yle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zle})`].join(",")}const eue=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],tue=eue,rue=["duration","easing","delay"],nue={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},aue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pT(e){return`${Math.round(e)}ms`}function oue(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function iue(e){const t=T({},nue,e.easing),r=T({},aue,e.duration);return T({getAutoHeightDuration:oue,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Pe(o,rue),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:pT(i)} ${s} ${typeof u=="string"?u:pT(u)}`).join(",")}},e,{easing:t,duration:r})}const sue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lue=sue,uue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dg(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Pe(e,uue);if(e.vars)throw new Error(No(18));const s=Kle(n),u=pp(e);let l=Rr(u,{mixins:Ele(u.breakpoints,r),palette:s,shadows:tue.slice(),typography:Xle(s,o),transitions:iue(a),zIndex:T({},lue)});return l=Rr(l,i),l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const cue=dg(),Oy=cue;function fo(){const e=Sy(Oy);return e[Js]||e}function due({props:e,name:t}){return MF({props:e,name:t,defaultTheme:Oy,themeId:Js})}var vp={},n0={exports:{}},hT;function fue(){return hT||(hT=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(n0)),n0.exports}const t4=Do(vie),pue=Do(gie),hue=Do(_ie),vue=Do(Ese),gue=Do(dse),mue=Do(mse);var $c=it;Object.defineProperty(vp,"__esModule",{value:!0});var yue=vp.default=kue;vp.shouldForwardProp=qh;vp.systemDefaultTheme=void 0;var ea=$c(xF()),gx=$c(fue()),vT=Eue(t4),bue=pue;$c(hue);$c(vue);var xue=$c(gue),wue=$c(mue);const Sue=["ownerState"],_ue=["variants"],Cue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function r4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(r4=function(n){return n?r:t})(e)}function Eue(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=r4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Oue(e){return Object.keys(e).length===0}function Pue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rue=vp.systemDefaultTheme=(0,xue.default)(),Tue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ah({defaultTheme:e,theme:t,themeId:r}){return Oue(t)?e:t[r]||t}function $ue(e){return e?(t,r)=>r[e]:null}function Kh(e,t){let{ownerState:r}=t,n=(0,gx.default)(t,Sue);const a=typeof e=="function"?e((0,ea.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Kh(o,(0,ea.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,gx.default)(a,_ue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,ea.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,ea.default)({ownerState:r},n,r)):u.style))}),s}return a}function kue(e={}){const{themeId:t,defaultTheme:r=Rue,rootShouldForwardProp:n=qh,slotShouldForwardProp:a=qh}=e,o=i=>(0,wue.default)((0,ea.default)({},i,{theme:ah((0,ea.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,vT.internal_processStyles)(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=$ue(Tue(l))}=s,v=(0,gx.default)(s,Cue),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=qh;l==="Root"||l==="root"?x=n:l?x=a:Pue(i)&&(x=void 0);const m=(0,vT.default)(i,(0,ea.default)({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||(0,bue.isPlainObject)(_)?C=>Kh(_,(0,ea.default)({},C,{theme:ah({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Kh(M,(0,ea.default)({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Kh({variants:F},(0,ea.default)({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}function n4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jue=e=>n4(e)&&e!=="classes",Wr=jue,Iue=yue({themeId:Js,defaultTheme:Oy,rootShouldForwardProp:Wr}),ne=Iue,Aue=["theme"];function Mue(e){let{theme:t}=e,r=Pe(e,Aue);const n=t[Js];return R.jsx(hle,T({},r,{themeId:n?Js:void 0,theme:n||t}))}const Fue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gT=Fue;function Ke(e){return ple(e)}function Nue(e){return Ue("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Due=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(r)}`]};return qe(a,Nue,n)},Bue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ge(r.color)}`],t[`fontSize${ge(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),a4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Pe(n,Lue),g=d.isValidElement(a)&&a.type==="svg",y=T({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),S={};c||(S.viewBox=p);const x=Due(y);return R.jsxs(Bue,T({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},S,v,g&&a.props,{ownerState:y,children:[g?a.props.children:a,f?R.jsx("title",{children:f}):null]}))});a4.muiName="SvgIcon";const mT=a4;function An(e,t){function r(n,a){return R.jsx(mT,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=mT.muiName,d.memo(d.forwardRef(r))}const zue={configure:e=>{lC.configure(e)}},Vue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ge,createChainedFunction:hx,createSvgIcon:An,debounce:Rc,deprecatedPropType:Use,isMuiElement:Hh,ownerDocument:wr,ownerWindow:da,requirePropFactory:Wse,setRef:lg,unstable_ClassNameGenerator:zue,unstable_useEnhancedEffect:qn,unstable_useId:el,unsupportedProp:qse,useControlled:Yu,useEventCallback:fn,useForkRef:Jt,useIsFocusVisible:Ey},Symbol.toStringTag,{value:"Module"}));function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},mx(e,t)}function Py(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mx(e,t)}const yT={disabled:!1},fg=ke.createContext(null);var Uue=function(t){return t.scrollTop},fd="unmounted",os="exited",is="entering",$l="entered",yx="exiting",Ho=function(e){Py(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=os,o.appearStatus=is):u=$l:n.unmountOnExit||n.mountOnEnter?u=fd:u=os,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fd?{status:os}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==is&&i!==$l&&(o=is):(i===is||i===$l)&&(o=yx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===is){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this);i&&Uue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:fd})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[ld.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!a&&!i||yT.disabled){this.safeSetState({status:$l},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:is},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:$l},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ld.findDOMNode(this);if(!o||yT.disabled){this.safeSetState({status:os},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:yx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:os},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fd)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Pe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(fg.Provider,{value:null},typeof i=="function"?i(a,s):ke.cloneElement(ke.Children.only(i),s))},t}(ke.Component);Ho.contextType=fg;Ho.propTypes={};function Cl(){}Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cl,onEntering:Cl,onEntered:Cl,onExit:Cl,onExiting:Cl,onExited:Cl};Ho.UNMOUNTED=fd;Ho.EXITED=os;Ho.ENTERING=is;Ho.ENTERED=$l;Ho.EXITING=yx;const gC=Ho;function bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(e,t){var r=function(o){return t&&d.isValidElement(o)?t(o):o},n=Object.create(null);return e&&d.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Wue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Ju(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function Xue(e){return Ue("MuiPaper",e)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Yue=["className","component","elevation","square","variant"],Jue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qe(o,Xue,a)},Zue=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",gT(t.elevation))}, ${gt("#fff",gT(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),ece=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Pe(n,Yue),c=T({},n,{component:o,elevation:i,square:s,variant:u}),f=Jue(c);return R.jsx(Zue,T({as:o,ownerState:c,className:ue(f.root,a),ref:r},l))}),Yi=ece,tce=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],rce=["component","slots","slotProps"],nce=["component"];function ace(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Pe(t,tce),{component:l,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=o,p=Pe(o,rce),v=c[e]||n,g=UF(f[e],a),y=VF(T({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:S},internalRef:x}=y,m=Pe(y.props,nce),b=Jt(x,g==null?void 0:g.ref,t.ref),h=i?i(m):{},_=T({},a,h),C=e==="root"?S||l:S,E=Jl(v,T({},e==="root"&&!l&&!c[e]&&s,e!=="root"&&!c[e]&&s,m,C&&{as:C},{ref:b}),_);return Object.keys(h).forEach(w=>{delete E[w]}),[v,E]}function oce(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},g=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),R.jsx("span",{className:p,style:v,children:R.jsx("span",{className:g})})}const ice=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ra=ice,sce=["center","classes","className"];let Ry=e=>e,bT,xT,wT,ST;const xx=550,lce=80,uce=Pc(bT||(bT=Ry` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),cce=Pc(xT||(xT=Ry` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),dce=Pc(wT||(wT=Ry` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),fce=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pce=ne(oce,{name:"MuiTouchRipple",slot:"Ripple"})(ST||(ST=Ry` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),ra.rippleVisible,uce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ra.child,ra.childLeaving,cce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.childPulsate,dce,({theme:e})=>e.transitions.easing.easeInOut),hce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Pe(n,sce),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),v=Ss(),g=d.useRef(null),y=d.useRef(null),S=d.useCallback(h=>{const{pulsate:_,rippleX:C,rippleY:E,rippleSize:w,cb:O}=h;l(P=>[...P,R.jsx(pce,{classes:{ripple:ue(o.ripple,ra.ripple),rippleVisible:ue(o.rippleVisible,ra.rippleVisible),ripplePulsate:ue(o.ripplePulsate,ra.ripplePulsate),child:ue(o.child,ra.child),childLeaving:ue(o.childLeaving,ra.childLeaving),childPulsate:ue(o.childPulsate,ra.childPulsate)},timeout:xx,pulsate:_,rippleX:C,rippleY:E,rippleSize:w},c.current)]),c.current+=1,f.current=O},[o]),x=d.useCallback((h={},_={},C=()=>{})=>{const{pulsate:E=!1,center:w=a||_.pulsate,fakeElement:O=!1}=_;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const P=O?null:y.current,k=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,$,F;if(w||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)j=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:z,clientY:M}=h.touches&&h.touches.length>0?h.touches[0]:h;j=Math.round(z-k.left),$=Math.round(M-k.top)}if(w)F=Math.sqrt((2*k.width**2+k.height**2)/3),F%2===0&&(F+=1);else{const z=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,M=Math.max(Math.abs((P?P.clientHeight:0)-$),$)*2+2;F=Math.sqrt(z**2+M**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},v.start(lce,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},[a,S,v]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),b=d.useCallback((h,_)=>{if(v.clear(),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(h,_)});return}g.current=null,l(C=>C.length>0?C.slice(1):C),f.current=_},[v]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:b}),[m,x,b]),R.jsx(fce,T({className:ue(ra.root,o.root,i),ref:y},s,{children:R.jsx(Que,{component:null,exit:!0,children:u})}))}),vce=hce;function gce(e){return Ue("MuiButtonBase",e)}const mce=We("MuiButtonBase",["root","disabled","focusVisible"]),yce=mce,bce=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],xce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=qe({root:["root",t&&"disabled",r&&"focusVisible"]},gce,a);return r&&n&&(i.root+=` ${n}`),i},wce=ne("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Sce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:S,onDragLeave:x,onFocus:m,onFocusVisible:b,onKeyDown:h,onKeyUp:_,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:O,onTouchMove:P,onTouchStart:k,tabIndex:j=0,TouchRippleProps:$,touchRippleRef:F,type:z}=n,M=Pe(n,bce),W=d.useRef(null),B=d.useRef(null),U=Jt(B,F),{isFocusVisibleRef:q,onFocus:ie,onBlur:oe,ref:Ee}=Ey(),[pe,Te]=d.useState(!1);l&&pe&&Te(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{Te(!0),W.current.focus()}}),[]);const[ye,be]=d.useState(!1);d.useEffect(()=>{be(!0)},[]);const we=ye&&!c&&!l;d.useEffect(()=>{pe&&p&&!c&&ye&&B.current.pulsate()},[c,p,pe,ye]);function ve(he,Re,Be=f){return fn(Ye=>(Re&&Re(Ye),!Be&&B.current&&B.current[he](Ye),!0))}const De=ve("start",C),Me=ve("stop",S),Qe=ve("stop",x),Ne=ve("stop",w),Ae=ve("stop",he=>{pe&&he.preventDefault(),E&&E(he)}),He=ve("start",k),ht=ve("stop",O),ut=ve("stop",P),V=ve("stop",he=>{oe(he),q.current===!1&&Te(!1),g&&g(he)},!1),K=fn(he=>{W.current||(W.current=he.currentTarget),ie(he),q.current===!0&&(Te(!0),b&&b(he)),m&&m(he)}),te=()=>{const he=W.current;return u&&u!=="button"&&!(he.tagName==="A"&&he.href)},se=d.useRef(!1),de=fn(he=>{p&&!se.current&&pe&&B.current&&he.key===" "&&(se.current=!0,B.current.stop(he,()=>{B.current.start(he)})),he.target===he.currentTarget&&te()&&he.key===" "&&he.preventDefault(),h&&h(he),he.target===he.currentTarget&&te()&&he.key==="Enter"&&!l&&(he.preventDefault(),y&&y(he))}),fe=fn(he=>{p&&he.key===" "&&B.current&&pe&&!he.defaultPrevented&&(se.current=!1,B.current.stop(he,()=>{B.current.pulsate(he)})),_&&_(he),y&&he.target===he.currentTarget&&te()&&he.key===" "&&!he.defaultPrevented&&y(he)});let Oe=u;Oe==="button"&&(M.href||M.to)&&(Oe=v);const ae={};Oe==="button"?(ae.type=z===void 0?"button":z,ae.disabled=l):(!M.href&&!M.to&&(ae.role="button"),l&&(ae["aria-disabled"]=l));const Z=Jt(r,Ee,W),G=T({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:pe}),le=xce(G);return R.jsxs(wce,T({as:Oe,className:ue(le.root,s),ownerState:G,onBlur:V,onClick:y,onContextMenu:Me,onFocus:K,onKeyDown:de,onKeyUp:fe,onMouseDown:De,onMouseLeave:Ae,onMouseUp:Ne,onDragLeave:Qe,onTouchEnd:ht,onTouchMove:ut,onTouchStart:He,ref:Z,tabIndex:l?-1:j,type:z},ae,M,{children:[i,we?R.jsx(vce,T({ref:U,center:o},$)):null]}))}),Ma=Sce;function _ce(e){return Ue("MuiIconButton",e)}const Cce=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ece=Cce,Oce=["edge","children","className","color","disabled","disableFocusRipple","size"],Pce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ge(n)}`,a&&`edge${ge(a)}`,`size${ge(o)}`]};return qe(i,_ce,t)},Rce=ne(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ge(r.color)}`],r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":T({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ece.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Tce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=Pe(n,Oce),p=T({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),v=Pce(p);return R.jsx(Rce,T({className:ue(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:o}))}),Pr=Tce;function $ce(e){return Ue("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jce=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${ge(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return qe(s,$ce,i)},Ice=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),_T={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ace={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mce=e=>Ace[e]||e,Fce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTypography"}),a=Mce(n.color),o=_y(T({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=_T}=o,g=Pe(o,kce),y=T({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:v}),S=u||(f?"p":v[p]||_T[p])||"span",x=jce(y);return R.jsx(Ice,T({as:S,ref:r,ownerState:y,className:ue(x.root,s)},g))}),_t=Fce;function Nce(e){return Ue("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Lce=["className","color","enableColorOnDark","position"],Dce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${ge(t)}`,`position${ge(r)}`]};return qe(a,Nce,n)},oh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Bce=ne(Yi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:oh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:oh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:oh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:oh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),zce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Pe(n,Lce),l=T({},n,{color:o,position:s,enableColorOnDark:i}),c=Dce(l);return R.jsx(Bce,T({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),Vce=zce;var xC={};Object.defineProperty(xC,"__esModule",{value:!0});var o4=xC.default=void 0,Uce=Hce(d),Wce=t4;function i4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(i4=function(n){return n?r:t})(e)}function Hce(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=i4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function qce(e){return Object.keys(e).length===0}function Kce(e=null){const t=Uce.useContext(Wce.ThemeContext);return!t||qce(t)?e:t}o4=xC.default=Kce;var Tn="top",ha="bottom",va="right",$n="left",wC="auto",gp=[Tn,ha,va,$n],Zu="start",$f="end",Gce="clippingParents",s4="viewport",Qc="popper",Qce="reference",CT=gp.reduce(function(e,t){return e.concat([t+"-"+Zu,t+"-"+$f])},[]),l4=[].concat(gp,[wC]).reduce(function(e,t){return e.concat([t,t+"-"+Zu,t+"-"+$f])},[]),Xce="beforeRead",Yce="read",Jce="afterRead",Zce="beforeMain",ede="main",tde="afterMain",rde="beforeWrite",nde="write",ade="afterWrite",ode=[Xce,Yce,Jce,Zce,ede,tde,rde,nde,ade];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function la(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SC(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ide(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!la(o)||!ao(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function sde(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!la(a)||!ao(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const lde={name:"applyStyles",enabled:!0,phase:"write",fn:ide,effect:sde,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ls=Math.max,pg=Math.min,ec=Math.round;function wx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function u4(){return!/^((?!chrome|android).)*safari/i.test(wx())}function tc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&la(e)&&(a=e.offsetWidth>0&&ec(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ec(n.height)/e.offsetHeight||1);var i=tl(e)?Kn(e):window,s=i.visualViewport,u=!u4()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function _C(e){var t=tc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function c4(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SC(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Lo(e){return Kn(e).getComputedStyle(e)}function ude(e){return["table","td","th"].indexOf(ao(e))>=0}function Ji(e){return((tl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ty(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(SC(e)?e.host:null)||Ji(e)}function ET(e){return!la(e)||Lo(e).position==="fixed"?null:e.offsetParent}function cde(e){var t=/firefox/i.test(wx()),r=/Trident/i.test(wx());if(r&&la(e)){var n=Lo(e);if(n.position==="fixed")return null}var a=Ty(e);for(SC(a)&&(a=a.host);la(a)&&["html","body"].indexOf(ao(a))<0;){var o=Lo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function mp(e){for(var t=Kn(e),r=ET(e);r&&ude(r)&&Lo(r).position==="static";)r=ET(r);return r&&(ao(r)==="html"||ao(r)==="body"&&Lo(r).position==="static")?t:r||cde(e)||t}function CC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Md(e,t,r){return Ls(e,pg(t,r))}function dde(e,t,r){var n=Md(e,t,r);return n>r?r:n}function d4(){return{top:0,right:0,bottom:0,left:0}}function f4(e){return Object.assign({},d4(),e)}function p4(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var fde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,f4(typeof t!="number"?t:p4(t,gp))};function pde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=ro(r.placement),u=CC(s),l=[$n,va].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var f=fde(a.padding,r),p=_C(o),v=u==="y"?Tn:$n,g=u==="y"?ha:va,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],S=i[u]-r.rects.reference[u],x=mp(o),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-S/2,h=f[v],_=m-p[c]-f[g],C=m/2-p[c]/2+b,E=Md(h,C,_),w=u;r.modifiersData[n]=(t={},t[w]=E,t.centerOffset=E-C,t)}}function hde(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||c4(t.elements.popper,a)&&(t.elements.arrow=a))}const vde={name:"arrow",enabled:!0,phase:"main",fn:pde,effect:hde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rc(e){return e.split("-")[1]}var gde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ec(r*a)/a||0,y:ec(n*a)/a||0}}function OT(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,g=i.y,y=g===void 0?0:g,S=typeof c=="function"?c({x:v,y}):{x:v,y};v=S.x,y=S.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=$n,h=Tn,_=window;if(l){var C=mp(r),E="clientHeight",w="clientWidth";if(C===Kn(r)&&(C=Ji(r),Lo(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",w="scrollWidth")),C=C,a===Tn||(a===$n||a===va)&&o===$f){h=ha;var O=f&&C===_&&_.visualViewport?_.visualViewport.height:C[E];y-=O-n.height,y*=u?1:-1}if(a===$n||(a===Tn||a===ha)&&o===$f){b=va;var P=f&&C===_&&_.visualViewport?_.visualViewport.width:C[w];v-=P-n.width,v*=u?1:-1}}var k=Object.assign({position:s},l&&gde),j=c===!0?mde({x:v,y},Kn(r)):{x:v,y};if(v=j.x,y=j.y,u){var $;return Object.assign({},k,($={},$[h]=m?"0":"",$[b]=x?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",$))}return Object.assign({},k,(t={},t[h]=m?y+"px":"",t[b]=x?v+"px":"",t.transform="",t))}function yde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:ro(t.placement),variation:rc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OT(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OT(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yde,data:{}};var ih={passive:!0};function xde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Kn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,ih)}),s&&u.addEventListener("resize",r.update,ih),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,ih)}),s&&u.removeEventListener("resize",r.update,ih)}}const wde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xde,data:{}};var Sde={left:"right",right:"left",bottom:"top",top:"bottom"};function Gh(e){return e.replace(/left|right|bottom|top/g,function(t){return Sde[t]})}var _de={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,function(t){return _de[t]})}function EC(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function OC(e){return tc(Ji(e)).left+EC(e).scrollLeft}function Cde(e,t){var r=Kn(e),n=Ji(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=u4();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+OC(e),y:u}}function Ede(e){var t,r=Ji(e),n=EC(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Ls(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ls(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+OC(e),u=-n.scrollTop;return Lo(a||r).direction==="rtl"&&(s+=Ls(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function PC(e){var t=Lo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function h4(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:la(e)&&PC(e)?e:h4(Ty(e))}function Fd(e,t){var r;t===void 0&&(t=[]);var n=h4(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),i=a?[o].concat(o.visualViewport||[],PC(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Fd(Ty(i)))}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ode(e,t){var r=tc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function RT(e,t,r){return t===s4?Sx(Cde(e,r)):tl(t)?Ode(t,r):Sx(Ede(Ji(e)))}function Pde(e){var t=Fd(Ty(e)),r=["absolute","fixed"].indexOf(Lo(e).position)>=0,n=r&&la(e)?mp(e):e;return tl(n)?t.filter(function(a){return tl(a)&&c4(a,n)&&ao(a)!=="body"}):[]}function Rde(e,t,r,n){var a=t==="clippingParents"?Pde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=RT(e,l,n);return u.top=Ls(c.top,u.top),u.right=pg(c.right,u.right),u.bottom=pg(c.bottom,u.bottom),u.left=Ls(c.left,u.left),u},RT(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function v4(e){var t=e.reference,r=e.element,n=e.placement,a=n?ro(n):null,o=n?rc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ha:u={x:i,y:t.y+t.height};break;case va:u={x:t.x+t.width,y:s};break;case $n:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CC(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Zu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case $f:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function kf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?Gce:s,l=r.rootBoundary,c=l===void 0?s4:l,f=r.elementContext,p=f===void 0?Qc:f,v=r.altBoundary,g=v===void 0?!1:v,y=r.padding,S=y===void 0?0:y,x=f4(typeof S!="number"?S:p4(S,gp)),m=p===Qc?Qce:Qc,b=e.rects.popper,h=e.elements[g?m:p],_=Rde(tl(h)?h:h.contextElement||Ji(e.elements.popper),u,c,i),C=tc(e.elements.reference),E=v4({reference:C,element:b,strategy:"absolute",placement:a}),w=Sx(Object.assign({},b,E)),O=p===Qc?w:C,P={top:_.top-O.top+x.top,bottom:O.bottom-_.bottom+x.bottom,left:_.left-O.left+x.left,right:O.right-_.right+x.right},k=e.modifiersData.offset;if(p===Qc&&k){var j=k[a];Object.keys(P).forEach(function($){var F=[va,ha].indexOf($)>=0?1:-1,z=[Tn,ha].indexOf($)>=0?"y":"x";P[$]+=j[z]*F})}return P}function Tde(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?l4:u,c=rc(n),f=c?s?CT:CT.filter(function(g){return rc(g)===c}):gp,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var v=p.reduce(function(g,y){return g[y]=kf(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ro(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function $de(e){if(ro(e)===wC)return[];var t=Gh(e);return[PT(e),t,PT(t)]}function kde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,y=r.allowedAutoPlacements,S=t.options.placement,x=ro(S),m=x===S,b=u||(m||!g?[Gh(S)]:$de(S)),h=[S].concat(b).reduce(function(pe,Te){return pe.concat(ro(Te)===wC?Tde(t,{placement:Te,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:y}):Te)},[]),_=t.rects.reference,C=t.rects.popper,E=new Map,w=!0,O=h[0],P=0;P=0,z=F?"width":"height",M=kf(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),W=F?$?va:$n:$?ha:Tn;_[z]>C[z]&&(W=Gh(W));var B=Gh(W),U=[];if(o&&U.push(M[j]<=0),s&&U.push(M[W]<=0,M[B]<=0),U.every(function(pe){return pe})){O=k,w=!1;break}E.set(k,U)}if(w)for(var q=g?3:1,ie=function(Te){var ye=h.find(function(be){var we=E.get(be);if(we)return we.slice(0,Te).every(function(ve){return ve})});if(ye)return O=ye,"break"},oe=q;oe>0;oe--){var Ee=ie(oe);if(Ee==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const jde={name:"flip",enabled:!0,phase:"main",fn:kde,requiresIfExists:["offset"],data:{_skip:!1}};function TT(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $T(e){return[Tn,va,ha,$n].some(function(t){return e[t]>=0})}function Ide(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kf(t,{elementContext:"reference"}),s=kf(t,{altBoundary:!0}),u=TT(i,n),l=TT(s,a,o),c=$T(u),f=$T(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Ade={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ide};function Mde(e,t,r){var n=ro(e),a=[$n,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[$n,va].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Fde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=l4.reduce(function(c,f){return c[f]=Mde(f,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Nde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fde};function Lde(e){var t=e.state,r=e.name;t.modifiersData[r]=v4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Dde={name:"popperOffsets",enabled:!0,phase:"read",fn:Lde,data:{}};function Bde(e){return e==="x"?"y":"x"}function zde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,g=r.tetherOffset,y=g===void 0?0:g,S=kf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=ro(t.placement),m=rc(t.placement),b=!m,h=CC(x),_=Bde(h),C=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(o){var $,F=h==="y"?Tn:$n,z=h==="y"?ha:va,M=h==="y"?"height":"width",W=C[h],B=W+S[F],U=W-S[z],q=v?-w[M]/2:0,ie=m===Zu?E[M]:w[M],oe=m===Zu?-w[M]:-E[M],Ee=t.elements.arrow,pe=v&&Ee?_C(Ee):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:d4(),ye=Te[F],be=Te[z],we=Md(0,E[M],pe[M]),ve=b?E[M]/2-q-we-ye-P.mainAxis:ie-we-ye-P.mainAxis,De=b?-E[M]/2+q+we+be+P.mainAxis:oe+we+be+P.mainAxis,Me=t.elements.arrow&&mp(t.elements.arrow),Qe=Me?h==="y"?Me.clientTop||0:Me.clientLeft||0:0,Ne=($=k==null?void 0:k[h])!=null?$:0,Ae=W+ve-Ne-Qe,He=W+De-Ne,ht=Md(v?pg(B,Ae):B,W,v?Ls(U,He):U);C[h]=ht,j[h]=ht-W}if(s){var ut,V=h==="x"?Tn:$n,K=h==="x"?ha:va,te=C[_],se=_==="y"?"height":"width",de=te+S[V],fe=te-S[K],Oe=[Tn,$n].indexOf(x)!==-1,ae=(ut=k==null?void 0:k[_])!=null?ut:0,Z=Oe?de:te-E[se]-w[se]-ae+P.altAxis,G=Oe?te+E[se]+w[se]-ae-P.altAxis:fe,le=v&&Oe?dde(Z,te,G):Md(v?Z:de,te,v?G:fe);C[_]=le,j[_]=le-te}t.modifiersData[n]=j}}const Vde={name:"preventOverflow",enabled:!0,phase:"main",fn:zde,requiresIfExists:["offset"]};function Ude(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wde(e){return e===Kn(e)||!la(e)?EC(e):Ude(e)}function Hde(e){var t=e.getBoundingClientRect(),r=ec(t.width)/e.offsetWidth||1,n=ec(t.height)/e.offsetHeight||1;return r!==1||n!==1}function qde(e,t,r){r===void 0&&(r=!1);var n=la(t),a=la(t)&&Hde(t),o=Ji(t),i=tc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ao(t)!=="body"||PC(o))&&(s=Wde(t)),la(t)?(u=tc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=OC(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Kde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Gde(e){var t=Kde(e);return ode.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Qde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Xde(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var kT={placement:"bottom",modifiers:[],strategy:"absolute"};function jT(){for(var e=arguments.length,t=new Array(e),r=0;r{o||s(efe(a)||document.body)},[a,o]),qn(()=>{if(i&&!o)return lg(r,i),()=>{lg(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return R.jsx(d.Fragment,{children:n})}return R.jsx(d.Fragment,{children:i&&tp.createPortal(n,i)})}),g4=tfe;function rfe(e){return Ue("MuiPopper",e)}We("MuiPopper",["root"]);const nfe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],afe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ofe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function _x(e){return typeof e=="function"?e():e}function ife(e){return e.nodeType!==void 0}const sfe=e=>{const{classes:t}=e;return qe({root:["root"]},rfe,t)},lfe={},ufe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:v={},slots:g={},TransitionProps:y}=t,S=Pe(t,nfe),x=d.useRef(null),m=Jt(x,r),b=d.useRef(null),h=Jt(b,p),_=d.useRef(h);qn(()=>{_.current=h},[h]),d.useImperativeHandle(p,()=>b.current,[]);const C=ofe(c,i),[E,w]=d.useState(C),[O,P]=d.useState(_x(a));d.useEffect(()=>{b.current&&b.current.forceUpdate()}),d.useEffect(()=>{a&&P(_x(a))},[a]),qn(()=>{if(!O||!l)return;const z=B=>{w(B.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{z(B)}}];u!=null&&(M=M.concat(u)),f&&f.modifiers!=null&&(M=M.concat(f.modifiers));const W=Zde(O,x.current,T({placement:C},f,{modifiers:M}));return _.current(W),()=>{W.destroy(),_.current(null)}},[O,s,u,l,f,C]);const k={placement:E};y!==null&&(k.TransitionProps=y);const j=sfe(t),$=(n=g.root)!=null?n:"div",F=fa({elementType:$,externalSlotProps:v.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:j.root});return R.jsx($,T({},F,{children:typeof o=="function"?o(k):o}))}),cfe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=lfe,popperRef:v,style:g,transition:y=!1,slotProps:S={},slots:x={}}=t,m=Pe(t,afe),[b,h]=d.useState(!0),_=()=>{h(!1)},C=()=>{h(!0)};if(!u&&!c&&(!y||b))return null;let E;if(o)E=o;else if(n){const P=_x(n);E=P&&ife(P)?wr(P).body:wr(null).body}const w=!c&&u&&(!y||b)?"none":void 0,O=y?{in:c,onEnter:_,onExited:C}:void 0;return R.jsx(g4,{disablePortal:s,container:E,children:R.jsx(ufe,T({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!b:c,placement:f,popperOptions:p,popperRef:v,slotProps:S,slots:x},m,{style:T({position:"fixed",top:0,left:0,display:w},g),TransitionProps:O,children:a}))})}),dfe=cfe,ffe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],pfe=ne(dfe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hfe=d.forwardRef(function(t,r){var n;const a=o4(),o=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m,slots:b,slotProps:h}=o,_=Pe(o,ffe),C=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,E=T({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m},_);return R.jsx(pfe,T({as:s,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:h??l},E,{ref:r}))}),m4=hfe,vfe=An(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function gfe(e){return Ue("MuiChip",e)}const mfe=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Et=mfe,yfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],bfe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ge(n)}`,`color${ge(a)}`,s&&"clickable",s&&`clickableColor${ge(a)}`,i&&"deletable",i&&`deletableColor${ge(a)}`,`${u}${ge(a)}`],label:["label",`label${ge(n)}`],avatar:["avatar",`avatar${ge(n)}`,`avatarColor${ge(a)}`],icon:["icon",`icon${ge(n)}`,`iconColor${ge(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ge(n)}`,`deleteIconColor${ge(a)}`,`deleteIcon${ge(u)}Color${ge(a)}`]};return qe(l,gfe,t)},xfe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${ge(s)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${ge(n)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${ge(s)}`]},{[`& .${Et.icon}`]:t[`iconColor${ge(a)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(s)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${ge(n)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(u)}Color${ge(n)}`]},t.root,t[`size${ge(s)}`],t[`color${ge(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ge(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ge(n)}`],t[u],t[`${u}${ge(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Et.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:gt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Et.avatar}`]:{marginLeft:4},[`& .${Et.avatarSmall}`]:{marginLeft:2},[`& .${Et.icon}`]:{marginLeft:4},[`& .${Et.iconSmall}`]:{marginLeft:2},[`& .${Et.deleteIcon}`]:{marginRight:5},[`& .${Et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),wfe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ge(n)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function IT(e){return e.key==="Backspace"||e.key==="Delete"}const Sfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:S,size:x="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:h=!1}=n,_=Pe(n,yfe),C=d.useRef(null),E=Jt(C,r),w=U=>{U.stopPropagation(),g&&g(U)},O=U=>{U.currentTarget===U.target&&IT(U)&&U.preventDefault(),y&&y(U)},P=U=>{U.currentTarget===U.target&&(g&&IT(U)?g(U):U.key==="Escape"&&C.current&&C.current.blur()),S&&S(U)},k=i!==!1&&v?!0:i,j=k||g?Ma:u||"div",$=T({},n,{component:j,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:k,variant:m}),F=bfe($),z=j===Ma?T({component:u||"div",focusVisibleClassName:F.focusVisible},g&&{disableRipple:!0}):{};let M=null;g&&(M=l&&d.isValidElement(l)?d.cloneElement(l,{className:ue(l.props.className,F.deleteIcon),onClick:w}):R.jsx(vfe,{className:ue(F.deleteIcon),onClick:w}));let W=null;a&&d.isValidElement(a)&&(W=d.cloneElement(a,{className:ue(F.avatar,a.props.className)}));let B=null;return f&&d.isValidElement(f)&&(B=d.cloneElement(f,{className:ue(F.icon,f.props.className)})),R.jsxs(xfe,T({as:j,className:ue(F.root,o),disabled:k&&c?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:P,ref:E,tabIndex:h&&c?-1:b,ownerState:$},z,_,{children:[W||B,R.jsx(wfe,{className:ue(F.label),ownerState:$,children:p}),M]}))}),_fe=Sfe,Cfe=["onChange","maxRows","minRows","style","value"];function sh(e){return parseInt(e,10)||0}const Efe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ofe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Pfe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Pe(t,Cfe),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=Jt(r,c),p=d.useRef(null),v=d.useRef(null),g=d.useCallback(()=>{const x=c.current,b=da(x).getComputedStyle(x);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=v.current;h.style.width=b.width,h.value=x.value||t.placeholder||"x",h.value.slice(-1)===` +`&&(h.value+=" ");const _=b.boxSizing,C=sh(b.paddingBottom)+sh(b.paddingTop),E=sh(b.borderBottomWidth)+sh(b.borderTopWidth),w=h.scrollHeight;h.value="x";const O=h.scrollHeight;let P=w;o&&(P=Math.max(Number(o)*O,P)),a&&(P=Math.min(Number(a)*O,P)),P=Math.max(P,O);const k=P+(_==="border-box"?C+E:0),j=Math.abs(P-w)<=1;return{outerHeightStyle:k,overflowing:j}},[a,o,t.placeholder]),y=d.useCallback(()=>{const x=g();if(Ofe(x))return;const m=x.outerHeightStyle,b=c.current;p.current!==m&&(p.current=m,b.style.height=`${m}px`),b.style.overflow=x.overflowing?"hidden":""},[g]);qn(()=>{const x=()=>{y()};let m;const b=Rc(x),h=c.current,_=da(h);_.addEventListener("resize",b);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(h)),()=>{b.clear(),cancelAnimationFrame(m),_.removeEventListener("resize",b),C&&C.disconnect()}},[g,y]),qn(()=>{y()});const S=x=>{l||y(),n&&n(x)};return R.jsxs(d.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:S,ref:f,rows:o,style:i},u)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:T({},Efe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),Rfe=Pfe;function Zi({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const Tfe=d.createContext(void 0),$y=Tfe;function po(){return d.useContext($y)}function y4(e){return R.jsx(hse,T({},e,{defaultTheme:Oy,themeId:Js}))}function AT(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hg(e,t=!1){return e&&(AT(e.value)&&e.value!==""||t&&AT(e.defaultValue)&&e.defaultValue!=="")}function $fe(e){return e.startAdornment}function kfe(e){return Ue("MuiInputBase",e)}const jfe=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nc=jfe,Ife=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ky=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ge(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jy=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Afe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:v,type:g}=e,y={root:["root",`color${ge(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ge(p)}`,c&&"multiline",v&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return qe(y,kfe,t)},Iy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ky})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ay=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${nc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Mfe=R.jsx(y4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ffe=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:S,inputComponent:x="input",inputProps:m={},inputRef:b,maxRows:h,minRows:_,multiline:C=!1,name:E,onBlur:w,onChange:O,onClick:P,onFocus:k,onKeyDown:j,onKeyUp:$,placeholder:F,readOnly:z,renderSuffix:M,rows:W,slotProps:B={},slots:U={},startAdornment:q,type:ie="text",value:oe}=a,Ee=Pe(a,Ife),pe=m.value!=null?m.value:oe,{current:Te}=d.useRef(pe!=null),ye=d.useRef(),be=d.useCallback(le=>{},[]),we=Jt(ye,b,m.ref,be),[ve,De]=d.useState(!1),Me=po(),Qe=Zi({props:a,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Me?Me.focused:ve,d.useEffect(()=>{!Me&&p&&ve&&(De(!1),w&&w())},[Me,p,ve,w]);const Ne=Me&&Me.onFilled,Ae=Me&&Me.onEmpty,He=d.useCallback(le=>{hg(le)?Ne&&Ne():Ae&&Ae()},[Ne,Ae]);qn(()=>{Te&&He({value:pe})},[pe,He,Te]);const ht=le=>{if(Qe.disabled){le.stopPropagation();return}k&&k(le),m.onFocus&&m.onFocus(le),Me&&Me.onFocus?Me.onFocus(le):De(!0)},ut=le=>{w&&w(le),m.onBlur&&m.onBlur(le),Me&&Me.onBlur?Me.onBlur(le):De(!1)},V=(le,...he)=>{if(!Te){const Re=le.target||ye.current;if(Re==null)throw new Error(No(1));He({value:Re.value})}m.onChange&&m.onChange(le,...he),O&&O(le,...he)};d.useEffect(()=>{He(ye.current)},[]);const K=le=>{ye.current&&le.currentTarget===le.target&&ye.current.focus(),P&&P(le)};let te=x,se=m;C&&te==="input"&&(W?se=T({type:void 0,minRows:W,maxRows:W},se):se=T({type:void 0,maxRows:h,minRows:_},se),te=Rfe);const de=le=>{He(le.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};d.useEffect(()=>{Me&&Me.setAdornedStart(!!q)},[Me,q]);const fe=T({},a,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:g,error:Qe.error,focused:Qe.focused,formControl:Me,fullWidth:y,hiddenLabel:Qe.hiddenLabel,multiline:C,size:Qe.size,startAdornment:q,type:ie}),Oe=Afe(fe),ae=U.root||l.Root||Iy,Z=B.root||c.root||{},G=U.input||l.Input||Ay;return se=T({},se,(n=B.input)!=null?n:c.input),R.jsxs(d.Fragment,{children:[!v&&Mfe,R.jsxs(ae,T({},Z,!Rf(ae)&&{ownerState:T({},fe,Z.ownerState)},{ref:r,onClick:K},Ee,{className:ue(Oe.root,Z.className,u,z&&"MuiInputBase-readOnly"),children:[q,R.jsx($y.Provider,{value:null,children:R.jsx(G,T({ownerState:fe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Qe.disabled,id:S,onAnimationStart:de,name:E,placeholder:F,readOnly:z,required:Qe.required,rows:W,value:pe,onKeyDown:j,onKeyUp:$,type:ie},se,!Rf(G)&&{as:te,ownerState:T({},fe,se.ownerState)},{ref:we,className:ue(Oe.input,se.className,z&&"MuiInputBase-readOnly"),onBlur:ut,onChange:V,onFocus:ht}))}),g,M?M(T({},Qe,{startAdornment:q})):null]}))]})}),My=Ffe;function Nfe(e){return Ue("MuiInput",e)}const Lfe=T({},nc,We("MuiInput",["root","underline","input"])),Xc=Lfe;function Dfe(e){return Ue("MuiOutlinedInput",e)}const Bfe=T({},nc,We("MuiOutlinedInput",["root","notchedOutline","input"])),Yo=Bfe;function zfe(e){return Ue("MuiFilledInput",e)}const Vfe=T({},nc,We("MuiFilledInput",["root","underline","input"])),es=Vfe,Ufe=An(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Wfe=An(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Hfe(e){return Ue("MuiAvatar",e)}We("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const qfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Kfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return qe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Hfe,t)},Gfe=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:T({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Qfe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Xfe=ne(Wfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Yfe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const Jfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:f,src:p,srcSet:v,variant:g="circular"}=n,y=Pe(n,qfe);let S=null;const x=Yfe(T({},c,{src:p,srcSet:v})),m=p||v,b=m&&x!=="error",h=T({},n,{colorDefault:!b,component:s,variant:g}),_=Kfe(h),[C,E]=ace("img",{className:_.img,elementType:Qfe,externalForwardedProps:{slots:u,slotProps:{img:T({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:v,sizes:f},ownerState:h});return b?S=R.jsx(C,T({},E)):o||o===0?S=o:m&&a?S=a[0]:S=R.jsx(Xfe,{ownerState:h,className:_.fallback}),R.jsx(Gfe,T({as:s,ownerState:h,className:ue(_.root,i),ref:r},y,{children:S}))}),vg=Jfe,Zfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],epe={entering:{opacity:1},entered:{opacity:1}},tpe=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:g,onExiting:y,style:S,timeout:x=a,TransitionComponent:m=gC}=t,b=Pe(t,Zfe),h=d.useRef(null),_=Jt(h,s.ref,r),C=F=>z=>{if(F){const M=h.current;z===void 0?F(M):F(M,z)}},E=C(p),w=C((F,z)=>{bC(F);const M=Ju({style:S,timeout:x,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",M),F.style.transition=n.transitions.create("opacity",M),c&&c(F,z)}),O=C(f),P=C(y),k=C(F=>{const z=Ju({style:S,timeout:x,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",z),F.style.transition=n.transitions.create("opacity",z),v&&v(F)}),j=C(g),$=F=>{o&&o(h.current,F)};return R.jsx(m,T({appear:i,in:l,nodeRef:h,onEnter:w,onEntered:O,onEntering:E,onExit:k,onExited:j,onExiting:P,addEndListener:$,timeout:x},b,{children:(F,z)=>d.cloneElement(s,T({style:T({opacity:0,visibility:F==="exited"&&!l?"hidden":void 0},epe[F],S,s.props.style),ref:_},z))}))}),b4=tpe;function rpe(e){return Ue("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const npe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ape=e=>{const{classes:t,invisible:r}=e;return qe({root:["root",r&&"invisible"]},rpe,t)},ope=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ipe=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:S=b4,transitionDuration:x}=i,m=Pe(i,npe),b=T({},i,{component:l,invisible:p}),h=ape(b),_=(n=g.root)!=null?n:f.root;return R.jsx(S,T({in:v,timeout:x},m,{children:R.jsx(ope,T({"aria-hidden":!0},_,{as:(a=(o=y.root)!=null?o:c.Root)!=null?a:l,className:ue(h.root,u,_==null?void 0:_.className),ownerState:T({},b,_==null?void 0:_.ownerState),classes:h,ref:r,children:s}))}))}),x4=ipe,spe=We("MuiBox",["root"]),lpe=spe,upe=dg(),cpe=wse({themeId:Js,defaultTheme:upe,defaultClassName:lpe.root,generateClassName:lC.generate}),Qh=cpe;function dpe(e){return Ue("MuiButton",e)}const fpe=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),lh=fpe,ppe=d.createContext({}),hpe=ppe,vpe=d.createContext(void 0),gpe=vpe,mpe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ype=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${ge(t)}`,`size${ge(a)}`,`${o}Size${ge(a)}`,`color${ge(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ge(a)}`],endIcon:["icon","endIcon",`iconSize${ge(a)}`]},u=qe(s,dpe,i);return T({},i,u)},w4=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),bpe=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ge(r.color)}`],t[`size${ge(r.size)}`],t[`${r.variant}Size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${lh.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lh.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lh.disabled}`]:{boxShadow:"none"}}),xpe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},w4(e))),wpe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},w4(e))),Spe=d.forwardRef(function(t,r){const n=d.useContext(hpe),a=d.useContext(gpe),o=Of(n,t),i=Ke({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:S=!1,size:x="medium",startIcon:m,type:b,variant:h="text"}=i,_=Pe(i,mpe),C=T({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:S,size:x,type:b,variant:h}),E=ype(C),w=m&&R.jsx(xpe,{className:E.startIcon,ownerState:C,children:m}),O=g&&R.jsx(wpe,{className:E.endIcon,ownerState:C,children:g}),P=a||"";return R.jsxs(bpe,T({ownerState:C,className:ue(n.className,E.root,c,P),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ue(E.focusVisible,y),ref:r,type:b},_,{classes:E,children:[w,s,O]}))}),hn=Spe;function _pe(e){return Ue("MuiCard",e)}We("MuiCard",["root"]);const Cpe=["className","raised"],Epe=e=>{const{classes:t}=e;return qe({root:["root"]},_pe,t)},Ope=ne(Yi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Ppe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Pe(n,Cpe),s=T({},n,{raised:o}),u=Epe(s);return R.jsx(Ope,T({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))}),oo=Ppe;function Rpe(e){return Ue("MuiCardContent",e)}We("MuiCardContent",["root"]);const Tpe=["className","component"],$pe=e=>{const{classes:t}=e;return qe({root:["root"]},Rpe,t)},kpe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),jpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Pe(n,Tpe),s=T({},n,{component:o}),u=$pe(s);return R.jsx(kpe,T({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))}),Di=jpe;function Ipe(e){return Ue("MuiCardHeader",e)}const Ape=We("MuiCardHeader",["root","avatar","action","content","title","subheader"]),MT=Ape,Mpe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Fpe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ipe,t)},Npe=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${MT.title}`]:t.title,[`& .${MT.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Lpe=ne("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Dpe=ne("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Bpe=ne("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),zpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=n,v=Pe(n,Mpe),g=T({},n,{component:s,disableTypography:u}),y=Fpe(g);let S=f;S!=null&&S.type!==_t&&!u&&(S=R.jsx(_t,T({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},p,{children:S})));let x=l;return x!=null&&x.type!==_t&&!u&&(x=R.jsx(_t,T({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),R.jsxs(Npe,T({className:ue(y.root,i),as:s,ref:r,ownerState:g},v,{children:[o&&R.jsx(Lpe,{className:y.avatar,ownerState:g,children:o}),R.jsxs(Bpe,{className:y.content,ownerState:g,children:[S,x]}),a&&R.jsx(Dpe,{className:y.action,ownerState:g,children:a})]}))}),FT=zpe;function Vpe(e){return Ue("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Upe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Wpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${ge(a)}`],input:["input"]};return qe(o,Vpe,t)},Hpe=ne(Ma)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),qpe=ne("input",{shouldForwardProp:Wr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Kpe=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:v,inputRef:g,name:y,onBlur:S,onChange:x,onFocus:m,readOnly:b,required:h=!1,tabIndex:_,type:C,value:E}=t,w=Pe(t,Upe),[O,P]=Yu({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),k=po(),j=U=>{m&&m(U),k&&k.onFocus&&k.onFocus(U)},$=U=>{S&&S(U),k&&k.onBlur&&k.onBlur(U)},F=U=>{if(U.nativeEvent.defaultPrevented)return;const q=U.target.checked;P(q),x&&x(U,q)};let z=u;k&&typeof z>"u"&&(z=k.disabled);const M=C==="checkbox"||C==="radio",W=T({},t,{checked:O,disabled:z,disableFocusRipple:l,edge:c}),B=Wpe(W);return R.jsxs(Hpe,T({component:"span",className:ue(B.root,i),centerRipple:!0,focusRipple:!l,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:$,ownerState:W,ref:r},w,{children:[R.jsx(qpe,T({autoFocus:n,checked:a,defaultChecked:s,className:B.input,disabled:z,id:M?p:void 0,name:y,onChange:F,readOnly:b,ref:g,required:h,ownerState:W,tabIndex:_,type:C},C==="checkbox"&&E===void 0?{}:{value:E},v)),O?o:f]}))}),S4=Kpe,Gpe=An(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Qpe=An(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Xpe=An(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Ype(e){return Ue("MuiCheckbox",e)}const Jpe=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),a0=Jpe,Zpe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ehe=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(a)}`]},i=qe(o,Ype,t);return T({},t,i)},the=ne(S4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ge(r.size)}`],r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a0.checked}, &.${a0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${a0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),rhe=R.jsx(Qpe,{}),nhe=R.jsx(Gpe,{}),ahe=R.jsx(Xpe,{}),ohe=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=rhe,color:s="primary",icon:u=nhe,indeterminate:l=!1,indeterminateIcon:c=ahe,inputProps:f,size:p="medium",className:v}=o,g=Pe(o,Zpe),y=l?c:u,S=l?c:i,x=T({},o,{color:s,indeterminate:l,size:p}),m=ehe(x);return R.jsx(the,T({type:"checkbox",inputProps:T({"data-indeterminate":l},f),icon:d.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(m.root,v)},g,{classes:m}))}),gg=ohe;function ihe(e){return Ue("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const she=["className","color","disableShrink","size","style","thickness","value","variant"];let Fy=e=>e,NT,LT,DT,BT;const Jo=44,lhe=Pc(NT||(NT=Fy` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),uhe=Pc(LT||(LT=Fy` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),che=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${ge(n)}`],svg:["svg"],circle:["circle",`circle${ge(r)}`,a&&"circleDisableShrink"]};return qe(o,ihe,t)},dhe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ge(r.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&gy(DT||(DT=Fy` + animation: ${0} 1.4s linear infinite; + `),lhe)),fhe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),phe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ge(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&gy(BT||(BT=Fy` + animation: ${0} 1.4s ease-in-out infinite; + `),uhe)),hhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=Pe(n,she),v=T({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=che(v),y={},S={},x={};if(f==="determinate"){const m=2*Math.PI*((Jo-l)/2);y.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(dhe,T({className:ue(g.root,a),style:T({width:s,height:s},S,u),ownerState:v,ref:r,role:"progressbar"},x,p,{children:R.jsx(fhe,{className:g.svg,ownerState:v,viewBox:`${Jo/2} ${Jo/2} ${Jo} ${Jo}`,children:R.jsx(phe,{className:g.circle,style:y,ownerState:v,cx:Jo,cy:Jo,r:(Jo-l)/2,fill:"none",strokeWidth:l})})}))}),kc=hhe;function zT(e){return e.substring(2).toLowerCase()}function vhe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Jt(t.ref,s),f=fn(g=>{const y=l.current;l.current=!1;const S=wr(s.current);if(!u.current||!s.current||"clientX"in g&&vhe(g,S))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!S.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!y)&&a(g)}),p=g=>y=>{l.current=!0;const S=t.props[g];S&&S(y)},v={ref:c};return o!==!1&&(v[o]=p(o)),d.useEffect(()=>{if(o!==!1){const g=zT(o),y=wr(s.current),S=()=>{i.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",S),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",S)}}},[f,o]),n!==!1&&(v[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=zT(n),y=wr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,n]),R.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const mhe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),yhe=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),bhe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,s])=>{var u;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let a=T({html:mhe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},yhe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function xhe(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return R.jsxs(d.Fragment,{children:[R.jsx(y4,{styles:a=>bhe(a,n)}),r]})}function whe(e){const t=wr(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VT(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function She(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function UT(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!She(i);s&&u&&Nd(i,a)})}function o0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function _he(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(whe(n)){const i=BF(wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${VT(n)+i}px`;const s=wr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${VT(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=wr(n).body;else{const i=n.parentElement,s=da(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Che(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ehe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Nd(t.modalRef,!1);const a=Che(r);UT(r,t.mount,t.modalRef,a,!0);const o=o0(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=o0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=_he(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=o0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Nd(t.modalRef,r),UT(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Nd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ohe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Phe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Rhe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function The(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Rhe(e))}function $he(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ohe)).forEach((n,a)=>{const o=Phe(n);o===-1||!The(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function khe(){return!0}function jhe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=$he,isEnabled:i=khe,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),y=Jt(t.ref,g),S=d.useRef(null);d.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{a||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current),h=E=>{S.current=E,!(n||!i()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(u.current=!0,c.current&&c.current.focus())},_=()=>{const E=g.current;if(E===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let w=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(w=o(g.current)),w.length>0){var O,P;const k=!!((O=S.current)!=null&&O.shiftKey&&((P=S.current)==null?void 0:P.key)==="Tab"),j=w[0],$=w[w.length-1];typeof j!="string"&&typeof $!="string"&&(k?$.focus():j.focus())}else E.focus()};b.addEventListener("focusin",_),b.addEventListener("keydown",h,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",_),b.removeEventListener("keydown",h,!0)}},[r,n,a,i,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0,p.current=b.target;const h=t.props.onFocus;h&&h(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0};return R.jsxs(d.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:y,onFocus:x}),R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function Ihe(e){return typeof e=="function"?e():e}function Ahe(e){return e?e.props.hasOwnProperty("in"):!1}const Mhe=new Ehe;function Fhe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Mhe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),y=Jt(g,f),[S,x]=d.useState(!c),m=Ahe(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const h=()=>wr(v.current),_=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),C=()=>{a.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=fn(()=>{const M=Ihe(t)||h().body;a.add(_(),M),g.current&&C()}),w=d.useCallback(()=>a.isTopModal(_()),[a]),O=fn(M=>{v.current=M,M&&(c&&w()?C():g.current&&Nd(g.current,b))}),P=d.useCallback(()=>{a.remove(_(),b)},[b,a]);d.useEffect(()=>()=>{P()},[P]),d.useEffect(()=>{c?E():(!m||!o)&&P()},[c,P,m,o,E]);const k=M=>W=>{var B;(B=M.onKeyDown)==null||B.call(M,W),!(W.key!=="Escape"||W.which===229||!w())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},j=M=>W=>{var B;(B=M.onClick)==null||B.call(M,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(M={})=>{const W=ug(e);delete W.onTransitionEnter,delete W.onTransitionExited;const B=T({},W,M);return T({role:"presentation"},B,{onKeyDown:k(B),ref:y})},getBackdropProps:(M={})=>{const W=M;return T({"aria-hidden":!0},W,{onClick:j(W),open:c})},getTransitionProps:()=>{const M=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:hx(M,u==null?void 0:u.props.onEnter),onExited:hx(W,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:O,isTopModal:w,exited:S,hasTransition:m}}function Nhe(e){return Ue("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Lhe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Dhe=e=>{const{open:t,exited:r,classes:n}=e;return qe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Nhe,n)},Bhe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),zhe=ne(x4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vhe=d.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Ke({name:"MuiModal",props:t}),{BackdropComponent:c=zhe,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:y,component:S,components:x={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:_=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:O=!1,keepMounted:P=!1,onBackdropClick:k,open:j,slotProps:$,slots:F}=l,z=Pe(l,Lhe),M=T({},l,{closeAfterTransition:v,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:_,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:O,keepMounted:P}),{getRootProps:W,getBackdropProps:B,getTransitionProps:U,portalRef:q,isTopModal:ie,exited:oe,hasTransition:Ee}=Fhe(T({},M,{rootRef:r})),pe=T({},M,{exited:oe}),Te=Dhe(pe),ye={};if(g.props.tabIndex===void 0&&(ye.tabIndex="-1"),Ee){const{onEnter:Ne,onExited:Ae}=U();ye.onEnter=Ne,ye.onExited=Ae}const be=(n=(a=F==null?void 0:F.root)!=null?a:x.Root)!=null?n:Bhe,we=(o=(i=F==null?void 0:F.backdrop)!=null?i:x.Backdrop)!=null?o:c,ve=(s=$==null?void 0:$.root)!=null?s:m.root,De=(u=$==null?void 0:$.backdrop)!=null?u:m.backdrop,Me=fa({elementType:be,externalSlotProps:ve,externalForwardedProps:z,getSlotProps:W,additionalProps:{ref:r,as:S},ownerState:pe,className:ue(p,ve==null?void 0:ve.className,Te==null?void 0:Te.root,!pe.open&&pe.exited&&(Te==null?void 0:Te.hidden))}),Qe=fa({elementType:we,externalSlotProps:De,additionalProps:f,getSlotProps:Ne=>B(T({},Ne,{onClick:Ae=>{k&&k(Ae),Ne!=null&&Ne.onClick&&Ne.onClick(Ae)}})),className:ue(De==null?void 0:De.className,f==null?void 0:f.className,Te==null?void 0:Te.backdrop),ownerState:pe});return!P&&!j&&(!Ee||oe)?null:R.jsx(g4,{ref:q,container:y,disablePortal:C,children:R.jsxs(be,T({},Me,{children:[!O&&c?R.jsx(we,T({},Qe)):null,R.jsx(jhe,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:ie,open:j,children:d.cloneElement(g,ye)})]}))})}),RC=Vhe;function Uhe(e){return Ue("MuiDialog",e)}const Whe=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),i0=Whe,Hhe=d.createContext({}),_4=Hhe,qhe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Khe=ne(x4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ghe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return qe(i,Uhe,t)},Qhe=ne(RC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Xhe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ge(r.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Yhe=ne(Yi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ge(r.scroll)}`],t[`paperWidth${ge(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${i0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${i0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${i0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Jhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialog"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:S,onClick:x,onClose:m,open:b,PaperComponent:h=Yi,PaperProps:_={},scroll:C="paper",TransitionComponent:E=b4,transitionDuration:w=o,TransitionProps:O}=n,P=Pe(n,qhe),k=T({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:y,scroll:C}),j=Ghe(k),$=d.useRef(),F=B=>{$.current=B.target===B.currentTarget},z=B=>{x&&x(B),$.current&&($.current=null,S&&S(B),m&&m(B,"backdropClick"))},M=el(s),W=d.useMemo(()=>({titleId:M}),[M]);return R.jsx(Qhe,T({className:ue(j.root,f),closeAfterTransition:!0,components:{Backdrop:Khe},componentsProps:{backdrop:T({transitionDuration:w,as:u},l)},disableEscapeKeyDown:p,onClose:m,open:b,ref:r,onClick:z,ownerState:k},P,{children:R.jsx(E,T({appear:!0,in:b,timeout:w,role:"presentation"},O,{children:R.jsx(Xhe,{className:ue(j.container),onMouseDown:F,ownerState:k,children:R.jsx(Yhe,T({as:h,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":M},_,{className:ue(j.paper,_.className),ownerState:k,children:R.jsx(_4.Provider,{value:W,children:c})}))})}))}))}),TC=Jhe;function Zhe(e){return Ue("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const eve=["className","disableSpacing"],tve=e=>{const{classes:t,disableSpacing:r}=e;return qe({root:["root",!r&&"spacing"]},Zhe,t)},rve=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),nve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Pe(n,eve),s=T({},n,{disableSpacing:o}),u=tve(s);return R.jsx(rve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),$C=nve;function ave(e){return Ue("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function ove(e){return Ue("MuiDialogTitle",e)}const ive=We("MuiDialogTitle",["root"]),sve=ive,lve=["className","dividers"],uve=e=>{const{classes:t,dividers:r}=e;return qe({root:["root",r&&"dividers"]},ave,t)},cve=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${sve.root} + &`]:{paddingTop:0}})),dve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Pe(n,lve),s=T({},n,{dividers:o}),u=uve(s);return R.jsx(cve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),kC=dve;function fve(e){return Ue("MuiDialogContentText",e)}We("MuiDialogContentText",["root"]);const pve=["children","className"],hve=e=>{const{classes:t}=e,n=qe({root:["root"]},fve,t);return T({},t,n)},vve=ne(_t,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Pe(n,pve),i=hve(o);return R.jsx(vve,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),C4=gve,mve=["className","id"],yve=e=>{const{classes:t}=e;return qe({root:["root"]},ove,t)},bve=ne(_t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),xve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Pe(n,mve),s=n,u=yve(s),{titleId:l=o}=d.useContext(_4);return R.jsx(bve,T({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),jC=xve;function wve(e){return Ue("MuiDivider",e)}const Sve=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WT=Sve,_ve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Cve=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:s,variant:u}=e;return qe({root:["root",t&&"absolute",u,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},wve,n)},Eve=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Ove=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),E4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:s=o?"div":"hr",flexItem:u=!1,light:l=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=Pe(n,_ve),y=T({},n,{absolute:a,component:s,flexItem:u,light:l,orientation:c,role:f,textAlign:p,variant:v}),S=Cve(y);return R.jsx(Eve,T({as:s,className:ue(S.root,i),role:f,ref:r,ownerState:y},g,{children:o?R.jsx(Ove,{className:S.wrapper,ownerState:y,children:o}):null}))});E4.muiSkipListHighlight=!0;const mg=E4,Pve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function Tve(e){return typeof e=="function"?e():e}function uh(e,t,r){const n=Tve(r),a=Rve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $ve=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=a,in:p,onEnter:v,onEntered:g,onEntering:y,onExit:S,onExited:x,onExiting:m,style:b,timeout:h=o,TransitionComponent:_=gC}=t,C=Pe(t,Pve),E=d.useRef(null),w=Jt(u.ref,E,r),O=B=>U=>{B&&(U===void 0?B(E.current):B(E.current,U))},P=O((B,U)=>{uh(c,B,l),bC(B),v&&v(B,U)}),k=O((B,U)=>{const q=Ju({timeout:h,style:b,easing:f},{mode:"enter"});B.style.webkitTransition=n.transitions.create("-webkit-transform",T({},q)),B.style.transition=n.transitions.create("transform",T({},q)),B.style.webkitTransform="none",B.style.transform="none",y&&y(B,U)}),j=O(g),$=O(m),F=O(B=>{const U=Ju({timeout:h,style:b,easing:f},{mode:"exit"});B.style.webkitTransition=n.transitions.create("-webkit-transform",U),B.style.transition=n.transitions.create("transform",U),uh(c,B,l),S&&S(B)}),z=O(B=>{B.style.webkitTransition="",B.style.transition="",x&&x(B)}),M=B=>{i&&i(E.current,B)},W=d.useCallback(()=>{E.current&&uh(c,E.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const B=Rc(()=>{E.current&&uh(c,E.current,l)}),U=da(E.current);return U.addEventListener("resize",B),()=>{B.clear(),U.removeEventListener("resize",B)}},[c,p,l]),d.useEffect(()=>{p||W()},[p,W]),R.jsx(_,T({nodeRef:E,onEnter:P,onEntered:j,onEntering:k,onExit:F,onExited:z,onExiting:$,addEndListener:M,appear:s,in:p,timeout:h},C,{children:(B,U)=>d.cloneElement(u,T({ref:w,style:T({visibility:B==="exited"&&!p?"hidden":void 0},b,u.props.style)},U))}))}),O4=$ve;function kve(e){return Ue("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const jve=["BackdropProps"],Ive=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],P4=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Ave=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ge(r)}`,n!=="temporary"&&`paperAnchorDocked${ge(r)}`]};return qe(a,kve,t)},Mve=ne(RC,{name:"MuiDrawer",slot:"Root",overridesResolver:P4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),HT=ne("div",{shouldForwardProp:Wr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:P4})({flex:"0 0 auto"}),Fve=ne(Yi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ge(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ge(r.anchor)}`]]}})(({theme:e,ownerState:t})=>T({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),R4={left:"right",right:"left",top:"down",bottom:"up"};function Nve(e){return["left","right"].indexOf(e)!==-1}function Lve({direction:e},t){return e==="rtl"&&Nve(t)?R4[t]:t}const Dve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),a=fo(),o=cl(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:g,open:y=!1,PaperProps:S={},SlideProps:x,TransitionComponent:m=O4,transitionDuration:b=i,variant:h="temporary"}=n,_=Pe(n.ModalProps,jve),C=Pe(n,Ive),E=d.useRef(!1);d.useEffect(()=>{E.current=!0},[]);const w=Lve({direction:o?"rtl":"ltr"},s),P=T({},n,{anchor:s,elevation:f,open:y,variant:h},C),k=Ave(P),j=R.jsx(Fve,T({elevation:h==="temporary"?f:0,square:!0},S,{className:ue(k.paper,S.className),ownerState:P,children:l}));if(h==="permanent")return R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:j}));const $=R.jsx(m,T({in:y,direction:R4[w],timeout:b,appear:E.current},x,{children:j}));return h==="persistent"?R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:$})):R.jsx(Mve,T({BackdropProps:T({},u,v,{transitionDuration:b}),className:ue(k.root,k.modal,c),open:y,ownerState:P,onClose:g,hideBackdrop:p,ref:r},C,_,{children:$}))}),Bve=Dve;function zve(e){return Ue("MuiFab",e)}const Vve=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),qT=Vve,Uve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Wve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${ge(a)}`,t==="inherit"?"colorInherit":t]},i=qe(o,zve,n);return T({},n,i)},Hve=ne(Ma,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Wr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ge(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return T({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${qT.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>T({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${qT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),qve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,v=Pe(n,Uve),g=T({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),y=Wve(g);return R.jsx(Hve,T({className:ue(y.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(y.focusVisible,c),ownerState:g,ref:r},v,{classes:y,children:a}))}),Kve=qve,Gve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Qve=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},zfe,t);return T({},t,a)},Xve=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Yve=ne(Ay,{name:"MuiFilledInput",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),T4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,S=Pe(s,Gve),x=T({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),m=Qve(s),b={root:{ownerState:x},input:{ownerState:x}},h=v??l?Rr(b,v??l):b,_=(n=(a=g.root)!=null?a:u.Root)!=null?n:Xve,C=(o=(i=g.input)!=null?i:u.Input)!=null?o:Yve;return R.jsx(My,T({slots:{root:_,input:C},componentsProps:h,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},S,{classes:m}))});T4.muiName="Input";const $4=T4;function Jve(e){return Ue("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Zve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ege=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return qe(a,Jve,t)},tge=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${ge(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),rge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:y="medium",variant:S="outlined"}=n,x=Pe(n,Zve),m=T({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:y,variant:S}),b=ege(m),[h,_]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{if(!Hh(F,["Input","Select"]))return;const z=Hh(F,["Select"])?F.props.input:F;z&&$fe(z.props)&&($=!0)}),$}),[C,E]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{Hh(F,["Input","Select"])&&(hg(F.props,!0)||hg(F.props.inputProps,!0))&&($=!0)}),$}),[w,O]=d.useState(!1);u&&w&&O(!1);const P=c!==void 0&&!u?c:w;let k;const j=d.useMemo(()=>({adornedStart:h,setAdornedStart:_,color:i,disabled:u,error:l,filled:C,focused:P,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{O(!0)},registerEffect:k,required:g,variant:S}),[h,i,u,l,C,P,f,p,k,g,y,S]);return R.jsx($y.Provider,{value:j,children:R.jsx(tge,T({as:s,ownerState:m,className:ue(b.root,o),ref:r},x,{children:a}))})}),nge=rge,age=Cle({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),Ny=age;function oge(e){return Ue("MuiFormControlLabel",e)}const ige=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pd=ige,sge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],lge=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return qe(i,oge,t)},uge=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pd.label}`]:t.label},t.root,t[`labelPlacement${ge(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pd.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${pd.label}`]:{[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),cge=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),dge=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=o,y=Pe(o,sge),S=po(),x=(n=l??u.props.disabled)!=null?n:S==null?void 0:S.disabled,m=v??u.props.required,b={disabled:x,required:m};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof o[O]<"u"&&(b[O]=o[O])});const h=Zi({props:o,muiFormControl:S,states:["error"]}),_=T({},o,{disabled:x,labelPlacement:p,required:m,error:h.error}),C=lge(_),E=(a=g.typography)!=null?a:s.typography;let w=f;return w!=null&&w.type!==_t&&!c&&(w=R.jsx(_t,T({component:"span"},E,{className:ue(C.label,E==null?void 0:E.className),children:w}))),R.jsxs(uge,T({className:ue(C.root,i),ownerState:_,ref:r},y,{children:[d.cloneElement(u,b),m?R.jsxs(Ny,{display:"block",children:[w,R.jsxs(cge,{ownerState:_,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):w]}))}),fge=dge;function pge(e){return Ue("MuiFormGroup",e)}We("MuiFormGroup",["root","row","error"]);const hge=["className","row"],vge=e=>{const{classes:t,row:r,error:n}=e;return qe({root:["root",r&&"row",n&&"error"]},pge,t)},gge=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),mge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Pe(n,hge),s=po(),u=Zi({props:n,muiFormControl:s,states:["error"]}),l=T({},n,{row:o,error:u.error}),c=vge(l);return R.jsx(gge,T({className:ue(c.root,a),ownerState:l,ref:r},i))}),yge=mge;function bge(e){return Ue("MuiFormHelperText",e)}const xge=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KT=xge;var GT;const wge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Sge=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${ge(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return qe(l,bge,t)},_ge=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ge(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KT.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KT.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Cge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Pe(n,wge),u=po(),l=Zi({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=T({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Sge(c);return R.jsx(_ge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:a===" "?GT||(GT=R.jsx("span",{className:"notranslate",children:"​"})):a}))}),IC=Cge;function Ege(e){return Ue("MuiFormLabel",e)}const Oge=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ld=Oge,Pge=["children","className","color","component","disabled","error","filled","focused","required"],Rge=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${ge(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return qe(u,Ege,t)},Tge=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ld.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),$ge=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),kge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Pe(n,Pge),u=po(),l=Zi({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=T({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Rge(c);return R.jsxs(Tge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:[a,l.required&&R.jsxs($ge,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),jge=kge,Ige=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cx(e){return`scale(${e}, ${e**2})`}const Age={entering:{opacity:1,transform:Cx(1)},entered:{opacity:1,transform:"none"}},s0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k4=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:y="auto",TransitionComponent:S=gC}=t,x=Pe(t,Ige),m=Ss(),b=d.useRef(),h=fo(),_=d.useRef(null),C=Jt(_,o.ref,r),E=z=>M=>{if(z){const W=_.current;M===void 0?z(W):z(W,M)}},w=E(c),O=E((z,M)=>{bC(z);const{duration:W,delay:B,easing:U}=Ju({style:g,timeout:y,easing:i},{mode:"enter"});let q;y==="auto"?(q=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=q):q=W,z.style.transition=[h.transitions.create("opacity",{duration:q,delay:B}),h.transitions.create("transform",{duration:s0?q:q*.666,delay:B,easing:U})].join(","),u&&u(z,M)}),P=E(l),k=E(v),j=E(z=>{const{duration:M,delay:W,easing:B}=Ju({style:g,timeout:y,easing:i},{mode:"exit"});let U;y==="auto"?(U=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=U):U=M,z.style.transition=[h.transitions.create("opacity",{duration:U,delay:W}),h.transitions.create("transform",{duration:s0?U:U*.666,delay:s0?W:W||U*.333,easing:B})].join(","),z.style.opacity=0,z.style.transform=Cx(.75),f&&f(z)}),$=E(p),F=z=>{y==="auto"&&m.start(b.current||0,z),n&&n(_.current,z)};return R.jsx(S,T({appear:a,in:s,nodeRef:_,onEnter:O,onEntered:P,onEntering:w,onExit:j,onExited:$,onExiting:k,addEndListener:F,timeout:y==="auto"?null:y},x,{children:(z,M)=>d.cloneElement(o,T({style:T({opacity:0,transform:Cx(.75),visibility:z==="exited"&&!s?"hidden":void 0},Age[z],g,o.props.style),ref:C},M))}))});k4.muiSupportAuto=!0;const yg=k4,Mge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Fge=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Nfe,t);return T({},t,a)},Nge=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Lge=ne(Ay,{name:"MuiInput",slot:"Input",overridesResolver:jy})({}),j4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:y={},type:S="text"}=s,x=Pe(s,Mge),m=Fge(s),h={root:{ownerState:{disableUnderline:u}}},_=g??c?Rr(g??c,h):h,C=(n=(a=y.root)!=null?a:l.Root)!=null?n:Nge,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:Lge;return R.jsx(My,T({slots:{root:C,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:S},x,{classes:m}))});j4.muiName="Input";const I4=j4;function Dge(e){return Ue("MuiInputAdornment",e)}const Bge=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),QT=Bge;var XT;const zge=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Vge=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Uge=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${ge(a)}`,i,n&&"hiddenLabel",o&&`size${ge(o)}`]};return qe(s,Dge,t)},Wge=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Vge})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${QT.positionStart}&:not(.${QT.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Hge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=Pe(n,zge),p=po()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=T({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),y=Uge(g);return R.jsx($y.Provider,{value:null,children:R.jsx(Wge,T({as:i,ownerState:g,className:ue(y.root,o),ref:r},f,{children:typeof a=="string"&&!u?R.jsx(_t,{color:"text.secondary",children:a}):R.jsxs(d.Fragment,{children:[l==="start"?XT||(XT=R.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})}),Xh=Hge;function qge(e){return Ue("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Kge=["disableAnimation","margin","shrink","variant","className"],Gge=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ge(n)}`,i],asterisk:[s&&"asterisk"]},l=qe(u,qge,t);return T({},t,l)},Qge=ne(jge,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ld.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Xge=d.forwardRef(function(t,r){const n=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Pe(n,Kge),u=po();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Zi({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=T({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Gge(f);return R.jsx(Qge,T({"data-shrink":l,ownerState:f,ref:r,className:ue(p.root,i)},s,{classes:p}))}),Yge=Xge;function Jge(e){return Ue("MuiLink",e)}const Zge=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),eme=Zge,A4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tme=e=>A4[e]||e,rme=({theme:e,ownerState:t})=>{const r=tme(t.color),n=Xu(e,`palette.${r}`,!1)||t.color,a=Xu(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},nme=rme,ame=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ome=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${ge(a)}`,r==="button"&&"button",n&&"focusVisible"]};return qe(o,Jge,t)},ime=ne(_t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ge(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:nme({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${eme.focusVisible}`]:{outline:"auto"}})),sme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,v=Pe(n,ame),{isFocusVisibleRef:g,onBlur:y,onFocus:S,ref:x}=Ey(),[m,b]=d.useState(!1),h=Jt(r,x),_=O=>{y(O),g.current===!1&&b(!1),s&&s(O)},C=O=>{S(O),g.current===!0&&b(!0),u&&u(O)},E=T({},n,{color:o,component:i,focusVisible:m,underline:c,variant:f}),w=ome(E);return R.jsx(ime,T({color:o,className:ue(w.root,a),classes:l,component:i,onBlur:_,onFocus:C,ref:h,ownerState:E,variant:f,sx:[...Object.keys(A4).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},v))}),lme=sme,ume=d.createContext({}),jf=ume;function cme(e){return Ue("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const dme=["children","className","component","dense","disablePadding","subheader"],fme=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return qe({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},cme,t)},pme=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),hme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Pe(n,dme),f=d.useMemo(()=>({dense:s}),[s]),p=T({},n,{component:i,dense:s,disablePadding:u}),v=fme(p);return R.jsx(jf.Provider,{value:f,children:R.jsxs(pme,T({as:i,className:ue(v.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})}),vme=hme;function gme(e){return Ue("MuiListItemIcon",e)}const mme=We("MuiListItemIcon",["root","alignItemsFlexStart"]),YT=mme,yme=["className"],bme=e=>{const{alignItems:t,classes:r}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},gme,r)},xme=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>T({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),wme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Pe(n,yme),i=d.useContext(jf),s=T({},n,{alignItems:i.alignItems}),u=bme(s);return R.jsx(xme,T({className:ue(u.root,a),ownerState:s,ref:r},o))}),Cs=wme;function Sme(e){return Ue("MuiListItemText",e)}const _me=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bg=_me,Cme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Eme=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return qe({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Sme,t)},Ome=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bg.primary}`]:t.primary},{[`& .${bg.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Pme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=Pe(n,Cme),{dense:v}=d.useContext(jf);let g=u??a,y=c;const S=T({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!y,dense:v}),x=Eme(S);return g!=null&&g.type!==_t&&!i&&(g=R.jsx(_t,T({variant:v?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),y!=null&&y.type!==_t&&!i&&(y=R.jsx(_t,T({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),R.jsxs(Ome,T({className:ue(x.root,o),ownerState:S,ref:r},p,{children:[g,y]}))}),Zl=Pme,Rme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JT(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function M4(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Yc(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!M4(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const Tme=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=Pe(t,Rme),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{a&&v.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:h})=>{const _=!v.current.style.width;if(b.clientHeight{const h=v.current,_=b.key,C=wr(h).activeElement;if(_==="ArrowDown")b.preventDefault(),Yc(h,C,l,u,l0);else if(_==="ArrowUp")b.preventDefault(),Yc(h,C,l,u,JT);else if(_==="Home")b.preventDefault(),Yc(h,null,l,u,l0);else if(_==="End")b.preventDefault(),Yc(h,null,l,u,JT);else if(_.length===1){const E=g.current,w=_.toLowerCase(),O=performance.now();E.keys.length>0&&(O-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&w!==E.keys[0]&&(E.repeating=!1)),E.lastTime=O,E.keys.push(w);const P=C&&!E.repeating&&M4(C,E);E.previousKeyMatched&&(P||Yc(h,C,!1,u,l0,E))?b.preventDefault():E.previousKeyMatched=!1}c&&c(b)},S=Jt(v,r);let x=-1;d.Children.forEach(i,(b,h)=>{if(!d.isValidElement(b)){x===h&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=h),x===h&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(b,h)=>{if(h===x){const _={};return o&&(_.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),d.cloneElement(b,_)}return b});return R.jsx(vme,T({role:"menu",ref:S,className:s,onKeyDown:y,tabIndex:a?0:-1},p,{children:m}))}),F4=Tme;function $me(e){return Ue("MuiPopover",e)}We("MuiPopover",["root","paper"]);const kme=["onEntering"],jme=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ime=["slotProps"];function ZT(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function e$(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function t$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function u0(e){return typeof e=="function"?e():e}const Ame=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},$me,t)},Mme=ne(RC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4=ne(Yi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Fme=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:y=8,marginThreshold:S=16,open:x,PaperProps:m={},slots:b,slotProps:h,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:C=yg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:O=!1}=i,P=Pe(i.TransitionProps,kme),k=Pe(i,jme),j=(n=h==null?void 0:h.paper)!=null?n:m,$=d.useRef(),F=Jt($,j.ref),z=T({},i,{anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:_,TransitionComponent:C,transitionDuration:E,TransitionProps:P}),M=Ame(z),W=d.useCallback(()=>{if(f==="anchorPosition")return c;const Ne=u0(u),He=(Ne&&Ne.nodeType===1?Ne:wr($.current).body).getBoundingClientRect();return{top:He.top+ZT(He,l.vertical),left:He.left+e$(He,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),B=d.useCallback(Ne=>({vertical:ZT(Ne,_.vertical),horizontal:e$(Ne,_.horizontal)}),[_.horizontal,_.vertical]),U=d.useCallback(Ne=>{const Ae={width:Ne.offsetWidth,height:Ne.offsetHeight},He=B(Ae);if(f==="none")return{top:null,left:null,transformOrigin:t$(He)};const ht=W();let ut=ht.top-He.vertical,V=ht.left-He.horizontal;const K=ut+Ae.height,te=V+Ae.width,se=da(u0(u)),de=se.innerHeight-S,fe=se.innerWidth-S;if(S!==null&&utde){const Oe=K-de;ut-=Oe,He.vertical+=Oe}if(S!==null&&Vfe){const Oe=te-fe;V-=Oe,He.horizontal+=Oe}return{top:`${Math.round(ut)}px`,left:`${Math.round(V)}px`,transformOrigin:t$(He)}},[u,f,W,B,S]),[q,ie]=d.useState(x),oe=d.useCallback(()=>{const Ne=$.current;if(!Ne)return;const Ae=U(Ne);Ae.top!==null&&(Ne.style.top=Ae.top),Ae.left!==null&&(Ne.style.left=Ae.left),Ne.style.transformOrigin=Ae.transformOrigin,ie(!0)},[U]);d.useEffect(()=>(O&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,O,oe]);const Ee=(Ne,Ae)=>{w&&w(Ne,Ae),oe()},pe=()=>{ie(!1)};d.useEffect(()=>{x&&oe()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),d.useEffect(()=>{if(!x)return;const Ne=Rc(()=>{oe()}),Ae=da(u);return Ae.addEventListener("resize",Ne),()=>{Ne.clear(),Ae.removeEventListener("resize",Ne)}},[u,x,oe]);let Te=E;E==="auto"&&!C.muiSupportAuto&&(Te=void 0);const ye=g||(u?wr(u0(u)).body:void 0),be=(a=b==null?void 0:b.root)!=null?a:Mme,we=(o=b==null?void 0:b.paper)!=null?o:N4,ve=fa({elementType:we,externalSlotProps:T({},j,{style:q?j.style:T({},j.style,{opacity:0})}),additionalProps:{elevation:y,ref:F},ownerState:z,className:ue(M.paper,j==null?void 0:j.className)}),De=fa({elementType:be,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ye,open:x},ownerState:z,className:ue(M.root,v)}),{slotProps:Me}=De,Qe=Pe(De,Ime);return R.jsx(be,T({},Qe,!Rf(be)&&{slotProps:Me,disableScrollLock:O},{children:R.jsx(C,T({appear:!0,in:x,onEntering:Ee,onExited:pe,timeout:Te},P,{children:R.jsx(we,T({},ve,{children:p}))}))}))}),L4=Fme;function Nme(e){return Ue("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Lme=["onEntering"],Dme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Bme={vertical:"top",horizontal:"right"},zme={vertical:"top",horizontal:"left"},Vme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Nme,t)},Ume=ne(L4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wme=ne(N4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Hme=ne(F4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qme=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:x="selectedMenu",slots:m={},slotProps:b={}}=o,h=Pe(o.TransitionProps,Lme),_=Pe(o,Dme),C=cl(),E=T({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:v,transitionDuration:y,TransitionProps:h,variant:x}),w=Vme(E),O=i&&!l&&p,P=d.useRef(null),k=(B,U)=>{P.current&&P.current.adjustStyleForScrollbar(B,{direction:C?"rtl":"ltr"}),S&&S(B,U)},j=B=>{B.key==="Tab"&&(B.preventDefault(),f&&f(B,"tabKeyDown"))};let $=-1;d.Children.map(s,(B,U)=>{d.isValidElement(B)&&(B.props.disabled||(x==="selectedMenu"&&B.props.selected||$===-1)&&($=U))});const F=(n=m.paper)!=null?n:Wme,z=(a=b.paper)!=null?a:v,M=fa({elementType:m.root,externalSlotProps:b.root,ownerState:E,className:[w.root,u]}),W=fa({elementType:F,externalSlotProps:z,ownerState:E,className:w.paper});return R.jsx(Ume,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Bme:zme,slots:{paper:F,root:m.root},slotProps:{root:M,paper:W},open:p,ref:r,transitionDuration:y,TransitionProps:T({onEntering:k},h),ownerState:E},_,{classes:g,children:R.jsx(Hme,T({onKeyDown:j,actions:P,autoFocus:i&&($===-1||l),autoFocusItem:O,variant:x},c,{className:ue(w.list,c.className),children:s}))}))}),Ly=qme;function Kme(e){return Ue("MuiMenuItem",e)}const Gme=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jc=Gme,Qme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Xme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Yme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=qe({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Kme,i);return T({},i,u)},Jme=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Xme})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Jc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Jc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WT.inset}`]:{marginLeft:52},[`& .${bg.root}`]:{marginTop:0,marginBottom:0},[`& .${bg.inset}`]:{paddingLeft:36},[`& .${YT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${YT.root} svg`]:{fontSize:"1.25rem"}}))),Zme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,v=Pe(n,Qme),g=d.useContext(jf),y=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),S=d.useRef(null);qn(()=>{a&&S.current&&S.current.focus()},[a]);const x=T({},n,{dense:y.dense,divider:s,disableGutters:u}),m=Yme(n),b=Jt(S,r);let h;return n.disabled||(h=f!==void 0?f:-1),R.jsx(jf.Provider,{value:y,children:R.jsx(Jme,T({ref:b,role:c,tabIndex:h,component:o,focusVisibleClassName:ue(m.focusVisible,l),className:ue(m.root,p)},v,{ownerState:x,classes:m}))})}),Ta=Zme;function eye(e){return Ue("MuiNativeSelect",e)}const tye=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AC=tye,rye=["className","disabled","error","IconComponent","inputRef","variant"],nye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"]};return qe(s,eye,t)},D4=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${AC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),aye=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${AC.multiple}`]:t.multiple}]}})(D4),B4=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),oye=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),iye=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Pe(t,rye),c=T({},t,{disabled:a,variant:u,error:o}),f=nye(c);return R.jsxs(d.Fragment,{children:[R.jsx(aye,T({ownerState:c,className:ue(f.select,n),disabled:a,ref:s||r},l)),t.multiple?null:R.jsx(oye,{as:i,ownerState:c,className:f.icon})]})}),sye=iye;var r$;const lye=["children","classes","className","label","notched"],uye=ne("fieldset",{shouldForwardProp:Wr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cye=ne("legend",{shouldForwardProp:Wr})(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function dye(e){const{className:t,label:r,notched:n}=e,a=Pe(e,lye),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return R.jsx(uye,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:R.jsx(cye,{ownerState:i,children:o?R.jsx("span",{children:r}):r$||(r$=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const fye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pye=e=>{const{classes:t}=e,n=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Dfe,t);return T({},t,n)},hye=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ky})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yo.focused} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yo.error} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yo.disabled} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),vye=ne(dye,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),gye=ne(Ay,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),z4=d.forwardRef(function(t,r){var n,a,o,i,s;const u=Ke({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:y={},type:S="text"}=u,x=Pe(u,fye),m=pye(u),b=po(),h=Zi({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:b,fullWidth:c,hiddenLabel:h.hiddenLabel,multiline:v,size:h.size,type:S}),C=(n=(a=y.root)!=null?a:l.Root)!=null?n:hye,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:gye;return R.jsx(My,T({slots:{root:C,input:E},renderSuffix:w=>R.jsx(vye,{ownerState:_,className:m.notchedOutline,label:p!=null&&p!==""&&h.required?s||(s=R.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:r,type:S},x,{classes:T({},m,{notchedOutline:null})}))});z4.muiName="Input";const V4=z4;function mye(e){return Ue("MuiPagination",e)}We("MuiPagination",["root","ul","outlined","text"]);const yye=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function bye(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=Pe(e,yye),[g,y]=Yu({controlled:l,default:a,name:r,state:"page"}),S=(O,P)=>{l||y(P),u&&u(O,P)},x=(O,P)=>{const k=P-O+1;return Array.from({length:k},(j,$)=>O+$)},m=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),h=Math.max(Math.min(g-p,n-t-p*2-1),t+2),_=Math.min(Math.max(g+p,t+p*2+2),b.length>0?b[0]-2:n-1),C=[...c?["first"]:[],...s?[]:["previous"],...m,...h>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...f?["last"]:[]],E=O=>{switch(O){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},w=C.map(O=>typeof O=="number"?{onClick:P=>{S(P,O)},type:"page",page:O,selected:O===g,disabled:o,"aria-current":O===g?"true":void 0}:{onClick:P=>{S(P,E(O))},type:O,page:E(O),selected:!1,disabled:o||O.indexOf("ellipsis")===-1&&(O==="next"||O==="last"?g>=n:g<=1)});return T({items:w},v)}function xye(e){return Ue("MuiPaginationItem",e)}const wye=We("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Yn=wye,Ex=An(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ox=An(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),n$=An(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),a$=An(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Sye=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],U4=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.variant==="text"&&t[`text${ge(r.color)}`],r.variant==="outlined"&&t[`outlined${ge(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},_ye=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${ge(o)}`,u,i,r!=="standard"&&`color${ge(r)}`,r!=="standard"&&`${u}${ge(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return qe(l,xye,t)},Cye=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Eye=ne(Ma,{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Yn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>T({},t.variant==="text"&&{[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Yn.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Yn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Oye=ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>T({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Pye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:v={},type:g="page",variant:y="text"}=n,S=Pe(n,Sye),x=T({},n,{color:o,disabled:u,selected:c,shape:f,size:p,type:g,variant:y}),m=cl(),b=_ye(x),_=(m?{previous:v.next||s.next||a$,next:v.previous||s.previous||n$,last:v.first||s.first||Ex,first:v.last||s.last||Ox}:{previous:v.previous||s.previous||n$,next:v.next||s.next||a$,first:v.first||s.first||Ex,last:v.last||s.last||Ox})[g];return g==="start-ellipsis"||g==="end-ellipsis"?R.jsx(Cye,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):R.jsxs(Eye,T({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},S,{children:[g==="page"&&l,_?R.jsx(Oye,{as:_,ownerState:x,className:b.icon}):null]}))}),Rye=Pye,Tye=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],$ye=e=>{const{classes:t,variant:r}=e;return qe({root:["root",r],ul:["ul"]},mye,t)},kye=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),jye=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Iye(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Aye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Iye,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=w=>R.jsx(Rye,T({},w)),shape:g="circular",showFirstButton:y=!1,showLastButton:S=!1,siblingCount:x=1,size:m="medium",variant:b="text"}=n,h=Pe(n,Tye),{items:_}=bye(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:g,showFirstButton:y,showLastButton:S,siblingCount:x,size:m,variant:b}),E=$ye(C);return R.jsx(kye,T({"aria-label":"pagination navigation",className:ue(E.root,o),ownerState:C,ref:r},h,{children:R.jsx(jye,{className:E.ul,ownerState:C,children:_.map((w,O)=>R.jsx("li",{children:v(T({},w,{color:i,"aria-label":c(w.type,w.page,w.selected),shape:g,size:m,variant:b}))},O))})}))}),Mye=Aye;function Fye(e){return Ue("MuiSelect",e)}const Nye=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zc=Nye;var o$;const Lye=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Dye=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Zc.select}`]:t.select},{[`&.${Zc.select}`]:t[r.variant]},{[`&.${Zc.error}`]:t.error},{[`&.${Zc.multiple}`]:t.multiple}]}})(D4,{[`&.${Zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Bye=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),zye=ne("input",{shouldForwardProp:e=>n4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function i$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Vye(e){return e==null||typeof e=="string"&&!e.trim()}const Uye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return qe(s,Fye,t)},Wye=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:S,labelId:x,MenuProps:m={},multiple:b,name:h,onBlur:_,onChange:C,onClose:E,onFocus:w,onOpen:O,open:P,readOnly:k,renderValue:j,SelectDisplayProps:$={},tabIndex:F,value:z,variant:M="standard"}=t,W=Pe(t,Lye),[B,U]=Yu({controlled:z,default:f,name:"Select"}),[q,ie]=Yu({controlled:P,default:c,name:"Select"}),oe=d.useRef(null),Ee=d.useRef(null),[pe,Te]=d.useState(null),{current:ye}=d.useRef(P!=null),[be,we]=d.useState(),ve=Jt(r,S),De=d.useCallback(je=>{Ee.current=je,je&&Te(je)},[]),Me=pe==null?void 0:pe.parentNode;d.useImperativeHandle(ve,()=>({focus:()=>{Ee.current.focus()},node:oe.current,value:B}),[B]),d.useEffect(()=>{c&&q&&pe&&!ye&&(we(s?null:Me.clientWidth),Ee.current.focus())},[pe,s]),d.useEffect(()=>{i&&Ee.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const je=wr(Ee.current).getElementById(x);if(je){const Je=()=>{getSelection().isCollapsed&&Ee.current.focus()};return je.addEventListener("click",Je),()=>{je.removeEventListener("click",Je)}}},[x]);const Qe=(je,Je)=>{je?O&&O(Je):E&&E(Je),ye||(we(s?null:Me.clientWidth),ie(je))},Ne=je=>{je.button===0&&(je.preventDefault(),Ee.current.focus(),Qe(!0,je))},Ae=je=>{Qe(!1,je)},He=d.Children.toArray(u),ht=je=>{const Je=He.find(_e=>_e.props.value===je.target.value);Je!==void 0&&(U(Je.props.value),C&&C(je,Je))},ut=je=>Je=>{let _e;if(Je.currentTarget.hasAttribute("tabindex")){if(b){_e=Array.isArray(B)?B.slice():[];const Fe=B.indexOf(je.props.value);Fe===-1?_e.push(je.props.value):_e.splice(Fe,1)}else _e=je.props.value;if(je.props.onClick&&je.props.onClick(Je),B!==_e&&(U(_e),C)){const Fe=Je.nativeEvent||Je,Ge=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ge,"target",{writable:!0,value:{value:_e,name:h}}),C(Ge,je)}b||Qe(!1,Je)}},V=je=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),Qe(!0,je))},K=pe!==null&&q,te=je=>{!K&&_&&(Object.defineProperty(je,"target",{writable:!0,value:{value:B,name:h}}),_(je))};delete W["aria-invalid"];let se,de;const fe=[];let Oe=!1;(hg({value:B})||v)&&(j?se=j(B):Oe=!0);const ae=He.map(je=>{if(!d.isValidElement(je))return null;let Je;if(b){if(!Array.isArray(B))throw new Error(No(2));Je=B.some(_e=>i$(_e,je.props.value)),Je&&Oe&&fe.push(je.props.children)}else Je=i$(B,je.props.value),Je&&Oe&&(de=je.props.children);return d.cloneElement(je,{"aria-selected":Je?"true":"false",onClick:ut(je),onKeyUp:_e=>{_e.key===" "&&_e.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(_e)},role:"option",selected:Je,value:void 0,"data-value":je.props.value})});Oe&&(b?fe.length===0?se=null:se=fe.reduce((je,Je,_e)=>(je.push(Je),_e{const{classes:t}=e;return t},MC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wr(e)&&e!=="variant",slot:"Root"},Qye=ne(I4,MC)(""),Xye=ne(V4,MC)(""),Yye=ne($4,MC)(""),W4=d.forwardRef(function(t,r){const n=Ke({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Ufe,id:f,input:p,inputProps:v,label:g,labelId:y,MenuProps:S,multiple:x=!1,native:m=!1,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=n,O=Pe(n,qye),P=m?sye:Hye,k=po(),j=Zi({props:n,muiFormControl:k,states:["variant","error"]}),$=j.variant||w,F=T({},n,{variant:$,classes:i}),z=Gye(F),M=Pe(z,Kye),W=p||{standard:R.jsx(Qye,{ownerState:F}),outlined:R.jsx(Xye,{label:g,ownerState:F}),filled:R.jsx(Yye,{ownerState:F})}[$],B=Jt(r,W.ref);return R.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:P,inputProps:T({children:o,error:j.error,IconComponent:c,variant:$,type:void 0,multiple:x},m?{id:f}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:T({id:f},E)},v,{classes:v?Rr(M,v.classes):M},p?p.props.inputProps:{})},(x&&m||l)&&$==="outlined"?{notched:!0}:{},{ref:B,className:ue(W.props.className,s,z.root)},!p&&{variant:$},O))})});W4.muiName="Select";const H4=W4;function Jye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Ss();d.useEffect(()=>{if(!a)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=fn((x,m)=>{n==null||n(x,m)}),u=fn(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});d.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,f=d.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>m=>{const b=x.onBlur;b==null||b(m),f()},v=x=>m=>{const b=x.onFocus;b==null||b(m),c()},g=x=>m=>{const b=x.onMouseEnter;b==null||b(m),c()},y=x=>m=>{const b=x.onMouseLeave;b==null||b(m),f()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,a,f,c]),{getRootProps:(x={})=>{const m=T({},ug(e),ug(x));return T({role:"presentation"},x,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:g(m),onMouseLeave:y(m)})},onClickAway:l}}function Zye(e){return Ue("MuiSnackbarContent",e)}We("MuiSnackbarContent",["root","message","action"]);const ebe=["action","className","message","role"],tbe=e=>{const{classes:t}=e;return qe({root:["root"],action:["action"],message:["message"]},Zye,t)},rbe=ne(Yi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Rle(e.palette.background.default,t);return T({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),nbe=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),abe=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),obe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Pe(n,ebe),l=n,c=tbe(l);return R.jsxs(rbe,T({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[R.jsx(nbe,{className:c.message,ownerState:l,children:i}),a?R.jsx(abe,{className:c.action,ownerState:l,children:a}):null]}))}),ibe=obe;function sbe(e){return Ue("MuiSnackbar",e)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const lbe=["onEnter","onExited"],ube=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],cbe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ge(r.vertical)}${ge(r.horizontal)}`]};return qe(n,sbe,t)},s$=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ge(r.anchorOrigin.vertical)}${ge(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return T({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:T({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),dbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbar"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:g=!1,message:y,open:S,TransitionComponent:x=yg,transitionDuration:m=o,TransitionProps:{onEnter:b,onExited:h}={}}=n,_=Pe(n.TransitionProps,lbe),C=Pe(n,ube),E=T({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),w=cbe(E),{getRootProps:O,onClickAway:P}=Jye(T({},E)),[k,j]=d.useState(!0),$=fa({elementType:s$,getSlotProps:O,externalForwardedProps:C,ownerState:E,additionalProps:{ref:r},className:[w.root,f]}),F=M=>{j(!0),h&&h(M)},z=(M,W)=>{j(!1),b&&b(M,W)};return!S&&k?null:R.jsx(ghe,T({onClickAway:P},p,{children:R.jsx(s$,T({},$,{children:R.jsx(x,T({appear:!0,in:S,timeout:m,direction:s==="top"?"down":"up",onEnter:z,onExited:F},_,{children:c||R.jsx(ibe,T({message:y,action:i},v))}))}))}))}),fbe=dbe;function pbe(e){return Ue("MuiTooltip",e)}const hbe=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_i=hbe,vbe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function gbe(e){return Math.round(e*1e5)/1e5}const mbe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${ge(o.split("-")[0])}`],arrow:["arrow"]};return qe(i,pbe,t)},ybe=ne(m4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_i.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_i.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_i.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${_i.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),bbe=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ge(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${gbe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_i.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_i.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_i.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_i.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),xbe=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ch=!1;const l$=new hp;let ed={x:0,y:0};function dh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const wbe=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_;const C=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:w,components:O={},componentsProps:P={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:$=!1,disableInteractive:F=!1,disableTouchListener:z=!1,enterDelay:M=100,enterNextDelay:W=0,enterTouchDelay:B=700,followCursor:U=!1,id:q,leaveDelay:ie=0,leaveTouchDelay:oe=1500,onClose:Ee,onOpen:pe,open:Te,placement:ye="bottom",PopperComponent:be,PopperProps:we={},slotProps:ve={},slots:De={},title:Me,TransitionComponent:Qe=yg,TransitionProps:Ne}=C,Ae=Pe(C,vbe),He=d.isValidElement(w)?w:R.jsx("span",{children:w}),ht=fo(),ut=cl(),[V,K]=d.useState(),[te,se]=d.useState(null),de=d.useRef(!1),fe=F||U,Oe=Ss(),ae=Ss(),Z=Ss(),G=Ss(),[le,he]=Yu({controlled:Te,default:!1,name:"Tooltip",state:"open"});let Re=le;const Be=el(q),Ye=d.useRef(),je=fn(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),G.clear()});d.useEffect(()=>je,[je]);const Je=Y=>{l$.clear(),ch=!0,he(!0),pe&&!Re&&pe(Y)},_e=fn(Y=>{l$.start(800+ie,()=>{ch=!1}),he(!1),Ee&&Re&&Ee(Y),Oe.start(ht.transitions.duration.shortest,()=>{de.current=!1})}),Fe=Y=>{de.current&&Y.type!=="touchstart"||(V&&V.removeAttribute("title"),ae.clear(),Z.clear(),M||ch&&W?ae.start(ch?W:M,()=>{Je(Y)}):Je(Y))},Ge=Y=>{ae.clear(),Z.start(ie,()=>{_e(Y)})},{isFocusVisibleRef:nt,onBlur:mt,onFocus:Ot,ref:kt}=Ey(),[,Pt]=d.useState(!1),at=Y=>{mt(Y),nt.current===!1&&(Pt(!1),Ge(Y))},It=Y=>{V||K(Y.currentTarget),Ot(Y),nt.current===!0&&(Pt(!0),Fe(Y))},nr=Y=>{de.current=!0;const Q=He.props;Q.onTouchStart&&Q.onTouchStart(Y)},mn=Y=>{nr(Y),Z.clear(),Oe.clear(),je(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(B,()=>{document.body.style.WebkitUserSelect=Ye.current,Fe(Y)})},qr=Y=>{He.props.onTouchEnd&&He.props.onTouchEnd(Y),je(),Z.start(oe,()=>{_e(Y)})};d.useEffect(()=>{if(!Re)return;function Y(Q){(Q.key==="Escape"||Q.key==="Esc")&&_e(Q)}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[_e,Re]);const Nr=Jt(He.ref,kt,K,r);!Me&&Me!==0&&(Re=!1);const Tr=d.useRef(),Mn=Y=>{const Q=He.props;Q.onMouseMove&&Q.onMouseMove(Y),ed={x:Y.clientX,y:Y.clientY},Tr.current&&Tr.current.update()},Kr={},Ko=typeof Me=="string";k?(Kr.title=!Re&&Ko&&!$?Me:null,Kr["aria-describedby"]=Re?Be:null):(Kr["aria-label"]=Ko?Me:null,Kr["aria-labelledby"]=Re&&!Ko?Be:null);const $r=T({},Kr,Ae,He.props,{className:ue(Ae.className,He.props.className),onTouchStart:nr,ref:Nr},U?{onMouseMove:Mn}:{}),ho={};z||($r.onTouchStart=mn,$r.onTouchEnd=qr),$||($r.onMouseOver=dh(Fe,$r.onMouseOver),$r.onMouseLeave=dh(Ge,$r.onMouseLeave),fe||(ho.onMouseOver=Fe,ho.onMouseLeave=Ge)),j||($r.onFocus=dh(It,$r.onFocus),$r.onBlur=dh(at,$r.onBlur),fe||(ho.onFocus=It,ho.onBlur=at));const X=d.useMemo(()=>{var Y;let Q=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Y=we.popperOptions)!=null&&Y.modifiers&&(Q=Q.concat(we.popperOptions.modifiers)),T({},we.popperOptions,{modifiers:Q})},[te,we]),ee=T({},C,{isRtl:ut,arrow:E,disableInteractive:fe,placement:ye,PopperComponentProp:be,touch:de.current}),ce=mbe(ee),Ce=(n=(a=De.popper)!=null?a:O.Popper)!=null?n:ybe,N=(o=(i=(s=De.transition)!=null?s:O.Transition)!=null?i:Qe)!=null?o:yg,D=(u=(l=De.tooltip)!=null?l:O.Tooltip)!=null?u:bbe,I=(c=(f=De.arrow)!=null?f:O.Arrow)!=null?c:xbe,A=Jl(Ce,T({},we,(p=ve.popper)!=null?p:P.popper,{className:ue(ce.popper,we==null?void 0:we.className,(v=(g=ve.popper)!=null?g:P.popper)==null?void 0:v.className)}),ee),L=Jl(N,T({},Ne,(y=ve.transition)!=null?y:P.transition),ee),H=Jl(D,T({},(S=ve.tooltip)!=null?S:P.tooltip,{className:ue(ce.tooltip,(x=(m=ve.tooltip)!=null?m:P.tooltip)==null?void 0:x.className)}),ee),re=Jl(I,T({},(b=ve.arrow)!=null?b:P.arrow,{className:ue(ce.arrow,(h=(_=ve.arrow)!=null?_:P.arrow)==null?void 0:h.className)}),ee);return R.jsxs(d.Fragment,{children:[d.cloneElement(He,$r),R.jsx(Ce,T({as:be??m4,placement:ye,anchorEl:U?{getBoundingClientRect:()=>({top:ed.y,left:ed.x,right:ed.x,bottom:ed.y,width:0,height:0})}:V,popperRef:Tr,open:V?Re:!1,id:Be,transition:!0},ho,A,{popperOptions:X,children:({TransitionProps:Y})=>R.jsx(N,T({timeout:ht.transitions.duration.shorter},Y,L,{children:R.jsxs(D,T({},H,{children:[Me,E?R.jsx(I,T({},re,{ref:se})):null]}))}))}))]})}),kn=wbe;function Sbe(e){return Ue("MuiSwitch",e)}const _be=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),on=_be,Cbe=["className","color","edge","size","sx"],Ebe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,s={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qe(s,Sbe,t);return T({},t,u)},Obe=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),Pbe=ne(S4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fC(e.palette[t].main,.62):dC(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Rbe=ne("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Tbe=ne("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),$be=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:s="medium",sx:u}=n,l=Pe(n,Cbe),c=T({},n,{color:o,edge:i,size:s}),f=Ebe(c),p=R.jsx(Tbe,{className:f.thumb,ownerState:c});return R.jsxs(Obe,{className:ue(f.root,a),sx:u,ownerState:c,children:[R.jsx(Pbe,T({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:c},l,{classes:T({},f,{root:f.switchBase})})),R.jsx(Rbe,{className:f.track,ownerState:c})]})}),kbe=$be;function jbe(e){return Ue("MuiTab",e)}const Ibe=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Zo=Ibe,Abe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Mbe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:s,disabled:u}=e,l={root:["root",o&&i&&"labelIcon",`textColor${ge(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return qe(l,jbe,t)},Fbe=ne(Ma,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ge(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Zo.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Zo.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Zo.selected}`]:{opacity:1},[`&.${Zo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Nbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:y,selectionFollowsFocus:S,textColor:x="inherit",value:m,wrapped:b=!1}=n,h=Pe(n,Abe),_=T({},n,{disabled:o,disableFocusRipple:i,selected:y,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=Mbe(_),E=u&&f&&d.isValidElement(u)?d.cloneElement(u,{className:ue(C.iconWrapper,u.props.className)}):u,w=P=>{!y&&p&&p(P,m),v&&v(P)},O=P=>{S&&!y&&p&&p(P,m),g&&g(P)};return R.jsxs(Fbe,T({focusRipple:!i,className:ue(C.root,a),ref:r,role:"tab","aria-selected":y,disabled:o,onClick:w,onFocus:O,ownerState:_,tabIndex:y?0:-1},h,{children:[l==="top"||l==="start"?R.jsxs(d.Fragment,{children:[E,f]}):R.jsxs(d.Fragment,{children:[f,E]}),c]}))}),Lbe=Nbe,Dbe=d.createContext(),q4=Dbe;function Bbe(e){return Ue("MuiTable",e)}We("MuiTable",["root","stickyHeader"]);const zbe=["className","component","padding","size","stickyHeader"],Vbe=e=>{const{classes:t,stickyHeader:r}=e;return qe({root:["root",r&&"stickyHeader"]},Bbe,t)},Ube=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),u$="table",Wbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTable"}),{className:a,component:o=u$,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Pe(n,zbe),c=T({},n,{component:o,padding:i,size:s,stickyHeader:u}),f=Vbe(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return R.jsx(q4.Provider,{value:p,children:R.jsx(Ube,T({as:o,role:o===u$?null:"table",ref:r,className:ue(f.root,a),ownerState:c},l))})}),K4=Wbe,Hbe=d.createContext(),Dy=Hbe;function qbe(e){return Ue("MuiTableBody",e)}We("MuiTableBody",["root"]);const Kbe=["className","component"],Gbe=e=>{const{classes:t}=e;return qe({root:["root"]},qbe,t)},Qbe=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Xbe={variant:"body"},c$="tbody",Ybe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableBody"}),{className:a,component:o=c$}=n,i=Pe(n,Kbe),s=T({},n,{component:o}),u=Gbe(s);return R.jsx(Dy.Provider,{value:Xbe,children:R.jsx(Qbe,T({className:ue(u.root,a),as:o,ref:r,role:o===c$?null:"rowgroup",ownerState:s},i))})}),G4=Ybe;function Jbe(e){return Ue("MuiTableCell",e)}const Zbe=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),e0e=Zbe,t0e=["align","className","component","padding","scope","size","sortDirection","variant"],r0e=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,a!=="normal"&&`padding${ge(a)}`,`size${ge(o)}`]};return qe(s,Jbe,t)},n0e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.padding!=="normal"&&t[`padding${ge(r.padding)}`],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?fC(gt(e.palette.divider,1),.88):dC(gt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${e0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),a0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=Pe(n,t0e),v=d.useContext(q4),g=d.useContext(Dy),y=g&&g.variant==="head";let S;i?S=i:S=y?"th":"td";let x=u;S==="td"?x=void 0:!x&&y&&(x="col");const m=f||g&&g.variant,b=T({},n,{align:a,component:S,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),h=r0e(b);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),R.jsx(n0e,T({as:S,ref:r,className:ue(h.root,o),"aria-sort":_,scope:x,ownerState:b},p))}),en=a0e;function o0e(e){return Ue("MuiTableHead",e)}We("MuiTableHead",["root"]);const i0e=["className","component"],s0e=e=>{const{classes:t}=e;return qe({root:["root"]},o0e,t)},l0e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),u0e={variant:"head"},d$="thead",c0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableHead"}),{className:a,component:o=d$}=n,i=Pe(n,i0e),s=T({},n,{component:o}),u=s0e(s);return R.jsx(Dy.Provider,{value:u0e,children:R.jsx(l0e,T({as:o,className:ue(u.root,a),ref:r,role:o===d$?null:"rowgroup",ownerState:s},i))})}),Q4=c0e;function d0e(e){return Ue("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const f0e=["className","component","disableGutters","variant"],p0e=e=>{const{classes:t,disableGutters:r,variant:n}=e;return qe({root:["root",!r&&"gutters",n]},d0e,t)},h0e=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),v0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Pe(n,f0e),l=T({},n,{component:o,disableGutters:i,variant:s}),c=p0e(l);return R.jsx(h0e,T({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),jc=v0e,X4=An(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Y4=An(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),g0e=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],m0e=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:S,page:x,rowsPerPage:m,showFirstButton:b,showLastButton:h,slots:_={},slotProps:C={}}=t,E=Pe(t,g0e),w=cl(),O=ve=>{S(ve,0)},P=ve=>{S(ve,x-1)},k=ve=>{S(ve,x+1)},j=ve=>{S(ve,Math.max(0,Math.ceil(p/m)-1))},$=(n=_.firstButton)!=null?n:Pr,F=(a=_.lastButton)!=null?a:Pr,z=(o=_.nextButton)!=null?o:Pr,M=(i=_.previousButton)!=null?i:Pr,W=(s=_.firstButtonIcon)!=null?s:Ex,B=(u=_.lastButtonIcon)!=null?u:Ox,U=(l=_.nextButtonIcon)!=null?l:Y4,q=(c=_.previousButtonIcon)!=null?c:X4,ie=w?F:$,oe=w?z:M,Ee=w?M:z,pe=w?$:F,Te=w?C.lastButton:C.firstButton,ye=w?C.nextButton:C.previousButton,be=w?C.previousButton:C.nextButton,we=w?C.firstButton:C.lastButton;return R.jsxs("div",T({ref:r},E,{children:[b&&R.jsx(ie,T({onClick:O,disabled:v||x===0,"aria-label":g("first",x),title:g("first",x)},Te,{children:w?R.jsx(B,T({},C.lastButtonIcon)):R.jsx(W,T({},C.firstButtonIcon))})),R.jsx(oe,T({onClick:P,disabled:v||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},ye??f,{children:w?R.jsx(U,T({},C.nextButtonIcon)):R.jsx(q,T({},C.previousButtonIcon))})),R.jsx(Ee,T({onClick:k,disabled:v||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},be??y,{children:w?R.jsx(q,T({},C.previousButtonIcon)):R.jsx(U,T({},C.nextButtonIcon))})),h&&R.jsx(pe,T({onClick:j,disabled:v||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},we,{children:w?R.jsx(W,T({},C.firstButtonIcon)):R.jsx(B,T({},C.lastButtonIcon))}))]}))}),y0e=m0e;function b0e(e){return Ue("MuiTablePagination",e)}const x0e=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Dd=x0e;var f$;const w0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],S0e=ne(en,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),_0e=ne(jc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Dd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Dd.actions}`]:{flexShrink:0,marginLeft:20}})),C0e=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),E0e=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),O0e=ne(H4,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Dd.selectIcon}`]:t.selectIcon,[`& .${Dd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Dd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),P0e=ne(Ta,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),R0e=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function T0e({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function $0e(e){return`Go to ${e} page`}const k0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},b0e,t)},j0e=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=y0e,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:f=!1,getItemAriaLabel:p=$0e,labelDisplayedRows:v=T0e,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:S,onRowsPerPageChange:x,page:m,rowsPerPage:b,rowsPerPageOptions:h=[10,25,50,100],SelectProps:_={},showFirstButton:C=!1,showLastButton:E=!1,slotProps:w={},slots:O={}}=a,P=Pe(a,w0e),k=a,j=k0e(k),$=(n=w==null?void 0:w.select)!=null?n:_,F=$.native?"option":P0e;let z;(l===en||l==="td")&&(z=u||1e3);const M=el($.id),W=el($.labelId),B=()=>c===-1?(m+1)*b:b===-1?c:Math.min(c,(m+1)*b);return R.jsx(S0e,T({colSpan:z,ref:r,as:l,ownerState:k,className:ue(j.root,s)},P,{children:R.jsxs(_0e,{className:j.toolbar,children:[R.jsx(C0e,{className:j.spacer}),h.length>1&&R.jsx(E0e,{className:j.selectLabel,id:W,children:g}),h.length>1&&R.jsx(O0e,T({variant:"standard"},!$.variant&&{input:f$||(f$=R.jsx(My,{}))},{value:b,onChange:x,id:M,labelId:W},$,{classes:T({},$.classes,{root:ue(j.input,j.selectRoot,($.classes||{}).root),select:ue(j.select,($.classes||{}).select),icon:ue(j.selectIcon,($.classes||{}).icon)}),disabled:f,children:h.map(U=>d.createElement(F,T({},!Rf(F)&&{ownerState:k},{className:j.menuItem,key:U.label?U.label:U,value:U.value?U.value:U}),U.label?U.label:U))})),R.jsx(R0e,{className:j.displayedRows,children:v({from:c===0?0:m*b+1,to:B(),count:c===-1?-1:c,page:m})}),R.jsx(o,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:S,page:m,rowsPerPage:b,showFirstButton:C,showLastButton:E,slotProps:w.actions,slots:O.actions,getItemAriaLabel:p,disabled:f})]})}))}),p$=j0e;function I0e(e){return Ue("MuiTableRow",e)}const A0e=We("MuiTableRow",["root","selected","hover","head","footer"]),h$=A0e,M0e=["className","component","hover","selected"],F0e=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return qe({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},I0e,t)},N0e=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h$.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),v$="tr",L0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableRow"}),{className:a,component:o=v$,hover:i=!1,selected:s=!1}=n,u=Pe(n,M0e),l=d.useContext(Dy),c=T({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=F0e(c);return R.jsx(N0e,T({as:o,ref:r,className:ue(f.root,a),role:o===v$?null:"row",ownerState:c},u))}),If=L0e,D0e=An(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function B0e(e){return Ue("MuiTableSortLabel",e)}const z0e=We("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),c0=z0e,V0e=["active","children","className","direction","hideSortIcon","IconComponent"],U0e=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${ge(r)}`]};return qe(a,B0e,t)},W0e=ne(Ma,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${c0.icon}`]:{opacity:.5}},[`&.${c0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${c0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),H0e=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ge(r.direction)}`]]}})(({theme:e,ownerState:t})=>T({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),q0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=D0e}=n,c=Pe(n,V0e),f=T({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=U0e(f);return R.jsxs(W0e,T({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[o,u&&!a?null:R.jsx(H0e,{as:l,className:ue(p.icon),ownerState:f})]}))}),K0e=q0e;function G0e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Q0e(e,t,r,n={},a=()=>{}){const{ease:o=G0e,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const c=()=>{l=!0},f=p=>{if(l){a(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=o(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(f)};return u===r?(a(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const X0e=["onChange"],Y0e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function J0e(e){const{onChange:t}=e,r=Pe(e,X0e),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qn(()=>{const i=Rc(()=>{const u=n.current;o(),u!==n.current&&t(n.current)}),s=da(a.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),R.jsx("div",T({style:Y0e,ref:a},r))}function Z0e(e){return Ue("MuiTabScrollButton",e)}const e1e=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),t1e=e1e,r1e=["className","slots","slotProps","direction","orientation","disabled"],n1e=e=>{const{classes:t,orientation:r,disabled:n}=e;return qe({root:["root",r,n&&"disabled"]},Z0e,t)},a1e=ne(Ma,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${t1e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),o1e=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=o,c=Pe(o,r1e),f=cl(),p=T({isRtl:f},o),v=n1e(p),g=(n=s.StartScrollButtonIcon)!=null?n:X4,y=(a=s.EndScrollButtonIcon)!=null?a:Y4,S=fa({elementType:g,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),x=fa({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return R.jsx(a1e,T({component:"div",className:ue(v.root,i),ref:r,role:null,ownerState:p,tabIndex:null},c,{children:l==="left"?R.jsx(g,T({},S)):R.jsx(y,T({},x))}))}),i1e=o1e;function s1e(e){return Ue("MuiTabs",e)}const l1e=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),d0=l1e,u1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],g$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,m$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fh=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},c1e=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},s1e,u)},d1e=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${d0.scrollButtons}`]:t.scrollButtons},{[`& .${d0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${d0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),f1e=ne("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),p1e=ne("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),h1e=ne("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),v1e=ne(J0e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),y$={},g1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTabs"}),a=fo(),o=cl(),{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:x=i1e,scrollButtons:m="auto",selectionFollowsFocus:b,slots:h={},slotProps:_={},TabIndicatorProps:C={},TabScrollButtonProps:E={},textColor:w="primary",value:O,variant:P="standard",visibleScrollbar:k=!1}=n,j=Pe(n,u1e),$=P==="scrollable",F=S==="vertical",z=F?"scrollTop":"scrollLeft",M=F?"top":"left",W=F?"bottom":"right",B=F?"clientHeight":"clientWidth",U=F?"height":"width",q=T({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:S,vertical:F,scrollButtons:m,textColor:w,variant:P,visibleScrollbar:k,fixed:!$,hideScrollbar:$&&!k,scrollableX:$&&!F,scrollableY:$&&F,centered:l&&!$,scrollButtonsHideMobile:!v}),ie=c1e(q),oe=fa({elementType:h.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:q}),Ee=fa({elementType:h.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:q}),[pe,Te]=d.useState(!1),[ye,be]=d.useState(y$),[we,ve]=d.useState(!1),[De,Me]=d.useState(!1),[Qe,Ne]=d.useState(!1),[Ae,He]=d.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ut=d.useRef(null),V=d.useRef(null),K=()=>{const _e=ut.current;let Fe;if(_e){const nt=_e.getBoundingClientRect();Fe={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollLeftNormalized:nle(_e,o?"rtl":"ltr"),scrollWidth:_e.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let Ge;if(_e&&O!==!1){const nt=V.current.children;if(nt.length>0){const mt=nt[ht.get(O)];Ge=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ge}},te=fn(()=>{const{tabsMeta:_e,tabMeta:Fe}=K();let Ge=0,nt;if(F)nt="top",Fe&&_e&&(Ge=Fe.top-_e.top+_e.scrollTop);else if(nt=o?"right":"left",Fe&&_e){const Ot=o?_e.scrollLeftNormalized+_e.clientWidth-_e.scrollWidth:_e.scrollLeft;Ge=(o?-1:1)*(Fe[nt]-_e[nt]+Ot)}const mt={[nt]:Ge,[U]:Fe?Fe[U]:0};if(isNaN(ye[nt])||isNaN(ye[U]))be(mt);else{const Ot=Math.abs(ye[nt]-mt[nt]),kt=Math.abs(ye[U]-mt[U]);(Ot>=1||kt>=1)&&be(mt)}}),se=(_e,{animation:Fe=!0}={})=>{Fe?Q0e(z,ut.current,_e,{duration:a.transitions.duration.standard}):ut.current[z]=_e},de=_e=>{let Fe=ut.current[z];F?Fe+=_e:(Fe+=_e*(o?-1:1),Fe*=o&&zF()==="reverse"?-1:1),se(Fe)},fe=()=>{const _e=ut.current[B];let Fe=0;const Ge=Array.from(V.current.children);for(let nt=0;nt_e){nt===0&&(Fe=_e);break}Fe+=mt[B]}return Fe},Oe=()=>{de(-1*fe())},ae=()=>{de(fe())},Z=d.useCallback(_e=>{He({overflow:null,scrollbarWidth:_e})},[]),G=()=>{const _e={};_e.scrollbarSizeListener=$?R.jsx(v1e,{onChange:Z,className:ue(ie.scrollableX,ie.hideScrollbar)}):null;const Ge=$&&(m==="auto"&&(we||De)||m===!0);return _e.scrollButtonStart=Ge?R.jsx(x,T({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:S,direction:o?"right":"left",onClick:Oe,disabled:!we},E,{className:ue(ie.scrollButtons,E.className)})):null,_e.scrollButtonEnd=Ge?R.jsx(x,T({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:S,direction:o?"left":"right",onClick:ae,disabled:!De},E,{className:ue(ie.scrollButtons,E.className)})):null,_e},le=fn(_e=>{const{tabsMeta:Fe,tabMeta:Ge}=K();if(!(!Ge||!Fe)){if(Ge[M]Fe[W]){const nt=Fe[z]+(Ge[W]-Fe[W]);se(nt,{animation:_e})}}}),he=fn(()=>{$&&m!==!1&&Ne(!Qe)});d.useEffect(()=>{const _e=Rc(()=>{ut.current&&te()});let Fe;const Ge=Ot=>{Ot.forEach(kt=>{kt.removedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.unobserve(Pt)}),kt.addedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.observe(Pt)})}),_e(),he()},nt=da(ut.current);nt.addEventListener("resize",_e);let mt;return typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(_e),Array.from(V.current.children).forEach(Ot=>{Fe.observe(Ot)})),typeof MutationObserver<"u"&&(mt=new MutationObserver(Ge),mt.observe(V.current,{childList:!0})),()=>{var Ot,kt;_e.clear(),nt.removeEventListener("resize",_e),(Ot=mt)==null||Ot.disconnect(),(kt=Fe)==null||kt.disconnect()}},[te,he]),d.useEffect(()=>{const _e=Array.from(V.current.children),Fe=_e.length;if(typeof IntersectionObserver<"u"&&Fe>0&&$&&m!==!1){const Ge=_e[0],nt=_e[Fe-1],mt={root:ut.current,threshold:.99},Ot=It=>{ve(!It[0].isIntersecting)},kt=new IntersectionObserver(Ot,mt);kt.observe(Ge);const Pt=It=>{Me(!It[0].isIntersecting)},at=new IntersectionObserver(Pt,mt);return at.observe(nt),()=>{kt.disconnect(),at.disconnect()}}},[$,m,Qe,c==null?void 0:c.length]),d.useEffect(()=>{Te(!0)},[]),d.useEffect(()=>{te()}),d.useEffect(()=>{le(y$!==ye)},[le,ye]),d.useImperativeHandle(u,()=>({updateIndicator:te,updateScrollButtons:he}),[te,he]);const Re=R.jsx(h1e,T({},C,{className:ue(ie.indicator,C.className),ownerState:q,style:T({},ye,C.style)}));let Be=0;const Ye=d.Children.map(c,_e=>{if(!d.isValidElement(_e))return null;const Fe=_e.props.value===void 0?Be:_e.props.value;ht.set(Fe,Be);const Ge=Fe===O;return Be+=1,d.cloneElement(_e,T({fullWidth:P==="fullWidth",indicator:Ge&&!pe&&Re,selected:Ge,selectionFollowsFocus:b,onChange:y,textColor:w,value:Fe},Be===1&&O===!1&&!_e.props.tabIndex?{tabIndex:0}:{}))}),je=_e=>{const Fe=V.current,Ge=wr(Fe).activeElement;if(Ge.getAttribute("role")!=="tab")return;let mt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(mt="ArrowRight",Ot="ArrowLeft"),_e.key){case mt:_e.preventDefault(),fh(Fe,Ge,m$);break;case Ot:_e.preventDefault(),fh(Fe,Ge,g$);break;case"Home":_e.preventDefault(),fh(Fe,null,g$);break;case"End":_e.preventDefault(),fh(Fe,null,m$);break}},Je=G();return R.jsxs(d1e,T({className:ue(ie.root,f),ownerState:q,ref:r,as:p},j,{children:[Je.scrollButtonStart,Je.scrollbarSizeListener,R.jsxs(f1e,{className:ie.scroller,ownerState:q,style:{overflow:Ae.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:k?void 0:-Ae.scrollbarWidth},ref:ut,children:[R.jsx(p1e,{"aria-label":i,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,className:ie.flexContainer,ownerState:q,onKeyDown:je,ref:V,role:"tablist",children:Ye}),pe&&Re]}),Je.scrollButtonEnd]}))}),m1e=g1e;function y1e(e){return Ue("MuiTextField",e)}We("MuiTextField",["root"]);const b1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],x1e={standard:I4,filled:$4,outlined:V4},w1e=e=>{const{classes:t}=e;return qe({root:["root"]},y1e,t)},S1e=ne(nge,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:S,inputProps:x,InputProps:m,inputRef:b,label:h,maxRows:_,minRows:C,multiline:E=!1,name:w,onBlur:O,onChange:P,onFocus:k,placeholder:j,required:$=!1,rows:F,select:z=!1,SelectProps:M,type:W,value:B,variant:U="outlined"}=n,q=Pe(n,b1e),ie=T({},n,{autoFocus:o,color:u,disabled:c,error:f,fullWidth:v,multiline:E,required:$,select:z,variant:U}),oe=w1e(ie),Ee={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(Ee.notched=S.shrink),Ee.label=h),z&&((!M||!M.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const pe=el(y),Te=g&&pe?`${pe}-helper-text`:void 0,ye=h&&pe?`${pe}-label`:void 0,be=x1e[U],we=R.jsx(be,T({"aria-describedby":Te,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:v,multiline:E,name:w,rows:F,maxRows:_,minRows:C,type:W,value:B,id:pe,inputRef:b,onBlur:O,onChange:P,onFocus:k,placeholder:j,inputProps:x},Ee,m));return R.jsxs(S1e,T({className:ue(oe.root,s),disabled:c,error:f,fullWidth:v,ref:r,required:$,color:u,variant:U,ownerState:ie},q,{children:[h!=null&&h!==""&&R.jsx(Yge,T({htmlFor:pe,id:ye},S,{children:h})),z?R.jsx(H4,T({"aria-describedby":Te,id:pe,labelId:ye,value:B,input:we},M,{children:i})):we,g&&R.jsx(IC,T({id:Te},p,{children:g}))]}))}),yp=_1e,C1e=["getTrigger","target"];function E1e(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const O1e=typeof window<"u"?window:null;function J4(e={}){const{getTrigger:t=E1e,target:r=O1e}=e,n=Pe(e,C1e),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const s=()=>{i(t(a,T({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var FC={},f0={};const P1e=Do(Vue);var b$;function ct(){return b$||(b$=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=P1e}(f0)),f0}var R1e=it;Object.defineProperty(FC,"__esModule",{value:!0});var By=FC.default=void 0,T1e=R1e(ct()),$1e=R;By=FC.default=(0,T1e.default)((0,$1e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Bd=globalThis&&globalThis.__assign||function(){return Bd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(WSe,null):null,t&&d.createElement(Fxe,null),d.createElement(lxe,null))},Dxe=d.createElement(Lxe,null),Bxe=d.createElement(UC,null),ss="RaAppBar",Es={appBar:"".concat(ss,"-appBar"),toolbar:"".concat(ss,"-toolbar"),menuButton:"".concat(ss,"-menuButton"),menuButtonIconClosed:"".concat(ss,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ss,"-menuButtonIconOpen"),title:"".concat(ss,"-title")},zxe=ne(Vce,{name:ss,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Es.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Es.menuButton)]={marginRight:"0.2em"},t["& .".concat(Es.title)]={},t}),qC={},Vxe=it;Object.defineProperty(qC,"__esModule",{value:!0});var Uy=qC.default=void 0,Uxe=Vxe(ct()),Wxe=R;Uy=qC.default=(0,Uxe.default)((0,Wxe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var KC={},Hxe=it;Object.defineProperty(KC,"__esModule",{value:!0});var v5=KC.default=void 0,qxe=Hxe(ct()),Kxe=R;v5=KC.default=(0,qxe.default)((0,Kxe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Vd=globalThis&&globalThis.__assign||function(){return Vd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?d.createElement(x5,Og({title:r,defaultTitle:t},a)):d.createElement(Pwe,Og({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,tp.createPortal(u,i))},Lx=globalThis&&globalThis.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=u_e(S===!1||S===void 0?void 0:!S,l||!O||E||w);q_(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var k=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){var z;return C$(this,function(M){switch(M.label){case 0:return h!=null&&h.save?[4,h.save(F,Hd(Hd({},u),{transform:p}))]:[3,2];case 1:z=M.sent(),M.label=2;case 2:return z!=null&&m3(z,b.setError),[2]}})})},[b.setError,h,u,p]),j=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){return C$(this,function(z){switch(z.label){case 0:return s&&s(F),F.defaultPrevented?[2]:f!=="button"?[3,2]:(F.stopPropagation(),[4,b.handleSubmit(k)(F)]);case 1:z.sent(),z.label=2;case 2:return[2]}})})},[s,f,b,k]),$=i&&m(i,{_:i});return d.createElement(l_e,Hd({variant:g,type:f,color:r,"aria-label":$,disabled:P,onClick:j},x),w?d.createElement(kc,{sx:o_e,size:14,thickness:3,color:"inherit"}):a,$)},o_e={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},i_e=d.createElement(U5,null),s_e="RaSaveButton",l_e=ne(hn,{name:s_e,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),u_e=function(e,t){return typeof e>"u"?t:e},c_e=function(){return ke.createElement(f_e,{onClick:p_e,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},d_e="RaSkipNavigationButton",f_e=ne(Hr,{name:d_e,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),p_e=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jx=globalThis&&globalThis.__assign||function(){return Jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var h=Q5(),_=et(),C=_r(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var E=Nt(e),w=Wo(e),O=w.hasShow||w.hasEdit;if(!E)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var P=(!h||!h.isRowExpandable||h.isRowExpandable(C))&&i,k=Yte(E,f,h&&h.expandSingle),j=k[0],$=k[1],F=d.useState(function(){return E$(P,a,u)}),z=F[0],M=F[1];d.useEffect(function(){var oe=E$(P,a,u);oe!==z&&M(oe)},[P,z,a,u]);var W=lo(),B=d.useCallback(function(oe){$(),oe.stopPropagation()},[$]),U=d.useCallback(function(oe){!m||!p||(p(f,oe),oe.stopPropagation())},[f,p,m]),q=Cne(),ie=d.useCallback(function(oe){return D_e(void 0,void 0,void 0,function(){var Ee;return B_e(this,function(pe){switch(pe.label){case 0:return oe.persist(),[4,q({record:C,resource:E,link:typeof v=="function"?function(Te,ye){return v(Te.id,ye,Te)}:v})];case 1:return Ee=pe.sent(),v==="expand"?(B(oe),[2]):v==="toggleSelection"?(U(oe),[2]):Ee===!1||Ee==null?[2]:(W(Ee,{state:{_scrollToTop:!0}}),[2])}})})},[C,E,v,W,B,U,q]);return ke.createElement(ke.Fragment,null,ke.createElement(If,ow({ref:t,className:ue(o,(r={},r[rt.expandable]=P,r[rt.selectable]=m,r[rt.clickableRow]=v??O,r)),key:f,style:S,hover:c,onClick:ie},b),i&&ke.createElement(en,{padding:"none",className:rt.expandIconCell},P&&ke.createElement(L_e,{className:ue(rt.expandIcon,(n={},n[rt.expanded]=j,n)),expanded:j,onClick:B,expandContentId:"".concat(f,"-expand")})),u&&ke.createElement(en,{padding:"checkbox"},ke.createElement(gg,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(rt.checkbox),checked:m&&y,onClick:U,disabled:!m})),ke.Children.map(a,function(oe,Ee){return d.isValidElement(oe)?ke.createElement(M_e,{key:"".concat(f,"-").concat(oe.props.source||Ee),className:ue("column-".concat(oe.props.source),rt.rowCell),record:C,field:oe,resource:E}):null})),P&&j&&ke.createElement(If,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:rt.expandedPanel},ke.createElement(en,{colSpan:z},d.isValidElement(i)?i:d.createElement(i))))}),z_e=function(e,t){e.children,e.expand;var r=iw(e,["children","expand"]);t.children,t.expand;var n=iw(t,["children","expand"]);return vM(r,n)},Y5=d.memo(X5,z_e);Y5.displayName="PureDatagridRow";const V_e=X5;var Ng=globalThis&&globalThis.__assign||function(){return Ng=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=lCe&&(o=sCe,i=!1,t=new rCe(t));e:for(;++a0&&b.length>0&&b.every(function(h){return v.includes(h)}),onChange:m,onClick:function(h){return h.stopPropagation()}})),d.Children.map(t,function(h,_){return d.isValidElement(h)?d.createElement(Q_e,{className:ue(rt.headerCell,"column-".concat(h.props.source)),sort:c,field:h,isSorting:(c==null?void 0:c.field)===(h.props.sortBy||h.props.source),key:h.props.source||_,updateSort:x||void 0}):null})))};eN.displayName="DatagridHeader";var bCe=function(e){var t=e.children,r=e.value;return ke.createElement(G5.Provider,{value:r},t)};const xCe=bCe;var gE={},wCe=it;Object.defineProperty(gE,"__esModule",{value:!0});var tN=gE.default=void 0,SCe=wCe(ct()),_Ce=R;tN=gE.default=(0,SCe.default)((0,_Ce.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var lw=globalThis&&globalThis.__assign||function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?d.createElement(d.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",d.createElement(Hr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Mf=globalThis&&globalThis.__assign||function(){return Mf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var v=o.getValues();return r.filter(function(g){var y=qt(v,g.props.source);return g.props.alwaysOn||u[g.props.source]||!aN(y)})},f=d.useCallback(function(v){return l(v.currentTarget.dataset.key)},[l]),p=d.useMemo(function(){return{getSource:function(v){return v},getLabel:function(v){return"resources.".concat(a,".fields.").concat(v)}}},[a]);return d.createElement(k3,{value:p},d.createElement(VCe,Ai({className:t},DCe(n),{onSubmit:LCe}),c().map(function(v){return d.createElement(jCe,{key:v.key||v.props.source,filterElement:v,handleHide:f,resource:a,className:Dg.filterFormInput})}),d.createElement("div",{className:Dg.clearFix})))},LCe=function(e){return e.preventDefault(),!1},DCe=function(e){e.hasCreate,e.resource;var t=mE(e,["hasCreate","resource"]);return t},BCe=function(e,t){return Ai(Ai({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return km(Ai({},r),n.props.source,n.props.defaultValue)},{})),e)},zCe=function(e){return e.preventDefault(),e.stopPropagation(),!1},cw="RaFilterForm",Dg={clearFix:"".concat(cw,"-clearFix"),filterFormInput:"".concat(cw,"-filterFormInput")},VCe=ne("form",{name:cw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Dg.clearFix)]={clear:"right"},t["& .".concat(Dg.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),UCe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=nN(e,a,t),n},(r=pM(t))!==null&&r!==void 0?r:{})},nN=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return qt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,s=nN(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},aN=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return aN(e[t])}):!1},yE={},WCe=it;Object.defineProperty(yE,"__esModule",{value:!0});var Ff=yE.default=void 0,HCe=WCe(ct()),qCe=R;Ff=yE.default=(0,HCe.default)((0,qCe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var bE={},KCe=it;Object.defineProperty(bE,"__esModule",{value:!0});var oN=bE.default=void 0,GCe=KCe(ct()),QCe=R;oN=bE.default=(0,GCe.default)((0,QCe.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var xE={},XCe=it;Object.defineProperty(xE,"__esModule",{value:!0});var iN=xE.default=void 0,YCe=XCe(ct()),JCe=R;iN=xE.default=(0,YCe.default)((0,JCe.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var wE={},ZCe=it;Object.defineProperty(wE,"__esModule",{value:!0});var sN=wE.default=void 0,eEe=ZCe(ct()),tEe=R;sN=wE.default=(0,eEe.default)((0,tEe.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var SE={},rEe=it;Object.defineProperty(SE,"__esModule",{value:!0});var lN=SE.default=void 0,nEe=rEe(ct()),aEe=R;lN=SE.default=(0,nEe.default)((0,aEe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var _E={},oEe=it;Object.defineProperty(_E,"__esModule",{value:!0});var uN=_E.default=void 0,iEe=oEe(ct()),sEe=R;uN=_E.default=(0,iEe.default)((0,sEe.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var CE={},lEe=it;Object.defineProperty(CE,"__esModule",{value:!0});var cN=CE.default=void 0,uEe=lEe(ct()),cEe=R;cN=CE.default=(0,uEe.default)((0,cEe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var dEe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,s=Nt(e),u=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(Ta,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?l:u,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Cs,null,i?d.createElement(cN,{fontSize:"small"}):d.createElement(uN,{fontSize:"small"})),d.createElement(Zl,null,d.createElement(no,{label:r.props.label,source:r.props.source,resource:s})))}),EE=function(e){return ya("".concat(e,".savedQueries"),[])},OE=function(e){return Array.isArray(e)?e.filter(function(t){return fEe(t)}):[]},fEe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},pEe=function(e){var t=e.open,r=e.onClose,n=et(),a=ga(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=EE(o),f=c[0],p=c[1],v=d.useState(""),g=v[0],y=v[1],S=function(b){y(b.target.value)},x=function(b){b.preventDefault(),m()},m=function(){var b={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},h=OE(f);p(h.concat(b)),y(""),r()};return d.createElement(TC,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(jC,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(kC,null,d.createElement("form",{onSubmit:x},d.createElement(yp,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:S}))),d.createElement($C,null,d.createElement(hn,{onClick:r},n("ra.action.cancel")),d.createElement(hn,{onClick:m,color:"primary"},n("ra.action.save"))))},$$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=EE(u||"")[0],f=lo(),p=ga(),v=p.displayedFilters,g=v===void 0?{}:v,y=p.filterValues,S=p.perPage,x=p.setFilters,m=p.showFilter,b=p.hideFilter,h=p.sort,_=!ja(y,{}),C=OE(c),E=C.some(function(be){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})}),w=d.useState(!1),O=w[0],P=w[1],k=d.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var j=s.filter(function(be){return!be.props.alwaysOn}),$=d.useCallback(function(be){be.preventDefault(),P(!0),k.current=be.currentTarget},[k,P]),F=d.useCallback(function(){P(!1)},[P]),z=d.useCallback(function(be){var we=be.source,ve=be.defaultValue;m(we,ve===""?void 0:ve),setTimeout(function(){var De=document.querySelector("input[name='".concat(we,"']"));De&&De.focus()},50),P(!1)},[m,P]),M=d.useCallback(function(be){var we=be.source;b(we),P(!1)},[b,P]),W=d.useState(!1),B=W[0],U=W[1],q=function(){U(!1)},ie=function(){P(!1),U(!0)},oe=d.useState(!1),Ee=oe[0],pe=oe[1],Te=function(){pe(!1)},ye=function(){P(!1),pe(!0)};return j.length===0&&C.length===0&&!_?null:d.createElement(mEe,dw({className:r},vEe(i)),d.createElement(Hr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:$,variant:o,size:a},d.createElement(lN,null)),d.createElement(Ly,{open:O,anchorEl:k.current,onClose:F},j.map(function(be,we){return d.createElement(dEe,{key:be.props.source,filter:be,displayed:!!g[be.props.source],resource:u,onShow:z,onHide:M,autoFocus:we===0})}),(_||C.length>0)&&d.createElement(mg,null),C.map(function(be,we){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})?d.createElement(Ta,{onClick:ye,key:we},d.createElement(Cs,null,d.createElement(iN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:be.label}))):d.createElement(Ta,{onClick:function(){var ve,De;f({search:ko.stringify({filter:JSON.stringify(be.value.filter),sort:(ve=be.value.sort)===null||ve===void 0?void 0:ve.field,order:(De=be.value.sort)===null||De===void 0?void 0:De.order,page:1,perPage:be.value.perPage,displayedFilters:JSON.stringify(be.value.displayedFilters)})}),P(!1)},key:we},d.createElement(Cs,null,d.createElement(sN,{fontSize:"small"})),d.createElement(Zl,null,be.label))}),_&&!E&&!n&&d.createElement(Ta,{onClick:ie},d.createElement(Cs,null,d.createElement(oN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&d.createElement(Ta,{onClick:function(){x({},{}),P(!1)}},d.createElement(Cs,null,d.createElement(Ff,{fontSize:"small"})),d.createElement(Zl,null,l("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(pEe,{open:B,onClose:q}),d.createElement(hEe,{open:Ee,onClose:Te})))},vEe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=dN(e,["displayedFilters","filterValues","showFilter"]);return t},gEe="RaFilterButton",mEe=ne("div",{name:gEe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),yEe=function(e){var t=e.children,r=function(){return d.createElement(fN,{className:j$.button})},n=function(){return d.createElement(rN,{className:j$.form})};return d.createElement(Ep.Provider,{value:d.Children.toArray(t)},e.context==="button"?r():n())},k$="RaFilter",j$={button:"".concat(k$,"-button"),form:"".concat(k$,"-form")},fw=globalThis&&globalThis.__assign||function(){return fw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:w+1}));v(w+1)},[x,v,y]),b=d.useCallback(function(E){g(E.target.value)},[g]),h=d.useCallback(function(E){var w=E.from,O=E.to,P=E.count;return P===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:w,offsetEnd:O,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:w,offsetEnd:O,total:P===-1?O:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),_=d.useCallback(function(E){return y("ra.navigation.".concat(E),{_:"Go to ".concat(E," page")})},[y]);if(u)return d.createElement(jc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(S)return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:CEe,component:"span",labelDisplayedRows:h},wf(i)));var C=n||(!u&&p!=null?bEe:void 0);return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:b,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:_,rowsPerPageOptions:r},wf(i)))}),_Ee=[5,10,25,50],CEe=[],zg=globalThis&&globalThis.__assign||function(){return zg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ye.target.value>"u")){var be=ye.target,we=be.valueAsDate!==void 0&&be.valueAsDate!==null&&!isNaN(new Date(be.valueAsDate).getTime())?g?g(be.valueAsDate):be.valueAsDate:g?g(be.value):mh(be.value);we!==""&&we!=null&&(_.onChange(we),j.current=!0)}},B=function(ye){c&&c(ye),M.current=!0},U=function(){if(M.current=!1,!!$.current){var ye=$.current.valueAsDate!==void 0&&$.current.valueAsDate!==null&&!isNaN(new Date($.current.valueAsDate).getTime())?g?g($.current.valueAsDate):mh($.current.valueAsDate):g?g($.current.value):mh($.current.value);ye!==_.value&&_.onChange(ye??""),z&&z()}},q=C.error,ie=C.invalid,oe=i!==!1||ie,Ee=_.ref,pe=_.name,Te=dae([Ee,$]);return d.createElement(yp,zg({id:E,inputRef:Te,name:pe,defaultValue:a(F.current),key:P,type:"datetime-local",onChange:W,onFocus:B,onBlur:U,className:ue("ra-input","ra-input-".concat(f),t),size:"small",variant:S,margin:s,error:ie,disabled:x||m,readOnly:m,helperText:oe?d.createElement(rl,{error:q==null?void 0:q.message,helperText:i}):null,label:d.createElement(no,{label:o,source:f,resource:p,isRequired:w}),InputLabelProps:$Ee},_p(b)))},vN=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},REe=vN(4),gh=vN(2),A$=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=REe(e.getFullYear()),r=gh(e.getMonth()+1),n=gh(e.getDate()),a=gh(e.getHours()),o=gh(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},TEe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,$Ee={shrink:!0},mh=function(e){return e==null||e===""?"":e instanceof Date?A$(e):TEe.test(e)?e:A$(new Date(e))},Vg=globalThis&&globalThis.__assign||function(){return Vg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof we.target.value>"u")){var ve=we.target;q(ve.value);var De=ve.valueAsNumber!==void 0&&ve.valueAsNumber!==null&&!isNaN(ve.valueAsNumber)?p?p(ve.valueAsNumber):ve.valueAsNumber:p?p(ve.value):NEe(ve.value);P.onChange(De)}},Ee=function(we){f&&f(we),ie.current=!0},pe=function(){M&&M(),ie.current=!1;var we=o(P.value);q(function(ve){return ve!==we?we:ve})},Te=i!==!1||$,ye=P.ref,be=F$(P,["ref"]);return d.createElement(yp,ii({id:F},be,{inputRef:ye,value:U,onChange:oe,onFocus:Ee,onBlur:pe,className:ue("ra-input","ra-input-".concat(g),t),type:"number",size:"small",variant:h,error:$,disabled:C||E,readOnly:E,helperText:Te?d.createElement(rl,{error:j==null?void 0:j.message,helperText:i}):null,label:d.createElement(no,{label:s,source:g,resource:v,isRequired:z}),margin:u,inputProps:ii(ii({},W),{readOnly:E})},_p(w)))},NEe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},LEe=function(e){return e==null||isNaN(e)?"":e.toString()},Ug=globalThis&&globalThis.__assign||function(){return Ug=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(qEe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Di,{className:vu.content},d.createElement(Nn,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Xl()}),d.createElement(Nn,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Xl()}),d.createElement(hn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:vu.button},a?d.createElement(kc,{className:vu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},nv="RaLoginForm",vu={content:"".concat(nv,"-content"),button:"".concat(nv,"-button"),icon:"".concat(nv,"-icon")},qEe=ne(M_,{name:nv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(vu.content)]={width:300},t["& .".concat(vu.button)]={marginTop:r.spacing(2)},t["& .".concat(vu.icon)]={margin:r.spacing(.3)},t}),pw=globalThis&&globalThis.__assign||function(){return pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?sOe:r;return a?d.createElement(uOe,mw({className:ue("edit-page",o)},l),u!==!1&&d.createElement(dl,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),y,d.createElement("div",{className:ue(yu.main,(t={},t[yu.noActions]=!y,t))},d.createElement(s,{className:yu.card},g?a:d.createElement(Di,null," ")),n)):null},iv="RaEdit",yu={main:"".concat(iv,"-main"),noActions:"".concat(iv,"-noActions"),card:"".concat(iv,"-card")},uOe=ne("div",{name:iv,overridesResolver:function(e,t){return t.root}})((td={},td["& .".concat(yu.main)]={display:"flex",alignItems:"flex-start"},td["& .".concat(yu.noActions)]={marginTop:"1em"},td["& .".concat(yu.card)]={flex:"1 1 auto"},td)),yw=globalThis&&globalThis.__assign||function(){return yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&S?COe:r;return!a||!y&&l?null:d.createElement(OOe,ww({className:ue("show-page",o)},f),c!==!1&&d.createElement(dl,{title:c,defaultTitle:g,preferenceKey:"".concat(v,".show.title")}),x!==!1&&x,d.createElement("div",{className:ue(xu.main,(t={},t[xu.noActions]=!x,t))},d.createElement(s,{className:xu.card},a),n))},lv="RaShow",xu={main:"".concat(lv,"-main"),noActions:"".concat(lv,"-noActions"),card:"".concat(lv,"-card")},OOe=ne("div",{name:lv,overridesResolver:function(e,t){return t.root}})((rd={},rd["& .".concat(xu.main)]={display:"flex"},rd["& .".concat(xu.noActions)]={marginTop:"1em"},rd["& .".concat(xu.card)]={flex:"1 1 auto"},rd)),Sw=globalThis&&globalThis.__assign||function(){return Sw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var v=ry(e);if(v==null||v==="")return r?d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),r&&p(r,{_:r})):null;var g=c(v),y="";if(g)if(i&&u)y=g0?g.toLocaleString(n,a):g.toLocaleString();else if(u){var S=a??(typeof v=="string"&&v.length<=10?{timeZone:"UTC"}:void 0);y=g0?g.toLocaleDateString(n,S):g.toLocaleDateString()}else i&&(y=g0?g.toLocaleTimeString(n,a):g.toLocaleTimeString());return d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),y)};_N.displayName="DateFieldImpl";var Ya=Ky(_N),FOe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},g0=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Gg=globalThis&&globalThis.__assign||function(){return Gg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},Kd=globalThis&&globalThis.__assign||function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&D$.call(t.callee)==="[object Function]"),n},m0,B$;function EPe(){if(B$)return m0;B$=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=AN,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",S=n(v),x=g&&r.call(v)==="[object String]",m=[];if(!g&&!y&&!S)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(x&&v.length>0&&!t.call(v,0))for(var h=0;h0)for(var _=0;_"u"||!jr?bt:jr(Uint8Array),Bs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":El&&jr?jr([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XPe,"%eval%":eval,"%EvalError%":YPe,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":NN,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":El&&jr?jr(jr([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!El||!jr?bt:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":JPe,"%ReferenceError%":ZPe,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!El||!jr?bt:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":El&&jr?jr(""[Symbol.iterator]()):bt,"%Symbol%":El?Symbol:bt,"%SyntaxError%":oc,"%ThrowTypeError%":t2e,"%TypedArray%":n2e,"%TypeError%":Su,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":e2e,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet};if(jr)try{null.error}catch(e){var a2e=jr(jr(e));Bs["%Error.prototype%"]=a2e}var o2e=function e(t){var r;if(t==="%AsyncFunction%")r=b0("async function () {}");else if(t==="%GeneratorFunction%")r=b0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=b0("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&jr&&(r=jr(a.prototype))}return Bs[t]=r,r},H$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pp=$E,Qg=FN,i2e=Pp.call(Function.call,Array.prototype.concat),s2e=Pp.call(Function.apply,Array.prototype.splice),q$=Pp.call(Function.call,String.prototype.replace),Xg=Pp.call(Function.call,String.prototype.slice),l2e=Pp.call(Function.call,RegExp.prototype.exec),u2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,c2e=/\\(\\)?/g,d2e=function(t){var r=Xg(t,0,1),n=Xg(t,-1);if(r==="%"&&n!=="%")throw new oc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new oc("invalid intrinsic syntax, expected opening `%`");var a=[];return q$(t,u2e,function(o,i,s,u){a[a.length]=s?q$(u,c2e,"$1"):i||o}),a},f2e=function(t,r){var n=t,a;if(Qg(H$,n)&&(a=H$[n],n="%"+a[0]+"%"),Qg(Bs,n)){var o=Bs[n];if(o===Il&&(o=o2e(n)),typeof o>"u"&&!r)throw new Su("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new oc("intrinsic "+t+" does not exist!")},Rp=function(t,r){if(typeof t!="string"||t.length===0)throw new Su("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Su('"allowMissing" argument must be a boolean');if(l2e(/^%?[^%]*%?$/,t)===null)throw new oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=d2e(t),a=n.length>0?n[0]:"",o=f2e("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],s2e(n,i2e([0,1],l)));for(var c=1,f=!0;c=n.length){var y=Ds(s,p);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else f=Qg(s,p),s=s[p];f&&!u&&(Bs[i]=s)}}return s},p2e=Rp,dv=p2e("%Object.defineProperty%",!0)||!1;if(dv)try{dv({},"a",{value:1})}catch{dv=!1}var kE=dv,h2e=Rp,fv=h2e("%Object.getOwnPropertyDescriptor%",!0);if(fv)try{fv([],"length")}catch{fv=null}var LN=fv,K$=kE,v2e=MN,Ol=Op,G$=LN,DN=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ol("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ol("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ol("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ol("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ol("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ol("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!G$&&G$(t,r);if(K$)K$(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new v2e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mw=kE,BN=function(){return!!Mw};BN.hasArrayLengthDefineBug=function(){if(!Mw)return null;try{return Mw([],"length",{value:1}).length!==1}catch{return!0}};var zN=BN,g2e=RPe,m2e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",y2e=Object.prototype.toString,b2e=Array.prototype.concat,Q$=DN,x2e=function(e){return typeof e=="function"&&y2e.call(e)==="[object Function]"},VN=zN(),w2e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!x2e(n)||!n())return}VN?Q$(e,t,r,!0):Q$(e,t,r)},UN=function(e,t){var r=arguments.length>2?arguments[2]:{},n=g2e(t);m2e&&(n=b2e.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||C2e(r)!==r)throw new J$("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Y$){var i=Y$(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(_2e?X$(t,"length",r,!0,!0):X$(t,"length",r)),t};(function(e){var t=$E,r=Rp,n=E2e,a=Op,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=kE,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var v=s(t,i,arguments);return n(v,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(HN);var qN=HN.exports,O2e=Op,P2e=function(t){if(t==null)throw new O2e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},KN=Rp,GN=qN,R2e=GN(KN("String.prototype.indexOf")),T2e=function(t,r){var n=KN(t,!!r);return typeof n=="function"&&R2e(t,".prototype.")>-1?GN(n):n},$2e=P2e,QN=T2e,k2e=QN("Object.prototype.propertyIsEnumerable"),j2e=QN("Array.prototype.push"),XN=function(t){var r=$2e(t),n=[];for(var a in r)k2e(r,a)&&j2e(n,[a,r[a]]);return n},I2e=XN,YN=function(){return typeof Object.entries=="function"?Object.entries:I2e},A2e=YN,M2e=WN,F2e=function(){var t=A2e();return M2e(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},N2e=WN,L2e=qN,D2e=XN,JN=YN,B2e=F2e,ZN=L2e(JN(),Object);N2e(ZN,{getPolyfill:JN,implementation:D2e,shim:B2e});var z2e=ZN,jE=z2e,eL=FN,V2e=function(t){},Fw=String.prototype.replace,tL=String.prototype.split,pv="||||",bh=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},rL={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:bh,chinese:function(){return 0},croatian:bh,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bh,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:bh},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function U2e(e){for(var t={},r=jE(e),n=0;n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var lRe=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),uRe=function(e){lRe(t,e);function t(r,n,a){a===void 0&&(a=null);var o=e.call(this,r)||this;return o.message=r,o.status=n,o.body=a,Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(o,o.constructor):o.stack=new Error(r).stack,o.stack=new Error().stack,o}return t}(Error);const cRe=uRe;var Yg=globalThis&&globalThis.__assign||function(){return Yg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new cRe(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},fRe=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},Jg=function(e,t){var r;return t===void 0&&(t=[]),fRe(e)?Object.assign.apply(Object,dRe([{}],Object.keys(e).map(function(n){return Jg(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e};function Nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{t.headers||(t.headers=aL(t));const r=localStorage.getItem("token");return r&&t.headers.set("Authorization",`Bearer ${r}`),ME(e,t)},gRe=hRe(fl,vRe),mRe={...gRe,getManyReference:(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={...Jg(t.filter),[t.target]:t.id,_sort:a,_order:o,_start:(r-1)*n,_end:r*n,output_size_limit:200},s=`${fl}/${t.target}/${t.id}/${e}?${ko.stringify(i)}`;return ME(s).then(({headers:u,json:l})=>{if(!u.has("x-total-count"))throw new Error("The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?");return{data:l,total:parseInt(u.get("x-total-count").split("/").pop()||"",10)}})}};var FE={},yRe=it;Object.defineProperty(FE,"__esModule",{value:!0});var Gy=FE.default=void 0,bRe=yRe(ct()),xRe=R;Gy=FE.default=(0,bRe.default)((0,xRe.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");const wRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}`,{method:"POST"}).then(()=>{t("Success running job")}).catch(u=>{t("Error on running job",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Run",onClick:i,disabled:a,children:R.jsx(Gy,{})})},SRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}/toggle`,{method:"POST"}).then(()=>{t("Job toggled")}).catch(u=>{t("Error on job toggle",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Toggle",title:"Enable/disable execution of selected jobs",onClick:i,disabled:a,children:R.jsx(Gy,{})})};var NE={},_Re=it;Object.defineProperty(NE,"__esModule",{value:!0});var LE=NE.default=void 0,CRe=_Re(ct()),ERe=R;LE=NE.default=(0,CRe.default)((0,ERe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var DE={},ORe=it;Object.defineProperty(DE,"__esModule",{value:!0});var iL=DE.default=void 0,PRe=ORe(ct()),RRe=R;iL=DE.default=(0,PRe.default)((0,RRe.jsx)("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer");const TRe=()=>{const e=_r();return e.status==="success"?R.jsx(kn,{title:"Success",children:R.jsx(Uy,{htmlColor:"green"})}):e.status==="failed"?R.jsx(kn,{title:"Error",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Waiting to Run",children:R.jsx(iL,{htmlColor:"blue"})})},$Re=()=>_r().disabled?R.jsx(kn,{title:"Disabled",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Enabled",children:R.jsx(Uy,{htmlColor:"green"})}),kRe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function jRe(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let o=0;const i=()=>(o+=1,o);return(s,u)=>{const l=u.options.name;if(l&&l.indexOf("Mui")===0&&!u.options.link&&!t){if(kRe.indexOf(s.key)!==-1)return`Mui-${s.key}`;const c=`${a}${l}-${s.key}`;return!u.options.theme[HF]||n!==""?c:`${c}-${i()}`}return`${a}${r}${i()}`}}var sk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tp=(typeof window>"u"?"undefined":sk(window))==="object"&&(typeof document>"u"?"undefined":sk(document))==="object"&&document.nodeType===9,IRe={}.constructor;function Lw(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Lw);if(e.constructor!==IRe)return e;var t={};for(var r in e)t[r]=Lw(e[r]);return t}function BE(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,a=Lw(t),o=n.plugins.onCreateRule(e,a,r);return o||(e[0],null)}var lk=function(t,r){for(var n="",a=0;a<+~=|^:(),"'`\s])/g,uk=typeof CSS<"u"&&CSS.escape,zE=function(e){return uk?uk(e):e.replace(ARe,"\\$1")},sL=function(){function e(r,n,a){this.type="style",this.isProcessed=!1;var o=a.sheet,i=a.Renderer;this.key=r,this.options=a,this.style=n,o?this.renderer=o.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,a,o){if(a===void 0)return this.style[n];var i=o?o.force:!1;if(!i&&this.style[n]===a)return this;var s=a;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(a,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),Dw=function(e){Py(t,e);function t(n,a,o){var i;i=e.call(this,n,a,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,c=o.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(bx(bx(i)),l),i.selectorText="."+zE(i.id)),i}var r=t.prototype;return r.applyTo=function(a){var o=this.renderer;if(o){var i=this.toJSON();for(var s in i)o.setProperty(a,s,i[s])}return this},r.toJSON=function(){var a={};for(var o in this.style){var i=this.style[o];typeof i!="object"?a[o]=i:Array.isArray(i)&&(a[o]=zs(i))}return a},r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.selectorText,this.style,s)},oL(t,[{key:"selector",set:function(a){if(a!==this.selectorText){this.selectorText=a;var o=this.renderer,i=this.renderable;if(!(!i||!o)){var s=o.setSelector(i,a);s||o.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(sL),MRe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new Dw(t,r,n)}},S0={indent:1,children:!0},FRe=/@([\w-]+)/,NRe=function(){function e(r,n,a){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(FRe);this.at=o?o[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new Qy(T({},a,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=S0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=S0.indent),n.children==null&&(n.children=S0.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+o+i+o+"}":""},e}(),LRe=/@container|@media|@supports\s+/,DRe={onCreateRule:function(t,r,n){return LRe.test(t)?new NRe(t,r,n):null}},_0={indent:1,children:!0},BRe=/@keyframes\s+([\w-]+)/,Bw=function(){function e(r,n,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(BRe);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var i=a.scoped,s=a.sheet,u=a.generateId;this.id=i===!1?this.name:zE(u(this,s)),this.rules=new Qy(T({},a,{parent:this}));for(var l in n)this.rules.add(l,n[l],T({},a,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=_0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=_0.indent),n.children==null&&(n.children=_0.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+o+i+o),this.at+" "+this.id+" {"+i+"}"},e}(),zRe=/@keyframes\s+/,VRe=/\$([\w-]+)/g,zw=function(t,r){return typeof t=="string"?t.replace(VRe,function(n,a){return a in r?r[a]:n}):t},ck=function(t,r,n){var a=t[r],o=zw(a,n);o!==a&&(t[r]=o)},URe={onCreateRule:function(t,r,n){return typeof t=="string"&&zRe.test(t)?new Bw(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&ck(t,"animation-name",n.keyframes),"animation"in t&&ck(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var a=n.options.sheet;if(!a)return t;switch(r){case"animation":return zw(t,a.keyframes);case"animation-name":return zw(t,a.keyframes);default:return t}}},WRe=function(e){Py(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.key,this.style,s)},t}(sL),HRe={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new WRe(t,r,n):null}},qRe=function(){function e(r,n,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=a}var t=e.prototype;return t.toString=function(n){var a=Ic(n),o=a.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){a.push(n);return}for(var i=0;io){a.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var a=this.registry.indexOf(n);this.registry.splice(a,1)},t.toString=function(n){for(var a=n===void 0?{}:n,o=a.attached,i=Pe(a,["attached"]),s=Ic(i),u=s.linebreak,l="",c=0;c-1?a.substr(0,o-1):a;t.style.setProperty(r,i,o>-1?"important":"")}}catch{return!1}return!0},oTe=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},iTe=function(t,r){return t.selectorText=r,t.selectorText===r},cL=uL(function(){return document.querySelector("head")});function sTe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function lTe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function uTe(e){for(var t=cL(),r=0;r0){var r=sTe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=lTe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var a=uTe(n);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}function dTe(e,t){var r=t.insertionPoint,n=cTe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var a=r,o=a.parentNode;o&&o.insertBefore(e,a.nextSibling);return}cL().appendChild(e)}var fTe=uL(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),vk=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},gk=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},pTe=function(){var t=document.createElement("style");return t.textContent=` +`,t},hTe=function(){function e(r){this.getPropertyValue=nTe,this.setProperty=aTe,this.removeProperty=oTe,this.setSelector=iTe,this.hasInsertedRules=!1,this.cssRules=[],r&&Gd.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},a=n.media,o=n.meta,i=n.element;this.element=i||pTe(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),o&&this.element.setAttribute("data-meta",o);var s=fTe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){dTe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` +`)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` +`+n.toString()+` +`}},t.insertRules=function(n,a){for(var o=0;o-1){var o=bL[t];if(!Array.isArray(o))return ft.js+Bi(o)in r?ft.css+o:!1;if(!a)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},o=Object.keys(r).sort(e),i=0;i"u"?null:h$e(),v$e()]}}function wL(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=T({},t);return Object.keys(r).forEach(o=>{r[o]&&(a[o]=`${t[o]} ${r[o]}`)}),a}const m$e={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},ru=m$e;function y$e(){var e;const t=cC();return(e=t==null?void 0:t.$$material)!=null?e:t}const b$e=dL(g$e()),x$e=jRe(),w$e=new Map,S$e={disableGeneration:!1,generateClassName:x$e,jss:b$e,sheetsCache:null,sheetsManager:w$e,sheetsRegistry:null},_$e=d.createContext(S$e);let xk=-1e9;function C$e(){return xk+=1,xk}const E$e=["variant"];function wk(e){return e.length===0}function O$e(e){const{variant:t}=e,r=Pe(e,E$e);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=wk(n)?e[a]:ge(e[a]):n+=`${wk(n)?a:ge(a)}${ge(e[a].toString())}`}),n}const P$e={},R$e=P$e;function T$e(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(u){throw u}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const o=r.components[n].styleOverrides||{},i=r.components[n].variants||[],s=T({},a);return Object.keys(o).forEach(u=>{s[u]=Rr(s[u]||{},o[u])}),i.forEach(u=>{const l=O$e(u.props);s[l]=Rr(s[l]||{},u.style)}),s},options:{}}}const $$e=["name","classNamePrefix","Component","defaultTheme"];function k$e({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=wL({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function j$e({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},o){if(r.disableGeneration)return;let i=ru.get(r.sheetsManager,n,t);i||(i={refs:0,staticSheet:null,dynamicStyles:null},ru.set(r.sheetsManager,n,t,i));const s=T({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=r.sheetsRegistry;if(i.refs===0){let l;r.sheetsCache&&(l=ru.get(r.sheetsCache,n,t));const c=n.create(t,a);l||(l=r.jss.createStyleSheet(c,T({link:!1},s)),l.attach(),r.sheetsCache&&ru.set(r.sheetsCache,n,t,l)),u&&u.add(l),i.staticSheet=l,i.dynamicStyles=fL(c)}if(i.dynamicStyles){const l=r.jss.createStyleSheet(i.dynamicStyles,T({link:!0},s));l.update(o),l.attach(),e.dynamicSheet=l,e.classes=wL({baseClasses:i.staticSheet.classes,newClasses:l.classes}),u&&u.add(l)}else e.classes=i.staticSheet.classes;i.refs+=1}function I$e({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function A$e({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=ru.get(r.sheetsManager,n,t);a.refs-=1;const o=r.sheetsRegistry;a.refs===0&&(ru.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}function M$e(e,t){const r=d.useRef([]);let n;const a=d.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),d.useEffect(()=>()=>{n&&n()},[a])}function SL(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:o=R$e}=t,i=Pe(t,$$e),s=T$e(e),u=r||n||"makeStyles";return s.options={index:C$e(),name:r,meta:u,classNamePrefix:u},(c={})=>{const f=y$e()||o,p=T({},d.useContext(_$e),i),v=d.useRef(),g=d.useRef();return M$e(()=>{const S={name:r,state:{},stylesCreator:s,stylesOptions:p,theme:f};return j$e(S,c),g.current=!1,v.current=S,()=>{A$e(S)}},[f,s]),d.useEffect(()=>{g.current&&I$e(v.current,c),g.current=!0}),k$e(v.current,c.classes,a)}}const F$e=e=>R.jsxs(yEe,{...e,children:[R.jsx(Nn,{label:"Search",source:"q",alwaysOn:!0}),R.jsx(yN,{source:"status",choices:[{id:"success",name:"Success"},{id:"failed",name:"Failed"},{id:"untriggered",name:"Waiting to Run"}]}),R.jsx(rw,{source:"disabled"})]}),N$e=e=>R.jsxs(d.Fragment,{children:[R.jsx(wRe,{...e}),R.jsx(SRe,{...e}),R.jsx(F5,{...e})]}),L$e=e=>R.jsx(hN,{rowsPerPageOptions:[5,10,25,50,100],...e}),D$e=SL(e=>({hiddenOnSmallScreens:{display:"table-cell",[e.breakpoints.down("md")]:{display:"none"}},cell:{padding:"6px 8px 6px 8px"}})),B$e=e=>{const t=D$e();return R.jsx(TE,{...e,filters:R.jsx(F$e,{}),bulkActionButtons:R.jsx(N$e,{}),pagination:R.jsx(L$e,{}),children:R.jsxs(Cp,{rowClick:"show",classes:{rowCell:t.cell},children:[R.jsx(fr,{source:"id",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"displayname",label:"Display name"}),R.jsx(fr,{source:"timezone",sortable:!1,cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"schedule"}),R.jsx(qd,{source:"success_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(qd,{source:"error_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Ya,{source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx($Re,{source:"disabled",label:"Enabled",sortable:!1}),R.jsx(qd,{source:"retries",sortable:!1}),R.jsx(TRe,{source:"status",sortable:!1}),R.jsx(Ya,{source:"next",showTime:!0}),R.jsx(uE,{})]})})};var _L={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Al,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),f=function(p,v,g){var y,S,x,m=p&f.F,b=p&f.G,h=p&f.S,_=p&f.P,C=p&f.B,E=p&f.W,w=b?s:s[v]||(s[v]={}),O=w.prototype,P=b?i:h?i[v]:(i[v]||{}).prototype;for(y in b&&(g=v),g)(S=!m&&P&&P[y]!==void 0)&&c(w,y)||(x=S?P[y]:g[y],w[y]=b&&typeof P[y]!="function"?g[y]:C&&S?u(x,i):E&&P[y]==x?function(k){var j=function($,F,z){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k($);case 2:return new k($,F)}return new k($,F,z)}return k.apply(this,arguments)};return j.prototype=k.prototype,j}(x):_&&typeof x=="function"?u(Function.call,x):x,_&&((w.virtual||(w.virtual={}))[y]=x,p&f.R&&O&&!O[y]&&l(O,y,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,v){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),v===void 0?g:s(g,v)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,f){var p,v=s(c),g=0,y=[];for(p in v)p!=l&&i(v,p)&&y.push(p);for(;f.length>g;)i(v,p=f[g++])&&(~u(y,p)||y.push(p));return y}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(v,g){try{return v[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=S(o(49)),s=S(o(76)),u=S(o(81)),l=S(o(89)),c=S(o(93)),f=function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&(P[k]=O[k]);return P.default=O,P}(o(94)),p=S(o(132)),v=S(o(133)),g=S(o(138)),y=o(139);function S(O){return O&&O.__esModule?O:{default:O}}var x=f.default,m=(0,l.default)(x),b=(0,g.default)(v.default,y.rgb2yuv,function(O){var P,k=(0,u.default)(O,3),j=k[0],$=k[1],F=k[2];return[(P=j,P<.25?1:P<.5?.9-P:1.1-P),$,F]},y.yuv2rgb,p.default),h=function(O){return function(P){return{className:[P.className,O.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},O.style||{})}}},_=function(O,P){var k=(0,l.default)(P);for(var j in O)k.indexOf(j)===-1&&k.push(j);return k.reduce(function($,F){return $[F]=function(z,M){if(z===void 0)return M;if(M===void 0)return z;var W=z===void 0?"undefined":(0,i.default)(z),B=M===void 0?"undefined":(0,i.default)(M);switch(W){case"string":switch(B){case"string":return[M,z].filter(Boolean).join(" ");case"object":return h({className:z,style:M});case"function":return function(U){for(var q=arguments.length,ie=Array(q>1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe2?k-2:0),$=2;$3?P-3:0),j=3;j1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=$.defaultBase16,M=z===void 0?x:z,W=$.base16Themes,B=W===void 0?null:W,U=w(F,B);U&&(F=(0,s.default)({},U,F));var q=m.reduce(function(pe,Te){return pe[Te]=F[Te]||M[Te],pe},{}),ie=(0,l.default)(F).reduce(function(pe,Te){return m.indexOf(Te)===-1&&(pe[Te]=F[Te]),pe},{}),oe=O(q),Ee=_(ie,oe);return(0,c.default)(C,2).apply(void 0,[Ee].concat(k))},3),a.getBase16Theme=function(O,P){if(O&&O.extend&&(O=O.extend),typeof O=="string"){var k=O.split(":"),j=(0,u.default)(k,2),$=j[0],F=j[1];O=(P||{})[$]||f[$],F==="inverted"&&(O=E(O))}return O&&O.hasOwnProperty("base00")?O:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(h,_,C){return Function.prototype.apply.call(h,_,C)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var l=Number.isNaN||function(h){return h!=h};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(h,_){return new Promise(function(C,E){function w(){O!==void 0&&h.removeListener("error",O),C([].slice.call(arguments))}var O;_!=="error"&&(O=function(P){h.removeListener(_,w),E(P)},h.once("error",O)),h.once(_,w)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function v(h){return h._maxListeners===void 0?c.defaultMaxListeners:h._maxListeners}function g(h,_,C,E){var w,O,P,k;if(p(C),(O=h._events)===void 0?(O=h._events=Object.create(null),h._eventsCount=0):(O.newListener!==void 0&&(h.emit("newListener",_,C.listener?C.listener:C),O=h._events),P=O[_]),P===void 0)P=O[_]=C,++h._eventsCount;else if(typeof P=="function"?P=O[_]=E?[C,P]:[P,C]:E?P.unshift(C):P.push(C),(w=v(h))>0&&P.length>w&&!P.warned){P.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=h,j.type=_,j.count=P.length,k=j,console&&console.warn&&console.warn(k)}return h}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(h,_,C){var E={fired:!1,wrapFn:void 0,target:h,type:_,listener:C},w=y.bind(E);return w.listener=C,E.wrapFn=w,w}function x(h,_,C){var E=h._events;if(E===void 0)return[];var w=E[_];return w===void 0?[]:typeof w=="function"?C?[w.listener||w]:[w]:C?function(O){for(var P=new Array(O.length),k=0;k0&&(O=_[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var k=w[h];if(k===void 0)return!1;if(typeof k=="function")u(k,this,_);else{var j=k.length,$=b(k,j);for(C=0;C=0;O--)if(C[O]===_||C[O].listener===_){P=C[O].listener,w=O;break}if(w<0)return this;w===0?C.shift():function(k,j){for(;j+1=0;E--)this.removeListener(h,_[E]);return this},c.prototype.listeners=function(h){return x(this,h,!0)},c.prototype.rawListeners=function(h){return x(this,h,!1)},c.listenerCount=function(h,_){return typeof h.listenerCount=="function"?h.listenerCount(_):m.call(h,_)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var f,p,v=String(s(l)),g=i(c),y=v.length;return g<0||g>=y?u?"":void 0:(f=v.charCodeAt(g))<55296||f>56319||g+1===y||(p=v.charCodeAt(g+1))<56320||p>57343?u?v.charAt(g):f:u?v.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),v=p.length,g=0;v>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,f,p){var v,g=i(c),y=s(g.length),S=u(p,y);if(l&&f!=f){for(;y>S;)if((v=g[S++])!=v)return!0}else for(;y>S;S++)if((l||S in g)&&g[S]===f)return l||S||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),f=o(68).KEY,p=o(8),v=o(26),g=o(28),y=o(17),S=o(2),x=o(30),m=o(31),b=o(69),h=o(70),_=o(10),C=o(11),E=o(18),w=o(9),O=o(23),P=o(16),k=o(38),j=o(71),$=o(72),F=o(32),z=o(7),M=o(13),W=$.f,B=z.f,U=j.f,q=i.Symbol,ie=i.JSON,oe=ie&&ie.stringify,Ee=S("_hidden"),pe=S("toPrimitive"),Te={}.propertyIsEnumerable,ye=v("symbol-registry"),be=v("symbols"),we=v("op-symbols"),ve=Object.prototype,De=typeof q=="function"&&!!F.f,Me=i.QObject,Qe=!Me||!Me.prototype||!Me.prototype.findChild,Ne=u&&p(function(){return k(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(G,le,he){var Re=W(ve,le);Re&&delete ve[le],B(G,le,he),Re&&G!==ve&&B(ve,le,Re)}:B,Ae=function(G){var le=be[G]=k(q.prototype);return le._k=G,le},He=De&&typeof q.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof q},ht=function(G,le,he){return G===ve&&ht(we,le,he),_(G),le=O(le,!0),_(he),s(be,le)?(he.enumerable?(s(G,Ee)&&G[Ee][le]&&(G[Ee][le]=!1),he=k(he,{enumerable:P(0,!1)})):(s(G,Ee)||B(G,Ee,P(1,{})),G[Ee][le]=!0),Ne(G,le,he)):B(G,le,he)},ut=function(G,le){_(G);for(var he,Re=b(le=w(le)),Be=0,Ye=Re.length;Ye>Be;)ht(G,he=Re[Be++],le[he]);return G},V=function(G){var le=Te.call(this,G=O(G,!0));return!(this===ve&&s(be,G)&&!s(we,G))&&(!(le||!s(this,G)||!s(be,G)||s(this,Ee)&&this[Ee][G])||le)},K=function(G,le){if(G=w(G),le=O(le,!0),G!==ve||!s(be,le)||s(we,le)){var he=W(G,le);return!he||!s(be,le)||s(G,Ee)&&G[Ee][le]||(he.enumerable=!0),he}},te=function(G){for(var le,he=U(w(G)),Re=[],Be=0;he.length>Be;)s(be,le=he[Be++])||le==Ee||le==f||Re.push(le);return Re},se=function(G){for(var le,he=G===ve,Re=U(he?we:w(G)),Be=[],Ye=0;Re.length>Ye;)!s(be,le=Re[Ye++])||he&&!s(ve,le)||Be.push(be[le]);return Be};De||(c((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var G=y(arguments.length>0?arguments[0]:void 0),le=function(he){this===ve&&le.call(we,he),s(this,Ee)&&s(this[Ee],G)&&(this[Ee][G]=!1),Ne(this,G,P(1,he))};return u&&Qe&&Ne(ve,G,{configurable:!0,set:le}),Ae(G)}).prototype,"toString",function(){return this._k}),$.f=K,z.f=ht,o(41).f=j.f=te,o(19).f=V,F.f=se,u&&!o(14)&&c(ve,"propertyIsEnumerable",V,!0),x.f=function(G){return Ae(S(G))}),l(l.G+l.W+l.F*!De,{Symbol:q});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fe=0;de.length>fe;)S(de[fe++]);for(var Oe=M(S.store),ae=0;Oe.length>ae;)m(Oe[ae++]);l(l.S+l.F*!De,"Symbol",{for:function(G){return s(ye,G+="")?ye[G]:ye[G]=q(G)},keyFor:function(G){if(!He(G))throw TypeError(G+" is not a symbol!");for(var le in ye)if(ye[le]===G)return le},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),l(l.S+l.F*!De,"Object",{create:function(G,le){return le===void 0?k(G):ut(k(G),le)},defineProperty:ht,defineProperties:ut,getOwnPropertyDescriptor:K,getOwnPropertyNames:te,getOwnPropertySymbols:se});var Z=p(function(){F.f(1)});l(l.S+l.F*Z,"Object",{getOwnPropertySymbols:function(G){return F.f(E(G))}}),ie&&l(l.S+l.F*(!De||p(function(){var G=q();return oe([G])!="[null]"||oe({a:G})!="{}"||oe(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var le,he,Re=[G],Be=1;arguments.length>Be;)Re.push(arguments[Be++]);if(he=le=Re[1],(C(le)||G!==void 0)&&!He(G))return h(le)||(le=function(Ye,je){if(typeof he=="function"&&(je=he.call(this,Ye,je)),!He(je))return je}),Re[1]=le,oe.apply(ie,Re)}}),q.prototype[pe]||o(6)(q.prototype,pe,q.prototype.valueOf),g(q,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!o(8)(function(){return f(Object.preventExtensions({}))}),v=function(y){l(y,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(y,S){if(!s(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!u(y,i)){if(!f(y))return"F";if(!S)return"E";v(y)}return y[i].i},getWeak:function(y,S){if(!u(y,i)){if(!f(y))return!0;if(!S)return!1;v(y)}return y[i].w},onFreeze:function(y){return p&&g.NEED&&f(y)&&!u(y,i)&&v(y),y}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,v=f(l),g=u.f,y=0;v.length>y;)g.call(l,p=v[y++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),f=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(v,g){if(v=u(v),g=l(g,!0),f)try{return p(v,g)}catch{}if(c(v,g))return s(!i.f.call(v,g),v[g])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var h,_=f(arguments[x++]),C=m?s(_).concat(m(_)):s(_),E=C.length,w=0;E>w;)h=C[w++],i&&!b.call(_,h)||(y[h]=_[h]);return y}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var v=[],g=!0,y=!1,S=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(v.push(x.value),!p||v.length!==p);g=!0);}catch(b){y=!0,S=b}finally{try{!g&&m.return&&m.return()}finally{if(y)throw S}}return v}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,y=/^0o[0-7]+$/i,S=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,h=m||b||Function("return this")();function _(ae,Z,G){switch(G.length){case 0:return ae.call(Z);case 1:return ae.call(Z,G[0]);case 2:return ae.call(Z,G[0],G[1]);case 3:return ae.call(Z,G[0],G[1],G[2])}return ae.apply(Z,G)}function C(ae,Z){return!!(ae&&ae.length)&&function(G,le,he){if(le!=le)return function(Ye,je,Je,_e){for(var Fe=Ye.length,Ge=Je+(_e?1:-1);_e?Ge--:++Ge-1}function E(ae){return ae!=ae}function w(ae,Z){for(var G=ae.length,le=0;G--;)ae[G]===Z&&le++;return le}function O(ae,Z){for(var G=-1,le=ae.length,he=0,Re=[];++G2?k:void 0);function Te(ae){return de(ae)?ie(ae):{}}function ye(ae){return!(!de(ae)||function(Z){return!!M&&M in Z}(ae))&&(function(Z){var G=de(Z)?U.call(Z):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(ae)||function(Z){var G=!1;if(Z!=null&&typeof Z.toString!="function")try{G=!!(Z+"")}catch{}return G}(ae)?q:g).test(function(Z){if(Z!=null){try{return W.call(Z)}catch{}try{return Z+""}catch{}}return""}(ae))}function be(ae,Z,G,le){for(var he=-1,Re=ae.length,Be=G.length,Ye=-1,je=Z.length,Je=oe(Re-Be,0),_e=Array(je+Je),Fe=!le;++Ye1&&at.reverse(),_e&&je1?"& ":"")+Z[le],Z=Z.join(G>2?", ":" "),ae.replace(l,`{ +/* [wrapped with `+Z+`] */ +`)}function ut(ae,Z){return!!(Z=Z??9007199254740991)&&(typeof ae=="number"||S.test(ae))&&ae>-1&&ae%1==0&&ae1&&u--,c=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,l[g]=255*c;return l}},function(n,a,o){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,l=s||u||Function("return this")();function c(O,P,k){switch(k.length){case 0:return O.call(P);case 1:return O.call(P,k[0]);case 2:return O.call(P,k[0],k[1]);case 3:return O.call(P,k[0],k[1],k[2])}return O.apply(P,k)}function f(O,P){for(var k=-1,j=P.length,$=O.length;++k-1&&$%1==0&&$<=9007199254740991}(j.length)&&!function($){var F=function(z){var M=typeof z;return!!z&&(M=="object"||M=="function")}($)?g.call($):"";return F=="[object Function]"||F=="[object GeneratorFunction]"}(j)}(k)}(P)&&v.call(P,"callee")&&(!S.call(P,"callee")||g.call(P)=="[object Arguments]")}(O)||!!(x&&O&&O[x])}var h=Array.isArray,_,C,E,w=(C=function(O){var P=(O=function j($,F,z,M,W){var B=-1,U=$.length;for(z||(z=b),W||(W=[]);++B0&&z(q)?F>1?j(q,F-1,z,M,W):f(W,q):M||(W[W.length]=q)}return W}(O,1)).length,k=P;for(_;k--;)if(typeof O[k]!="function")throw new TypeError("Expected a function");return function(){for(var j=0,$=P?O[j].apply(this,arguments):arguments[0];++j2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var I,A=g(N);if(D){var L=g(this).constructor;I=Reflect.construct(A,arguments,L)}else I=A.apply(this,arguments);return x(this,I)}}o.r(a);var b=o(0),h=o.n(b);function _(){var N=this.constructor.getDerivedStateFromProps(this.props,this.state);N!=null&&this.setState(N)}function C(N){this.setState((function(D){var I=this.constructor.getDerivedStateFromProps(N,D);return I??null}).bind(this))}function E(N,D){try{var I=this.props,A=this.state;this.props=N,this.state=D,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(I,A)}finally{this.props=I,this.state=A}}function w(N){var D=N.prototype;if(!D||!D.isReactComponent)throw new Error("Can only polyfill class components");if(typeof N.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function")return N;var I=null,A=null,L=null;if(typeof D.componentWillMount=="function"?I="componentWillMount":typeof D.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof D.componentWillReceiveProps=="function"?A="componentWillReceiveProps":typeof D.UNSAFE_componentWillReceiveProps=="function"&&(A="UNSAFE_componentWillReceiveProps"),typeof D.componentWillUpdate=="function"?L="componentWillUpdate":typeof D.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),I!==null||A!==null||L!==null){var H=N.displayName||N.name,re=typeof N.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. + +`+H+" uses "+re+" but also contains the following legacy lifecycles:"+(I!==null?` + `+I:"")+(A!==null?` + `+A:"")+(L!==null?` + `+L:"")+` + +The above lifecycles should be removed. Learn more about this warning here: +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof N.getDerivedStateFromProps=="function"&&(D.componentWillMount=_,D.componentWillReceiveProps=C),typeof D.getSnapshotBeforeUpdate=="function"){if(typeof D.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");D.componentWillUpdate=E;var Y=D.componentDidUpdate;D.componentDidUpdate=function(Q,me,$e){var Ze=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:$e;Y.call(this,Q,me,Ze)}}return N}function O(N,D){if(N==null)return{};var I,A,L=function(re,Y){if(re==null)return{};var Q,me,$e={},Ze=Object.keys(re);for(me=0;me=0||($e[Q]=re[Q]);return $e}(N,D);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);for(A=0;A=0||Object.prototype.propertyIsEnumerable.call(N,I)&&(L[I]=N[I])}return L}function P(N){var D=function(I){return{}.toString.call(I).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(N);return D==="number"&&(D=isNaN(N)?"nan":(0|N)!=N?"float":"integer"),D}_.__suppressDeprecationWarning=!0,C.__suppressDeprecationWarning=!0,E.__suppressDeprecationWarning=!0;var k={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},j={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},$={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},F=o(45),z=function(N){var D=function(I){return{backgroundColor:I.base00,ellipsisColor:I.base09,braceColor:I.base07,expandedIcon:I.base0D,collapsedIcon:I.base0E,keyColor:I.base07,arrayKeyColor:I.base0C,objectSize:I.base04,copyToClipboard:I.base0F,copyToClipboardCheck:I.base0D,objectBorder:I.base02,dataTypes:{boolean:I.base0E,date:I.base0D,float:I.base0B,function:I.base0D,integer:I.base0F,string:I.base09,nan:I.base08,null:I.base0A,undefined:I.base05,regexp:I.base0A,background:I.base02},editVariable:{editIcon:I.base0E,cancelIcon:I.base09,removeIcon:I.base09,addIcon:I.base0E,checkIcon:I.base0E,background:I.base01,color:I.base0A,border:I.base07},addKeyModal:{background:I.base05,border:I.base04,color:I.base0A,labelColor:I.base01},validationFailure:{background:I.base09,iconColor:I.base01,fontColor:I.base01}}}(N);return{"app-container":{fontFamily:$.globalFontFamily,cursor:$.globalCursor,backgroundColor:D.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:D.ellipsisColor,fontSize:$.ellipsisFontSize,lineHeight:$.ellipsisLineHeight,cursor:$.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:$.braceCursor,fontWeight:$.braceFontWeight,color:D.braceColor},"expanded-icon":{color:D.expandedIcon},"collapsed-icon":{color:D.collapsedIcon},colon:{display:"inline-block",margin:$.keyMargin,color:D.keyColor,verticalAlign:"top"},objectKeyVal:function(I,A){return{style:u({paddingTop:$.keyValPaddingTop,paddingRight:$.keyValPaddingRight,paddingBottom:$.keyValPaddingBottom,borderLeft:$.keyValBorderLeft+" "+D.objectBorder,":hover":{paddingLeft:A.paddingLeft-1+"px",borderLeft:$.keyValBorderHover+" "+D.objectBorder}},A)}},"object-key-val-no-border":{padding:$.keyValPadding},"pushed-content":{marginLeft:$.pushedContentMarginLeft},variableValue:function(I,A){return{style:u({display:"inline-block",paddingRight:$.variableValuePaddingRight,position:"relative"},A)}},"object-name":{display:"inline-block",color:D.keyColor,letterSpacing:$.keyLetterSpacing,fontStyle:$.keyFontStyle,verticalAlign:$.keyVerticalAlign,opacity:$.keyOpacity,":hover":{opacity:$.keyOpacityHover}},"array-key":{display:"inline-block",color:D.arrayKeyColor,letterSpacing:$.keyLetterSpacing,fontStyle:$.keyFontStyle,verticalAlign:$.keyVerticalAlign,opacity:$.keyOpacity,":hover":{opacity:$.keyOpacityHover}},"object-size":{color:D.objectSize,borderRadius:$.objectSizeBorderRadius,fontStyle:$.objectSizeFontStyle,margin:$.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:$.dataTypeFontSize,marginRight:$.dataTypeMarginRight,opacity:$.datatypeOpacity},boolean:{display:"inline-block",color:D.dataTypes.boolean},date:{display:"inline-block",color:D.dataTypes.date},"date-value":{marginLeft:$.dateValueMarginLeft},float:{display:"inline-block",color:D.dataTypes.float},function:{display:"inline-block",color:D.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:D.dataTypes.integer},string:{display:"inline-block",color:D.dataTypes.string},nan:{display:"inline-block",color:D.dataTypes.nan,fontSize:$.nanFontSize,fontWeight:$.nanFontWeight,backgroundColor:D.dataTypes.background,padding:$.nanPadding,borderRadius:$.nanBorderRadius},null:{display:"inline-block",color:D.dataTypes.null,fontSize:$.nullFontSize,fontWeight:$.nullFontWeight,backgroundColor:D.dataTypes.background,padding:$.nullPadding,borderRadius:$.nullBorderRadius},undefined:{display:"inline-block",color:D.dataTypes.undefined,fontSize:$.undefinedFontSize,padding:$.undefinedPadding,borderRadius:$.undefinedBorderRadius,backgroundColor:D.dataTypes.background},regexp:{display:"inline-block",color:D.dataTypes.regexp},"copy-to-clipboard":{cursor:$.clipboardCursor},"copy-icon":{color:D.copyToClipboard,fontSize:$.iconFontSize,marginRight:$.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:D.copyToClipboardCheck,marginLeft:$.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:$.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:$.metaDataPadding},"icon-container":{display:"inline-block",width:$.iconContainerWidth},tooltip:{padding:$.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.removeIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.addIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.editIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:$.iconCursor,color:D.editVariable.checkIcon,fontSize:$.iconFontSize,paddingRight:$.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:$.iconCursor,color:D.editVariable.cancelIcon,fontSize:$.iconFontSize,paddingRight:$.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:$.editInputMinWidth,borderRadius:$.editInputBorderRadius,backgroundColor:D.editVariable.background,color:D.editVariable.color,padding:$.editInputPadding,marginRight:$.editInputMarginRight,fontFamily:$.editInputFontFamily},"detected-row":{paddingTop:$.detectedRowPaddingTop},"key-modal-request":{position:$.addKeyCoverPosition,top:$.addKeyCoverPositionPx,left:$.addKeyCoverPositionPx,right:$.addKeyCoverPositionPx,bottom:$.addKeyCoverPositionPx,backgroundColor:$.addKeyCoverBackground},"key-modal":{width:$.addKeyModalWidth,backgroundColor:D.addKeyModal.background,marginLeft:$.addKeyModalMargin,marginRight:$.addKeyModalMargin,padding:$.addKeyModalPadding,borderRadius:$.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:D.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:D.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:D.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:D.addKeyModal.labelColor,fontSize:$.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:D.editVariable.addIcon,fontSize:$.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:D.ellipsisColor,fontSize:$.ellipsisFontSize,lineHeight:$.ellipsisLineHeight,cursor:$.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:D.validationFailure.fontColor,backgroundColor:D.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:D.validationFailure.iconColor,fontSize:$.iconFontSize,transform:"rotate(45deg)"}}};function M(N,D,I){return N||console.error("theme has not been set"),function(A){var L=k;return A!==!1&&A!=="none"||(L=j),Object(F.createStyling)(z,{defaultBase16:L})(A)}(N)(D,I)}var W=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=(A.rjvId,A.type_name),H=A.displayDataTypes,re=A.theme;return H?h.a.createElement("span",Object.assign({className:"data-type-label"},M(re,"data-type-label")),L):null}}]),I}(h.a.PureComponent),B=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"boolean"),h.a.createElement(W,Object.assign({type_name:"bool"},A)),A.value?"true":"false")}}]),I}(h.a.PureComponent),U=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"date"),h.a.createElement(W,Object.assign({type_name:"date"},A)),h.a.createElement("span",Object.assign({className:"date-value"},M(A.theme,"date-value")),A.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),I}(h.a.PureComponent),q=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"float"),h.a.createElement(W,Object.assign({type_name:"float"},A)),this.props.value)}}]),I}(h.a.PureComponent);function ie(N,D){(D==null||D>N.length)&&(D=N.length);for(var I=0,A=new Array(D);I"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(I=oe(N))||D&&N&&typeof N.length=="number"){I&&(N=I);var A=0,L=function(){};return{s:L,n:function(){return A>=N.length?{done:!0}:{done:!1,value:N[A++]}},e:function(Q){throw Q},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,re=!0,Y=!1;return{s:function(){I=N[Symbol.iterator]()},n:function(){var Q=I.next();return re=Q.done,Q},e:function(Q){Y=!0,H=Q},f:function(){try{re||I.return==null||I.return()}finally{if(Y)throw H}}}}function pe(N){return function(D){if(Array.isArray(D))return ie(D)}(N)||function(D){if(typeof Symbol<"u"&&Symbol.iterator in Object(D))return Array.from(D)}(N)||oe(N)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),ye=new(o(47)).Dispatcher,be=new(function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reL&&(Y.style.cursor="pointer",this.state.collapsed&&(re=h.a.createElement("span",null,re.substring(0,L),h.a.createElement("span",M(H,"ellipsis")," ...")))),h.a.createElement("div",M(H,"string"),h.a.createElement(W,Object.assign({type_name:"string"},A)),h.a.createElement("span",Object.assign({className:"string-value"},Y,{onClick:this.toggleCollapsed}),'"',re,'"'))}}]),I}(h.a.PureComponent),He=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){return h.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),I}(h.a.PureComponent);function ht(){return(ht=Object.assign||function(N){for(var D=1;D=0||(vo[kr]=lt[kr]);return vo}(N,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),$e,Ze=me.value!==void 0,tt=Object(b.useRef)(null),St=te(tt,D),st=Object(b.useRef)(0),xt=Object(b.useRef)(),jt=function(){var lt=tt.current,Dt=I&&xt.current?xt.current:function(ot){var Vt=window.getComputedStyle(ot);if(Vt===null)return null;var mr,vt=(mr=Vt,ae.reduce(function(Go,Qo){return Go[Qo]=mr[Qo],Go},{})),Gr=vt.boxSizing;return Gr===""?null:(Z&&Gr==="border-box"&&(vt.width=parseFloat(vt.width)+parseFloat(vt.borderRightWidth)+parseFloat(vt.borderLeftWidth)+parseFloat(vt.paddingRight)+parseFloat(vt.paddingLeft)+"px"),{sizingStyle:vt,paddingSize:parseFloat(vt.paddingBottom)+parseFloat(vt.paddingTop),borderSize:parseFloat(vt.borderBottomWidth)+parseFloat(vt.borderTopWidth)})}(lt);if(Dt){xt.current=Dt;var kr=function(ot,Vt,mr,vt){mr===void 0&&(mr=1),vt===void 0&&(vt=1/0),fe||((fe=document.createElement("textarea")).setAttribute("tab-index","-1"),fe.setAttribute("aria-hidden","true"),de(fe)),fe.parentNode===null&&document.body.appendChild(fe);var Gr=ot.paddingSize,Go=ot.borderSize,Qo=ot.sizingStyle,YE=Qo.boxSizing;Object.keys(Qo).forEach(function(Zy){var pl=Zy;fe.style[pl]=Qo[pl]}),de(fe),fe.value=Vt;var kp=function(Zy,pl){var JE=Zy.scrollHeight;return pl.sizingStyle.boxSizing==="border-box"?JE+pl.borderSize:JE-pl.paddingSize}(fe,ot);fe.value="x";var Xy=fe.scrollHeight-Gr,Yy=Xy*mr;YE==="border-box"&&(Yy=Yy+Gr+Go),kp=Math.max(Yy,kp);var Jy=Xy*vt;return YE==="border-box"&&(Jy=Jy+Gr+Go),[kp=Math.min(Jy,kp),Xy]}(Dt,lt.value||lt.placeholder||"x",L,A),yn=kr[0],vo=kr[1];st.current!==yn&&(st.current=yn,lt.style.setProperty("height",yn+"px","important"),Q(yn,{rowHeight:vo}))}};return Object(b.useLayoutEffect)(jt),$e=V(jt),Object(b.useLayoutEffect)(function(){var lt=function(Dt){$e.current(Dt)};return window.addEventListener("resize",lt),function(){window.removeEventListener("resize",lt)}},[]),Object(b.createElement)("textarea",ht({},me,{onChange:function(lt){Ze||jt(),re(lt)},ref:St}))},le=Object(b.forwardRef)(G);function he(N){N=N.trim();try{if((N=JSON.stringify(JSON.parse(N)))[0]==="[")return Re("array",JSON.parse(N));if(N[0]==="{")return Re("object",JSON.parse(N));if(N.match(/\-?\d+\.\d+/)&&N.match(/\-?\d+\.\d+/)[0]===N)return Re("float",parseFloat(N));if(N.match(/\-?\d+e-\d+/)&&N.match(/\-?\d+e-\d+/)[0]===N)return Re("float",Number(N));if(N.match(/\-?\d+/)&&N.match(/\-?\d+/)[0]===N)return Re("integer",parseInt(N));if(N.match(/\-?\d+e\+\d+/)&&N.match(/\-?\d+e\+\d+/)[0]===N)return Re("integer",Number(N))}catch{}switch(N=N.toLowerCase()){case"undefined":return Re("undefined",void 0);case"nan":return Re("nan",NaN);case"null":return Re("null",null);case"true":return Re("boolean",!0);case"false":return Re("boolean",!1);default:if(N=Date.parse(N))return Re("date",new Date(N))}return Re(!1,null)}function Re(N,D){return{type:N,value:D}}var Be=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),I}(h.a.PureComponent),Ye=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),I}(h.a.PureComponent),je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),Je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),_e=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),I}(h.a.PureComponent),Fe=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),I}(h.a.PureComponent),Ge=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),I}(h.a.PureComponent),nt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),mt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),Ot=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),I}(h.a.PureComponent),kt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),I}(h.a.PureComponent),Pt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent);function at(N){return N||(N={}),{style:u(u({verticalAlign:"middle"},N),{},{color:N.color?N.color:"#000000",height:"1em",width:"1em"})}}var It=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).copiedTimer=null,L.handleCopy=function(){var H=document.createElement("textarea"),re=L.props,Y=re.clickCallback,Q=re.src,me=re.namespace;H.innerHTML=JSON.stringify(L.clipboardValue(Q),null," "),document.body.appendChild(H),H.select(),document.execCommand("copy"),document.body.removeChild(H),L.copiedTimer=setTimeout(function(){L.setState({copied:!1})},5500),L.setState({copied:!0},function(){typeof Y=="function"&&Y({src:Q,namespace:me,name:me[me.length-1]})})},L.getClippyIcon=function(){var H=L.props.theme;return L.state.copied?h.a.createElement("span",null,h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon"))),h.a.createElement("span",M(H,"copy-icon-copied"),"✔")):h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon")))},L.clipboardValue=function(H){switch(P(H)){case"function":case"regexp":return H.toString();default:return H}},L.state={copied:!1},L}return f(I,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var A=this.props,L=(A.src,A.theme),H=A.hidden,re=A.rowHovered,Y=M(L,"copy-to-clipboard").style,Q="inline";return H&&(Q="none"),h.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:re?"inline-block":"none"}},h.a.createElement("span",{style:u(u({},Y),{},{display:Q}),onClick:this.handleCopy},this.getClippyIcon()))}}]),I}(h.a.PureComponent),nr=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).getEditIcon=function(){var H=L.props,re=H.variable,Y=H.theme;return h.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(kt,Object.assign({className:"click-to-edit-icon"},M(Y,"editVarIcon"),{onClick:function(){L.prepopInput(re)}})))},L.prepopInput=function(H){if(L.props.onEdit!==!1){var re=function(Q){var me;switch(P(Q)){case"undefined":me="undefined";break;case"nan":me="NaN";break;case"string":me=Q;break;case"date":case"function":case"regexp":me=Q.toString();break;default:try{me=JSON.stringify(Q,null," ")}catch{me=""}}return me}(H.value),Y=he(re);L.setState({editMode:!0,editValue:re,parsedInput:{type:Y.type,value:Y.value}})}},L.getRemoveIcon=function(){var H=L.props,re=H.variable,Y=H.namespace,Q=H.theme,me=H.rjvId;return h.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(Q,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:me,data:{name:re.name,namespace:Y,existing_value:re.value,variable_removed:!0}})}})))},L.getValue=function(H,re){var Y=!re&&H.type,Q=S(L).props;switch(Y){case!1:return L.getEditInput();case"string":return h.a.createElement(Ae,Object.assign({value:H.value},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:H.value},Q));case"float":return h.a.createElement(q,Object.assign({value:H.value},Q));case"boolean":return h.a.createElement(B,Object.assign({value:H.value},Q));case"function":return h.a.createElement(ve,Object.assign({value:H.value},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:H.value},Q));case"regexp":return h.a.createElement(Ne,Object.assign({value:H.value},Q));default:return h.a.createElement("div",{className:"object-value"},JSON.stringify(H.value))}},L.getEditInput=function(){var H=L.props.theme,re=L.state.editValue;return h.a.createElement("div",null,h.a.createElement(le,Object.assign({type:"text",inputRef:function(Y){return Y&&Y.focus()},value:re,className:"variable-editor",onChange:function(Y){var Q=Y.target.value,me=he(Q);L.setState({editValue:Q,parsedInput:{type:me.type,value:me.value}})},onKeyDown:function(Y){switch(Y.key){case"Escape":L.setState({editMode:!1,editValue:""});break;case"Enter":(Y.ctrlKey||Y.metaKey)&&L.submitEdit(!0)}Y.stopPropagation()},placeholder:"update this value",minRows:2},M(H,"edit-input"))),h.a.createElement("div",M(H,"edit-icon-container"),h.a.createElement(nt,Object.assign({className:"edit-cancel"},M(H,"cancel-icon"),{onClick:function(){L.setState({editMode:!1,editValue:""})}})),h.a.createElement(Pt,Object.assign({className:"edit-check string-value"},M(H,"check-icon"),{onClick:function(){L.submitEdit()}})),h.a.createElement("div",null,L.showDetected())))},L.submitEdit=function(H){var re=L.props,Y=re.variable,Q=re.namespace,me=re.rjvId,$e=L.state,Ze=$e.editValue,tt=$e.parsedInput,St=Ze;H&&tt.type&&(St=tt.value),L.setState({editMode:!1}),ye.dispatch({name:"VARIABLE_UPDATED",rjvId:me,data:{name:Y.name,namespace:Q,existing_value:Y.value,new_value:St,variable_removed:!1}})},L.showDetected=function(){var H=L.props,re=H.theme,Y=(H.variable,H.namespace,H.rjvId,L.state.parsedInput),Q=(Y.type,Y.value,L.getDetectedInput());if(Q)return h.a.createElement("div",null,h.a.createElement("div",M(re,"detected-row"),Q,h.a.createElement(Pt,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},M(re,"check-icon").style),onClick:function(){L.submitEdit(!0)}})))},L.getDetectedInput=function(){var H=L.state.parsedInput,re=H.type,Y=H.value,Q=S(L).props,me=Q.theme;if(re!==!1)switch(re.toLowerCase()){case"object":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"{"),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"}"));case"array":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"["),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"]"));case"string":return h.a.createElement(Ae,Object.assign({value:Y},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:Y},Q));case"float":return h.a.createElement(q,Object.assign({value:Y},Q));case"boolean":return h.a.createElement(B,Object.assign({value:Y},Q));case"function":return h.a.createElement(ve,Object.assign({value:Y},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:new Date(Y)},Q))}},L.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.variable,re=L.singleIndent,Y=L.type,Q=L.theme,me=L.namespace,$e=L.indentWidth,Ze=L.enableClipboard,tt=L.onEdit,St=L.onDelete,st=L.onSelect,xt=L.displayArrayKey,jt=L.quotesOnKeys,lt=this.state.editMode;return h.a.createElement("div",Object.assign({},M(Q,"objectKeyVal",{paddingLeft:$e*re}),{onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))},className:"variable-row",key:H.name}),Y=="array"?xt?h.a.createElement("span",Object.assign({},M(Q,"array-key"),{key:H.name+"_"+me}),H.name,h.a.createElement("div",M(Q,"colon"),":")):null:h.a.createElement("span",null,h.a.createElement("span",Object.assign({},M(Q,"object-name"),{className:"object-key",key:H.name+"_"+me}),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",{style:{display:"inline-block"}},H.name),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(Q,"colon"),":")),h.a.createElement("div",Object.assign({className:"variable-value",onClick:st===!1&&tt===!1?null:function(Dt){var kr=pe(me);(Dt.ctrlKey||Dt.metaKey)&&tt!==!1?A.prepopInput(H):st!==!1&&(kr.shift(),st(u(u({},H),{},{namespace:kr})))}},M(Q,"variableValue",{cursor:st===!1?"default":"pointer"})),this.getValue(H,lt)),Ze?h.a.createElement(It,{rowHovered:this.state.hovered,hidden:lt,src:H.value,clickCallback:Ze,theme:Q,namespace:[].concat(pe(me),[H.name])}):null,tt!==!1&<==0?this.getEditIcon():null,St!==!1&<==0?this.getRemoveIcon():null)}}]),I}(h.a.PureComponent),mn=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re0?Ze:null,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!1,key_name:null};P(tt)==="object"?ye.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:St,data:xt}):ye.dispatch({name:"VARIABLE_ADDED",rjvId:St,data:u(u({},xt),{},{new_value:[].concat(pe(tt),[null])})})}})))},A.getRemoveObject=function(Y){var Q=A.props,me=Q.theme,$e=(Q.hover,Q.namespace),Ze=Q.name,tt=Q.src,St=Q.rjvId;if($e.length!==1)return h.a.createElement("span",{className:"click-to-remove",style:{display:Y?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(me,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:St,data:{name:Ze,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!0}})}})))},A.render=function(){var Y=A.props,Q=Y.theme,me=Y.onDelete,$e=Y.onAdd,Ze=Y.enableClipboard,tt=Y.src,St=Y.namespace,st=Y.rowHovered;return h.a.createElement("div",Object.assign({},M(Q,"object-meta-data"),{className:"object-meta-data",onClick:function(xt){xt.stopPropagation()}}),A.getObjectSize(),Ze?h.a.createElement(It,{rowHovered:st,clickCallback:Ze,src:tt,theme:Q,namespace:St}):null,$e!==!1?A.getAddAttribute(st):null,me!==!1?A.getRemoveObject(st):null)},A}return I}(h.a.PureComponent);function qr(N){var D=N.parent_type,I=N.namespace,A=N.quotesOnKeys,L=N.theme,H=N.jsvRoot,re=N.name,Y=N.displayArrayKey,Q=N.name?N.name:"";return!H||re!==!1&&re!==null?D=="array"?Y?h.a.createElement("span",Object.assign({},M(L,"array-key"),{key:I}),h.a.createElement("span",{className:"array-key"},Q),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null):h.a.createElement("span",Object.assign({},M(L,"object-name"),{key:I}),h.a.createElement("span",{className:"object-key"},A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",null,Q),A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null)}function Nr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(Fe,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));case"square":return h.a.createElement(je,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));default:return h.a.createElement(Be,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}))}}function Tr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(_e,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h.a.createElement(Je,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));default:return h.a.createElement(Ye,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}))}}var Mn=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).toggleCollapsed=function(H){var re=[];for(var Y in L.state.expanded)re.push(L.state.expanded[Y]);re[H]=!re[H],L.setState({expanded:re})},L.state={expanded:[]},L}return f(I,[{key:"getExpandedIcon",value:function(A){var L=this.props,H=L.theme,re=L.iconStyle;return this.state.expanded[A]?h.a.createElement(Nr,{theme:H,iconStyle:re}):h.a.createElement(Tr,{theme:H,iconStyle:re})}},{key:"render",value:function(){var A=this,L=this.props,H=L.src,re=L.groupArraysAfterLength,Y=(L.depth,L.name),Q=L.theme,me=L.jsvRoot,$e=L.namespace,Ze=(L.parent_type,O(L,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tt=0,St=5*this.props.indentWidth;me||(tt=5*this.props.indentWidth);var st=re,xt=Math.ceil(H.length/st);return h.a.createElement("div",Object.assign({className:"object-key-val"},M(Q,me?"jsv-root":"objectKeyVal",{paddingLeft:tt})),h.a.createElement(qr,this.props),h.a.createElement("span",null,h.a.createElement(mn,Object.assign({size:H.length},this.props))),pe(Array(xt)).map(function(jt,lt){return h.a.createElement("div",Object.assign({key:lt,className:"object-key-val array-group"},M(Q,"objectKeyVal",{marginLeft:6,paddingLeft:St})),h.a.createElement("span",M(Q,"brace-row"),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container"),{onClick:function(Dt){A.toggleCollapsed(lt)}}),A.getExpandedIcon(lt)),A.state.expanded[lt]?h.a.createElement($r,Object.assign({key:Y+lt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:st,index_offset:lt*st,src:H.slice(lt*st,lt*st+st),namespace:$e,type:"array",parent_type:"array_group",theme:Q},Ze)):h.a.createElement("span",Object.assign({},M(Q,"brace"),{onClick:function(Dt){A.toggleCollapsed(lt)},className:"array-group-brace"}),"[",h.a.createElement("div",Object.assign({},M(Q,"array-group-meta-data"),{className:"array-group-meta-data"}),h.a.createElement("span",Object.assign({className:"object-size"},M(Q,"object-size")),lt*st," - ",lt*st+st>H.length?H.length:lt*st+st)),"]")))}))}}]),I}(h.a.PureComponent),Kr=function(N){v(I,N);var D=m(I);function I(A){var L;l(this,I),(L=D.call(this,A)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){we.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(re,Y,Q){return h.a.createElement("div",{className:"pushed-content object-container"},h.a.createElement("div",Object.assign({className:"object-content"},M(L.props.theme,"pushed-content")),L.renderObjectContents(Y,Q)))},L.getEllipsis=function(){return L.state.size===0?null:h.a.createElement("div",Object.assign({},M(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(re){var Y=L.props,Q=(Y.rjvId,Y.theme,L.state),me=Q.size,$e=Q.hovered;return h.a.createElement(mn,Object.assign({rowHovered:$e,size:me},L.props))},L.renderObjectContents=function(re,Y){var Q,me=L.props,$e=me.depth,Ze=me.parent_type,tt=me.index_offset,St=me.groupArraysAfterLength,st=me.namespace,xt=L.state.object_type,jt=[],lt=Object.keys(re||{});return L.props.sortKeys&&xt!=="array"&&(lt=lt.sort()),lt.forEach(function(Dt){if(Q=new Ko(Dt,re[Dt]),Ze==="array_group"&&tt&&(Q.name=parseInt(Q.name)+tt),re.hasOwnProperty(Dt))if(Q.type==="object")jt.push(h.a.createElement($r,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),parent_type:xt},Y)));else if(Q.type==="array"){var kr=$r;St&&Q.value.length>St&&(kr=Mn),jt.push(h.a.createElement(kr,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),type:"array",parent_type:xt},Y)))}else jt.push(h.a.createElement(nr,Object.assign({key:Q.name+"_"+st,variable:Q,singleIndent:5,namespace:st,type:L.props.type},Y)))}),jt};var H=I.getState(A);return L.state=u(u({},H),{},{prevProps:{}}),L}return f(I,[{key:"getBraceStart",value:function(A,L){var H=this,re=this.props,Y=re.src,Q=re.theme,me=re.iconStyle;if(re.parent_type==="array_group")return h.a.createElement("span",null,h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{"),L?this.getObjectMetaData(Y):null);var $e=L?Nr:Tr;return h.a.createElement("span",null,h.a.createElement("span",Object.assign({onClick:function(Ze){H.toggleCollapsed()}},M(Q,"brace-row")),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container")),h.a.createElement($e,{theme:Q,iconStyle:me})),h.a.createElement(qr,this.props),h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{")),L?this.getObjectMetaData(Y):null)}},{key:"render",value:function(){var A=this,L=this.props,H=L.depth,re=L.src,Y=(L.namespace,L.name,L.type,L.parent_type),Q=L.theme,me=L.jsvRoot,$e=L.iconStyle,Ze=O(L,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tt=this.state,St=tt.object_type,st=tt.expanded,xt={};return me||Y==="array_group"?Y==="array_group"&&(xt.borderLeft=0,xt.display="inline"):xt.paddingLeft=5*this.props.indentWidth,h.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))}},M(Q,me?"jsv-root":"objectKeyVal",xt)),this.getBraceStart(St,st),st?this.getObjectContent(H,re,u({theme:Q,iconStyle:$e},Ze)):this.getEllipsis(),h.a.createElement("span",{className:"brace-row"},h.a.createElement("span",{style:u(u({},M(Q,"brace").style),{},{paddingLeft:st?"3px":"0px"})},St==="array"?"]":"}"),st?null:this.getObjectMetaData(re)))}}],[{key:"getDerivedStateFromProps",value:function(A,L){var H=L.prevProps;return A.src!==H.src||A.collapsed!==H.collapsed||A.name!==H.name||A.namespace!==H.namespace||A.rjvId!==H.rjvId?u(u({},I.getState(A)),{},{prevProps:A}):null}}]),I}(h.a.PureComponent);Kr.getState=function(N){var D=Object.keys(N.src).length,I=(N.collapsed===!1||N.collapsed!==!0&&N.collapsed>N.depth)&&(!N.shouldCollapse||N.shouldCollapse({name:N.name,src:N.src,type:P(N.src),namespace:N.namespace})===!1)&&D!==0;return{expanded:we.get(N.rjvId,N.namespace,"expanded",I),object_type:N.type==="array"?"array":"object",parent_type:N.type==="array"?"array":"object",size:D,hovered:!1}};var Ko=function N(D,I){l(this,N),this.name=D,this.value=I,this.type=P(I)};w(Kr);var $r=Kr,ho=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reY.groupArraysAfterLength&&(me=Mn),h.a.createElement("div",{className:"pretty-json-container object-container"},h.a.createElement("div",{className:"object-content"},h.a.createElement(me,Object.assign({namespace:Q,depth:0,jsvRoot:!0},Y))))},A}return I}(h.a.PureComponent),X=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).closeModal=function(){ye.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:A.input?A.input:""},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.theme,re=L.rjvId,Y=L.isValid,Q=this.state.input,me=Y(Q);return h.a.createElement("div",Object.assign({className:"key-modal-request"},M(H,"key-modal-request"),{onClick:this.closeModal}),h.a.createElement("div",Object.assign({},M(H,"key-modal"),{onClick:function($e){$e.stopPropagation()}}),h.a.createElement("div",M(H,"key-modal-label"),"Key Name:"),h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("input",Object.assign({},M(H,"key-modal-input"),{className:"key-modal-input",ref:function($e){return $e&&$e.focus()},spellCheck:!1,value:Q,placeholder:"...",onChange:function($e){A.setState({input:$e.target.value})},onKeyPress:function($e){me&&$e.key==="Enter"?A.submit():$e.key==="Escape"&&A.closeModal()}})),me?h.a.createElement(Pt,Object.assign({},M(H,"key-modal-submit"),{className:"key-modal-submit",onClick:function($e){return A.submit()}})):null),h.a.createElement("span",M(H,"key-modal-cancel"),h.a.createElement(Ot,Object.assign({},M(H,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ye.dispatch({rjvId:re,name:"RESET"})}})))))}}]),I}(h.a.PureComponent),ee=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re{const e=_r();return R.jsx(dOe,{...e,children:R.jsx(EL,{})})},U$e=e=>R.jsx(rOe,{...e,children:R.jsx(EL,{})}),EL=e=>R.jsxs(vOe,{...e,children:[R.jsx(Nn,{disabled:!0,source:"id",helperText:"Job id. Must be unique, it's a copy of name."}),R.jsx(Nn,{source:"name",helperText:"Job name. Must be unique, acts as the id.",validate:Xl()}),R.jsx(Nn,{source:"displayname",helperText:"Display name of the job. If present, displayed instead of the name."}),R.jsx(Nn,{source:"timezone",helperText:"The timezone where the cron expression will be evaluated in."}),R.jsx(Nn,{source:"schedule",helperText:"Cron expression for the job. When to run the job.",validate:Xl()}),R.jsx(Nn,{source:"owner",helperText:"Arbitrary string indicating the owner of the job.",disabled:!0}),R.jsx(Nn,{source:"owner_email",helperText:"Email address to use for notifications."}),R.jsx(Nn,{source:"parent_job",helperText:"Job id of job that this job is dependent upon."}),R.jsx(rw,{source:"ephemeral",helperText:"Delete the job after the first successful execution."}),R.jsx(PEe,{source:"expires_at",helperText:"The job will not be executed after this time."}),R.jsx(yN,{source:"concurrency",choices:[{id:"allow",name:"Allow"},{id:"forbid",name:"Forbid"}],helperText:"Concurrency policy for this job (allow, forbid)."}),R.jsx(Sh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Processor plugins to use for this job."}),R.jsx(Sh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Tags of the target servers to run this job against."}),R.jsx(Sh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Job metadata describes the job and allows filtering from the API."}),R.jsx(Nn,{source:"executor",helperText:"Executor plugin to be used in this job.",validate:Xl()}),R.jsx(Sh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!0,enableClipboard:!1,displayDataTypes:!1},helperText:"Configuration arguments for the specific executor.",validate:Xl()}),R.jsx(rw,{source:"disabled",helperText:"Is this job disabled?"}),R.jsx(FEe,{source:"retries",helperText:"Number of times to retry a job that failed an execution."})]});var WE={},W$e=it;Object.defineProperty(WE,"__esModule",{value:!0});var OL=WE.default=void 0,H$e=W$e(ct()),q$e=R;OL=WE.default=(0,H$e.default)((0,q$e.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const K$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}/toggle`,{method:"POST"}).then(()=>{r("Job toggled"),t()}).catch(i=>{r("Error on toggle job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Toggle",onClick:o,disabled:n,children:R.jsx(OL,{})})},G$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}`,{method:"POST"}).then(()=>{r("Success running job"),t()}).catch(i=>{r("Error on running job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Run",onClick:o,disabled:n,children:R.jsx(Gy,{})})},Q$e=e=>(e.record!==void 0&&e.source!==void 0&&e.record[e.source]==="0001-01-01T00:00:00Z"&&(e.record[e.source]=null),R.jsx(Ya,{...e}));var HE={},X$e=it;Object.defineProperty(HE,"__esModule",{value:!0});var PL=HE.default=void 0,Y$e=X$e(ct()),J$e=R;PL=HE.default=(0,Y$e.default)((0,J$e.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"}),"BatteryFull");const Z$e=({basePath:e,data:t,resource:r})=>R.jsxs(M5,{children:[R.jsx(G$e,{}),R.jsx(K$e,{}),R.jsx(uE,{record:t})]}),eke=e=>e.record!==void 0&&e.record.finished_at===null?R.jsx(kn,{title:"Running",children:R.jsx(Hy,{})}):R.jsx(SN,{...e}),tke=({record:e})=>{const t=ur(),[r,n]=d.useState(!1),a=()=>{n(!0),fetch(`${fl}/jobs/${e.job_name}/executions/${e.id}`).then(o=>{if(o.ok)return t("Success loading full output"),o.json();throw o}).then(o=>{e.output_truncated=!1,e.output=o.output}).catch(o=>{t("Error on loading full output",{type:"warning"})}).finally(()=>{n(!1)})};return R.jsx(Hr,{label:"Load full output",onClick:a,disabled:r,children:R.jsx(PL,{})})},rke=({id:e,record:t,resource:r})=>R.jsxs("div",{className:"execution-output",children:[t.output_truncated?R.jsx("div",{children:R.jsx(tke,{record:t})}):"",t.output||"Nothing to show"]}),nke=e=>R.jsx(ROe,{actions:R.jsx(Z$e,{...e}),...e,children:R.jsxs($N,{children:[R.jsxs(Pw,{label:"summary",children:[R.jsx(fr,{source:"name"}),R.jsx(fr,{source:"timezone"}),R.jsx(fr,{source:"schedule"}),R.jsx(Ya,{label:"Last success",source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(fr,{source:"status"}),R.jsx(fr,{source:"concurrency"}),R.jsx(SN,{source:"ephemeral"}),R.jsx(Ya,{source:"expires_at",showTime:!0}),R.jsx(Ya,{source:"next",sortable:!1,showTime:!0}),R.jsx(wh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1}}),R.jsx(fr,{source:"executor"}),R.jsx(wh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}})]}),R.jsx(Pw,{label:"executions",path:"executions",children:R.jsx(HOe,{reference:"executions",target:"jobs",label:"Executions",children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(rke,{...e}),children:[R.jsx(fr,{source:"id"}),R.jsx(fr,{source:"group",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(Ya,{source:"started_at",showTime:!0}),R.jsx(Q$e,{source:"finished_at",showTime:!0}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(eke,{source:"success",sortable:!1}),R.jsx(qd,{source:"attempt"})]})})})]})}),ake={list:B$e,edit:V$e,create:U$e,show:nke,icon:Hy},oke=({id:e,record:t,resource:r})=>R.jsx("div",{className:"execution-output",children:t.output||"Empty output"}),ike=e=>R.jsx(TE,{...e,pagination:!1,children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(oke,{}),children:[R.jsx(fr,{source:"id",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(Ya,{source:"started_at",sortable:!1,showTime:!0})]})});var qE={},ske=it;Object.defineProperty(qE,"__esModule",{value:!0});var RL=qE.default=void 0,lke=ske(ct()),uke=R;RL=qE.default=(0,lke.default)((0,uke.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book");class cke extends d.Component{constructor(t){super(t),this.state={date:new Date}}componentDidMount(){this.timer=setInterval(()=>this.setState({date:new Date}),1e3)}componentWillUnmount(){clearInterval(this.timer)}render(){return R.jsx("div",{className:"clock",children:R.jsx("div",{children:this.state.date.toLocaleTimeString()})})}}const dke=""+new URL("dkron-logo-2b1c801f.png",import.meta.url).href,j0="CustomAppBar",_u={title:`${j0}-title`,spacer:`${j0}-spacer`,logo:`${j0}-logo`},fke=ne(h5)({[`& .${_u.title}`]:{flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[`& .${_u.spacer}`]:{flex:1},[`& .${_u.logo}`]:{maxWidth:"125px"}});d.forwardRef((e,t)=>R.jsx(xp,{ref:t,to:"/settings",primaryText:"Settings",leftIcon:R.jsx(eE,{}),onClick:e.onClick}));const pke=e=>R.jsx(UC,{...e,children:R.jsx(xp,{to:"https://dkron.io/docs/basics/getting-started",primaryText:"Docs",leftIcon:R.jsx(RL,{})})}),hke=e=>R.jsxs(fke,{...e,elevation:1,userMenu:R.jsx(pke,{}),children:[R.jsx(_t,{variant:"h6",color:"inherit",className:_u.title,id:"react-admin-title"}),R.jsx("div",{children:R.jsx(zOe,{to:"/",color:"inherit",underline:"none",children:R.jsx("img",{src:dke,alt:"logo",className:_u.logo})})}),R.jsx("span",{className:_u.spacer}),R.jsx(cke,{})]}),vke=e=>R.jsx(O5,{...e,size:200}),gke=e=>R.jsx(j5,{...e,appBar:hke,sidebar:vke});const mke={login:({token:e})=>(localStorage.setItem("token",e),Promise.resolve()),logout:()=>(localStorage.removeItem("token"),Promise.resolve()),checkAuth:()=>localStorage.getItem("token")?Promise.resolve():Promise.reject(),checkError:e=>{const t=e.status;return t===401||t===403?(localStorage.removeItem("token"),Promise.reject()):Promise.resolve()},getIdentity:()=>Promise.resolve(),getPermissions:()=>Promise.resolve()},TL=({record:e})=>e===void 0?null:R.jsx("ul",{children:Object.keys(e.Tags).map(t=>R.jsx(_fe,{label:t+": "+e.Tags[t]}))});TL.defaultProps={addLabel:!0};var KE={},yke=it;Object.defineProperty(KE,"__esModule",{value:!0});var $L=KE.default=void 0,bke=yke(ct()),xke=R;$L=KE.default=(0,bke.default)((0,xke.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");const $p=({icon:e,title:t,subtitle:r,to:n,children:a})=>R.jsxs(oo,{sx:{minHeight:52,display:"flex",flexDirection:"column",flex:"1","& a":{textDecoration:"none",color:"inherit"}},children:[R.jsx(Fo,{to:n,children:R.jsxs(Qh,{sx:{position:"relative",overflow:"hidden",padding:"16px",display:"flex",justifyContent:"space-between",alignItems:"center","& .icon":{color:"secondary.main"},"&:before":{position:"absolute",top:"50%",left:0,display:"block",content:"''",height:"200%",aspectRatio:"1",transform:"translate(-30%, -60%)",borderRadius:"50%",backgroundColor:"secondary.main",opacity:.15}},children:[R.jsx(Qh,{width:"3em",className:"icon",children:d.createElement(e,{fontSize:"large"})}),R.jsxs(Qh,{textAlign:"right",children:[R.jsx(_t,{color:"textSecondary",children:t}),R.jsx(_t,{variant:"h5",component:"h2",children:r||" "})]})]})}),a&&R.jsx(mg,{}),a]}),wke=({value:e})=>R.jsx($p,{to:"/jobs",icon:$L,title:"Leader",subtitle:e});var GE={},Ske=it;Object.defineProperty(GE,"__esModule",{value:!0});var kL=GE.default=void 0,_ke=Ske(ct()),Cke=R;kL=GE.default=(0,_ke.default)((0,Cke.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown");const Eke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"failed"}',icon:kL,title:"Failed Jobs",subtitle:e});var QE={},Oke=it;Object.defineProperty(QE,"__esModule",{value:!0});var jL=QE.default=void 0,Pke=Oke(ct()),Rke=R;jL=QE.default=(0,Pke.default)((0,Rke.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp");const Tke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"success"}',icon:jL,title:"Successful Jobs",subtitle:e});var XE={},$ke=it;Object.defineProperty(XE,"__esModule",{value:!0});var IL=XE.default=void 0,kke=$ke(ct()),jke=R;IL=XE.default=(0,kke.default)((0,jke.jsx)("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"}),"NewReleases");const Ike=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"untriggered"}',icon:IL,title:"Untriggered Jobs",subtitle:e}),Ake=({value:e})=>R.jsx($p,{to:"/jobs",icon:Hy,title:"Total Jobs",subtitle:e});let Mke={basePath:"/members",count:10,hasCreate:!1,hasEdit:!1,hasList:!0,hasShow:!1,location:{pathname:"/",search:"",hash:"",state:void 0},match:{path:"/",url:"/",isExact:!0,params:{}},options:{},permissions:null,resource:"members"};const I0={flex:{display:"flex"},flexColumn:{display:"flex",flexDirection:"column"},leftCol:{flex:1,marginRight:"0.5em"},rightCol:{flex:1,marginLeft:"0.5em"},singleCol:{marginTop:"1em",marginBottom:"1em"}},_h=()=>R.jsx("span",{style:{width:"1em"}}),Fke=()=>R.jsxs("div",{children:[R.jsxs(oo,{children:[R.jsx(FT,{title:"Welcome"}),R.jsx(Di,{children:R.jsx("div",{style:I0.flex,children:R.jsx("div",{style:I0.leftCol,children:R.jsxs("div",{style:I0.flex,children:[R.jsx(wke,{value:window.DKRON_LEADER||"devel"}),R.jsx(_h,{}),R.jsx(Ake,{value:window.DKRON_TOTAL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Tke,{value:window.DKRON_SUCCESSFUL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Eke,{value:window.DKRON_FAILED_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Ike,{value:window.DKRON_UNTRIGGERED_JOBS||"0"})]})})})})]}),R.jsxs(oo,{children:[R.jsx(FT,{title:"Nodes"}),R.jsx(Di,{children:R.jsx(TE,{...Mke,children:R.jsxs(Cp,{isRowSelectable:e=>!1,children:[R.jsx(fr,{source:"Name",sortable:!1}),R.jsx(fr,{source:"Addr",sortable:!1}),R.jsx(fr,{source:"Port",sortable:!1}),R.jsx(fr,{label:"Status",source:"statusText",sortable:!1}),R.jsx(TL,{source:"Tags",sortable:!1})]})})})]})]}),Nke=SL({label:{width:"10em",display:"inline-block"},button:{margin:"1em"}}),Lke=()=>(Nke(),R.jsxs(oo,{children:[R.jsx(dl,{title:"Settings"}),R.jsx(Di,{})]})),Dke=e=>{const[t,r]=d.useState(""),n=X3(),a=ur(),o=R.jsx(By,{}),{className:i}=e,[s,u]=Bn(!1),l=c=>{u(!0),n({token:t}).catch(()=>{u(!1),a("Invalid token")})};return R.jsx(Bke,{children:R.jsxs(oo,{className:Cu.card,children:[R.jsx("div",{className:Cu.avatar,children:R.jsx(vg,{className:Cu.icon,children:o})}),R.jsx(zke,{onSubmit:l,mode:"onChange",noValidate:!0,className:i,children:R.jsxs(Di,{className:Eu.content,children:[R.jsx(Nn,{name:"token",type:"text",value:t,onChange:c=>r(c.target.value)}),R.jsx(hn,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,className:Eu.button,children:s?R.jsx(kc,{className:Eu.icon,size:19,thickness:3}):"Sign in"})]})})]})})},hv="RaLogin",Cu={card:`${hv}-card`,avatar:`${hv}-avatar`,icon:`${hv}-icon`},Bke=ne("div",{name:hv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)",[`& .${Cu.card}`]:{minWidth:300,marginTop:"6em"},[`& .${Cu.avatar}`]:{margin:"1em",display:"flex",justifyContent:"center"},[`& .${Cu.icon}`]:{backgroundColor:e.palette.secondary[500]}})),vv="RaLoginForm",Eu={content:`${vv}-content`,button:`${vv}-button`,icon:`${vv}-icon`},zke=ne(M_,{name:vv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Eu.content}`]:{width:300},[`& .${Eu.button}`]:{marginTop:e.spacing(2)},[`& .${Eu.icon}`]:{margin:e.spacing(.3)}}));iRe();const Vke=()=>R.jsxs(eRe,{dashboard:Fke,loginPage:Dke,authProvider:mke,dataProvider:mRe,layout:gke,children:[R.jsx(Yl,{name:"jobs",...ake}),R.jsx(Yl,{name:"busy",options:{label:"Busy"},list:ike,icon:nL}),R.jsx(Yl,{name:"executions"}),R.jsx(Yl,{name:"members"}),R.jsx(P3,{children:R.jsx(zr,{path:"/settings",element:R.jsx(Lke,{})})})]});A0.createRoot(document.getElementById("root")).render(R.jsx(ke.StrictMode,{children:R.jsx(Vke,{})})); diff --git a/dkron/ui-dist/index.html b/dkron/ui-dist/index.html index 83827fad8..fb45842c8 100644 --- a/dkron/ui-dist/index.html +++ b/dkron/ui-dist/index.html @@ -118,7 +118,7 @@ window.DKRON_SUCCESSFUL_JOBS = {{.DKRON_SUCCESSFUL_JOBS }}; window.DKRON_FAILED_JOBS = {{.DKRON_FAILED_JOBS }}; window.DKRON_UNTRIGGERED_JOBS = {{.DKRON_UNTRIGGERED_JOBS }}; - + From 84bddcf61e9f510011d3899146dd61738daeb42c Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Mon, 30 Sep 2024 01:06:58 +0200 Subject: [PATCH 07/10] refactor: uifs param becomes acl enabled cond --- dkron/api.go | 2 +- dkron/ui.go | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/dkron/api.go b/dkron/api.go index ac45399a5..5992f6ce9 100644 --- a/dkron/api.go +++ b/dkron/api.go @@ -61,7 +61,7 @@ func (h *HTTPTransport) ServeHTTP() { h.APIRoutes(rootPath) if h.agent.config.UI { - h.UI(rootPath, &uiDist) + h.UI(rootPath, false) } h.logger.WithFields(logrus.Fields{ diff --git a/dkron/ui.go b/dkron/ui.go index 6b631e9e2..afbdc0c2b 100644 --- a/dkron/ui.go +++ b/dkron/ui.go @@ -18,11 +18,7 @@ const uiPathPrefix = "ui/" var uiDist embed.FS // UI registers UI specific routes on the gin RouterGroup. -func (h *HTTPTransport) UI(r *gin.RouterGroup, uifs *embed.FS) { - if uifs == nil { - uifs = &uiDist - } - +func (h *HTTPTransport) UI(r *gin.RouterGroup, aclEnabled bool) { // If we are visiting from a browser redirect to the dashboard r.GET("/", func(c *gin.Context) { switch c.NegotiateFormat(gin.MIMEHTML) { @@ -35,7 +31,7 @@ func (h *HTTPTransport) UI(r *gin.RouterGroup, uifs *embed.FS) { ui := r.Group("/" + uiPathPrefix) - assets, err := fs.Sub(uifs, "ui-dist") + assets, err := fs.Sub(uiDist, "ui-dist") if err != nil { h.logger.Fatal(err) } @@ -91,6 +87,7 @@ func (h *HTTPTransport) UI(r *gin.RouterGroup, uifs *embed.FS) { "DKRON_FAILED_JOBS": failedJobs, "DKRON_UNTRIGGERED_JOBS": untriggeredJobs, "DKRON_SUCCESSFUL_JOBS": successfulJobs, + "DKRON_ACL_ENABLED": aclEnabled, }) } }) From 1421c61455c16514e73e31e6de9d3a0f9f438956 Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Mon, 30 Sep 2024 01:22:03 +0200 Subject: [PATCH 08/10] feat: Conditional login --- .../{index-51a13e26.js => index-079c97c3.js} | 76 +++++++++---------- dkron/ui-dist/index.html | 2 +- ui/src/App.tsx | 8 +- 3 files changed, 46 insertions(+), 40 deletions(-) rename dkron/ui-dist/assets/{index-51a13e26.js => index-079c97c3.js} (78%) diff --git a/dkron/ui-dist/assets/index-51a13e26.js b/dkron/ui-dist/assets/index-079c97c3.js similarity index 78% rename from dkron/ui-dist/assets/index-51a13e26.js rename to dkron/ui-dist/assets/index-079c97c3.js index 40dfa4d23..98e338552 100644 --- a/dkron/ui-dist/assets/index-51a13e26.js +++ b/dkron/ui-dist/assets/index-079c97c3.js @@ -6,7 +6,7 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xf=Symbol.for("react.element"),AL=Symbol.for("react.portal"),ML=Symbol.for("react.fragment"),FL=Symbol.for("react.strict_mode"),NL=Symbol.for("react.profiler"),LL=Symbol.for("react.provider"),DL=Symbol.for("react.context"),BL=Symbol.for("react.forward_ref"),zL=Symbol.for("react.suspense"),VL=Symbol.for("react.memo"),UL=Symbol.for("react.lazy"),ZE=Symbol.iterator;function WL(e){return e===null||typeof e!="object"?null:(e=ZE&&e[ZE]||e["@@iterator"],typeof e=="function"?e:null)}var Mk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fk=Object.assign,Nk={};function ic(e,t,r){this.props=e,this.context=t,this.refs=Nk,this.updater=r||Mk}ic.prototype.isReactComponent={};ic.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ic.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lk(){}Lk.prototype=ic.prototype;function Kw(e,t,r){this.props=e,this.context=t,this.refs=Nk,this.updater=r||Mk}var Gw=Kw.prototype=new Lk;Gw.constructor=Kw;Fk(Gw,ic.prototype);Gw.isPureReactComponent=!0;var eO=Array.isArray,Dk=Object.prototype.hasOwnProperty,Qw={current:null},Bk={key:!0,ref:!0,__self:!0,__source:!0};function zk(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Dk.call(t,n)&&!Bk.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var QL=d,XL=Symbol.for("react.element"),YL=Symbol.for("react.fragment"),JL=Object.prototype.hasOwnProperty,ZL=QL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eD={key:!0,ref:!0,__self:!0,__source:!0};function Uk(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)JL.call(t,n)&&!eD.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:XL,type:e,key:o,ref:i,props:a,_owner:ZL.current}}rm.Fragment=YL;rm.jsx=Uk;rm.jsxs=Uk;Ik.exports=rm;var R=Ik.exports,A0={},Wk={exports:{}},Gn={},Hk={exports:{}},qk={};/** + */var XL=d,YL=Symbol.for("react.element"),JL=Symbol.for("react.fragment"),ZL=Object.prototype.hasOwnProperty,eD=XL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tD={key:!0,ref:!0,__self:!0,__source:!0};function Uk(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)ZL.call(t,n)&&!tD.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:YL,type:e,key:o,ref:i,props:a,_owner:eD.current}}rm.Fragment=JL;rm.jsx=Uk;rm.jsxs=Uk;Ik.exports=rm;var R=Ik.exports,A0={},Wk={exports:{}},Gn={},Hk={exports:{}},qk={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(B,U){var q=B.length;B.push(U);e:for(;0>>1,oe=B[ie];if(0>>1;iea(Te,q))yea(be,Te)?(B[ie]=be,B[ye]=q,ie=ye):(B[ie]=Te,B[pe]=q,ie=pe);else if(yea(be,q))B[ie]=be,B[ye]=q,ie=ye;else break e}}return U}function a(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=B)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function h(B){if(y=!1,b(B),!g)if(r(u)!==null)g=!0,M(_);else{var U=r(l);U!==null&&W(h,U.startTime-B)}}function _(B,U){g=!1,y&&(y=!1,x(w),w=-1),v=!0;var q=p;try{for(b(U),f=r(u);f!==null&&(!(f.expirationTime>U)||B&&!k());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,p=f.priorityLevel;var oe=ie(f.expirationTime<=U);U=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===r(u)&&n(u),b(U)}else n(u);f=r(u)}if(f!==null)var Ee=!0;else{var pe=r(l);pe!==null&&W(h,pe.startTime-U),Ee=!1}return Ee}finally{f=null,p=q,v=!1}}var C=!1,E=null,w=-1,O=5,P=-1;function k(){return!(e.unstable_now()-PB||125ie?(B.sortIndex=q,t(l,B),r(u)===null&&B===r(l)&&(y?(x(w),w=-1):y=!0,W(h,q-ie))):(B.sortIndex=oe,t(u,B),g||v||(g=!0,M(_))),B},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(qk);Hk.exports=qk;var tD=Hk.exports;/** + */(function(e){function t(B,U){var q=B.length;B.push(U);e:for(;0>>1,oe=B[ie];if(0>>1;iea(Te,q))yea(be,Te)?(B[ie]=be,B[ye]=q,ie=ye):(B[ie]=Te,B[pe]=q,ie=pe);else if(yea(be,q))B[ie]=be,B[ye]=q,ie=ye;else break e}}return U}function a(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=B)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function h(B){if(y=!1,b(B),!g)if(r(u)!==null)g=!0,M(_);else{var U=r(l);U!==null&&W(h,U.startTime-B)}}function _(B,U){g=!1,y&&(y=!1,x(w),w=-1),v=!0;var q=p;try{for(b(U),f=r(u);f!==null&&(!(f.expirationTime>U)||B&&!k());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,p=f.priorityLevel;var oe=ie(f.expirationTime<=U);U=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===r(u)&&n(u),b(U)}else n(u);f=r(u)}if(f!==null)var Ee=!0;else{var pe=r(l);pe!==null&&W(h,pe.startTime-U),Ee=!1}return Ee}finally{f=null,p=q,v=!1}}var C=!1,E=null,w=-1,O=5,P=-1;function k(){return!(e.unstable_now()-PB||125ie?(B.sortIndex=q,t(l,B),r(u)===null&&B===r(l)&&(y?(x(w),w=-1):y=!0,W(h,q-ie))):(B.sortIndex=oe,t(u,B),g||v||(g=!0,M(_))),B},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(qk);Hk.exports=qk;var rD=Hk.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var rD=d,Hn=tD;function Ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M0=Object.prototype.hasOwnProperty,nD=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rO={},nO={};function aD(e){return M0.call(nO,e)?!0:M0.call(rO,e)?!1:nD.test(e)?nO[e]=!0:(rO[e]=!0,!1)}function oD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function iD(e,t,r,n){if(t===null||typeof t>"u"||oD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gn(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ur[e]=new gn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ur[t]=new gn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ur[e]=new gn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ur[e]=new gn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ur[e]=new gn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ur[e]=new gn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ur[e]=new gn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ur[e]=new gn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ur[e]=new gn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yw=/[\-:]([a-z])/g;function Jw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ur.xlinkHref=new gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zw(e,t,r,n){var a=Ur.hasOwnProperty(t)?Ur[t]:null;(a!==null?a.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M0=Object.prototype.hasOwnProperty,aD=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rO={},nO={};function oD(e){return M0.call(nO,e)?!0:M0.call(rO,e)?!1:aD.test(e)?nO[e]=!0:(rO[e]=!0,!1)}function iD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sD(e,t,r,n){if(t===null||typeof t>"u"||iD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gn(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ur[e]=new gn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ur[t]=new gn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ur[e]=new gn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ur[e]=new gn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ur[e]=new gn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ur[e]=new gn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ur[e]=new gn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ur[e]=new gn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ur[e]=new gn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yw=/[\-:]([a-z])/g;function Jw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ur.xlinkHref=new gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zw(e,t,r,n){var a=Ur.hasOwnProperty(t)?Ur[t]:null;(a!==null?a.type!==0:n||!(2s||a[i]!==o[s]){var u=` -`+a[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{nb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ad(e):""}function sD(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=ab(e.type,!1),e;case 11:return e=ab(e.type.render,!1),e;case 1:return e=ab(e.type,!0),e;default:return""}}function D0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fl:return"Fragment";case Ml:return"Portal";case F0:return"Profiler";case eS:return"StrictMode";case N0:return"Suspense";case L0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qk:return(e.displayName||"Context")+".Consumer";case Gk:return(e._context.displayName||"Context")+".Provider";case tS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rS:return t=e.displayName||null,t!==null?t:D0(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return D0(e(t))}catch{}}return null}function lD(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D0(t);case 8:return t===eS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uD(e){var t=Yk(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mp(e){e._valueTracker||(e._valueTracker=uD(e))}function Jk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Yk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function B0(e,t){var r=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function oO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zk(e,t){t=t.checked,t!=null&&Zw(e,"checked",t,!1)}function z0(e,t){Zk(e,t);var r=Fi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?V0(e,t.type,r):t.hasOwnProperty("defaultValue")&&V0(e,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function V0(e,t,r){(t!=="number"||gv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var od=Array.isArray;function nu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Fp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var md={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cD=["Webkit","ms","Moz","O"];Object.keys(md).forEach(function(e){cD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),md[t]=md[e]})});function nj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||md.hasOwnProperty(e)&&md[e]?(""+t).trim():t+"px"}function aj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=nj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var dD=rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function H0(e,t){if(t){if(dD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function q0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var K0=null;function nS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var G0=null,au=null,ou=null;function uO(e){if(e=Zf(e)){if(typeof G0!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=sm(t),G0(e.stateNode,e.type,t))}}function oj(e){au?ou?ou.push(e):ou=[e]:au=e}function ij(){if(au){var e=au,t=ou;if(ou=au=null,uO(e),t)for(e=0;e>>=0,e===0?32:31-(SD(e)/_D|0)|0}var Np=64,Lp=4194304;function id(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=id(s):(o&=i,o!==0&&(n=id(o)))}else i=r&~a,i!==0?n=id(i):o!==0&&(n=id(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=r}function PD(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=bd),yO=String.fromCharCode(32),bO=!1;function Oj(e,t){switch(e){case"keyup":return t6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function n6(e,t){switch(e){case"compositionend":return Pj(t);case"keypress":return t.which!==32?null:(bO=!0,yO);case"textInput":return e=t.data,e===yO&&bO?null:e;default:return null}}function a6(e,t){if(Nl)return e==="compositionend"||!dS&&Oj(e,t)?(e=Cj(),Ph=lS=xi=null,Nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_O(r)}}function kj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jj(){for(var e=window,t=gv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gv(e.document)}return t}function fS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function p6(e){var t=jj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kj(r.ownerDocument.documentElement,r)){if(n!==null&&fS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=CO(r,o);var i=CO(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ll=null,e1=null,wd=null,t1=!1;function EO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t1||Ll==null||Ll!==gv(n)||(n=Ll,"selectionStart"in n&&fS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wd&&af(wd,n)||(wd=n,n=_v(e1,"onSelect"),0zl||(e.current=s1[zl],s1[zl]=null,zl--)}function Ht(e,t){zl++,s1[zl]=e.current,e.current=t}var Ni={},tn=Vi(Ni),On=Vi(!1),Vs=Ni;function zu(e,t){var r=e.type.contextTypes;if(!r)return Ni;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pn(e){return e=e.childContextTypes,e!=null}function Ev(){Qt(On),Qt(tn)}function jO(e,t,r){if(tn.current!==Ni)throw Error(Ie(168));Ht(tn,t),Ht(On,r)}function zj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Ie(108,lD(e)||"Unknown",a));return rr({},r,n)}function Ov(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Vs=tn.current,Ht(tn,e),Ht(On,On.current),!0}function IO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=zj(e,t,Vs),n.__reactInternalMemoizedMergedChildContext=e,Qt(On),Qt(tn),Ht(tn,e)):Qt(On),Ht(On,r)}var wo=null,lm=!1,yb=!1;function Vj(e){wo===null?wo=[e]:wo.push(e)}function E6(e){lm=!0,Vj(e)}function Ui(){if(!yb&&wo!==null){yb=!0;var e=0,t=At;try{var r=wo;for(At=1;e>=i,a-=i,Eo=1<<32-$a(t)+a|r<w?(O=E,E=null):O=E.sibling;var P=p(x,E,b[w],h);if(P===null){E===null&&(E=O);break}e&&E&&P.alternate===null&&t(x,E),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P,E=O}if(w===b.length)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;ww?(O=E,E=null):O=E.sibling;var k=p(x,E,P.value,h);if(k===null){E===null&&(E=O);break}e&&E&&k.alternate===null&&t(x,E),m=o(k,m,w),C===null?_=k:C.sibling=k,C=k,E=O}if(P.done)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;!P.done;w++,P=b.next())P=f(x,P.value,h),P!==null&&(m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return Yt&&rs(x,w),_}for(E=n(x,E);!P.done;w++,P=b.next())P=v(E,x,w,P.value,h),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?w:P.key),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return e&&E.forEach(function(j){return t(x,j)}),Yt&&rs(x,w),_}function S(x,m,b,h){if(typeof b=="object"&&b!==null&&b.type===Fl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ap:e:{for(var _=b.key,C=m;C!==null;){if(C.key===_){if(_=b.type,_===Fl){if(C.tag===7){r(x,C.sibling),m=a(C,b.props.children),m.return=x,x=m;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ni&&FO(_)===C.type){r(x,C.sibling),m=a(C,b.props),m.ref=Dc(x,C,b),m.return=x,x=m;break e}r(x,C);break}else t(x,C);C=C.sibling}b.type===Fl?(m=Ms(b.props.children,x.mode,h,b.key),m.return=x,x=m):(h=Mh(b.type,b.key,b.props,null,x.mode,h),h.ref=Dc(x,m,b),h.return=x,x=h)}return i(x);case Ml:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(x,m.sibling),m=a(m,b.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Ob(b,x.mode,h),m.return=x,x=m}return i(x);case ni:return C=b._init,S(x,m,C(b._payload),h)}if(od(b))return g(x,m,b,h);if(Ac(b))return y(x,m,b,h);Hp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(x,m.sibling),m=a(m,b),m.return=x,x=m):(r(x,m),m=Eb(b,x.mode,h),m.return=x,x=m),i(x)):r(x,m)}return S}var Uu=qj(!0),Kj=qj(!1),Tv=Vi(null),$v=null,Wl=null,gS=null;function mS(){gS=Wl=$v=null}function yS(e){var t=Tv.current;Qt(Tv),e._currentValue=t}function c1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function su(e,t){$v=e,gS=Wl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(En=!0),e.firstContext=null)}function ua(e){var t=e._currentValue;if(gS!==e)if(e={context:e,memoizedValue:t,next:null},Wl===null){if($v===null)throw Error(Ie(308));Wl=e,$v.dependencies={lanes:0,firstContext:e}}else Wl=Wl.next=e;return t}var ys=null;function bS(e){ys===null?ys=[e]:ys.push(e)}function Gj(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,bS(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ao(e,n)}function Ao(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ai=!1;function xS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ct&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ao(e,r)}return a=n.interleaved,a===null?(t.next=t,bS(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ao(e,r)}function Th(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}function NO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function kv(e,t,r,n){var a=e.updateQueue;ai=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,v=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,f,p):g,p==null)break e;f=rr({},f,p);break e;case 2:ai=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=v,u=f):c=c.next=v,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(c===null&&(u=f),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hs|=i,e.lanes=i,e.memoizedState=f}}function LO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=xb.transition;xb.transition={};try{e(!1),t()}finally{At=r,xb.transition=n}}function fI(){return ca().memoizedState}function T6(e,t,r){var n=ji(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pI(e))hI(t,r);else if(r=Gj(e,t,r,n),r!==null){var a=pn();ka(r,e,n,a),vI(r,t,n)}}function $6(e,t,r){var n=ji(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pI(e))hI(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,Ia(s,i)){var u=t.interleaved;u===null?(a.next=a,bS(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=Gj(e,t,a,n),r!==null&&(a=pn(),ka(r,e,n,a),vI(r,t,n))}}function pI(e){var t=e.alternate;return e===tr||t!==null&&t===tr}function hI(e,t){Sd=Iv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function vI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}var Av={readContext:ua,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},k6={readContext:ua,useCallback:function(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:BO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,kh(4194308,4,sI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return kh(4194308,4,e,t)},useInsertionEffect:function(e,t){return kh(4,2,e,t)},useMemo:function(e,t){var r=Ba();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ba();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=T6.bind(null,tr,e),[n.memoizedState,e]},useRef:function(e){var t=Ba();return e={current:e},t.memoizedState=e},useState:DO,useDebugValue:RS,useDeferredValue:function(e){return Ba().memoizedState=e},useTransition:function(){var e=DO(!1),t=e[0];return e=R6.bind(null,e[1]),Ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tr,a=Ba();if(Yt){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Ar===null)throw Error(Ie(349));Ws&30||Zj(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,BO(tI.bind(null,n,o,e),[e]),n.flags|=2048,pf(9,eI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ba(),t=Ar.identifierPrefix;if(Yt){var r=Oo,n=Eo;r=(n&~(1<<32-$a(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=df++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{nb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ad(e):""}function lD(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=ab(e.type,!1),e;case 11:return e=ab(e.type.render,!1),e;case 1:return e=ab(e.type,!0),e;default:return""}}function D0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fl:return"Fragment";case Ml:return"Portal";case F0:return"Profiler";case eS:return"StrictMode";case N0:return"Suspense";case L0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qk:return(e.displayName||"Context")+".Consumer";case Gk:return(e._context.displayName||"Context")+".Provider";case tS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rS:return t=e.displayName||null,t!==null?t:D0(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return D0(e(t))}catch{}}return null}function uD(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D0(t);case 8:return t===eS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cD(e){var t=Yk(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mp(e){e._valueTracker||(e._valueTracker=cD(e))}function Jk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Yk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function B0(e,t){var r=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function oO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zk(e,t){t=t.checked,t!=null&&Zw(e,"checked",t,!1)}function z0(e,t){Zk(e,t);var r=Fi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?V0(e,t.type,r):t.hasOwnProperty("defaultValue")&&V0(e,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function V0(e,t,r){(t!=="number"||gv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var od=Array.isArray;function nu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Fp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var md={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dD=["Webkit","ms","Moz","O"];Object.keys(md).forEach(function(e){dD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),md[t]=md[e]})});function nj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||md.hasOwnProperty(e)&&md[e]?(""+t).trim():t+"px"}function aj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=nj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var fD=rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function H0(e,t){if(t){if(fD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function q0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var K0=null;function nS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var G0=null,au=null,ou=null;function uO(e){if(e=Zf(e)){if(typeof G0!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=sm(t),G0(e.stateNode,e.type,t))}}function oj(e){au?ou?ou.push(e):ou=[e]:au=e}function ij(){if(au){var e=au,t=ou;if(ou=au=null,uO(e),t)for(e=0;e>>=0,e===0?32:31-(_D(e)/CD|0)|0}var Np=64,Lp=4194304;function id(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=id(s):(o&=i,o!==0&&(n=id(o)))}else i=r&~a,i!==0?n=id(i):o!==0&&(n=id(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=r}function RD(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=bd),yO=String.fromCharCode(32),bO=!1;function Oj(e,t){switch(e){case"keyup":return r6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function a6(e,t){switch(e){case"compositionend":return Pj(t);case"keypress":return t.which!==32?null:(bO=!0,yO);case"textInput":return e=t.data,e===yO&&bO?null:e;default:return null}}function o6(e,t){if(Nl)return e==="compositionend"||!dS&&Oj(e,t)?(e=Cj(),Ph=lS=xi=null,Nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_O(r)}}function kj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jj(){for(var e=window,t=gv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gv(e.document)}return t}function fS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function h6(e){var t=jj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kj(r.ownerDocument.documentElement,r)){if(n!==null&&fS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=CO(r,o);var i=CO(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ll=null,e1=null,wd=null,t1=!1;function EO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t1||Ll==null||Ll!==gv(n)||(n=Ll,"selectionStart"in n&&fS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wd&&af(wd,n)||(wd=n,n=_v(e1,"onSelect"),0zl||(e.current=s1[zl],s1[zl]=null,zl--)}function Ht(e,t){zl++,s1[zl]=e.current,e.current=t}var Ni={},tn=Vi(Ni),On=Vi(!1),Vs=Ni;function zu(e,t){var r=e.type.contextTypes;if(!r)return Ni;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pn(e){return e=e.childContextTypes,e!=null}function Ev(){Qt(On),Qt(tn)}function jO(e,t,r){if(tn.current!==Ni)throw Error(Ie(168));Ht(tn,t),Ht(On,r)}function zj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Ie(108,uD(e)||"Unknown",a));return rr({},r,n)}function Ov(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Vs=tn.current,Ht(tn,e),Ht(On,On.current),!0}function IO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=zj(e,t,Vs),n.__reactInternalMemoizedMergedChildContext=e,Qt(On),Qt(tn),Ht(tn,e)):Qt(On),Ht(On,r)}var wo=null,lm=!1,yb=!1;function Vj(e){wo===null?wo=[e]:wo.push(e)}function O6(e){lm=!0,Vj(e)}function Ui(){if(!yb&&wo!==null){yb=!0;var e=0,t=At;try{var r=wo;for(At=1;e>=i,a-=i,Eo=1<<32-$a(t)+a|r<w?(O=E,E=null):O=E.sibling;var P=p(x,E,b[w],h);if(P===null){E===null&&(E=O);break}e&&E&&P.alternate===null&&t(x,E),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P,E=O}if(w===b.length)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;ww?(O=E,E=null):O=E.sibling;var k=p(x,E,P.value,h);if(k===null){E===null&&(E=O);break}e&&E&&k.alternate===null&&t(x,E),m=o(k,m,w),C===null?_=k:C.sibling=k,C=k,E=O}if(P.done)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;!P.done;w++,P=b.next())P=f(x,P.value,h),P!==null&&(m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return Yt&&rs(x,w),_}for(E=n(x,E);!P.done;w++,P=b.next())P=v(E,x,w,P.value,h),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?w:P.key),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return e&&E.forEach(function(j){return t(x,j)}),Yt&&rs(x,w),_}function S(x,m,b,h){if(typeof b=="object"&&b!==null&&b.type===Fl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ap:e:{for(var _=b.key,C=m;C!==null;){if(C.key===_){if(_=b.type,_===Fl){if(C.tag===7){r(x,C.sibling),m=a(C,b.props.children),m.return=x,x=m;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ni&&FO(_)===C.type){r(x,C.sibling),m=a(C,b.props),m.ref=Dc(x,C,b),m.return=x,x=m;break e}r(x,C);break}else t(x,C);C=C.sibling}b.type===Fl?(m=Ms(b.props.children,x.mode,h,b.key),m.return=x,x=m):(h=Mh(b.type,b.key,b.props,null,x.mode,h),h.ref=Dc(x,m,b),h.return=x,x=h)}return i(x);case Ml:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(x,m.sibling),m=a(m,b.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Ob(b,x.mode,h),m.return=x,x=m}return i(x);case ni:return C=b._init,S(x,m,C(b._payload),h)}if(od(b))return g(x,m,b,h);if(Ac(b))return y(x,m,b,h);Hp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(x,m.sibling),m=a(m,b),m.return=x,x=m):(r(x,m),m=Eb(b,x.mode,h),m.return=x,x=m),i(x)):r(x,m)}return S}var Uu=qj(!0),Kj=qj(!1),Tv=Vi(null),$v=null,Wl=null,gS=null;function mS(){gS=Wl=$v=null}function yS(e){var t=Tv.current;Qt(Tv),e._currentValue=t}function c1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function su(e,t){$v=e,gS=Wl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(En=!0),e.firstContext=null)}function ua(e){var t=e._currentValue;if(gS!==e)if(e={context:e,memoizedValue:t,next:null},Wl===null){if($v===null)throw Error(Ie(308));Wl=e,$v.dependencies={lanes:0,firstContext:e}}else Wl=Wl.next=e;return t}var ys=null;function bS(e){ys===null?ys=[e]:ys.push(e)}function Gj(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,bS(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ao(e,n)}function Ao(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ai=!1;function xS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ct&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ao(e,r)}return a=n.interleaved,a===null?(t.next=t,bS(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ao(e,r)}function Th(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}function NO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function kv(e,t,r,n){var a=e.updateQueue;ai=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,v=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,f,p):g,p==null)break e;f=rr({},f,p);break e;case 2:ai=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=v,u=f):c=c.next=v,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(c===null&&(u=f),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hs|=i,e.lanes=i,e.memoizedState=f}}function LO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=xb.transition;xb.transition={};try{e(!1),t()}finally{At=r,xb.transition=n}}function fI(){return ca().memoizedState}function $6(e,t,r){var n=ji(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pI(e))hI(t,r);else if(r=Gj(e,t,r,n),r!==null){var a=pn();ka(r,e,n,a),vI(r,t,n)}}function k6(e,t,r){var n=ji(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pI(e))hI(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,Ia(s,i)){var u=t.interleaved;u===null?(a.next=a,bS(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=Gj(e,t,a,n),r!==null&&(a=pn(),ka(r,e,n,a),vI(r,t,n))}}function pI(e){var t=e.alternate;return e===tr||t!==null&&t===tr}function hI(e,t){Sd=Iv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function vI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}var Av={readContext:ua,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},j6={readContext:ua,useCallback:function(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:BO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,kh(4194308,4,sI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return kh(4194308,4,e,t)},useInsertionEffect:function(e,t){return kh(4,2,e,t)},useMemo:function(e,t){var r=Ba();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ba();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$6.bind(null,tr,e),[n.memoizedState,e]},useRef:function(e){var t=Ba();return e={current:e},t.memoizedState=e},useState:DO,useDebugValue:RS,useDeferredValue:function(e){return Ba().memoizedState=e},useTransition:function(){var e=DO(!1),t=e[0];return e=T6.bind(null,e[1]),Ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tr,a=Ba();if(Yt){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Ar===null)throw Error(Ie(349));Ws&30||Zj(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,BO(tI.bind(null,n,o,e),[e]),n.flags|=2048,pf(9,eI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ba(),t=Ar.identifierPrefix;if(Yt){var r=Oo,n=Eo;r=(n&~(1<<32-$a(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=df++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Qa]=t,e[lf]=n,EI(e,t,!1,!1),t.stateNode=e;e:{switch(i=q0(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),a=n;break;case"iframe":case"object":case"embed":Kt("load",e),a=n;break;case"video":case"audio":for(a=0;aqu&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304)}else{if(!n)if(e=jv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Yt)return Xr(t),null}else 2*pr()-o.renderingStartTime>qu&&r!==1073741824&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pr(),t.sibling=null,r=er.current,Ht(er,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return AS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function D6(e,t){switch(hS(t),t.tag){case 1:return Pn(t.type)&&Ev(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wu(),Qt(On),Qt(tn),_S(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return SS(t),null;case 13:if(Qt(er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(er),null;case 4:return Wu(),null;case 10:return yS(t.type._context),null;case 22:case 23:return AS(),null;case 24:return null;default:return null}}var Kp=!1,Zr=!1,B6=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Hl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){sr(e,t,n)}else r.current=null}function b1(e,t,r){try{r()}catch(n){sr(e,t,n)}}var YO=!1;function z6(e,t){if(r1=wv,e=jj(),fS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==r||a!==0&&f.nodeType!==3||(s=i+a),f!==o||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(n1={focusedElem:e,selectionRange:r},wv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:wa(t.type,y),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){sr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=YO,YO=!1,g}function _d(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&b1(t,r,o)}a=a.next}while(a!==n)}}function dm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function x1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function RI(e){var t=e.alternate;t!==null&&(e.alternate=null,RI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qa],delete t[lf],delete t[i1],delete t[_6],delete t[C6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function TI(e){return e.tag===5||e.tag===3||e.tag===4}function JO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Cv));else if(n!==4&&(e=e.child,e!==null))for(w1(e,t,r),e=e.sibling;e!==null;)w1(e,t,r),e=e.sibling}function S1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(S1(e,t,r),e=e.sibling;e!==null;)S1(e,t,r),e=e.sibling}var Dr=null,_a=!1;function Xo(e,t,r){for(r=r.child;r!==null;)$I(e,t,r),r=r.sibling}function $I(e,t,r){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(nm,r)}catch{}switch(r.tag){case 5:Zr||Hl(r,t);case 6:var n=Dr,a=_a;Dr=null,Xo(e,t,r),Dr=n,_a=a,Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?mb(e.parentNode,r):e.nodeType===1&&mb(e,r),rf(e)):mb(Dr,r.stateNode));break;case 4:n=Dr,a=_a,Dr=r.stateNode.containerInfo,_a=!0,Xo(e,t,r),Dr=n,_a=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&b1(r,t,i),a=a.next}while(a!==n)}Xo(e,t,r);break;case 1:if(!Zr&&(Hl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){sr(r,t,s)}Xo(e,t,r);break;case 21:Xo(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Xo(e,t,r),Zr=n):Xo(e,t,r);break;default:Xo(e,t,r)}}function ZO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new B6),t.forEach(function(n){var a=X6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=pr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*U6(n/1960))-n,10e?16:e,wi===null)var n=!1;else{if(e=wi,wi=null,Nv=0,Ct&6)throw Error(Ie(331));var a=Ct;for(Ct|=4,Ve=e.current;Ve!==null;){var o=Ve,i=o.child;if(Ve.flags&16){var s=o.deletions;if(s!==null){for(var u=0;upr()-jS?As(e,0):kS|=r),Rn(e,t)}function LI(e,t){t===0&&(e.mode&1?(t=Lp,Lp<<=1,!(Lp&130023424)&&(Lp=4194304)):t=1);var r=pn();e=Ao(e,t),e!==null&&(Yf(e,t,r),Rn(e,r))}function Q6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),LI(e,r)}function X6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ie(314))}n!==null&&n.delete(t),LI(e,r)}var DI;DI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)En=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return En=!1,N6(e,t,r);En=!!(e.flags&131072)}else En=!1,Yt&&t.flags&1048576&&Uj(t,Rv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;jh(e,t),e=t.pendingProps;var a=zu(t,tn.current);su(t,r),a=ES(null,t,n,e,a,r);var o=OS();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(n)?(o=!0,Ov(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xS(t),a.updater=cm,t.stateNode=a,a._reactInternals=t,f1(t,n,e,r),t=v1(null,t,n,!0,o,r)):(t.tag=0,Yt&&o&&pS(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(jh(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=J6(n),e=wa(n,e),a){case 0:t=h1(null,t,n,e,r);break e;case 1:t=GO(null,t,n,e,r);break e;case 11:t=qO(null,t,n,e,r);break e;case 14:t=KO(null,t,n,wa(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),h1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),GO(e,t,n,a,r);case 3:e:{if(SI(t),e===null)throw Error(Ie(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Qj(e,t),kv(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Hu(Error(Ie(423)),t),t=QO(e,t,n,r,a);break e}else if(n!==a){a=Hu(Error(Ie(424)),t),t=QO(e,t,n,r,a);break e}else for(Vn=Ti(t.stateNode.containerInfo.firstChild),Un=t,Yt=!0,Ea=null,r=Kj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vu(),n===a){t=Mo(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return Xj(t),e===null&&u1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,a1(n,a)?i=null:o!==null&&a1(n,o)&&(t.flags|=32),wI(e,t),cn(e,t,i,r),t.child;case 6:return e===null&&u1(t),null;case 13:return _I(e,t,r);case 4:return wS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Uu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),qO(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ht(Tv,n._currentValue),n._currentValue=i,o!==null)if(Ia(o.value,i)){if(o.children===a.children&&!On.current){t=Mo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=To(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),c1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ie(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),c1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,su(t,r),a=ua(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=wa(n,t.pendingProps),a=wa(n.type,a),KO(e,t,n,a,r);case 15:return bI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),jh(e,t),t.tag=1,Pn(n)?(e=!0,Ov(t)):e=!1,su(t,r),gI(t,n,a),f1(t,n,a,r),v1(null,t,n,!0,e,r);case 19:return CI(e,t,r);case 22:return xI(e,t,r)}throw Error(Ie(156,t.tag))};function BI(e,t){return pj(e,t)}function Y6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ia(e,t,r,n){return new Y6(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function J6(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tS)return 11;if(e===rS)return 14}return 2}function Ii(e,t){var r=e.alternate;return r===null?(r=ia(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Mh(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")FS(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fl:return Ms(r.children,a,o,t);case eS:i=8,a|=8;break;case F0:return e=ia(12,r,t,a|2),e.elementType=F0,e.lanes=o,e;case N0:return e=ia(13,r,t,a),e.elementType=N0,e.lanes=o,e;case L0:return e=ia(19,r,t,a),e.elementType=L0,e.lanes=o,e;case Xk:return pm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gk:i=10;break e;case Qk:i=9;break e;case tS:i=11;break e;case rS:i=14;break e;case ni:i=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ia(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Ms(e,t,r,n){return e=ia(7,e,n,t),e.lanes=r,e}function pm(e,t,r,n){return e=ia(22,e,n,t),e.elementType=Xk,e.lanes=r,e.stateNode={isHidden:!1},e}function Eb(e,t,r){return e=ia(6,e,null,t),e.lanes=r,e}function Ob(e,t,r){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z6(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function NS(e,t,r,n,a,o,i,s,u){return e=new Z6(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ia(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},xS(o),e}function eB(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WI)}catch(e){console.error(e)}}WI(),Wk.exports=Gn;var tp=Wk.exports;const ld=Mr(tp),oB=jk({__proto__:null,default:ld},[tp]);var sP=tp;A0.createRoot=sP.createRoot,A0.hydrateRoot=sP.hydrateRoot;var zS=d.createContext(void 0);zS.displayName="AuthContext";var ym={loginUrl:"/login",afterLoginUrl:"/"},iB=function(){return d.useContext(zS)};const zo=iB;var uc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ku=typeof window>"u"||"Deno"in globalThis;function Zn(){}function sB(e,t){return typeof e=="function"?e(t):e}function P1(e){return typeof e=="number"&&e>=0&&e!==1/0}function HI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uu(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){return typeof e=="function"?e(t):e}function lP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==VS(i,t.options))return!1}else if(!vf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function uP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ks(t.options.mutationKey)!==Ks(o))return!1}else if(!vf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function VS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ks)(e)}function Ks(e){return JSON.stringify(e,(t,r)=>R1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function vf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!vf(e[r],t[r])):!1}function qI(e,t){if(e===t)return e;const r=cP(e)&&cP(t);if(r||R1(e)&&R1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function T1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?qI(e,t):t}function uB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function cB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var KI=Symbol();function GI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===KI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Os,fi,Ou,Sk,dB=(Sk=class extends uc{constructor(){super();Xe(this,Os,void 0);Xe(this,fi,void 0);Xe(this,Ou,void 0);ze(this,Ou,t=>{if(!Ku&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){J(this,fi)||this.setEventListener(J(this,Ou))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,fi))==null||t.call(this),ze(this,fi,void 0))}setEventListener(t){var r;ze(this,Ou,t),(r=J(this,fi))==null||r.call(this),ze(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){J(this,Os)!==t&&(ze(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof J(this,Os)=="boolean"?J(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,fi=new WeakMap,Ou=new WeakMap,Sk),US=new dB,Pu,pi,Ru,_k,fB=(_k=class extends uc{constructor(){super();Xe(this,Pu,!0);Xe(this,pi,void 0);Xe(this,Ru,void 0);ze(this,Ru,t=>{if(!Ku&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){J(this,pi)||this.setEventListener(J(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,pi))==null||t.call(this),ze(this,pi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=J(this,pi))==null||r.call(this),ze(this,pi,t(this.setOnline.bind(this)))}setOnline(t){J(this,Pu)!==t&&(ze(this,Pu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return J(this,Pu)}},Pu=new WeakMap,pi=new WeakMap,Ru=new WeakMap,_k),zv=new fB;function pB(e){return Math.min(1e3*2**e,3e4)}function QI(e){return(e??"online")==="online"?zv.isOnline():!0}var XI=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Pb(e){return e instanceof XI}function YI(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,m)=>{o=x,i=m}),u=x=>{var m;n||(g(new XI(x)),(m=e.abort)==null||m.call(e))},l=()=>{t=!0},c=()=>{t=!1},f=()=>US.isFocused()&&(e.networkMode==="always"||zv.isOnline())&&e.canRun(),p=()=>QI(e.networkMode)&&e.canRun(),v=x=>{var m;n||(n=!0,(m=e.onSuccess)==null||m.call(e,x),a==null||a(),o(x))},g=x=>{var m;n||(n=!0,(m=e.onError)==null||m.call(e,x),a==null||a(),i(x))},y=()=>new Promise(x=>{var m;a=b=>{(n||f())&&x(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),S=()=>{if(n)return;let x;const m=r===0?e.initialPromise:void 0;try{x=m??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(v).catch(b=>{var w;if(n)return;const h=e.retry??(Ku?0:3),_=e.retryDelay??pB,C=typeof _=="function"?_(r,b):_,E=h===!0||typeof h=="number"&&rf()?void 0:y()).then(()=>{t?g(b):S()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?S():y().then(S),s)}}function hB(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=s=>setTimeout(s,0);const o=s=>{t?e.push(s):a(()=>{r(s)})},i=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var hr=hB(),Ps,Ck,JI=(Ck=class{constructor(){Xe(this,Ps,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P1(this.gcTime)&&ze(this,Ps,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ku?1/0:5*60*1e3))}clearGcTimeout(){J(this,Ps)&&(clearTimeout(J(this,Ps)),ze(this,Ps,void 0))}},Ps=new WeakMap,Ck),Tu,$u,Jn,Jr,Lf,Rs,Sa,yo,Ek,vB=(Ek=class extends JI{constructor(t){super();Xe(this,Sa);Xe(this,Tu,void 0);Xe(this,$u,void 0);Xe(this,Jn,void 0);Xe(this,Jr,void 0);Xe(this,Lf,void 0);Xe(this,Rs,void 0);ze(this,Rs,!1),ze(this,Lf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Jn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Tu,gB(this.options)),this.state=t.state??J(this,Tu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...J(this,Lf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Jn).remove(this)}setData(t,r){const n=T1(this.state.data,t,this.options);return pt(this,Sa,yo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){pt(this,Sa,yo).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=J(this,Jr))==null?void 0:n.promise;return(a=J(this,Jr))==null||a.cancel(t),r?r.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Tu))}isActive(){return this.observers.some(t=>Oa(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!HI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(J(this,Jr)&&(J(this,Rs)?J(this,Jr).cancel({revert:!0}):J(this,Jr).cancelRetry()),this.scheduleGc()),J(this,Jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Sa,yo).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(J(this,Jr))return J(this,Jr).continueRetry(),J(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ze(this,Rs,!0),n.signal)})},o=()=>{const f=GI(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Rs,!1),this.options.persister?this.options.persister(f,p,this):f(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,$u,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&pt(this,Sa,yo).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=f=>{var p,v,g,y;Pb(f)&&f.silent||pt(this,Sa,yo).call(this,{type:"error",error:f}),Pb(f)||((v=(p=J(this,Jn).config).onError)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,YI({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,v,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){s(S);return}(v=(p=J(this,Jn).config).onSuccess)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,p)=>{pt(this,Sa,yo).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pt(this,Sa,yo).call(this,{type:"pause"})},onContinue:()=>{pt(this,Sa,yo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),J(this,Jr).start()}},Tu=new WeakMap,$u=new WeakMap,Jn=new WeakMap,Jr=new WeakMap,Lf=new WeakMap,Rs=new WeakMap,Sa=new WeakSet,yo=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...ZI(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Pb(a)&&a.revert&&J(this,$u)?{...J(this,$u),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),J(this,Jn).notify({query:this,type:"updated",action:t})})},Ek);function ZI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function gB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Va,Ok,mB=(Ok=class extends uc{constructor(t={}){super();Xe(this,Va,void 0);this.config=t,ze(this,Va,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??VS(a,r);let i=this.get(o);return i||(i=new vB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){J(this,Va).has(t.queryHash)||(J(this,Va).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=J(this,Va).get(t.queryHash);r&&(t.destroy(),r===t&&J(this,Va).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Va).get(t)}getAll(){return[...J(this,Va).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>lP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>lP(t,n)):r}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){hr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Va=new WeakMap,Ok),Ua,sn,Ts,Wa,ei,Pk,yB=(Pk=class extends JI{constructor(t){super();Xe(this,Wa);Xe(this,Ua,void 0);Xe(this,sn,void 0);Xe(this,Ts,void 0);this.mutationId=t.mutationId,ze(this,sn,t.mutationCache),ze(this,Ua,[]),this.state=t.state||eA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Ua).includes(t)||(J(this,Ua).push(t),this.clearGcTimeout(),J(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ua,J(this,Ua).filter(r=>r!==t)),this.scheduleGc(),J(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Ua).length||(this.state.status==="pending"?this.scheduleGc():J(this,sn).remove(this))}continue(){var t;return((t=J(this,Ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_,C,E;ze(this,Ts,YI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,O)=>{pt(this,Wa,ei).call(this,{type:"failed",failureCount:w,error:O})},onPause:()=>{pt(this,Wa,ei).call(this,{type:"pause"})},onContinue:()=>{pt(this,Wa,ei).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,sn).canRun(this)}));const r=this.state.status==="pending",n=!J(this,Ts).canStart();try{if(!r){pt(this,Wa,ei).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=J(this,sn).config).onMutate)==null?void 0:o.call(a,t,this));const O=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));O!==this.state.context&&pt(this,Wa,ei).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const w=await J(this,Ts).start();return await((l=(u=J(this,sn).config).onSuccess)==null?void 0:l.call(u,w,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,w,t,this.state.context)),await((v=(p=J(this,sn).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,w,null,t,this.state.context)),pt(this,Wa,ei).call(this,{type:"success",data:w}),w}catch(w){try{throw await((x=(S=J(this,sn).config).onError)==null?void 0:x.call(S,w,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,w,t,this.state.context)),await((_=(h=J(this,sn).config).onSettled)==null?void 0:_.call(h,void 0,w,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,w,t,this.state.context)),w}finally{pt(this,Wa,ei).call(this,{type:"error",error:w})}}finally{J(this,sn).runNext(this)}}},Ua=new WeakMap,sn=new WeakMap,Ts=new WeakMap,Wa=new WeakSet,ei=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),hr.batch(()=>{J(this,Ua).forEach(n=>{n.onMutationUpdate(t)}),J(this,sn).notify({mutation:this,type:"updated",action:t})})},Pk);function eA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,Df,Rk,bB=(Rk=class extends uc{constructor(t={}){super();Xe(this,Fn,void 0);Xe(this,Df,void 0);this.config=t,ze(this,Fn,new Map),ze(this,Df,Date.now())}build(t,r,n){const a=new yB({mutationCache:this,mutationId:++jp(this,Df)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Xp(t),n=J(this,Fn).get(r)??[];n.push(t),J(this,Fn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Xp(t);if(J(this,Fn).has(r)){const a=(n=J(this,Fn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?J(this,Fn).delete(r):J(this,Fn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...J(this,Fn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uP(r,n))}findAll(t={}){return this.getAll().filter(r=>uP(t,r))}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return hr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Zn))))}},Fn=new WeakMap,Df=new WeakMap,Rk);function Xp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fP(e){return{onFetch:(t,r)=>{var c,f,p,v,g;const n=t.options,a=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let y=!1;const S=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},x=GI(t.options,t.fetchOptions),m=async(b,h,_)=>{if(y)return Promise.reject();if(h==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:t.queryKey,pageParam:h,direction:_?"backward":"forward",meta:t.options.meta};S(C);const E=await x(C),{maxPages:w}=t.options,O=_?cB:uB;return{pages:O(b.pages,E,w),pageParams:O(b.pageParams,h,w)}};if(a&&o.length){const b=a==="backward",h=b?xB:pP,_={pages:o,pageParams:i},C=h(n,_);s=await m(_,C,b)}else{const b=e??o.length;do{const h=u===0?i[0]??n.initialPageParam:pP(n,s);if(u>0&&h==null)break;s=await m(s,h),u++}while(u{var y,S;return(S=(y=t.options).persister)==null?void 0:S.call(y,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function pP(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function xB(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ir,hi,vi,ku,ju,gi,Iu,Au,Tk,wB=(Tk=class{constructor(e={}){Xe(this,ir,void 0);Xe(this,hi,void 0);Xe(this,vi,void 0);Xe(this,ku,void 0);Xe(this,ju,void 0);Xe(this,gi,void 0);Xe(this,Iu,void 0);Xe(this,Au,void 0);ze(this,ir,e.queryCache||new mB),ze(this,hi,e.mutationCache||new bB),ze(this,vi,e.defaultOptions||{}),ze(this,ku,new Map),ze(this,ju,new Map),ze(this,gi,0)}mount(){jp(this,gi)._++,J(this,gi)===1&&(ze(this,Iu,US.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onFocus())})),ze(this,Au,zv.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onOnline())})))}unmount(){var e,t;jp(this,gi)._--,J(this,gi)===0&&((e=J(this,Iu))==null||e.call(this),ze(this,Iu,void 0),(t=J(this,Au))==null||t.call(this),ze(this,Au,void 0))}isFetching(e){return J(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=J(this,ir).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(uu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return J(this,ir).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=J(this,ir).get(n.queryHash),o=a==null?void 0:a.state.data,i=sB(t,o);if(i!==void 0)return J(this,ir).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return hr.batch(()=>J(this,ir).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=J(this,ir);hr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=J(this,ir),n={type:"active",...e};return hr.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=hr.batch(()=>J(this,ir).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Zn).catch(Zn)}invalidateQueries(e={},t={}){return hr.batch(()=>{if(J(this,ir).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=hr.batch(()=>J(this,ir).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Zn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=J(this,ir).build(this,t);return r.isStaleByTime(uu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=fP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=fP(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zv.isOnline()?J(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,ir)}getMutationCache(){return J(this,hi)}getDefaultOptions(){return J(this,vi)}setDefaultOptions(e){ze(this,vi,e)}setQueryDefaults(e,t){J(this,ku).set(Ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ku).values()];let r={};return t.forEach(n=>{vf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){J(this,ju).set(Ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,ju).values()];let r={};return t.forEach(n=>{vf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===KI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,vi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,ir).clear(),J(this,hi).clear()}},ir=new WeakMap,hi=new WeakMap,vi=new WeakMap,ku=new WeakMap,ju=new WeakMap,gi=new WeakMap,Iu=new WeakMap,Au=new WeakMap,Tk),wn,wt,Bf,ln,$s,Mu,Ha,zf,Fu,Nu,ks,js,mi,Lu,Is,ud,Vf,$1,Uf,k1,Wf,j1,Hf,I1,qf,A1,Kf,M1,Gf,F1,tm,tA,$k,SB=($k=class extends uc{constructor(t,r){super();Xe(this,Is);Xe(this,Vf);Xe(this,Uf);Xe(this,Wf);Xe(this,Hf);Xe(this,qf);Xe(this,Kf);Xe(this,Gf);Xe(this,tm);Xe(this,wn,void 0);Xe(this,wt,void 0);Xe(this,Bf,void 0);Xe(this,ln,void 0);Xe(this,$s,void 0);Xe(this,Mu,void 0);Xe(this,Ha,void 0);Xe(this,zf,void 0);Xe(this,Fu,void 0);Xe(this,Nu,void 0);Xe(this,ks,void 0);Xe(this,js,void 0);Xe(this,mi,void 0);Xe(this,Lu,new Set);this.options=r,ze(this,wn,t),ze(this,Ha,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,wt).addObserver(this),hP(J(this,wt),this.options)?pt(this,Is,ud).call(this):this.updateResult(),pt(this,Hf,I1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return N1(J(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return N1(J(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,qf,A1).call(this),pt(this,Kf,M1).call(this),J(this,wt).removeObserver(this)}setOptions(t,r){const n=this.options,a=J(this,wt);if(this.options=J(this,wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oa(this.options.enabled,J(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Gf,F1).call(this),J(this,wt).setOptions(this.options),n._defaulted&&!Bv(this.options,n)&&J(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,wt),observer:this});const o=this.hasListeners();o&&vP(J(this,wt),a,this.options,n)&&pt(this,Is,ud).call(this),this.updateResult(r),o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||uu(this.options.staleTime,J(this,wt))!==uu(n.staleTime,J(this,wt)))&&pt(this,Vf,$1).call(this);const i=pt(this,Uf,k1).call(this);o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||i!==J(this,mi))&&pt(this,Wf,j1).call(this,i)}getOptimisticResult(t){const r=J(this,wn).getQueryCache().build(J(this,wn),t),n=this.createResult(r,t);return CB(this,n)&&(ze(this,ln,n),ze(this,Mu,this.options),ze(this,$s,J(this,wt).state)),n}getCurrentResult(){return J(this,ln)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){J(this,Lu).add(t)}getCurrentQuery(){return J(this,wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=J(this,wn).defaultQueryOptions(t),n=J(this,wn).getQueryCache().build(J(this,wn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return pt(this,Is,ud).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,ln)))}createResult(t,r){var E;const n=J(this,wt),a=this.options,o=J(this,ln),i=J(this,$s),s=J(this,Mu),l=t!==n?t.state:J(this,Bf),{state:c}=t;let f={...c},p=!1,v;if(r._optimisticResults){const w=this.hasListeners(),O=!w&&hP(t,r),P=w&&vP(t,n,r,a);(O||P)&&(f={...f,...ZI(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:S}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(i==null?void 0:i.data)&&r.select===J(this,zf))v=J(this,Fu);else try{ze(this,zf,r.select),v=r.select(f.data),v=T1(o==null?void 0:o.data,v,r),ze(this,Fu,v),ze(this,Ha,null)}catch(w){ze(this,Ha,w)}else v=f.data;if(r.placeholderData!==void 0&&v===void 0&&S==="pending"){let w;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))w=o.data;else if(w=typeof r.placeholderData=="function"?r.placeholderData((E=J(this,Nu))==null?void 0:E.state.data,J(this,Nu)):r.placeholderData,r.select&&w!==void 0)try{w=r.select(w),ze(this,Ha,null)}catch(O){ze(this,Ha,O)}w!==void 0&&(S="success",v=T1(o==null?void 0:o.data,w,r),p=!0)}J(this,Ha)&&(g=J(this,Ha),v=J(this,Fu),y=Date.now(),S="error");const x=f.fetchStatus==="fetching",m=S==="pending",b=S==="error",h=m&&x,_=v!==void 0;return{status:S,fetchStatus:f.fetchStatus,isPending:m,isSuccess:S==="success",isError:b,isInitialLoading:h,isLoading:h,data:v,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!m,isLoadingError:b&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&_,isStale:WS(t,r),refetch:this.refetch}}updateResult(t){const r=J(this,ln),n=this.createResult(J(this,wt),this.options);if(ze(this,$s,J(this,wt).state),ze(this,Mu,this.options),J(this,$s).data!==void 0&&ze(this,Nu,J(this,wt)),Bv(n,r))return;ze(this,ln,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!J(this,Lu).size)return!0;const u=new Set(s??J(this,Lu));return this.options.throwOnError&&u.add("error"),Object.keys(J(this,ln)).some(l=>{const c=l;return J(this,ln)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),pt(this,tm,tA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Hf,I1).call(this)}},wn=new WeakMap,wt=new WeakMap,Bf=new WeakMap,ln=new WeakMap,$s=new WeakMap,Mu=new WeakMap,Ha=new WeakMap,zf=new WeakMap,Fu=new WeakMap,Nu=new WeakMap,ks=new WeakMap,js=new WeakMap,mi=new WeakMap,Lu=new WeakMap,Is=new WeakSet,ud=function(t){pt(this,Gf,F1).call(this);let r=J(this,wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Zn)),r},Vf=new WeakSet,$1=function(){pt(this,qf,A1).call(this);const t=uu(this.options.staleTime,J(this,wt));if(Ku||J(this,ln).isStale||!P1(t))return;const n=HI(J(this,ln).dataUpdatedAt,t)+1;ze(this,ks,setTimeout(()=>{J(this,ln).isStale||this.updateResult()},n))},Uf=new WeakSet,k1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,wt)):this.options.refetchInterval)??!1},Wf=new WeakSet,j1=function(t){pt(this,Kf,M1).call(this),ze(this,mi,t),!(Ku||Oa(this.options.enabled,J(this,wt))===!1||!P1(J(this,mi))||J(this,mi)===0)&&ze(this,js,setInterval(()=>{(this.options.refetchIntervalInBackground||US.isFocused())&&pt(this,Is,ud).call(this)},J(this,mi)))},Hf=new WeakSet,I1=function(){pt(this,Vf,$1).call(this),pt(this,Wf,j1).call(this,pt(this,Uf,k1).call(this))},qf=new WeakSet,A1=function(){J(this,ks)&&(clearTimeout(J(this,ks)),ze(this,ks,void 0))},Kf=new WeakSet,M1=function(){J(this,js)&&(clearInterval(J(this,js)),ze(this,js,void 0))},Gf=new WeakSet,F1=function(){const t=J(this,wn).getQueryCache().build(J(this,wn),this.options);if(t===J(this,wt))return;const r=J(this,wt);ze(this,wt,t),ze(this,Bf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},tm=new WeakSet,tA=function(t){hr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(J(this,ln))}),J(this,wn).getQueryCache().notify({query:J(this,wt),type:"observerResultsUpdated"})})},$k);function _B(e,t){return Oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hP(e,t){return _B(e,t)||e.state.data!==void 0&&N1(e,t,t.refetchOnMount)}function N1(e,t,r){if(Oa(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&WS(e,t)}return!1}function vP(e,t,r,n){return(e!==t||Oa(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&WS(e,r)}function WS(e,t){return Oa(t.enabled,e)!==!1&&e.isStaleByTime(uu(t.staleTime,e))}function CB(e,t){return!Bv(e.getCurrentResult(),t)}var yi,bi,Sn,_o,Du,Fh,Qf,L1,kk,EB=(kk=class extends uc{constructor(r,n){super();Xe(this,Du);Xe(this,Qf);Xe(this,yi,void 0);Xe(this,bi,void 0);Xe(this,Sn,void 0);Xe(this,_o,void 0);ze(this,yi,r),this.setOptions(n),this.bindMethods(),pt(this,Du,Fh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=J(this,yi).defaultMutationOptions(r),Bv(this.options,n)||J(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ks(n.mutationKey)!==Ks(this.options.mutationKey)?this.reset():((a=J(this,Sn))==null?void 0:a.state.status)==="pending"&&J(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=J(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this,r)}getCurrentResult(){return J(this,bi)}reset(){var r;(r=J(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this)}mutate(r,n){var a;return ze(this,_o,n),(a=J(this,Sn))==null||a.removeObserver(this),ze(this,Sn,J(this,yi).getMutationCache().build(J(this,yi),this.options)),J(this,Sn).addObserver(this),J(this,Sn).execute(r)}},yi=new WeakMap,bi=new WeakMap,Sn=new WeakMap,_o=new WeakMap,Du=new WeakSet,Fh=function(){var n;const r=((n=J(this,Sn))==null?void 0:n.state)??eA();ze(this,bi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Qf=new WeakSet,L1=function(r){hr.batch(()=>{var n,a,o,i,s,u,l,c;if(J(this,_o)&&this.hasListeners()){const f=J(this,bi).variables,p=J(this,bi).context;(r==null?void 0:r.type)==="success"?((a=(n=J(this,_o)).onSuccess)==null||a.call(n,r.data,f,p),(i=(o=J(this,_o)).onSettled)==null||i.call(o,r.data,null,f,p)):(r==null?void 0:r.type)==="error"&&((u=(s=J(this,_o)).onError)==null||u.call(s,r.error,f,p),(c=(l=J(this,_o)).onSettled)==null||c.call(l,void 0,r.error,f,p))}this.listeners.forEach(f=>{f(J(this,bi))})})},kk),rA=d.createContext(void 0),Fa=e=>{const t=d.useContext(rA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OB=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(rA.Provider,{value:e,children:t})),nA=d.createContext(!1),PB=()=>d.useContext(nA);nA.Provider;function RB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var TB=d.createContext(RB()),$B=()=>d.useContext(TB);function aA(e,t){return typeof e=="function"?e(...t):!!e}function kB(){}var jB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},IB=e=>{d.useEffect(()=>{e.clearReset()},[e])},AB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&aA(r,[e.error,n]),MB=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},FB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,NB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function LB(e,t,r){var l,c,f,p;const n=Fa(r),a=PB(),o=$B(),i=n.defaultQueryOptions(e);(c=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||c.call(l,i),i._optimisticResults=a?"isRestoring":"optimistic",MB(i),jB(i,o),IB(o);const[s]=d.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(d.useSyncExternalStore(d.useCallback(v=>{const g=a?()=>{}:s.subscribe(hr.batchCalls(v));return s.updateResult(),g},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),FB(i,u))throw NB(i,s,o);if(AB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return(p=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,i,u),i.notifyOnChangeProps?u:s.trackResult(u)}function il(e,t){return LB(e,SB,t)}function bm(e,t){const r=Fa(t),[n]=d.useState(()=>new EB(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(hr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,s)=>{n.mutate(i,s).catch(kB)},[n]);if(a.error&&aA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function _b(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function p1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var M6=typeof WeakMap=="function"?WeakMap:Map;function mI(e,t,r){r=To(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Fv||(Fv=!0,_1=n),p1(e,t)},r}function yI(e,t,r){r=To(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){p1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){p1(e,t),typeof n!="function"&&(ki===null?ki=new Set([this]):ki.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function UO(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new M6;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=Q6.bind(null,e,t,r),t.then(e,e))}function WO(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function HO(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=To(-1,1),t.tag=2,$i(r,t,1))),r.lanes|=1),e)}var F6=Bo.ReactCurrentOwner,En=!1;function cn(e,t,r,n){t.child=e===null?Kj(t,null,r,n):Uu(t,e.child,r,n)}function qO(e,t,r,n,a){r=r.render;var o=t.ref;return su(t,a),n=ES(e,t,r,n,o,a),r=OS(),e!==null&&!En?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Mo(e,t,a)):(Yt&&r&&pS(t),t.flags|=1,cn(e,t,n,a),t.child)}function KO(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!FS(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,bI(e,t,o,n,a)):(e=Mh(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:af,r(i,n)&&e.ref===t.ref)return Mo(e,t,a)}return t.flags|=1,e=Ii(o,n),e.ref=t.ref,e.return=t,t.child=e}function bI(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(af(o,n)&&e.ref===t.ref)if(En=!1,t.pendingProps=n=o,(e.lanes&a)!==0)e.flags&131072&&(En=!0);else return t.lanes=e.lanes,Mo(e,t,a)}return h1(e,t,r,n,a)}function xI(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ht(ql,Ln),Ln|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ht(ql,Ln),Ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Ht(ql,Ln),Ln|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ht(ql,Ln),Ln|=n;return cn(e,t,a,r),t.child}function wI(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function h1(e,t,r,n,a){var o=Pn(r)?Vs:tn.current;return o=zu(t,o),su(t,a),r=ES(e,t,r,n,o,a),n=OS(),e!==null&&!En?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Mo(e,t,a)):(Yt&&n&&pS(t),t.flags|=1,cn(e,t,r,a),t.child)}function GO(e,t,r,n,a){if(Pn(r)){var o=!0;Ov(t)}else o=!1;if(su(t,a),t.stateNode===null)jh(e,t),gI(t,r,n),f1(t,r,n,a),n=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,l=r.contextType;typeof l=="object"&&l!==null?l=ua(l):(l=Pn(r)?Vs:tn.current,l=zu(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==n||u!==l)&&VO(t,i,n,l),ai=!1;var p=t.memoizedState;i.state=p,kv(t,n,i,a),u=t.memoizedState,s!==n||p!==u||On.current||ai?(typeof c=="function"&&(d1(t,r,c,n),u=t.memoizedState),(s=ai||zO(t,r,s,n,p,u,l))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),i.props=n,i.state=u,i.context=l,n=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Qj(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:wa(t.type,s),i.props=l,f=t.pendingProps,p=i.context,u=r.contextType,typeof u=="object"&&u!==null?u=ua(u):(u=Pn(r)?Vs:tn.current,u=zu(t,u));var v=r.getDerivedStateFromProps;(c=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||p!==u)&&VO(t,i,n,u),ai=!1,p=t.memoizedState,i.state=p,kv(t,n,i,a);var g=t.memoizedState;s!==f||p!==g||On.current||ai?(typeof v=="function"&&(d1(t,r,v,n),g=t.memoizedState),(l=ai||zO(t,r,l,n,p,g,u)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,g,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,g,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),i.props=n,i.state=g,i.context=u,n=l):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return v1(e,t,r,n,o,a)}function v1(e,t,r,n,a,o){wI(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return a&&IO(t,r,!1),Mo(e,t,o);n=t.stateNode,F6.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Uu(t,e.child,null,o),t.child=Uu(t,null,s,o)):cn(e,t,s,o),t.memoizedState=n.state,a&&IO(t,r,!0),t.child}function SI(e){var t=e.stateNode;t.pendingContext?jO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jO(e,t.context,!1),wS(e,t.containerInfo)}function QO(e,t,r,n,a){return Vu(),vS(a),t.flags|=256,cn(e,t,r,n),t.child}var g1={dehydrated:null,treeContext:null,retryLane:0};function m1(e){return{baseLanes:e,cachePool:null,transitions:null}}function _I(e,t,r){var n=t.pendingProps,a=er.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ht(er,a&1),e===null)return u1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=pm(i,n,0,null),e=Ms(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=m1(r),t.memoizedState=g1,e):TS(t,i));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return N6(e,t,i,n,s,a,r);if(o){o=n.fallback,i=t.mode,a=e.child,s=a.sibling;var u={mode:"hidden",children:n.children};return!(i&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Ii(a,u),n.subtreeFlags=a.subtreeFlags&14680064),s!==null?o=Ii(s,o):(o=Ms(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?m1(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=g1,n}return o=e.child,e=o.sibling,n=Ii(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function TS(e,t){return t=pm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qp(e,t,r,n){return n!==null&&vS(n),Uu(t,e.child,null,r),e=TS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function N6(e,t,r,n,a,o,i){if(r)return t.flags&256?(t.flags&=-257,n=_b(Error(Ie(422))),qp(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=pm({mode:"visible",children:n.children},a,0,null),o=Ms(o,a,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Uu(t,e.child,null,i),t.child.memoizedState=m1(i),t.memoizedState=g1,o);if(!(t.mode&1))return qp(e,t,i,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(Ie(419)),n=_b(o,n,void 0),qp(e,t,i,n)}if(s=(i&e.childLanes)!==0,En||s){if(n=Ar,n!==null){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,Ao(e,a),ka(n,e,a,-1))}return MS(),n=_b(Error(Ie(421))),qp(e,t,i,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=X6.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Vn=Ti(a.nextSibling),Un=t,Yt=!0,Ea=null,e!==null&&(na[aa++]=Eo,na[aa++]=Oo,na[aa++]=Us,Eo=e.id,Oo=e.overflow,Us=t),t=TS(t,n.children),t.flags|=4096,t)}function XO(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),c1(e.return,t,r)}function Cb(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function CI(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(cn(e,t,n.children,r),n=er.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&XO(e,r,t);else if(e.tag===19)XO(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ht(er,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&jv(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Cb(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&jv(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Cb(t,!0,r,null,o);break;case"together":Cb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Hs|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ie(153));if(t.child!==null){for(e=t.child,r=Ii(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ii(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function L6(e,t,r){switch(t.tag){case 3:SI(t),Vu();break;case 5:Xj(t);break;case 1:Pn(t.type)&&Ov(t);break;case 4:wS(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Ht(Tv,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ht(er,er.current&1),t.flags|=128,null):r&t.child.childLanes?_I(e,t,r):(Ht(er,er.current&1),e=Mo(e,t,r),e!==null?e.sibling:null);Ht(er,er.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return CI(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ht(er,er.current),n)break;return null;case 22:case 23:return t.lanes=0,xI(e,t,r)}return Mo(e,t,r)}var EI,y1,OI,PI;EI=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};y1=function(){};OI=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,bs(eo.current);var o=null;switch(r){case"input":a=B0(e,a),n=B0(e,n),o=[];break;case"select":a=rr({},a,{value:void 0}),n=rr({},n,{value:void 0}),o=[];break;case"textarea":a=U0(e,a),n=U0(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Cv)}H0(r,n);var i;r=null;for(l in a)if(!n.hasOwnProperty(l)&&a.hasOwnProperty(l)&&a[l]!=null)if(l==="style"){var s=a[l];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Yd.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(s=a!=null?a[l]:void 0,n.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Yd.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Kt("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};PI=function(e,t,r,n){r!==n&&(t.flags|=4)};function Bc(e,t){if(!Yt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Xr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function D6(e,t,r){var n=t.pendingProps;switch(hS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:return Pn(t.type)&&Ev(),Xr(t),null;case 3:return n=t.stateNode,Wu(),Qt(On),Qt(tn),_S(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ea!==null&&(O1(Ea),Ea=null))),y1(e,t),Xr(t),null;case 5:SS(t);var a=bs(cf.current);if(r=t.type,e!==null&&t.stateNode!=null)OI(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ie(166));return Xr(t),null}if(e=bs(eo.current),Wp(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Qa]=t,n[lf]=o,e=(t.mode&1)!==0,r){case"dialog":Kt("cancel",n),Kt("close",n);break;case"iframe":case"object":case"embed":Kt("load",n);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Qa]=t,e[lf]=n,EI(e,t,!1,!1),t.stateNode=e;e:{switch(i=q0(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),a=n;break;case"iframe":case"object":case"embed":Kt("load",e),a=n;break;case"video":case"audio":for(a=0;aqu&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304)}else{if(!n)if(e=jv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Yt)return Xr(t),null}else 2*pr()-o.renderingStartTime>qu&&r!==1073741824&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pr(),t.sibling=null,r=er.current,Ht(er,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return AS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function B6(e,t){switch(hS(t),t.tag){case 1:return Pn(t.type)&&Ev(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wu(),Qt(On),Qt(tn),_S(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return SS(t),null;case 13:if(Qt(er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(er),null;case 4:return Wu(),null;case 10:return yS(t.type._context),null;case 22:case 23:return AS(),null;case 24:return null;default:return null}}var Kp=!1,Zr=!1,z6=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Hl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){sr(e,t,n)}else r.current=null}function b1(e,t,r){try{r()}catch(n){sr(e,t,n)}}var YO=!1;function V6(e,t){if(r1=wv,e=jj(),fS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==r||a!==0&&f.nodeType!==3||(s=i+a),f!==o||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(n1={focusedElem:e,selectionRange:r},wv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:wa(t.type,y),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){sr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=YO,YO=!1,g}function _d(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&b1(t,r,o)}a=a.next}while(a!==n)}}function dm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function x1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function RI(e){var t=e.alternate;t!==null&&(e.alternate=null,RI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qa],delete t[lf],delete t[i1],delete t[C6],delete t[E6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function TI(e){return e.tag===5||e.tag===3||e.tag===4}function JO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Cv));else if(n!==4&&(e=e.child,e!==null))for(w1(e,t,r),e=e.sibling;e!==null;)w1(e,t,r),e=e.sibling}function S1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(S1(e,t,r),e=e.sibling;e!==null;)S1(e,t,r),e=e.sibling}var Dr=null,_a=!1;function Xo(e,t,r){for(r=r.child;r!==null;)$I(e,t,r),r=r.sibling}function $I(e,t,r){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(nm,r)}catch{}switch(r.tag){case 5:Zr||Hl(r,t);case 6:var n=Dr,a=_a;Dr=null,Xo(e,t,r),Dr=n,_a=a,Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?mb(e.parentNode,r):e.nodeType===1&&mb(e,r),rf(e)):mb(Dr,r.stateNode));break;case 4:n=Dr,a=_a,Dr=r.stateNode.containerInfo,_a=!0,Xo(e,t,r),Dr=n,_a=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&b1(r,t,i),a=a.next}while(a!==n)}Xo(e,t,r);break;case 1:if(!Zr&&(Hl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){sr(r,t,s)}Xo(e,t,r);break;case 21:Xo(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Xo(e,t,r),Zr=n):Xo(e,t,r);break;default:Xo(e,t,r)}}function ZO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new z6),t.forEach(function(n){var a=Y6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=pr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*W6(n/1960))-n,10e?16:e,wi===null)var n=!1;else{if(e=wi,wi=null,Nv=0,Ct&6)throw Error(Ie(331));var a=Ct;for(Ct|=4,Ve=e.current;Ve!==null;){var o=Ve,i=o.child;if(Ve.flags&16){var s=o.deletions;if(s!==null){for(var u=0;upr()-jS?As(e,0):kS|=r),Rn(e,t)}function LI(e,t){t===0&&(e.mode&1?(t=Lp,Lp<<=1,!(Lp&130023424)&&(Lp=4194304)):t=1);var r=pn();e=Ao(e,t),e!==null&&(Yf(e,t,r),Rn(e,r))}function X6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),LI(e,r)}function Y6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ie(314))}n!==null&&n.delete(t),LI(e,r)}var DI;DI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)En=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return En=!1,L6(e,t,r);En=!!(e.flags&131072)}else En=!1,Yt&&t.flags&1048576&&Uj(t,Rv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;jh(e,t),e=t.pendingProps;var a=zu(t,tn.current);su(t,r),a=ES(null,t,n,e,a,r);var o=OS();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(n)?(o=!0,Ov(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xS(t),a.updater=cm,t.stateNode=a,a._reactInternals=t,f1(t,n,e,r),t=v1(null,t,n,!0,o,r)):(t.tag=0,Yt&&o&&pS(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(jh(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Z6(n),e=wa(n,e),a){case 0:t=h1(null,t,n,e,r);break e;case 1:t=GO(null,t,n,e,r);break e;case 11:t=qO(null,t,n,e,r);break e;case 14:t=KO(null,t,n,wa(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),h1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),GO(e,t,n,a,r);case 3:e:{if(SI(t),e===null)throw Error(Ie(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Qj(e,t),kv(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Hu(Error(Ie(423)),t),t=QO(e,t,n,r,a);break e}else if(n!==a){a=Hu(Error(Ie(424)),t),t=QO(e,t,n,r,a);break e}else for(Vn=Ti(t.stateNode.containerInfo.firstChild),Un=t,Yt=!0,Ea=null,r=Kj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vu(),n===a){t=Mo(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return Xj(t),e===null&&u1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,a1(n,a)?i=null:o!==null&&a1(n,o)&&(t.flags|=32),wI(e,t),cn(e,t,i,r),t.child;case 6:return e===null&&u1(t),null;case 13:return _I(e,t,r);case 4:return wS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Uu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),qO(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ht(Tv,n._currentValue),n._currentValue=i,o!==null)if(Ia(o.value,i)){if(o.children===a.children&&!On.current){t=Mo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=To(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),c1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ie(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),c1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,su(t,r),a=ua(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=wa(n,t.pendingProps),a=wa(n.type,a),KO(e,t,n,a,r);case 15:return bI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),jh(e,t),t.tag=1,Pn(n)?(e=!0,Ov(t)):e=!1,su(t,r),gI(t,n,a),f1(t,n,a,r),v1(null,t,n,!0,e,r);case 19:return CI(e,t,r);case 22:return xI(e,t,r)}throw Error(Ie(156,t.tag))};function BI(e,t){return pj(e,t)}function J6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ia(e,t,r,n){return new J6(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Z6(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tS)return 11;if(e===rS)return 14}return 2}function Ii(e,t){var r=e.alternate;return r===null?(r=ia(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Mh(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")FS(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fl:return Ms(r.children,a,o,t);case eS:i=8,a|=8;break;case F0:return e=ia(12,r,t,a|2),e.elementType=F0,e.lanes=o,e;case N0:return e=ia(13,r,t,a),e.elementType=N0,e.lanes=o,e;case L0:return e=ia(19,r,t,a),e.elementType=L0,e.lanes=o,e;case Xk:return pm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gk:i=10;break e;case Qk:i=9;break e;case tS:i=11;break e;case rS:i=14;break e;case ni:i=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ia(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Ms(e,t,r,n){return e=ia(7,e,n,t),e.lanes=r,e}function pm(e,t,r,n){return e=ia(22,e,n,t),e.elementType=Xk,e.lanes=r,e.stateNode={isHidden:!1},e}function Eb(e,t,r){return e=ia(6,e,null,t),e.lanes=r,e}function Ob(e,t,r){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eB(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function NS(e,t,r,n,a,o,i,s,u){return e=new eB(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ia(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},xS(o),e}function tB(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WI)}catch(e){console.error(e)}}WI(),Wk.exports=Gn;var tp=Wk.exports;const ld=Mr(tp),iB=jk({__proto__:null,default:ld},[tp]);var sP=tp;A0.createRoot=sP.createRoot,A0.hydrateRoot=sP.hydrateRoot;var zS=d.createContext(void 0);zS.displayName="AuthContext";var ym={loginUrl:"/login",afterLoginUrl:"/"},sB=function(){return d.useContext(zS)};const zo=sB;var uc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ku=typeof window>"u"||"Deno"in globalThis;function Zn(){}function lB(e,t){return typeof e=="function"?e(t):e}function P1(e){return typeof e=="number"&&e>=0&&e!==1/0}function HI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uu(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){return typeof e=="function"?e(t):e}function lP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==VS(i,t.options))return!1}else if(!vf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function uP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ks(t.options.mutationKey)!==Ks(o))return!1}else if(!vf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function VS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ks)(e)}function Ks(e){return JSON.stringify(e,(t,r)=>R1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function vf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!vf(e[r],t[r])):!1}function qI(e,t){if(e===t)return e;const r=cP(e)&&cP(t);if(r||R1(e)&&R1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function T1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?qI(e,t):t}function cB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function dB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var KI=Symbol();function GI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===KI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Os,fi,Ou,Sk,fB=(Sk=class extends uc{constructor(){super();Xe(this,Os,void 0);Xe(this,fi,void 0);Xe(this,Ou,void 0);ze(this,Ou,t=>{if(!Ku&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){J(this,fi)||this.setEventListener(J(this,Ou))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,fi))==null||t.call(this),ze(this,fi,void 0))}setEventListener(t){var r;ze(this,Ou,t),(r=J(this,fi))==null||r.call(this),ze(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){J(this,Os)!==t&&(ze(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof J(this,Os)=="boolean"?J(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,fi=new WeakMap,Ou=new WeakMap,Sk),US=new fB,Pu,pi,Ru,_k,pB=(_k=class extends uc{constructor(){super();Xe(this,Pu,!0);Xe(this,pi,void 0);Xe(this,Ru,void 0);ze(this,Ru,t=>{if(!Ku&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){J(this,pi)||this.setEventListener(J(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,pi))==null||t.call(this),ze(this,pi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=J(this,pi))==null||r.call(this),ze(this,pi,t(this.setOnline.bind(this)))}setOnline(t){J(this,Pu)!==t&&(ze(this,Pu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return J(this,Pu)}},Pu=new WeakMap,pi=new WeakMap,Ru=new WeakMap,_k),zv=new pB;function hB(e){return Math.min(1e3*2**e,3e4)}function QI(e){return(e??"online")==="online"?zv.isOnline():!0}var XI=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Pb(e){return e instanceof XI}function YI(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,m)=>{o=x,i=m}),u=x=>{var m;n||(g(new XI(x)),(m=e.abort)==null||m.call(e))},l=()=>{t=!0},c=()=>{t=!1},f=()=>US.isFocused()&&(e.networkMode==="always"||zv.isOnline())&&e.canRun(),p=()=>QI(e.networkMode)&&e.canRun(),v=x=>{var m;n||(n=!0,(m=e.onSuccess)==null||m.call(e,x),a==null||a(),o(x))},g=x=>{var m;n||(n=!0,(m=e.onError)==null||m.call(e,x),a==null||a(),i(x))},y=()=>new Promise(x=>{var m;a=b=>{(n||f())&&x(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),S=()=>{if(n)return;let x;const m=r===0?e.initialPromise:void 0;try{x=m??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(v).catch(b=>{var w;if(n)return;const h=e.retry??(Ku?0:3),_=e.retryDelay??hB,C=typeof _=="function"?_(r,b):_,E=h===!0||typeof h=="number"&&rf()?void 0:y()).then(()=>{t?g(b):S()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?S():y().then(S),s)}}function vB(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=s=>setTimeout(s,0);const o=s=>{t?e.push(s):a(()=>{r(s)})},i=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var hr=vB(),Ps,Ck,JI=(Ck=class{constructor(){Xe(this,Ps,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P1(this.gcTime)&&ze(this,Ps,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ku?1/0:5*60*1e3))}clearGcTimeout(){J(this,Ps)&&(clearTimeout(J(this,Ps)),ze(this,Ps,void 0))}},Ps=new WeakMap,Ck),Tu,$u,Jn,Jr,Lf,Rs,Sa,yo,Ek,gB=(Ek=class extends JI{constructor(t){super();Xe(this,Sa);Xe(this,Tu,void 0);Xe(this,$u,void 0);Xe(this,Jn,void 0);Xe(this,Jr,void 0);Xe(this,Lf,void 0);Xe(this,Rs,void 0);ze(this,Rs,!1),ze(this,Lf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Jn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Tu,mB(this.options)),this.state=t.state??J(this,Tu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...J(this,Lf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Jn).remove(this)}setData(t,r){const n=T1(this.state.data,t,this.options);return pt(this,Sa,yo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){pt(this,Sa,yo).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=J(this,Jr))==null?void 0:n.promise;return(a=J(this,Jr))==null||a.cancel(t),r?r.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Tu))}isActive(){return this.observers.some(t=>Oa(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!HI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(J(this,Jr)&&(J(this,Rs)?J(this,Jr).cancel({revert:!0}):J(this,Jr).cancelRetry()),this.scheduleGc()),J(this,Jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Sa,yo).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(J(this,Jr))return J(this,Jr).continueRetry(),J(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ze(this,Rs,!0),n.signal)})},o=()=>{const f=GI(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Rs,!1),this.options.persister?this.options.persister(f,p,this):f(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,$u,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&pt(this,Sa,yo).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=f=>{var p,v,g,y;Pb(f)&&f.silent||pt(this,Sa,yo).call(this,{type:"error",error:f}),Pb(f)||((v=(p=J(this,Jn).config).onError)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,YI({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,v,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){s(S);return}(v=(p=J(this,Jn).config).onSuccess)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,p)=>{pt(this,Sa,yo).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pt(this,Sa,yo).call(this,{type:"pause"})},onContinue:()=>{pt(this,Sa,yo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),J(this,Jr).start()}},Tu=new WeakMap,$u=new WeakMap,Jn=new WeakMap,Jr=new WeakMap,Lf=new WeakMap,Rs=new WeakMap,Sa=new WeakSet,yo=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...ZI(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Pb(a)&&a.revert&&J(this,$u)?{...J(this,$u),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),J(this,Jn).notify({query:this,type:"updated",action:t})})},Ek);function ZI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Va,Ok,yB=(Ok=class extends uc{constructor(t={}){super();Xe(this,Va,void 0);this.config=t,ze(this,Va,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??VS(a,r);let i=this.get(o);return i||(i=new gB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){J(this,Va).has(t.queryHash)||(J(this,Va).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=J(this,Va).get(t.queryHash);r&&(t.destroy(),r===t&&J(this,Va).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Va).get(t)}getAll(){return[...J(this,Va).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>lP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>lP(t,n)):r}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){hr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Va=new WeakMap,Ok),Ua,sn,Ts,Wa,ei,Pk,bB=(Pk=class extends JI{constructor(t){super();Xe(this,Wa);Xe(this,Ua,void 0);Xe(this,sn,void 0);Xe(this,Ts,void 0);this.mutationId=t.mutationId,ze(this,sn,t.mutationCache),ze(this,Ua,[]),this.state=t.state||eA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Ua).includes(t)||(J(this,Ua).push(t),this.clearGcTimeout(),J(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ua,J(this,Ua).filter(r=>r!==t)),this.scheduleGc(),J(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Ua).length||(this.state.status==="pending"?this.scheduleGc():J(this,sn).remove(this))}continue(){var t;return((t=J(this,Ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_,C,E;ze(this,Ts,YI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,O)=>{pt(this,Wa,ei).call(this,{type:"failed",failureCount:w,error:O})},onPause:()=>{pt(this,Wa,ei).call(this,{type:"pause"})},onContinue:()=>{pt(this,Wa,ei).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,sn).canRun(this)}));const r=this.state.status==="pending",n=!J(this,Ts).canStart();try{if(!r){pt(this,Wa,ei).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=J(this,sn).config).onMutate)==null?void 0:o.call(a,t,this));const O=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));O!==this.state.context&&pt(this,Wa,ei).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const w=await J(this,Ts).start();return await((l=(u=J(this,sn).config).onSuccess)==null?void 0:l.call(u,w,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,w,t,this.state.context)),await((v=(p=J(this,sn).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,w,null,t,this.state.context)),pt(this,Wa,ei).call(this,{type:"success",data:w}),w}catch(w){try{throw await((x=(S=J(this,sn).config).onError)==null?void 0:x.call(S,w,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,w,t,this.state.context)),await((_=(h=J(this,sn).config).onSettled)==null?void 0:_.call(h,void 0,w,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,w,t,this.state.context)),w}finally{pt(this,Wa,ei).call(this,{type:"error",error:w})}}finally{J(this,sn).runNext(this)}}},Ua=new WeakMap,sn=new WeakMap,Ts=new WeakMap,Wa=new WeakSet,ei=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),hr.batch(()=>{J(this,Ua).forEach(n=>{n.onMutationUpdate(t)}),J(this,sn).notify({mutation:this,type:"updated",action:t})})},Pk);function eA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,Df,Rk,xB=(Rk=class extends uc{constructor(t={}){super();Xe(this,Fn,void 0);Xe(this,Df,void 0);this.config=t,ze(this,Fn,new Map),ze(this,Df,Date.now())}build(t,r,n){const a=new bB({mutationCache:this,mutationId:++jp(this,Df)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Xp(t),n=J(this,Fn).get(r)??[];n.push(t),J(this,Fn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Xp(t);if(J(this,Fn).has(r)){const a=(n=J(this,Fn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?J(this,Fn).delete(r):J(this,Fn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...J(this,Fn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uP(r,n))}findAll(t={}){return this.getAll().filter(r=>uP(t,r))}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return hr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Zn))))}},Fn=new WeakMap,Df=new WeakMap,Rk);function Xp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fP(e){return{onFetch:(t,r)=>{var c,f,p,v,g;const n=t.options,a=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let y=!1;const S=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},x=GI(t.options,t.fetchOptions),m=async(b,h,_)=>{if(y)return Promise.reject();if(h==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:t.queryKey,pageParam:h,direction:_?"backward":"forward",meta:t.options.meta};S(C);const E=await x(C),{maxPages:w}=t.options,O=_?dB:cB;return{pages:O(b.pages,E,w),pageParams:O(b.pageParams,h,w)}};if(a&&o.length){const b=a==="backward",h=b?wB:pP,_={pages:o,pageParams:i},C=h(n,_);s=await m(_,C,b)}else{const b=e??o.length;do{const h=u===0?i[0]??n.initialPageParam:pP(n,s);if(u>0&&h==null)break;s=await m(s,h),u++}while(u{var y,S;return(S=(y=t.options).persister)==null?void 0:S.call(y,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function pP(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function wB(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ir,hi,vi,ku,ju,gi,Iu,Au,Tk,SB=(Tk=class{constructor(e={}){Xe(this,ir,void 0);Xe(this,hi,void 0);Xe(this,vi,void 0);Xe(this,ku,void 0);Xe(this,ju,void 0);Xe(this,gi,void 0);Xe(this,Iu,void 0);Xe(this,Au,void 0);ze(this,ir,e.queryCache||new yB),ze(this,hi,e.mutationCache||new xB),ze(this,vi,e.defaultOptions||{}),ze(this,ku,new Map),ze(this,ju,new Map),ze(this,gi,0)}mount(){jp(this,gi)._++,J(this,gi)===1&&(ze(this,Iu,US.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onFocus())})),ze(this,Au,zv.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onOnline())})))}unmount(){var e,t;jp(this,gi)._--,J(this,gi)===0&&((e=J(this,Iu))==null||e.call(this),ze(this,Iu,void 0),(t=J(this,Au))==null||t.call(this),ze(this,Au,void 0))}isFetching(e){return J(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=J(this,ir).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(uu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return J(this,ir).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=J(this,ir).get(n.queryHash),o=a==null?void 0:a.state.data,i=lB(t,o);if(i!==void 0)return J(this,ir).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return hr.batch(()=>J(this,ir).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=J(this,ir);hr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=J(this,ir),n={type:"active",...e};return hr.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=hr.batch(()=>J(this,ir).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Zn).catch(Zn)}invalidateQueries(e={},t={}){return hr.batch(()=>{if(J(this,ir).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=hr.batch(()=>J(this,ir).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Zn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=J(this,ir).build(this,t);return r.isStaleByTime(uu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=fP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=fP(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zv.isOnline()?J(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,ir)}getMutationCache(){return J(this,hi)}getDefaultOptions(){return J(this,vi)}setDefaultOptions(e){ze(this,vi,e)}setQueryDefaults(e,t){J(this,ku).set(Ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ku).values()];let r={};return t.forEach(n=>{vf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){J(this,ju).set(Ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,ju).values()];let r={};return t.forEach(n=>{vf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===KI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,vi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,ir).clear(),J(this,hi).clear()}},ir=new WeakMap,hi=new WeakMap,vi=new WeakMap,ku=new WeakMap,ju=new WeakMap,gi=new WeakMap,Iu=new WeakMap,Au=new WeakMap,Tk),wn,wt,Bf,ln,$s,Mu,Ha,zf,Fu,Nu,ks,js,mi,Lu,Is,ud,Vf,$1,Uf,k1,Wf,j1,Hf,I1,qf,A1,Kf,M1,Gf,F1,tm,tA,$k,_B=($k=class extends uc{constructor(t,r){super();Xe(this,Is);Xe(this,Vf);Xe(this,Uf);Xe(this,Wf);Xe(this,Hf);Xe(this,qf);Xe(this,Kf);Xe(this,Gf);Xe(this,tm);Xe(this,wn,void 0);Xe(this,wt,void 0);Xe(this,Bf,void 0);Xe(this,ln,void 0);Xe(this,$s,void 0);Xe(this,Mu,void 0);Xe(this,Ha,void 0);Xe(this,zf,void 0);Xe(this,Fu,void 0);Xe(this,Nu,void 0);Xe(this,ks,void 0);Xe(this,js,void 0);Xe(this,mi,void 0);Xe(this,Lu,new Set);this.options=r,ze(this,wn,t),ze(this,Ha,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,wt).addObserver(this),hP(J(this,wt),this.options)?pt(this,Is,ud).call(this):this.updateResult(),pt(this,Hf,I1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return N1(J(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return N1(J(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,qf,A1).call(this),pt(this,Kf,M1).call(this),J(this,wt).removeObserver(this)}setOptions(t,r){const n=this.options,a=J(this,wt);if(this.options=J(this,wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oa(this.options.enabled,J(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Gf,F1).call(this),J(this,wt).setOptions(this.options),n._defaulted&&!Bv(this.options,n)&&J(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,wt),observer:this});const o=this.hasListeners();o&&vP(J(this,wt),a,this.options,n)&&pt(this,Is,ud).call(this),this.updateResult(r),o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||uu(this.options.staleTime,J(this,wt))!==uu(n.staleTime,J(this,wt)))&&pt(this,Vf,$1).call(this);const i=pt(this,Uf,k1).call(this);o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||i!==J(this,mi))&&pt(this,Wf,j1).call(this,i)}getOptimisticResult(t){const r=J(this,wn).getQueryCache().build(J(this,wn),t),n=this.createResult(r,t);return EB(this,n)&&(ze(this,ln,n),ze(this,Mu,this.options),ze(this,$s,J(this,wt).state)),n}getCurrentResult(){return J(this,ln)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){J(this,Lu).add(t)}getCurrentQuery(){return J(this,wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=J(this,wn).defaultQueryOptions(t),n=J(this,wn).getQueryCache().build(J(this,wn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return pt(this,Is,ud).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,ln)))}createResult(t,r){var E;const n=J(this,wt),a=this.options,o=J(this,ln),i=J(this,$s),s=J(this,Mu),l=t!==n?t.state:J(this,Bf),{state:c}=t;let f={...c},p=!1,v;if(r._optimisticResults){const w=this.hasListeners(),O=!w&&hP(t,r),P=w&&vP(t,n,r,a);(O||P)&&(f={...f,...ZI(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:S}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(i==null?void 0:i.data)&&r.select===J(this,zf))v=J(this,Fu);else try{ze(this,zf,r.select),v=r.select(f.data),v=T1(o==null?void 0:o.data,v,r),ze(this,Fu,v),ze(this,Ha,null)}catch(w){ze(this,Ha,w)}else v=f.data;if(r.placeholderData!==void 0&&v===void 0&&S==="pending"){let w;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))w=o.data;else if(w=typeof r.placeholderData=="function"?r.placeholderData((E=J(this,Nu))==null?void 0:E.state.data,J(this,Nu)):r.placeholderData,r.select&&w!==void 0)try{w=r.select(w),ze(this,Ha,null)}catch(O){ze(this,Ha,O)}w!==void 0&&(S="success",v=T1(o==null?void 0:o.data,w,r),p=!0)}J(this,Ha)&&(g=J(this,Ha),v=J(this,Fu),y=Date.now(),S="error");const x=f.fetchStatus==="fetching",m=S==="pending",b=S==="error",h=m&&x,_=v!==void 0;return{status:S,fetchStatus:f.fetchStatus,isPending:m,isSuccess:S==="success",isError:b,isInitialLoading:h,isLoading:h,data:v,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!m,isLoadingError:b&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&_,isStale:WS(t,r),refetch:this.refetch}}updateResult(t){const r=J(this,ln),n=this.createResult(J(this,wt),this.options);if(ze(this,$s,J(this,wt).state),ze(this,Mu,this.options),J(this,$s).data!==void 0&&ze(this,Nu,J(this,wt)),Bv(n,r))return;ze(this,ln,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!J(this,Lu).size)return!0;const u=new Set(s??J(this,Lu));return this.options.throwOnError&&u.add("error"),Object.keys(J(this,ln)).some(l=>{const c=l;return J(this,ln)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),pt(this,tm,tA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Hf,I1).call(this)}},wn=new WeakMap,wt=new WeakMap,Bf=new WeakMap,ln=new WeakMap,$s=new WeakMap,Mu=new WeakMap,Ha=new WeakMap,zf=new WeakMap,Fu=new WeakMap,Nu=new WeakMap,ks=new WeakMap,js=new WeakMap,mi=new WeakMap,Lu=new WeakMap,Is=new WeakSet,ud=function(t){pt(this,Gf,F1).call(this);let r=J(this,wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Zn)),r},Vf=new WeakSet,$1=function(){pt(this,qf,A1).call(this);const t=uu(this.options.staleTime,J(this,wt));if(Ku||J(this,ln).isStale||!P1(t))return;const n=HI(J(this,ln).dataUpdatedAt,t)+1;ze(this,ks,setTimeout(()=>{J(this,ln).isStale||this.updateResult()},n))},Uf=new WeakSet,k1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,wt)):this.options.refetchInterval)??!1},Wf=new WeakSet,j1=function(t){pt(this,Kf,M1).call(this),ze(this,mi,t),!(Ku||Oa(this.options.enabled,J(this,wt))===!1||!P1(J(this,mi))||J(this,mi)===0)&&ze(this,js,setInterval(()=>{(this.options.refetchIntervalInBackground||US.isFocused())&&pt(this,Is,ud).call(this)},J(this,mi)))},Hf=new WeakSet,I1=function(){pt(this,Vf,$1).call(this),pt(this,Wf,j1).call(this,pt(this,Uf,k1).call(this))},qf=new WeakSet,A1=function(){J(this,ks)&&(clearTimeout(J(this,ks)),ze(this,ks,void 0))},Kf=new WeakSet,M1=function(){J(this,js)&&(clearInterval(J(this,js)),ze(this,js,void 0))},Gf=new WeakSet,F1=function(){const t=J(this,wn).getQueryCache().build(J(this,wn),this.options);if(t===J(this,wt))return;const r=J(this,wt);ze(this,wt,t),ze(this,Bf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},tm=new WeakSet,tA=function(t){hr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(J(this,ln))}),J(this,wn).getQueryCache().notify({query:J(this,wt),type:"observerResultsUpdated"})})},$k);function CB(e,t){return Oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hP(e,t){return CB(e,t)||e.state.data!==void 0&&N1(e,t,t.refetchOnMount)}function N1(e,t,r){if(Oa(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&WS(e,t)}return!1}function vP(e,t,r,n){return(e!==t||Oa(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&WS(e,r)}function WS(e,t){return Oa(t.enabled,e)!==!1&&e.isStaleByTime(uu(t.staleTime,e))}function EB(e,t){return!Bv(e.getCurrentResult(),t)}var yi,bi,Sn,_o,Du,Fh,Qf,L1,kk,OB=(kk=class extends uc{constructor(r,n){super();Xe(this,Du);Xe(this,Qf);Xe(this,yi,void 0);Xe(this,bi,void 0);Xe(this,Sn,void 0);Xe(this,_o,void 0);ze(this,yi,r),this.setOptions(n),this.bindMethods(),pt(this,Du,Fh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=J(this,yi).defaultMutationOptions(r),Bv(this.options,n)||J(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ks(n.mutationKey)!==Ks(this.options.mutationKey)?this.reset():((a=J(this,Sn))==null?void 0:a.state.status)==="pending"&&J(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=J(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this,r)}getCurrentResult(){return J(this,bi)}reset(){var r;(r=J(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this)}mutate(r,n){var a;return ze(this,_o,n),(a=J(this,Sn))==null||a.removeObserver(this),ze(this,Sn,J(this,yi).getMutationCache().build(J(this,yi),this.options)),J(this,Sn).addObserver(this),J(this,Sn).execute(r)}},yi=new WeakMap,bi=new WeakMap,Sn=new WeakMap,_o=new WeakMap,Du=new WeakSet,Fh=function(){var n;const r=((n=J(this,Sn))==null?void 0:n.state)??eA();ze(this,bi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Qf=new WeakSet,L1=function(r){hr.batch(()=>{var n,a,o,i,s,u,l,c;if(J(this,_o)&&this.hasListeners()){const f=J(this,bi).variables,p=J(this,bi).context;(r==null?void 0:r.type)==="success"?((a=(n=J(this,_o)).onSuccess)==null||a.call(n,r.data,f,p),(i=(o=J(this,_o)).onSettled)==null||i.call(o,r.data,null,f,p)):(r==null?void 0:r.type)==="error"&&((u=(s=J(this,_o)).onError)==null||u.call(s,r.error,f,p),(c=(l=J(this,_o)).onSettled)==null||c.call(l,void 0,r.error,f,p))}this.listeners.forEach(f=>{f(J(this,bi))})})},kk),rA=d.createContext(void 0),Fa=e=>{const t=d.useContext(rA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PB=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(rA.Provider,{value:e,children:t})),nA=d.createContext(!1),RB=()=>d.useContext(nA);nA.Provider;function TB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $B=d.createContext(TB()),kB=()=>d.useContext($B);function aA(e,t){return typeof e=="function"?e(...t):!!e}function jB(){}var IB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},AB=e=>{d.useEffect(()=>{e.clearReset()},[e])},MB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&aA(r,[e.error,n]),FB=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},NB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,LB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function DB(e,t,r){var l,c,f,p;const n=Fa(r),a=RB(),o=kB(),i=n.defaultQueryOptions(e);(c=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||c.call(l,i),i._optimisticResults=a?"isRestoring":"optimistic",FB(i),IB(i,o),AB(o);const[s]=d.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(d.useSyncExternalStore(d.useCallback(v=>{const g=a?()=>{}:s.subscribe(hr.batchCalls(v));return s.updateResult(),g},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),NB(i,u))throw LB(i,s,o);if(MB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return(p=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,i,u),i.notifyOnChangeProps?u:s.trackResult(u)}function il(e,t){return DB(e,_B,t)}function bm(e,t){const r=Fa(t),[n]=d.useState(()=>new OB(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(hr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,s)=>{n.mutate(i,s).catch(jB)},[n]);if(a.error&&aA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -46,9 +46,9 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BB(){return Math.random().toString(36).substr(2,8)}function mP(e,t){return{usr:e.state,key:e.key,idx:t}}function gf(e,t,r,n){return r===void 0&&(r=null),Zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?io(t):t,{state:r,key:t&&t.key||n||BB()})}function Qs(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function io(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function zB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=dr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(Zt({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function f(){s=dr.Pop;let S=c(),x=S==null?null:S-l;l=S,u&&u({action:s,location:y.location,delta:x})}function p(S,x){s=dr.Push;let m=gf(y.location,S,x);r&&r(m,S),l=c()+1;let b=mP(m,l),h=y.createHref(m);try{i.pushState(b,"",h)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(h)}o&&u&&u({action:s,location:y.location,delta:1})}function v(S,x){s=dr.Replace;let m=gf(y.location,S,x);r&&r(m,S),l=c();let b=mP(m,l),h=y.createHref(m);i.replaceState(b,"",h),o&&u&&u({action:s,location:y.location,delta:0})}function g(S){let x=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof S=="string"?S:Qs(S);return m=m.replace(/ $/,"%20"),dt(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let y={get action(){return s},get location(){return e(a,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(gP,f),u=S,()=>{a.removeEventListener(gP,f),u=null}},createHref(S){return t(a,S)},createURL:g,encodeLocation(S){let x=g(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return i.go(S)}};return y}var zt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zt||(zt={}));const VB=new Set(["lazy","caseSensitive","path","id","index","children"]);function UB(e){return e.index===!0}function mf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(dt(a.index!==!0||!a.children,"Cannot specify children on an index route"),dt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),UB(a)){let u=Zt({},a,t(a),{id:s});return n[s]=u,u}else{let u=Zt({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=mf(a.children,t,i,n)),u}})}function us(e,t,r){return r===void 0&&(r="/"),Nh(e,t,r,!1)}function Nh(e,t,r,n){let a=typeof t=="string"?io(t):t,o=Li(a.pathname||"/",r);if(o==null)return null;let i=oA(e);HB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(dt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=$o([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),oA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:JB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of iA(o.path))a(o,i,u)}),t}function iA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=iA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function HB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ZB(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const qB=/^:[\w-]+$/,KB=3,GB=2,QB=1,XB=10,YB=-2,yP=e=>e==="*";function JB(e,t){let r=e.split("/"),n=r.length;return r.some(yP)&&(n+=YB),t&&(n+=GB),r.filter(a=>!yP(a)).reduce((a,o)=>a+(qB.test(o)?KB:o===""?QB:XB),n)}function ZB(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function e8(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:v}=c;if(p==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function t8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function sA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gs(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Li(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function r8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?io(e):e;return{pathname:r?r.startsWith("/")?r:n8(r,t):t,search:o8(n),hash:i8(a)}}function n8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Rb(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function xm(e,t){let r=lA(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function wm(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=io(e):(a=Zt({},e),dt(!a.pathname||!a.pathname.includes("?"),Rb("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),Rb("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),Rb("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=r8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const $o=e=>e.join("/").replace(/\/\/+/g,"/"),a8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Vv{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Sm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uA=["post","put","patch","delete"],s8=new Set(uA),l8=["get",...uA],u8=new Set(l8),c8=new Set([301,302,303,307,308]),d8=new Set([307,308]),Tb={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},f8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),cA="remix-router-transitions";function h8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;dt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;a=ee=>({hasErrorBoundary:X(ee)})}else a=p8;let o={},i=mf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||x8,c=e.unstable_patchRoutesOnNavigation,f=Zt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,g=1e3,y=new Set,S=null,x=null,m=null,b=e.hydrationData!=null,h=us(i,e.history.location,u),_=null;if(h==null&&!c){let X=un(404,{pathname:e.history.location.pathname}),{matches:ee,route:ce}=PP(i);h=ee,_={[ce.id]:X}}h&&!e.hydrationData&&Mn(h,i,e.history.location.pathname).active&&(h=null);let C;if(h)if(h.some(X=>X.route.lazy))C=!1;else if(!h.some(X=>X.route.loader))C=!0;else if(f.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null,ce=Ce=>Ce.route.loader?typeof Ce.route.loader=="function"&&Ce.route.loader.hydrate===!0?!1:X&&X[Ce.route.id]!==void 0||ee&&ee[Ce.route.id]!==void 0:!0;if(ee){let Ce=h.findIndex(N=>ee[N.route.id]!==void 0);C=h.slice(0,Ce+1).every(ce)}else C=h.every(ce)}else C=e.hydrationData!=null;else if(C=!1,h=[],f.v7_partialHydration){let X=Mn(null,i,e.history.location.pathname);X.active&&X.matches&&(h=X.matches)}let E,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:C,navigation:Tb,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},O=dr.Pop,P=!1,k,j=!1,$=new Map,F=null,z=!1,M=!1,W=[],B=new Set,U=new Map,q=0,ie=-1,oe=new Map,Ee=new Set,pe=new Map,Te=new Map,ye=new Set,be=new Map,we=new Map,ve=new Map,De;function Me(){if(p=e.history.listen(X=>{let{action:ee,location:ce,delta:Ce}=X;if(De){De(),De=void 0;return}Gs(we.size===0||Ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let N=Pt({currentLocation:w.location,nextLocation:ce,historyAction:ee});if(N&&Ce!=null){let D=new Promise(I=>{De=I});e.history.go(Ce*-1),kt(N,{state:"blocked",location:ce,proceed(){kt(N,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),D.then(()=>e.history.go(Ce))},reset(){let I=new Map(w.blockers);I.set(N,Tl),Ae({blockers:I})}});return}return V(ee,ce)}),r){M8(t,$);let X=()=>F8(t,$);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return w.initialized||V(dr.Pop,w.location,{initialHydration:!0}),E}function Qe(){p&&p(),F&&F(),v.clear(),k&&k.abort(),w.fetchers.forEach((X,ee)=>je(ee)),w.blockers.forEach((X,ee)=>Ot(ee))}function Ne(X){return v.add(X),()=>v.delete(X)}function Ae(X,ee){ee===void 0&&(ee={}),w=Zt({},w,X);let ce=[],Ce=[];f.v7_fetcherPersist&&w.fetchers.forEach((N,D)=>{N.state==="idle"&&(ye.has(D)?Ce.push(D):ce.push(D))}),[...v].forEach(N=>N(w,{deletedFetchers:Ce,unstable_viewTransitionOpts:ee.viewTransitionOpts,unstable_flushSync:ee.flushSync===!0})),f.v7_fetcherPersist&&(ce.forEach(N=>w.fetchers.delete(N)),Ce.forEach(N=>je(N)))}function He(X,ee,ce){var Ce,N;let{flushSync:D}=ce===void 0?{}:ce,I=w.actionData!=null&&w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&w.navigation.state==="loading"&&((Ce=X.state)==null?void 0:Ce._isRedirect)!==!0,A;ee.actionData?Object.keys(ee.actionData).length>0?A=ee.actionData:A=null:I?A=w.actionData:A=null;let L=ee.loaderData?EP(w.loaderData,ee.loaderData,ee.matches||[],ee.errors):w.loaderData,H=w.blockers;H.size>0&&(H=new Map(H),H.forEach((Q,me)=>H.set(me,Tl)));let re=P===!0||w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&((N=X.state)==null?void 0:N._isRedirect)!==!0;s&&(i=s,s=void 0),z||O===dr.Pop||(O===dr.Push?e.history.push(X,X.state):O===dr.Replace&&e.history.replace(X,X.state));let Y;if(O===dr.Pop){let Q=$.get(w.location.pathname);Q&&Q.has(X.pathname)?Y={currentLocation:w.location,nextLocation:X}:$.has(X.pathname)&&(Y={currentLocation:X,nextLocation:w.location})}else if(j){let Q=$.get(w.location.pathname);Q?Q.add(X.pathname):(Q=new Set([X.pathname]),$.set(w.location.pathname,Q)),Y={currentLocation:w.location,nextLocation:X}}Ae(Zt({},ee,{actionData:A,loaderData:L,historyAction:O,location:X,initialized:!0,navigation:Tb,revalidation:"idle",restoreScrollPosition:Tr(X,ee.matches||w.matches),preventScrollReset:re,blockers:H}),{viewTransitionOpts:Y,flushSync:D===!0}),O=dr.Pop,P=!1,j=!1,z=!1,M=!1,W=[]}async function ht(X,ee){if(typeof X=="number"){e.history.go(X);return}let ce=B1(w.location,w.matches,u,f.v7_prependBasename,X,f.v7_relativeSplatPath,ee==null?void 0:ee.fromRouteId,ee==null?void 0:ee.relative),{path:Ce,submission:N,error:D}=bP(f.v7_normalizeFormMethod,!1,ce,ee),I=w.location,A=gf(w.location,Ce,ee&&ee.state);A=Zt({},A,e.history.encodeLocation(A));let L=ee&&ee.replace!=null?ee.replace:void 0,H=dr.Push;L===!0?H=dr.Replace:L===!1||N!=null&&Ca(N.formMethod)&&N.formAction===w.location.pathname+w.location.search&&(H=dr.Replace);let re=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,Y=(ee&&ee.unstable_flushSync)===!0,Q=Pt({currentLocation:I,nextLocation:A,historyAction:H});if(Q){kt(Q,{state:"blocked",location:A,proceed(){kt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ht(X,ee)},reset(){let me=new Map(w.blockers);me.set(Q,Tl),Ae({blockers:me})}});return}return await V(H,A,{submission:N,pendingError:D,preventScrollReset:re,replace:ee&&ee.replace,enableViewTransition:ee&&ee.unstable_viewTransition,flushSync:Y})}function ut(){if(he(),Ae({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){V(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}V(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:j===!0})}}async function V(X,ee,ce){k&&k.abort(),k=null,O=X,z=(ce&&ce.startUninterruptedRevalidation)===!0,Nr(w.location,w.matches),P=(ce&&ce.preventScrollReset)===!0,j=(ce&&ce.enableViewTransition)===!0;let Ce=s||i,N=ce&&ce.overrideNavigation,D=us(Ce,ee,u),I=(ce&&ce.flushSync)===!0,A=Mn(D,Ce,ee.pathname);if(A.active&&A.matches&&(D=A.matches),!D){let{error:$e,notFoundMatches:Ze,route:tt}=at(ee.pathname);He(ee,{matches:Ze,loaderData:{},errors:{[tt.id]:$e}},{flushSync:I});return}if(w.initialized&&!M&&O8(w.location,ee)&&!(ce&&ce.submission&&Ca(ce.submission.formMethod))){He(ee,{matches:D},{flushSync:I});return}k=new AbortController;let L=vl(e.history,ee,k.signal,ce&&ce.submission),H;if(ce&&ce.pendingError)H=[Kl(D).route.id,{type:zt.error,error:ce.pendingError}];else if(ce&&ce.submission&&Ca(ce.submission.formMethod)){let $e=await K(L,ee,ce.submission,D,A.active,{replace:ce.replace,flushSync:I});if($e.shortCircuited)return;if($e.pendingActionResult){let[Ze,tt]=$e.pendingActionResult;if(Dn(tt)&&Sm(tt.error)&&tt.error.status===404){k=null,He(ee,{matches:$e.matches,loaderData:{},errors:{[Ze]:tt.error}});return}}D=$e.matches||D,H=$e.pendingActionResult,N=$b(ee,ce.submission),I=!1,A.active=!1,L=vl(e.history,L.url,L.signal)}let{shortCircuited:re,matches:Y,loaderData:Q,errors:me}=await te(L,ee,D,A.active,N,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,I,H);re||(k=null,He(ee,Zt({matches:Y||D},OP(H),{loaderData:Q,errors:me})))}async function K(X,ee,ce,Ce,N,D){D===void 0&&(D={}),he();let I=I8(ee,ce);if(Ae({navigation:I},{flushSync:D.flushSync===!0}),N){let H=await Kr(Ce,ee.pathname,X.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let{boundaryId:re,error:Y}=It(ee.pathname,H);return{matches:H.partialMatches,pendingActionResult:[re,{type:zt.error,error:Y}]}}else if(H.matches)Ce=H.matches;else{let{notFoundMatches:re,error:Y,route:Q}=at(ee.pathname);return{matches:re,pendingActionResult:[Q.id,{type:zt.error,error:Y}]}}}let A,L=cd(Ce,ee);if(!L.route.action&&!L.route.lazy)A={type:zt.error,error:un(405,{method:X.method,pathname:ee.pathname,routeId:L.route.id})};else if(A=(await G("action",w,X,[L],Ce,null))[L.route.id],X.signal.aborted)return{shortCircuited:!0};if(xs(A)){let H;return D&&D.replace!=null?H=D.replace:H=SP(A.response.headers.get("Location"),new URL(X.url),u)===w.location.pathname+w.location.search,await Z(X,A,!0,{submission:ce,replace:H}),{shortCircuited:!0}}if(Si(A))throw un(400,{type:"defer-action"});if(Dn(A)){let H=Kl(Ce,L.route.id);return(D&&D.replace)!==!0&&(O=dr.Push),{matches:Ce,pendingActionResult:[H.route.id,A]}}return{matches:Ce,pendingActionResult:[L.route.id,A]}}async function te(X,ee,ce,Ce,N,D,I,A,L,H,re){let Y=N||$b(ee,D),Q=D||I||TP(Y),me=!z&&(!f.v7_partialHydration||!L);if(Ce){if(me){let Vt=se(re);Ae(Zt({navigation:Y},Vt!==void 0?{actionData:Vt}:{}),{flushSync:H})}let ot=await Kr(ce,ee.pathname,X.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){let{boundaryId:Vt,error:mr}=It(ee.pathname,ot);return{matches:ot.partialMatches,loaderData:{},errors:{[Vt]:mr}}}else if(ot.matches)ce=ot.matches;else{let{error:Vt,notFoundMatches:mr,route:vt}=at(ee.pathname);return{matches:mr,loaderData:{},errors:{[vt.id]:Vt}}}}let $e=s||i,[Ze,tt]=xP(e.history,w,ce,Q,ee,f.v7_partialHydration&&L===!0,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,$e,u,re);if(nr(ot=>!(ce&&ce.some(Vt=>Vt.route.id===ot))||Ze&&Ze.some(Vt=>Vt.route.id===ot)),ie=++q,Ze.length===0&&tt.length===0){let ot=Ge();return He(ee,Zt({matches:ce,loaderData:{},errors:re&&Dn(re[1])?{[re[0]]:re[1].error}:null},OP(re),ot?{fetchers:new Map(w.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(me){let ot={};if(!Ce){ot.navigation=Y;let Vt=se(re);Vt!==void 0&&(ot.actionData=Vt)}tt.length>0&&(ot.fetchers=de(tt)),Ae(ot,{flushSync:H})}tt.forEach(ot=>{U.has(ot.key)&&_e(ot.key),ot.controller&&U.set(ot.key,ot.controller)});let St=()=>tt.forEach(ot=>_e(ot.key));k&&k.signal.addEventListener("abort",St);let{loaderResults:st,fetcherResults:xt}=await le(w,ce,Ze,tt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",St),tt.forEach(ot=>U.delete(ot.key));let jt=Yp(st);if(jt)return await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};if(jt=Yp(xt),jt)return Ee.add(jt.key),await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:lt,errors:Dt}=CP(w,ce,Ze,st,re,tt,xt,be);be.forEach((ot,Vt)=>{ot.subscribe(mr=>{(mr||ot.done)&&be.delete(Vt)})}),f.v7_partialHydration&&L&&w.errors&&Object.entries(w.errors).filter(ot=>{let[Vt]=ot;return!Ze.some(mr=>mr.route.id===Vt)}).forEach(ot=>{let[Vt,mr]=ot;Dt=Object.assign(Dt||{},{[Vt]:mr})});let kr=Ge(),yn=nt(ie),vo=kr||yn||tt.length>0;return Zt({matches:ce,loaderData:lt,errors:Dt},vo?{fetchers:new Map(w.fetchers)}:{})}function se(X){if(X&&!Dn(X[1]))return{[X[0]]:X[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function de(X){return X.forEach(ee=>{let ce=w.fetchers.get(ee.key),Ce=Vc(void 0,ce?ce.data:void 0);w.fetchers.set(ee.key,Ce)}),new Map(w.fetchers)}function fe(X,ee,ce,Ce){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(X)&&_e(X);let N=(Ce&&Ce.unstable_flushSync)===!0,D=s||i,I=B1(w.location,w.matches,u,f.v7_prependBasename,ce,f.v7_relativeSplatPath,ee,Ce==null?void 0:Ce.relative),A=us(D,I,u),L=Mn(A,D,I);if(L.active&&L.matches&&(A=L.matches),!A){Be(X,ee,un(404,{pathname:I}),{flushSync:N});return}let{path:H,submission:re,error:Y}=bP(f.v7_normalizeFormMethod,!0,I,Ce);if(Y){Be(X,ee,Y,{flushSync:N});return}let Q=cd(A,H);if(P=(Ce&&Ce.preventScrollReset)===!0,re&&Ca(re.formMethod)){Oe(X,ee,H,Q,A,L.active,N,re);return}pe.set(X,{routeId:ee,path:H}),ae(X,ee,H,Q,A,L.active,N,re)}async function Oe(X,ee,ce,Ce,N,D,I,A){he(),pe.delete(X);function L(vt){if(!vt.route.action&&!vt.route.lazy){let Gr=un(405,{method:A.formMethod,pathname:ce,routeId:ee});return Be(X,ee,Gr,{flushSync:I}),!0}return!1}if(!D&&L(Ce))return;let H=w.fetchers.get(X);Re(X,A8(A,H),{flushSync:I});let re=new AbortController,Y=vl(e.history,ce,re.signal,A);if(D){let vt=await Kr(N,ce,Y.signal);if(vt.type==="aborted")return;if(vt.type==="error"){let{error:Gr}=It(ce,vt);Be(X,ee,Gr,{flushSync:I});return}else if(vt.matches){if(N=vt.matches,Ce=cd(N,ce),L(Ce))return}else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,re);let Q=q,$e=(await G("action",w,Y,[Ce],N,X))[Ce.route.id];if(Y.signal.aborted){U.get(X)===re&&U.delete(X);return}if(f.v7_fetcherPersist&&ye.has(X)){if(xs($e)||Dn($e)){Re(X,ti(void 0));return}}else{if(xs($e))if(U.delete(X),ie>Q){Re(X,ti(void 0));return}else return Ee.add(X),Re(X,Vc(A)),Z(Y,$e,!1,{fetcherSubmission:A});if(Dn($e)){Be(X,ee,$e.error);return}}if(Si($e))throw un(400,{type:"defer-action"});let Ze=w.navigation.location||w.location,tt=vl(e.history,Ze,re.signal),St=s||i,st=w.navigation.state!=="idle"?us(St,w.navigation.location,u):w.matches;dt(st,"Didn't find any matches after fetcher action");let xt=++q;oe.set(X,xt);let jt=Vc(A,$e.data);w.fetchers.set(X,jt);let[lt,Dt]=xP(e.history,w,st,A,Ze,!1,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,St,u,[Ce.route.id,$e]);Dt.filter(vt=>vt.key!==X).forEach(vt=>{let Gr=vt.key,Go=w.fetchers.get(Gr),Qo=Vc(void 0,Go?Go.data:void 0);w.fetchers.set(Gr,Qo),U.has(Gr)&&_e(Gr),vt.controller&&U.set(Gr,vt.controller)}),Ae({fetchers:new Map(w.fetchers)});let kr=()=>Dt.forEach(vt=>_e(vt.key));re.signal.addEventListener("abort",kr);let{loaderResults:yn,fetcherResults:vo}=await le(w,st,lt,Dt,tt);if(re.signal.aborted)return;re.signal.removeEventListener("abort",kr),oe.delete(X),U.delete(X),Dt.forEach(vt=>U.delete(vt.key));let ot=Yp(yn);if(ot)return Z(tt,ot.result,!1);if(ot=Yp(vo),ot)return Ee.add(ot.key),Z(tt,ot.result,!1);let{loaderData:Vt,errors:mr}=CP(w,st,lt,yn,void 0,Dt,vo,be);if(w.fetchers.has(X)){let vt=ti($e.data);w.fetchers.set(X,vt)}nt(xt),w.navigation.state==="loading"&&xt>ie?(dt(O,"Expected pending action"),k&&k.abort(),He(w.navigation.location,{matches:st,loaderData:Vt,errors:mr,fetchers:new Map(w.fetchers)})):(Ae({errors:mr,loaderData:EP(w.loaderData,Vt,st,mr),fetchers:new Map(w.fetchers)}),M=!1)}async function ae(X,ee,ce,Ce,N,D,I,A){let L=w.fetchers.get(X);Re(X,Vc(A,L?L.data:void 0),{flushSync:I});let H=new AbortController,re=vl(e.history,ce,H.signal);if(D){let $e=await Kr(N,ce,re.signal);if($e.type==="aborted")return;if($e.type==="error"){let{error:Ze}=It(ce,$e);Be(X,ee,Ze,{flushSync:I});return}else if($e.matches)N=$e.matches,Ce=cd(N,ce);else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,H);let Y=q,me=(await G("loader",w,re,[Ce],N,X))[Ce.route.id];if(Si(me)&&(me=await qS(me,re.signal,!0)||me),U.get(X)===H&&U.delete(X),!re.signal.aborted){if(ye.has(X)){Re(X,ti(void 0));return}if(xs(me))if(ie>Y){Re(X,ti(void 0));return}else{Ee.add(X),await Z(re,me,!1);return}if(Dn(me)){Be(X,ee,me.error);return}dt(!Si(me),"Unhandled fetcher deferred data"),Re(X,ti(me.data))}}async function Z(X,ee,ce,Ce){let{submission:N,fetcherSubmission:D,replace:I}=Ce===void 0?{}:Ce;ee.response.headers.has("X-Remix-Revalidate")&&(M=!0);let A=ee.response.headers.get("Location");dt(A,"Expected a Location header on the redirect Response"),A=SP(A,new URL(X.url),u);let L=gf(w.location,A,{_isRedirect:!0});if(r){let $e=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))$e=!0;else if(HS.test(A)){const Ze=e.history.createURL(A);$e=Ze.origin!==t.location.origin||Li(Ze.pathname,u)==null}if($e){I?t.location.replace(A):t.location.assign(A);return}}k=null;let H=I===!0||ee.response.headers.has("X-Remix-Replace")?dr.Replace:dr.Push,{formMethod:re,formAction:Y,formEncType:Q}=w.navigation;!N&&!D&&re&&Y&&Q&&(N=TP(w.navigation));let me=N||D;if(d8.has(ee.response.status)&&me&&Ca(me.formMethod))await V(H,L,{submission:Zt({},me,{formAction:A}),preventScrollReset:P,enableViewTransition:ce?j:void 0});else{let $e=$b(L,N);await V(H,L,{overrideNavigation:$e,fetcherSubmission:D,preventScrollReset:P,enableViewTransition:ce?j:void 0})}}async function G(X,ee,ce,Ce,N,D){let I,A={};try{I=await w8(l,X,ee,ce,Ce,N,D,o,a)}catch(L){return Ce.forEach(H=>{A[H.route.id]={type:zt.error,error:L}}),A}for(let[L,H]of Object.entries(I))if(R8(H)){let re=H.result;A[L]={type:zt.redirect,response:C8(re,ce,L,N,u,f.v7_relativeSplatPath)}}else A[L]=await _8(H);return A}async function le(X,ee,ce,Ce,N){let D=X.matches,I=G("loader",X,N,ce,ee,null),A=Promise.all(Ce.map(async re=>{if(re.matches&&re.match&&re.controller){let Q=(await G("loader",X,vl(e.history,re.path,re.controller.signal),[re.match],re.matches,re.key))[re.match.route.id];return{[re.key]:Q}}else return Promise.resolve({[re.key]:{type:zt.error,error:un(404,{pathname:re.path})}})})),L=await I,H=(await A).reduce((re,Y)=>Object.assign(re,Y),{});return await Promise.all([k8(ee,L,N.signal,D,X.loaderData),j8(ee,H,Ce)]),{loaderResults:L,fetcherResults:H}}function he(){M=!0,W.push(...nr()),pe.forEach((X,ee)=>{U.has(ee)&&(B.add(ee),_e(ee))})}function Re(X,ee,ce){ce===void 0&&(ce={}),w.fetchers.set(X,ee),Ae({fetchers:new Map(w.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Be(X,ee,ce,Ce){Ce===void 0&&(Ce={});let N=Kl(w.matches,ee);je(X),Ae({errors:{[N.route.id]:ce},fetchers:new Map(w.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function Ye(X){return f.v7_fetcherPersist&&(Te.set(X,(Te.get(X)||0)+1),ye.has(X)&&ye.delete(X)),w.fetchers.get(X)||f8}function je(X){let ee=w.fetchers.get(X);U.has(X)&&!(ee&&ee.state==="loading"&&oe.has(X))&&_e(X),pe.delete(X),oe.delete(X),Ee.delete(X),ye.delete(X),B.delete(X),w.fetchers.delete(X)}function Je(X){if(f.v7_fetcherPersist){let ee=(Te.get(X)||0)-1;ee<=0?(Te.delete(X),ye.add(X)):Te.set(X,ee)}else je(X);Ae({fetchers:new Map(w.fetchers)})}function _e(X){let ee=U.get(X);dt(ee,"Expected fetch controller: "+X),ee.abort(),U.delete(X)}function Fe(X){for(let ee of X){let ce=Ye(ee),Ce=ti(ce.data);w.fetchers.set(ee,Ce)}}function Ge(){let X=[],ee=!1;for(let ce of Ee){let Ce=w.fetchers.get(ce);dt(Ce,"Expected fetcher: "+ce),Ce.state==="loading"&&(Ee.delete(ce),X.push(ce),ee=!0)}return Fe(X),ee}function nt(X){let ee=[];for(let[ce,Ce]of oe)if(Ce0}function mt(X,ee){let ce=w.blockers.get(X)||Tl;return we.get(X)!==ee&&we.set(X,ee),ce}function Ot(X){w.blockers.delete(X),we.delete(X)}function kt(X,ee){let ce=w.blockers.get(X)||Tl;dt(ce.state==="unblocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="proceeding"||ce.state==="blocked"&&ee.state==="unblocked"||ce.state==="proceeding"&&ee.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+ee.state);let Ce=new Map(w.blockers);Ce.set(X,ee),Ae({blockers:Ce})}function Pt(X){let{currentLocation:ee,nextLocation:ce,historyAction:Ce}=X;if(we.size===0)return;we.size>1&&Gs(!1,"A router only supports one blocker at a time");let N=Array.from(we.entries()),[D,I]=N[N.length-1],A=w.blockers.get(D);if(!(A&&A.state==="proceeding")&&I({currentLocation:ee,nextLocation:ce,historyAction:Ce}))return D}function at(X){let ee=un(404,{pathname:X}),ce=s||i,{matches:Ce,route:N}=PP(ce);return nr(),{notFoundMatches:Ce,route:N,error:ee}}function It(X,ee){return{boundaryId:Kl(ee.partialMatches).route.id,error:un(400,{type:"route-discovery",pathname:X,message:ee.error!=null&&"message"in ee.error?ee.error:String(ee.error)})}}function nr(X){let ee=[];return be.forEach((ce,Ce)=>{(!X||X(Ce))&&(ce.cancel(),ee.push(Ce),be.delete(Ce))}),ee}function mn(X,ee,ce){if(S=X,m=ee,x=ce||null,!b&&w.navigation===Tb){b=!0;let Ce=Tr(w.location,w.matches);Ce!=null&&Ae({restoreScrollPosition:Ce})}return()=>{S=null,m=null,x=null}}function qr(X,ee){return x&&x(X,ee.map(Ce=>WB(Ce,w.loaderData)))||X.key}function Nr(X,ee){if(S&&m){let ce=qr(X,ee);S[ce]=m()}}function Tr(X,ee){if(S){let ce=qr(X,ee),Ce=S[ce];if(typeof Ce=="number")return Ce}return null}function Mn(X,ee,ce){if(c){if(y.has(ce))return{active:!1,matches:X};if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:Nh(ee,ce,u,!0)}}else return{active:!0,matches:Nh(ee,ce,u,!0)||[]}}return{active:!1,matches:null}}async function Kr(X,ee,ce){let Ce=X;for(;;){let N=s==null,D=s||i;try{await y8(c,ee,Ce,D,o,a,ve,ce)}catch(L){return{type:"error",error:L,partialMatches:Ce}}finally{N&&(i=[...i])}if(ce.aborted)return{type:"aborted"};let I=us(D,ee,u);if(I)return Ko(ee,y),{type:"success",matches:I};let A=Nh(D,ee,u,!0);if(!A||Ce.length===A.length&&Ce.every((L,H)=>L.route.id===A[H].route.id))return Ko(ee,y),{type:"success",matches:null};Ce=A}}function Ko(X,ee){if(ee.size>=g){let ce=ee.values().next().value;ee.delete(ce)}ee.add(X)}function $r(X){o={},s=mf(X,a,void 0,o)}function ho(X,ee){let ce=s==null;fA(X,ee,s||i,o,a),ce&&(i=[...i],Ae({}))}return E={get basename(){return u},get future(){return f},get state(){return w},get routes(){return i},get window(){return t},initialize:Me,subscribe:Ne,enableScrollRestoration:mn,navigate:ht,fetch:fe,revalidate:ut,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ye,deleteFetcher:Je,dispose:Qe,getBlocker:mt,deleteBlocker:Ot,patchRoutes:ho,_internalFetchControllers:U,_internalActiveDeferreds:be,_internalSetRoutes:$r},E}function v8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function B1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let f of t)if(u.push(f),f.route.id===i){l=f;break}}else u=t,l=t[t.length-1];let c=wm(a||".",xm(u,o),Li(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!KS(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:$o([r,c.pathname])),Qs(c)}function bP(e,t,r,n){if(!n||!v8(n))return{path:r};if(n.formMethod&&!$8(n.formMethod))return{path:r,error:un(405,{method:n.formMethod})};let a=()=>({path:r,error:un(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=pA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ca(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,S]=g;return""+v+y+"="+S+` -`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Ca(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}dt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=z1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=z1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=_P(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=_P(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Ca(c.formMethod))return{path:r,submission:c};let f=io(r);return t&&f.search&&KS(f.search)&&u.append("index",""),f.search="?"+u,{path:Qs(f),submission:c}}function g8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function xP(e,t,r,n,a,o,i,s,u,l,c,f,p,v,g,y){let S=y?Dn(y[1])?y[1].error:y[1].data:void 0,x=e.createURL(t.location),m=e.createURL(a),b=y&&Dn(y[1])?y[0]:void 0,h=b?g8(r,b):r,_=y?y[1].statusCode:void 0,C=i&&_&&_>=400,E=h.filter((O,P)=>{let{route:k}=O;if(k.lazy)return!0;if(k.loader==null)return!1;if(o)return typeof k.loader!="function"||k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(m8(t.loaderData,t.matches[P],O)||u.some(F=>F===O.route.id))return!0;let j=t.matches[P],$=O;return wP(O,Zt({currentUrl:x,currentParams:j.params,nextUrl:m,nextParams:$.params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s||x.pathname+x.search===m.pathname+m.search||x.search!==m.search||dA(j,$)}))}),w=[];return f.forEach((O,P)=>{if(o||!r.some(z=>z.route.id===O.routeId)||c.has(P))return;let k=us(v,O.path,g);if(!k){w.push({key:P,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(P),$=cd(k,O.path),F=!1;p.has(P)?F=!1:l.has(P)?(l.delete(P),F=!0):j&&j.state!=="idle"&&j.data===void 0?F=s:F=wP($,Zt({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s})),F&&w.push({key:P,routeId:O.routeId,path:O.path,matches:k,match:$,controller:new AbortController})}),[E,w]}function m8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function dA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function y8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,f)=>{s.aborted||fA(c,f,n,a,o)}}),i.set(u,l)),l&&P8(l)&&await l}finally{i.delete(u)}}function fA(e,t,r,n,a){if(e){var o;let i=n[e];dt(i,"No route found to patch children into: routeId = "+e);let s=mf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=mf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function b8(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];dt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";Gs(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!VB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Zt({},t(a),{lazy:void 0}))}async function x8(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function w8(e,t,r,n,a,o,i,s,u,l){let c=o.map(v=>v.route.lazy?b8(v.route,u,s):void 0),f=o.map((v,g)=>{let y=c[g],S=a.some(m=>m.route.id===v.route.id);return Zt({},v,{shouldLoad:S,resolve:async m=>(m&&n.method==="GET"&&(v.route.lazy||v.route.loader)&&(S=!0),S?S8(t,n,v,y,m,l):Promise.resolve({type:zt.data,result:void 0}))})}),p=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:l});try{await Promise.all(c)}catch{}return p}async function S8(e,t,r,n,a,o){let i,s,u=l=>{let c,f=new Promise((g,y)=>c=y);s=()=>c(),t.signal.addEventListener("abort",s);let p=g=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):l({request:t,params:r.params,context:o},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(y=>p(y)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,f])};try{let l=r.route[e];if(n)if(l){let c,[f]=await Promise.all([u(l).catch(p=>{c=p}),n]);if(c!==void 0)throw c;i=f}else if(await n,l=r.route[e],l)i=await u(l);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw un(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:zt.data,result:void 0};else if(l)i=await u(l);else{let c=new URL(t.url),f=c.pathname+c.search;throw un(404,{pathname:f})}dt(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(l){return{type:zt.error,result:l}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function _8(e){let{result:t,type:r}=e;if(hA(t)){let l;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(c){return{type:zt.error,error:c}}return r===zt.error?{type:zt.error,error:new Vv(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:zt.data,data:l,statusCode:t.status,headers:t.headers}}if(r===zt.error){if(RP(t)){var n;if(t.data instanceof Error){var a;return{type:zt.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new Vv(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zt.error,error:t,statusCode:Sm(t)?t.status:void 0}}if(T8(t)){var o,i;return{type:zt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(RP(t)){var s,u;return{type:zt.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:zt.data,data:t}}function C8(e,t,r,n,a,o){let i=e.headers.get("Location");if(dt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!HS.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=B1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function SP(e,t,r){if(HS.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Li(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function vl(e,t,r,n){let a=e.createURL(pA(t)).toString(),o={signal:r};if(n&&Ca(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=z1(n.formData):o.body=n.formData}return new Request(a,o)}function z1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function _P(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function E8(e,t,r,n,a){let o={},i=null,s,u=!1,l={},c=r&&Dn(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,v=t[p];if(dt(!xs(v),"Cannot handle redirect results in processLoaderData"),Dn(v)){let g=v.error;if(c!==void 0&&(g=c,c=void 0),i=i||{},a)i[p]=g;else{let y=Kl(e,p);i[y.route.id]==null&&(i[y.route.id]=g)}o[p]=void 0,u||(u=!0,s=Sm(v.error)?v.error.status:500),v.headers&&(l[p]=v.headers)}else Si(v)?(n.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers))}),c!==void 0&&r&&(i={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:l}}function CP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=E8(t,n,a,s,!1);return o.forEach(c=>{let{key:f,match:p,controller:v}=c,g=i[f];if(dt(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Dn(g)){let y=Kl(e.matches,p==null?void 0:p.route.id);l&&l[y.route.id]||(l=Zt({},l,{[y.route.id]:g.error})),e.fetchers.delete(f)}else if(xs(g))dt(!1,"Unhandled fetcher revalidation redirect");else if(Si(g))dt(!1,"Unhandled fetcher deferred data");else{let y=ti(g.data);e.fetchers.set(f,y)}}),{loaderData:u,errors:l}}function EP(e,t,r,n){let a=Zt({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function OP(e){return e?Dn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kl(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function PP(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function un(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+i):a&&r&&n?u="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new Vv(e||500,s,new Error(u),!0)}function Yp(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(xs(a))return{key:n,result:a}}}function pA(e){let t=typeof e=="string"?io(e):e;return Qs(Zt({},t,{hash:""}))}function O8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function P8(e){return typeof e=="object"&&e!=null&&"then"in e}function R8(e){return hA(e.result)&&c8.has(e.result.status)}function Si(e){return e.type===zt.deferred}function Dn(e){return e.type===zt.error}function xs(e){return(e&&e.type)===zt.redirect}function RP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function T8(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function hA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function $8(e){return u8.has(e.toLowerCase())}function Ca(e){return s8.has(e.toLowerCase())}async function k8(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(p==null?void 0:p.route.id)===s);if(!l)continue;let c=n.find(p=>p.route.id===l.route.id),f=c!=null&&!dA(c,l)&&(a&&a[l.route.id])!==void 0;Si(u)&&f&&await qS(u,r,!1).then(p=>{p&&(t[s]=p)})}}async function j8(e,t,r){for(let n=0;n(l==null?void 0:l.route.id)===o)&&Si(s)&&(dt(i,"Expected an AbortController for revalidating fetcher deferred result"),await qS(s,i.signal,!0).then(l=>{l&&(t[a]=l)}))}}async function qS(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zt.error,error:a}}return{type:zt.data,data:e.deferredData.data}}}function KS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cd(e,t){let r=typeof t=="string"?io(t).search:t.search;if(e[e.length-1].route.index&&KS(r||""))return e[e.length-1];let n=lA(e);return n[n.length-1]}function TP(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function $b(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function I8(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Vc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function A8(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ti(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function M8(e,t){try{let r=e.sessionStorage.getItem(cA);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function F8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(cA,JSON.stringify(r))}catch(n){Gs(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zB(){return Math.random().toString(36).substr(2,8)}function mP(e,t){return{usr:e.state,key:e.key,idx:t}}function gf(e,t,r,n){return r===void 0&&(r=null),Zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?io(t):t,{state:r,key:t&&t.key||n||zB()})}function Qs(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function io(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function VB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=dr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(Zt({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function f(){s=dr.Pop;let S=c(),x=S==null?null:S-l;l=S,u&&u({action:s,location:y.location,delta:x})}function p(S,x){s=dr.Push;let m=gf(y.location,S,x);r&&r(m,S),l=c()+1;let b=mP(m,l),h=y.createHref(m);try{i.pushState(b,"",h)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(h)}o&&u&&u({action:s,location:y.location,delta:1})}function v(S,x){s=dr.Replace;let m=gf(y.location,S,x);r&&r(m,S),l=c();let b=mP(m,l),h=y.createHref(m);i.replaceState(b,"",h),o&&u&&u({action:s,location:y.location,delta:0})}function g(S){let x=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof S=="string"?S:Qs(S);return m=m.replace(/ $/,"%20"),dt(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let y={get action(){return s},get location(){return e(a,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(gP,f),u=S,()=>{a.removeEventListener(gP,f),u=null}},createHref(S){return t(a,S)},createURL:g,encodeLocation(S){let x=g(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return i.go(S)}};return y}var zt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zt||(zt={}));const UB=new Set(["lazy","caseSensitive","path","id","index","children"]);function WB(e){return e.index===!0}function mf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(dt(a.index!==!0||!a.children,"Cannot specify children on an index route"),dt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),WB(a)){let u=Zt({},a,t(a),{id:s});return n[s]=u,u}else{let u=Zt({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=mf(a.children,t,i,n)),u}})}function us(e,t,r){return r===void 0&&(r="/"),Nh(e,t,r,!1)}function Nh(e,t,r,n){let a=typeof t=="string"?io(t):t,o=Li(a.pathname||"/",r);if(o==null)return null;let i=oA(e);qB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(dt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=$o([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),oA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:ZB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of iA(o.path))a(o,i,u)}),t}function iA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=iA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function qB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:e8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const KB=/^:[\w-]+$/,GB=3,QB=2,XB=1,YB=10,JB=-2,yP=e=>e==="*";function ZB(e,t){let r=e.split("/"),n=r.length;return r.some(yP)&&(n+=JB),t&&(n+=QB),r.filter(a=>!yP(a)).reduce((a,o)=>a+(KB.test(o)?GB:o===""?XB:YB),n)}function e8(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function t8(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:v}=c;if(p==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function r8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function sA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gs(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Li(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function n8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?io(e):e;return{pathname:r?r.startsWith("/")?r:a8(r,t):t,search:i8(n),hash:s8(a)}}function a8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Rb(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function xm(e,t){let r=lA(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function wm(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=io(e):(a=Zt({},e),dt(!a.pathname||!a.pathname.includes("?"),Rb("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),Rb("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),Rb("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=n8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const $o=e=>e.join("/").replace(/\/\/+/g,"/"),o8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),i8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Vv{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Sm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uA=["post","put","patch","delete"],l8=new Set(uA),u8=["get",...uA],c8=new Set(u8),d8=new Set([301,302,303,307,308]),f8=new Set([307,308]),Tb={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},p8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),cA="remix-router-transitions";function v8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;dt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;a=ee=>({hasErrorBoundary:X(ee)})}else a=h8;let o={},i=mf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||w8,c=e.unstable_patchRoutesOnNavigation,f=Zt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,g=1e3,y=new Set,S=null,x=null,m=null,b=e.hydrationData!=null,h=us(i,e.history.location,u),_=null;if(h==null&&!c){let X=un(404,{pathname:e.history.location.pathname}),{matches:ee,route:ce}=PP(i);h=ee,_={[ce.id]:X}}h&&!e.hydrationData&&Mn(h,i,e.history.location.pathname).active&&(h=null);let C;if(h)if(h.some(X=>X.route.lazy))C=!1;else if(!h.some(X=>X.route.loader))C=!0;else if(f.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null,ce=Ce=>Ce.route.loader?typeof Ce.route.loader=="function"&&Ce.route.loader.hydrate===!0?!1:X&&X[Ce.route.id]!==void 0||ee&&ee[Ce.route.id]!==void 0:!0;if(ee){let Ce=h.findIndex(N=>ee[N.route.id]!==void 0);C=h.slice(0,Ce+1).every(ce)}else C=h.every(ce)}else C=e.hydrationData!=null;else if(C=!1,h=[],f.v7_partialHydration){let X=Mn(null,i,e.history.location.pathname);X.active&&X.matches&&(h=X.matches)}let E,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:C,navigation:Tb,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},O=dr.Pop,P=!1,k,j=!1,$=new Map,F=null,z=!1,M=!1,W=[],B=new Set,U=new Map,q=0,ie=-1,oe=new Map,Ee=new Set,pe=new Map,Te=new Map,ye=new Set,be=new Map,we=new Map,ve=new Map,De;function Me(){if(p=e.history.listen(X=>{let{action:ee,location:ce,delta:Ce}=X;if(De){De(),De=void 0;return}Gs(we.size===0||Ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let N=Pt({currentLocation:w.location,nextLocation:ce,historyAction:ee});if(N&&Ce!=null){let D=new Promise(I=>{De=I});e.history.go(Ce*-1),kt(N,{state:"blocked",location:ce,proceed(){kt(N,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),D.then(()=>e.history.go(Ce))},reset(){let I=new Map(w.blockers);I.set(N,Tl),Ae({blockers:I})}});return}return V(ee,ce)}),r){F8(t,$);let X=()=>N8(t,$);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return w.initialized||V(dr.Pop,w.location,{initialHydration:!0}),E}function Qe(){p&&p(),F&&F(),v.clear(),k&&k.abort(),w.fetchers.forEach((X,ee)=>je(ee)),w.blockers.forEach((X,ee)=>Ot(ee))}function Ne(X){return v.add(X),()=>v.delete(X)}function Ae(X,ee){ee===void 0&&(ee={}),w=Zt({},w,X);let ce=[],Ce=[];f.v7_fetcherPersist&&w.fetchers.forEach((N,D)=>{N.state==="idle"&&(ye.has(D)?Ce.push(D):ce.push(D))}),[...v].forEach(N=>N(w,{deletedFetchers:Ce,unstable_viewTransitionOpts:ee.viewTransitionOpts,unstable_flushSync:ee.flushSync===!0})),f.v7_fetcherPersist&&(ce.forEach(N=>w.fetchers.delete(N)),Ce.forEach(N=>je(N)))}function He(X,ee,ce){var Ce,N;let{flushSync:D}=ce===void 0?{}:ce,I=w.actionData!=null&&w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&w.navigation.state==="loading"&&((Ce=X.state)==null?void 0:Ce._isRedirect)!==!0,A;ee.actionData?Object.keys(ee.actionData).length>0?A=ee.actionData:A=null:I?A=w.actionData:A=null;let L=ee.loaderData?EP(w.loaderData,ee.loaderData,ee.matches||[],ee.errors):w.loaderData,H=w.blockers;H.size>0&&(H=new Map(H),H.forEach((Q,me)=>H.set(me,Tl)));let re=P===!0||w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&((N=X.state)==null?void 0:N._isRedirect)!==!0;s&&(i=s,s=void 0),z||O===dr.Pop||(O===dr.Push?e.history.push(X,X.state):O===dr.Replace&&e.history.replace(X,X.state));let Y;if(O===dr.Pop){let Q=$.get(w.location.pathname);Q&&Q.has(X.pathname)?Y={currentLocation:w.location,nextLocation:X}:$.has(X.pathname)&&(Y={currentLocation:X,nextLocation:w.location})}else if(j){let Q=$.get(w.location.pathname);Q?Q.add(X.pathname):(Q=new Set([X.pathname]),$.set(w.location.pathname,Q)),Y={currentLocation:w.location,nextLocation:X}}Ae(Zt({},ee,{actionData:A,loaderData:L,historyAction:O,location:X,initialized:!0,navigation:Tb,revalidation:"idle",restoreScrollPosition:Tr(X,ee.matches||w.matches),preventScrollReset:re,blockers:H}),{viewTransitionOpts:Y,flushSync:D===!0}),O=dr.Pop,P=!1,j=!1,z=!1,M=!1,W=[]}async function ht(X,ee){if(typeof X=="number"){e.history.go(X);return}let ce=B1(w.location,w.matches,u,f.v7_prependBasename,X,f.v7_relativeSplatPath,ee==null?void 0:ee.fromRouteId,ee==null?void 0:ee.relative),{path:Ce,submission:N,error:D}=bP(f.v7_normalizeFormMethod,!1,ce,ee),I=w.location,A=gf(w.location,Ce,ee&&ee.state);A=Zt({},A,e.history.encodeLocation(A));let L=ee&&ee.replace!=null?ee.replace:void 0,H=dr.Push;L===!0?H=dr.Replace:L===!1||N!=null&&Ca(N.formMethod)&&N.formAction===w.location.pathname+w.location.search&&(H=dr.Replace);let re=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,Y=(ee&&ee.unstable_flushSync)===!0,Q=Pt({currentLocation:I,nextLocation:A,historyAction:H});if(Q){kt(Q,{state:"blocked",location:A,proceed(){kt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ht(X,ee)},reset(){let me=new Map(w.blockers);me.set(Q,Tl),Ae({blockers:me})}});return}return await V(H,A,{submission:N,pendingError:D,preventScrollReset:re,replace:ee&&ee.replace,enableViewTransition:ee&&ee.unstable_viewTransition,flushSync:Y})}function ut(){if(he(),Ae({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){V(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}V(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:j===!0})}}async function V(X,ee,ce){k&&k.abort(),k=null,O=X,z=(ce&&ce.startUninterruptedRevalidation)===!0,Nr(w.location,w.matches),P=(ce&&ce.preventScrollReset)===!0,j=(ce&&ce.enableViewTransition)===!0;let Ce=s||i,N=ce&&ce.overrideNavigation,D=us(Ce,ee,u),I=(ce&&ce.flushSync)===!0,A=Mn(D,Ce,ee.pathname);if(A.active&&A.matches&&(D=A.matches),!D){let{error:$e,notFoundMatches:Ze,route:tt}=at(ee.pathname);He(ee,{matches:Ze,loaderData:{},errors:{[tt.id]:$e}},{flushSync:I});return}if(w.initialized&&!M&&P8(w.location,ee)&&!(ce&&ce.submission&&Ca(ce.submission.formMethod))){He(ee,{matches:D},{flushSync:I});return}k=new AbortController;let L=vl(e.history,ee,k.signal,ce&&ce.submission),H;if(ce&&ce.pendingError)H=[Kl(D).route.id,{type:zt.error,error:ce.pendingError}];else if(ce&&ce.submission&&Ca(ce.submission.formMethod)){let $e=await K(L,ee,ce.submission,D,A.active,{replace:ce.replace,flushSync:I});if($e.shortCircuited)return;if($e.pendingActionResult){let[Ze,tt]=$e.pendingActionResult;if(Dn(tt)&&Sm(tt.error)&&tt.error.status===404){k=null,He(ee,{matches:$e.matches,loaderData:{},errors:{[Ze]:tt.error}});return}}D=$e.matches||D,H=$e.pendingActionResult,N=$b(ee,ce.submission),I=!1,A.active=!1,L=vl(e.history,L.url,L.signal)}let{shortCircuited:re,matches:Y,loaderData:Q,errors:me}=await te(L,ee,D,A.active,N,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,I,H);re||(k=null,He(ee,Zt({matches:Y||D},OP(H),{loaderData:Q,errors:me})))}async function K(X,ee,ce,Ce,N,D){D===void 0&&(D={}),he();let I=A8(ee,ce);if(Ae({navigation:I},{flushSync:D.flushSync===!0}),N){let H=await Kr(Ce,ee.pathname,X.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let{boundaryId:re,error:Y}=It(ee.pathname,H);return{matches:H.partialMatches,pendingActionResult:[re,{type:zt.error,error:Y}]}}else if(H.matches)Ce=H.matches;else{let{notFoundMatches:re,error:Y,route:Q}=at(ee.pathname);return{matches:re,pendingActionResult:[Q.id,{type:zt.error,error:Y}]}}}let A,L=cd(Ce,ee);if(!L.route.action&&!L.route.lazy)A={type:zt.error,error:un(405,{method:X.method,pathname:ee.pathname,routeId:L.route.id})};else if(A=(await G("action",w,X,[L],Ce,null))[L.route.id],X.signal.aborted)return{shortCircuited:!0};if(xs(A)){let H;return D&&D.replace!=null?H=D.replace:H=SP(A.response.headers.get("Location"),new URL(X.url),u)===w.location.pathname+w.location.search,await Z(X,A,!0,{submission:ce,replace:H}),{shortCircuited:!0}}if(Si(A))throw un(400,{type:"defer-action"});if(Dn(A)){let H=Kl(Ce,L.route.id);return(D&&D.replace)!==!0&&(O=dr.Push),{matches:Ce,pendingActionResult:[H.route.id,A]}}return{matches:Ce,pendingActionResult:[L.route.id,A]}}async function te(X,ee,ce,Ce,N,D,I,A,L,H,re){let Y=N||$b(ee,D),Q=D||I||TP(Y),me=!z&&(!f.v7_partialHydration||!L);if(Ce){if(me){let Vt=se(re);Ae(Zt({navigation:Y},Vt!==void 0?{actionData:Vt}:{}),{flushSync:H})}let ot=await Kr(ce,ee.pathname,X.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){let{boundaryId:Vt,error:mr}=It(ee.pathname,ot);return{matches:ot.partialMatches,loaderData:{},errors:{[Vt]:mr}}}else if(ot.matches)ce=ot.matches;else{let{error:Vt,notFoundMatches:mr,route:vt}=at(ee.pathname);return{matches:mr,loaderData:{},errors:{[vt.id]:Vt}}}}let $e=s||i,[Ze,tt]=xP(e.history,w,ce,Q,ee,f.v7_partialHydration&&L===!0,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,$e,u,re);if(nr(ot=>!(ce&&ce.some(Vt=>Vt.route.id===ot))||Ze&&Ze.some(Vt=>Vt.route.id===ot)),ie=++q,Ze.length===0&&tt.length===0){let ot=Ge();return He(ee,Zt({matches:ce,loaderData:{},errors:re&&Dn(re[1])?{[re[0]]:re[1].error}:null},OP(re),ot?{fetchers:new Map(w.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(me){let ot={};if(!Ce){ot.navigation=Y;let Vt=se(re);Vt!==void 0&&(ot.actionData=Vt)}tt.length>0&&(ot.fetchers=de(tt)),Ae(ot,{flushSync:H})}tt.forEach(ot=>{U.has(ot.key)&&_e(ot.key),ot.controller&&U.set(ot.key,ot.controller)});let St=()=>tt.forEach(ot=>_e(ot.key));k&&k.signal.addEventListener("abort",St);let{loaderResults:st,fetcherResults:xt}=await le(w,ce,Ze,tt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",St),tt.forEach(ot=>U.delete(ot.key));let jt=Yp(st);if(jt)return await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};if(jt=Yp(xt),jt)return Ee.add(jt.key),await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:lt,errors:Dt}=CP(w,ce,Ze,st,re,tt,xt,be);be.forEach((ot,Vt)=>{ot.subscribe(mr=>{(mr||ot.done)&&be.delete(Vt)})}),f.v7_partialHydration&&L&&w.errors&&Object.entries(w.errors).filter(ot=>{let[Vt]=ot;return!Ze.some(mr=>mr.route.id===Vt)}).forEach(ot=>{let[Vt,mr]=ot;Dt=Object.assign(Dt||{},{[Vt]:mr})});let kr=Ge(),yn=nt(ie),vo=kr||yn||tt.length>0;return Zt({matches:ce,loaderData:lt,errors:Dt},vo?{fetchers:new Map(w.fetchers)}:{})}function se(X){if(X&&!Dn(X[1]))return{[X[0]]:X[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function de(X){return X.forEach(ee=>{let ce=w.fetchers.get(ee.key),Ce=Vc(void 0,ce?ce.data:void 0);w.fetchers.set(ee.key,Ce)}),new Map(w.fetchers)}function fe(X,ee,ce,Ce){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(X)&&_e(X);let N=(Ce&&Ce.unstable_flushSync)===!0,D=s||i,I=B1(w.location,w.matches,u,f.v7_prependBasename,ce,f.v7_relativeSplatPath,ee,Ce==null?void 0:Ce.relative),A=us(D,I,u),L=Mn(A,D,I);if(L.active&&L.matches&&(A=L.matches),!A){Be(X,ee,un(404,{pathname:I}),{flushSync:N});return}let{path:H,submission:re,error:Y}=bP(f.v7_normalizeFormMethod,!0,I,Ce);if(Y){Be(X,ee,Y,{flushSync:N});return}let Q=cd(A,H);if(P=(Ce&&Ce.preventScrollReset)===!0,re&&Ca(re.formMethod)){Oe(X,ee,H,Q,A,L.active,N,re);return}pe.set(X,{routeId:ee,path:H}),ae(X,ee,H,Q,A,L.active,N,re)}async function Oe(X,ee,ce,Ce,N,D,I,A){he(),pe.delete(X);function L(vt){if(!vt.route.action&&!vt.route.lazy){let Gr=un(405,{method:A.formMethod,pathname:ce,routeId:ee});return Be(X,ee,Gr,{flushSync:I}),!0}return!1}if(!D&&L(Ce))return;let H=w.fetchers.get(X);Re(X,M8(A,H),{flushSync:I});let re=new AbortController,Y=vl(e.history,ce,re.signal,A);if(D){let vt=await Kr(N,ce,Y.signal);if(vt.type==="aborted")return;if(vt.type==="error"){let{error:Gr}=It(ce,vt);Be(X,ee,Gr,{flushSync:I});return}else if(vt.matches){if(N=vt.matches,Ce=cd(N,ce),L(Ce))return}else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,re);let Q=q,$e=(await G("action",w,Y,[Ce],N,X))[Ce.route.id];if(Y.signal.aborted){U.get(X)===re&&U.delete(X);return}if(f.v7_fetcherPersist&&ye.has(X)){if(xs($e)||Dn($e)){Re(X,ti(void 0));return}}else{if(xs($e))if(U.delete(X),ie>Q){Re(X,ti(void 0));return}else return Ee.add(X),Re(X,Vc(A)),Z(Y,$e,!1,{fetcherSubmission:A});if(Dn($e)){Be(X,ee,$e.error);return}}if(Si($e))throw un(400,{type:"defer-action"});let Ze=w.navigation.location||w.location,tt=vl(e.history,Ze,re.signal),St=s||i,st=w.navigation.state!=="idle"?us(St,w.navigation.location,u):w.matches;dt(st,"Didn't find any matches after fetcher action");let xt=++q;oe.set(X,xt);let jt=Vc(A,$e.data);w.fetchers.set(X,jt);let[lt,Dt]=xP(e.history,w,st,A,Ze,!1,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,St,u,[Ce.route.id,$e]);Dt.filter(vt=>vt.key!==X).forEach(vt=>{let Gr=vt.key,Go=w.fetchers.get(Gr),Qo=Vc(void 0,Go?Go.data:void 0);w.fetchers.set(Gr,Qo),U.has(Gr)&&_e(Gr),vt.controller&&U.set(Gr,vt.controller)}),Ae({fetchers:new Map(w.fetchers)});let kr=()=>Dt.forEach(vt=>_e(vt.key));re.signal.addEventListener("abort",kr);let{loaderResults:yn,fetcherResults:vo}=await le(w,st,lt,Dt,tt);if(re.signal.aborted)return;re.signal.removeEventListener("abort",kr),oe.delete(X),U.delete(X),Dt.forEach(vt=>U.delete(vt.key));let ot=Yp(yn);if(ot)return Z(tt,ot.result,!1);if(ot=Yp(vo),ot)return Ee.add(ot.key),Z(tt,ot.result,!1);let{loaderData:Vt,errors:mr}=CP(w,st,lt,yn,void 0,Dt,vo,be);if(w.fetchers.has(X)){let vt=ti($e.data);w.fetchers.set(X,vt)}nt(xt),w.navigation.state==="loading"&&xt>ie?(dt(O,"Expected pending action"),k&&k.abort(),He(w.navigation.location,{matches:st,loaderData:Vt,errors:mr,fetchers:new Map(w.fetchers)})):(Ae({errors:mr,loaderData:EP(w.loaderData,Vt,st,mr),fetchers:new Map(w.fetchers)}),M=!1)}async function ae(X,ee,ce,Ce,N,D,I,A){let L=w.fetchers.get(X);Re(X,Vc(A,L?L.data:void 0),{flushSync:I});let H=new AbortController,re=vl(e.history,ce,H.signal);if(D){let $e=await Kr(N,ce,re.signal);if($e.type==="aborted")return;if($e.type==="error"){let{error:Ze}=It(ce,$e);Be(X,ee,Ze,{flushSync:I});return}else if($e.matches)N=$e.matches,Ce=cd(N,ce);else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,H);let Y=q,me=(await G("loader",w,re,[Ce],N,X))[Ce.route.id];if(Si(me)&&(me=await qS(me,re.signal,!0)||me),U.get(X)===H&&U.delete(X),!re.signal.aborted){if(ye.has(X)){Re(X,ti(void 0));return}if(xs(me))if(ie>Y){Re(X,ti(void 0));return}else{Ee.add(X),await Z(re,me,!1);return}if(Dn(me)){Be(X,ee,me.error);return}dt(!Si(me),"Unhandled fetcher deferred data"),Re(X,ti(me.data))}}async function Z(X,ee,ce,Ce){let{submission:N,fetcherSubmission:D,replace:I}=Ce===void 0?{}:Ce;ee.response.headers.has("X-Remix-Revalidate")&&(M=!0);let A=ee.response.headers.get("Location");dt(A,"Expected a Location header on the redirect Response"),A=SP(A,new URL(X.url),u);let L=gf(w.location,A,{_isRedirect:!0});if(r){let $e=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))$e=!0;else if(HS.test(A)){const Ze=e.history.createURL(A);$e=Ze.origin!==t.location.origin||Li(Ze.pathname,u)==null}if($e){I?t.location.replace(A):t.location.assign(A);return}}k=null;let H=I===!0||ee.response.headers.has("X-Remix-Replace")?dr.Replace:dr.Push,{formMethod:re,formAction:Y,formEncType:Q}=w.navigation;!N&&!D&&re&&Y&&Q&&(N=TP(w.navigation));let me=N||D;if(f8.has(ee.response.status)&&me&&Ca(me.formMethod))await V(H,L,{submission:Zt({},me,{formAction:A}),preventScrollReset:P,enableViewTransition:ce?j:void 0});else{let $e=$b(L,N);await V(H,L,{overrideNavigation:$e,fetcherSubmission:D,preventScrollReset:P,enableViewTransition:ce?j:void 0})}}async function G(X,ee,ce,Ce,N,D){let I,A={};try{I=await S8(l,X,ee,ce,Ce,N,D,o,a)}catch(L){return Ce.forEach(H=>{A[H.route.id]={type:zt.error,error:L}}),A}for(let[L,H]of Object.entries(I))if(T8(H)){let re=H.result;A[L]={type:zt.redirect,response:E8(re,ce,L,N,u,f.v7_relativeSplatPath)}}else A[L]=await C8(H);return A}async function le(X,ee,ce,Ce,N){let D=X.matches,I=G("loader",X,N,ce,ee,null),A=Promise.all(Ce.map(async re=>{if(re.matches&&re.match&&re.controller){let Q=(await G("loader",X,vl(e.history,re.path,re.controller.signal),[re.match],re.matches,re.key))[re.match.route.id];return{[re.key]:Q}}else return Promise.resolve({[re.key]:{type:zt.error,error:un(404,{pathname:re.path})}})})),L=await I,H=(await A).reduce((re,Y)=>Object.assign(re,Y),{});return await Promise.all([j8(ee,L,N.signal,D,X.loaderData),I8(ee,H,Ce)]),{loaderResults:L,fetcherResults:H}}function he(){M=!0,W.push(...nr()),pe.forEach((X,ee)=>{U.has(ee)&&(B.add(ee),_e(ee))})}function Re(X,ee,ce){ce===void 0&&(ce={}),w.fetchers.set(X,ee),Ae({fetchers:new Map(w.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Be(X,ee,ce,Ce){Ce===void 0&&(Ce={});let N=Kl(w.matches,ee);je(X),Ae({errors:{[N.route.id]:ce},fetchers:new Map(w.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function Ye(X){return f.v7_fetcherPersist&&(Te.set(X,(Te.get(X)||0)+1),ye.has(X)&&ye.delete(X)),w.fetchers.get(X)||p8}function je(X){let ee=w.fetchers.get(X);U.has(X)&&!(ee&&ee.state==="loading"&&oe.has(X))&&_e(X),pe.delete(X),oe.delete(X),Ee.delete(X),ye.delete(X),B.delete(X),w.fetchers.delete(X)}function Je(X){if(f.v7_fetcherPersist){let ee=(Te.get(X)||0)-1;ee<=0?(Te.delete(X),ye.add(X)):Te.set(X,ee)}else je(X);Ae({fetchers:new Map(w.fetchers)})}function _e(X){let ee=U.get(X);dt(ee,"Expected fetch controller: "+X),ee.abort(),U.delete(X)}function Fe(X){for(let ee of X){let ce=Ye(ee),Ce=ti(ce.data);w.fetchers.set(ee,Ce)}}function Ge(){let X=[],ee=!1;for(let ce of Ee){let Ce=w.fetchers.get(ce);dt(Ce,"Expected fetcher: "+ce),Ce.state==="loading"&&(Ee.delete(ce),X.push(ce),ee=!0)}return Fe(X),ee}function nt(X){let ee=[];for(let[ce,Ce]of oe)if(Ce0}function mt(X,ee){let ce=w.blockers.get(X)||Tl;return we.get(X)!==ee&&we.set(X,ee),ce}function Ot(X){w.blockers.delete(X),we.delete(X)}function kt(X,ee){let ce=w.blockers.get(X)||Tl;dt(ce.state==="unblocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="proceeding"||ce.state==="blocked"&&ee.state==="unblocked"||ce.state==="proceeding"&&ee.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+ee.state);let Ce=new Map(w.blockers);Ce.set(X,ee),Ae({blockers:Ce})}function Pt(X){let{currentLocation:ee,nextLocation:ce,historyAction:Ce}=X;if(we.size===0)return;we.size>1&&Gs(!1,"A router only supports one blocker at a time");let N=Array.from(we.entries()),[D,I]=N[N.length-1],A=w.blockers.get(D);if(!(A&&A.state==="proceeding")&&I({currentLocation:ee,nextLocation:ce,historyAction:Ce}))return D}function at(X){let ee=un(404,{pathname:X}),ce=s||i,{matches:Ce,route:N}=PP(ce);return nr(),{notFoundMatches:Ce,route:N,error:ee}}function It(X,ee){return{boundaryId:Kl(ee.partialMatches).route.id,error:un(400,{type:"route-discovery",pathname:X,message:ee.error!=null&&"message"in ee.error?ee.error:String(ee.error)})}}function nr(X){let ee=[];return be.forEach((ce,Ce)=>{(!X||X(Ce))&&(ce.cancel(),ee.push(Ce),be.delete(Ce))}),ee}function mn(X,ee,ce){if(S=X,m=ee,x=ce||null,!b&&w.navigation===Tb){b=!0;let Ce=Tr(w.location,w.matches);Ce!=null&&Ae({restoreScrollPosition:Ce})}return()=>{S=null,m=null,x=null}}function qr(X,ee){return x&&x(X,ee.map(Ce=>HB(Ce,w.loaderData)))||X.key}function Nr(X,ee){if(S&&m){let ce=qr(X,ee);S[ce]=m()}}function Tr(X,ee){if(S){let ce=qr(X,ee),Ce=S[ce];if(typeof Ce=="number")return Ce}return null}function Mn(X,ee,ce){if(c){if(y.has(ce))return{active:!1,matches:X};if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:Nh(ee,ce,u,!0)}}else return{active:!0,matches:Nh(ee,ce,u,!0)||[]}}return{active:!1,matches:null}}async function Kr(X,ee,ce){let Ce=X;for(;;){let N=s==null,D=s||i;try{await b8(c,ee,Ce,D,o,a,ve,ce)}catch(L){return{type:"error",error:L,partialMatches:Ce}}finally{N&&(i=[...i])}if(ce.aborted)return{type:"aborted"};let I=us(D,ee,u);if(I)return Ko(ee,y),{type:"success",matches:I};let A=Nh(D,ee,u,!0);if(!A||Ce.length===A.length&&Ce.every((L,H)=>L.route.id===A[H].route.id))return Ko(ee,y),{type:"success",matches:null};Ce=A}}function Ko(X,ee){if(ee.size>=g){let ce=ee.values().next().value;ee.delete(ce)}ee.add(X)}function $r(X){o={},s=mf(X,a,void 0,o)}function ho(X,ee){let ce=s==null;fA(X,ee,s||i,o,a),ce&&(i=[...i],Ae({}))}return E={get basename(){return u},get future(){return f},get state(){return w},get routes(){return i},get window(){return t},initialize:Me,subscribe:Ne,enableScrollRestoration:mn,navigate:ht,fetch:fe,revalidate:ut,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ye,deleteFetcher:Je,dispose:Qe,getBlocker:mt,deleteBlocker:Ot,patchRoutes:ho,_internalFetchControllers:U,_internalActiveDeferreds:be,_internalSetRoutes:$r},E}function g8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function B1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let f of t)if(u.push(f),f.route.id===i){l=f;break}}else u=t,l=t[t.length-1];let c=wm(a||".",xm(u,o),Li(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!KS(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:$o([r,c.pathname])),Qs(c)}function bP(e,t,r,n){if(!n||!g8(n))return{path:r};if(n.formMethod&&!k8(n.formMethod))return{path:r,error:un(405,{method:n.formMethod})};let a=()=>({path:r,error:un(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=pA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ca(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,S]=g;return""+v+y+"="+S+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Ca(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}dt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=z1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=z1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=_P(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=_P(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Ca(c.formMethod))return{path:r,submission:c};let f=io(r);return t&&f.search&&KS(f.search)&&u.append("index",""),f.search="?"+u,{path:Qs(f),submission:c}}function m8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function xP(e,t,r,n,a,o,i,s,u,l,c,f,p,v,g,y){let S=y?Dn(y[1])?y[1].error:y[1].data:void 0,x=e.createURL(t.location),m=e.createURL(a),b=y&&Dn(y[1])?y[0]:void 0,h=b?m8(r,b):r,_=y?y[1].statusCode:void 0,C=i&&_&&_>=400,E=h.filter((O,P)=>{let{route:k}=O;if(k.lazy)return!0;if(k.loader==null)return!1;if(o)return typeof k.loader!="function"||k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(y8(t.loaderData,t.matches[P],O)||u.some(F=>F===O.route.id))return!0;let j=t.matches[P],$=O;return wP(O,Zt({currentUrl:x,currentParams:j.params,nextUrl:m,nextParams:$.params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s||x.pathname+x.search===m.pathname+m.search||x.search!==m.search||dA(j,$)}))}),w=[];return f.forEach((O,P)=>{if(o||!r.some(z=>z.route.id===O.routeId)||c.has(P))return;let k=us(v,O.path,g);if(!k){w.push({key:P,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(P),$=cd(k,O.path),F=!1;p.has(P)?F=!1:l.has(P)?(l.delete(P),F=!0):j&&j.state!=="idle"&&j.data===void 0?F=s:F=wP($,Zt({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s})),F&&w.push({key:P,routeId:O.routeId,path:O.path,matches:k,match:$,controller:new AbortController})}),[E,w]}function y8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function dA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function b8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,f)=>{s.aborted||fA(c,f,n,a,o)}}),i.set(u,l)),l&&R8(l)&&await l}finally{i.delete(u)}}function fA(e,t,r,n,a){if(e){var o;let i=n[e];dt(i,"No route found to patch children into: routeId = "+e);let s=mf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=mf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function x8(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];dt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";Gs(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!UB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Zt({},t(a),{lazy:void 0}))}async function w8(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function S8(e,t,r,n,a,o,i,s,u,l){let c=o.map(v=>v.route.lazy?x8(v.route,u,s):void 0),f=o.map((v,g)=>{let y=c[g],S=a.some(m=>m.route.id===v.route.id);return Zt({},v,{shouldLoad:S,resolve:async m=>(m&&n.method==="GET"&&(v.route.lazy||v.route.loader)&&(S=!0),S?_8(t,n,v,y,m,l):Promise.resolve({type:zt.data,result:void 0}))})}),p=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:l});try{await Promise.all(c)}catch{}return p}async function _8(e,t,r,n,a,o){let i,s,u=l=>{let c,f=new Promise((g,y)=>c=y);s=()=>c(),t.signal.addEventListener("abort",s);let p=g=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):l({request:t,params:r.params,context:o},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(y=>p(y)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,f])};try{let l=r.route[e];if(n)if(l){let c,[f]=await Promise.all([u(l).catch(p=>{c=p}),n]);if(c!==void 0)throw c;i=f}else if(await n,l=r.route[e],l)i=await u(l);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw un(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:zt.data,result:void 0};else if(l)i=await u(l);else{let c=new URL(t.url),f=c.pathname+c.search;throw un(404,{pathname:f})}dt(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(l){return{type:zt.error,result:l}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function C8(e){let{result:t,type:r}=e;if(hA(t)){let l;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(c){return{type:zt.error,error:c}}return r===zt.error?{type:zt.error,error:new Vv(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:zt.data,data:l,statusCode:t.status,headers:t.headers}}if(r===zt.error){if(RP(t)){var n;if(t.data instanceof Error){var a;return{type:zt.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new Vv(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zt.error,error:t,statusCode:Sm(t)?t.status:void 0}}if($8(t)){var o,i;return{type:zt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(RP(t)){var s,u;return{type:zt.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:zt.data,data:t}}function E8(e,t,r,n,a,o){let i=e.headers.get("Location");if(dt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!HS.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=B1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function SP(e,t,r){if(HS.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Li(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function vl(e,t,r,n){let a=e.createURL(pA(t)).toString(),o={signal:r};if(n&&Ca(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=z1(n.formData):o.body=n.formData}return new Request(a,o)}function z1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function _P(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function O8(e,t,r,n,a){let o={},i=null,s,u=!1,l={},c=r&&Dn(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,v=t[p];if(dt(!xs(v),"Cannot handle redirect results in processLoaderData"),Dn(v)){let g=v.error;if(c!==void 0&&(g=c,c=void 0),i=i||{},a)i[p]=g;else{let y=Kl(e,p);i[y.route.id]==null&&(i[y.route.id]=g)}o[p]=void 0,u||(u=!0,s=Sm(v.error)?v.error.status:500),v.headers&&(l[p]=v.headers)}else Si(v)?(n.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers))}),c!==void 0&&r&&(i={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:l}}function CP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=O8(t,n,a,s,!1);return o.forEach(c=>{let{key:f,match:p,controller:v}=c,g=i[f];if(dt(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Dn(g)){let y=Kl(e.matches,p==null?void 0:p.route.id);l&&l[y.route.id]||(l=Zt({},l,{[y.route.id]:g.error})),e.fetchers.delete(f)}else if(xs(g))dt(!1,"Unhandled fetcher revalidation redirect");else if(Si(g))dt(!1,"Unhandled fetcher deferred data");else{let y=ti(g.data);e.fetchers.set(f,y)}}),{loaderData:u,errors:l}}function EP(e,t,r,n){let a=Zt({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function OP(e){return e?Dn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kl(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function PP(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function un(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+i):a&&r&&n?u="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new Vv(e||500,s,new Error(u),!0)}function Yp(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(xs(a))return{key:n,result:a}}}function pA(e){let t=typeof e=="string"?io(e):e;return Qs(Zt({},t,{hash:""}))}function P8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function R8(e){return typeof e=="object"&&e!=null&&"then"in e}function T8(e){return hA(e.result)&&d8.has(e.result.status)}function Si(e){return e.type===zt.deferred}function Dn(e){return e.type===zt.error}function xs(e){return(e&&e.type)===zt.redirect}function RP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function $8(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function hA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function k8(e){return c8.has(e.toLowerCase())}function Ca(e){return l8.has(e.toLowerCase())}async function j8(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(p==null?void 0:p.route.id)===s);if(!l)continue;let c=n.find(p=>p.route.id===l.route.id),f=c!=null&&!dA(c,l)&&(a&&a[l.route.id])!==void 0;Si(u)&&f&&await qS(u,r,!1).then(p=>{p&&(t[s]=p)})}}async function I8(e,t,r){for(let n=0;n(l==null?void 0:l.route.id)===o)&&Si(s)&&(dt(i,"Expected an AbortController for revalidating fetcher deferred result"),await qS(s,i.signal,!0).then(l=>{l&&(t[a]=l)}))}}async function qS(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zt.error,error:a}}return{type:zt.data,data:e.deferredData.data}}}function KS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cd(e,t){let r=typeof t=="string"?io(t).search:t.search;if(e[e.length-1].route.index&&KS(r||""))return e[e.length-1];let n=lA(e);return n[n.length-1]}function TP(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function $b(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function A8(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Vc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function M8(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ti(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function F8(e,t){try{let r=e.sessionStorage.getItem(cA);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function N8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(cA,JSON.stringify(r))}catch(n){Gs(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;tD1(e,sA(t)),[t,e])}function gA(e){d.useContext(Wi).static||d.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=d.useContext(so);return e?J8():D8()}function D8(){Hi()||dt(!1);let e=d.useContext(rp),{basename:t,future:r,navigator:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,r.v7_relativeSplatPath)),s=d.useRef(!1);return gA(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=wm(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$o([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,o,e])}const B8=d.createContext(null);function z8(e){let t=d.useContext(so).outlet;return t&&d.createElement(B8.Provider,{value:e},t)}function QS(){let{matches:e}=d.useContext(so),t=e[e.length-1];return t?t.params:{}}function mA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,n.v7_relativeSplatPath));return d.useMemo(()=>wm(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function V8(e,t){return yA(e,t)}function yA(e,t,r,n){Hi()||dt(!1);let{navigator:a}=d.useContext(Wi),{matches:o}=d.useContext(so),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=rn(),c;if(t){var f;let S=typeof t=="string"?io(t):t;u==="/"||(f=S.pathname)!=null&&f.startsWith(u)||dt(!1),c=S}else c=l;let p=c.pathname||"/",v=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=us(e,{pathname:v}),y=K8(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$o([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$o([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&y?d.createElement(_m.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dr.Pop}},y):y}function U8(){let e=Q8(),t=Sm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,o)}const W8=d.createElement(U8,null);class H8 extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(so.Provider,{value:this.props.routeContext},d.createElement(vA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function q8(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(rp);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(so.Provider,{value:t},n)}function K8(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||dt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let v,g=!1,y=null,S=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||W8,u&&(l<0&&p===0?(Z8("route-fallback",!1),g=!0,S=null):l===p&&(g=!0,S=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let b;return v?b=y:g?b=S:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,d.createElement(q8,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(H8,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var XS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(XS||{}),yf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yf||{});function bA(e){let t=d.useContext(rp);return t||dt(!1),t}function xA(e){let t=d.useContext(GS);return t||dt(!1),t}function G8(e){let t=d.useContext(so);return t||dt(!1),t}function wA(e){let t=G8(),r=t.matches[t.matches.length-1];return r.route.id||dt(!1),r.route.id}function Q8(){var e;let t=d.useContext(vA),r=xA(yf.UseRouteError),n=wA(yf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let X8=0;function Y8(e){let{router:t,basename:r}=bA(XS.UseBlocker),n=xA(yf.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:Xs({},u,{pathname:Li(u.pathname,r)||u.pathname}),nextLocation:Xs({},l,{pathname:Li(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return d.useEffect(()=>{let s=String(++X8);return o(s),()=>t.deleteBlocker(s)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Tl}function J8(){let{router:e}=bA(XS.UseNavigateStable),t=wA(yf.UseNavigateStable),r=d.useRef(!1);return gA(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Xs({fromRouteId:t},o)))},[e,t])}const $P={};function Z8(e,t,r){!t&&!$P[e]&&($P[e]=!0)}function ez(e){let{to:t,replace:r,state:n,relative:a}=e;Hi()||dt(!1);let{future:o,static:i}=d.useContext(Wi),{matches:s}=d.useContext(so),{pathname:u}=rn(),l=lo(),c=wm(t,xm(s,o.v7_relativeSplatPath),u,a==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:a}),[l,f,a,r,n]),null}function tz(e){return z8(e.context)}function zr(e){dt(!1)}function rz(e){let{basename:t="/",children:r=null,location:n,navigationType:a=dr.Pop,navigator:o,static:i=!1,future:s}=e;Hi()&&dt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:o,static:i,future:Xs({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=io(n));let{pathname:c="/",search:f="",hash:p="",state:v=null,key:g="default"}=n,y=d.useMemo(()=>{let S=Li(c,u);return S==null?null:{location:{pathname:S,search:f,hash:p,state:v,key:g},navigationType:a}},[u,c,f,p,v,g,a]);return y==null?null:d.createElement(Wi.Provider,{value:l},d.createElement(_m.Provider,{children:r,value:y}))}function ws(e){let{children:t,location:r}=e;return V8(V1(t),r)}new Promise(()=>{});function V1(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,V1(n.props.children,o));return}n.type!==zr&&dt(!1),!n.props.index||!n.props.children||dt(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=V1(n.props.children,o)),r.push(i)}),r}function nz(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;tD1(e,sA(t)),[t,e])}function gA(e){d.useContext(Wi).static||d.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=d.useContext(so);return e?Z8():B8()}function B8(){Hi()||dt(!1);let e=d.useContext(rp),{basename:t,future:r,navigator:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,r.v7_relativeSplatPath)),s=d.useRef(!1);return gA(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=wm(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$o([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,o,e])}const z8=d.createContext(null);function V8(e){let t=d.useContext(so).outlet;return t&&d.createElement(z8.Provider,{value:e},t)}function QS(){let{matches:e}=d.useContext(so),t=e[e.length-1];return t?t.params:{}}function mA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,n.v7_relativeSplatPath));return d.useMemo(()=>wm(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function U8(e,t){return yA(e,t)}function yA(e,t,r,n){Hi()||dt(!1);let{navigator:a}=d.useContext(Wi),{matches:o}=d.useContext(so),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=rn(),c;if(t){var f;let S=typeof t=="string"?io(t):t;u==="/"||(f=S.pathname)!=null&&f.startsWith(u)||dt(!1),c=S}else c=l;let p=c.pathname||"/",v=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=us(e,{pathname:v}),y=G8(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$o([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$o([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&y?d.createElement(_m.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dr.Pop}},y):y}function W8(){let e=X8(),t=Sm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,o)}const H8=d.createElement(W8,null);class q8 extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(so.Provider,{value:this.props.routeContext},d.createElement(vA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function K8(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(rp);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(so.Provider,{value:t},n)}function G8(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||dt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let v,g=!1,y=null,S=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||H8,u&&(l<0&&p===0?(ez("route-fallback",!1),g=!0,S=null):l===p&&(g=!0,S=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let b;return v?b=y:g?b=S:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,d.createElement(K8,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(q8,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var XS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(XS||{}),yf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yf||{});function bA(e){let t=d.useContext(rp);return t||dt(!1),t}function xA(e){let t=d.useContext(GS);return t||dt(!1),t}function Q8(e){let t=d.useContext(so);return t||dt(!1),t}function wA(e){let t=Q8(),r=t.matches[t.matches.length-1];return r.route.id||dt(!1),r.route.id}function X8(){var e;let t=d.useContext(vA),r=xA(yf.UseRouteError),n=wA(yf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let Y8=0;function J8(e){let{router:t,basename:r}=bA(XS.UseBlocker),n=xA(yf.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:Xs({},u,{pathname:Li(u.pathname,r)||u.pathname}),nextLocation:Xs({},l,{pathname:Li(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return d.useEffect(()=>{let s=String(++Y8);return o(s),()=>t.deleteBlocker(s)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Tl}function Z8(){let{router:e}=bA(XS.UseNavigateStable),t=wA(yf.UseNavigateStable),r=d.useRef(!1);return gA(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Xs({fromRouteId:t},o)))},[e,t])}const $P={};function ez(e,t,r){!t&&!$P[e]&&($P[e]=!0)}function tz(e){let{to:t,replace:r,state:n,relative:a}=e;Hi()||dt(!1);let{future:o,static:i}=d.useContext(Wi),{matches:s}=d.useContext(so),{pathname:u}=rn(),l=lo(),c=wm(t,xm(s,o.v7_relativeSplatPath),u,a==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:a}),[l,f,a,r,n]),null}function rz(e){return V8(e.context)}function zr(e){dt(!1)}function nz(e){let{basename:t="/",children:r=null,location:n,navigationType:a=dr.Pop,navigator:o,static:i=!1,future:s}=e;Hi()&&dt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:o,static:i,future:Xs({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=io(n));let{pathname:c="/",search:f="",hash:p="",state:v=null,key:g="default"}=n,y=d.useMemo(()=>{let S=Li(c,u);return S==null?null:{location:{pathname:S,search:f,hash:p,state:v,key:g},navigationType:a}},[u,c,f,p,v,g,a]);return y==null?null:d.createElement(Wi.Provider,{value:l},d.createElement(_m.Provider,{children:r,value:y}))}function ws(e){let{children:t,location:r}=e;return U8(V1(t),r)}new Promise(()=>{});function V1(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,V1(n.props.children,o));return}n.type!==zr&&dt(!1),!n.props.index||!n.props.children||dt(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=V1(n.props.children,o)),r.push(i)}),r}function az(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -66,18 +66,18 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function oz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iz(e,t){return e.button===0&&(!t||t==="_self")&&!oz(e)}const sz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],lz="6";try{window.__reactRouterVersion=lz}catch{}function uz(e,t){return h8({basename:t==null?void 0:t.basename,future:bf({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:DB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||cz(),routes:e,mapRouteProperties:nz,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function cz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bf({},t,{errors:dz(t.errors)})),t}function dz(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new Vv(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const fz=d.createContext({isTransitioning:!1}),pz=d.createContext(new Map),hz="startTransition",kP=Xd[hz],vz="flushSync",jP=oB[vz];function gz(e){kP?kP(e):e()}function Uc(e){jP?jP(e):e()}class mz{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function yz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,s]=d.useState(),[u,l]=d.useState({isTransitioning:!1}),[c,f]=d.useState(),[p,v]=d.useState(),[g,y]=d.useState(),S=d.useRef(new Map),{v7_startTransition:x}=n||{},m=d.useCallback(w=>{x?gz(w):w()},[x]),b=d.useCallback((w,O)=>{let{deletedFetchers:P,unstable_flushSync:k,unstable_viewTransitionOpts:j}=O;P.forEach(F=>S.current.delete(F)),w.fetchers.forEach((F,z)=>{F.data!==void 0&&S.current.set(z,F.data)});let $=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!j||$){k?Uc(()=>o(w)):m(()=>o(w));return}if(k){Uc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let F=r.window.document.startViewTransition(()=>{Uc(()=>o(w))});F.finished.finally(()=>{Uc(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})})}),Uc(()=>v(F));return}p?(c&&c.resolve(),p.skipTransition(),y({state:w,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(s(w),l({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[r.window,p,c,S,m]);d.useLayoutEffect(()=>r.subscribe(b),[r,b]),d.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new mz)},[u]),d.useEffect(()=>{if(c&&i&&r.window){let w=i,O=c.promise,P=r.window.document.startViewTransition(async()=>{m(()=>o(w)),await O});P.finished.finally(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})}),v(P)}},[m,i,c,r.window]),d.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),d.useEffect(()=>{!u.isTransitioning&&g&&(s(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[u.isTransitioning,g]),d.useEffect(()=>{},[]);let h=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:w=>r.navigate(w),push:(w,O,P)=>r.navigate(w,{state:O,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(w,O,P)=>r.navigate(w,{replace:!0,state:O,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[r]),_=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:h,static:!1,basename:_}),[r,h,_]),E=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(rp.Provider,{value:C},d.createElement(GS.Provider,{value:a},d.createElement(pz.Provider,{value:S.current},d.createElement(fz.Provider,{value:u},d.createElement(rz,{basename:_,location:a.location,navigationType:a.historyAction,navigator:h,future:E},a.initialized||r.future.v7_partialHydration?d.createElement(bz,{routes:r.routes,future:r.future,state:a}):t))))),null)}const bz=d.memo(xz);function xz(e){let{routes:t,future:r,state:n}=e;return yA(t,void 0,n,r)}const wz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=az(t,sz),{basename:v}=d.useContext(Wi),g,y=!1;if(typeof l=="string"&&Sz.test(l)&&(g=l,wz))try{let b=new URL(window.location.href),h=l.startsWith("//")?new URL(b.protocol+l):new URL(l),_=Li(h.pathname,v);h.origin===b.origin&&_!=null?l=_+h.search+h.hash:y=!0}catch{}let S=N8(l,{relative:a}),x=_z(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||x(b)}return d.createElement("a",bf({},p,{href:g||S,onClick:y||o?n:m,ref:r,target:u}))});var IP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(IP||(IP={}));var AP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AP||(AP={}));function _z(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lo(),l=rn(),c=mA(e,{relative:i});return d.useCallback(f=>{if(iz(f,r)){f.preventDefault();let p=n!==void 0?n:Qs(l)===Qs(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var Cz="RaStore",Ez=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},U1=Ez(),Oz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Cz).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?MP(s.newValue):void 0;Object.keys(a).forEach(function(f){a[f]&&a[f].key===l&&(c===null?a[f].callback(void 0):a[f].callback(c??void 0))})}};return{setup:function(){if(U1){var s=go().getItem("".concat(r,".version"));if(s&&s!==e){var u=go();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}go().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){U1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=go().getItem("".concat(r,".").concat(s));return l==null?u:MP(l)},setItem:function(s,u){u===void 0?go().removeItem("".concat(r,".").concat(s)):go().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){go().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=go();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=go();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},MP=function(e){try{return JSON.parse(e)}catch{return e}},Pz=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),Rz=new Pz,go=function(){return U1?window.localStorage:Rz},Tz=typeof Al=="object"&&Al&&Al.Object===Object&&Al,SA=Tz,$z=SA,kz=typeof self=="object"&&self&&self.Object===Object&&self,jz=$z||kz||Function("return this")(),Na=jz,Iz=Na,Az=Iz.Symbol,cc=Az,FP=cc,_A=Object.prototype,Mz=_A.hasOwnProperty,Fz=_A.toString,Wc=FP?FP.toStringTag:void 0;function Nz(e){var t=Mz.call(e,Wc),r=e[Wc];try{e[Wc]=void 0;var n=!0}catch{}var a=Fz.call(e);return n&&(t?e[Wc]=r:delete e[Wc]),a}var Lz=Nz,Dz=Object.prototype,Bz=Dz.toString;function zz(e){return Bz.call(e)}var Vz=zz,NP=cc,Uz=Lz,Wz=Vz,Hz="[object Null]",qz="[object Undefined]",LP=NP?NP.toStringTag:void 0;function Kz(e){return e==null?e===void 0?qz:Hz:LP&&LP in Object(e)?Uz(e):Wz(e)}var dc=Kz;function Gz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var La=Gz,Qz=dc,Xz=La,Yz="[object AsyncFunction]",Jz="[object Function]",Zz="[object GeneratorFunction]",e9="[object Proxy]";function t9(e){if(!Xz(e))return!1;var t=Qz(e);return t==Jz||t==Zz||t==Yz||t==e9}var YS=t9,r9=Na,n9=r9["__core-js_shared__"],a9=n9,kb=a9,DP=function(){var e=/[^.]+$/.exec(kb&&kb.keys&&kb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o9(e){return!!DP&&DP in e}var i9=o9,s9=Function.prototype,l9=s9.toString;function u9(e){if(e!=null){try{return l9.call(e)}catch{}try{return e+""}catch{}}return""}var CA=u9,c9=YS,d9=i9,f9=La,p9=CA,h9=/[\\^$.*+?()[\]{}|]/g,v9=/^\[object .+?Constructor\]$/,g9=Function.prototype,m9=Object.prototype,y9=g9.toString,b9=m9.hasOwnProperty,x9=RegExp("^"+y9.call(b9).replace(h9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w9(e){if(!f9(e)||d9(e))return!1;var t=c9(e)?x9:v9;return t.test(p9(e))}var S9=w9;function _9(e,t){return e==null?void 0:e[t]}var C9=_9,E9=S9,O9=C9;function P9(e,t){var r=O9(e,t);return E9(r)?r:void 0}var sl=P9,R9=sl,T9=function(){try{var e=R9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),EA=T9,BP=EA;function $9(e,t,r){t=="__proto__"&&BP?BP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var JS=$9;function k9(e,t){return e===t||e!==e&&t!==t}var fc=k9,j9=JS,I9=fc,A9=Object.prototype,M9=A9.hasOwnProperty;function F9(e,t,r){var n=e[t];(!(M9.call(e,t)&&I9(n,r))||r===void 0&&!(t in e))&&j9(e,t,r)}var ZS=F9,N9=Array.isArray,uo=N9;function L9(e){return e!=null&&typeof e=="object"}var Vo=L9,D9=dc,B9=Vo,z9="[object Symbol]";function V9(e){return typeof e=="symbol"||B9(e)&&D9(e)==z9}var Cm=V9,U9=uo,W9=Cm,H9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q9=/^\w*$/;function K9(e,t){if(U9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||W9(e)?!0:q9.test(e)||!H9.test(e)||t!=null&&e in Object(t)}var G9=K9,Q9=sl,X9=Q9(Object,"create"),Em=X9,zP=Em;function Y9(){this.__data__=zP?zP(null):{},this.size=0}var J9=Y9;function Z9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var e7=Z9,t7=Em,r7="__lodash_hash_undefined__",n7=Object.prototype,a7=n7.hasOwnProperty;function o7(e){var t=this.__data__;if(t7){var r=t[e];return r===r7?void 0:r}return a7.call(t,e)?t[e]:void 0}var i7=o7,s7=Em,l7=Object.prototype,u7=l7.hasOwnProperty;function c7(e){var t=this.__data__;return s7?t[e]!==void 0:u7.call(t,e)}var d7=c7,f7=Em,p7="__lodash_hash_undefined__";function h7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=f7&&t===void 0?p7:t,this}var v7=h7,g7=J9,m7=e7,y7=i7,b7=d7,x7=v7;function pc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var F7=M7,N7=Om;function L7(e,t){var r=this.__data__,n=N7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var D7=L7,B7=_7,z7=$7,V7=I7,U7=F7,W7=D7;function hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,v=r&cW?new iW:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e<=sH}var c_=lH,uH=dc,cH=c_,dH=Vo,fH="[object Arguments]",pH="[object Array]",hH="[object Boolean]",vH="[object Date]",gH="[object Error]",mH="[object Function]",yH="[object Map]",bH="[object Number]",xH="[object Object]",wH="[object RegExp]",SH="[object Set]",_H="[object String]",CH="[object WeakMap]",EH="[object ArrayBuffer]",OH="[object DataView]",PH="[object Float32Array]",RH="[object Float64Array]",TH="[object Int8Array]",$H="[object Int16Array]",kH="[object Int32Array]",jH="[object Uint8Array]",IH="[object Uint8ClampedArray]",AH="[object Uint16Array]",MH="[object Uint32Array]",Gt={};Gt[PH]=Gt[RH]=Gt[TH]=Gt[$H]=Gt[kH]=Gt[jH]=Gt[IH]=Gt[AH]=Gt[MH]=!0;Gt[fH]=Gt[pH]=Gt[EH]=Gt[hH]=Gt[OH]=Gt[vH]=Gt[gH]=Gt[mH]=Gt[yH]=Gt[bH]=Gt[xH]=Gt[wH]=Gt[SH]=Gt[_H]=Gt[CH]=!1;function FH(e){return dH(e)&&cH(e.length)&&!!Gt[uH(e)]}var NH=FH;function LH(e){return function(t){return e(t)}}var Mm=LH,Hv={exports:{}};Hv.exports;(function(e,t){var r=SA,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Hv,Hv.exports);var d_=Hv.exports,DH=NH,BH=Mm,ZP=d_,e2=ZP&&ZP.isTypedArray,zH=e2?BH(e2):DH,f_=zH,VH=QW,UH=Im,WH=uo,HH=Am,qH=Tm,KH=f_,GH=Object.prototype,QH=GH.hasOwnProperty;function XH(e,t){var r=WH(e),n=!r&&UH(e),a=!r&&!n&&HH(e),o=!r&&!n&&!a&&KH(e),i=r||n||a||o,s=i?VH(e.length,String):[],u=s.length;for(var l in e)(t||QH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||qH(l,u)))&&s.push(l);return s}var DA=XH,YH=Object.prototype;function JH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||YH;return e===r}var p_=JH;function ZH(e,t){return function(r){return e(t(r))}}var BA=ZH,eq=BA,tq=eq(Object.keys,Object),rq=tq,nq=p_,aq=rq,oq=Object.prototype,iq=oq.hasOwnProperty;function sq(e){if(!nq(e))return aq(e);var t=[];for(var r in Object(e))iq.call(e,r)&&r!="constructor"&&t.push(r);return t}var lq=sq,uq=YS,cq=c_;function dq(e){return e!=null&&cq(e.length)&&!uq(e)}var Fm=dq,fq=DA,pq=lq,hq=Fm;function vq(e){return hq(e)?fq(e):pq(e)}var h_=vq,gq=FA,mq=u_,yq=h_;function bq(e){return gq(e,yq,mq)}var zA=bq,t2=zA,xq=1,wq=Object.prototype,Sq=wq.hasOwnProperty;function _q(e,t,r,n,a,o){var i=r&xq,s=t2(e),u=s.length,l=t2(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:Sq.call(t,p)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var S=i;++f0){if(++t>=HG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var QG=GG,XG=WG,YG=QG,JG=YG(XG),aM=JG,ZG=rM,eQ=nM,tQ=aM;function rQ(e,t){return tQ(eQ(e,t,ZG),e+"")}var Lm=rQ,nQ=fc,aQ=Fm,oQ=Tm,iQ=La;function sQ(e,t,r){if(!iQ(r))return!1;var n=typeof t;return(n=="number"?aQ(r)&&oQ(t,r.length):n=="string"&&t in r)?nQ(r[t],e):!1}var oM=sQ,lQ=Lm,uQ=oM;function cQ(e){return lQ(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&uQ(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||E<0||f&&w>=o}function x(){var C=Ab();if(S(C))return m(C);s=setTimeout(x,y(C))}function m(C){return s=void 0,p&&n?v(C):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function h(){return s===void 0?i:m(Ab())}function _(){var C=Ab(),E=S(C);if(n=arguments,a=this,u=C,E){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),v(u)}return s===void 0&&(s=setTimeout(x,t)),i}return _.cancel=b,_.flush=h,_}var SJ=wJ;const x_=Mr(SJ);var _J=function(e,t){t===void 0&&(t=250);var r=CJ(e,t),n=r[0],a=r[1],o=rn();d.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},CJ=function(e,t){t===void 0&&(t=250);var r=ya(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=x_(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},EJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return _J(r,a),t},qi=function(){return d.useContext(hM)},ll=function(){var e=qi();return d.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return qa("".concat(e,"/").concat(r));case"create":return qa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},qa=function(e){return e.replace("//","/")};function A2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var vM=function(e,t){if(A2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. + */function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function iz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sz(e,t){return e.button===0&&(!t||t==="_self")&&!iz(e)}const lz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],uz="6";try{window.__reactRouterVersion=uz}catch{}function cz(e,t){return v8({basename:t==null?void 0:t.basename,future:bf({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:BB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dz(),routes:e,mapRouteProperties:az,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function dz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bf({},t,{errors:fz(t.errors)})),t}function fz(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new Vv(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const pz=d.createContext({isTransitioning:!1}),hz=d.createContext(new Map),vz="startTransition",kP=Xd[vz],gz="flushSync",jP=iB[gz];function mz(e){kP?kP(e):e()}function Uc(e){jP?jP(e):e()}class yz{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function bz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,s]=d.useState(),[u,l]=d.useState({isTransitioning:!1}),[c,f]=d.useState(),[p,v]=d.useState(),[g,y]=d.useState(),S=d.useRef(new Map),{v7_startTransition:x}=n||{},m=d.useCallback(w=>{x?mz(w):w()},[x]),b=d.useCallback((w,O)=>{let{deletedFetchers:P,unstable_flushSync:k,unstable_viewTransitionOpts:j}=O;P.forEach(F=>S.current.delete(F)),w.fetchers.forEach((F,z)=>{F.data!==void 0&&S.current.set(z,F.data)});let $=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!j||$){k?Uc(()=>o(w)):m(()=>o(w));return}if(k){Uc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let F=r.window.document.startViewTransition(()=>{Uc(()=>o(w))});F.finished.finally(()=>{Uc(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})})}),Uc(()=>v(F));return}p?(c&&c.resolve(),p.skipTransition(),y({state:w,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(s(w),l({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[r.window,p,c,S,m]);d.useLayoutEffect(()=>r.subscribe(b),[r,b]),d.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new yz)},[u]),d.useEffect(()=>{if(c&&i&&r.window){let w=i,O=c.promise,P=r.window.document.startViewTransition(async()=>{m(()=>o(w)),await O});P.finished.finally(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})}),v(P)}},[m,i,c,r.window]),d.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),d.useEffect(()=>{!u.isTransitioning&&g&&(s(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[u.isTransitioning,g]),d.useEffect(()=>{},[]);let h=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:w=>r.navigate(w),push:(w,O,P)=>r.navigate(w,{state:O,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(w,O,P)=>r.navigate(w,{replace:!0,state:O,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[r]),_=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:h,static:!1,basename:_}),[r,h,_]),E=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(rp.Provider,{value:C},d.createElement(GS.Provider,{value:a},d.createElement(hz.Provider,{value:S.current},d.createElement(pz.Provider,{value:u},d.createElement(nz,{basename:_,location:a.location,navigationType:a.historyAction,navigator:h,future:E},a.initialized||r.future.v7_partialHydration?d.createElement(xz,{routes:r.routes,future:r.future,state:a}):t))))),null)}const xz=d.memo(wz);function wz(e){let{routes:t,future:r,state:n}=e;return yA(t,void 0,n,r)}const Sz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=oz(t,lz),{basename:v}=d.useContext(Wi),g,y=!1;if(typeof l=="string"&&_z.test(l)&&(g=l,Sz))try{let b=new URL(window.location.href),h=l.startsWith("//")?new URL(b.protocol+l):new URL(l),_=Li(h.pathname,v);h.origin===b.origin&&_!=null?l=_+h.search+h.hash:y=!0}catch{}let S=L8(l,{relative:a}),x=Cz(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||x(b)}return d.createElement("a",bf({},p,{href:g||S,onClick:y||o?n:m,ref:r,target:u}))});var IP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(IP||(IP={}));var AP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AP||(AP={}));function Cz(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lo(),l=rn(),c=mA(e,{relative:i});return d.useCallback(f=>{if(sz(f,r)){f.preventDefault();let p=n!==void 0?n:Qs(l)===Qs(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var Ez="RaStore",Oz=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},U1=Oz(),Pz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Ez).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?MP(s.newValue):void 0;Object.keys(a).forEach(function(f){a[f]&&a[f].key===l&&(c===null?a[f].callback(void 0):a[f].callback(c??void 0))})}};return{setup:function(){if(U1){var s=go().getItem("".concat(r,".version"));if(s&&s!==e){var u=go();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}go().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){U1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=go().getItem("".concat(r,".").concat(s));return l==null?u:MP(l)},setItem:function(s,u){u===void 0?go().removeItem("".concat(r,".").concat(s)):go().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){go().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=go();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=go();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},MP=function(e){try{return JSON.parse(e)}catch{return e}},Rz=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),Tz=new Rz,go=function(){return U1?window.localStorage:Tz},$z=typeof Al=="object"&&Al&&Al.Object===Object&&Al,SA=$z,kz=SA,jz=typeof self=="object"&&self&&self.Object===Object&&self,Iz=kz||jz||Function("return this")(),Na=Iz,Az=Na,Mz=Az.Symbol,cc=Mz,FP=cc,_A=Object.prototype,Fz=_A.hasOwnProperty,Nz=_A.toString,Wc=FP?FP.toStringTag:void 0;function Lz(e){var t=Fz.call(e,Wc),r=e[Wc];try{e[Wc]=void 0;var n=!0}catch{}var a=Nz.call(e);return n&&(t?e[Wc]=r:delete e[Wc]),a}var Dz=Lz,Bz=Object.prototype,zz=Bz.toString;function Vz(e){return zz.call(e)}var Uz=Vz,NP=cc,Wz=Dz,Hz=Uz,qz="[object Null]",Kz="[object Undefined]",LP=NP?NP.toStringTag:void 0;function Gz(e){return e==null?e===void 0?Kz:qz:LP&&LP in Object(e)?Wz(e):Hz(e)}var dc=Gz;function Qz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var La=Qz,Xz=dc,Yz=La,Jz="[object AsyncFunction]",Zz="[object Function]",e9="[object GeneratorFunction]",t9="[object Proxy]";function r9(e){if(!Yz(e))return!1;var t=Xz(e);return t==Zz||t==e9||t==Jz||t==t9}var YS=r9,n9=Na,a9=n9["__core-js_shared__"],o9=a9,kb=o9,DP=function(){var e=/[^.]+$/.exec(kb&&kb.keys&&kb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i9(e){return!!DP&&DP in e}var s9=i9,l9=Function.prototype,u9=l9.toString;function c9(e){if(e!=null){try{return u9.call(e)}catch{}try{return e+""}catch{}}return""}var CA=c9,d9=YS,f9=s9,p9=La,h9=CA,v9=/[\\^$.*+?()[\]{}|]/g,g9=/^\[object .+?Constructor\]$/,m9=Function.prototype,y9=Object.prototype,b9=m9.toString,x9=y9.hasOwnProperty,w9=RegExp("^"+b9.call(x9).replace(v9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S9(e){if(!p9(e)||f9(e))return!1;var t=d9(e)?w9:g9;return t.test(h9(e))}var _9=S9;function C9(e,t){return e==null?void 0:e[t]}var E9=C9,O9=_9,P9=E9;function R9(e,t){var r=P9(e,t);return O9(r)?r:void 0}var sl=R9,T9=sl,$9=function(){try{var e=T9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),EA=$9,BP=EA;function k9(e,t,r){t=="__proto__"&&BP?BP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var JS=k9;function j9(e,t){return e===t||e!==e&&t!==t}var fc=j9,I9=JS,A9=fc,M9=Object.prototype,F9=M9.hasOwnProperty;function N9(e,t,r){var n=e[t];(!(F9.call(e,t)&&A9(n,r))||r===void 0&&!(t in e))&&I9(e,t,r)}var ZS=N9,L9=Array.isArray,uo=L9;function D9(e){return e!=null&&typeof e=="object"}var Vo=D9,B9=dc,z9=Vo,V9="[object Symbol]";function U9(e){return typeof e=="symbol"||z9(e)&&B9(e)==V9}var Cm=U9,W9=uo,H9=Cm,q9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K9=/^\w*$/;function G9(e,t){if(W9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||H9(e)?!0:K9.test(e)||!q9.test(e)||t!=null&&e in Object(t)}var Q9=G9,X9=sl,Y9=X9(Object,"create"),Em=Y9,zP=Em;function J9(){this.__data__=zP?zP(null):{},this.size=0}var Z9=J9;function e7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var t7=e7,r7=Em,n7="__lodash_hash_undefined__",a7=Object.prototype,o7=a7.hasOwnProperty;function i7(e){var t=this.__data__;if(r7){var r=t[e];return r===n7?void 0:r}return o7.call(t,e)?t[e]:void 0}var s7=i7,l7=Em,u7=Object.prototype,c7=u7.hasOwnProperty;function d7(e){var t=this.__data__;return l7?t[e]!==void 0:c7.call(t,e)}var f7=d7,p7=Em,h7="__lodash_hash_undefined__";function v7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=p7&&t===void 0?h7:t,this}var g7=v7,m7=Z9,y7=t7,b7=s7,x7=f7,w7=g7;function pc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var N7=F7,L7=Om;function D7(e,t){var r=this.__data__,n=L7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var B7=D7,z7=C7,V7=k7,U7=A7,W7=N7,H7=B7;function hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,v=r&dW?new sW:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e<=lH}var c_=uH,cH=dc,dH=c_,fH=Vo,pH="[object Arguments]",hH="[object Array]",vH="[object Boolean]",gH="[object Date]",mH="[object Error]",yH="[object Function]",bH="[object Map]",xH="[object Number]",wH="[object Object]",SH="[object RegExp]",_H="[object Set]",CH="[object String]",EH="[object WeakMap]",OH="[object ArrayBuffer]",PH="[object DataView]",RH="[object Float32Array]",TH="[object Float64Array]",$H="[object Int8Array]",kH="[object Int16Array]",jH="[object Int32Array]",IH="[object Uint8Array]",AH="[object Uint8ClampedArray]",MH="[object Uint16Array]",FH="[object Uint32Array]",Gt={};Gt[RH]=Gt[TH]=Gt[$H]=Gt[kH]=Gt[jH]=Gt[IH]=Gt[AH]=Gt[MH]=Gt[FH]=!0;Gt[pH]=Gt[hH]=Gt[OH]=Gt[vH]=Gt[PH]=Gt[gH]=Gt[mH]=Gt[yH]=Gt[bH]=Gt[xH]=Gt[wH]=Gt[SH]=Gt[_H]=Gt[CH]=Gt[EH]=!1;function NH(e){return fH(e)&&dH(e.length)&&!!Gt[cH(e)]}var LH=NH;function DH(e){return function(t){return e(t)}}var Mm=DH,Hv={exports:{}};Hv.exports;(function(e,t){var r=SA,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Hv,Hv.exports);var d_=Hv.exports,BH=LH,zH=Mm,ZP=d_,e2=ZP&&ZP.isTypedArray,VH=e2?zH(e2):BH,f_=VH,UH=XW,WH=Im,HH=uo,qH=Am,KH=Tm,GH=f_,QH=Object.prototype,XH=QH.hasOwnProperty;function YH(e,t){var r=HH(e),n=!r&&WH(e),a=!r&&!n&&qH(e),o=!r&&!n&&!a&&GH(e),i=r||n||a||o,s=i?UH(e.length,String):[],u=s.length;for(var l in e)(t||XH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||KH(l,u)))&&s.push(l);return s}var DA=YH,JH=Object.prototype;function ZH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||JH;return e===r}var p_=ZH;function eq(e,t){return function(r){return e(t(r))}}var BA=eq,tq=BA,rq=tq(Object.keys,Object),nq=rq,aq=p_,oq=nq,iq=Object.prototype,sq=iq.hasOwnProperty;function lq(e){if(!aq(e))return oq(e);var t=[];for(var r in Object(e))sq.call(e,r)&&r!="constructor"&&t.push(r);return t}var uq=lq,cq=YS,dq=c_;function fq(e){return e!=null&&dq(e.length)&&!cq(e)}var Fm=fq,pq=DA,hq=uq,vq=Fm;function gq(e){return vq(e)?pq(e):hq(e)}var h_=gq,mq=FA,yq=u_,bq=h_;function xq(e){return mq(e,bq,yq)}var zA=xq,t2=zA,wq=1,Sq=Object.prototype,_q=Sq.hasOwnProperty;function Cq(e,t,r,n,a,o){var i=r&wq,s=t2(e),u=s.length,l=t2(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:_q.call(t,p)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var S=i;++f0){if(++t>=qG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var XG=QG,YG=HG,JG=XG,ZG=JG(YG),aM=ZG,eQ=rM,tQ=nM,rQ=aM;function nQ(e,t){return rQ(tQ(e,t,eQ),e+"")}var Lm=nQ,aQ=fc,oQ=Fm,iQ=Tm,sQ=La;function lQ(e,t,r){if(!sQ(r))return!1;var n=typeof t;return(n=="number"?oQ(r)&&iQ(t,r.length):n=="string"&&t in r)?aQ(r[t],e):!1}var oM=lQ,uQ=Lm,cQ=oM;function dQ(e){return uQ(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&cQ(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||E<0||f&&w>=o}function x(){var C=Ab();if(S(C))return m(C);s=setTimeout(x,y(C))}function m(C){return s=void 0,p&&n?v(C):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function h(){return s===void 0?i:m(Ab())}function _(){var C=Ab(),E=S(C);if(n=arguments,a=this,u=C,E){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),v(u)}return s===void 0&&(s=setTimeout(x,t)),i}return _.cancel=b,_.flush=h,_}var _J=SJ;const x_=Mr(_J);var CJ=function(e,t){t===void 0&&(t=250);var r=EJ(e,t),n=r[0],a=r[1],o=rn();d.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},EJ=function(e,t){t===void 0&&(t=250);var r=ya(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=x_(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},OJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return CJ(r,a),t},qi=function(){return d.useContext(hM)},ll=function(){var e=qi();return d.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return qa("".concat(e,"/").concat(r));case"create":return qa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},qa=function(e){return e.replace("//","/")};function A2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var vM=function(e,t){if(A2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. Be sure to pass the props from the parent. Example: const My`).concat(e,` = props => ( <`).concat(e," {...props}> ); -The missing props are: `).concat(a.join(", ")))},Gv=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),PM="%[a-f0-9]{2}",D2=new RegExp("("+PM+")|([^%]+?)","gi"),B2=new RegExp("("+PM+")+","gi");function J1(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],J1(r),J1(n))}function eZ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(D2)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},aZ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;om==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return b=>(h,_)=>{const C=h.length;return _===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[",C,"]"].join("")]:[...h,[c(b,m),"[",c(C,m),"]=",c(_,m)].join("")]};case"bracket":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[]"].join("")]:[...h,[c(b,m),"[]=",c(_,m)].join("")];case"colon-list-separator":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),":list="].join("")]:[...h,[c(b,m),":list=",c(_,m)].join("")];case"comma":case"separator":case"bracket-separator":{const b=m.arrayFormat==="bracket-separator"?"[]=":"=";return h=>(_,C)=>C===void 0||m.skipNull&&C===null||m.skipEmptyString&&C===""?_:(C=C===null?"":C,_.length===0?[[c(h,m),b,c(C,m)].join("")]:[[_,c(C,m)].join(m.arrayFormatSeparator)])}default:return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,c(b,m)]:[...h,[c(b,m),"=",c(_,m)].join("")]}}function u(m){let b;switch(m.arrayFormat){case"index":return(h,_,C)=>{if(b=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!b){C[h]=_;return}C[h]===void 0&&(C[h]={}),C[h][b[1]]=_};case"bracket":return(h,_,C)=>{if(b=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"colon-list-separator":return(h,_,C)=>{if(b=/(:list)$/.exec(h),h=h.replace(/:list$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"comma":case"separator":return(h,_,C)=>{const E=typeof _=="string"&&_.includes(m.arrayFormatSeparator),w=typeof _=="string"&&!E&&f(_,m).includes(m.arrayFormatSeparator);_=w?f(_,m):_;const O=E||w?_.split(m.arrayFormatSeparator).map(P=>f(P,m)):_===null?_:f(_,m);C[h]=O};case"bracket-separator":return(h,_,C)=>{const E=/(\[\])$/.test(h);if(h=h.replace(/\[\]$/,""),!E){C[h]=_&&f(_,m);return}const w=_===null?[]:_.split(m.arrayFormatSeparator).map(O=>f(O,m));if(C[h]===void 0){C[h]=w;return}C[h]=[].concat(C[h],w)};default:return(h,_,C)=>{if(C[h]===void 0){C[h]=_;return}C[h]=[].concat(C[h],_)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,b){return b.encode?b.strict?t(m):encodeURIComponent(m):m}function f(m,b){return b.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((b,h)=>Number(b)-Number(h)).map(b=>m[b]):m}function v(m){const b=m.indexOf("#");return b!==-1&&(m=m.slice(0,b)),m}function g(m){let b="";const h=m.indexOf("#");return h!==-1&&(b=m.slice(h)),b}function y(m){m=v(m);const b=m.indexOf("?");return b===-1?"":m.slice(b+1)}function S(m,b){return b.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):b.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const h=u(b),_=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return _;for(const C of m.split("&")){if(C==="")continue;let[E,w]=n(b.decode?C.replace(/\+/g," "):C,"=");w=w===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?w:f(w,b),h(f(E,b),w,_)}for(const C of Object.keys(_)){const E=_[C];if(typeof E=="object"&&E!==null)for(const w of Object.keys(E))E[w]=S(E[w],b);else _[C]=S(E,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((C,E)=>{const w=_[E];return w&&typeof w=="object"&&!Array.isArray(w)?C[E]=p(w):C[E]=w,C},Object.create(null))}e.extract=y,e.parse=x,e.stringify=(m,b)=>{if(!m)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const h=w=>b.skipNull&&o(m[w])||b.skipEmptyString&&m[w]==="",_=s(b),C={};for(const w of Object.keys(m))h(w)||(C[w]=m[w]);const E=Object.keys(C);return b.sort!==!1&&E.sort(b.sort),E.map(w=>{const O=m[w];return O===void 0?"":O===null?c(w,b):Array.isArray(O)?O.length===0&&b.arrayFormat==="bracket-separator"?c(w,b)+"[]":O.reduce(_(w),[]).join("&"):c(w,b)+"="+c(O,b)}).filter(w=>w.length>0).join("&")},e.parseUrl=(m,b)=>{b=Object.assign({decode:!0},b);const[h,_]=n(m,"#");return Object.assign({url:h.split("?")[0]||"",query:x(y(m),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:f(_,b)}:{})},e.stringifyUrl=(m,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const h=v(m.url).split("?")[0]||"",_=e.extract(m.url),C=e.parse(_,{sort:!1}),E=Object.assign(C,m.query);let w=e.stringify(E,b);w&&(w=`?${w}`);let O=g(m.url);return m.fragmentIdentifier&&(O=`#${b[i]?c(m.fragmentIdentifier,b):m.fragmentIdentifier}`),`${h}${w}${O}`},e.pick=(m,b,h)=>{h=Object.assign({parseFragmentIdentifier:!0,[i]:!1},h);const{url:_,query:C,fragmentIdentifier:E}=e.parseUrl(m,h);return e.stringifyUrl({url:_,query:a(C,b),fragmentIdentifier:E},h)},e.exclude=(m,b,h)=>{const _=Array.isArray(b)?C=>!b.includes(C):(C,E)=>!b(C,E);return e.pick(m,_,h)}})(ko);var z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message};const $M=dZ;var pZ=["getList","getMany","getManyReference"],Ki=function(){var e=d.useContext(OM)||w_,t=$M(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=ke.useRef(e.isMutating()>0),a=ke.useState(r.current||n.current),o=a[0],i=a[1];return ke.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(hr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(hr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},Uo=function(){var e=Fa();return d.useCallback(function(){e.invalidateQueries()},[e])},Z1=globalThis&&globalThis.__assign||function(){return Z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?jM(s,t-1,r,n,a):_Z(a,s):n||(a[a.length]=s)}return a}var S_=jM;function EZ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var IM=NZ;function LZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=JZ){var l=t?null:XZ(e);if(l)return YZ(l);i=!1,a=QZ,u=new qZ}else u=t?[]:s;e:for(;++n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?$(F):F},{updatedAt:j}),a.setQueriesData({queryKey:[w,"getManyReference"]},function(F){return F&&F.data?{data:$(F.data),total:F.total}:F},{updatedAt:j})},h=bm(Bt(Bt({mutationFn:function(E){var w=E===void 0?{}:E,O=w.resource,P=O===void 0?e:O,k=w.id,j=k===void 0?v.current.id:k,$=w.data,F=$===void 0?v.current.data:$,z=w.meta,M=z===void 0?v.current.meta:z,W=w.previousData,B=W===void 0?v.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(j==null)throw new Error("useUpdate mutation requires a non-empty id");if(!F)throw new Error("useUpdate mutation requires a non-empty data object");return y.current(P,{id:j,data:F,previousData:B,meta:M}).then(function(U){var q=U.data;return q})}},f),{onMutate:function(E){return q2(void 0,void 0,void 0,function(){var w;return K2(this,function(O){switch(O.label){case 0:return f.onMutate?[4,f.onMutate(E)]:[3,2];case 1:return w=O.sent()||{},[2,Bt({snapshot:g.current},w)];case 2:return[2,{snapshot:g.current}]}})})},onError:function(E,w,O){if(w===void 0&&(w={}),(p.current==="optimistic"||p.current==="undoable")&&O.snapshot.forEach(function(P){var k=P[0],j=P[1];a.setQueryData(k,j)}),S.current)return S.current(E,w,O);if(f.onError)return f.onError(E,w,O)},onSuccess:function(E,w,O){if(w===void 0&&(w={}),p.current==="pessimistic"){var P=w.resource,k=P===void 0?e:P,j=w.id,$=j===void 0?o:j;b({resource:k,id:$,data:E}),f.onSuccess&&!m.current&&f.onSuccess(E,w,O)}},onSettled:function(E,w,O,P){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function(k){var j=k[0];a.invalidateQueries({queryKey:j})}),x.current)return x.current(E,w,O,P);if(f.onSettled)return f.onSettled(E,w,O,P)}})),_=function(E,w,O){return E===void 0&&(E=e),w===void 0&&(w={}),O===void 0&&(O={}),q2(void 0,void 0,void 0,function(){var P,k,j,$,F,z,M,W,B,U,q,ie,oe,Ee,pe;return K2(this,function(Te){switch(Te.label){case 0:return P=O.mutationMode,k=O.returnPromise,j=k===void 0?f.returnPromise:k,$=O.onError,F=O.onSettled,z=O.onSuccess,M=G2(O,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?y.current=c(n.update.bind(n)):y.current=n.update,m.current=!!z,S.current=$,x.current=F,v.current=t,P&&(p.current=P),j&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?j?[2,h.mutateAsync(Bt({resource:E},w),Bt({onSuccess:z},M))]:[2,h.mutate(Bt({resource:E},w),Bt({onSuccess:z},M))]:(W=w.id,B=W===void 0?o:W,U=w.data,q=U===void 0?i:U,ie=w.meta,oe=ie===void 0?s:ie,Ee=a.getQueryData([E,"getOne",{id:String(B),meta:oe}]),pe=[[E,"getOne",{id:String(B),meta:oe}],[E,"getList"],[E,"getInfiniteList"],[E,"getMany"],[E,"getManyReference"]],g.current=pe.reduce(function(ye,be){return ye.concat(a.getQueriesData({queryKey:be}))},[]),[4,Promise.all(g.current.map(function(ye){var be=ye[0];return a.cancelQueries({queryKey:be})}))]);case 1:return Te.sent(),b({resource:E,id:B,data:q}),setTimeout(function(){z?z(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current}):f.onSuccess&&!m.current&&f.onSuccess(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current})},0),p.current==="optimistic"?[2,h.mutate(Bt({resource:E},w))]:(xf.once("end",function(ye){var be=ye.isUndo;be?g.current.forEach(function(we){var ve=we[0],De=we[1];a.setQueryData(ve,De)}):h.mutate(Bt({resource:E},w))}),[2])}})})},C=d.useMemo(function(){return Bt({isLoading:h.isPending},h)},[h]);return[Mt(_),C]},nn=globalThis&&globalThis.__assign||function(){return nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(P):P},{updatedAt:w}),a.setQueriesData({queryKey:[_,"getManyReference"]},function(P){if(!P||!P.data)return P;var k=O(P.data),j=k.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?w(O):O},{updatedAt:E}),a.setQueriesData({queryKey:[h,"getManyReference"]},function(O){if(!O||!O.data)return O;var P=w(O.data),k=P.length=0?i[l].apply(i,Hc(Hc([],f,!1),[c],!1)):o.apply(void 0,f)};return i.length>0?i[l].apply(i,Hc(Hc([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Qv=globalThis&&globalThis.__assign||function(){return Qv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;ie||y(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M instanceof Error||typeof M=="object"&&M!==null&&M.hasOwnProperty("message")?M.message:void 0}})}},_),{returnPromise:!0,getMutateWithMiddlewares:w})),k=P[0],j=P[1].isPending,$=d.useCallback(function(M,W){W===void 0&&(W={});var B=W.transform,U=W.meta,q=aR(W,["transform","meta"]);return Promise.resolve(B?B(M):o?o(M):M).then(function(ie){return rR(void 0,void 0,void 0,function(){var oe,Ee;return nR(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,2,,3]),[4,k(u,{data:ie,meta:U??h},q)];case 1:return pe.sent(),[3,3];case 2:return oe=pe.sent(),(oe instanceof JJ||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((Ee=oe.body)===null||Ee===void 0?void 0:Ee.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[k,h,u,o]),F=_c(),z=g("ra.page.create",{name:F(u,1)});return{isFetching:!1,isLoading:!1,isPending:j,saving:j,defaultTitle:z,save:$,resource:u,record:x,redirect:p,registerMutationMiddleware:E,unregisterMutationMiddleware:O}},ete=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ko.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},tte=function(e,t){return t?"edit":e?"show":"list"},C_=d.createContext(void 0);C_.displayName="RecordContext";var bc=function(e){var t=e.children,r=e.value;return d.createElement(C_.Provider,{value:r},t)},E_=d.createContext(null);E_.displayName="CreateContext";var Xv=globalThis&&globalThis.__assign||function(){return Xv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!Ae||a!=="pessimistic")&&y(typeof ve=="string"?ve:ve.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ve=="string"?ve:ve instanceof Error||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("message")?ve.message:void 0}})}},O),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:j})),ye=Te[0],be=Te[1].isPending,we=d.useCallback(function(ve,De){var Me=De===void 0?{}:De,Qe=Me.onSuccess,Ne=Me.onError,Ae=Me.transform,He=Me.meta;return Promise.resolve(Ae?Ae(ve,{previousData:pe.previousData}):f?f(ve,{previousData:pe.previousData}):ve).then(function(ht){return oR(void 0,void 0,void 0,function(){var ut,V;return iR(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,ye(p,{id:b,data:ht,meta:He??C},{onError:Ne,onSuccess:Qe})];case 1:return K.sent(),[3,3];case 2:return ut=K.sent(),((V=ut.body)===null||V===void 0?void 0:V.errors)!=null?[2,ut.body.errors]:[3,3];case 3:return[2]}})})})},[b,C,p,f,ye,pe.previousData]);return{defaultTitle:Ee,error:M,isFetching:B,isLoading:W,isPending:U,mutationMode:a,record:z,redirect:c,refetch:q,registerMutationMiddleware:k,resource:p,save:we,saving:be,unregisterMutationMiddleware:$}},ste="list",_r=function(e){var t=d.useContext(C_);return e&&e.record||t},zM=function(e){var t=e.value,r=e.children;return t?d.createElement(bc,{value:t},r):r},O_=d.createContext(null);O_.displayName="EditContext";var lte=function(e){var t=e.children,r=e.value;return d.createElement(O_.Provider,{value:r},d.createElement(LM,{value:DM(r)},d.createElement(bc,{value:r&&r.record},t)))},ute=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":UM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),yte=mte,bte=typeof window>"u"?Al:window;function xte(e,t){if(e instanceof bte[t])return!0;switch(typeof e>"u"?"undefined":UM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Ub,lR;function wte(){return lR||(lR=1,Ub=function(t,r,n){var a=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),Ub}var Ste=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(o)),a.push(f.join(this._options.rowDelimiter)),n=f}}catch(v){s=!0,u=v}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(S){var x=a._headers.indexOf(S);return x===-1&&(a._headers.push(S),x=a._headers.indexOf(S)),x};i=function(S){var x=[],m=function(F){return x.push(F.map(function(z){return z??""}))},b=function(){return new Array(a._headers.length).fill(null)},h={},_=b(),C=!0,E=!1,w=void 0;try{for(var O=S[Symbol.iterator](),P;!(C=(P=O.next()).done);C=!0){var k=P.value,j=s(k.item);if(_[j]!=null&&(m(_),_=b()),h[j]=h[j]||0,a._options.fillTopRow&&h[j]0&&m(_),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=a._handler.check(v,a._options.mainPathItem,v,r);i(g)}}catch(y){l=!0,c=y}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),uR(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var v=[f.item,p];a.push(v.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),uR(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Ote=Ete,Pte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Rte=Pte,dR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fR=Ote,pR=Rte,Tte=VM,$te=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:Tte,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":dR(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":dR(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new pR(new fR(e));var p=Object.assign({},e,r),v=new fR(p);return t?new Promise(function(g,y){v.parse(t,function(S,x){if(n)return n(S,x);if(S)return y(S);if(y)return g(x)})}):new pR};const kte=Mr($te);var jte=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},Ite=function(e,t,r,n){return kte(e,function(a,o){return jte(o,n)})},Ate=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},Mte=function(e){return function(t,r,n){return e.getMany(n,{ids:Ate(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},gl=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||g(function(m){if(!Array.isArray(m))return gl([],m,!0);var b=m.indexOf(x);return b>-1?gl(gl([],m.slice(0,b),!0),m.slice(b+1),!0):gl(gl([],m,!0),[x],!1)})},clearSelection:function(){y()}}},[g,y]);return[v,S]},Wb=[];function Bn(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useRef(!1);d.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=d.useCallback(function(i){if(a.current)return n(i)},[a,n]);return[r,o]}function P_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Bn(!1),n=r[0],a=r[1];return d.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function Fte(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Po=globalThis&&globalThis.__assign||function(){return Po=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&h(O)},[v.search]);var P=d.useCallback(function(q){C.current&&(_.current?_.current=F2(_.current,q):(_.current=F2(O,q),setTimeout(function(){_.current&&(a&&!p?x(_.current):a&&p?h(_.current):g({search:"?".concat(ko.stringify(Po(Po({},_.current),{filter:JSON.stringify(_.current.filter),displayedFilters:JSON.stringify(_.current.displayedFilters)})))},{state:{_scrollToTop:q.type===X1}}),_.current=void 0)},0)))},hR(hR([],E,!0),[g],!1)),k=d.useCallback(function(q){return P({type:yM,payload:q})},[P]),j=d.useCallback(function(q){return P({type:X1,payload:q})},[P]),$=d.useCallback(function(q){return P({type:bM,payload:q})},[P]),F=O.filter||mR,z=O.displayedFilters||mR,M=x_(function(q,ie){P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},r),W=d.useCallback(function(q,ie,oe){return ie===void 0&&(ie=void 0),oe===void 0&&(oe=!1),oe?M(q,ie):P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},[P]),B=d.useCallback(function(q){P({type:wM,payload:q})},[P]),U=d.useCallback(function(q,ie){P({type:xM,payload:{filterName:q,defaultValue:ie}})},[P]);return[Po(Po({filterValues:F,requestSignature:E},O),{displayedFilters:z}),{changeParams:P,setPage:j,setPerPage:$,setSort:k,setFilters:W,hideFilter:B,showFilter:U}]},vR=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Lte=function(e){var t=e.search,r=ko.parse(t);return vR(r,"filter"),vR(r,"displayedFilters"),r},Dte=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Bte=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:Dte(r)?Po({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Po(Po({},i),{page:gR(i.page,1),perPage:gR(i.perPage,10)})},gR=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},mR={},zte={field:"id",order:Fs},yR={},Bm=d.createContext(null);Bm.displayName="ListContext";var WM=d.createContext(void 0),Vte=function(e){return d.useMemo(function(){return Dm(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};WM.displayName="ListFilterContext";var HM=d.createContext(void 0),Ute=function(e){return d.useMemo(function(){return Dm(e,["sort","setSort","resource"])},[e.sort,e.setSort])};HM.displayName="ListSortContext";var R_=d.createContext(void 0);R_.displayName="ListPaginationContext";var Wte=function(e){return d.useMemo(function(){return Dm(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},qM=function(e){var t=e.value,r=e.children;return d.createElement(Bm.Provider,{value:t},d.createElement(WM.Provider,{value:Vte(t)},d.createElement(HM.Provider,{value:Ute(t)},d.createElement(R_.Provider,{value:Wte(t)},r))))},Ns=globalThis&&globalThis.__assign||function(){return Ns=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(j==null||(j==null?void 0:j.length)===0)){E.setPage(1);return}if(F!=null){var pe=Math.ceil(F/C.perPage)||1;!B&&C.page>pe&&E.setPage(pe)}},[B,C.page,C.perPage,j,E,F]);var ie=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),oe=_c(),Ee=b("ra.page.list",{name:oe(S,2)});return{sort:ie,data:j,meta:z,defaultTitle:Ee,displayedFilters:C.displayedFilters,error:M,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:E.hideFilter,isFetching:B,isLoading:W,isPending:U,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:C.page,perPage:C.perPage,refetch:q,resource:S,selectedIds:O,setFilters:E.setFilters,setPage:E.setPage,setPerPage:E.setPerPage,setSort:E.setSort,showFilter:E.showFilter,total:F,hasNextPage:$?$.hasNextPage:F!=null?C.page*C.perPage1}},Kte={field:"id",order:Fs},Gte=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],wf=function(e){return Object.keys(e).filter(function(t){return!Gte.includes(t)}).reduce(function(t,r){var n;return Ns(Ns({},t),(n={},n[r]=e[r],n))},{})},Qte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Zp(Zp([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Zp(Zp([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},Jte=function(e,t){var r=ya("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},Gl=globalThis&&globalThis.__assign||function(){return Gl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(de,oe.field)?oe.order==="ASC"?1:-1:qt(se,oe.field)1,hideFilter:He,isFetching:_,isLoading:w,isPending:k,onSelect:be.select,onToggleItem:be.toggle,onUnselectItems:be.clearSelection,page:W,perPage:U,resource:"",refetch:Zte,selectedIds:ye,setFilters:ut,setPage:B,setPerPage:q,setSort:pe,showFilter:ht,total:F==null?void 0:F.total}},tre={},ga=function(){var e=d.useContext(Bm);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},rre=Lm,nre=fc,are=oM,ore=yc,KM=Object.prototype,ire=KM.hasOwnProperty,sre=rre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&are(t[0],t[1],a)&&(n=1);++r1,setSort:F,showFilter:ye,total:Me}},fre={},ip=e=>e.type==="checkbox",Ql=e=>e instanceof Date,dn=e=>e==null;const YM=e=>typeof e=="object";var Sr=e=>!dn(e)&&!Array.isArray(e)&&YM(e)&&!Ql(e),JM=e=>Sr(e)&&e.target?ip(e.target)?e.target.checked:e.target.value:e,pre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ZM=(e,t)=>e.has(pre(t)),hre=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},$_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!($_&&(e instanceof Blob||e instanceof FileList))&&(r||Sr(e)))if(t=r?[]:{},!r&&!hre(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=xn(e[n]));else return e;return t}var zm=e=>Array.isArray(e)?e.filter(Boolean):[],lr=e=>e===void 0,Le=(e,t,r)=>{if(!t||!Sr(e))return r;const n=zm(t.split(/[,[\].]+?/)).reduce((a,o)=>dn(a)?a:a[o],e);return lr(n)||n===e?lr(e[t])?r:e[t]:n},ta=e=>typeof e=="boolean",k_=e=>/^\w*$/.test(e),e3=e=>zm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ut=(e,t,r)=>{let n=-1;const a=k_(t)?[t]:e3(t),o=a.length,i=o-1;for(;++nke.useContext(t3),r3=e=>{const{children:t,...r}=e;return ke.createElement(t3.Provider,{value:r},t)};var n3=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Ra.all&&(t._proxyFormState[i]=!n||Ra.all),r&&(r[i]=!0),e[i]}});return a},_n=e=>Sr(e)&&!Object.keys(e).length,a3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return _n(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Ra.all))},Td=e=>Array.isArray(e)?e:[e],o3=(e,t,r)=>!e||!t||e===t||Td(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function j_(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Vm(e){const t=xc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=ke.useState(r._formState),u=ke.useRef(!0),l=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ke.useRef(a);return c.current=a,j_({disabled:n,next:f=>u.current&&o3(c.current,f.name,o)&&a3(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),ke.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),n3(i,r,l.current,!1)}var Ja=e=>typeof e=="string",i3=(e,t,r,n,a)=>Ja(e)?(n&&t.watch.add(e),Le(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Le(r,o))):(n&&(t.watchAll=!0),r);function vre(e){const t=xc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=ke.useRef(n);s.current=n,j_({disabled:o,subject:r._subjects.values,next:c=>{o3(s.current,c.name,i)&&l(xn(i3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),u}function gre(e){const t=xc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=ZM(a._names.array,r),s=vre({control:a,name:r,defaultValue:Le(a._formValues,r,Le(a._defaultValues,r,e.defaultValue)),exact:!0}),u=Vm({control:a,name:r,exact:!0}),l=ke.useRef(a.register(r,{...e.rules,value:s,...ta(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const c=a._options.shouldUnregister||o,f=(p,v)=>{const g=Le(a._fields,p);g&&g._f&&(g._f.mount=v)};if(f(r,!0),c){const p=xn(Le(a._options.defaultValues,r));Ut(a._defaultValues,r,p),lr(Le(a._formValues,r))&&Ut(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):f(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Le(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Le(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ta(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:ke.useCallback(c=>l.current.onChange({target:{value:JM(c),name:r},type:Yv.CHANGE}),[r]),onBlur:ke.useCallback(()=>l.current.onBlur({target:{value:Le(a._formValues,r),name:r},type:Yv.BLUR}),[r,a]),ref:ke.useCallback(c=>{const f=Le(a._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})},[a._fields,r])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Le(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Le(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Le(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Le(u.validatingFields,r)},error:{enumerable:!0,get:()=>Le(u.errors,r)}})}}var mre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},xR=e=>({isOnSubmit:!e||e===Ra.onSubmit,isOnBlur:e===Ra.onBlur,isOnChange:e===Ra.onChange,isOnAll:e===Ra.all,isOnTouch:e===Ra.onTouched}),wR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const $d=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Le(e,a);if(o){const{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if($d(s,t))break}else if(Sr(s)&&$d(s,t))break}}};var yre=(e,t,r)=>{const n=Td(Le(e,r));return Ut(n,"root",t[r]),Ut(e,r,n),e},I_=e=>e.type==="file",Ro=e=>typeof e=="function",Jv=e=>{if(!$_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Bh=e=>Ja(e),A_=e=>e.type==="radio",Zv=e=>e instanceof RegExp;const SR={value:!1,isValid:!1},_R={value:!0,isValid:!0};var s3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!lr(e[0].attributes.value)?lr(e[0].value)||e[0].value===""?_R:{value:e[0].value,isValid:!0}:_R:SR}return SR};const CR={isValid:!1,value:null};var l3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,CR):CR;function ER(e,t,r="validate"){if(Bh(e)||Array.isArray(e)&&e.every(Bh)||ta(e)&&!e)return{type:r,message:Bh(e)?e:"",ref:t}}var ml=e=>Sr(e)&&!Zv(e)?e:{value:e,message:""},OR=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:v,name:g,valueAsNumber:y,mount:S,disabled:x}=e._f,m=Le(t,g);if(!S||x)return{};const b=i?i[0]:o,h=j=>{n&&b.reportValidity&&(b.setCustomValidity(ta(j)?"":j||""),b.reportValidity())},_={},C=A_(o),E=ip(o),w=C||E,O=(y||I_(o))&&lr(o.value)&&lr(m)||Jv(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,P=mre.bind(null,g,r,_),k=(j,$,F,z=mo.maxLength,M=mo.minLength)=>{const W=j?$:F;_[g]={type:j?z:M,message:W,ref:o,...P(j?z:M,W)}};if(a?!Array.isArray(m)||!m.length:s&&(!w&&(O||dn(m))||ta(m)&&!m||E&&!s3(i).isValid||C&&!l3(i).isValid)){const{value:j,message:$}=Bh(s)?{value:!!s,message:s}:ml(s);if(j&&(_[g]={type:mo.required,message:$,ref:b,...P(mo.required,$)},!r))return h($),_}if(!O&&(!dn(c)||!dn(f))){let j,$;const F=ml(f),z=ml(c);if(!dn(m)&&!isNaN(m)){const M=o.valueAsNumber||m&&+m;dn(F.value)||(j=M>F.value),dn(z.value)||($=Mnew Date(new Date().toDateString()+" "+q),B=o.type=="time",U=o.type=="week";Ja(F.value)&&m&&(j=B?W(m)>W(F.value):U?m>F.value:M>new Date(F.value)),Ja(z.value)&&m&&($=B?W(m)+j.value,z=!dn($.value)&&m.length<+$.value;if((F||z)&&(k(F,j.message,$.message),!r))return h(_[g].message),_}if(p&&!O&&Ja(m)){const{value:j,message:$}=ml(p);if(Zv(j)&&!m.match(j)&&(_[g]={type:mo.pattern,message:$,ref:o,...P(mo.pattern,$)},!r))return h($),_}if(v){if(Ro(v)){const j=await v(m,t),$=ER(j,b);if($&&(_[g]={...$,...P(mo.validate,$.message)},!r))return h($.message),_}else if(Sr(v)){let j={};for(const $ in v){if(!_n(j)&&!r)break;const F=ER(await v[$](m,t),b,$);F&&(j={...F,...P($,F.message)},h(F.message),r&&(_[g]=j))}if(!_n(j)&&(_[g]={ref:b,...j},!r))return _}}return h(!0),_};function bre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},eg=e=>dn(e)||!YM(e);function ci(e,t){if(eg(e)||eg(t))return e===t;if(Ql(e)&&Ql(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Ql(o)&&Ql(i)||Sr(o)&&Sr(i)||Array.isArray(o)&&Array.isArray(i)?!ci(o,i):o!==i)return!1}}return!0}var u3=e=>e.type==="select-multiple",wre=e=>A_(e)||ip(e),Kb=e=>Jv(e)&&e.isConnected,c3=e=>{for(const t in e)if(Ro(e[t]))return!0;return!1};function tg(e,t={}){const r=Array.isArray(e);if(Sr(e)||r)for(const n in e)Array.isArray(e[n])||Sr(e[n])&&!c3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},tg(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function d3(e,t,r){const n=Array.isArray(e);if(Sr(e)||n)for(const a in e)Array.isArray(e[a])||Sr(e[a])&&!c3(e[a])?lr(t)||eg(r[a])?r[a]=Array.isArray(e[a])?tg(e[a],[]):{...tg(e[a])}:d3(e[a],dn(t)?{}:t[a],r[a]):r[a]=!ci(e[a],t[a]);return r}var eh=(e,t)=>d3(e,t,tg(t)),f3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>lr(e)?e:t?e===""?NaN:e&&+e:r&&Ja(e)?new Date(e):n?n(e):e;function Gb(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return I_(t)?t.files:A_(t)?l3(e.refs).value:u3(t)?[...t.selectedOptions].map(({value:r})=>r):ip(t)?s3(e.refs).value:f3(lr(t.value)?e.ref.value:t.value,e)}var Sre=(e,t,r,n)=>{const a={};for(const o of e){const i=Le(t,o);i&&Ut(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},qc=e=>lr(e)?e:Zv(e)?e.source:Sr(e)?Zv(e.value)?e.value.source:e.value:e;const PR="AsyncFunction";var _re=e=>(!e||!e.validate)&&!!(Ro(e.validate)&&e.validate.constructor.name===PR||Sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===PR)),Cre=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function RR(e,t,r){const n=Le(e,r);if(n||k_(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Le(t,o),s=Le(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Ere=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Ore=(e,t)=>!zm(Le(e,t)).length&&Cr(e,t);const Pre={mode:Ra.onSubmit,reValidateMode:Ra.onChange,shouldFocusError:!0};function Rre(e={}){let t={...Pre,...e},r={submitCount:0,isDirty:!1,isLoading:Ro(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Sr(t.defaultValues)||Sr(t.values)?xn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:xn(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:qb(),array:qb(),state:qb()},p=xR(t.mode),v=xR(t.reValidateMode),g=t.criteriaMode===Ra.all,y=V=>K=>{clearTimeout(l),l=setTimeout(V,K)},S=async V=>{if(c.isValid||V){const K=t.resolver?_n((await w()).errors):await P(n,!0);K!==r.isValid&&f.state.next({isValid:K})}},x=(V,K)=>{(c.isValidating||c.validatingFields)&&((V||Array.from(s.mount)).forEach(te=>{te&&(K?Ut(r.validatingFields,te,K):Cr(r.validatingFields,te))}),f.state.next({validatingFields:r.validatingFields,isValidating:!_n(r.validatingFields)}))},m=(V,K=[],te,se,de=!0,fe=!0)=>{if(se&&te){if(i.action=!0,fe&&Array.isArray(Le(n,V))){const Oe=te(Le(n,V),se.argA,se.argB);de&&Ut(n,V,Oe)}if(fe&&Array.isArray(Le(r.errors,V))){const Oe=te(Le(r.errors,V),se.argA,se.argB);de&&Ut(r.errors,V,Oe),Ore(r.errors,V)}if(c.touchedFields&&fe&&Array.isArray(Le(r.touchedFields,V))){const Oe=te(Le(r.touchedFields,V),se.argA,se.argB);de&&Ut(r.touchedFields,V,Oe)}c.dirtyFields&&(r.dirtyFields=eh(a,o)),f.state.next({name:V,isDirty:j(V,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ut(o,V,K)},b=(V,K)=>{Ut(r.errors,V,K),f.state.next({errors:r.errors})},h=V=>{r.errors=V,f.state.next({errors:r.errors,isValid:!1})},_=(V,K,te,se)=>{const de=Le(n,V);if(de){const fe=Le(o,V,lr(te)?Le(a,V):te);lr(fe)||se&&se.defaultChecked||K?Ut(o,V,K?fe:Gb(de._f)):z(V,fe),i.mount&&S()}},C=(V,K,te,se,de)=>{let fe=!1,Oe=!1;const ae={name:V},Z=!!(Le(n,V)&&Le(n,V)._f&&Le(n,V)._f.disabled);if(!te||se){c.isDirty&&(Oe=r.isDirty,r.isDirty=ae.isDirty=j(),fe=Oe!==ae.isDirty);const G=Z||ci(Le(a,V),K);Oe=!!(!Z&&Le(r.dirtyFields,V)),G||Z?Cr(r.dirtyFields,V):Ut(r.dirtyFields,V,!0),ae.dirtyFields=r.dirtyFields,fe=fe||c.dirtyFields&&Oe!==!G}if(te){const G=Le(r.touchedFields,V);G||(Ut(r.touchedFields,V,te),ae.touchedFields=r.touchedFields,fe=fe||c.touchedFields&&G!==te)}return fe&&de&&f.state.next(ae),fe?ae:{}},E=(V,K,te,se)=>{const de=Le(r.errors,V),fe=c.isValid&&ta(K)&&r.isValid!==K;if(e.delayError&&te?(u=y(()=>b(V,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Ut(r.errors,V,te):Cr(r.errors,V)),(te?!ci(de,te):de)||!_n(se)||fe){const Oe={...se,...fe&&ta(K)?{isValid:K}:{},errors:r.errors,name:V};r={...r,...Oe},f.state.next(Oe)}},w=async V=>{x(V,!0);const K=await t.resolver(o,t.context,Sre(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(V),K},O=async V=>{const{errors:K}=await w(V);if(V)for(const te of V){const se=Le(K,te);se?Ut(r.errors,te,se):Cr(r.errors,te)}else r.errors=K;return K},P=async(V,K,te={valid:!0})=>{for(const se in V){const de=V[se];if(de){const{_f:fe,...Oe}=de;if(fe){const ae=s.array.has(fe.name),Z=de._f&&_re(de._f);Z&&c.validatingFields&&x([se],!0);const G=await OR(de,o,g,t.shouldUseNativeValidation&&!K,ae);if(Z&&c.validatingFields&&x([se]),G[fe.name]&&(te.valid=!1,K))break;!K&&(Le(G,fe.name)?ae?yre(r.errors,G,fe.name):Ut(r.errors,fe.name,G[fe.name]):Cr(r.errors,fe.name))}!_n(Oe)&&await P(Oe,K,te)}}return te.valid},k=()=>{for(const V of s.unMount){const K=Le(n,V);K&&(K._f.refs?K._f.refs.every(te=>!Kb(te)):!Kb(K._f.ref))&&ye(V)}s.unMount=new Set},j=(V,K)=>(V&&K&&Ut(o,V,K),!ci(ie(),a)),$=(V,K,te)=>i3(V,s,{...i.mount?o:lr(K)?a:Ja(V)?{[V]:K}:K},te,K),F=V=>zm(Le(i.mount?o:a,V,e.shouldUnregister?Le(a,V,[]):[])),z=(V,K,te={})=>{const se=Le(n,V);let de=K;if(se){const fe=se._f;fe&&(!fe.disabled&&Ut(o,V,f3(K,fe)),de=Jv(fe.ref)&&dn(K)?"":K,u3(fe.ref)?[...fe.ref.options].forEach(Oe=>Oe.selected=de.includes(Oe.value)):fe.refs?ip(fe.ref)?fe.refs.length>1?fe.refs.forEach(Oe=>(!Oe.defaultChecked||!Oe.disabled)&&(Oe.checked=Array.isArray(de)?!!de.find(ae=>ae===Oe.value):de===Oe.value)):fe.refs[0]&&(fe.refs[0].checked=!!de):fe.refs.forEach(Oe=>Oe.checked=Oe.value===de):I_(fe.ref)?fe.ref.value="":(fe.ref.value=de,fe.ref.type||f.values.next({name:V,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&C(V,de,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&q(V)},M=(V,K,te)=>{for(const se in K){const de=K[se],fe=`${V}.${se}`,Oe=Le(n,fe);(s.array.has(V)||!eg(de)||Oe&&!Oe._f)&&!Ql(de)?M(fe,de,te):z(fe,de,te)}},W=(V,K,te={})=>{const se=Le(n,V),de=s.array.has(V),fe=xn(K);Ut(o,V,fe),de?(f.array.next({name:V,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&f.state.next({name:V,dirtyFields:eh(a,o),isDirty:j(V,fe)})):se&&!se._f&&!dn(fe)?M(V,fe,te):z(V,fe,te),wR(V,s)&&f.state.next({...r}),f.values.next({name:i.mount?V:void 0,values:{...o}})},B=async V=>{i.mount=!0;const K=V.target;let te=K.name,se=!0;const de=Le(n,te),fe=()=>K.type?Gb(de._f):JM(V),Oe=ae=>{se=Number.isNaN(ae)||ci(ae,Le(o,te,ae))};if(de){let ae,Z;const G=fe(),le=V.type===Yv.BLUR||V.type===Yv.FOCUS_OUT,he=!Cre(de._f)&&!t.resolver&&!Le(r.errors,te)&&!de._f.deps||Ere(le,Le(r.touchedFields,te),r.isSubmitted,v,p),Re=wR(te,s,le);Ut(o,te,G),le?(de._f.onBlur&&de._f.onBlur(V),u&&u(0)):de._f.onChange&&de._f.onChange(V);const Be=C(te,G,le,!1),Ye=!_n(Be)||Re;if(!le&&f.values.next({name:te,type:V.type,values:{...o}}),he)return c.isValid&&(e.mode==="onBlur"?le&&S():S()),Ye&&f.state.next({name:te,...Re?{}:Be});if(!le&&Re&&f.state.next({...r}),t.resolver){const{errors:je}=await w([te]);if(Oe(G),se){const Je=RR(r.errors,n,te),_e=RR(je,n,Je.name||te);ae=_e.error,te=_e.name,Z=_n(je)}}else x([te],!0),ae=(await OR(de,o,g,t.shouldUseNativeValidation))[te],x([te]),Oe(G),se&&(ae?Z=!1:c.isValid&&(Z=await P(n,!0)));se&&(de._f.deps&&q(de._f.deps),E(te,Z,ae,Be))}},U=(V,K)=>{if(Le(r.errors,K)&&V.focus)return V.focus(),1},q=async(V,K={})=>{let te,se;const de=Td(V);if(t.resolver){const fe=await O(lr(V)?V:de);te=_n(fe),se=V?!de.some(Oe=>Le(fe,Oe)):te}else V?(se=(await Promise.all(de.map(async fe=>{const Oe=Le(n,fe);return await P(Oe&&Oe._f?{[fe]:Oe}:Oe)}))).every(Boolean),!(!se&&!r.isValid)&&S()):se=te=await P(n);return f.state.next({...!Ja(V)||c.isValid&&te!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:te}:{},errors:r.errors}),K.shouldFocus&&!se&&$d(n,U,V?de:s.mount),se},ie=V=>{const K={...i.mount?o:a};return lr(V)?K:Ja(V)?Le(K,V):V.map(te=>Le(K,te))},oe=(V,K)=>({invalid:!!Le((K||r).errors,V),isDirty:!!Le((K||r).dirtyFields,V),error:Le((K||r).errors,V),isValidating:!!Le(r.validatingFields,V),isTouched:!!Le((K||r).touchedFields,V)}),Ee=V=>{V&&Td(V).forEach(K=>Cr(r.errors,K)),f.state.next({errors:V?r.errors:{}})},pe=(V,K,te)=>{const se=(Le(n,V,{_f:{}})._f||{}).ref,de=Le(r.errors,V)||{},{ref:fe,message:Oe,type:ae,...Z}=de;Ut(r.errors,V,{...Z,...K,ref:se}),f.state.next({name:V,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&se&&se.focus&&se.focus()},Te=(V,K)=>Ro(V)?f.values.subscribe({next:te=>V($(void 0,K),te)}):$(V,K,!0),ye=(V,K={})=>{for(const te of V?Td(V):s.mount)s.mount.delete(te),s.array.delete(te),K.keepValue||(Cr(n,te),Cr(o,te)),!K.keepError&&Cr(r.errors,te),!K.keepDirty&&Cr(r.dirtyFields,te),!K.keepTouched&&Cr(r.touchedFields,te),!K.keepIsValidating&&Cr(r.validatingFields,te),!t.shouldUnregister&&!K.keepDefaultValue&&Cr(a,te);f.values.next({values:{...o}}),f.state.next({...r,...K.keepDirty?{isDirty:j()}:{}}),!K.keepIsValid&&S()},be=({disabled:V,name:K,field:te,fields:se,value:de})=>{if(ta(V)&&i.mount||V){const fe=V?void 0:lr(de)?Gb(te?te._f:Le(se,K)._f):de;Ut(o,K,fe),C(K,fe,!1,!1,!0)}},we=(V,K={})=>{let te=Le(n,V);const se=ta(K.disabled)||ta(e.disabled);return Ut(n,V,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:V}},name:V,mount:!0,...K}}),s.mount.add(V),te?be({field:te,disabled:ta(K.disabled)?K.disabled:e.disabled,name:V,value:K.value}):_(V,!0,K.value),{...se?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:qc(K.min),max:qc(K.max),minLength:qc(K.minLength),maxLength:qc(K.maxLength),pattern:qc(K.pattern)}:{},name:V,onChange:B,onBlur:B,ref:de=>{if(de){we(V,K),te=Le(n,V);const fe=lr(de.value)&&de.querySelectorAll&&de.querySelectorAll("input,select,textarea")[0]||de,Oe=wre(fe),ae=te._f.refs||[];if(Oe?ae.find(Z=>Z===fe):fe===te._f.ref)return;Ut(n,V,{_f:{...te._f,...Oe?{refs:[...ae.filter(Kb),fe,...Array.isArray(Le(a,V))?[{}]:[]],ref:{type:fe.type,name:V}}:{ref:fe}}}),_(V,!1,void 0,fe)}else te=Le(n,V,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(ZM(s.array,V)&&i.action)&&s.unMount.add(V)}}},ve=()=>t.shouldFocusError&&$d(n,U,s.mount),De=V=>{ta(V)&&(f.state.next({disabled:V}),$d(n,(K,te)=>{const se=Le(n,te);se&&(K.disabled=se._f.disabled||V,Array.isArray(se._f.refs)&&se._f.refs.forEach(de=>{de.disabled=se._f.disabled||V}))},0,!1))},Me=(V,K)=>async te=>{let se;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let de=xn(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:fe,values:Oe}=await w();r.errors=fe,de=Oe}else await P(n);if(Cr(r.errors,"root"),_n(r.errors)){f.state.next({errors:{}});try{await V(de,te)}catch(fe){se=fe}}else K&&await K({...r.errors},te),ve(),setTimeout(ve);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_n(r.errors)&&!se,submitCount:r.submitCount+1,errors:r.errors}),se)throw se},Qe=(V,K={})=>{Le(n,V)&&(lr(K.defaultValue)?W(V,xn(Le(a,V))):(W(V,K.defaultValue),Ut(a,V,xn(K.defaultValue))),K.keepTouched||Cr(r.touchedFields,V),K.keepDirty||(Cr(r.dirtyFields,V),r.isDirty=K.defaultValue?j(V,xn(Le(a,V))):j()),K.keepError||(Cr(r.errors,V),c.isValid&&S()),f.state.next({...r}))},Ne=(V,K={})=>{const te=V?xn(V):a,se=xn(te),de=_n(V),fe=de?a:se;if(K.keepDefaultValues||(a=te),!K.keepValues){if(K.keepDirtyValues)for(const Oe of s.mount)Le(r.dirtyFields,Oe)?Ut(fe,Oe,Le(o,Oe)):W(Oe,Le(fe,Oe));else{if($_&&lr(V))for(const Oe of s.mount){const ae=Le(n,Oe);if(ae&&ae._f){const Z=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Jv(Z)){const G=Z.closest("form");if(G){G.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?xn(a):{}:xn(fe),f.array.next({values:{...fe}}),f.values.next({values:{...fe}})}s={mount:K.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:de?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!ci(V,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:de?{}:K.keepDirtyValues?K.keepDefaultValues&&o?eh(a,o):r.dirtyFields:K.keepDefaultValues&&V?eh(a,V):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ae=(V,K)=>Ne(Ro(V)?V(o):V,K);return{control:{register:we,unregister:ye,getFieldState:oe,handleSubmit:Me,setError:pe,_executeSchema:w,_getWatch:$,_getDirty:j,_updateValid:S,_removeUnmounted:k,_updateFieldArray:m,_updateDisabledField:be,_getFieldArray:F,_reset:Ne,_resetDefaultValues:()=>Ro(t.defaultValues)&&t.defaultValues().then(V=>{Ae(V,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:De,_subjects:f,_proxyFormState:c,_setErrors:h,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(V){i=V},get _defaultValues(){return a},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:q,register:we,handleSubmit:Me,watch:Te,setValue:W,getValues:ie,reset:Ae,resetField:Qe,clearErrors:Ee,unregister:ye,setError:pe,setFocus:(V,K={})=>{const te=Le(n,V),se=te&&te._f;if(se){const de=se.refs?se.refs[0]:se.ref;de.focus&&(de.focus(),K.shouldSelect&&de.select())}},getFieldState:oe}}function p3(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:Ro(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ro(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Rre(e),formState:n});const o=t.current.control;return o._options=e,j_({subject:o._subjects.state,next:i=>{a3(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ke.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),ke.useEffect(()=>{e.values&&!ci(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=n3(n,o),t.current}var h3=d.createContext(void 0),rx=globalThis&&globalThis.__assign||function(){return rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=d.useState(!1),l=u[0],c=u[1],f=!e||!s||o,p=Y8(function(v){var g=v.currentLocation,y=v.nextLocation;if(f)return!1;var S=t||g.pathname,x=y.pathname.startsWith(S),m=y.pathname.startsWith("".concat(S,"/show")),b=x&&!m;return!b});d.useEffect(function(){if(p.state==="blocked"){if(f){p.proceed();return}c(!0)}},[p.state]),d.useEffect(function(){if(l){var v=window.confirm(n("ra.message.unsaved_changes"));v?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),d.useEffect(function(){var v=function(g){g.preventDefault(),g.returnValue=!0};if(!f)return window.addEventListener("beforeunload",v),function(){window.removeEventListener("beforeunload",v)}},[f])},zre=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return Bre(r,n,a),null};function Vre(e,t){var r=iM({},Ure(e,t),t);return r}function Ure(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var m3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},Wre=function(e,t){t===void 0&&(t=!0);var r=Vm(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=ur();d.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},Hre=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},ax=globalThis&&globalThis.__assign||function(){return ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Yre(e){return e?e.hasOwnProperty("message"):!1}var Qi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Xi=function(e){return RA(e,function(){for(var t=[],r=0;re?Qi(t,{max:e},r,n):void 0}});Xi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gi(r)&&re?Qi(t,{max:e},r,n):void 0}});Xi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gi(t)&&isNaN(Number(t))?Qi(e,void 0,t,r):void 0}});var tne=RA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gi(r)&&typeof r=="string"&&!e.test(r)?Qi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Xi(function(e){return e===void 0&&(e="ra.validation.email"),tne(Xre,e)});var rne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xi(function(e,t){return t===void 0&&(t=rne),function(r,n){return!Gi(r)&&e.indexOf(r)===-1?Qi(t,{list:e},r,n):void 0}});var nne=d.createContext(null),ane=function(){var e=d.useContext(h3);return e},one=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=H3(o),s=_r(t),u=xc(),l=u.getValues,c=u.resetField,f=u.formState,p=u.reset,v=qt(s,i),g=qt(l(),i),y=f.dirtyFields,S=Object.keys(y).includes(i);d.useEffect(function(){if(!(a==null||g!=null||v!=null||S)){var x=i.split(".").some(function(h){return ine.test(h)});if(x){var m=i.split(".").slice(0,-1).join("."),b=qt(l(),m);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},ine=/^\d+$/,sne=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,s=e.translateChoice,u=s===void 0?!0:s,l=et(),c=d.useCallback(function(v){if(d.isValidElement(r))return d.createElement(bc,{value:v},r);var g=typeof r=="function"?r(v):qt(v,r);return d.isValidElement(g)?g:u?l(String(g),{_:g}):String(g)},[r,l,u]),f=d.useCallback(function(v){return qt(v,a)},[a]),p=d.useCallback(function(v){return qt(v,i)},[i]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},lne=function(){var e=d.useContext(nne);return e},une=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const cne=une;var fs=globalThis&&globalThis.__assign||function(){return fs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var S3=function(){return d.useContext(x3)},sx=globalThis&&globalThis.__assign||function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Fne=function(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Nne=function(e,t){var r=S3(),n=r.register,a=r.unregister;d.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},Lne=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return _3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},_3=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},dd=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(d.Children.forEach(e,function(a){if(d.isValidElement(a)){if(a.type===d.Fragment){var o=dd(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},C3=d.createContext(!1),Dne=C3.Provider,Bne=function(){return d.useContext(C3)},zne=function(e){One();var t=ll(),r=Ane(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.requireAuth,p=e.ready,v=d.useState(f),g=v[0],y=v[1],S=d.useState(f),x=S[0],m=S[1],b=Y3();if(d.useEffect(function(){f&&b(void 0,!1).then(function(){y(!1)}).catch(function(){}).finally(function(){m(!1)})},[b,f]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(p,null)}return o==="loading"||x?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):g?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement(Nae,null)})):d.createElement(ws,null,a,d.createElement(zr,{path:"/*",element:d.createElement(Dne,{value:!!l},d.createElement(s,null,d.createElement(ws,null,n,d.Children.map(i,function(h){return d.createElement(zr,{key:h.props.name,path:"".concat(h.props.name,"/*"),element:h})}),d.createElement(zr,{path:"/",element:l?d.createElement(Tae,{authParams:Vne,component:l}):i.length>0?d.createElement(ez,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(u,null)}))))}))},Vne={params:{route:"dashboard"}},E3=d.createContext("React Admin"),Une=E3.Provider,O3=function(){return d.useContext(E3)},Wne=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Hne=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return y3(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},qne=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?AR:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,p=e.error,v=p===void 0?Hne:p,g=e.layout,y=g===void 0?Wne:g,S=e.loading,x=S===void 0?AR:S,m=e.loginPage,b=m===void 0?!1:m,h=e.ready,_=h===void 0?sae:h,C=e.requireAuth,E=C===void 0?!1:C,w=e.title,O=w===void 0?"React Admin":w;d.useEffect(function(){if(!(f||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var k=new Image;k.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var P=function(k,j){return n(j)};return d.createElement(Une,{value:O},d.createElement(w3,{onError:P,fallbackRender:function(k){var j=k.error,$=k.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(v,{error:j,errorInfo:r,resetErrorBoundary:$}))}},d.createElement(ws,null,b!==!1&&b!==!0?d.createElement(zr,{path:"/login",element:IR(b)}):null,o!==!1&&o!==!0?d.createElement(zr,{path:"/auth-callback",element:IR(o)}):null,d.createElement(zr,{path:"/*",element:d.createElement(zne,{catchAll:s,dashboard:l,layout:y,loading:x,requireAuth:E,ready:_},u)}))))},IR=function(e){return d.isValidElement(e)?e:d.createElement(e)},AR=function(){return null},P3=function(e){return null};P3.raName="CustomRoutes";var R3=d.createContext(void 0),ul=function(e){var t=e.children,r=e.value;return r?d.createElement(R3.Provider,{value:r},t):t},Kne=function(e){var t=e.value,r=e.children;return t?d.createElement(ul,{value:t},r):r},T3={exports:{}},Ft={};/** +The missing props are: `).concat(a.join(", ")))},Gv=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),PM="%[a-f0-9]{2}",D2=new RegExp("("+PM+")|([^%]+?)","gi"),B2=new RegExp("("+PM+")+","gi");function J1(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],J1(r),J1(n))}function tZ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(D2)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},oZ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;om==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return b=>(h,_)=>{const C=h.length;return _===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[",C,"]"].join("")]:[...h,[c(b,m),"[",c(C,m),"]=",c(_,m)].join("")]};case"bracket":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[]"].join("")]:[...h,[c(b,m),"[]=",c(_,m)].join("")];case"colon-list-separator":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),":list="].join("")]:[...h,[c(b,m),":list=",c(_,m)].join("")];case"comma":case"separator":case"bracket-separator":{const b=m.arrayFormat==="bracket-separator"?"[]=":"=";return h=>(_,C)=>C===void 0||m.skipNull&&C===null||m.skipEmptyString&&C===""?_:(C=C===null?"":C,_.length===0?[[c(h,m),b,c(C,m)].join("")]:[[_,c(C,m)].join(m.arrayFormatSeparator)])}default:return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,c(b,m)]:[...h,[c(b,m),"=",c(_,m)].join("")]}}function u(m){let b;switch(m.arrayFormat){case"index":return(h,_,C)=>{if(b=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!b){C[h]=_;return}C[h]===void 0&&(C[h]={}),C[h][b[1]]=_};case"bracket":return(h,_,C)=>{if(b=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"colon-list-separator":return(h,_,C)=>{if(b=/(:list)$/.exec(h),h=h.replace(/:list$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"comma":case"separator":return(h,_,C)=>{const E=typeof _=="string"&&_.includes(m.arrayFormatSeparator),w=typeof _=="string"&&!E&&f(_,m).includes(m.arrayFormatSeparator);_=w?f(_,m):_;const O=E||w?_.split(m.arrayFormatSeparator).map(P=>f(P,m)):_===null?_:f(_,m);C[h]=O};case"bracket-separator":return(h,_,C)=>{const E=/(\[\])$/.test(h);if(h=h.replace(/\[\]$/,""),!E){C[h]=_&&f(_,m);return}const w=_===null?[]:_.split(m.arrayFormatSeparator).map(O=>f(O,m));if(C[h]===void 0){C[h]=w;return}C[h]=[].concat(C[h],w)};default:return(h,_,C)=>{if(C[h]===void 0){C[h]=_;return}C[h]=[].concat(C[h],_)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,b){return b.encode?b.strict?t(m):encodeURIComponent(m):m}function f(m,b){return b.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((b,h)=>Number(b)-Number(h)).map(b=>m[b]):m}function v(m){const b=m.indexOf("#");return b!==-1&&(m=m.slice(0,b)),m}function g(m){let b="";const h=m.indexOf("#");return h!==-1&&(b=m.slice(h)),b}function y(m){m=v(m);const b=m.indexOf("?");return b===-1?"":m.slice(b+1)}function S(m,b){return b.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):b.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const h=u(b),_=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return _;for(const C of m.split("&")){if(C==="")continue;let[E,w]=n(b.decode?C.replace(/\+/g," "):C,"=");w=w===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?w:f(w,b),h(f(E,b),w,_)}for(const C of Object.keys(_)){const E=_[C];if(typeof E=="object"&&E!==null)for(const w of Object.keys(E))E[w]=S(E[w],b);else _[C]=S(E,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((C,E)=>{const w=_[E];return w&&typeof w=="object"&&!Array.isArray(w)?C[E]=p(w):C[E]=w,C},Object.create(null))}e.extract=y,e.parse=x,e.stringify=(m,b)=>{if(!m)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const h=w=>b.skipNull&&o(m[w])||b.skipEmptyString&&m[w]==="",_=s(b),C={};for(const w of Object.keys(m))h(w)||(C[w]=m[w]);const E=Object.keys(C);return b.sort!==!1&&E.sort(b.sort),E.map(w=>{const O=m[w];return O===void 0?"":O===null?c(w,b):Array.isArray(O)?O.length===0&&b.arrayFormat==="bracket-separator"?c(w,b)+"[]":O.reduce(_(w),[]).join("&"):c(w,b)+"="+c(O,b)}).filter(w=>w.length>0).join("&")},e.parseUrl=(m,b)=>{b=Object.assign({decode:!0},b);const[h,_]=n(m,"#");return Object.assign({url:h.split("?")[0]||"",query:x(y(m),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:f(_,b)}:{})},e.stringifyUrl=(m,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const h=v(m.url).split("?")[0]||"",_=e.extract(m.url),C=e.parse(_,{sort:!1}),E=Object.assign(C,m.query);let w=e.stringify(E,b);w&&(w=`?${w}`);let O=g(m.url);return m.fragmentIdentifier&&(O=`#${b[i]?c(m.fragmentIdentifier,b):m.fragmentIdentifier}`),`${h}${w}${O}`},e.pick=(m,b,h)=>{h=Object.assign({parseFragmentIdentifier:!0,[i]:!1},h);const{url:_,query:C,fragmentIdentifier:E}=e.parseUrl(m,h);return e.stringifyUrl({url:_,query:a(C,b),fragmentIdentifier:E},h)},e.exclude=(m,b,h)=>{const _=Array.isArray(b)?C=>!b.includes(C):(C,E)=>!b(C,E);return e.pick(m,_,h)}})(ko);var z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message};const $M=fZ;var hZ=["getList","getMany","getManyReference"],Ki=function(){var e=d.useContext(OM)||w_,t=$M(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=ke.useRef(e.isMutating()>0),a=ke.useState(r.current||n.current),o=a[0],i=a[1];return ke.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(hr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(hr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},Uo=function(){var e=Fa();return d.useCallback(function(){e.invalidateQueries()},[e])},Z1=globalThis&&globalThis.__assign||function(){return Z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?jM(s,t-1,r,n,a):CZ(a,s):n||(a[a.length]=s)}return a}var S_=jM;function OZ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var IM=LZ;function DZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=ZZ){var l=t?null:YZ(e);if(l)return JZ(l);i=!1,a=XZ,u=new KZ}else u=t?[]:s;e:for(;++n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?$(F):F},{updatedAt:j}),a.setQueriesData({queryKey:[w,"getManyReference"]},function(F){return F&&F.data?{data:$(F.data),total:F.total}:F},{updatedAt:j})},h=bm(Bt(Bt({mutationFn:function(E){var w=E===void 0?{}:E,O=w.resource,P=O===void 0?e:O,k=w.id,j=k===void 0?v.current.id:k,$=w.data,F=$===void 0?v.current.data:$,z=w.meta,M=z===void 0?v.current.meta:z,W=w.previousData,B=W===void 0?v.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(j==null)throw new Error("useUpdate mutation requires a non-empty id");if(!F)throw new Error("useUpdate mutation requires a non-empty data object");return y.current(P,{id:j,data:F,previousData:B,meta:M}).then(function(U){var q=U.data;return q})}},f),{onMutate:function(E){return q2(void 0,void 0,void 0,function(){var w;return K2(this,function(O){switch(O.label){case 0:return f.onMutate?[4,f.onMutate(E)]:[3,2];case 1:return w=O.sent()||{},[2,Bt({snapshot:g.current},w)];case 2:return[2,{snapshot:g.current}]}})})},onError:function(E,w,O){if(w===void 0&&(w={}),(p.current==="optimistic"||p.current==="undoable")&&O.snapshot.forEach(function(P){var k=P[0],j=P[1];a.setQueryData(k,j)}),S.current)return S.current(E,w,O);if(f.onError)return f.onError(E,w,O)},onSuccess:function(E,w,O){if(w===void 0&&(w={}),p.current==="pessimistic"){var P=w.resource,k=P===void 0?e:P,j=w.id,$=j===void 0?o:j;b({resource:k,id:$,data:E}),f.onSuccess&&!m.current&&f.onSuccess(E,w,O)}},onSettled:function(E,w,O,P){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function(k){var j=k[0];a.invalidateQueries({queryKey:j})}),x.current)return x.current(E,w,O,P);if(f.onSettled)return f.onSettled(E,w,O,P)}})),_=function(E,w,O){return E===void 0&&(E=e),w===void 0&&(w={}),O===void 0&&(O={}),q2(void 0,void 0,void 0,function(){var P,k,j,$,F,z,M,W,B,U,q,ie,oe,Ee,pe;return K2(this,function(Te){switch(Te.label){case 0:return P=O.mutationMode,k=O.returnPromise,j=k===void 0?f.returnPromise:k,$=O.onError,F=O.onSettled,z=O.onSuccess,M=G2(O,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?y.current=c(n.update.bind(n)):y.current=n.update,m.current=!!z,S.current=$,x.current=F,v.current=t,P&&(p.current=P),j&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?j?[2,h.mutateAsync(Bt({resource:E},w),Bt({onSuccess:z},M))]:[2,h.mutate(Bt({resource:E},w),Bt({onSuccess:z},M))]:(W=w.id,B=W===void 0?o:W,U=w.data,q=U===void 0?i:U,ie=w.meta,oe=ie===void 0?s:ie,Ee=a.getQueryData([E,"getOne",{id:String(B),meta:oe}]),pe=[[E,"getOne",{id:String(B),meta:oe}],[E,"getList"],[E,"getInfiniteList"],[E,"getMany"],[E,"getManyReference"]],g.current=pe.reduce(function(ye,be){return ye.concat(a.getQueriesData({queryKey:be}))},[]),[4,Promise.all(g.current.map(function(ye){var be=ye[0];return a.cancelQueries({queryKey:be})}))]);case 1:return Te.sent(),b({resource:E,id:B,data:q}),setTimeout(function(){z?z(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current}):f.onSuccess&&!m.current&&f.onSuccess(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current})},0),p.current==="optimistic"?[2,h.mutate(Bt({resource:E},w))]:(xf.once("end",function(ye){var be=ye.isUndo;be?g.current.forEach(function(we){var ve=we[0],De=we[1];a.setQueryData(ve,De)}):h.mutate(Bt({resource:E},w))}),[2])}})})},C=d.useMemo(function(){return Bt({isLoading:h.isPending},h)},[h]);return[Mt(_),C]},nn=globalThis&&globalThis.__assign||function(){return nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(P):P},{updatedAt:w}),a.setQueriesData({queryKey:[_,"getManyReference"]},function(P){if(!P||!P.data)return P;var k=O(P.data),j=k.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?w(O):O},{updatedAt:E}),a.setQueriesData({queryKey:[h,"getManyReference"]},function(O){if(!O||!O.data)return O;var P=w(O.data),k=P.length=0?i[l].apply(i,Hc(Hc([],f,!1),[c],!1)):o.apply(void 0,f)};return i.length>0?i[l].apply(i,Hc(Hc([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Qv=globalThis&&globalThis.__assign||function(){return Qv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;ie||y(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M instanceof Error||typeof M=="object"&&M!==null&&M.hasOwnProperty("message")?M.message:void 0}})}},_),{returnPromise:!0,getMutateWithMiddlewares:w})),k=P[0],j=P[1].isPending,$=d.useCallback(function(M,W){W===void 0&&(W={});var B=W.transform,U=W.meta,q=aR(W,["transform","meta"]);return Promise.resolve(B?B(M):o?o(M):M).then(function(ie){return rR(void 0,void 0,void 0,function(){var oe,Ee;return nR(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,2,,3]),[4,k(u,{data:ie,meta:U??h},q)];case 1:return pe.sent(),[3,3];case 2:return oe=pe.sent(),(oe instanceof ZJ||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((Ee=oe.body)===null||Ee===void 0?void 0:Ee.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[k,h,u,o]),F=_c(),z=g("ra.page.create",{name:F(u,1)});return{isFetching:!1,isLoading:!1,isPending:j,saving:j,defaultTitle:z,save:$,resource:u,record:x,redirect:p,registerMutationMiddleware:E,unregisterMutationMiddleware:O}},tte=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ko.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},rte=function(e,t){return t?"edit":e?"show":"list"},C_=d.createContext(void 0);C_.displayName="RecordContext";var bc=function(e){var t=e.children,r=e.value;return d.createElement(C_.Provider,{value:r},t)},E_=d.createContext(null);E_.displayName="CreateContext";var Xv=globalThis&&globalThis.__assign||function(){return Xv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!Ae||a!=="pessimistic")&&y(typeof ve=="string"?ve:ve.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ve=="string"?ve:ve instanceof Error||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("message")?ve.message:void 0}})}},O),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:j})),ye=Te[0],be=Te[1].isPending,we=d.useCallback(function(ve,De){var Me=De===void 0?{}:De,Qe=Me.onSuccess,Ne=Me.onError,Ae=Me.transform,He=Me.meta;return Promise.resolve(Ae?Ae(ve,{previousData:pe.previousData}):f?f(ve,{previousData:pe.previousData}):ve).then(function(ht){return oR(void 0,void 0,void 0,function(){var ut,V;return iR(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,ye(p,{id:b,data:ht,meta:He??C},{onError:Ne,onSuccess:Qe})];case 1:return K.sent(),[3,3];case 2:return ut=K.sent(),((V=ut.body)===null||V===void 0?void 0:V.errors)!=null?[2,ut.body.errors]:[3,3];case 3:return[2]}})})})},[b,C,p,f,ye,pe.previousData]);return{defaultTitle:Ee,error:M,isFetching:B,isLoading:W,isPending:U,mutationMode:a,record:z,redirect:c,refetch:q,registerMutationMiddleware:k,resource:p,save:we,saving:be,unregisterMutationMiddleware:$}},lte="list",_r=function(e){var t=d.useContext(C_);return e&&e.record||t},zM=function(e){var t=e.value,r=e.children;return t?d.createElement(bc,{value:t},r):r},O_=d.createContext(null);O_.displayName="EditContext";var ute=function(e){var t=e.children,r=e.value;return d.createElement(O_.Provider,{value:r},d.createElement(LM,{value:DM(r)},d.createElement(bc,{value:r&&r.record},t)))},cte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":UM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),bte=yte,xte=typeof window>"u"?Al:window;function wte(e,t){if(e instanceof xte[t])return!0;switch(typeof e>"u"?"undefined":UM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Ub,lR;function Ste(){return lR||(lR=1,Ub=function(t,r,n){var a=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),Ub}var _te=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(o)),a.push(f.join(this._options.rowDelimiter)),n=f}}catch(v){s=!0,u=v}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(S){var x=a._headers.indexOf(S);return x===-1&&(a._headers.push(S),x=a._headers.indexOf(S)),x};i=function(S){var x=[],m=function(F){return x.push(F.map(function(z){return z??""}))},b=function(){return new Array(a._headers.length).fill(null)},h={},_=b(),C=!0,E=!1,w=void 0;try{for(var O=S[Symbol.iterator](),P;!(C=(P=O.next()).done);C=!0){var k=P.value,j=s(k.item);if(_[j]!=null&&(m(_),_=b()),h[j]=h[j]||0,a._options.fillTopRow&&h[j]0&&m(_),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=a._handler.check(v,a._options.mainPathItem,v,r);i(g)}}catch(y){l=!0,c=y}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),uR(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var v=[f.item,p];a.push(v.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),uR(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Pte=Ote,Rte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Tte=Rte,dR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fR=Pte,pR=Tte,$te=VM,kte=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:$te,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":dR(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":dR(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new pR(new fR(e));var p=Object.assign({},e,r),v=new fR(p);return t?new Promise(function(g,y){v.parse(t,function(S,x){if(n)return n(S,x);if(S)return y(S);if(y)return g(x)})}):new pR};const jte=Mr(kte);var Ite=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},Ate=function(e,t,r,n){return jte(e,function(a,o){return Ite(o,n)})},Mte=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},Fte=function(e){return function(t,r,n){return e.getMany(n,{ids:Mte(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},gl=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||g(function(m){if(!Array.isArray(m))return gl([],m,!0);var b=m.indexOf(x);return b>-1?gl(gl([],m.slice(0,b),!0),m.slice(b+1),!0):gl(gl([],m,!0),[x],!1)})},clearSelection:function(){y()}}},[g,y]);return[v,S]},Wb=[];function Bn(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useRef(!1);d.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=d.useCallback(function(i){if(a.current)return n(i)},[a,n]);return[r,o]}function P_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Bn(!1),n=r[0],a=r[1];return d.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function Nte(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Po=globalThis&&globalThis.__assign||function(){return Po=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&h(O)},[v.search]);var P=d.useCallback(function(q){C.current&&(_.current?_.current=F2(_.current,q):(_.current=F2(O,q),setTimeout(function(){_.current&&(a&&!p?x(_.current):a&&p?h(_.current):g({search:"?".concat(ko.stringify(Po(Po({},_.current),{filter:JSON.stringify(_.current.filter),displayedFilters:JSON.stringify(_.current.displayedFilters)})))},{state:{_scrollToTop:q.type===X1}}),_.current=void 0)},0)))},hR(hR([],E,!0),[g],!1)),k=d.useCallback(function(q){return P({type:yM,payload:q})},[P]),j=d.useCallback(function(q){return P({type:X1,payload:q})},[P]),$=d.useCallback(function(q){return P({type:bM,payload:q})},[P]),F=O.filter||mR,z=O.displayedFilters||mR,M=x_(function(q,ie){P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},r),W=d.useCallback(function(q,ie,oe){return ie===void 0&&(ie=void 0),oe===void 0&&(oe=!1),oe?M(q,ie):P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},[P]),B=d.useCallback(function(q){P({type:wM,payload:q})},[P]),U=d.useCallback(function(q,ie){P({type:xM,payload:{filterName:q,defaultValue:ie}})},[P]);return[Po(Po({filterValues:F,requestSignature:E},O),{displayedFilters:z}),{changeParams:P,setPage:j,setPerPage:$,setSort:k,setFilters:W,hideFilter:B,showFilter:U}]},vR=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Dte=function(e){var t=e.search,r=ko.parse(t);return vR(r,"filter"),vR(r,"displayedFilters"),r},Bte=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},zte=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:Bte(r)?Po({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Po(Po({},i),{page:gR(i.page,1),perPage:gR(i.perPage,10)})},gR=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},mR={},Vte={field:"id",order:Fs},yR={},Bm=d.createContext(null);Bm.displayName="ListContext";var WM=d.createContext(void 0),Ute=function(e){return d.useMemo(function(){return Dm(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};WM.displayName="ListFilterContext";var HM=d.createContext(void 0),Wte=function(e){return d.useMemo(function(){return Dm(e,["sort","setSort","resource"])},[e.sort,e.setSort])};HM.displayName="ListSortContext";var R_=d.createContext(void 0);R_.displayName="ListPaginationContext";var Hte=function(e){return d.useMemo(function(){return Dm(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},qM=function(e){var t=e.value,r=e.children;return d.createElement(Bm.Provider,{value:t},d.createElement(WM.Provider,{value:Ute(t)},d.createElement(HM.Provider,{value:Wte(t)},d.createElement(R_.Provider,{value:Hte(t)},r))))},Ns=globalThis&&globalThis.__assign||function(){return Ns=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(j==null||(j==null?void 0:j.length)===0)){E.setPage(1);return}if(F!=null){var pe=Math.ceil(F/C.perPage)||1;!B&&C.page>pe&&E.setPage(pe)}},[B,C.page,C.perPage,j,E,F]);var ie=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),oe=_c(),Ee=b("ra.page.list",{name:oe(S,2)});return{sort:ie,data:j,meta:z,defaultTitle:Ee,displayedFilters:C.displayedFilters,error:M,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:E.hideFilter,isFetching:B,isLoading:W,isPending:U,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:C.page,perPage:C.perPage,refetch:q,resource:S,selectedIds:O,setFilters:E.setFilters,setPage:E.setPage,setPerPage:E.setPerPage,setSort:E.setSort,showFilter:E.showFilter,total:F,hasNextPage:$?$.hasNextPage:F!=null?C.page*C.perPage1}},Gte={field:"id",order:Fs},Qte=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],wf=function(e){return Object.keys(e).filter(function(t){return!Qte.includes(t)}).reduce(function(t,r){var n;return Ns(Ns({},t),(n={},n[r]=e[r],n))},{})},Xte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Zp(Zp([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Zp(Zp([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},Zte=function(e,t){var r=ya("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},Gl=globalThis&&globalThis.__assign||function(){return Gl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(de,oe.field)?oe.order==="ASC"?1:-1:qt(se,oe.field)1,hideFilter:He,isFetching:_,isLoading:w,isPending:k,onSelect:be.select,onToggleItem:be.toggle,onUnselectItems:be.clearSelection,page:W,perPage:U,resource:"",refetch:ere,selectedIds:ye,setFilters:ut,setPage:B,setPerPage:q,setSort:pe,showFilter:ht,total:F==null?void 0:F.total}},rre={},ga=function(){var e=d.useContext(Bm);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},nre=Lm,are=fc,ore=oM,ire=yc,KM=Object.prototype,sre=KM.hasOwnProperty,lre=nre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&ore(t[0],t[1],a)&&(n=1);++r1,setSort:F,showFilter:ye,total:Me}},pre={},ip=e=>e.type==="checkbox",Ql=e=>e instanceof Date,dn=e=>e==null;const YM=e=>typeof e=="object";var Sr=e=>!dn(e)&&!Array.isArray(e)&&YM(e)&&!Ql(e),JM=e=>Sr(e)&&e.target?ip(e.target)?e.target.checked:e.target.value:e,hre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ZM=(e,t)=>e.has(hre(t)),vre=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},$_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!($_&&(e instanceof Blob||e instanceof FileList))&&(r||Sr(e)))if(t=r?[]:{},!r&&!vre(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=xn(e[n]));else return e;return t}var zm=e=>Array.isArray(e)?e.filter(Boolean):[],lr=e=>e===void 0,Le=(e,t,r)=>{if(!t||!Sr(e))return r;const n=zm(t.split(/[,[\].]+?/)).reduce((a,o)=>dn(a)?a:a[o],e);return lr(n)||n===e?lr(e[t])?r:e[t]:n},ta=e=>typeof e=="boolean",k_=e=>/^\w*$/.test(e),e3=e=>zm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ut=(e,t,r)=>{let n=-1;const a=k_(t)?[t]:e3(t),o=a.length,i=o-1;for(;++nke.useContext(t3),r3=e=>{const{children:t,...r}=e;return ke.createElement(t3.Provider,{value:r},t)};var n3=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Ra.all&&(t._proxyFormState[i]=!n||Ra.all),r&&(r[i]=!0),e[i]}});return a},_n=e=>Sr(e)&&!Object.keys(e).length,a3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return _n(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Ra.all))},Td=e=>Array.isArray(e)?e:[e],o3=(e,t,r)=>!e||!t||e===t||Td(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function j_(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Vm(e){const t=xc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=ke.useState(r._formState),u=ke.useRef(!0),l=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ke.useRef(a);return c.current=a,j_({disabled:n,next:f=>u.current&&o3(c.current,f.name,o)&&a3(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),ke.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),n3(i,r,l.current,!1)}var Ja=e=>typeof e=="string",i3=(e,t,r,n,a)=>Ja(e)?(n&&t.watch.add(e),Le(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Le(r,o))):(n&&(t.watchAll=!0),r);function gre(e){const t=xc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=ke.useRef(n);s.current=n,j_({disabled:o,subject:r._subjects.values,next:c=>{o3(s.current,c.name,i)&&l(xn(i3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),u}function mre(e){const t=xc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=ZM(a._names.array,r),s=gre({control:a,name:r,defaultValue:Le(a._formValues,r,Le(a._defaultValues,r,e.defaultValue)),exact:!0}),u=Vm({control:a,name:r,exact:!0}),l=ke.useRef(a.register(r,{...e.rules,value:s,...ta(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const c=a._options.shouldUnregister||o,f=(p,v)=>{const g=Le(a._fields,p);g&&g._f&&(g._f.mount=v)};if(f(r,!0),c){const p=xn(Le(a._options.defaultValues,r));Ut(a._defaultValues,r,p),lr(Le(a._formValues,r))&&Ut(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):f(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Le(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Le(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ta(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:ke.useCallback(c=>l.current.onChange({target:{value:JM(c),name:r},type:Yv.CHANGE}),[r]),onBlur:ke.useCallback(()=>l.current.onBlur({target:{value:Le(a._formValues,r),name:r},type:Yv.BLUR}),[r,a]),ref:ke.useCallback(c=>{const f=Le(a._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})},[a._fields,r])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Le(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Le(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Le(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Le(u.validatingFields,r)},error:{enumerable:!0,get:()=>Le(u.errors,r)}})}}var yre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},xR=e=>({isOnSubmit:!e||e===Ra.onSubmit,isOnBlur:e===Ra.onBlur,isOnChange:e===Ra.onChange,isOnAll:e===Ra.all,isOnTouch:e===Ra.onTouched}),wR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const $d=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Le(e,a);if(o){const{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if($d(s,t))break}else if(Sr(s)&&$d(s,t))break}}};var bre=(e,t,r)=>{const n=Td(Le(e,r));return Ut(n,"root",t[r]),Ut(e,r,n),e},I_=e=>e.type==="file",Ro=e=>typeof e=="function",Jv=e=>{if(!$_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Bh=e=>Ja(e),A_=e=>e.type==="radio",Zv=e=>e instanceof RegExp;const SR={value:!1,isValid:!1},_R={value:!0,isValid:!0};var s3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!lr(e[0].attributes.value)?lr(e[0].value)||e[0].value===""?_R:{value:e[0].value,isValid:!0}:_R:SR}return SR};const CR={isValid:!1,value:null};var l3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,CR):CR;function ER(e,t,r="validate"){if(Bh(e)||Array.isArray(e)&&e.every(Bh)||ta(e)&&!e)return{type:r,message:Bh(e)?e:"",ref:t}}var ml=e=>Sr(e)&&!Zv(e)?e:{value:e,message:""},OR=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:v,name:g,valueAsNumber:y,mount:S,disabled:x}=e._f,m=Le(t,g);if(!S||x)return{};const b=i?i[0]:o,h=j=>{n&&b.reportValidity&&(b.setCustomValidity(ta(j)?"":j||""),b.reportValidity())},_={},C=A_(o),E=ip(o),w=C||E,O=(y||I_(o))&&lr(o.value)&&lr(m)||Jv(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,P=yre.bind(null,g,r,_),k=(j,$,F,z=mo.maxLength,M=mo.minLength)=>{const W=j?$:F;_[g]={type:j?z:M,message:W,ref:o,...P(j?z:M,W)}};if(a?!Array.isArray(m)||!m.length:s&&(!w&&(O||dn(m))||ta(m)&&!m||E&&!s3(i).isValid||C&&!l3(i).isValid)){const{value:j,message:$}=Bh(s)?{value:!!s,message:s}:ml(s);if(j&&(_[g]={type:mo.required,message:$,ref:b,...P(mo.required,$)},!r))return h($),_}if(!O&&(!dn(c)||!dn(f))){let j,$;const F=ml(f),z=ml(c);if(!dn(m)&&!isNaN(m)){const M=o.valueAsNumber||m&&+m;dn(F.value)||(j=M>F.value),dn(z.value)||($=Mnew Date(new Date().toDateString()+" "+q),B=o.type=="time",U=o.type=="week";Ja(F.value)&&m&&(j=B?W(m)>W(F.value):U?m>F.value:M>new Date(F.value)),Ja(z.value)&&m&&($=B?W(m)+j.value,z=!dn($.value)&&m.length<+$.value;if((F||z)&&(k(F,j.message,$.message),!r))return h(_[g].message),_}if(p&&!O&&Ja(m)){const{value:j,message:$}=ml(p);if(Zv(j)&&!m.match(j)&&(_[g]={type:mo.pattern,message:$,ref:o,...P(mo.pattern,$)},!r))return h($),_}if(v){if(Ro(v)){const j=await v(m,t),$=ER(j,b);if($&&(_[g]={...$,...P(mo.validate,$.message)},!r))return h($.message),_}else if(Sr(v)){let j={};for(const $ in v){if(!_n(j)&&!r)break;const F=ER(await v[$](m,t),b,$);F&&(j={...F,...P($,F.message)},h(F.message),r&&(_[g]=j))}if(!_n(j)&&(_[g]={ref:b,...j},!r))return _}}return h(!0),_};function xre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},eg=e=>dn(e)||!YM(e);function ci(e,t){if(eg(e)||eg(t))return e===t;if(Ql(e)&&Ql(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Ql(o)&&Ql(i)||Sr(o)&&Sr(i)||Array.isArray(o)&&Array.isArray(i)?!ci(o,i):o!==i)return!1}}return!0}var u3=e=>e.type==="select-multiple",Sre=e=>A_(e)||ip(e),Kb=e=>Jv(e)&&e.isConnected,c3=e=>{for(const t in e)if(Ro(e[t]))return!0;return!1};function tg(e,t={}){const r=Array.isArray(e);if(Sr(e)||r)for(const n in e)Array.isArray(e[n])||Sr(e[n])&&!c3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},tg(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function d3(e,t,r){const n=Array.isArray(e);if(Sr(e)||n)for(const a in e)Array.isArray(e[a])||Sr(e[a])&&!c3(e[a])?lr(t)||eg(r[a])?r[a]=Array.isArray(e[a])?tg(e[a],[]):{...tg(e[a])}:d3(e[a],dn(t)?{}:t[a],r[a]):r[a]=!ci(e[a],t[a]);return r}var eh=(e,t)=>d3(e,t,tg(t)),f3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>lr(e)?e:t?e===""?NaN:e&&+e:r&&Ja(e)?new Date(e):n?n(e):e;function Gb(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return I_(t)?t.files:A_(t)?l3(e.refs).value:u3(t)?[...t.selectedOptions].map(({value:r})=>r):ip(t)?s3(e.refs).value:f3(lr(t.value)?e.ref.value:t.value,e)}var _re=(e,t,r,n)=>{const a={};for(const o of e){const i=Le(t,o);i&&Ut(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},qc=e=>lr(e)?e:Zv(e)?e.source:Sr(e)?Zv(e.value)?e.value.source:e.value:e;const PR="AsyncFunction";var Cre=e=>(!e||!e.validate)&&!!(Ro(e.validate)&&e.validate.constructor.name===PR||Sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===PR)),Ere=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function RR(e,t,r){const n=Le(e,r);if(n||k_(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Le(t,o),s=Le(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Ore=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Pre=(e,t)=>!zm(Le(e,t)).length&&Cr(e,t);const Rre={mode:Ra.onSubmit,reValidateMode:Ra.onChange,shouldFocusError:!0};function Tre(e={}){let t={...Rre,...e},r={submitCount:0,isDirty:!1,isLoading:Ro(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Sr(t.defaultValues)||Sr(t.values)?xn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:xn(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:qb(),array:qb(),state:qb()},p=xR(t.mode),v=xR(t.reValidateMode),g=t.criteriaMode===Ra.all,y=V=>K=>{clearTimeout(l),l=setTimeout(V,K)},S=async V=>{if(c.isValid||V){const K=t.resolver?_n((await w()).errors):await P(n,!0);K!==r.isValid&&f.state.next({isValid:K})}},x=(V,K)=>{(c.isValidating||c.validatingFields)&&((V||Array.from(s.mount)).forEach(te=>{te&&(K?Ut(r.validatingFields,te,K):Cr(r.validatingFields,te))}),f.state.next({validatingFields:r.validatingFields,isValidating:!_n(r.validatingFields)}))},m=(V,K=[],te,se,de=!0,fe=!0)=>{if(se&&te){if(i.action=!0,fe&&Array.isArray(Le(n,V))){const Oe=te(Le(n,V),se.argA,se.argB);de&&Ut(n,V,Oe)}if(fe&&Array.isArray(Le(r.errors,V))){const Oe=te(Le(r.errors,V),se.argA,se.argB);de&&Ut(r.errors,V,Oe),Pre(r.errors,V)}if(c.touchedFields&&fe&&Array.isArray(Le(r.touchedFields,V))){const Oe=te(Le(r.touchedFields,V),se.argA,se.argB);de&&Ut(r.touchedFields,V,Oe)}c.dirtyFields&&(r.dirtyFields=eh(a,o)),f.state.next({name:V,isDirty:j(V,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ut(o,V,K)},b=(V,K)=>{Ut(r.errors,V,K),f.state.next({errors:r.errors})},h=V=>{r.errors=V,f.state.next({errors:r.errors,isValid:!1})},_=(V,K,te,se)=>{const de=Le(n,V);if(de){const fe=Le(o,V,lr(te)?Le(a,V):te);lr(fe)||se&&se.defaultChecked||K?Ut(o,V,K?fe:Gb(de._f)):z(V,fe),i.mount&&S()}},C=(V,K,te,se,de)=>{let fe=!1,Oe=!1;const ae={name:V},Z=!!(Le(n,V)&&Le(n,V)._f&&Le(n,V)._f.disabled);if(!te||se){c.isDirty&&(Oe=r.isDirty,r.isDirty=ae.isDirty=j(),fe=Oe!==ae.isDirty);const G=Z||ci(Le(a,V),K);Oe=!!(!Z&&Le(r.dirtyFields,V)),G||Z?Cr(r.dirtyFields,V):Ut(r.dirtyFields,V,!0),ae.dirtyFields=r.dirtyFields,fe=fe||c.dirtyFields&&Oe!==!G}if(te){const G=Le(r.touchedFields,V);G||(Ut(r.touchedFields,V,te),ae.touchedFields=r.touchedFields,fe=fe||c.touchedFields&&G!==te)}return fe&&de&&f.state.next(ae),fe?ae:{}},E=(V,K,te,se)=>{const de=Le(r.errors,V),fe=c.isValid&&ta(K)&&r.isValid!==K;if(e.delayError&&te?(u=y(()=>b(V,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Ut(r.errors,V,te):Cr(r.errors,V)),(te?!ci(de,te):de)||!_n(se)||fe){const Oe={...se,...fe&&ta(K)?{isValid:K}:{},errors:r.errors,name:V};r={...r,...Oe},f.state.next(Oe)}},w=async V=>{x(V,!0);const K=await t.resolver(o,t.context,_re(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(V),K},O=async V=>{const{errors:K}=await w(V);if(V)for(const te of V){const se=Le(K,te);se?Ut(r.errors,te,se):Cr(r.errors,te)}else r.errors=K;return K},P=async(V,K,te={valid:!0})=>{for(const se in V){const de=V[se];if(de){const{_f:fe,...Oe}=de;if(fe){const ae=s.array.has(fe.name),Z=de._f&&Cre(de._f);Z&&c.validatingFields&&x([se],!0);const G=await OR(de,o,g,t.shouldUseNativeValidation&&!K,ae);if(Z&&c.validatingFields&&x([se]),G[fe.name]&&(te.valid=!1,K))break;!K&&(Le(G,fe.name)?ae?bre(r.errors,G,fe.name):Ut(r.errors,fe.name,G[fe.name]):Cr(r.errors,fe.name))}!_n(Oe)&&await P(Oe,K,te)}}return te.valid},k=()=>{for(const V of s.unMount){const K=Le(n,V);K&&(K._f.refs?K._f.refs.every(te=>!Kb(te)):!Kb(K._f.ref))&&ye(V)}s.unMount=new Set},j=(V,K)=>(V&&K&&Ut(o,V,K),!ci(ie(),a)),$=(V,K,te)=>i3(V,s,{...i.mount?o:lr(K)?a:Ja(V)?{[V]:K}:K},te,K),F=V=>zm(Le(i.mount?o:a,V,e.shouldUnregister?Le(a,V,[]):[])),z=(V,K,te={})=>{const se=Le(n,V);let de=K;if(se){const fe=se._f;fe&&(!fe.disabled&&Ut(o,V,f3(K,fe)),de=Jv(fe.ref)&&dn(K)?"":K,u3(fe.ref)?[...fe.ref.options].forEach(Oe=>Oe.selected=de.includes(Oe.value)):fe.refs?ip(fe.ref)?fe.refs.length>1?fe.refs.forEach(Oe=>(!Oe.defaultChecked||!Oe.disabled)&&(Oe.checked=Array.isArray(de)?!!de.find(ae=>ae===Oe.value):de===Oe.value)):fe.refs[0]&&(fe.refs[0].checked=!!de):fe.refs.forEach(Oe=>Oe.checked=Oe.value===de):I_(fe.ref)?fe.ref.value="":(fe.ref.value=de,fe.ref.type||f.values.next({name:V,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&C(V,de,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&q(V)},M=(V,K,te)=>{for(const se in K){const de=K[se],fe=`${V}.${se}`,Oe=Le(n,fe);(s.array.has(V)||!eg(de)||Oe&&!Oe._f)&&!Ql(de)?M(fe,de,te):z(fe,de,te)}},W=(V,K,te={})=>{const se=Le(n,V),de=s.array.has(V),fe=xn(K);Ut(o,V,fe),de?(f.array.next({name:V,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&f.state.next({name:V,dirtyFields:eh(a,o),isDirty:j(V,fe)})):se&&!se._f&&!dn(fe)?M(V,fe,te):z(V,fe,te),wR(V,s)&&f.state.next({...r}),f.values.next({name:i.mount?V:void 0,values:{...o}})},B=async V=>{i.mount=!0;const K=V.target;let te=K.name,se=!0;const de=Le(n,te),fe=()=>K.type?Gb(de._f):JM(V),Oe=ae=>{se=Number.isNaN(ae)||ci(ae,Le(o,te,ae))};if(de){let ae,Z;const G=fe(),le=V.type===Yv.BLUR||V.type===Yv.FOCUS_OUT,he=!Ere(de._f)&&!t.resolver&&!Le(r.errors,te)&&!de._f.deps||Ore(le,Le(r.touchedFields,te),r.isSubmitted,v,p),Re=wR(te,s,le);Ut(o,te,G),le?(de._f.onBlur&&de._f.onBlur(V),u&&u(0)):de._f.onChange&&de._f.onChange(V);const Be=C(te,G,le,!1),Ye=!_n(Be)||Re;if(!le&&f.values.next({name:te,type:V.type,values:{...o}}),he)return c.isValid&&(e.mode==="onBlur"?le&&S():S()),Ye&&f.state.next({name:te,...Re?{}:Be});if(!le&&Re&&f.state.next({...r}),t.resolver){const{errors:je}=await w([te]);if(Oe(G),se){const Je=RR(r.errors,n,te),_e=RR(je,n,Je.name||te);ae=_e.error,te=_e.name,Z=_n(je)}}else x([te],!0),ae=(await OR(de,o,g,t.shouldUseNativeValidation))[te],x([te]),Oe(G),se&&(ae?Z=!1:c.isValid&&(Z=await P(n,!0)));se&&(de._f.deps&&q(de._f.deps),E(te,Z,ae,Be))}},U=(V,K)=>{if(Le(r.errors,K)&&V.focus)return V.focus(),1},q=async(V,K={})=>{let te,se;const de=Td(V);if(t.resolver){const fe=await O(lr(V)?V:de);te=_n(fe),se=V?!de.some(Oe=>Le(fe,Oe)):te}else V?(se=(await Promise.all(de.map(async fe=>{const Oe=Le(n,fe);return await P(Oe&&Oe._f?{[fe]:Oe}:Oe)}))).every(Boolean),!(!se&&!r.isValid)&&S()):se=te=await P(n);return f.state.next({...!Ja(V)||c.isValid&&te!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:te}:{},errors:r.errors}),K.shouldFocus&&!se&&$d(n,U,V?de:s.mount),se},ie=V=>{const K={...i.mount?o:a};return lr(V)?K:Ja(V)?Le(K,V):V.map(te=>Le(K,te))},oe=(V,K)=>({invalid:!!Le((K||r).errors,V),isDirty:!!Le((K||r).dirtyFields,V),error:Le((K||r).errors,V),isValidating:!!Le(r.validatingFields,V),isTouched:!!Le((K||r).touchedFields,V)}),Ee=V=>{V&&Td(V).forEach(K=>Cr(r.errors,K)),f.state.next({errors:V?r.errors:{}})},pe=(V,K,te)=>{const se=(Le(n,V,{_f:{}})._f||{}).ref,de=Le(r.errors,V)||{},{ref:fe,message:Oe,type:ae,...Z}=de;Ut(r.errors,V,{...Z,...K,ref:se}),f.state.next({name:V,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&se&&se.focus&&se.focus()},Te=(V,K)=>Ro(V)?f.values.subscribe({next:te=>V($(void 0,K),te)}):$(V,K,!0),ye=(V,K={})=>{for(const te of V?Td(V):s.mount)s.mount.delete(te),s.array.delete(te),K.keepValue||(Cr(n,te),Cr(o,te)),!K.keepError&&Cr(r.errors,te),!K.keepDirty&&Cr(r.dirtyFields,te),!K.keepTouched&&Cr(r.touchedFields,te),!K.keepIsValidating&&Cr(r.validatingFields,te),!t.shouldUnregister&&!K.keepDefaultValue&&Cr(a,te);f.values.next({values:{...o}}),f.state.next({...r,...K.keepDirty?{isDirty:j()}:{}}),!K.keepIsValid&&S()},be=({disabled:V,name:K,field:te,fields:se,value:de})=>{if(ta(V)&&i.mount||V){const fe=V?void 0:lr(de)?Gb(te?te._f:Le(se,K)._f):de;Ut(o,K,fe),C(K,fe,!1,!1,!0)}},we=(V,K={})=>{let te=Le(n,V);const se=ta(K.disabled)||ta(e.disabled);return Ut(n,V,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:V}},name:V,mount:!0,...K}}),s.mount.add(V),te?be({field:te,disabled:ta(K.disabled)?K.disabled:e.disabled,name:V,value:K.value}):_(V,!0,K.value),{...se?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:qc(K.min),max:qc(K.max),minLength:qc(K.minLength),maxLength:qc(K.maxLength),pattern:qc(K.pattern)}:{},name:V,onChange:B,onBlur:B,ref:de=>{if(de){we(V,K),te=Le(n,V);const fe=lr(de.value)&&de.querySelectorAll&&de.querySelectorAll("input,select,textarea")[0]||de,Oe=Sre(fe),ae=te._f.refs||[];if(Oe?ae.find(Z=>Z===fe):fe===te._f.ref)return;Ut(n,V,{_f:{...te._f,...Oe?{refs:[...ae.filter(Kb),fe,...Array.isArray(Le(a,V))?[{}]:[]],ref:{type:fe.type,name:V}}:{ref:fe}}}),_(V,!1,void 0,fe)}else te=Le(n,V,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(ZM(s.array,V)&&i.action)&&s.unMount.add(V)}}},ve=()=>t.shouldFocusError&&$d(n,U,s.mount),De=V=>{ta(V)&&(f.state.next({disabled:V}),$d(n,(K,te)=>{const se=Le(n,te);se&&(K.disabled=se._f.disabled||V,Array.isArray(se._f.refs)&&se._f.refs.forEach(de=>{de.disabled=se._f.disabled||V}))},0,!1))},Me=(V,K)=>async te=>{let se;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let de=xn(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:fe,values:Oe}=await w();r.errors=fe,de=Oe}else await P(n);if(Cr(r.errors,"root"),_n(r.errors)){f.state.next({errors:{}});try{await V(de,te)}catch(fe){se=fe}}else K&&await K({...r.errors},te),ve(),setTimeout(ve);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_n(r.errors)&&!se,submitCount:r.submitCount+1,errors:r.errors}),se)throw se},Qe=(V,K={})=>{Le(n,V)&&(lr(K.defaultValue)?W(V,xn(Le(a,V))):(W(V,K.defaultValue),Ut(a,V,xn(K.defaultValue))),K.keepTouched||Cr(r.touchedFields,V),K.keepDirty||(Cr(r.dirtyFields,V),r.isDirty=K.defaultValue?j(V,xn(Le(a,V))):j()),K.keepError||(Cr(r.errors,V),c.isValid&&S()),f.state.next({...r}))},Ne=(V,K={})=>{const te=V?xn(V):a,se=xn(te),de=_n(V),fe=de?a:se;if(K.keepDefaultValues||(a=te),!K.keepValues){if(K.keepDirtyValues)for(const Oe of s.mount)Le(r.dirtyFields,Oe)?Ut(fe,Oe,Le(o,Oe)):W(Oe,Le(fe,Oe));else{if($_&&lr(V))for(const Oe of s.mount){const ae=Le(n,Oe);if(ae&&ae._f){const Z=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Jv(Z)){const G=Z.closest("form");if(G){G.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?xn(a):{}:xn(fe),f.array.next({values:{...fe}}),f.values.next({values:{...fe}})}s={mount:K.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:de?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!ci(V,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:de?{}:K.keepDirtyValues?K.keepDefaultValues&&o?eh(a,o):r.dirtyFields:K.keepDefaultValues&&V?eh(a,V):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ae=(V,K)=>Ne(Ro(V)?V(o):V,K);return{control:{register:we,unregister:ye,getFieldState:oe,handleSubmit:Me,setError:pe,_executeSchema:w,_getWatch:$,_getDirty:j,_updateValid:S,_removeUnmounted:k,_updateFieldArray:m,_updateDisabledField:be,_getFieldArray:F,_reset:Ne,_resetDefaultValues:()=>Ro(t.defaultValues)&&t.defaultValues().then(V=>{Ae(V,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:De,_subjects:f,_proxyFormState:c,_setErrors:h,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(V){i=V},get _defaultValues(){return a},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:q,register:we,handleSubmit:Me,watch:Te,setValue:W,getValues:ie,reset:Ae,resetField:Qe,clearErrors:Ee,unregister:ye,setError:pe,setFocus:(V,K={})=>{const te=Le(n,V),se=te&&te._f;if(se){const de=se.refs?se.refs[0]:se.ref;de.focus&&(de.focus(),K.shouldSelect&&de.select())}},getFieldState:oe}}function p3(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:Ro(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ro(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Tre(e),formState:n});const o=t.current.control;return o._options=e,j_({subject:o._subjects.state,next:i=>{a3(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ke.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),ke.useEffect(()=>{e.values&&!ci(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=n3(n,o),t.current}var h3=d.createContext(void 0),rx=globalThis&&globalThis.__assign||function(){return rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=d.useState(!1),l=u[0],c=u[1],f=!e||!s||o,p=J8(function(v){var g=v.currentLocation,y=v.nextLocation;if(f)return!1;var S=t||g.pathname,x=y.pathname.startsWith(S),m=y.pathname.startsWith("".concat(S,"/show")),b=x&&!m;return!b});d.useEffect(function(){if(p.state==="blocked"){if(f){p.proceed();return}c(!0)}},[p.state]),d.useEffect(function(){if(l){var v=window.confirm(n("ra.message.unsaved_changes"));v?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),d.useEffect(function(){var v=function(g){g.preventDefault(),g.returnValue=!0};if(!f)return window.addEventListener("beforeunload",v),function(){window.removeEventListener("beforeunload",v)}},[f])},Vre=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return zre(r,n,a),null};function Ure(e,t){var r=iM({},Wre(e,t),t);return r}function Wre(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var m3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},Hre=function(e,t){t===void 0&&(t=!0);var r=Vm(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=ur();d.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},qre=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},ax=globalThis&&globalThis.__assign||function(){return ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Jre(e){return e?e.hasOwnProperty("message"):!1}var Qi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Xi=function(e){return RA(e,function(){for(var t=[],r=0;re?Qi(t,{max:e},r,n):void 0}});Xi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gi(r)&&re?Qi(t,{max:e},r,n):void 0}});Xi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gi(t)&&isNaN(Number(t))?Qi(e,void 0,t,r):void 0}});var rne=RA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gi(r)&&typeof r=="string"&&!e.test(r)?Qi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Xi(function(e){return e===void 0&&(e="ra.validation.email"),rne(Yre,e)});var nne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xi(function(e,t){return t===void 0&&(t=nne),function(r,n){return!Gi(r)&&e.indexOf(r)===-1?Qi(t,{list:e},r,n):void 0}});var ane=d.createContext(null),one=function(){var e=d.useContext(h3);return e},ine=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=H3(o),s=_r(t),u=xc(),l=u.getValues,c=u.resetField,f=u.formState,p=u.reset,v=qt(s,i),g=qt(l(),i),y=f.dirtyFields,S=Object.keys(y).includes(i);d.useEffect(function(){if(!(a==null||g!=null||v!=null||S)){var x=i.split(".").some(function(h){return sne.test(h)});if(x){var m=i.split(".").slice(0,-1).join("."),b=qt(l(),m);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},sne=/^\d+$/,lne=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,s=e.translateChoice,u=s===void 0?!0:s,l=et(),c=d.useCallback(function(v){if(d.isValidElement(r))return d.createElement(bc,{value:v},r);var g=typeof r=="function"?r(v):qt(v,r);return d.isValidElement(g)?g:u?l(String(g),{_:g}):String(g)},[r,l,u]),f=d.useCallback(function(v){return qt(v,a)},[a]),p=d.useCallback(function(v){return qt(v,i)},[i]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},une=function(){var e=d.useContext(ane);return e},cne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const dne=cne;var fs=globalThis&&globalThis.__assign||function(){return fs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var S3=function(){return d.useContext(x3)},sx=globalThis&&globalThis.__assign||function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Nne=function(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Lne=function(e,t){var r=S3(),n=r.register,a=r.unregister;d.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},Dne=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return _3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},_3=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},dd=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(d.Children.forEach(e,function(a){if(d.isValidElement(a)){if(a.type===d.Fragment){var o=dd(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},C3=d.createContext(!1),Bne=C3.Provider,zne=function(){return d.useContext(C3)},Vne=function(e){Pne();var t=ll(),r=Mne(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.requireAuth,p=e.ready,v=d.useState(f),g=v[0],y=v[1],S=d.useState(f),x=S[0],m=S[1],b=Y3();if(d.useEffect(function(){f&&b(void 0,!1).then(function(){y(!1)}).catch(function(){}).finally(function(){m(!1)})},[b,f]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(p,null)}return o==="loading"||x?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):g?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement(Lae,null)})):d.createElement(ws,null,a,d.createElement(zr,{path:"/*",element:d.createElement(Bne,{value:!!l},d.createElement(s,null,d.createElement(ws,null,n,d.Children.map(i,function(h){return d.createElement(zr,{key:h.props.name,path:"".concat(h.props.name,"/*"),element:h})}),d.createElement(zr,{path:"/",element:l?d.createElement($ae,{authParams:Une,component:l}):i.length>0?d.createElement(tz,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(u,null)}))))}))},Une={params:{route:"dashboard"}},E3=d.createContext("React Admin"),Wne=E3.Provider,O3=function(){return d.useContext(E3)},Hne=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},qne=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return y3(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},Kne=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?AR:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,p=e.error,v=p===void 0?qne:p,g=e.layout,y=g===void 0?Hne:g,S=e.loading,x=S===void 0?AR:S,m=e.loginPage,b=m===void 0?!1:m,h=e.ready,_=h===void 0?lae:h,C=e.requireAuth,E=C===void 0?!1:C,w=e.title,O=w===void 0?"React Admin":w;d.useEffect(function(){if(!(f||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var k=new Image;k.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var P=function(k,j){return n(j)};return d.createElement(Wne,{value:O},d.createElement(w3,{onError:P,fallbackRender:function(k){var j=k.error,$=k.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(v,{error:j,errorInfo:r,resetErrorBoundary:$}))}},d.createElement(ws,null,b!==!1&&b!==!0?d.createElement(zr,{path:"/login",element:IR(b)}):null,o!==!1&&o!==!0?d.createElement(zr,{path:"/auth-callback",element:IR(o)}):null,d.createElement(zr,{path:"/*",element:d.createElement(Vne,{catchAll:s,dashboard:l,layout:y,loading:x,requireAuth:E,ready:_},u)}))))},IR=function(e){return d.isValidElement(e)?e:d.createElement(e)},AR=function(){return null},P3=function(e){return null};P3.raName="CustomRoutes";var R3=d.createContext(void 0),ul=function(e){var t=e.children,r=e.value;return r?d.createElement(R3.Provider,{value:r},t):t},Gne=function(e){var t=e.value,r=e.children;return t?d.createElement(ul,{value:t},r):r},T3={exports:{}},Ft={};/** * @license React * react-is.production.min.js * @@ -85,27 +85,27 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var N_=Symbol.for("react.element"),L_=Symbol.for("react.portal"),Um=Symbol.for("react.fragment"),Wm=Symbol.for("react.strict_mode"),Hm=Symbol.for("react.profiler"),qm=Symbol.for("react.provider"),Km=Symbol.for("react.context"),Gne=Symbol.for("react.server_context"),Gm=Symbol.for("react.forward_ref"),Qm=Symbol.for("react.suspense"),Xm=Symbol.for("react.suspense_list"),Ym=Symbol.for("react.memo"),Jm=Symbol.for("react.lazy"),Qne=Symbol.for("react.offscreen"),$3;$3=Symbol.for("react.module.reference");function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N_:switch(e=e.type,e){case Um:case Hm:case Wm:case Qm:case Xm:return e;default:switch(e=e&&e.$$typeof,e){case Gne:case Km:case Gm:case Jm:case Ym:case qm:return e;default:return t}}case L_:return t}}}Ft.ContextConsumer=Km;Ft.ContextProvider=qm;Ft.Element=N_;Ft.ForwardRef=Gm;Ft.Fragment=Um;Ft.Lazy=Jm;Ft.Memo=Ym;Ft.Portal=L_;Ft.Profiler=Hm;Ft.StrictMode=Wm;Ft.Suspense=Qm;Ft.SuspenseList=Xm;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return ma(e)===Km};Ft.isContextProvider=function(e){return ma(e)===qm};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N_};Ft.isForwardRef=function(e){return ma(e)===Gm};Ft.isFragment=function(e){return ma(e)===Um};Ft.isLazy=function(e){return ma(e)===Jm};Ft.isMemo=function(e){return ma(e)===Ym};Ft.isPortal=function(e){return ma(e)===L_};Ft.isProfiler=function(e){return ma(e)===Hm};Ft.isStrictMode=function(e){return ma(e)===Wm};Ft.isSuspense=function(e){return ma(e)===Qm};Ft.isSuspenseList=function(e){return ma(e)===Xm};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Um||e===Hm||e===Wm||e===Qm||e===Xm||e===Qne||typeof e=="object"&&e!==null&&(e.$$typeof===Jm||e.$$typeof===Ym||e.$$typeof===qm||e.$$typeof===Km||e.$$typeof===Gm||e.$$typeof===$3||e.getModuleId!==void 0)};Ft.typeOf=ma;T3.exports=Ft;var lx=T3.exports,Yl=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(ul,{value:a},d.createElement(ws,null,t&&d.createElement(zr,{path:"create/*",element:th(t)}),o&&d.createElement(zr,{path:":id/show/*",element:th(o)}),r&&d.createElement(zr,{path:":id/*",element:th(r)}),n&&d.createElement(zr,{path:"/*",element:d.createElement(EJ,{storeKey:"".concat(a,".list.scrollPosition")},th(n))}),e.children))},th=function(e){if(d.isValidElement(e))return e;if(lx.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};Yl.raName="Resource";Yl.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var D_=d.createContext(void 0),Xne={getSource:function(e){return e},getLabel:function(e){return e}},k3=D_.Provider,Yne=function(){var e=d.useContext(D_);return e||Xne},Jne=function(){return d.useContext(D_)},sp=function(){return S3().definitions},$t={};/*! + */var N_=Symbol.for("react.element"),L_=Symbol.for("react.portal"),Um=Symbol.for("react.fragment"),Wm=Symbol.for("react.strict_mode"),Hm=Symbol.for("react.profiler"),qm=Symbol.for("react.provider"),Km=Symbol.for("react.context"),Qne=Symbol.for("react.server_context"),Gm=Symbol.for("react.forward_ref"),Qm=Symbol.for("react.suspense"),Xm=Symbol.for("react.suspense_list"),Ym=Symbol.for("react.memo"),Jm=Symbol.for("react.lazy"),Xne=Symbol.for("react.offscreen"),$3;$3=Symbol.for("react.module.reference");function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N_:switch(e=e.type,e){case Um:case Hm:case Wm:case Qm:case Xm:return e;default:switch(e=e&&e.$$typeof,e){case Qne:case Km:case Gm:case Jm:case Ym:case qm:return e;default:return t}}case L_:return t}}}Ft.ContextConsumer=Km;Ft.ContextProvider=qm;Ft.Element=N_;Ft.ForwardRef=Gm;Ft.Fragment=Um;Ft.Lazy=Jm;Ft.Memo=Ym;Ft.Portal=L_;Ft.Profiler=Hm;Ft.StrictMode=Wm;Ft.Suspense=Qm;Ft.SuspenseList=Xm;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return ma(e)===Km};Ft.isContextProvider=function(e){return ma(e)===qm};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N_};Ft.isForwardRef=function(e){return ma(e)===Gm};Ft.isFragment=function(e){return ma(e)===Um};Ft.isLazy=function(e){return ma(e)===Jm};Ft.isMemo=function(e){return ma(e)===Ym};Ft.isPortal=function(e){return ma(e)===L_};Ft.isProfiler=function(e){return ma(e)===Hm};Ft.isStrictMode=function(e){return ma(e)===Wm};Ft.isSuspense=function(e){return ma(e)===Qm};Ft.isSuspenseList=function(e){return ma(e)===Xm};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Um||e===Hm||e===Wm||e===Qm||e===Xm||e===Xne||typeof e=="object"&&e!==null&&(e.$$typeof===Jm||e.$$typeof===Ym||e.$$typeof===qm||e.$$typeof===Km||e.$$typeof===Gm||e.$$typeof===$3||e.getModuleId!==void 0)};Ft.typeOf=ma;T3.exports=Ft;var lx=T3.exports,Yl=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(ul,{value:a},d.createElement(ws,null,t&&d.createElement(zr,{path:"create/*",element:th(t)}),o&&d.createElement(zr,{path:":id/show/*",element:th(o)}),r&&d.createElement(zr,{path:":id/*",element:th(r)}),n&&d.createElement(zr,{path:"/*",element:d.createElement(OJ,{storeKey:"".concat(a,".list.scrollPosition")},th(n))}),e.children))},th=function(e){if(d.isValidElement(e))return e;if(lx.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};Yl.raName="Resource";Yl.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var D_=d.createContext(void 0),Yne={getSource:function(e){return e},getLabel:function(e){return e}},k3=D_.Provider,Jne=function(){var e=d.useContext(D_);return e||Yne},Zne=function(){return d.useContext(D_)},sp=function(){return S3().definitions},$t={};/*! * inflection * Copyright(c) 2011 Ben Lin * MIT Licensed * * @fileoverview * A port of inflection-js to node.js module. - */Object.defineProperty($t,"__esModule",{value:!0});var j3=$t.transform=$t.ordinalize=$t.foreignKey=$t.classify=$t.tableize=$t.demodulize=$t.titleize=$t.dasherize=$t.capitalize=ey=$t.humanize=$t.underscore=$t.camelize=N3=$t.inflect=V_=$t.singularize=F3=$t.pluralize=void 0;const ag=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],xe={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},I3=[[xe.plural.men],[xe.plural.people],[xe.plural.children],[xe.plural.tia],[xe.plural.analyses],[xe.plural.databases],[xe.plural.drives],[xe.plural.hives],[xe.plural.curves],[xe.plural.lrves],[xe.plural.foves],[xe.plural.aeiouyies],[xe.plural.series],[xe.plural.movies],[xe.plural.xes],[xe.plural.mice],[xe.plural.buses],[xe.plural.oes],[xe.plural.shoes],[xe.plural.crises],[xe.plural.octopuses],[xe.plural.aliases],[xe.plural.summonses],[xe.plural.oxen],[xe.plural.matrices],[xe.plural.feet],[xe.plural.teeth],[xe.plural.geese],[xe.plural.quizzes],[xe.plural.whereases],[xe.plural.criteria],[xe.plural.genera],[xe.singular.man,"$1en"],[xe.singular.person,"$1ople"],[xe.singular.child,"$1ren"],[xe.singular.drive,"$1s"],[xe.singular.ox,"$1en"],[xe.singular.axis,"$1es"],[xe.singular.octopus,"$1uses"],[xe.singular.alias,"$1es"],[xe.singular.summons,"$1es"],[xe.singular.bus,"$1ses"],[xe.singular.buffalo,"$1oes"],[xe.singular.tium,"$1a"],[xe.singular.sis,"ses"],[xe.singular.ffe,"$1$2ves"],[xe.singular.hive,"$1ves"],[xe.singular.aeiouyy,"$1ies"],[xe.singular.matrix,"$1ices"],[xe.singular.vertex,"$1ices"],[xe.singular.x,"$1es"],[xe.singular.mouse,"$1ice"],[xe.singular.foot,"feet"],[xe.singular.tooth,"teeth"],[xe.singular.goose,"geese"],[xe.singular.quiz,"$1zes"],[xe.singular.whereas,"$1es"],[xe.singular.criterion,"$1a"],[xe.singular.genus,"genera"],[xe.singular.s,"s"],[xe.singular.common,"s"]],A3=[[xe.singular.man],[xe.singular.person],[xe.singular.child],[xe.singular.drive],[xe.singular.ox],[xe.singular.axis],[xe.singular.octopus],[xe.singular.alias],[xe.singular.summons],[xe.singular.bus],[xe.singular.buffalo],[xe.singular.tium],[xe.singular.sis],[xe.singular.ffe],[xe.singular.hive],[xe.singular.aeiouyy],[xe.singular.x],[xe.singular.matrix],[xe.singular.mouse],[xe.singular.foot],[xe.singular.tooth],[xe.singular.goose],[xe.singular.quiz],[xe.singular.whereas],[xe.singular.criterion],[xe.singular.genus],[xe.plural.men,"$1an"],[xe.plural.people,"$1rson"],[xe.plural.children,"$1"],[xe.plural.databases,"$1"],[xe.plural.drives,"$1"],[xe.plural.genera,"genus"],[xe.plural.criteria,"$1on"],[xe.plural.tia,"$1um"],[xe.plural.analyses,"$1$2sis"],[xe.plural.hives,"$1ve"],[xe.plural.curves,"$1"],[xe.plural.lrves,"$1f"],[xe.plural.aves,"$1ve"],[xe.plural.foves,"$1fe"],[xe.plural.movies,"$1ovie"],[xe.plural.aeiouyies,"$1y"],[xe.plural.series,"$1eries"],[xe.plural.xes,"$1"],[xe.plural.mice,"$1ouse"],[xe.plural.buses,"$1"],[xe.plural.oes,"$1"],[xe.plural.shoes,"$1"],[xe.plural.crises,"$1is"],[xe.plural.octopuses,"$1us"],[xe.plural.aliases,"$1"],[xe.plural.summonses,"$1"],[xe.plural.oxen,"$1"],[xe.plural.matrices,"$1ix"],[xe.plural.vertices,"$1ex"],[xe.plural.feet,"foot"],[xe.plural.teeth,"tooth"],[xe.plural.geese,"goose"],[xe.plural.quizzes,"$1"],[xe.plural.whereases,"$1"],[xe.plural.ss,"ss"],[xe.plural.s,""]],Zne=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],eae=new RegExp("(_ids|_id)$","g"),M3=new RegExp("_","g"),tae=new RegExp("[ _]","g"),rae=new RegExp("([A-Z])","g"),nae=new RegExp("^_");function og(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const a of t)if(e.match(a[0]))return a[1]!==void 0?e.replace(a[0],a[1]):e;return e}function B_(e,t){return og(e,I3,ag,t)}var F3=$t.pluralize=B_;function z_(e,t){return og(e,A3,ag,t)}var V_=$t.singularize=z_;function aae(e,t,r,n){return isNaN(t)?e:t===1?og(e,A3,ag,r):og(e,I3,ag,n)}var N3=$t.inflect=aae;function U_(e,t){const r=e.split("/"),n=r.length;let a,o,i,s;for(let u=0;u1?F3(r):V_(r))});return o}},Nt=function(e){var t=d.useContext(R3);return e&&e.resource||t},Wo=function(e){var t=Nt(e),r=sp(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return T_({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},H_=function(e){var t=Wo({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?qt(r,t):d.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},H3=function(e){var t=Yne();return t.getSource(e)},q3=function(){var e=et(),t=Nt(),r=Jne();return d.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,lae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},K3=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=q3();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,o({label:r,resource:n,source:t}),a&&d.createElement("span",{"aria-hidden":"true"}," *"))};K3.displayName="FieldTitle";const no=d.memo(K3);var MR=globalThis&&globalThis.__assign||function(){return MR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return[""];var i=uae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=j3(u.replace(/\./g," "),["underscore","humanize"]);return n?[FR(n,s),{_:l}]:r?[r,{_:l}]:[FR(a||"undefined",s),{_:l}]},FR=function(e,t){return"resources.".concat(e,".fields.").concat(t)},uae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){cae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},cae=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function dae(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var fae=typeof window<"u"?d.useLayoutEffect:d.useEffect,Mt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return fae(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,o,t,n,s]);var l=Mt(function(c,f){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},pae=function(e){var t=jm().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},hae=function(e){var t=jm().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},vae=function(){var e=jm().reset;return e},gae=function(){var e=zo(),t=Fa(),r=vae(),n=lo(),a=d.useRef(n),o=rn(),i=d.useRef(o),s=qi(),u=qa("".concat(s,"/").concat(ym.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=d.useCallback(function(c,f,p){return c===void 0&&(c={}),f===void 0&&(f=u),p===void 0&&(p=!0),e?e.logout(c).then(function(v){if(v===!1||f===!1){r(),t.clear();return}var g=v||f;if(g!=null&&g.startsWith("http"))return r(),t.clear(),window.location.href=g,g;var y=g.split("?"),S={pathname:y[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),y[1]&&(S.search=y[1]),a.current(S,x),r(),t.clear(),v}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l};const Cc=gae;var ps=globalThis&&globalThis.__assign||function(){return ps=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},LR=function(){},hs=globalThis&&globalThis.__assign||function(){return hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Ec(t);var i=Q3(t).permissions;if(a)return d.createElement(a,jd({permissions:i},o));if(n)return n(jd({permissions:i},o));if(r)return r(jd({permissions:i},o))};const Tae=Rae;var $ae=function(){var e=zo(),t=rn(),r=t.state,n=lo(),a=qi(),o=KA().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=qa("".concat(a,"/").concat(ym.afterLoginUrl)),l=d.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var v=f||i+s||u;n(v)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l};const X3=$ae;var kae="AUTH_LOGIN",jae="AUTH_CHECK",Iae="AUTH_ERROR",Aae="AUTH_LOGOUT",Mae="AUTH_GET_PERMISSIONS";const Fae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Id=globalThis&&globalThis.__assign||function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return ya(r&&e?"".concat(r,".").concat(e):r??e,t)},K_=function(){var e=d.useContext(b3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},Xae=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Br(Oc,--jn):0,Qu--,br===10&&(Qu=1,ay--),br}function Wn(){return br=jn2||Cf(br)>3?"":" "}function Eoe(e,t){for(;--t&&Wn()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return lp(e,zh()+(t<6&&to()==32&&Wn()==32))}function dx(e){for(;Wn();)switch(br){case e:return jn;case 34:case 39:e!==34&&e!==39&&dx(br);break;case 40:e===41&&dx(e);break;case 92:Wn();break}return jn}function Ooe(e,t){for(;Wn()&&e+br!==47+10;)if(e+br===42+42&&to()===47)break;return"/*"+lp(t,jn-1)+"*"+ny(e===47?e:Wn())}function Poe(e){for(;!Cf(to());)Wn();return lp(e,jn)}function Roe(e){return sF(Uh("",null,null,null,[""],e=iF(e),0,[0],e))}function Uh(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,f=i,p=0,v=0,g=0,y=1,S=1,x=1,m=0,b="",h=a,_=o,C=n,E=b;S;)switch(g=m,m=Wn()){case 40:if(g!=108&&Br(E,f-1)==58){cx(E+=Tt(Vh(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Vh(m);break;case 9:case 10:case 13:case 32:E+=Coe(g);break;case 92:E+=Eoe(zh()-1,7);continue;case 47:switch(to()){case 42:case 47:rh(Toe(Ooe(Wn(),zh()),t,r),u);break;default:E+="/"}break;case 123*y:s[l++]=Ka(E)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+c:x==-1&&(E=Tt(E,/\f/g,"")),v>0&&Ka(E)-f&&rh(v>32?UR(E+";",n,r,f-1):UR(Tt(E," ","")+";",n,r,f-2),u);break;case 59:E+=";";default:if(rh(C=VR(E,t,r,l,c,a,s,b,h=[],_=[],f),o),m===123)if(c===0)Uh(E,t,C,C,h,o,f,s,_);else switch(p===99&&Br(E,3)===110?100:p){case 100:case 108:case 109:case 115:Uh(e,C,C,n&&rh(VR(e,C,C,0,0,a,s,b,a,h=[],f),_),a,_,f,s,n?h:_);break;default:Uh(E,C,C,C,[""],_,0,s,_)}}l=c=v=0,y=x=1,b=E="",f=i;break;case 58:f=1+Ka(E),v=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&_oe()==125)continue}switch(E+=ny(m),m*y){case 38:x=c>0?1:(E+="\f",-1);break;case 44:s[l++]=(Ka(E)-1)*x,x=1;break;case 64:to()===45&&(E+=Vh(Wn())),p=to(),c=f=Ka(b=E+=Poe(zh())),m++;break;case 45:g===45&&Ka(E)==2&&(y=0)}}return o}function VR(e,t,r,n,a,o,i,s,u,l,c){for(var f=a-1,p=a===0?o:[""],v=X_(p),g=0,y=0,S=0;g0?p[x]+" "+m:Tt(m,/&\f/g,p[x])))&&(u[S++]=b);return oy(e,t,r,a===0?G_:s,u,l,c)}function Toe(e,t,r){return oy(e,t,r,rF,ny(Soe()),_f(e,2,-2),0)}function UR(e,t,r,n){return oy(e,t,r,Q_,_f(e,0,n),_f(e,n+1,-1),n)}function cu(e,t){for(var r="",n=X_(e),a=0;a6)switch(Br(e,t+1)){case 109:if(Br(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+ig+(Br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cx(e,"stretch")?lF(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Br(e,t+1)!==115)break;case 6444:switch(Br(e,Ka(e)-3-(~cx(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Br(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Br(e,t+11)){case 114:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Yr+e+e}return e}var Loe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Q_:t.return=lF(t.value,t.length);break;case nF:return cu([Gc(t,{value:Tt(t.value,"@","@"+Rt)})],a);case G_:if(t.length)return woe(t.props,function(o){switch(xoe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Gc(t,{props:[Tt(o,/:(read-\w+)/,":"+ig+"$1")]})],a);case"::placeholder":return cu([Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+ig+"$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Doe=[Loe],uF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||Doe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),x=1;x1?F3(r):V_(r))});return o}},Nt=function(e){var t=d.useContext(R3);return e&&e.resource||t},Wo=function(e){var t=Nt(e),r=sp(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return T_({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},H_=function(e){var t=Wo({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?qt(r,t):d.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},H3=function(e){var t=Jne();return t.getSource(e)},q3=function(){var e=et(),t=Nt(),r=Zne();return d.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,uae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},K3=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=q3();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,o({label:r,resource:n,source:t}),a&&d.createElement("span",{"aria-hidden":"true"}," *"))};K3.displayName="FieldTitle";const no=d.memo(K3);var MR=globalThis&&globalThis.__assign||function(){return MR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return[""];var i=cae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=j3(u.replace(/\./g," "),["underscore","humanize"]);return n?[FR(n,s),{_:l}]:r?[r,{_:l}]:[FR(a||"undefined",s),{_:l}]},FR=function(e,t){return"resources.".concat(e,".fields.").concat(t)},cae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){dae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},dae=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function fae(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var pae=typeof window<"u"?d.useLayoutEffect:d.useEffect,Mt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return pae(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,o,t,n,s]);var l=Mt(function(c,f){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},hae=function(e){var t=jm().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},vae=function(e){var t=jm().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},gae=function(){var e=jm().reset;return e},mae=function(){var e=zo(),t=Fa(),r=gae(),n=lo(),a=d.useRef(n),o=rn(),i=d.useRef(o),s=qi(),u=qa("".concat(s,"/").concat(ym.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=d.useCallback(function(c,f,p){return c===void 0&&(c={}),f===void 0&&(f=u),p===void 0&&(p=!0),e?e.logout(c).then(function(v){if(v===!1||f===!1){r(),t.clear();return}var g=v||f;if(g!=null&&g.startsWith("http"))return r(),t.clear(),window.location.href=g,g;var y=g.split("?"),S={pathname:y[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),y[1]&&(S.search=y[1]),a.current(S,x),r(),t.clear(),v}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l};const Cc=mae;var ps=globalThis&&globalThis.__assign||function(){return ps=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},LR=function(){},hs=globalThis&&globalThis.__assign||function(){return hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Ec(t);var i=Q3(t).permissions;if(a)return d.createElement(a,jd({permissions:i},o));if(n)return n(jd({permissions:i},o));if(r)return r(jd({permissions:i},o))};const $ae=Tae;var kae=function(){var e=zo(),t=rn(),r=t.state,n=lo(),a=qi(),o=KA().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=qa("".concat(a,"/").concat(ym.afterLoginUrl)),l=d.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var v=f||i+s||u;n(v)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l};const X3=kae;var jae="AUTH_LOGIN",Iae="AUTH_CHECK",Aae="AUTH_ERROR",Mae="AUTH_LOGOUT",Fae="AUTH_GET_PERMISSIONS";const Nae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Id=globalThis&&globalThis.__assign||function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return ya(r&&e?"".concat(r,".").concat(e):r??e,t)},K_=function(){var e=d.useContext(b3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},Yae=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Br(Oc,--jn):0,Qu--,br===10&&(Qu=1,ay--),br}function Wn(){return br=jn2||Cf(br)>3?"":" "}function Ooe(e,t){for(;--t&&Wn()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return lp(e,zh()+(t<6&&to()==32&&Wn()==32))}function dx(e){for(;Wn();)switch(br){case e:return jn;case 34:case 39:e!==34&&e!==39&&dx(br);break;case 40:e===41&&dx(e);break;case 92:Wn();break}return jn}function Poe(e,t){for(;Wn()&&e+br!==47+10;)if(e+br===42+42&&to()===47)break;return"/*"+lp(t,jn-1)+"*"+ny(e===47?e:Wn())}function Roe(e){for(;!Cf(to());)Wn();return lp(e,jn)}function Toe(e){return sF(Uh("",null,null,null,[""],e=iF(e),0,[0],e))}function Uh(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,f=i,p=0,v=0,g=0,y=1,S=1,x=1,m=0,b="",h=a,_=o,C=n,E=b;S;)switch(g=m,m=Wn()){case 40:if(g!=108&&Br(E,f-1)==58){cx(E+=Tt(Vh(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Vh(m);break;case 9:case 10:case 13:case 32:E+=Eoe(g);break;case 92:E+=Ooe(zh()-1,7);continue;case 47:switch(to()){case 42:case 47:rh($oe(Poe(Wn(),zh()),t,r),u);break;default:E+="/"}break;case 123*y:s[l++]=Ka(E)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+c:x==-1&&(E=Tt(E,/\f/g,"")),v>0&&Ka(E)-f&&rh(v>32?UR(E+";",n,r,f-1):UR(Tt(E," ","")+";",n,r,f-2),u);break;case 59:E+=";";default:if(rh(C=VR(E,t,r,l,c,a,s,b,h=[],_=[],f),o),m===123)if(c===0)Uh(E,t,C,C,h,o,f,s,_);else switch(p===99&&Br(E,3)===110?100:p){case 100:case 108:case 109:case 115:Uh(e,C,C,n&&rh(VR(e,C,C,0,0,a,s,b,a,h=[],f),_),a,_,f,s,n?h:_);break;default:Uh(E,C,C,C,[""],_,0,s,_)}}l=c=v=0,y=x=1,b=E="",f=i;break;case 58:f=1+Ka(E),v=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&Coe()==125)continue}switch(E+=ny(m),m*y){case 38:x=c>0?1:(E+="\f",-1);break;case 44:s[l++]=(Ka(E)-1)*x,x=1;break;case 64:to()===45&&(E+=Vh(Wn())),p=to(),c=f=Ka(b=E+=Roe(zh())),m++;break;case 45:g===45&&Ka(E)==2&&(y=0)}}return o}function VR(e,t,r,n,a,o,i,s,u,l,c){for(var f=a-1,p=a===0?o:[""],v=X_(p),g=0,y=0,S=0;g0?p[x]+" "+m:Tt(m,/&\f/g,p[x])))&&(u[S++]=b);return oy(e,t,r,a===0?G_:s,u,l,c)}function $oe(e,t,r){return oy(e,t,r,rF,ny(_oe()),_f(e,2,-2),0)}function UR(e,t,r,n){return oy(e,t,r,Q_,_f(e,0,n),_f(e,n+1,-1),n)}function cu(e,t){for(var r="",n=X_(e),a=0;a6)switch(Br(e,t+1)){case 109:if(Br(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+ig+(Br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cx(e,"stretch")?lF(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Br(e,t+1)!==115)break;case 6444:switch(Br(e,Ka(e)-3-(~cx(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Br(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Br(e,t+11)){case 114:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Yr+e+e}return e}var Doe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Q_:t.return=lF(t.value,t.length);break;case nF:return cu([Gc(t,{value:Tt(t.value,"@","@"+Rt)})],a);case G_:if(t.length)return Soe(t.props,function(o){switch(woe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Gc(t,{props:[Tt(o,/:(read-\w+)/,":"+ig+"$1")]})],a);case"::placeholder":return cu([Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+ig+"$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Boe=[Doe],uF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||Boe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),x=1;x=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Yoe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Joe=!1,Zoe=/[A-Z]|^ms/g,eie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gF=function(t){return t.charCodeAt(1)===45},HR=function(t){return t!=null&&typeof t!="boolean"},Yb=tF(function(e){return gF(e)?e:e.replace(Zoe,"-$&").toLowerCase()}),qR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(eie,function(n,a,o){return Ga={name:a,styles:o,next:Ga},a})}return Yoe[t]!==1&&!gF(t)&&typeof r=="number"&&r!==0?r+"px":r},tie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ef(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Ga={name:a.name,styles:a.styles,next:Ga},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ga={name:i.name,styles:i.styles,next:Ga},i=i.next;var s=o.styles+";";return s}return rie(e,t,r)}case"function":{if(e!==void 0){var u=Ga,l=r(e);return Ga=u,Ef(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function rie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?sie:lie},YR=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},uie=!1,cie=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return hF(r,n,a),aie(function(){return vF(r,n,a)}),null},die=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=YR(t,r,n),u=s||XR(a),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,v=1;vt(hie(a)?r:a):t;return R.jsx(iie,{styles:n})}/** + */var Fr=typeof Symbol=="function"&&Symbol.for,Y_=Fr?Symbol.for("react.element"):60103,J_=Fr?Symbol.for("react.portal"):60106,iy=Fr?Symbol.for("react.fragment"):60107,sy=Fr?Symbol.for("react.strict_mode"):60108,ly=Fr?Symbol.for("react.profiler"):60114,uy=Fr?Symbol.for("react.provider"):60109,cy=Fr?Symbol.for("react.context"):60110,Z_=Fr?Symbol.for("react.async_mode"):60111,dy=Fr?Symbol.for("react.concurrent_mode"):60111,fy=Fr?Symbol.for("react.forward_ref"):60112,py=Fr?Symbol.for("react.suspense"):60113,zoe=Fr?Symbol.for("react.suspense_list"):60120,hy=Fr?Symbol.for("react.memo"):60115,vy=Fr?Symbol.for("react.lazy"):60116,Voe=Fr?Symbol.for("react.block"):60121,Uoe=Fr?Symbol.for("react.fundamental"):60117,Woe=Fr?Symbol.for("react.responder"):60118,Hoe=Fr?Symbol.for("react.scope"):60119;function Xn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Y_:switch(e=e.type,e){case Z_:case dy:case iy:case ly:case sy:case py:return e;default:switch(e=e&&e.$$typeof,e){case cy:case fy:case vy:case hy:case uy:return e;default:return t}}case J_:return t}}}function dF(e){return Xn(e)===dy}Lt.AsyncMode=Z_;Lt.ConcurrentMode=dy;Lt.ContextConsumer=cy;Lt.ContextProvider=uy;Lt.Element=Y_;Lt.ForwardRef=fy;Lt.Fragment=iy;Lt.Lazy=vy;Lt.Memo=hy;Lt.Portal=J_;Lt.Profiler=ly;Lt.StrictMode=sy;Lt.Suspense=py;Lt.isAsyncMode=function(e){return dF(e)||Xn(e)===Z_};Lt.isConcurrentMode=dF;Lt.isContextConsumer=function(e){return Xn(e)===cy};Lt.isContextProvider=function(e){return Xn(e)===uy};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y_};Lt.isForwardRef=function(e){return Xn(e)===fy};Lt.isFragment=function(e){return Xn(e)===iy};Lt.isLazy=function(e){return Xn(e)===vy};Lt.isMemo=function(e){return Xn(e)===hy};Lt.isPortal=function(e){return Xn(e)===J_};Lt.isProfiler=function(e){return Xn(e)===ly};Lt.isStrictMode=function(e){return Xn(e)===sy};Lt.isSuspense=function(e){return Xn(e)===py};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===iy||e===dy||e===ly||e===sy||e===py||e===zoe||typeof e=="object"&&e!==null&&(e.$$typeof===vy||e.$$typeof===hy||e.$$typeof===uy||e.$$typeof===cy||e.$$typeof===fy||e.$$typeof===Uoe||e.$$typeof===Woe||e.$$typeof===Hoe||e.$$typeof===Voe)};Lt.typeOf=Xn;cF.exports=Lt;var qoe=cF.exports,fF=qoe,Koe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Goe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pF={};pF[fF.ForwardRef]=Koe;pF[fF.Memo]=Goe;var Qoe=!0;function Xoe(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var hF=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Qoe===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},vF=function(t,r,n){hF(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Yoe(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Joe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zoe=!1,eie=/[A-Z]|^ms/g,tie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gF=function(t){return t.charCodeAt(1)===45},HR=function(t){return t!=null&&typeof t!="boolean"},Yb=tF(function(e){return gF(e)?e:e.replace(eie,"-$&").toLowerCase()}),qR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(tie,function(n,a,o){return Ga={name:a,styles:o,next:Ga},a})}return Joe[t]!==1&&!gF(t)&&typeof r=="number"&&r!==0?r+"px":r},rie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ef(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Ga={name:a.name,styles:a.styles,next:Ga},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ga={name:i.name,styles:i.styles,next:Ga},i=i.next;var s=o.styles+";";return s}return nie(e,t,r)}case"function":{if(e!==void 0){var u=Ga,l=r(e);return Ga=u,Ef(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function nie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?lie:uie},YR=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},cie=!1,die=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return hF(r,n,a),oie(function(){return vF(r,n,a)}),null},fie=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=YR(t,r,n),u=s||XR(a),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,v=1;vt(vie(a)?r:a):t;return R.jsx(sie,{styles:n})}/** * @mui/styled-engine v5.16.6 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function tC(e,t){return fx(e,t)}const SF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},vie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wF,StyledEngineProvider:pie,ThemeContext:up,css:gy,default:tC,internal_processStyles:SF,keyframes:Pc},Symbol.toStringTag,{value:"Module"}));function Co(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _F(e){if(!Co(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=_F(e[r])}),t}function Rr(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return Co(e)&&Co(t)&&Object.keys(t).forEach(a=>{Co(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Co(e[a])?n[a]=Rr(e[a],t[a],r):r.clone?n[a]=Co(t[a])?_F(t[a]):t[a]:n[a]=t[a]}),n}const gie=Object.freeze(Object.defineProperty({__proto__:null,default:Rr,isPlainObject:Co},Symbol.toStringTag,{value:"Module"})),mie=["values","unit","step"],yie=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>T({},r,{[n.key]:n.val}),{})};function CF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Pe(e,mie),o=yie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,v){const g=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:v)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rC[e]}px)`};function Aa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||JR;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||JR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rC).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function EF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function OF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function wie(e,...t){const r=EF(e),n=[r,...t].reduce((a,o)=>Rr(a,o),{});return OF(Object.keys(r),n)}function Sie(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function Zb({values:e,breakpoints:t,base:r}){const n=r||Sie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function ge(e){if(typeof e!="string")throw new Error(No(7));return e.charAt(0).toUpperCase()+e.slice(1)}const _ie=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));function Xu(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function sg(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Xu(e,r)||n,t&&(a=t(a,n,e)),a}function vr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Xu(u,n)||{};return Aa(i,s,f=>{let p=sg(l,a,f);return f===p&&typeof f=="string"&&(p=sg(l,a,`${t}${f==="default"?"":ge(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Cie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Eie={m:"margin",p:"padding"},Oie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pie=Cie(e=>{if(e.length>2)if(ZR[e])e=ZR[e];else return[e];const[t,r]=e.split(""),n=Eie[t],a=Oie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nC,...aC];function cp(e,t,r,n){var a;const o=(a=Xu(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function oC(e){return cp(e,"spacing",8)}function Zs(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Rie(e,t){return r=>e.reduce((n,a)=>(n[a]=Zs(t,r),n),{})}function Tie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Pie(r),o=Rie(a,n),i=e[r];return Aa(e,i,o)}function PF(e,t){const r=oC(e.theme);return Object.keys(e).map(n=>Tie(e,t,n,r)).reduce(Ad,{})}function ar(e){return PF(e,nC)}ar.propTypes={};ar.filterProps=nC;function or(e){return PF(e,aC)}or.propTypes={};or.filterProps=aC;function $ie(e=8){if(e.mui)return e;const t=oC({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function my(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Ad(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function oa(e){return typeof e!="number"?e:`${e}px solid`}function ba(e,t){return vr({prop:e,themeKey:"borders",transform:t})}const kie=ba("border",oa),jie=ba("borderTop",oa),Iie=ba("borderRight",oa),Aie=ba("borderBottom",oa),Mie=ba("borderLeft",oa),Fie=ba("borderColor"),Nie=ba("borderTopColor"),Lie=ba("borderRightColor"),Die=ba("borderBottomColor"),Bie=ba("borderLeftColor"),zie=ba("outline",oa),Vie=ba("outlineColor"),yy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zs(t,n)});return Aa(e,e.borderRadius,r)}return null};yy.propTypes={};yy.filterProps=["borderRadius"];my(kie,jie,Iie,Aie,Mie,Fie,Nie,Lie,Die,Bie,yy,zie,Vie);const by=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cp(e.theme,"spacing",8),r=n=>({gap:Zs(t,n)});return Aa(e,e.gap,r)}return null};by.propTypes={};by.filterProps=["gap"];const xy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({columnGap:Zs(t,n)});return Aa(e,e.columnGap,r)}return null};xy.propTypes={};xy.filterProps=["columnGap"];const wy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({rowGap:Zs(t,n)});return Aa(e,e.rowGap,r)}return null};wy.propTypes={};wy.filterProps=["rowGap"];const Uie=vr({prop:"gridColumn"}),Wie=vr({prop:"gridRow"}),Hie=vr({prop:"gridAutoFlow"}),qie=vr({prop:"gridAutoColumns"}),Kie=vr({prop:"gridAutoRows"}),Gie=vr({prop:"gridTemplateColumns"}),Qie=vr({prop:"gridTemplateRows"}),Xie=vr({prop:"gridTemplateAreas"}),Yie=vr({prop:"gridArea"});my(by,xy,wy,Uie,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie);function du(e,t){return t==="grey"?t:e}const Jie=vr({prop:"color",themeKey:"palette",transform:du}),Zie=vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:du}),ese=vr({prop:"backgroundColor",themeKey:"palette",transform:du});my(Jie,Zie,ese);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const tse=vr({prop:"width",transform:zn}),iC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||rC[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:zn(r)}};return Aa(e,e.maxWidth,t)}return null};iC.filterProps=["maxWidth"];const rse=vr({prop:"minWidth",transform:zn}),nse=vr({prop:"height",transform:zn}),ase=vr({prop:"maxHeight",transform:zn}),ose=vr({prop:"minHeight",transform:zn});vr({prop:"size",cssProperty:"width",transform:zn});vr({prop:"size",cssProperty:"height",transform:zn});const ise=vr({prop:"boxSizing"});my(tse,iC,rse,nse,ase,ose,ise);const sse={border:{themeKey:"borders",transform:oa},borderTop:{themeKey:"borders",transform:oa},borderRight:{themeKey:"borders",transform:oa},borderBottom:{themeKey:"borders",transform:oa},borderLeft:{themeKey:"borders",transform:oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yy},color:{themeKey:"palette",transform:du},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:du},backgroundColor:{themeKey:"palette",transform:du},p:{style:or},pt:{style:or},pr:{style:or},pb:{style:or},pl:{style:or},px:{style:or},py:{style:or},padding:{style:or},paddingTop:{style:or},paddingRight:{style:or},paddingBottom:{style:or},paddingLeft:{style:or},paddingX:{style:or},paddingY:{style:or},paddingInline:{style:or},paddingInlineStart:{style:or},paddingInlineEnd:{style:or},paddingBlock:{style:or},paddingBlockStart:{style:or},paddingBlockEnd:{style:or},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:by},rowGap:{style:wy},columnGap:{style:xy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:iC},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dp=sse;function lse(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function use(e,t){return typeof e=="function"?e(t):e}function RF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Xu(a,l)||{};return f?f(i):Aa(i,n,g=>{let y=sg(p,c,g);return g===y&&typeof g=="string"&&(y=sg(p,c,`${r}${g==="default"?"":ge(g)}`,g)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:dp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=EF(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(v=>{const g=use(l[v],o);if(g!=null)if(typeof g=="object")if(i[v])p=Ad(p,e(v,g,o,i));else{const y=Aa({theme:o},g,S=>({[v]:S}));lse(y,g)?p[v]=t({sx:g,theme:o}):p=Ad(p,y)}else p=Ad(p,e(v,g,o,i))}),OF(f,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const TF=RF();TF.filterProps=["sx"];const fp=TF;function $F(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const cse=["breakpoints","palette","spacing","shape"];function pp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Pe(e,cse),s=CF(r),u=$ie(a);let l=Rr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:u,shape:T({},xie,o)},i);return l.applyStyles=$F,l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const dse=Object.freeze(Object.defineProperty({__proto__:null,default:pp,private_createBreakpoints:CF,unstable_applyStyles:$F},Symbol.toStringTag,{value:"Module"}));function fse(e){return Object.keys(e).length===0}function sC(e=null){const t=d.useContext(up);return!t||fse(t)?e:t}const pse=pp();function Sy(e=pse){return sC(e)}function hse({styles:e,themeId:t,defaultTheme:r={}}){const n=Sy(r),a=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(wF,{styles:a})}const vse=["sx"],gse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:dp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function _y(e){const{sx:t}=e,r=Pe(e,vse),{systemProps:n,otherProps:a}=gse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Co(s)?T({},n,s):n}:o=T({},n,t),T({},a,{sx:o})}const mse=Object.freeze(Object.defineProperty({__proto__:null,default:fp,extendSxProp:_y,unstable_createStyleFunctionSx:RF,unstable_defaultSxConfig:dp},Symbol.toStringTag,{value:"Module"})),eT=e=>e,yse=()=>{let e=eT;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eT}}},bse=yse(),lC=bse;function kF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(fp);return d.forwardRef(function(u,l){const c=Sy(r),f=_y(u),{className:p,component:v="div"}=f,g=Pe(f,xse);return R.jsx(o,T({as:v,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},g))})}const Sse={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,t,r="Mui"){const n=Sse[t];return n?`${r}-${n}`:`${lC.generate(e)}-${t}`}function We(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ue(e,a,r)}),n}const _se=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jF(e){const t=`${e}`.match(_se);return t&&t[1]||""}function IF(e,t=""){return e.displayName||e.name||jF(e)||t}function tT(e,t,r){const n=IF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Cse(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return IF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lx.ForwardRef:return tT(e,e.render,"ForwardRef");case lx.Memo:return tT(e,e.type,"memo");default:return}}}const Ese=Object.freeze(Object.defineProperty({__proto__:null,default:Cse,getFunctionName:jF},Symbol.toStringTag,{value:"Module"})),Ose=["ownerState"],Pse=["variants"],Rse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Tse(e){return Object.keys(e).length===0}function $se(e){return typeof e=="string"&&e.charCodeAt(0)>96}function e0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kse=pp(),jse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nh({defaultTheme:e,theme:t,themeId:r}){return Tse(t)?e:t[r]||t}function Ise(e){return e?(t,r)=>r[e]:null}function Wh(e,t){let{ownerState:r}=t,n=Pe(t,Ose);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Wh(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Pe(a,Pse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(T({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(T({ownerState:r},n,r)):u.style))}),s}return a}function Ase(e={}){const{themeId:t,defaultTheme:r=kse,rootShouldForwardProp:n=e0,slotShouldForwardProp:a=e0}=e,o=i=>fp(T({},i,{theme:nh(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{SF(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Ise(jse(l))}=s,v=Pe(s,Rse),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=e0;l==="Root"||l==="root"?x=n:l?x=a:$se(i)&&(x=void 0);const m=tC(i,T({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||Co(_)?C=>Wh(_,T({},C,{theme:nh({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=nh(T({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Wh(M,T({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=nh(T({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Wh({variants:F},T({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}const Mse=Ase(),Fse=Mse;function Of(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=T({},o),Object.keys(a).forEach(i=>{r[n][i]=Of(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function AF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Of(t.components[r].defaultProps,n)}function MF({props:e,name:t,defaultTheme:r,themeId:n}){let a=Sy(r);return n&&(a=a[n]||a),AF({theme:a,name:t,props:e})}const Nse=typeof window<"u"?d.useLayoutEffect:d.useEffect,qn=Nse;function Lse(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const FF=Xd["useSyncExternalStore"];function Dse(e,t,r,n,a){const o=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return FF(u,s,i)}function In(e,t={}){const r=sC(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=AF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(FF!==void 0?Dse:Lse)(u,a,o,i,s)}function NF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Bse=Object.freeze(Object.defineProperty({__proto__:null,default:NF},Symbol.toStringTag,{value:"Module"}));function LF(e,t=0,r=1){return NF(e,t,r)}function zse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function uC(e){if(e.type)return e;if(e.charAt(0)==="#")return uC(zse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(No(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(No(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function DF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Pf(e,t){return e=uC(e),t=LF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,DF(e)}function Vse(e,t){if(e=uC(e),t=LF(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return DF(e)}function hx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Rc(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Use(e,t){return()=>null}function Hh(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function wr(e){return e&&e.ownerDocument||document}function da(e){return wr(e).defaultView||window}function Wse(e,t){return()=>null}function lg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rT=0;function Hse(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(rT+=1,r(`mui-${rT}`))},[t]),n}const nT=Xd["useId".toString()];function el(e){if(nT!==void 0){const t=nT();return e??t}return Hse(e)}function qse(e,t,r,n,a){return null}function Yu({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),s=a?e:o,u=d.useCallback(l=>{a||i(l)},[]);return[s,u]}function fn(e){const t=d.useRef(e);return qn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{lg(r,t)})},e)}const aT={};function Kse(e,t){const r=d.useRef(aT);return r.current===aT&&(r.current=e(t)),r}const Gse=[];function Qse(e){d.useEffect(e,Gse)}class hp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hp}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ss(){const e=Kse(hp.create).current;return Qse(e.disposeEffect),e}let Cy=!0,vx=!1;const Xse=new hp,Yse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Jse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Yse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Zse(e){e.metaKey||e.altKey||e.ctrlKey||(Cy=!0)}function t0(){Cy=!1}function ele(){this.visibilityState==="hidden"&&vx&&(Cy=!0)}function tle(e){e.addEventListener("keydown",Zse,!0),e.addEventListener("mousedown",t0,!0),e.addEventListener("pointerdown",t0,!0),e.addEventListener("touchstart",t0,!0),e.addEventListener("visibilitychange",ele,!0)}function rle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Cy||Jse(t)}function Ey(){const e=d.useCallback(a=>{a!=null&&tle(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(vx=!0,Xse.start(100,()=>{vx=!1}),t.current=!1,!0):!1}function n(a){return rle(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function BF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let _l;function zF(){if(_l)return _l;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),_l="reverse",e.scrollLeft>0?_l="default":(e.scrollLeft=1,e.scrollLeft===0&&(_l="negative")),document.body.removeChild(e),_l}function nle(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(zF()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function qe(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function Rf(e){return typeof e=="string"}function Jl(e,t,r){return e===void 0||Rf(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function ug(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function oT(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function VF(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const v=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=T({},r,a,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=ug(T({},a,n)),s=oT(n),u=oT(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f=T({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=T({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function UF(e,t,r){return typeof e=="function"?e(t,r):e}const ale=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Pe(e,ale),s=o?{}:UF(n,a),{props:u,internalRef:l}=VF(T({},i,{externalSlotProps:s})),c=Jt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jl(r,T({},u,{ref:c}),a)}const ole=d.createContext(null),WF=ole;function cC(){return d.useContext(WF)}const ile=typeof Symbol=="function"&&Symbol.for,HF=ile?Symbol.for("mui.nested"):"__THEME_NESTED__";function sle(e,t){return typeof t=="function"?t(e):T({},e,t)}function lle(e){const{children:t,theme:r}=e,n=cC(),a=d.useMemo(()=>{const o=n===null?r:sle(n,r);return o!=null&&(o[HF]=n!==null),o},[r,n]);return R.jsx(WF.Provider,{value:a,children:t})}const ule=["value"],qF=d.createContext();function cle(e){let{value:t}=e,r=Pe(e,ule);return R.jsx(qF.Provider,T({value:t??!0},r))}const cl=()=>{const e=d.useContext(qF);return e??!1},KF=d.createContext(void 0);function dle({value:e,children:t}){return R.jsx(KF.Provider,{value:e,children:t})}function fle(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?Of(a.defaultProps,n):!a.styleOverrides&&!a.variants?Of(a,n):n}function ple({props:e,name:t}){const r=d.useContext(KF);return fle({props:e,name:t,theme:{components:r}})}const iT={};function sT(e,t,r,n=!1){return d.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?T({},t,{[e]:o}):o;return n?()=>i:i}return e?T({},t,{[e]:r}):T({},t,r)},[e,t,r,n])}function hle(e){const{children:t,theme:r,themeId:n}=e,a=sC(iT),o=cC()||iT,i=sT(n,a,r),s=sT(n,o,r,!0),u=i.direction==="rtl";return R.jsx(lle,{theme:s,children:R.jsx(up.Provider,{value:i,children:R.jsx(cle,{value:u,children:R.jsx(dle,{value:i==null?void 0:i.components,children:t})})})})}function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function vle(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gle(e){var t=vle(e,"string");return Tf(t)=="symbol"?t:t+""}const mle=["component","direction","spacing","divider","children","className","useFlexGap"],yle=pp(),ble=Fse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xle(e){return MF({props:e,name:"MuiStack",defaultTheme:yle})}function wle(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],_le=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Aa({theme:t},Zb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oC(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=Zb({values:e.direction,base:a}),i=Zb({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Rr(r,Aa({theme:t},i,(u,l)=>e.useFlexGap?{gap:Zs(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Sle(l?o[l]:e.direction)}`]:Zs(n,u)}}))}return r=wie(t.breakpoints,r),r};function Cle(e={}){const{createStyledComponent:t=ble,useThemeProps:r=xle,componentName:n="MuiStack"}=e,a=()=>qe({root:["root"]},u=>Ue(n,u),{}),o=t(_le);return d.forwardRef(function(u,l){const c=r(u),f=_y(c),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:S,className:x,useFlexGap:m=!1}=f,b=Pe(f,mle),h={direction:v,spacing:g,useFlexGap:m},_=a();return R.jsx(o,T({as:p,ownerState:h,ref:l,className:ue(_.root,x)},b,{children:y?wle(S,y):S}))})}function Ele(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gr={},GF={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(GF);var it=GF.exports;const Ole=Do(loe),Ple=Do(Bse);var QF=it;Object.defineProperty(gr,"__esModule",{value:!0});var gt=gr.alpha=ZF;gr.blend=Dle;gr.colorChannel=void 0;var dC=gr.darken=hC;gr.decomposeColor=pa;var Rle=gr.emphasize=e4,Tle=gr.getContrastRatio=Ale;gr.getLuminance=cg;gr.hexToRgb=XF;gr.hslToRgb=JF;var fC=gr.lighten=vC;gr.private_safeAlpha=Mle;gr.private_safeColorChannel=void 0;gr.private_safeDarken=Fle;gr.private_safeEmphasize=Lle;gr.private_safeLighten=Nle;gr.recomposeColor=Tc;gr.rgbToHex=Ile;var lT=QF(Ole),$le=QF(Ple);function pC(e,t=0,r=1){return(0,$le.default)(e,t,r)}function XF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function kle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pa(e){if(e.type)return e;if(e.charAt(0)==="#")return pa(XF(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,lT.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,lT.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const YF=e=>{const t=pa(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};gr.colorChannel=YF;const jle=(e,t)=>{try{return YF(e)}catch{return e}};gr.private_safeColorChannel=jle;function Tc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Ile(e){if(e.indexOf("#")===0)return e;const{values:t}=pa(e);return`#${t.map((r,n)=>kle(n===3?Math.round(255*r):r)).join("")}`}function JF(e){e=pa(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Tc({type:s,values:u})}function cg(e){e=pa(e);let t=e.type==="hsl"||e.type==="hsla"?pa(JF(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ale(e,t){const r=cg(e),n=cg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ZF(e,t){return e=pa(e),t=pC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tc(e)}function Mle(e,t,r){try{return ZF(e,t)}catch{return e}}function hC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Tc(e)}function Fle(e,t,r){try{return hC(e,t)}catch{return e}}function vC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Tc(e)}function Nle(e,t,r){try{return vC(e,t)}catch{return e}}function e4(e,t=.15){return cg(e)>.5?hC(e,t):vC(e,t)}function Lle(e,t,r){try{return e4(e,t)}catch{return e}}function Dle(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=pa(e),i=pa(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Tc({type:"rgb",values:s})}const Ble=["mode","contrastThreshold","tonalOffset"],uT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sf.white,default:Sf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},r0={text:{primary:Sf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Sf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cT(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fC(e.main,a):t==="dark"&&(e.dark=dC(e.main,o)))}function zle(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[700],light:xl[400],dark:xl[800]}}function Vle(e="light"){return e==="dark"?{main:bl[200],light:bl[50],dark:bl[400]}:{main:bl[500],light:bl[300],dark:bl[700]}}function Ule(e="light"){return e==="dark"?{main:yl[500],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[400],dark:yl[800]}}function Wle(e="light"){return e==="dark"?{main:wl[400],light:wl[300],dark:wl[700]}:{main:wl[700],light:wl[500],dark:wl[900]}}function Hle(e="light"){return e==="dark"?{main:Sl[400],light:Sl[300],dark:Sl[700]}:{main:Sl[800],light:Sl[500],dark:Sl[900]}}function qle(e="light"){return e==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:"#ed6c02",light:Kc[500],dark:Kc[900]}}function Kle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Pe(e,Ble),o=e.primary||zle(t),i=e.secondary||Vle(t),s=e.error||Ule(t),u=e.info||Wle(t),l=e.success||Hle(t),c=e.warning||qle(t);function f(y){return Tle(y,r0.text.primary)>=r?r0.text.primary:uT.text.primary}const p=({color:y,name:S,mainShade:x=500,lightShade:m=300,darkShade:b=700})=>{if(y=T({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(No(11,S?` (${S})`:"",x));if(typeof y.main!="string")throw new Error(No(12,S?` (${S})`:"",JSON.stringify(y.main)));return cT(y,"light",m,n),cT(y,"dark",b,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:r0,light:uT};return Rr(T({common:T({},Sf),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:soe,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),a)}const Gle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Qle(e){return Math.round(e*1e5)/1e5}const dT={textTransform:"uppercase"},fT='"Roboto", "Helvetica", "Arial", sans-serif';function Xle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=fT,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=Pe(r,Gle),v=a/14,g=f||(x=>`${x/l*v}rem`),y=(x,m,b,h,_)=>T({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:b},n===fT?{letterSpacing:`${Qle(h/m)}em`}:{},_,c),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,dT),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,dT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr(T({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},S),p,{clone:!1})}const Yle=.2,Jle=.14,Zle=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Yle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zle})`].join(",")}const eue=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],tue=eue,rue=["duration","easing","delay"],nue={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},aue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pT(e){return`${Math.round(e)}ms`}function oue(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function iue(e){const t=T({},nue,e.easing),r=T({},aue,e.duration);return T({getAutoHeightDuration:oue,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Pe(o,rue),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:pT(i)} ${s} ${typeof u=="string"?u:pT(u)}`).join(",")}},e,{easing:t,duration:r})}const sue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lue=sue,uue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dg(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Pe(e,uue);if(e.vars)throw new Error(No(18));const s=Kle(n),u=pp(e);let l=Rr(u,{mixins:Ele(u.breakpoints,r),palette:s,shadows:tue.slice(),typography:Xle(s,o),transitions:iue(a),zIndex:T({},lue)});return l=Rr(l,i),l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const cue=dg(),Oy=cue;function fo(){const e=Sy(Oy);return e[Js]||e}function due({props:e,name:t}){return MF({props:e,name:t,defaultTheme:Oy,themeId:Js})}var vp={},n0={exports:{}},hT;function fue(){return hT||(hT=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(n0)),n0.exports}const t4=Do(vie),pue=Do(gie),hue=Do(_ie),vue=Do(Ese),gue=Do(dse),mue=Do(mse);var $c=it;Object.defineProperty(vp,"__esModule",{value:!0});var yue=vp.default=kue;vp.shouldForwardProp=qh;vp.systemDefaultTheme=void 0;var ea=$c(xF()),gx=$c(fue()),vT=Eue(t4),bue=pue;$c(hue);$c(vue);var xue=$c(gue),wue=$c(mue);const Sue=["ownerState"],_ue=["variants"],Cue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function r4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(r4=function(n){return n?r:t})(e)}function Eue(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=r4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Oue(e){return Object.keys(e).length===0}function Pue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rue=vp.systemDefaultTheme=(0,xue.default)(),Tue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ah({defaultTheme:e,theme:t,themeId:r}){return Oue(t)?e:t[r]||t}function $ue(e){return e?(t,r)=>r[e]:null}function Kh(e,t){let{ownerState:r}=t,n=(0,gx.default)(t,Sue);const a=typeof e=="function"?e((0,ea.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Kh(o,(0,ea.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,gx.default)(a,_ue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,ea.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,ea.default)({ownerState:r},n,r)):u.style))}),s}return a}function kue(e={}){const{themeId:t,defaultTheme:r=Rue,rootShouldForwardProp:n=qh,slotShouldForwardProp:a=qh}=e,o=i=>(0,wue.default)((0,ea.default)({},i,{theme:ah((0,ea.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,vT.internal_processStyles)(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=$ue(Tue(l))}=s,v=(0,gx.default)(s,Cue),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=qh;l==="Root"||l==="root"?x=n:l?x=a:Pue(i)&&(x=void 0);const m=(0,vT.default)(i,(0,ea.default)({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||(0,bue.isPlainObject)(_)?C=>Kh(_,(0,ea.default)({},C,{theme:ah({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Kh(M,(0,ea.default)({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Kh({variants:F},(0,ea.default)({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}function n4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jue=e=>n4(e)&&e!=="classes",Wr=jue,Iue=yue({themeId:Js,defaultTheme:Oy,rootShouldForwardProp:Wr}),ne=Iue,Aue=["theme"];function Mue(e){let{theme:t}=e,r=Pe(e,Aue);const n=t[Js];return R.jsx(hle,T({},r,{themeId:n?Js:void 0,theme:n||t}))}const Fue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gT=Fue;function Ke(e){return ple(e)}function Nue(e){return Ue("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Due=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(r)}`]};return qe(a,Nue,n)},Bue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ge(r.color)}`],t[`fontSize${ge(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),a4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Pe(n,Lue),g=d.isValidElement(a)&&a.type==="svg",y=T({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),S={};c||(S.viewBox=p);const x=Due(y);return R.jsxs(Bue,T({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},S,v,g&&a.props,{ownerState:y,children:[g?a.props.children:a,f?R.jsx("title",{children:f}):null]}))});a4.muiName="SvgIcon";const mT=a4;function An(e,t){function r(n,a){return R.jsx(mT,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=mT.muiName,d.memo(d.forwardRef(r))}const zue={configure:e=>{lC.configure(e)}},Vue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ge,createChainedFunction:hx,createSvgIcon:An,debounce:Rc,deprecatedPropType:Use,isMuiElement:Hh,ownerDocument:wr,ownerWindow:da,requirePropFactory:Wse,setRef:lg,unstable_ClassNameGenerator:zue,unstable_useEnhancedEffect:qn,unstable_useId:el,unsupportedProp:qse,useControlled:Yu,useEventCallback:fn,useForkRef:Jt,useIsFocusVisible:Ey},Symbol.toStringTag,{value:"Module"}));function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},mx(e,t)}function Py(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mx(e,t)}const yT={disabled:!1},fg=ke.createContext(null);var Uue=function(t){return t.scrollTop},fd="unmounted",os="exited",is="entering",$l="entered",yx="exiting",Ho=function(e){Py(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=os,o.appearStatus=is):u=$l:n.unmountOnExit||n.mountOnEnter?u=fd:u=os,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fd?{status:os}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==is&&i!==$l&&(o=is):(i===is||i===$l)&&(o=yx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===is){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this);i&&Uue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:fd})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[ld.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!a&&!i||yT.disabled){this.safeSetState({status:$l},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:is},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:$l},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ld.findDOMNode(this);if(!o||yT.disabled){this.safeSetState({status:os},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:yx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:os},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fd)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Pe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(fg.Provider,{value:null},typeof i=="function"?i(a,s):ke.cloneElement(ke.Children.only(i),s))},t}(ke.Component);Ho.contextType=fg;Ho.propTypes={};function Cl(){}Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cl,onEntering:Cl,onEntered:Cl,onExit:Cl,onExiting:Cl,onExited:Cl};Ho.UNMOUNTED=fd;Ho.EXITED=os;Ho.ENTERING=is;Ho.ENTERED=$l;Ho.EXITING=yx;const gC=Ho;function bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(e,t){var r=function(o){return t&&d.isValidElement(o)?t(o):o},n=Object.create(null);return e&&d.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Wue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Ju(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function Xue(e){return Ue("MuiPaper",e)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Yue=["className","component","elevation","square","variant"],Jue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qe(o,Xue,a)},Zue=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",gT(t.elevation))}, ${gt("#fff",gT(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),ece=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Pe(n,Yue),c=T({},n,{component:o,elevation:i,square:s,variant:u}),f=Jue(c);return R.jsx(Zue,T({as:o,ownerState:c,className:ue(f.root,a),ref:r},l))}),Yi=ece,tce=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],rce=["component","slots","slotProps"],nce=["component"];function ace(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Pe(t,tce),{component:l,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=o,p=Pe(o,rce),v=c[e]||n,g=UF(f[e],a),y=VF(T({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:S},internalRef:x}=y,m=Pe(y.props,nce),b=Jt(x,g==null?void 0:g.ref,t.ref),h=i?i(m):{},_=T({},a,h),C=e==="root"?S||l:S,E=Jl(v,T({},e==="root"&&!l&&!c[e]&&s,e!=="root"&&!c[e]&&s,m,C&&{as:C},{ref:b}),_);return Object.keys(h).forEach(w=>{delete E[w]}),[v,E]}function oce(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},g=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),R.jsx("span",{className:p,style:v,children:R.jsx("span",{className:g})})}const ice=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ra=ice,sce=["center","classes","className"];let Ry=e=>e,bT,xT,wT,ST;const xx=550,lce=80,uce=Pc(bT||(bT=Ry` + */function tC(e,t){return fx(e,t)}const SF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},gie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wF,StyledEngineProvider:hie,ThemeContext:up,css:gy,default:tC,internal_processStyles:SF,keyframes:Pc},Symbol.toStringTag,{value:"Module"}));function Co(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _F(e){if(!Co(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=_F(e[r])}),t}function Rr(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return Co(e)&&Co(t)&&Object.keys(t).forEach(a=>{Co(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Co(e[a])?n[a]=Rr(e[a],t[a],r):r.clone?n[a]=Co(t[a])?_F(t[a]):t[a]:n[a]=t[a]}),n}const mie=Object.freeze(Object.defineProperty({__proto__:null,default:Rr,isPlainObject:Co},Symbol.toStringTag,{value:"Module"})),yie=["values","unit","step"],bie=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>T({},r,{[n.key]:n.val}),{})};function CF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Pe(e,yie),o=bie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,v){const g=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:v)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rC[e]}px)`};function Aa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||JR;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||JR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rC).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function EF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function OF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Sie(e,...t){const r=EF(e),n=[r,...t].reduce((a,o)=>Rr(a,o),{});return OF(Object.keys(r),n)}function _ie(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function Zb({values:e,breakpoints:t,base:r}){const n=r||_ie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function ge(e){if(typeof e!="string")throw new Error(No(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Cie=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));function Xu(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function sg(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Xu(e,r)||n,t&&(a=t(a,n,e)),a}function vr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Xu(u,n)||{};return Aa(i,s,f=>{let p=sg(l,a,f);return f===p&&typeof f=="string"&&(p=sg(l,a,`${t}${f==="default"?"":ge(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Eie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Oie={m:"margin",p:"padding"},Pie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rie=Eie(e=>{if(e.length>2)if(ZR[e])e=ZR[e];else return[e];const[t,r]=e.split(""),n=Oie[t],a=Pie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nC,...aC];function cp(e,t,r,n){var a;const o=(a=Xu(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function oC(e){return cp(e,"spacing",8)}function Zs(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Tie(e,t){return r=>e.reduce((n,a)=>(n[a]=Zs(t,r),n),{})}function $ie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Rie(r),o=Tie(a,n),i=e[r];return Aa(e,i,o)}function PF(e,t){const r=oC(e.theme);return Object.keys(e).map(n=>$ie(e,t,n,r)).reduce(Ad,{})}function ar(e){return PF(e,nC)}ar.propTypes={};ar.filterProps=nC;function or(e){return PF(e,aC)}or.propTypes={};or.filterProps=aC;function kie(e=8){if(e.mui)return e;const t=oC({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function my(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Ad(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function oa(e){return typeof e!="number"?e:`${e}px solid`}function ba(e,t){return vr({prop:e,themeKey:"borders",transform:t})}const jie=ba("border",oa),Iie=ba("borderTop",oa),Aie=ba("borderRight",oa),Mie=ba("borderBottom",oa),Fie=ba("borderLeft",oa),Nie=ba("borderColor"),Lie=ba("borderTopColor"),Die=ba("borderRightColor"),Bie=ba("borderBottomColor"),zie=ba("borderLeftColor"),Vie=ba("outline",oa),Uie=ba("outlineColor"),yy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zs(t,n)});return Aa(e,e.borderRadius,r)}return null};yy.propTypes={};yy.filterProps=["borderRadius"];my(jie,Iie,Aie,Mie,Fie,Nie,Lie,Die,Bie,zie,yy,Vie,Uie);const by=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cp(e.theme,"spacing",8),r=n=>({gap:Zs(t,n)});return Aa(e,e.gap,r)}return null};by.propTypes={};by.filterProps=["gap"];const xy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({columnGap:Zs(t,n)});return Aa(e,e.columnGap,r)}return null};xy.propTypes={};xy.filterProps=["columnGap"];const wy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({rowGap:Zs(t,n)});return Aa(e,e.rowGap,r)}return null};wy.propTypes={};wy.filterProps=["rowGap"];const Wie=vr({prop:"gridColumn"}),Hie=vr({prop:"gridRow"}),qie=vr({prop:"gridAutoFlow"}),Kie=vr({prop:"gridAutoColumns"}),Gie=vr({prop:"gridAutoRows"}),Qie=vr({prop:"gridTemplateColumns"}),Xie=vr({prop:"gridTemplateRows"}),Yie=vr({prop:"gridTemplateAreas"}),Jie=vr({prop:"gridArea"});my(by,xy,wy,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie,Jie);function du(e,t){return t==="grey"?t:e}const Zie=vr({prop:"color",themeKey:"palette",transform:du}),ese=vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:du}),tse=vr({prop:"backgroundColor",themeKey:"palette",transform:du});my(Zie,ese,tse);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const rse=vr({prop:"width",transform:zn}),iC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||rC[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:zn(r)}};return Aa(e,e.maxWidth,t)}return null};iC.filterProps=["maxWidth"];const nse=vr({prop:"minWidth",transform:zn}),ase=vr({prop:"height",transform:zn}),ose=vr({prop:"maxHeight",transform:zn}),ise=vr({prop:"minHeight",transform:zn});vr({prop:"size",cssProperty:"width",transform:zn});vr({prop:"size",cssProperty:"height",transform:zn});const sse=vr({prop:"boxSizing"});my(rse,iC,nse,ase,ose,ise,sse);const lse={border:{themeKey:"borders",transform:oa},borderTop:{themeKey:"borders",transform:oa},borderRight:{themeKey:"borders",transform:oa},borderBottom:{themeKey:"borders",transform:oa},borderLeft:{themeKey:"borders",transform:oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yy},color:{themeKey:"palette",transform:du},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:du},backgroundColor:{themeKey:"palette",transform:du},p:{style:or},pt:{style:or},pr:{style:or},pb:{style:or},pl:{style:or},px:{style:or},py:{style:or},padding:{style:or},paddingTop:{style:or},paddingRight:{style:or},paddingBottom:{style:or},paddingLeft:{style:or},paddingX:{style:or},paddingY:{style:or},paddingInline:{style:or},paddingInlineStart:{style:or},paddingInlineEnd:{style:or},paddingBlock:{style:or},paddingBlockStart:{style:or},paddingBlockEnd:{style:or},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:by},rowGap:{style:wy},columnGap:{style:xy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:iC},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dp=lse;function use(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function cse(e,t){return typeof e=="function"?e(t):e}function RF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Xu(a,l)||{};return f?f(i):Aa(i,n,g=>{let y=sg(p,c,g);return g===y&&typeof g=="string"&&(y=sg(p,c,`${r}${g==="default"?"":ge(g)}`,g)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:dp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=EF(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(v=>{const g=cse(l[v],o);if(g!=null)if(typeof g=="object")if(i[v])p=Ad(p,e(v,g,o,i));else{const y=Aa({theme:o},g,S=>({[v]:S}));use(y,g)?p[v]=t({sx:g,theme:o}):p=Ad(p,y)}else p=Ad(p,e(v,g,o,i))}),OF(f,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const TF=RF();TF.filterProps=["sx"];const fp=TF;function $F(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const dse=["breakpoints","palette","spacing","shape"];function pp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Pe(e,dse),s=CF(r),u=kie(a);let l=Rr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:u,shape:T({},wie,o)},i);return l.applyStyles=$F,l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const fse=Object.freeze(Object.defineProperty({__proto__:null,default:pp,private_createBreakpoints:CF,unstable_applyStyles:$F},Symbol.toStringTag,{value:"Module"}));function pse(e){return Object.keys(e).length===0}function sC(e=null){const t=d.useContext(up);return!t||pse(t)?e:t}const hse=pp();function Sy(e=hse){return sC(e)}function vse({styles:e,themeId:t,defaultTheme:r={}}){const n=Sy(r),a=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(wF,{styles:a})}const gse=["sx"],mse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:dp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function _y(e){const{sx:t}=e,r=Pe(e,gse),{systemProps:n,otherProps:a}=mse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Co(s)?T({},n,s):n}:o=T({},n,t),T({},a,{sx:o})}const yse=Object.freeze(Object.defineProperty({__proto__:null,default:fp,extendSxProp:_y,unstable_createStyleFunctionSx:RF,unstable_defaultSxConfig:dp},Symbol.toStringTag,{value:"Module"})),eT=e=>e,bse=()=>{let e=eT;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eT}}},xse=bse(),lC=xse;function kF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(fp);return d.forwardRef(function(u,l){const c=Sy(r),f=_y(u),{className:p,component:v="div"}=f,g=Pe(f,wse);return R.jsx(o,T({as:v,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},g))})}const _se={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,t,r="Mui"){const n=_se[t];return n?`${r}-${n}`:`${lC.generate(e)}-${t}`}function We(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ue(e,a,r)}),n}const Cse=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jF(e){const t=`${e}`.match(Cse);return t&&t[1]||""}function IF(e,t=""){return e.displayName||e.name||jF(e)||t}function tT(e,t,r){const n=IF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ese(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return IF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lx.ForwardRef:return tT(e,e.render,"ForwardRef");case lx.Memo:return tT(e,e.type,"memo");default:return}}}const Ose=Object.freeze(Object.defineProperty({__proto__:null,default:Ese,getFunctionName:jF},Symbol.toStringTag,{value:"Module"})),Pse=["ownerState"],Rse=["variants"],Tse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $se(e){return Object.keys(e).length===0}function kse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function e0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jse=pp(),Ise=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nh({defaultTheme:e,theme:t,themeId:r}){return $se(t)?e:t[r]||t}function Ase(e){return e?(t,r)=>r[e]:null}function Wh(e,t){let{ownerState:r}=t,n=Pe(t,Pse);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Wh(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Pe(a,Rse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(T({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(T({ownerState:r},n,r)):u.style))}),s}return a}function Mse(e={}){const{themeId:t,defaultTheme:r=jse,rootShouldForwardProp:n=e0,slotShouldForwardProp:a=e0}=e,o=i=>fp(T({},i,{theme:nh(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{SF(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Ase(Ise(l))}=s,v=Pe(s,Tse),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=e0;l==="Root"||l==="root"?x=n:l?x=a:kse(i)&&(x=void 0);const m=tC(i,T({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||Co(_)?C=>Wh(_,T({},C,{theme:nh({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=nh(T({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Wh(M,T({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=nh(T({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Wh({variants:F},T({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}const Fse=Mse(),Nse=Fse;function Of(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=T({},o),Object.keys(a).forEach(i=>{r[n][i]=Of(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function AF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Of(t.components[r].defaultProps,n)}function MF({props:e,name:t,defaultTheme:r,themeId:n}){let a=Sy(r);return n&&(a=a[n]||a),AF({theme:a,name:t,props:e})}const Lse=typeof window<"u"?d.useLayoutEffect:d.useEffect,qn=Lse;function Dse(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const FF=Xd["useSyncExternalStore"];function Bse(e,t,r,n,a){const o=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return FF(u,s,i)}function In(e,t={}){const r=sC(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=AF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(FF!==void 0?Bse:Dse)(u,a,o,i,s)}function NF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const zse=Object.freeze(Object.defineProperty({__proto__:null,default:NF},Symbol.toStringTag,{value:"Module"}));function LF(e,t=0,r=1){return NF(e,t,r)}function Vse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function uC(e){if(e.type)return e;if(e.charAt(0)==="#")return uC(Vse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(No(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(No(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function DF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Pf(e,t){return e=uC(e),t=LF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,DF(e)}function Use(e,t){if(e=uC(e),t=LF(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return DF(e)}function hx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Rc(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Wse(e,t){return()=>null}function Hh(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function wr(e){return e&&e.ownerDocument||document}function da(e){return wr(e).defaultView||window}function Hse(e,t){return()=>null}function lg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rT=0;function qse(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(rT+=1,r(`mui-${rT}`))},[t]),n}const nT=Xd["useId".toString()];function el(e){if(nT!==void 0){const t=nT();return e??t}return qse(e)}function Kse(e,t,r,n,a){return null}function Yu({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),s=a?e:o,u=d.useCallback(l=>{a||i(l)},[]);return[s,u]}function fn(e){const t=d.useRef(e);return qn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{lg(r,t)})},e)}const aT={};function Gse(e,t){const r=d.useRef(aT);return r.current===aT&&(r.current=e(t)),r}const Qse=[];function Xse(e){d.useEffect(e,Qse)}class hp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hp}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ss(){const e=Gse(hp.create).current;return Xse(e.disposeEffect),e}let Cy=!0,vx=!1;const Yse=new hp,Jse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Zse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Jse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ele(e){e.metaKey||e.altKey||e.ctrlKey||(Cy=!0)}function t0(){Cy=!1}function tle(){this.visibilityState==="hidden"&&vx&&(Cy=!0)}function rle(e){e.addEventListener("keydown",ele,!0),e.addEventListener("mousedown",t0,!0),e.addEventListener("pointerdown",t0,!0),e.addEventListener("touchstart",t0,!0),e.addEventListener("visibilitychange",tle,!0)}function nle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Cy||Zse(t)}function Ey(){const e=d.useCallback(a=>{a!=null&&rle(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(vx=!0,Yse.start(100,()=>{vx=!1}),t.current=!1,!0):!1}function n(a){return nle(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function BF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let _l;function zF(){if(_l)return _l;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),_l="reverse",e.scrollLeft>0?_l="default":(e.scrollLeft=1,e.scrollLeft===0&&(_l="negative")),document.body.removeChild(e),_l}function ale(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(zF()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function qe(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function Rf(e){return typeof e=="string"}function Jl(e,t,r){return e===void 0||Rf(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function ug(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function oT(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function VF(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const v=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=T({},r,a,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=ug(T({},a,n)),s=oT(n),u=oT(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f=T({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=T({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function UF(e,t,r){return typeof e=="function"?e(t,r):e}const ole=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Pe(e,ole),s=o?{}:UF(n,a),{props:u,internalRef:l}=VF(T({},i,{externalSlotProps:s})),c=Jt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jl(r,T({},u,{ref:c}),a)}const ile=d.createContext(null),WF=ile;function cC(){return d.useContext(WF)}const sle=typeof Symbol=="function"&&Symbol.for,HF=sle?Symbol.for("mui.nested"):"__THEME_NESTED__";function lle(e,t){return typeof t=="function"?t(e):T({},e,t)}function ule(e){const{children:t,theme:r}=e,n=cC(),a=d.useMemo(()=>{const o=n===null?r:lle(n,r);return o!=null&&(o[HF]=n!==null),o},[r,n]);return R.jsx(WF.Provider,{value:a,children:t})}const cle=["value"],qF=d.createContext();function dle(e){let{value:t}=e,r=Pe(e,cle);return R.jsx(qF.Provider,T({value:t??!0},r))}const cl=()=>{const e=d.useContext(qF);return e??!1},KF=d.createContext(void 0);function fle({value:e,children:t}){return R.jsx(KF.Provider,{value:e,children:t})}function ple(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?Of(a.defaultProps,n):!a.styleOverrides&&!a.variants?Of(a,n):n}function hle({props:e,name:t}){const r=d.useContext(KF);return ple({props:e,name:t,theme:{components:r}})}const iT={};function sT(e,t,r,n=!1){return d.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?T({},t,{[e]:o}):o;return n?()=>i:i}return e?T({},t,{[e]:r}):T({},t,r)},[e,t,r,n])}function vle(e){const{children:t,theme:r,themeId:n}=e,a=sC(iT),o=cC()||iT,i=sT(n,a,r),s=sT(n,o,r,!0),u=i.direction==="rtl";return R.jsx(ule,{theme:s,children:R.jsx(up.Provider,{value:i,children:R.jsx(dle,{value:u,children:R.jsx(fle,{value:i==null?void 0:i.components,children:t})})})})}function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function gle(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mle(e){var t=gle(e,"string");return Tf(t)=="symbol"?t:t+""}const yle=["component","direction","spacing","divider","children","className","useFlexGap"],ble=pp(),xle=Nse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wle(e){return MF({props:e,name:"MuiStack",defaultTheme:ble})}function Sle(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Cle=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Aa({theme:t},Zb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oC(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=Zb({values:e.direction,base:a}),i=Zb({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Rr(r,Aa({theme:t},i,(u,l)=>e.useFlexGap?{gap:Zs(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_le(l?o[l]:e.direction)}`]:Zs(n,u)}}))}return r=Sie(t.breakpoints,r),r};function Ele(e={}){const{createStyledComponent:t=xle,useThemeProps:r=wle,componentName:n="MuiStack"}=e,a=()=>qe({root:["root"]},u=>Ue(n,u),{}),o=t(Cle);return d.forwardRef(function(u,l){const c=r(u),f=_y(c),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:S,className:x,useFlexGap:m=!1}=f,b=Pe(f,yle),h={direction:v,spacing:g,useFlexGap:m},_=a();return R.jsx(o,T({as:p,ownerState:h,ref:l,className:ue(_.root,x)},b,{children:y?Sle(S,y):S}))})}function Ole(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gr={},GF={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(GF);var it=GF.exports;const Ple=Do(uoe),Rle=Do(zse);var QF=it;Object.defineProperty(gr,"__esModule",{value:!0});var gt=gr.alpha=ZF;gr.blend=Ble;gr.colorChannel=void 0;var dC=gr.darken=hC;gr.decomposeColor=pa;var Tle=gr.emphasize=e4,$le=gr.getContrastRatio=Mle;gr.getLuminance=cg;gr.hexToRgb=XF;gr.hslToRgb=JF;var fC=gr.lighten=vC;gr.private_safeAlpha=Fle;gr.private_safeColorChannel=void 0;gr.private_safeDarken=Nle;gr.private_safeEmphasize=Dle;gr.private_safeLighten=Lle;gr.recomposeColor=Tc;gr.rgbToHex=Ale;var lT=QF(Ple),kle=QF(Rle);function pC(e,t=0,r=1){return(0,kle.default)(e,t,r)}function XF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function jle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pa(e){if(e.type)return e;if(e.charAt(0)==="#")return pa(XF(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,lT.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,lT.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const YF=e=>{const t=pa(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};gr.colorChannel=YF;const Ile=(e,t)=>{try{return YF(e)}catch{return e}};gr.private_safeColorChannel=Ile;function Tc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Ale(e){if(e.indexOf("#")===0)return e;const{values:t}=pa(e);return`#${t.map((r,n)=>jle(n===3?Math.round(255*r):r)).join("")}`}function JF(e){e=pa(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Tc({type:s,values:u})}function cg(e){e=pa(e);let t=e.type==="hsl"||e.type==="hsla"?pa(JF(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Mle(e,t){const r=cg(e),n=cg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ZF(e,t){return e=pa(e),t=pC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tc(e)}function Fle(e,t,r){try{return ZF(e,t)}catch{return e}}function hC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Tc(e)}function Nle(e,t,r){try{return hC(e,t)}catch{return e}}function vC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Tc(e)}function Lle(e,t,r){try{return vC(e,t)}catch{return e}}function e4(e,t=.15){return cg(e)>.5?hC(e,t):vC(e,t)}function Dle(e,t,r){try{return e4(e,t)}catch{return e}}function Ble(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=pa(e),i=pa(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Tc({type:"rgb",values:s})}const zle=["mode","contrastThreshold","tonalOffset"],uT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sf.white,default:Sf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},r0={text:{primary:Sf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Sf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cT(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fC(e.main,a):t==="dark"&&(e.dark=dC(e.main,o)))}function Vle(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[700],light:xl[400],dark:xl[800]}}function Ule(e="light"){return e==="dark"?{main:bl[200],light:bl[50],dark:bl[400]}:{main:bl[500],light:bl[300],dark:bl[700]}}function Wle(e="light"){return e==="dark"?{main:yl[500],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[400],dark:yl[800]}}function Hle(e="light"){return e==="dark"?{main:wl[400],light:wl[300],dark:wl[700]}:{main:wl[700],light:wl[500],dark:wl[900]}}function qle(e="light"){return e==="dark"?{main:Sl[400],light:Sl[300],dark:Sl[700]}:{main:Sl[800],light:Sl[500],dark:Sl[900]}}function Kle(e="light"){return e==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:"#ed6c02",light:Kc[500],dark:Kc[900]}}function Gle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Pe(e,zle),o=e.primary||Vle(t),i=e.secondary||Ule(t),s=e.error||Wle(t),u=e.info||Hle(t),l=e.success||qle(t),c=e.warning||Kle(t);function f(y){return $le(y,r0.text.primary)>=r?r0.text.primary:uT.text.primary}const p=({color:y,name:S,mainShade:x=500,lightShade:m=300,darkShade:b=700})=>{if(y=T({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(No(11,S?` (${S})`:"",x));if(typeof y.main!="string")throw new Error(No(12,S?` (${S})`:"",JSON.stringify(y.main)));return cT(y,"light",m,n),cT(y,"dark",b,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:r0,light:uT};return Rr(T({common:T({},Sf),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:loe,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),a)}const Qle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xle(e){return Math.round(e*1e5)/1e5}const dT={textTransform:"uppercase"},fT='"Roboto", "Helvetica", "Arial", sans-serif';function Yle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=fT,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=Pe(r,Qle),v=a/14,g=f||(x=>`${x/l*v}rem`),y=(x,m,b,h,_)=>T({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:b},n===fT?{letterSpacing:`${Xle(h/m)}em`}:{},_,c),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,dT),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,dT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr(T({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},S),p,{clone:!1})}const Jle=.2,Zle=.14,eue=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Jle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eue})`].join(",")}const tue=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],rue=tue,nue=["duration","easing","delay"],aue={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pT(e){return`${Math.round(e)}ms`}function iue(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sue(e){const t=T({},aue,e.easing),r=T({},oue,e.duration);return T({getAutoHeightDuration:iue,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Pe(o,nue),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:pT(i)} ${s} ${typeof u=="string"?u:pT(u)}`).join(",")}},e,{easing:t,duration:r})}const lue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uue=lue,cue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dg(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Pe(e,cue);if(e.vars)throw new Error(No(18));const s=Gle(n),u=pp(e);let l=Rr(u,{mixins:Ole(u.breakpoints,r),palette:s,shadows:rue.slice(),typography:Yle(s,o),transitions:sue(a),zIndex:T({},uue)});return l=Rr(l,i),l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const due=dg(),Oy=due;function fo(){const e=Sy(Oy);return e[Js]||e}function fue({props:e,name:t}){return MF({props:e,name:t,defaultTheme:Oy,themeId:Js})}var vp={},n0={exports:{}},hT;function pue(){return hT||(hT=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(n0)),n0.exports}const t4=Do(gie),hue=Do(mie),vue=Do(Cie),gue=Do(Ose),mue=Do(fse),yue=Do(yse);var $c=it;Object.defineProperty(vp,"__esModule",{value:!0});var bue=vp.default=jue;vp.shouldForwardProp=qh;vp.systemDefaultTheme=void 0;var ea=$c(xF()),gx=$c(pue()),vT=Oue(t4),xue=hue;$c(vue);$c(gue);var wue=$c(mue),Sue=$c(yue);const _ue=["ownerState"],Cue=["variants"],Eue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function r4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(r4=function(n){return n?r:t})(e)}function Oue(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=r4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Pue(e){return Object.keys(e).length===0}function Rue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tue=vp.systemDefaultTheme=(0,wue.default)(),$ue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ah({defaultTheme:e,theme:t,themeId:r}){return Pue(t)?e:t[r]||t}function kue(e){return e?(t,r)=>r[e]:null}function Kh(e,t){let{ownerState:r}=t,n=(0,gx.default)(t,_ue);const a=typeof e=="function"?e((0,ea.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Kh(o,(0,ea.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,gx.default)(a,Cue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,ea.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,ea.default)({ownerState:r},n,r)):u.style))}),s}return a}function jue(e={}){const{themeId:t,defaultTheme:r=Tue,rootShouldForwardProp:n=qh,slotShouldForwardProp:a=qh}=e,o=i=>(0,Sue.default)((0,ea.default)({},i,{theme:ah((0,ea.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,vT.internal_processStyles)(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=kue($ue(l))}=s,v=(0,gx.default)(s,Eue),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=qh;l==="Root"||l==="root"?x=n:l?x=a:Rue(i)&&(x=void 0);const m=(0,vT.default)(i,(0,ea.default)({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||(0,xue.isPlainObject)(_)?C=>Kh(_,(0,ea.default)({},C,{theme:ah({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Kh(M,(0,ea.default)({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Kh({variants:F},(0,ea.default)({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}function n4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iue=e=>n4(e)&&e!=="classes",Wr=Iue,Aue=bue({themeId:Js,defaultTheme:Oy,rootShouldForwardProp:Wr}),ne=Aue,Mue=["theme"];function Fue(e){let{theme:t}=e,r=Pe(e,Mue);const n=t[Js];return R.jsx(vle,T({},r,{themeId:n?Js:void 0,theme:n||t}))}const Nue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gT=Nue;function Ke(e){return hle(e)}function Lue(e){return Ue("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Due=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bue=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(r)}`]};return qe(a,Lue,n)},zue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ge(r.color)}`],t[`fontSize${ge(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),a4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Pe(n,Due),g=d.isValidElement(a)&&a.type==="svg",y=T({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),S={};c||(S.viewBox=p);const x=Bue(y);return R.jsxs(zue,T({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},S,v,g&&a.props,{ownerState:y,children:[g?a.props.children:a,f?R.jsx("title",{children:f}):null]}))});a4.muiName="SvgIcon";const mT=a4;function An(e,t){function r(n,a){return R.jsx(mT,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=mT.muiName,d.memo(d.forwardRef(r))}const Vue={configure:e=>{lC.configure(e)}},Uue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ge,createChainedFunction:hx,createSvgIcon:An,debounce:Rc,deprecatedPropType:Wse,isMuiElement:Hh,ownerDocument:wr,ownerWindow:da,requirePropFactory:Hse,setRef:lg,unstable_ClassNameGenerator:Vue,unstable_useEnhancedEffect:qn,unstable_useId:el,unsupportedProp:Kse,useControlled:Yu,useEventCallback:fn,useForkRef:Jt,useIsFocusVisible:Ey},Symbol.toStringTag,{value:"Module"}));function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},mx(e,t)}function Py(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mx(e,t)}const yT={disabled:!1},fg=ke.createContext(null);var Wue=function(t){return t.scrollTop},fd="unmounted",os="exited",is="entering",$l="entered",yx="exiting",Ho=function(e){Py(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=os,o.appearStatus=is):u=$l:n.unmountOnExit||n.mountOnEnter?u=fd:u=os,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fd?{status:os}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==is&&i!==$l&&(o=is):(i===is||i===$l)&&(o=yx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===is){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this);i&&Wue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:fd})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[ld.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!a&&!i||yT.disabled){this.safeSetState({status:$l},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:is},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:$l},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ld.findDOMNode(this);if(!o||yT.disabled){this.safeSetState({status:os},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:yx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:os},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fd)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Pe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(fg.Provider,{value:null},typeof i=="function"?i(a,s):ke.cloneElement(ke.Children.only(i),s))},t}(ke.Component);Ho.contextType=fg;Ho.propTypes={};function Cl(){}Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cl,onEntering:Cl,onEntered:Cl,onExit:Cl,onExiting:Cl,onExited:Cl};Ho.UNMOUNTED=fd;Ho.EXITED=os;Ho.ENTERING=is;Ho.ENTERED=$l;Ho.EXITING=yx;const gC=Ho;function bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(e,t){var r=function(o){return t&&d.isValidElement(o)?t(o):o},n=Object.create(null);return e&&d.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Hue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Ju(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function Yue(e){return Ue("MuiPaper",e)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jue=["className","component","elevation","square","variant"],Zue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qe(o,Yue,a)},ece=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",gT(t.elevation))}, ${gt("#fff",gT(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Pe(n,Jue),c=T({},n,{component:o,elevation:i,square:s,variant:u}),f=Zue(c);return R.jsx(ece,T({as:o,ownerState:c,className:ue(f.root,a),ref:r},l))}),Yi=tce,rce=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],nce=["component","slots","slotProps"],ace=["component"];function oce(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Pe(t,rce),{component:l,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=o,p=Pe(o,nce),v=c[e]||n,g=UF(f[e],a),y=VF(T({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:S},internalRef:x}=y,m=Pe(y.props,ace),b=Jt(x,g==null?void 0:g.ref,t.ref),h=i?i(m):{},_=T({},a,h),C=e==="root"?S||l:S,E=Jl(v,T({},e==="root"&&!l&&!c[e]&&s,e!=="root"&&!c[e]&&s,m,C&&{as:C},{ref:b}),_);return Object.keys(h).forEach(w=>{delete E[w]}),[v,E]}function ice(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},g=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),R.jsx("span",{className:p,style:v,children:R.jsx("span",{className:g})})}const sce=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ra=sce,lce=["center","classes","className"];let Ry=e=>e,bT,xT,wT,ST;const xx=550,uce=80,cce=Pc(bT||(bT=Ry` 0% { transform: scale(0); opacity: 0.1; @@ -115,7 +115,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu transform: scale(1); opacity: 0.3; } -`)),cce=Pc(xT||(xT=Ry` +`)),dce=Pc(xT||(xT=Ry` 0% { opacity: 1; } @@ -123,7 +123,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { opacity: 0; } -`)),dce=Pc(wT||(wT=Ry` +`)),fce=Pc(wT||(wT=Ry` 0% { transform: scale(1); } @@ -135,7 +135,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { transform: scale(1); } -`)),fce=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pce=ne(oce,{name:"MuiTouchRipple",slot:"Ripple"})(ST||(ST=Ry` +`)),pce=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hce=ne(ice,{name:"MuiTouchRipple",slot:"Ripple"})(ST||(ST=Ry` opacity: 0; position: absolute; @@ -178,8 +178,8 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu animation-iteration-count: infinite; animation-delay: 200ms; } -`),ra.rippleVisible,uce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ra.child,ra.childLeaving,cce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.childPulsate,dce,({theme:e})=>e.transitions.easing.easeInOut),hce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Pe(n,sce),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),v=Ss(),g=d.useRef(null),y=d.useRef(null),S=d.useCallback(h=>{const{pulsate:_,rippleX:C,rippleY:E,rippleSize:w,cb:O}=h;l(P=>[...P,R.jsx(pce,{classes:{ripple:ue(o.ripple,ra.ripple),rippleVisible:ue(o.rippleVisible,ra.rippleVisible),ripplePulsate:ue(o.ripplePulsate,ra.ripplePulsate),child:ue(o.child,ra.child),childLeaving:ue(o.childLeaving,ra.childLeaving),childPulsate:ue(o.childPulsate,ra.childPulsate)},timeout:xx,pulsate:_,rippleX:C,rippleY:E,rippleSize:w},c.current)]),c.current+=1,f.current=O},[o]),x=d.useCallback((h={},_={},C=()=>{})=>{const{pulsate:E=!1,center:w=a||_.pulsate,fakeElement:O=!1}=_;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const P=O?null:y.current,k=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,$,F;if(w||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)j=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:z,clientY:M}=h.touches&&h.touches.length>0?h.touches[0]:h;j=Math.round(z-k.left),$=Math.round(M-k.top)}if(w)F=Math.sqrt((2*k.width**2+k.height**2)/3),F%2===0&&(F+=1);else{const z=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,M=Math.max(Math.abs((P?P.clientHeight:0)-$),$)*2+2;F=Math.sqrt(z**2+M**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},v.start(lce,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},[a,S,v]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),b=d.useCallback((h,_)=>{if(v.clear(),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(h,_)});return}g.current=null,l(C=>C.length>0?C.slice(1):C),f.current=_},[v]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:b}),[m,x,b]),R.jsx(fce,T({className:ue(ra.root,o.root,i),ref:y},s,{children:R.jsx(Que,{component:null,exit:!0,children:u})}))}),vce=hce;function gce(e){return Ue("MuiButtonBase",e)}const mce=We("MuiButtonBase",["root","disabled","focusVisible"]),yce=mce,bce=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],xce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=qe({root:["root",t&&"disabled",r&&"focusVisible"]},gce,a);return r&&n&&(i.root+=` ${n}`),i},wce=ne("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Sce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:S,onDragLeave:x,onFocus:m,onFocusVisible:b,onKeyDown:h,onKeyUp:_,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:O,onTouchMove:P,onTouchStart:k,tabIndex:j=0,TouchRippleProps:$,touchRippleRef:F,type:z}=n,M=Pe(n,bce),W=d.useRef(null),B=d.useRef(null),U=Jt(B,F),{isFocusVisibleRef:q,onFocus:ie,onBlur:oe,ref:Ee}=Ey(),[pe,Te]=d.useState(!1);l&&pe&&Te(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{Te(!0),W.current.focus()}}),[]);const[ye,be]=d.useState(!1);d.useEffect(()=>{be(!0)},[]);const we=ye&&!c&&!l;d.useEffect(()=>{pe&&p&&!c&&ye&&B.current.pulsate()},[c,p,pe,ye]);function ve(he,Re,Be=f){return fn(Ye=>(Re&&Re(Ye),!Be&&B.current&&B.current[he](Ye),!0))}const De=ve("start",C),Me=ve("stop",S),Qe=ve("stop",x),Ne=ve("stop",w),Ae=ve("stop",he=>{pe&&he.preventDefault(),E&&E(he)}),He=ve("start",k),ht=ve("stop",O),ut=ve("stop",P),V=ve("stop",he=>{oe(he),q.current===!1&&Te(!1),g&&g(he)},!1),K=fn(he=>{W.current||(W.current=he.currentTarget),ie(he),q.current===!0&&(Te(!0),b&&b(he)),m&&m(he)}),te=()=>{const he=W.current;return u&&u!=="button"&&!(he.tagName==="A"&&he.href)},se=d.useRef(!1),de=fn(he=>{p&&!se.current&&pe&&B.current&&he.key===" "&&(se.current=!0,B.current.stop(he,()=>{B.current.start(he)})),he.target===he.currentTarget&&te()&&he.key===" "&&he.preventDefault(),h&&h(he),he.target===he.currentTarget&&te()&&he.key==="Enter"&&!l&&(he.preventDefault(),y&&y(he))}),fe=fn(he=>{p&&he.key===" "&&B.current&&pe&&!he.defaultPrevented&&(se.current=!1,B.current.stop(he,()=>{B.current.pulsate(he)})),_&&_(he),y&&he.target===he.currentTarget&&te()&&he.key===" "&&!he.defaultPrevented&&y(he)});let Oe=u;Oe==="button"&&(M.href||M.to)&&(Oe=v);const ae={};Oe==="button"?(ae.type=z===void 0?"button":z,ae.disabled=l):(!M.href&&!M.to&&(ae.role="button"),l&&(ae["aria-disabled"]=l));const Z=Jt(r,Ee,W),G=T({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:pe}),le=xce(G);return R.jsxs(wce,T({as:Oe,className:ue(le.root,s),ownerState:G,onBlur:V,onClick:y,onContextMenu:Me,onFocus:K,onKeyDown:de,onKeyUp:fe,onMouseDown:De,onMouseLeave:Ae,onMouseUp:Ne,onDragLeave:Qe,onTouchEnd:ht,onTouchMove:ut,onTouchStart:He,ref:Z,tabIndex:l?-1:j,type:z},ae,M,{children:[i,we?R.jsx(vce,T({ref:U,center:o},$)):null]}))}),Ma=Sce;function _ce(e){return Ue("MuiIconButton",e)}const Cce=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ece=Cce,Oce=["edge","children","className","color","disabled","disableFocusRipple","size"],Pce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ge(n)}`,a&&`edge${ge(a)}`,`size${ge(o)}`]};return qe(i,_ce,t)},Rce=ne(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ge(r.color)}`],r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":T({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ece.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Tce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=Pe(n,Oce),p=T({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),v=Pce(p);return R.jsx(Rce,T({className:ue(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:o}))}),Pr=Tce;function $ce(e){return Ue("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jce=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${ge(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return qe(s,$ce,i)},Ice=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),_T={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ace={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mce=e=>Ace[e]||e,Fce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTypography"}),a=Mce(n.color),o=_y(T({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=_T}=o,g=Pe(o,kce),y=T({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:v}),S=u||(f?"p":v[p]||_T[p])||"span",x=jce(y);return R.jsx(Ice,T({as:S,ref:r,ownerState:y,className:ue(x.root,s)},g))}),_t=Fce;function Nce(e){return Ue("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Lce=["className","color","enableColorOnDark","position"],Dce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${ge(t)}`,`position${ge(r)}`]};return qe(a,Nce,n)},oh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Bce=ne(Yi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:oh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:oh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:oh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:oh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),zce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Pe(n,Lce),l=T({},n,{color:o,position:s,enableColorOnDark:i}),c=Dce(l);return R.jsx(Bce,T({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),Vce=zce;var xC={};Object.defineProperty(xC,"__esModule",{value:!0});var o4=xC.default=void 0,Uce=Hce(d),Wce=t4;function i4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(i4=function(n){return n?r:t})(e)}function Hce(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=i4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function qce(e){return Object.keys(e).length===0}function Kce(e=null){const t=Uce.useContext(Wce.ThemeContext);return!t||qce(t)?e:t}o4=xC.default=Kce;var Tn="top",ha="bottom",va="right",$n="left",wC="auto",gp=[Tn,ha,va,$n],Zu="start",$f="end",Gce="clippingParents",s4="viewport",Qc="popper",Qce="reference",CT=gp.reduce(function(e,t){return e.concat([t+"-"+Zu,t+"-"+$f])},[]),l4=[].concat(gp,[wC]).reduce(function(e,t){return e.concat([t,t+"-"+Zu,t+"-"+$f])},[]),Xce="beforeRead",Yce="read",Jce="afterRead",Zce="beforeMain",ede="main",tde="afterMain",rde="beforeWrite",nde="write",ade="afterWrite",ode=[Xce,Yce,Jce,Zce,ede,tde,rde,nde,ade];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function la(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SC(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ide(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!la(o)||!ao(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function sde(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!la(a)||!ao(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const lde={name:"applyStyles",enabled:!0,phase:"write",fn:ide,effect:sde,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ls=Math.max,pg=Math.min,ec=Math.round;function wx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function u4(){return!/^((?!chrome|android).)*safari/i.test(wx())}function tc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&la(e)&&(a=e.offsetWidth>0&&ec(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ec(n.height)/e.offsetHeight||1);var i=tl(e)?Kn(e):window,s=i.visualViewport,u=!u4()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function _C(e){var t=tc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function c4(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SC(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Lo(e){return Kn(e).getComputedStyle(e)}function ude(e){return["table","td","th"].indexOf(ao(e))>=0}function Ji(e){return((tl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ty(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(SC(e)?e.host:null)||Ji(e)}function ET(e){return!la(e)||Lo(e).position==="fixed"?null:e.offsetParent}function cde(e){var t=/firefox/i.test(wx()),r=/Trident/i.test(wx());if(r&&la(e)){var n=Lo(e);if(n.position==="fixed")return null}var a=Ty(e);for(SC(a)&&(a=a.host);la(a)&&["html","body"].indexOf(ao(a))<0;){var o=Lo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function mp(e){for(var t=Kn(e),r=ET(e);r&&ude(r)&&Lo(r).position==="static";)r=ET(r);return r&&(ao(r)==="html"||ao(r)==="body"&&Lo(r).position==="static")?t:r||cde(e)||t}function CC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Md(e,t,r){return Ls(e,pg(t,r))}function dde(e,t,r){var n=Md(e,t,r);return n>r?r:n}function d4(){return{top:0,right:0,bottom:0,left:0}}function f4(e){return Object.assign({},d4(),e)}function p4(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var fde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,f4(typeof t!="number"?t:p4(t,gp))};function pde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=ro(r.placement),u=CC(s),l=[$n,va].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var f=fde(a.padding,r),p=_C(o),v=u==="y"?Tn:$n,g=u==="y"?ha:va,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],S=i[u]-r.rects.reference[u],x=mp(o),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-S/2,h=f[v],_=m-p[c]-f[g],C=m/2-p[c]/2+b,E=Md(h,C,_),w=u;r.modifiersData[n]=(t={},t[w]=E,t.centerOffset=E-C,t)}}function hde(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||c4(t.elements.popper,a)&&(t.elements.arrow=a))}const vde={name:"arrow",enabled:!0,phase:"main",fn:pde,effect:hde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rc(e){return e.split("-")[1]}var gde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ec(r*a)/a||0,y:ec(n*a)/a||0}}function OT(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,g=i.y,y=g===void 0?0:g,S=typeof c=="function"?c({x:v,y}):{x:v,y};v=S.x,y=S.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=$n,h=Tn,_=window;if(l){var C=mp(r),E="clientHeight",w="clientWidth";if(C===Kn(r)&&(C=Ji(r),Lo(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",w="scrollWidth")),C=C,a===Tn||(a===$n||a===va)&&o===$f){h=ha;var O=f&&C===_&&_.visualViewport?_.visualViewport.height:C[E];y-=O-n.height,y*=u?1:-1}if(a===$n||(a===Tn||a===ha)&&o===$f){b=va;var P=f&&C===_&&_.visualViewport?_.visualViewport.width:C[w];v-=P-n.width,v*=u?1:-1}}var k=Object.assign({position:s},l&&gde),j=c===!0?mde({x:v,y},Kn(r)):{x:v,y};if(v=j.x,y=j.y,u){var $;return Object.assign({},k,($={},$[h]=m?"0":"",$[b]=x?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",$))}return Object.assign({},k,(t={},t[h]=m?y+"px":"",t[b]=x?v+"px":"",t.transform="",t))}function yde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:ro(t.placement),variation:rc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OT(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OT(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yde,data:{}};var ih={passive:!0};function xde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Kn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,ih)}),s&&u.addEventListener("resize",r.update,ih),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,ih)}),s&&u.removeEventListener("resize",r.update,ih)}}const wde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xde,data:{}};var Sde={left:"right",right:"left",bottom:"top",top:"bottom"};function Gh(e){return e.replace(/left|right|bottom|top/g,function(t){return Sde[t]})}var _de={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,function(t){return _de[t]})}function EC(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function OC(e){return tc(Ji(e)).left+EC(e).scrollLeft}function Cde(e,t){var r=Kn(e),n=Ji(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=u4();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+OC(e),y:u}}function Ede(e){var t,r=Ji(e),n=EC(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Ls(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ls(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+OC(e),u=-n.scrollTop;return Lo(a||r).direction==="rtl"&&(s+=Ls(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function PC(e){var t=Lo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function h4(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:la(e)&&PC(e)?e:h4(Ty(e))}function Fd(e,t){var r;t===void 0&&(t=[]);var n=h4(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),i=a?[o].concat(o.visualViewport||[],PC(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Fd(Ty(i)))}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ode(e,t){var r=tc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function RT(e,t,r){return t===s4?Sx(Cde(e,r)):tl(t)?Ode(t,r):Sx(Ede(Ji(e)))}function Pde(e){var t=Fd(Ty(e)),r=["absolute","fixed"].indexOf(Lo(e).position)>=0,n=r&&la(e)?mp(e):e;return tl(n)?t.filter(function(a){return tl(a)&&c4(a,n)&&ao(a)!=="body"}):[]}function Rde(e,t,r,n){var a=t==="clippingParents"?Pde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=RT(e,l,n);return u.top=Ls(c.top,u.top),u.right=pg(c.right,u.right),u.bottom=pg(c.bottom,u.bottom),u.left=Ls(c.left,u.left),u},RT(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function v4(e){var t=e.reference,r=e.element,n=e.placement,a=n?ro(n):null,o=n?rc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ha:u={x:i,y:t.y+t.height};break;case va:u={x:t.x+t.width,y:s};break;case $n:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CC(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Zu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case $f:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function kf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?Gce:s,l=r.rootBoundary,c=l===void 0?s4:l,f=r.elementContext,p=f===void 0?Qc:f,v=r.altBoundary,g=v===void 0?!1:v,y=r.padding,S=y===void 0?0:y,x=f4(typeof S!="number"?S:p4(S,gp)),m=p===Qc?Qce:Qc,b=e.rects.popper,h=e.elements[g?m:p],_=Rde(tl(h)?h:h.contextElement||Ji(e.elements.popper),u,c,i),C=tc(e.elements.reference),E=v4({reference:C,element:b,strategy:"absolute",placement:a}),w=Sx(Object.assign({},b,E)),O=p===Qc?w:C,P={top:_.top-O.top+x.top,bottom:O.bottom-_.bottom+x.bottom,left:_.left-O.left+x.left,right:O.right-_.right+x.right},k=e.modifiersData.offset;if(p===Qc&&k){var j=k[a];Object.keys(P).forEach(function($){var F=[va,ha].indexOf($)>=0?1:-1,z=[Tn,ha].indexOf($)>=0?"y":"x";P[$]+=j[z]*F})}return P}function Tde(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?l4:u,c=rc(n),f=c?s?CT:CT.filter(function(g){return rc(g)===c}):gp,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var v=p.reduce(function(g,y){return g[y]=kf(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ro(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function $de(e){if(ro(e)===wC)return[];var t=Gh(e);return[PT(e),t,PT(t)]}function kde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,y=r.allowedAutoPlacements,S=t.options.placement,x=ro(S),m=x===S,b=u||(m||!g?[Gh(S)]:$de(S)),h=[S].concat(b).reduce(function(pe,Te){return pe.concat(ro(Te)===wC?Tde(t,{placement:Te,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:y}):Te)},[]),_=t.rects.reference,C=t.rects.popper,E=new Map,w=!0,O=h[0],P=0;P=0,z=F?"width":"height",M=kf(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),W=F?$?va:$n:$?ha:Tn;_[z]>C[z]&&(W=Gh(W));var B=Gh(W),U=[];if(o&&U.push(M[j]<=0),s&&U.push(M[W]<=0,M[B]<=0),U.every(function(pe){return pe})){O=k,w=!1;break}E.set(k,U)}if(w)for(var q=g?3:1,ie=function(Te){var ye=h.find(function(be){var we=E.get(be);if(we)return we.slice(0,Te).every(function(ve){return ve})});if(ye)return O=ye,"break"},oe=q;oe>0;oe--){var Ee=ie(oe);if(Ee==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const jde={name:"flip",enabled:!0,phase:"main",fn:kde,requiresIfExists:["offset"],data:{_skip:!1}};function TT(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $T(e){return[Tn,va,ha,$n].some(function(t){return e[t]>=0})}function Ide(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kf(t,{elementContext:"reference"}),s=kf(t,{altBoundary:!0}),u=TT(i,n),l=TT(s,a,o),c=$T(u),f=$T(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Ade={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ide};function Mde(e,t,r){var n=ro(e),a=[$n,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[$n,va].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Fde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=l4.reduce(function(c,f){return c[f]=Mde(f,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Nde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fde};function Lde(e){var t=e.state,r=e.name;t.modifiersData[r]=v4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Dde={name:"popperOffsets",enabled:!0,phase:"read",fn:Lde,data:{}};function Bde(e){return e==="x"?"y":"x"}function zde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,g=r.tetherOffset,y=g===void 0?0:g,S=kf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=ro(t.placement),m=rc(t.placement),b=!m,h=CC(x),_=Bde(h),C=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(o){var $,F=h==="y"?Tn:$n,z=h==="y"?ha:va,M=h==="y"?"height":"width",W=C[h],B=W+S[F],U=W-S[z],q=v?-w[M]/2:0,ie=m===Zu?E[M]:w[M],oe=m===Zu?-w[M]:-E[M],Ee=t.elements.arrow,pe=v&&Ee?_C(Ee):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:d4(),ye=Te[F],be=Te[z],we=Md(0,E[M],pe[M]),ve=b?E[M]/2-q-we-ye-P.mainAxis:ie-we-ye-P.mainAxis,De=b?-E[M]/2+q+we+be+P.mainAxis:oe+we+be+P.mainAxis,Me=t.elements.arrow&&mp(t.elements.arrow),Qe=Me?h==="y"?Me.clientTop||0:Me.clientLeft||0:0,Ne=($=k==null?void 0:k[h])!=null?$:0,Ae=W+ve-Ne-Qe,He=W+De-Ne,ht=Md(v?pg(B,Ae):B,W,v?Ls(U,He):U);C[h]=ht,j[h]=ht-W}if(s){var ut,V=h==="x"?Tn:$n,K=h==="x"?ha:va,te=C[_],se=_==="y"?"height":"width",de=te+S[V],fe=te-S[K],Oe=[Tn,$n].indexOf(x)!==-1,ae=(ut=k==null?void 0:k[_])!=null?ut:0,Z=Oe?de:te-E[se]-w[se]-ae+P.altAxis,G=Oe?te+E[se]+w[se]-ae-P.altAxis:fe,le=v&&Oe?dde(Z,te,G):Md(v?Z:de,te,v?G:fe);C[_]=le,j[_]=le-te}t.modifiersData[n]=j}}const Vde={name:"preventOverflow",enabled:!0,phase:"main",fn:zde,requiresIfExists:["offset"]};function Ude(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wde(e){return e===Kn(e)||!la(e)?EC(e):Ude(e)}function Hde(e){var t=e.getBoundingClientRect(),r=ec(t.width)/e.offsetWidth||1,n=ec(t.height)/e.offsetHeight||1;return r!==1||n!==1}function qde(e,t,r){r===void 0&&(r=!1);var n=la(t),a=la(t)&&Hde(t),o=Ji(t),i=tc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ao(t)!=="body"||PC(o))&&(s=Wde(t)),la(t)?(u=tc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=OC(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Kde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Gde(e){var t=Kde(e);return ode.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Qde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Xde(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var kT={placement:"bottom",modifiers:[],strategy:"absolute"};function jT(){for(var e=arguments.length,t=new Array(e),r=0;r{o||s(efe(a)||document.body)},[a,o]),qn(()=>{if(i&&!o)return lg(r,i),()=>{lg(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return R.jsx(d.Fragment,{children:n})}return R.jsx(d.Fragment,{children:i&&tp.createPortal(n,i)})}),g4=tfe;function rfe(e){return Ue("MuiPopper",e)}We("MuiPopper",["root"]);const nfe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],afe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ofe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function _x(e){return typeof e=="function"?e():e}function ife(e){return e.nodeType!==void 0}const sfe=e=>{const{classes:t}=e;return qe({root:["root"]},rfe,t)},lfe={},ufe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:v={},slots:g={},TransitionProps:y}=t,S=Pe(t,nfe),x=d.useRef(null),m=Jt(x,r),b=d.useRef(null),h=Jt(b,p),_=d.useRef(h);qn(()=>{_.current=h},[h]),d.useImperativeHandle(p,()=>b.current,[]);const C=ofe(c,i),[E,w]=d.useState(C),[O,P]=d.useState(_x(a));d.useEffect(()=>{b.current&&b.current.forceUpdate()}),d.useEffect(()=>{a&&P(_x(a))},[a]),qn(()=>{if(!O||!l)return;const z=B=>{w(B.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{z(B)}}];u!=null&&(M=M.concat(u)),f&&f.modifiers!=null&&(M=M.concat(f.modifiers));const W=Zde(O,x.current,T({placement:C},f,{modifiers:M}));return _.current(W),()=>{W.destroy(),_.current(null)}},[O,s,u,l,f,C]);const k={placement:E};y!==null&&(k.TransitionProps=y);const j=sfe(t),$=(n=g.root)!=null?n:"div",F=fa({elementType:$,externalSlotProps:v.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:j.root});return R.jsx($,T({},F,{children:typeof o=="function"?o(k):o}))}),cfe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=lfe,popperRef:v,style:g,transition:y=!1,slotProps:S={},slots:x={}}=t,m=Pe(t,afe),[b,h]=d.useState(!0),_=()=>{h(!1)},C=()=>{h(!0)};if(!u&&!c&&(!y||b))return null;let E;if(o)E=o;else if(n){const P=_x(n);E=P&&ife(P)?wr(P).body:wr(null).body}const w=!c&&u&&(!y||b)?"none":void 0,O=y?{in:c,onEnter:_,onExited:C}:void 0;return R.jsx(g4,{disablePortal:s,container:E,children:R.jsx(ufe,T({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!b:c,placement:f,popperOptions:p,popperRef:v,slotProps:S,slots:x},m,{style:T({position:"fixed",top:0,left:0,display:w},g),TransitionProps:O,children:a}))})}),dfe=cfe,ffe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],pfe=ne(dfe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hfe=d.forwardRef(function(t,r){var n;const a=o4(),o=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m,slots:b,slotProps:h}=o,_=Pe(o,ffe),C=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,E=T({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m},_);return R.jsx(pfe,T({as:s,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:h??l},E,{ref:r}))}),m4=hfe,vfe=An(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function gfe(e){return Ue("MuiChip",e)}const mfe=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Et=mfe,yfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],bfe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ge(n)}`,`color${ge(a)}`,s&&"clickable",s&&`clickableColor${ge(a)}`,i&&"deletable",i&&`deletableColor${ge(a)}`,`${u}${ge(a)}`],label:["label",`label${ge(n)}`],avatar:["avatar",`avatar${ge(n)}`,`avatarColor${ge(a)}`],icon:["icon",`icon${ge(n)}`,`iconColor${ge(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ge(n)}`,`deleteIconColor${ge(a)}`,`deleteIcon${ge(u)}Color${ge(a)}`]};return qe(l,gfe,t)},xfe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${ge(s)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${ge(n)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${ge(s)}`]},{[`& .${Et.icon}`]:t[`iconColor${ge(a)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(s)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${ge(n)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(u)}Color${ge(n)}`]},t.root,t[`size${ge(s)}`],t[`color${ge(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ge(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ge(n)}`],t[u],t[`${u}${ge(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Et.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:gt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Et.avatar}`]:{marginLeft:4},[`& .${Et.avatarSmall}`]:{marginLeft:2},[`& .${Et.icon}`]:{marginLeft:4},[`& .${Et.iconSmall}`]:{marginLeft:2},[`& .${Et.deleteIcon}`]:{marginRight:5},[`& .${Et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),wfe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ge(n)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function IT(e){return e.key==="Backspace"||e.key==="Delete"}const Sfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:S,size:x="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:h=!1}=n,_=Pe(n,yfe),C=d.useRef(null),E=Jt(C,r),w=U=>{U.stopPropagation(),g&&g(U)},O=U=>{U.currentTarget===U.target&&IT(U)&&U.preventDefault(),y&&y(U)},P=U=>{U.currentTarget===U.target&&(g&&IT(U)?g(U):U.key==="Escape"&&C.current&&C.current.blur()),S&&S(U)},k=i!==!1&&v?!0:i,j=k||g?Ma:u||"div",$=T({},n,{component:j,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:k,variant:m}),F=bfe($),z=j===Ma?T({component:u||"div",focusVisibleClassName:F.focusVisible},g&&{disableRipple:!0}):{};let M=null;g&&(M=l&&d.isValidElement(l)?d.cloneElement(l,{className:ue(l.props.className,F.deleteIcon),onClick:w}):R.jsx(vfe,{className:ue(F.deleteIcon),onClick:w}));let W=null;a&&d.isValidElement(a)&&(W=d.cloneElement(a,{className:ue(F.avatar,a.props.className)}));let B=null;return f&&d.isValidElement(f)&&(B=d.cloneElement(f,{className:ue(F.icon,f.props.className)})),R.jsxs(xfe,T({as:j,className:ue(F.root,o),disabled:k&&c?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:P,ref:E,tabIndex:h&&c?-1:b,ownerState:$},z,_,{children:[W||B,R.jsx(wfe,{className:ue(F.label),ownerState:$,children:p}),M]}))}),_fe=Sfe,Cfe=["onChange","maxRows","minRows","style","value"];function sh(e){return parseInt(e,10)||0}const Efe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ofe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Pfe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Pe(t,Cfe),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=Jt(r,c),p=d.useRef(null),v=d.useRef(null),g=d.useCallback(()=>{const x=c.current,b=da(x).getComputedStyle(x);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=v.current;h.style.width=b.width,h.value=x.value||t.placeholder||"x",h.value.slice(-1)===` -`&&(h.value+=" ");const _=b.boxSizing,C=sh(b.paddingBottom)+sh(b.paddingTop),E=sh(b.borderBottomWidth)+sh(b.borderTopWidth),w=h.scrollHeight;h.value="x";const O=h.scrollHeight;let P=w;o&&(P=Math.max(Number(o)*O,P)),a&&(P=Math.min(Number(a)*O,P)),P=Math.max(P,O);const k=P+(_==="border-box"?C+E:0),j=Math.abs(P-w)<=1;return{outerHeightStyle:k,overflowing:j}},[a,o,t.placeholder]),y=d.useCallback(()=>{const x=g();if(Ofe(x))return;const m=x.outerHeightStyle,b=c.current;p.current!==m&&(p.current=m,b.style.height=`${m}px`),b.style.overflow=x.overflowing?"hidden":""},[g]);qn(()=>{const x=()=>{y()};let m;const b=Rc(x),h=c.current,_=da(h);_.addEventListener("resize",b);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(h)),()=>{b.clear(),cancelAnimationFrame(m),_.removeEventListener("resize",b),C&&C.disconnect()}},[g,y]),qn(()=>{y()});const S=x=>{l||y(),n&&n(x)};return R.jsxs(d.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:S,ref:f,rows:o,style:i},u)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:T({},Efe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),Rfe=Pfe;function Zi({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const Tfe=d.createContext(void 0),$y=Tfe;function po(){return d.useContext($y)}function y4(e){return R.jsx(hse,T({},e,{defaultTheme:Oy,themeId:Js}))}function AT(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hg(e,t=!1){return e&&(AT(e.value)&&e.value!==""||t&&AT(e.defaultValue)&&e.defaultValue!=="")}function $fe(e){return e.startAdornment}function kfe(e){return Ue("MuiInputBase",e)}const jfe=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nc=jfe,Ife=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ky=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ge(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jy=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Afe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:v,type:g}=e,y={root:["root",`color${ge(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ge(p)}`,c&&"multiline",v&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return qe(y,kfe,t)},Iy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ky})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ay=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${nc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Mfe=R.jsx(y4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ffe=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:S,inputComponent:x="input",inputProps:m={},inputRef:b,maxRows:h,minRows:_,multiline:C=!1,name:E,onBlur:w,onChange:O,onClick:P,onFocus:k,onKeyDown:j,onKeyUp:$,placeholder:F,readOnly:z,renderSuffix:M,rows:W,slotProps:B={},slots:U={},startAdornment:q,type:ie="text",value:oe}=a,Ee=Pe(a,Ife),pe=m.value!=null?m.value:oe,{current:Te}=d.useRef(pe!=null),ye=d.useRef(),be=d.useCallback(le=>{},[]),we=Jt(ye,b,m.ref,be),[ve,De]=d.useState(!1),Me=po(),Qe=Zi({props:a,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Me?Me.focused:ve,d.useEffect(()=>{!Me&&p&&ve&&(De(!1),w&&w())},[Me,p,ve,w]);const Ne=Me&&Me.onFilled,Ae=Me&&Me.onEmpty,He=d.useCallback(le=>{hg(le)?Ne&&Ne():Ae&&Ae()},[Ne,Ae]);qn(()=>{Te&&He({value:pe})},[pe,He,Te]);const ht=le=>{if(Qe.disabled){le.stopPropagation();return}k&&k(le),m.onFocus&&m.onFocus(le),Me&&Me.onFocus?Me.onFocus(le):De(!0)},ut=le=>{w&&w(le),m.onBlur&&m.onBlur(le),Me&&Me.onBlur?Me.onBlur(le):De(!1)},V=(le,...he)=>{if(!Te){const Re=le.target||ye.current;if(Re==null)throw new Error(No(1));He({value:Re.value})}m.onChange&&m.onChange(le,...he),O&&O(le,...he)};d.useEffect(()=>{He(ye.current)},[]);const K=le=>{ye.current&&le.currentTarget===le.target&&ye.current.focus(),P&&P(le)};let te=x,se=m;C&&te==="input"&&(W?se=T({type:void 0,minRows:W,maxRows:W},se):se=T({type:void 0,maxRows:h,minRows:_},se),te=Rfe);const de=le=>{He(le.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};d.useEffect(()=>{Me&&Me.setAdornedStart(!!q)},[Me,q]);const fe=T({},a,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:g,error:Qe.error,focused:Qe.focused,formControl:Me,fullWidth:y,hiddenLabel:Qe.hiddenLabel,multiline:C,size:Qe.size,startAdornment:q,type:ie}),Oe=Afe(fe),ae=U.root||l.Root||Iy,Z=B.root||c.root||{},G=U.input||l.Input||Ay;return se=T({},se,(n=B.input)!=null?n:c.input),R.jsxs(d.Fragment,{children:[!v&&Mfe,R.jsxs(ae,T({},Z,!Rf(ae)&&{ownerState:T({},fe,Z.ownerState)},{ref:r,onClick:K},Ee,{className:ue(Oe.root,Z.className,u,z&&"MuiInputBase-readOnly"),children:[q,R.jsx($y.Provider,{value:null,children:R.jsx(G,T({ownerState:fe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Qe.disabled,id:S,onAnimationStart:de,name:E,placeholder:F,readOnly:z,required:Qe.required,rows:W,value:pe,onKeyDown:j,onKeyUp:$,type:ie},se,!Rf(G)&&{as:te,ownerState:T({},fe,se.ownerState)},{ref:we,className:ue(Oe.input,se.className,z&&"MuiInputBase-readOnly"),onBlur:ut,onChange:V,onFocus:ht}))}),g,M?M(T({},Qe,{startAdornment:q})):null]}))]})}),My=Ffe;function Nfe(e){return Ue("MuiInput",e)}const Lfe=T({},nc,We("MuiInput",["root","underline","input"])),Xc=Lfe;function Dfe(e){return Ue("MuiOutlinedInput",e)}const Bfe=T({},nc,We("MuiOutlinedInput",["root","notchedOutline","input"])),Yo=Bfe;function zfe(e){return Ue("MuiFilledInput",e)}const Vfe=T({},nc,We("MuiFilledInput",["root","underline","input"])),es=Vfe,Ufe=An(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Wfe=An(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Hfe(e){return Ue("MuiAvatar",e)}We("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const qfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Kfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return qe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Hfe,t)},Gfe=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:T({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Qfe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Xfe=ne(Wfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Yfe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const Jfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:f,src:p,srcSet:v,variant:g="circular"}=n,y=Pe(n,qfe);let S=null;const x=Yfe(T({},c,{src:p,srcSet:v})),m=p||v,b=m&&x!=="error",h=T({},n,{colorDefault:!b,component:s,variant:g}),_=Kfe(h),[C,E]=ace("img",{className:_.img,elementType:Qfe,externalForwardedProps:{slots:u,slotProps:{img:T({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:v,sizes:f},ownerState:h});return b?S=R.jsx(C,T({},E)):o||o===0?S=o:m&&a?S=a[0]:S=R.jsx(Xfe,{ownerState:h,className:_.fallback}),R.jsx(Gfe,T({as:s,ownerState:h,className:ue(_.root,i),ref:r},y,{children:S}))}),vg=Jfe,Zfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],epe={entering:{opacity:1},entered:{opacity:1}},tpe=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:g,onExiting:y,style:S,timeout:x=a,TransitionComponent:m=gC}=t,b=Pe(t,Zfe),h=d.useRef(null),_=Jt(h,s.ref,r),C=F=>z=>{if(F){const M=h.current;z===void 0?F(M):F(M,z)}},E=C(p),w=C((F,z)=>{bC(F);const M=Ju({style:S,timeout:x,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",M),F.style.transition=n.transitions.create("opacity",M),c&&c(F,z)}),O=C(f),P=C(y),k=C(F=>{const z=Ju({style:S,timeout:x,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",z),F.style.transition=n.transitions.create("opacity",z),v&&v(F)}),j=C(g),$=F=>{o&&o(h.current,F)};return R.jsx(m,T({appear:i,in:l,nodeRef:h,onEnter:w,onEntered:O,onEntering:E,onExit:k,onExited:j,onExiting:P,addEndListener:$,timeout:x},b,{children:(F,z)=>d.cloneElement(s,T({style:T({opacity:0,visibility:F==="exited"&&!l?"hidden":void 0},epe[F],S,s.props.style),ref:_},z))}))}),b4=tpe;function rpe(e){return Ue("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const npe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ape=e=>{const{classes:t,invisible:r}=e;return qe({root:["root",r&&"invisible"]},rpe,t)},ope=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ipe=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:S=b4,transitionDuration:x}=i,m=Pe(i,npe),b=T({},i,{component:l,invisible:p}),h=ape(b),_=(n=g.root)!=null?n:f.root;return R.jsx(S,T({in:v,timeout:x},m,{children:R.jsx(ope,T({"aria-hidden":!0},_,{as:(a=(o=y.root)!=null?o:c.Root)!=null?a:l,className:ue(h.root,u,_==null?void 0:_.className),ownerState:T({},b,_==null?void 0:_.ownerState),classes:h,ref:r,children:s}))}))}),x4=ipe,spe=We("MuiBox",["root"]),lpe=spe,upe=dg(),cpe=wse({themeId:Js,defaultTheme:upe,defaultClassName:lpe.root,generateClassName:lC.generate}),Qh=cpe;function dpe(e){return Ue("MuiButton",e)}const fpe=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),lh=fpe,ppe=d.createContext({}),hpe=ppe,vpe=d.createContext(void 0),gpe=vpe,mpe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ype=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${ge(t)}`,`size${ge(a)}`,`${o}Size${ge(a)}`,`color${ge(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ge(a)}`],endIcon:["icon","endIcon",`iconSize${ge(a)}`]},u=qe(s,dpe,i);return T({},i,u)},w4=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),bpe=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ge(r.color)}`],t[`size${ge(r.size)}`],t[`${r.variant}Size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${lh.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lh.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lh.disabled}`]:{boxShadow:"none"}}),xpe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},w4(e))),wpe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},w4(e))),Spe=d.forwardRef(function(t,r){const n=d.useContext(hpe),a=d.useContext(gpe),o=Of(n,t),i=Ke({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:S=!1,size:x="medium",startIcon:m,type:b,variant:h="text"}=i,_=Pe(i,mpe),C=T({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:S,size:x,type:b,variant:h}),E=ype(C),w=m&&R.jsx(xpe,{className:E.startIcon,ownerState:C,children:m}),O=g&&R.jsx(wpe,{className:E.endIcon,ownerState:C,children:g}),P=a||"";return R.jsxs(bpe,T({ownerState:C,className:ue(n.className,E.root,c,P),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ue(E.focusVisible,y),ref:r,type:b},_,{classes:E,children:[w,s,O]}))}),hn=Spe;function _pe(e){return Ue("MuiCard",e)}We("MuiCard",["root"]);const Cpe=["className","raised"],Epe=e=>{const{classes:t}=e;return qe({root:["root"]},_pe,t)},Ope=ne(Yi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Ppe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Pe(n,Cpe),s=T({},n,{raised:o}),u=Epe(s);return R.jsx(Ope,T({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))}),oo=Ppe;function Rpe(e){return Ue("MuiCardContent",e)}We("MuiCardContent",["root"]);const Tpe=["className","component"],$pe=e=>{const{classes:t}=e;return qe({root:["root"]},Rpe,t)},kpe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),jpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Pe(n,Tpe),s=T({},n,{component:o}),u=$pe(s);return R.jsx(kpe,T({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))}),Di=jpe;function Ipe(e){return Ue("MuiCardHeader",e)}const Ape=We("MuiCardHeader",["root","avatar","action","content","title","subheader"]),MT=Ape,Mpe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Fpe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ipe,t)},Npe=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${MT.title}`]:t.title,[`& .${MT.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Lpe=ne("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Dpe=ne("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Bpe=ne("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),zpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=n,v=Pe(n,Mpe),g=T({},n,{component:s,disableTypography:u}),y=Fpe(g);let S=f;S!=null&&S.type!==_t&&!u&&(S=R.jsx(_t,T({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},p,{children:S})));let x=l;return x!=null&&x.type!==_t&&!u&&(x=R.jsx(_t,T({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),R.jsxs(Npe,T({className:ue(y.root,i),as:s,ref:r,ownerState:g},v,{children:[o&&R.jsx(Lpe,{className:y.avatar,ownerState:g,children:o}),R.jsxs(Bpe,{className:y.content,ownerState:g,children:[S,x]}),a&&R.jsx(Dpe,{className:y.action,ownerState:g,children:a})]}))}),FT=zpe;function Vpe(e){return Ue("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Upe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Wpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${ge(a)}`],input:["input"]};return qe(o,Vpe,t)},Hpe=ne(Ma)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),qpe=ne("input",{shouldForwardProp:Wr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Kpe=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:v,inputRef:g,name:y,onBlur:S,onChange:x,onFocus:m,readOnly:b,required:h=!1,tabIndex:_,type:C,value:E}=t,w=Pe(t,Upe),[O,P]=Yu({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),k=po(),j=U=>{m&&m(U),k&&k.onFocus&&k.onFocus(U)},$=U=>{S&&S(U),k&&k.onBlur&&k.onBlur(U)},F=U=>{if(U.nativeEvent.defaultPrevented)return;const q=U.target.checked;P(q),x&&x(U,q)};let z=u;k&&typeof z>"u"&&(z=k.disabled);const M=C==="checkbox"||C==="radio",W=T({},t,{checked:O,disabled:z,disableFocusRipple:l,edge:c}),B=Wpe(W);return R.jsxs(Hpe,T({component:"span",className:ue(B.root,i),centerRipple:!0,focusRipple:!l,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:$,ownerState:W,ref:r},w,{children:[R.jsx(qpe,T({autoFocus:n,checked:a,defaultChecked:s,className:B.input,disabled:z,id:M?p:void 0,name:y,onChange:F,readOnly:b,ref:g,required:h,ownerState:W,tabIndex:_,type:C},C==="checkbox"&&E===void 0?{}:{value:E},v)),O?o:f]}))}),S4=Kpe,Gpe=An(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Qpe=An(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Xpe=An(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Ype(e){return Ue("MuiCheckbox",e)}const Jpe=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),a0=Jpe,Zpe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ehe=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(a)}`]},i=qe(o,Ype,t);return T({},t,i)},the=ne(S4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ge(r.size)}`],r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a0.checked}, &.${a0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${a0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),rhe=R.jsx(Qpe,{}),nhe=R.jsx(Gpe,{}),ahe=R.jsx(Xpe,{}),ohe=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=rhe,color:s="primary",icon:u=nhe,indeterminate:l=!1,indeterminateIcon:c=ahe,inputProps:f,size:p="medium",className:v}=o,g=Pe(o,Zpe),y=l?c:u,S=l?c:i,x=T({},o,{color:s,indeterminate:l,size:p}),m=ehe(x);return R.jsx(the,T({type:"checkbox",inputProps:T({"data-indeterminate":l},f),icon:d.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(m.root,v)},g,{classes:m}))}),gg=ohe;function ihe(e){return Ue("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const she=["className","color","disableShrink","size","style","thickness","value","variant"];let Fy=e=>e,NT,LT,DT,BT;const Jo=44,lhe=Pc(NT||(NT=Fy` +`),ra.rippleVisible,cce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ra.child,ra.childLeaving,dce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.childPulsate,fce,({theme:e})=>e.transitions.easing.easeInOut),vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Pe(n,lce),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),v=Ss(),g=d.useRef(null),y=d.useRef(null),S=d.useCallback(h=>{const{pulsate:_,rippleX:C,rippleY:E,rippleSize:w,cb:O}=h;l(P=>[...P,R.jsx(hce,{classes:{ripple:ue(o.ripple,ra.ripple),rippleVisible:ue(o.rippleVisible,ra.rippleVisible),ripplePulsate:ue(o.ripplePulsate,ra.ripplePulsate),child:ue(o.child,ra.child),childLeaving:ue(o.childLeaving,ra.childLeaving),childPulsate:ue(o.childPulsate,ra.childPulsate)},timeout:xx,pulsate:_,rippleX:C,rippleY:E,rippleSize:w},c.current)]),c.current+=1,f.current=O},[o]),x=d.useCallback((h={},_={},C=()=>{})=>{const{pulsate:E=!1,center:w=a||_.pulsate,fakeElement:O=!1}=_;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const P=O?null:y.current,k=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,$,F;if(w||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)j=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:z,clientY:M}=h.touches&&h.touches.length>0?h.touches[0]:h;j=Math.round(z-k.left),$=Math.round(M-k.top)}if(w)F=Math.sqrt((2*k.width**2+k.height**2)/3),F%2===0&&(F+=1);else{const z=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,M=Math.max(Math.abs((P?P.clientHeight:0)-$),$)*2+2;F=Math.sqrt(z**2+M**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},v.start(uce,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},[a,S,v]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),b=d.useCallback((h,_)=>{if(v.clear(),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(h,_)});return}g.current=null,l(C=>C.length>0?C.slice(1):C),f.current=_},[v]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:b}),[m,x,b]),R.jsx(pce,T({className:ue(ra.root,o.root,i),ref:y},s,{children:R.jsx(Xue,{component:null,exit:!0,children:u})}))}),gce=vce;function mce(e){return Ue("MuiButtonBase",e)}const yce=We("MuiButtonBase",["root","disabled","focusVisible"]),bce=yce,xce=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],wce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=qe({root:["root",t&&"disabled",r&&"focusVisible"]},mce,a);return r&&n&&(i.root+=` ${n}`),i},Sce=ne("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:S,onDragLeave:x,onFocus:m,onFocusVisible:b,onKeyDown:h,onKeyUp:_,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:O,onTouchMove:P,onTouchStart:k,tabIndex:j=0,TouchRippleProps:$,touchRippleRef:F,type:z}=n,M=Pe(n,xce),W=d.useRef(null),B=d.useRef(null),U=Jt(B,F),{isFocusVisibleRef:q,onFocus:ie,onBlur:oe,ref:Ee}=Ey(),[pe,Te]=d.useState(!1);l&&pe&&Te(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{Te(!0),W.current.focus()}}),[]);const[ye,be]=d.useState(!1);d.useEffect(()=>{be(!0)},[]);const we=ye&&!c&&!l;d.useEffect(()=>{pe&&p&&!c&&ye&&B.current.pulsate()},[c,p,pe,ye]);function ve(he,Re,Be=f){return fn(Ye=>(Re&&Re(Ye),!Be&&B.current&&B.current[he](Ye),!0))}const De=ve("start",C),Me=ve("stop",S),Qe=ve("stop",x),Ne=ve("stop",w),Ae=ve("stop",he=>{pe&&he.preventDefault(),E&&E(he)}),He=ve("start",k),ht=ve("stop",O),ut=ve("stop",P),V=ve("stop",he=>{oe(he),q.current===!1&&Te(!1),g&&g(he)},!1),K=fn(he=>{W.current||(W.current=he.currentTarget),ie(he),q.current===!0&&(Te(!0),b&&b(he)),m&&m(he)}),te=()=>{const he=W.current;return u&&u!=="button"&&!(he.tagName==="A"&&he.href)},se=d.useRef(!1),de=fn(he=>{p&&!se.current&&pe&&B.current&&he.key===" "&&(se.current=!0,B.current.stop(he,()=>{B.current.start(he)})),he.target===he.currentTarget&&te()&&he.key===" "&&he.preventDefault(),h&&h(he),he.target===he.currentTarget&&te()&&he.key==="Enter"&&!l&&(he.preventDefault(),y&&y(he))}),fe=fn(he=>{p&&he.key===" "&&B.current&&pe&&!he.defaultPrevented&&(se.current=!1,B.current.stop(he,()=>{B.current.pulsate(he)})),_&&_(he),y&&he.target===he.currentTarget&&te()&&he.key===" "&&!he.defaultPrevented&&y(he)});let Oe=u;Oe==="button"&&(M.href||M.to)&&(Oe=v);const ae={};Oe==="button"?(ae.type=z===void 0?"button":z,ae.disabled=l):(!M.href&&!M.to&&(ae.role="button"),l&&(ae["aria-disabled"]=l));const Z=Jt(r,Ee,W),G=T({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:pe}),le=wce(G);return R.jsxs(Sce,T({as:Oe,className:ue(le.root,s),ownerState:G,onBlur:V,onClick:y,onContextMenu:Me,onFocus:K,onKeyDown:de,onKeyUp:fe,onMouseDown:De,onMouseLeave:Ae,onMouseUp:Ne,onDragLeave:Qe,onTouchEnd:ht,onTouchMove:ut,onTouchStart:He,ref:Z,tabIndex:l?-1:j,type:z},ae,M,{children:[i,we?R.jsx(gce,T({ref:U,center:o},$)):null]}))}),Ma=_ce;function Cce(e){return Ue("MuiIconButton",e)}const Ece=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oce=Ece,Pce=["edge","children","className","color","disabled","disableFocusRipple","size"],Rce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ge(n)}`,a&&`edge${ge(a)}`,`size${ge(o)}`]};return qe(i,Cce,t)},Tce=ne(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ge(r.color)}`],r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":T({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Oce.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=Pe(n,Pce),p=T({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),v=Rce(p);return R.jsx(Tce,T({className:ue(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:o}))}),Pr=$ce;function kce(e){return Ue("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ice=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${ge(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return qe(s,kce,i)},Ace=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),_T={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mce={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Fce=e=>Mce[e]||e,Nce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTypography"}),a=Fce(n.color),o=_y(T({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=_T}=o,g=Pe(o,jce),y=T({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:v}),S=u||(f?"p":v[p]||_T[p])||"span",x=Ice(y);return R.jsx(Ace,T({as:S,ref:r,ownerState:y,className:ue(x.root,s)},g))}),_t=Nce;function Lce(e){return Ue("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Dce=["className","color","enableColorOnDark","position"],Bce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${ge(t)}`,`position${ge(r)}`]};return qe(a,Lce,n)},oh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,zce=ne(Yi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:oh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:oh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:oh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:oh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Pe(n,Dce),l=T({},n,{color:o,position:s,enableColorOnDark:i}),c=Bce(l);return R.jsx(zce,T({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),Uce=Vce;var xC={};Object.defineProperty(xC,"__esModule",{value:!0});var o4=xC.default=void 0,Wce=qce(d),Hce=t4;function i4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(i4=function(n){return n?r:t})(e)}function qce(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=i4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Kce(e){return Object.keys(e).length===0}function Gce(e=null){const t=Wce.useContext(Hce.ThemeContext);return!t||Kce(t)?e:t}o4=xC.default=Gce;var Tn="top",ha="bottom",va="right",$n="left",wC="auto",gp=[Tn,ha,va,$n],Zu="start",$f="end",Qce="clippingParents",s4="viewport",Qc="popper",Xce="reference",CT=gp.reduce(function(e,t){return e.concat([t+"-"+Zu,t+"-"+$f])},[]),l4=[].concat(gp,[wC]).reduce(function(e,t){return e.concat([t,t+"-"+Zu,t+"-"+$f])},[]),Yce="beforeRead",Jce="read",Zce="afterRead",ede="beforeMain",tde="main",rde="afterMain",nde="beforeWrite",ade="write",ode="afterWrite",ide=[Yce,Jce,Zce,ede,tde,rde,nde,ade,ode];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function la(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SC(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sde(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!la(o)||!ao(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function lde(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!la(a)||!ao(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const ude={name:"applyStyles",enabled:!0,phase:"write",fn:sde,effect:lde,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ls=Math.max,pg=Math.min,ec=Math.round;function wx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function u4(){return!/^((?!chrome|android).)*safari/i.test(wx())}function tc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&la(e)&&(a=e.offsetWidth>0&&ec(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ec(n.height)/e.offsetHeight||1);var i=tl(e)?Kn(e):window,s=i.visualViewport,u=!u4()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function _C(e){var t=tc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function c4(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SC(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Lo(e){return Kn(e).getComputedStyle(e)}function cde(e){return["table","td","th"].indexOf(ao(e))>=0}function Ji(e){return((tl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ty(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(SC(e)?e.host:null)||Ji(e)}function ET(e){return!la(e)||Lo(e).position==="fixed"?null:e.offsetParent}function dde(e){var t=/firefox/i.test(wx()),r=/Trident/i.test(wx());if(r&&la(e)){var n=Lo(e);if(n.position==="fixed")return null}var a=Ty(e);for(SC(a)&&(a=a.host);la(a)&&["html","body"].indexOf(ao(a))<0;){var o=Lo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function mp(e){for(var t=Kn(e),r=ET(e);r&&cde(r)&&Lo(r).position==="static";)r=ET(r);return r&&(ao(r)==="html"||ao(r)==="body"&&Lo(r).position==="static")?t:r||dde(e)||t}function CC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Md(e,t,r){return Ls(e,pg(t,r))}function fde(e,t,r){var n=Md(e,t,r);return n>r?r:n}function d4(){return{top:0,right:0,bottom:0,left:0}}function f4(e){return Object.assign({},d4(),e)}function p4(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var pde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,f4(typeof t!="number"?t:p4(t,gp))};function hde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=ro(r.placement),u=CC(s),l=[$n,va].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var f=pde(a.padding,r),p=_C(o),v=u==="y"?Tn:$n,g=u==="y"?ha:va,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],S=i[u]-r.rects.reference[u],x=mp(o),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-S/2,h=f[v],_=m-p[c]-f[g],C=m/2-p[c]/2+b,E=Md(h,C,_),w=u;r.modifiersData[n]=(t={},t[w]=E,t.centerOffset=E-C,t)}}function vde(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||c4(t.elements.popper,a)&&(t.elements.arrow=a))}const gde={name:"arrow",enabled:!0,phase:"main",fn:hde,effect:vde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rc(e){return e.split("-")[1]}var mde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ec(r*a)/a||0,y:ec(n*a)/a||0}}function OT(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,g=i.y,y=g===void 0?0:g,S=typeof c=="function"?c({x:v,y}):{x:v,y};v=S.x,y=S.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=$n,h=Tn,_=window;if(l){var C=mp(r),E="clientHeight",w="clientWidth";if(C===Kn(r)&&(C=Ji(r),Lo(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",w="scrollWidth")),C=C,a===Tn||(a===$n||a===va)&&o===$f){h=ha;var O=f&&C===_&&_.visualViewport?_.visualViewport.height:C[E];y-=O-n.height,y*=u?1:-1}if(a===$n||(a===Tn||a===ha)&&o===$f){b=va;var P=f&&C===_&&_.visualViewport?_.visualViewport.width:C[w];v-=P-n.width,v*=u?1:-1}}var k=Object.assign({position:s},l&&mde),j=c===!0?yde({x:v,y},Kn(r)):{x:v,y};if(v=j.x,y=j.y,u){var $;return Object.assign({},k,($={},$[h]=m?"0":"",$[b]=x?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",$))}return Object.assign({},k,(t={},t[h]=m?y+"px":"",t[b]=x?v+"px":"",t.transform="",t))}function bde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:ro(t.placement),variation:rc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OT(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OT(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bde,data:{}};var ih={passive:!0};function wde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Kn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,ih)}),s&&u.addEventListener("resize",r.update,ih),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,ih)}),s&&u.removeEventListener("resize",r.update,ih)}}const Sde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wde,data:{}};var _de={left:"right",right:"left",bottom:"top",top:"bottom"};function Gh(e){return e.replace(/left|right|bottom|top/g,function(t){return _de[t]})}var Cde={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,function(t){return Cde[t]})}function EC(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function OC(e){return tc(Ji(e)).left+EC(e).scrollLeft}function Ede(e,t){var r=Kn(e),n=Ji(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=u4();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+OC(e),y:u}}function Ode(e){var t,r=Ji(e),n=EC(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Ls(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ls(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+OC(e),u=-n.scrollTop;return Lo(a||r).direction==="rtl"&&(s+=Ls(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function PC(e){var t=Lo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function h4(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:la(e)&&PC(e)?e:h4(Ty(e))}function Fd(e,t){var r;t===void 0&&(t=[]);var n=h4(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),i=a?[o].concat(o.visualViewport||[],PC(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Fd(Ty(i)))}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pde(e,t){var r=tc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function RT(e,t,r){return t===s4?Sx(Ede(e,r)):tl(t)?Pde(t,r):Sx(Ode(Ji(e)))}function Rde(e){var t=Fd(Ty(e)),r=["absolute","fixed"].indexOf(Lo(e).position)>=0,n=r&&la(e)?mp(e):e;return tl(n)?t.filter(function(a){return tl(a)&&c4(a,n)&&ao(a)!=="body"}):[]}function Tde(e,t,r,n){var a=t==="clippingParents"?Rde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=RT(e,l,n);return u.top=Ls(c.top,u.top),u.right=pg(c.right,u.right),u.bottom=pg(c.bottom,u.bottom),u.left=Ls(c.left,u.left),u},RT(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function v4(e){var t=e.reference,r=e.element,n=e.placement,a=n?ro(n):null,o=n?rc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ha:u={x:i,y:t.y+t.height};break;case va:u={x:t.x+t.width,y:s};break;case $n:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CC(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Zu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case $f:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function kf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?Qce:s,l=r.rootBoundary,c=l===void 0?s4:l,f=r.elementContext,p=f===void 0?Qc:f,v=r.altBoundary,g=v===void 0?!1:v,y=r.padding,S=y===void 0?0:y,x=f4(typeof S!="number"?S:p4(S,gp)),m=p===Qc?Xce:Qc,b=e.rects.popper,h=e.elements[g?m:p],_=Tde(tl(h)?h:h.contextElement||Ji(e.elements.popper),u,c,i),C=tc(e.elements.reference),E=v4({reference:C,element:b,strategy:"absolute",placement:a}),w=Sx(Object.assign({},b,E)),O=p===Qc?w:C,P={top:_.top-O.top+x.top,bottom:O.bottom-_.bottom+x.bottom,left:_.left-O.left+x.left,right:O.right-_.right+x.right},k=e.modifiersData.offset;if(p===Qc&&k){var j=k[a];Object.keys(P).forEach(function($){var F=[va,ha].indexOf($)>=0?1:-1,z=[Tn,ha].indexOf($)>=0?"y":"x";P[$]+=j[z]*F})}return P}function $de(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?l4:u,c=rc(n),f=c?s?CT:CT.filter(function(g){return rc(g)===c}):gp,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var v=p.reduce(function(g,y){return g[y]=kf(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ro(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function kde(e){if(ro(e)===wC)return[];var t=Gh(e);return[PT(e),t,PT(t)]}function jde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,y=r.allowedAutoPlacements,S=t.options.placement,x=ro(S),m=x===S,b=u||(m||!g?[Gh(S)]:kde(S)),h=[S].concat(b).reduce(function(pe,Te){return pe.concat(ro(Te)===wC?$de(t,{placement:Te,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:y}):Te)},[]),_=t.rects.reference,C=t.rects.popper,E=new Map,w=!0,O=h[0],P=0;P=0,z=F?"width":"height",M=kf(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),W=F?$?va:$n:$?ha:Tn;_[z]>C[z]&&(W=Gh(W));var B=Gh(W),U=[];if(o&&U.push(M[j]<=0),s&&U.push(M[W]<=0,M[B]<=0),U.every(function(pe){return pe})){O=k,w=!1;break}E.set(k,U)}if(w)for(var q=g?3:1,ie=function(Te){var ye=h.find(function(be){var we=E.get(be);if(we)return we.slice(0,Te).every(function(ve){return ve})});if(ye)return O=ye,"break"},oe=q;oe>0;oe--){var Ee=ie(oe);if(Ee==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const Ide={name:"flip",enabled:!0,phase:"main",fn:jde,requiresIfExists:["offset"],data:{_skip:!1}};function TT(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $T(e){return[Tn,va,ha,$n].some(function(t){return e[t]>=0})}function Ade(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kf(t,{elementContext:"reference"}),s=kf(t,{altBoundary:!0}),u=TT(i,n),l=TT(s,a,o),c=$T(u),f=$T(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Mde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ade};function Fde(e,t,r){var n=ro(e),a=[$n,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[$n,va].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Nde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=l4.reduce(function(c,f){return c[f]=Fde(f,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Lde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nde};function Dde(e){var t=e.state,r=e.name;t.modifiersData[r]=v4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bde={name:"popperOffsets",enabled:!0,phase:"read",fn:Dde,data:{}};function zde(e){return e==="x"?"y":"x"}function Vde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,g=r.tetherOffset,y=g===void 0?0:g,S=kf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=ro(t.placement),m=rc(t.placement),b=!m,h=CC(x),_=zde(h),C=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(o){var $,F=h==="y"?Tn:$n,z=h==="y"?ha:va,M=h==="y"?"height":"width",W=C[h],B=W+S[F],U=W-S[z],q=v?-w[M]/2:0,ie=m===Zu?E[M]:w[M],oe=m===Zu?-w[M]:-E[M],Ee=t.elements.arrow,pe=v&&Ee?_C(Ee):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:d4(),ye=Te[F],be=Te[z],we=Md(0,E[M],pe[M]),ve=b?E[M]/2-q-we-ye-P.mainAxis:ie-we-ye-P.mainAxis,De=b?-E[M]/2+q+we+be+P.mainAxis:oe+we+be+P.mainAxis,Me=t.elements.arrow&&mp(t.elements.arrow),Qe=Me?h==="y"?Me.clientTop||0:Me.clientLeft||0:0,Ne=($=k==null?void 0:k[h])!=null?$:0,Ae=W+ve-Ne-Qe,He=W+De-Ne,ht=Md(v?pg(B,Ae):B,W,v?Ls(U,He):U);C[h]=ht,j[h]=ht-W}if(s){var ut,V=h==="x"?Tn:$n,K=h==="x"?ha:va,te=C[_],se=_==="y"?"height":"width",de=te+S[V],fe=te-S[K],Oe=[Tn,$n].indexOf(x)!==-1,ae=(ut=k==null?void 0:k[_])!=null?ut:0,Z=Oe?de:te-E[se]-w[se]-ae+P.altAxis,G=Oe?te+E[se]+w[se]-ae-P.altAxis:fe,le=v&&Oe?fde(Z,te,G):Md(v?Z:de,te,v?G:fe);C[_]=le,j[_]=le-te}t.modifiersData[n]=j}}const Ude={name:"preventOverflow",enabled:!0,phase:"main",fn:Vde,requiresIfExists:["offset"]};function Wde(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hde(e){return e===Kn(e)||!la(e)?EC(e):Wde(e)}function qde(e){var t=e.getBoundingClientRect(),r=ec(t.width)/e.offsetWidth||1,n=ec(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Kde(e,t,r){r===void 0&&(r=!1);var n=la(t),a=la(t)&&qde(t),o=Ji(t),i=tc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ao(t)!=="body"||PC(o))&&(s=Hde(t)),la(t)?(u=tc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=OC(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Gde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Qde(e){var t=Gde(e);return ide.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Xde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yde(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var kT={placement:"bottom",modifiers:[],strategy:"absolute"};function jT(){for(var e=arguments.length,t=new Array(e),r=0;r{o||s(tfe(a)||document.body)},[a,o]),qn(()=>{if(i&&!o)return lg(r,i),()=>{lg(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return R.jsx(d.Fragment,{children:n})}return R.jsx(d.Fragment,{children:i&&tp.createPortal(n,i)})}),g4=rfe;function nfe(e){return Ue("MuiPopper",e)}We("MuiPopper",["root"]);const afe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ofe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ife(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function _x(e){return typeof e=="function"?e():e}function sfe(e){return e.nodeType!==void 0}const lfe=e=>{const{classes:t}=e;return qe({root:["root"]},nfe,t)},ufe={},cfe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:v={},slots:g={},TransitionProps:y}=t,S=Pe(t,afe),x=d.useRef(null),m=Jt(x,r),b=d.useRef(null),h=Jt(b,p),_=d.useRef(h);qn(()=>{_.current=h},[h]),d.useImperativeHandle(p,()=>b.current,[]);const C=ife(c,i),[E,w]=d.useState(C),[O,P]=d.useState(_x(a));d.useEffect(()=>{b.current&&b.current.forceUpdate()}),d.useEffect(()=>{a&&P(_x(a))},[a]),qn(()=>{if(!O||!l)return;const z=B=>{w(B.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{z(B)}}];u!=null&&(M=M.concat(u)),f&&f.modifiers!=null&&(M=M.concat(f.modifiers));const W=efe(O,x.current,T({placement:C},f,{modifiers:M}));return _.current(W),()=>{W.destroy(),_.current(null)}},[O,s,u,l,f,C]);const k={placement:E};y!==null&&(k.TransitionProps=y);const j=lfe(t),$=(n=g.root)!=null?n:"div",F=fa({elementType:$,externalSlotProps:v.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:j.root});return R.jsx($,T({},F,{children:typeof o=="function"?o(k):o}))}),dfe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=ufe,popperRef:v,style:g,transition:y=!1,slotProps:S={},slots:x={}}=t,m=Pe(t,ofe),[b,h]=d.useState(!0),_=()=>{h(!1)},C=()=>{h(!0)};if(!u&&!c&&(!y||b))return null;let E;if(o)E=o;else if(n){const P=_x(n);E=P&&sfe(P)?wr(P).body:wr(null).body}const w=!c&&u&&(!y||b)?"none":void 0,O=y?{in:c,onEnter:_,onExited:C}:void 0;return R.jsx(g4,{disablePortal:s,container:E,children:R.jsx(cfe,T({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!b:c,placement:f,popperOptions:p,popperRef:v,slotProps:S,slots:x},m,{style:T({position:"fixed",top:0,left:0,display:w},g),TransitionProps:O,children:a}))})}),ffe=dfe,pfe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hfe=ne(ffe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vfe=d.forwardRef(function(t,r){var n;const a=o4(),o=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m,slots:b,slotProps:h}=o,_=Pe(o,pfe),C=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,E=T({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m},_);return R.jsx(hfe,T({as:s,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:h??l},E,{ref:r}))}),m4=vfe,gfe=An(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function mfe(e){return Ue("MuiChip",e)}const yfe=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Et=yfe,bfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xfe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ge(n)}`,`color${ge(a)}`,s&&"clickable",s&&`clickableColor${ge(a)}`,i&&"deletable",i&&`deletableColor${ge(a)}`,`${u}${ge(a)}`],label:["label",`label${ge(n)}`],avatar:["avatar",`avatar${ge(n)}`,`avatarColor${ge(a)}`],icon:["icon",`icon${ge(n)}`,`iconColor${ge(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ge(n)}`,`deleteIconColor${ge(a)}`,`deleteIcon${ge(u)}Color${ge(a)}`]};return qe(l,mfe,t)},wfe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${ge(s)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${ge(n)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${ge(s)}`]},{[`& .${Et.icon}`]:t[`iconColor${ge(a)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(s)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${ge(n)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(u)}Color${ge(n)}`]},t.root,t[`size${ge(s)}`],t[`color${ge(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ge(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ge(n)}`],t[u],t[`${u}${ge(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Et.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:gt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Et.avatar}`]:{marginLeft:4},[`& .${Et.avatarSmall}`]:{marginLeft:2},[`& .${Et.icon}`]:{marginLeft:4},[`& .${Et.iconSmall}`]:{marginLeft:2},[`& .${Et.deleteIcon}`]:{marginRight:5},[`& .${Et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Sfe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ge(n)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function IT(e){return e.key==="Backspace"||e.key==="Delete"}const _fe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:S,size:x="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:h=!1}=n,_=Pe(n,bfe),C=d.useRef(null),E=Jt(C,r),w=U=>{U.stopPropagation(),g&&g(U)},O=U=>{U.currentTarget===U.target&&IT(U)&&U.preventDefault(),y&&y(U)},P=U=>{U.currentTarget===U.target&&(g&&IT(U)?g(U):U.key==="Escape"&&C.current&&C.current.blur()),S&&S(U)},k=i!==!1&&v?!0:i,j=k||g?Ma:u||"div",$=T({},n,{component:j,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:k,variant:m}),F=xfe($),z=j===Ma?T({component:u||"div",focusVisibleClassName:F.focusVisible},g&&{disableRipple:!0}):{};let M=null;g&&(M=l&&d.isValidElement(l)?d.cloneElement(l,{className:ue(l.props.className,F.deleteIcon),onClick:w}):R.jsx(gfe,{className:ue(F.deleteIcon),onClick:w}));let W=null;a&&d.isValidElement(a)&&(W=d.cloneElement(a,{className:ue(F.avatar,a.props.className)}));let B=null;return f&&d.isValidElement(f)&&(B=d.cloneElement(f,{className:ue(F.icon,f.props.className)})),R.jsxs(wfe,T({as:j,className:ue(F.root,o),disabled:k&&c?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:P,ref:E,tabIndex:h&&c?-1:b,ownerState:$},z,_,{children:[W||B,R.jsx(Sfe,{className:ue(F.label),ownerState:$,children:p}),M]}))}),Cfe=_fe,Efe=["onChange","maxRows","minRows","style","value"];function sh(e){return parseInt(e,10)||0}const Ofe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Pfe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Rfe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Pe(t,Efe),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=Jt(r,c),p=d.useRef(null),v=d.useRef(null),g=d.useCallback(()=>{const x=c.current,b=da(x).getComputedStyle(x);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=v.current;h.style.width=b.width,h.value=x.value||t.placeholder||"x",h.value.slice(-1)===` +`&&(h.value+=" ");const _=b.boxSizing,C=sh(b.paddingBottom)+sh(b.paddingTop),E=sh(b.borderBottomWidth)+sh(b.borderTopWidth),w=h.scrollHeight;h.value="x";const O=h.scrollHeight;let P=w;o&&(P=Math.max(Number(o)*O,P)),a&&(P=Math.min(Number(a)*O,P)),P=Math.max(P,O);const k=P+(_==="border-box"?C+E:0),j=Math.abs(P-w)<=1;return{outerHeightStyle:k,overflowing:j}},[a,o,t.placeholder]),y=d.useCallback(()=>{const x=g();if(Pfe(x))return;const m=x.outerHeightStyle,b=c.current;p.current!==m&&(p.current=m,b.style.height=`${m}px`),b.style.overflow=x.overflowing?"hidden":""},[g]);qn(()=>{const x=()=>{y()};let m;const b=Rc(x),h=c.current,_=da(h);_.addEventListener("resize",b);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(h)),()=>{b.clear(),cancelAnimationFrame(m),_.removeEventListener("resize",b),C&&C.disconnect()}},[g,y]),qn(()=>{y()});const S=x=>{l||y(),n&&n(x)};return R.jsxs(d.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:S,ref:f,rows:o,style:i},u)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:T({},Ofe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),Tfe=Rfe;function Zi({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const $fe=d.createContext(void 0),$y=$fe;function po(){return d.useContext($y)}function y4(e){return R.jsx(vse,T({},e,{defaultTheme:Oy,themeId:Js}))}function AT(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hg(e,t=!1){return e&&(AT(e.value)&&e.value!==""||t&&AT(e.defaultValue)&&e.defaultValue!=="")}function kfe(e){return e.startAdornment}function jfe(e){return Ue("MuiInputBase",e)}const Ife=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nc=Ife,Afe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ky=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ge(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jy=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Mfe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:v,type:g}=e,y={root:["root",`color${ge(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ge(p)}`,c&&"multiline",v&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return qe(y,jfe,t)},Iy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ky})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ay=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${nc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Ffe=R.jsx(y4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nfe=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:S,inputComponent:x="input",inputProps:m={},inputRef:b,maxRows:h,minRows:_,multiline:C=!1,name:E,onBlur:w,onChange:O,onClick:P,onFocus:k,onKeyDown:j,onKeyUp:$,placeholder:F,readOnly:z,renderSuffix:M,rows:W,slotProps:B={},slots:U={},startAdornment:q,type:ie="text",value:oe}=a,Ee=Pe(a,Afe),pe=m.value!=null?m.value:oe,{current:Te}=d.useRef(pe!=null),ye=d.useRef(),be=d.useCallback(le=>{},[]),we=Jt(ye,b,m.ref,be),[ve,De]=d.useState(!1),Me=po(),Qe=Zi({props:a,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Me?Me.focused:ve,d.useEffect(()=>{!Me&&p&&ve&&(De(!1),w&&w())},[Me,p,ve,w]);const Ne=Me&&Me.onFilled,Ae=Me&&Me.onEmpty,He=d.useCallback(le=>{hg(le)?Ne&&Ne():Ae&&Ae()},[Ne,Ae]);qn(()=>{Te&&He({value:pe})},[pe,He,Te]);const ht=le=>{if(Qe.disabled){le.stopPropagation();return}k&&k(le),m.onFocus&&m.onFocus(le),Me&&Me.onFocus?Me.onFocus(le):De(!0)},ut=le=>{w&&w(le),m.onBlur&&m.onBlur(le),Me&&Me.onBlur?Me.onBlur(le):De(!1)},V=(le,...he)=>{if(!Te){const Re=le.target||ye.current;if(Re==null)throw new Error(No(1));He({value:Re.value})}m.onChange&&m.onChange(le,...he),O&&O(le,...he)};d.useEffect(()=>{He(ye.current)},[]);const K=le=>{ye.current&&le.currentTarget===le.target&&ye.current.focus(),P&&P(le)};let te=x,se=m;C&&te==="input"&&(W?se=T({type:void 0,minRows:W,maxRows:W},se):se=T({type:void 0,maxRows:h,minRows:_},se),te=Tfe);const de=le=>{He(le.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};d.useEffect(()=>{Me&&Me.setAdornedStart(!!q)},[Me,q]);const fe=T({},a,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:g,error:Qe.error,focused:Qe.focused,formControl:Me,fullWidth:y,hiddenLabel:Qe.hiddenLabel,multiline:C,size:Qe.size,startAdornment:q,type:ie}),Oe=Mfe(fe),ae=U.root||l.Root||Iy,Z=B.root||c.root||{},G=U.input||l.Input||Ay;return se=T({},se,(n=B.input)!=null?n:c.input),R.jsxs(d.Fragment,{children:[!v&&Ffe,R.jsxs(ae,T({},Z,!Rf(ae)&&{ownerState:T({},fe,Z.ownerState)},{ref:r,onClick:K},Ee,{className:ue(Oe.root,Z.className,u,z&&"MuiInputBase-readOnly"),children:[q,R.jsx($y.Provider,{value:null,children:R.jsx(G,T({ownerState:fe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Qe.disabled,id:S,onAnimationStart:de,name:E,placeholder:F,readOnly:z,required:Qe.required,rows:W,value:pe,onKeyDown:j,onKeyUp:$,type:ie},se,!Rf(G)&&{as:te,ownerState:T({},fe,se.ownerState)},{ref:we,className:ue(Oe.input,se.className,z&&"MuiInputBase-readOnly"),onBlur:ut,onChange:V,onFocus:ht}))}),g,M?M(T({},Qe,{startAdornment:q})):null]}))]})}),My=Nfe;function Lfe(e){return Ue("MuiInput",e)}const Dfe=T({},nc,We("MuiInput",["root","underline","input"])),Xc=Dfe;function Bfe(e){return Ue("MuiOutlinedInput",e)}const zfe=T({},nc,We("MuiOutlinedInput",["root","notchedOutline","input"])),Yo=zfe;function Vfe(e){return Ue("MuiFilledInput",e)}const Ufe=T({},nc,We("MuiFilledInput",["root","underline","input"])),es=Ufe,Wfe=An(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Hfe=An(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function qfe(e){return Ue("MuiAvatar",e)}We("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Kfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Gfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return qe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},qfe,t)},Qfe=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:T({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Xfe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Yfe=ne(Hfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Jfe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const Zfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:f,src:p,srcSet:v,variant:g="circular"}=n,y=Pe(n,Kfe);let S=null;const x=Jfe(T({},c,{src:p,srcSet:v})),m=p||v,b=m&&x!=="error",h=T({},n,{colorDefault:!b,component:s,variant:g}),_=Gfe(h),[C,E]=oce("img",{className:_.img,elementType:Xfe,externalForwardedProps:{slots:u,slotProps:{img:T({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:v,sizes:f},ownerState:h});return b?S=R.jsx(C,T({},E)):o||o===0?S=o:m&&a?S=a[0]:S=R.jsx(Yfe,{ownerState:h,className:_.fallback}),R.jsx(Qfe,T({as:s,ownerState:h,className:ue(_.root,i),ref:r},y,{children:S}))}),vg=Zfe,epe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tpe={entering:{opacity:1},entered:{opacity:1}},rpe=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:g,onExiting:y,style:S,timeout:x=a,TransitionComponent:m=gC}=t,b=Pe(t,epe),h=d.useRef(null),_=Jt(h,s.ref,r),C=F=>z=>{if(F){const M=h.current;z===void 0?F(M):F(M,z)}},E=C(p),w=C((F,z)=>{bC(F);const M=Ju({style:S,timeout:x,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",M),F.style.transition=n.transitions.create("opacity",M),c&&c(F,z)}),O=C(f),P=C(y),k=C(F=>{const z=Ju({style:S,timeout:x,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",z),F.style.transition=n.transitions.create("opacity",z),v&&v(F)}),j=C(g),$=F=>{o&&o(h.current,F)};return R.jsx(m,T({appear:i,in:l,nodeRef:h,onEnter:w,onEntered:O,onEntering:E,onExit:k,onExited:j,onExiting:P,addEndListener:$,timeout:x},b,{children:(F,z)=>d.cloneElement(s,T({style:T({opacity:0,visibility:F==="exited"&&!l?"hidden":void 0},tpe[F],S,s.props.style),ref:_},z))}))}),b4=rpe;function npe(e){return Ue("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const ape=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ope=e=>{const{classes:t,invisible:r}=e;return qe({root:["root",r&&"invisible"]},npe,t)},ipe=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),spe=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:S=b4,transitionDuration:x}=i,m=Pe(i,ape),b=T({},i,{component:l,invisible:p}),h=ope(b),_=(n=g.root)!=null?n:f.root;return R.jsx(S,T({in:v,timeout:x},m,{children:R.jsx(ipe,T({"aria-hidden":!0},_,{as:(a=(o=y.root)!=null?o:c.Root)!=null?a:l,className:ue(h.root,u,_==null?void 0:_.className),ownerState:T({},b,_==null?void 0:_.ownerState),classes:h,ref:r,children:s}))}))}),x4=spe,lpe=We("MuiBox",["root"]),upe=lpe,cpe=dg(),dpe=Sse({themeId:Js,defaultTheme:cpe,defaultClassName:upe.root,generateClassName:lC.generate}),Qh=dpe;function fpe(e){return Ue("MuiButton",e)}const ppe=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),lh=ppe,hpe=d.createContext({}),vpe=hpe,gpe=d.createContext(void 0),mpe=gpe,ype=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bpe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${ge(t)}`,`size${ge(a)}`,`${o}Size${ge(a)}`,`color${ge(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ge(a)}`],endIcon:["icon","endIcon",`iconSize${ge(a)}`]},u=qe(s,fpe,i);return T({},i,u)},w4=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),xpe=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ge(r.color)}`],t[`size${ge(r.size)}`],t[`${r.variant}Size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${lh.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lh.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lh.disabled}`]:{boxShadow:"none"}}),wpe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},w4(e))),Spe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},w4(e))),_pe=d.forwardRef(function(t,r){const n=d.useContext(vpe),a=d.useContext(mpe),o=Of(n,t),i=Ke({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:S=!1,size:x="medium",startIcon:m,type:b,variant:h="text"}=i,_=Pe(i,ype),C=T({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:S,size:x,type:b,variant:h}),E=bpe(C),w=m&&R.jsx(wpe,{className:E.startIcon,ownerState:C,children:m}),O=g&&R.jsx(Spe,{className:E.endIcon,ownerState:C,children:g}),P=a||"";return R.jsxs(xpe,T({ownerState:C,className:ue(n.className,E.root,c,P),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ue(E.focusVisible,y),ref:r,type:b},_,{classes:E,children:[w,s,O]}))}),hn=_pe;function Cpe(e){return Ue("MuiCard",e)}We("MuiCard",["root"]);const Epe=["className","raised"],Ope=e=>{const{classes:t}=e;return qe({root:["root"]},Cpe,t)},Ppe=ne(Yi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Rpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Pe(n,Epe),s=T({},n,{raised:o}),u=Ope(s);return R.jsx(Ppe,T({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))}),oo=Rpe;function Tpe(e){return Ue("MuiCardContent",e)}We("MuiCardContent",["root"]);const $pe=["className","component"],kpe=e=>{const{classes:t}=e;return qe({root:["root"]},Tpe,t)},jpe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ipe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Pe(n,$pe),s=T({},n,{component:o}),u=kpe(s);return R.jsx(jpe,T({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))}),Di=Ipe;function Ape(e){return Ue("MuiCardHeader",e)}const Mpe=We("MuiCardHeader",["root","avatar","action","content","title","subheader"]),MT=Mpe,Fpe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Npe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ape,t)},Lpe=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${MT.title}`]:t.title,[`& .${MT.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Dpe=ne("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Bpe=ne("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),zpe=ne("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Vpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=n,v=Pe(n,Fpe),g=T({},n,{component:s,disableTypography:u}),y=Npe(g);let S=f;S!=null&&S.type!==_t&&!u&&(S=R.jsx(_t,T({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},p,{children:S})));let x=l;return x!=null&&x.type!==_t&&!u&&(x=R.jsx(_t,T({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),R.jsxs(Lpe,T({className:ue(y.root,i),as:s,ref:r,ownerState:g},v,{children:[o&&R.jsx(Dpe,{className:y.avatar,ownerState:g,children:o}),R.jsxs(zpe,{className:y.content,ownerState:g,children:[S,x]}),a&&R.jsx(Bpe,{className:y.action,ownerState:g,children:a})]}))}),FT=Vpe;function Upe(e){return Ue("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Wpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Hpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${ge(a)}`],input:["input"]};return qe(o,Upe,t)},qpe=ne(Ma)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Kpe=ne("input",{shouldForwardProp:Wr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Gpe=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:v,inputRef:g,name:y,onBlur:S,onChange:x,onFocus:m,readOnly:b,required:h=!1,tabIndex:_,type:C,value:E}=t,w=Pe(t,Wpe),[O,P]=Yu({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),k=po(),j=U=>{m&&m(U),k&&k.onFocus&&k.onFocus(U)},$=U=>{S&&S(U),k&&k.onBlur&&k.onBlur(U)},F=U=>{if(U.nativeEvent.defaultPrevented)return;const q=U.target.checked;P(q),x&&x(U,q)};let z=u;k&&typeof z>"u"&&(z=k.disabled);const M=C==="checkbox"||C==="radio",W=T({},t,{checked:O,disabled:z,disableFocusRipple:l,edge:c}),B=Hpe(W);return R.jsxs(qpe,T({component:"span",className:ue(B.root,i),centerRipple:!0,focusRipple:!l,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:$,ownerState:W,ref:r},w,{children:[R.jsx(Kpe,T({autoFocus:n,checked:a,defaultChecked:s,className:B.input,disabled:z,id:M?p:void 0,name:y,onChange:F,readOnly:b,ref:g,required:h,ownerState:W,tabIndex:_,type:C},C==="checkbox"&&E===void 0?{}:{value:E},v)),O?o:f]}))}),S4=Gpe,Qpe=An(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Xpe=An(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ype=An(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Jpe(e){return Ue("MuiCheckbox",e)}const Zpe=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),a0=Zpe,ehe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],the=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(a)}`]},i=qe(o,Jpe,t);return T({},t,i)},rhe=ne(S4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ge(r.size)}`],r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a0.checked}, &.${a0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${a0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nhe=R.jsx(Xpe,{}),ahe=R.jsx(Qpe,{}),ohe=R.jsx(Ype,{}),ihe=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=nhe,color:s="primary",icon:u=ahe,indeterminate:l=!1,indeterminateIcon:c=ohe,inputProps:f,size:p="medium",className:v}=o,g=Pe(o,ehe),y=l?c:u,S=l?c:i,x=T({},o,{color:s,indeterminate:l,size:p}),m=the(x);return R.jsx(rhe,T({type:"checkbox",inputProps:T({"data-indeterminate":l},f),icon:d.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(m.root,v)},g,{classes:m}))}),gg=ihe;function she(e){return Ue("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lhe=["className","color","disableShrink","size","style","thickness","value","variant"];let Fy=e=>e,NT,LT,DT,BT;const Jo=44,uhe=Pc(NT||(NT=Fy` 0% { transform: rotate(0deg); } @@ -187,7 +187,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { transform: rotate(360deg); } -`)),uhe=Pc(LT||(LT=Fy` +`)),che=Pc(LT||(LT=Fy` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -202,25 +202,25 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),che=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${ge(n)}`],svg:["svg"],circle:["circle",`circle${ge(r)}`,a&&"circleDisableShrink"]};return qe(o,ihe,t)},dhe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ge(r.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&gy(DT||(DT=Fy` +`)),dhe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${ge(n)}`],svg:["svg"],circle:["circle",`circle${ge(r)}`,a&&"circleDisableShrink"]};return qe(o,she,t)},fhe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ge(r.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&gy(DT||(DT=Fy` animation: ${0} 1.4s linear infinite; - `),lhe)),fhe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),phe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ge(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&gy(BT||(BT=Fy` + `),uhe)),phe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),hhe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ge(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&gy(BT||(BT=Fy` animation: ${0} 1.4s ease-in-out infinite; - `),uhe)),hhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=Pe(n,she),v=T({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=che(v),y={},S={},x={};if(f==="determinate"){const m=2*Math.PI*((Jo-l)/2);y.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(dhe,T({className:ue(g.root,a),style:T({width:s,height:s},S,u),ownerState:v,ref:r,role:"progressbar"},x,p,{children:R.jsx(fhe,{className:g.svg,ownerState:v,viewBox:`${Jo/2} ${Jo/2} ${Jo} ${Jo}`,children:R.jsx(phe,{className:g.circle,style:y,ownerState:v,cx:Jo,cy:Jo,r:(Jo-l)/2,fill:"none",strokeWidth:l})})}))}),kc=hhe;function zT(e){return e.substring(2).toLowerCase()}function vhe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Jt(t.ref,s),f=fn(g=>{const y=l.current;l.current=!1;const S=wr(s.current);if(!u.current||!s.current||"clientX"in g&&vhe(g,S))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!S.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!y)&&a(g)}),p=g=>y=>{l.current=!0;const S=t.props[g];S&&S(y)},v={ref:c};return o!==!1&&(v[o]=p(o)),d.useEffect(()=>{if(o!==!1){const g=zT(o),y=wr(s.current),S=()=>{i.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",S),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",S)}}},[f,o]),n!==!1&&(v[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=zT(n),y=wr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,n]),R.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const mhe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),yhe=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),bhe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,s])=>{var u;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let a=T({html:mhe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},yhe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function xhe(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return R.jsxs(d.Fragment,{children:[R.jsx(y4,{styles:a=>bhe(a,n)}),r]})}function whe(e){const t=wr(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VT(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function She(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function UT(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!She(i);s&&u&&Nd(i,a)})}function o0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function _he(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(whe(n)){const i=BF(wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${VT(n)+i}px`;const s=wr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${VT(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=wr(n).body;else{const i=n.parentElement,s=da(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Che(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ehe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Nd(t.modalRef,!1);const a=Che(r);UT(r,t.mount,t.modalRef,a,!0);const o=o0(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=o0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=_he(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=o0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Nd(t.modalRef,r),UT(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Nd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ohe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Phe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Rhe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function The(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Rhe(e))}function $he(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ohe)).forEach((n,a)=>{const o=Phe(n);o===-1||!The(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function khe(){return!0}function jhe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=$he,isEnabled:i=khe,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),y=Jt(t.ref,g),S=d.useRef(null);d.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{a||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current),h=E=>{S.current=E,!(n||!i()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(u.current=!0,c.current&&c.current.focus())},_=()=>{const E=g.current;if(E===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let w=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(w=o(g.current)),w.length>0){var O,P;const k=!!((O=S.current)!=null&&O.shiftKey&&((P=S.current)==null?void 0:P.key)==="Tab"),j=w[0],$=w[w.length-1];typeof j!="string"&&typeof $!="string"&&(k?$.focus():j.focus())}else E.focus()};b.addEventListener("focusin",_),b.addEventListener("keydown",h,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",_),b.removeEventListener("keydown",h,!0)}},[r,n,a,i,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0,p.current=b.target;const h=t.props.onFocus;h&&h(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0};return R.jsxs(d.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:y,onFocus:x}),R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function Ihe(e){return typeof e=="function"?e():e}function Ahe(e){return e?e.props.hasOwnProperty("in"):!1}const Mhe=new Ehe;function Fhe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Mhe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),y=Jt(g,f),[S,x]=d.useState(!c),m=Ahe(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const h=()=>wr(v.current),_=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),C=()=>{a.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=fn(()=>{const M=Ihe(t)||h().body;a.add(_(),M),g.current&&C()}),w=d.useCallback(()=>a.isTopModal(_()),[a]),O=fn(M=>{v.current=M,M&&(c&&w()?C():g.current&&Nd(g.current,b))}),P=d.useCallback(()=>{a.remove(_(),b)},[b,a]);d.useEffect(()=>()=>{P()},[P]),d.useEffect(()=>{c?E():(!m||!o)&&P()},[c,P,m,o,E]);const k=M=>W=>{var B;(B=M.onKeyDown)==null||B.call(M,W),!(W.key!=="Escape"||W.which===229||!w())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},j=M=>W=>{var B;(B=M.onClick)==null||B.call(M,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(M={})=>{const W=ug(e);delete W.onTransitionEnter,delete W.onTransitionExited;const B=T({},W,M);return T({role:"presentation"},B,{onKeyDown:k(B),ref:y})},getBackdropProps:(M={})=>{const W=M;return T({"aria-hidden":!0},W,{onClick:j(W),open:c})},getTransitionProps:()=>{const M=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:hx(M,u==null?void 0:u.props.onEnter),onExited:hx(W,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:O,isTopModal:w,exited:S,hasTransition:m}}function Nhe(e){return Ue("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Lhe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Dhe=e=>{const{open:t,exited:r,classes:n}=e;return qe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Nhe,n)},Bhe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),zhe=ne(x4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vhe=d.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Ke({name:"MuiModal",props:t}),{BackdropComponent:c=zhe,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:y,component:S,components:x={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:_=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:O=!1,keepMounted:P=!1,onBackdropClick:k,open:j,slotProps:$,slots:F}=l,z=Pe(l,Lhe),M=T({},l,{closeAfterTransition:v,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:_,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:O,keepMounted:P}),{getRootProps:W,getBackdropProps:B,getTransitionProps:U,portalRef:q,isTopModal:ie,exited:oe,hasTransition:Ee}=Fhe(T({},M,{rootRef:r})),pe=T({},M,{exited:oe}),Te=Dhe(pe),ye={};if(g.props.tabIndex===void 0&&(ye.tabIndex="-1"),Ee){const{onEnter:Ne,onExited:Ae}=U();ye.onEnter=Ne,ye.onExited=Ae}const be=(n=(a=F==null?void 0:F.root)!=null?a:x.Root)!=null?n:Bhe,we=(o=(i=F==null?void 0:F.backdrop)!=null?i:x.Backdrop)!=null?o:c,ve=(s=$==null?void 0:$.root)!=null?s:m.root,De=(u=$==null?void 0:$.backdrop)!=null?u:m.backdrop,Me=fa({elementType:be,externalSlotProps:ve,externalForwardedProps:z,getSlotProps:W,additionalProps:{ref:r,as:S},ownerState:pe,className:ue(p,ve==null?void 0:ve.className,Te==null?void 0:Te.root,!pe.open&&pe.exited&&(Te==null?void 0:Te.hidden))}),Qe=fa({elementType:we,externalSlotProps:De,additionalProps:f,getSlotProps:Ne=>B(T({},Ne,{onClick:Ae=>{k&&k(Ae),Ne!=null&&Ne.onClick&&Ne.onClick(Ae)}})),className:ue(De==null?void 0:De.className,f==null?void 0:f.className,Te==null?void 0:Te.backdrop),ownerState:pe});return!P&&!j&&(!Ee||oe)?null:R.jsx(g4,{ref:q,container:y,disablePortal:C,children:R.jsxs(be,T({},Me,{children:[!O&&c?R.jsx(we,T({},Qe)):null,R.jsx(jhe,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:ie,open:j,children:d.cloneElement(g,ye)})]}))})}),RC=Vhe;function Uhe(e){return Ue("MuiDialog",e)}const Whe=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),i0=Whe,Hhe=d.createContext({}),_4=Hhe,qhe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Khe=ne(x4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ghe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return qe(i,Uhe,t)},Qhe=ne(RC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Xhe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ge(r.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Yhe=ne(Yi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ge(r.scroll)}`],t[`paperWidth${ge(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${i0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${i0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${i0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Jhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialog"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:S,onClick:x,onClose:m,open:b,PaperComponent:h=Yi,PaperProps:_={},scroll:C="paper",TransitionComponent:E=b4,transitionDuration:w=o,TransitionProps:O}=n,P=Pe(n,qhe),k=T({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:y,scroll:C}),j=Ghe(k),$=d.useRef(),F=B=>{$.current=B.target===B.currentTarget},z=B=>{x&&x(B),$.current&&($.current=null,S&&S(B),m&&m(B,"backdropClick"))},M=el(s),W=d.useMemo(()=>({titleId:M}),[M]);return R.jsx(Qhe,T({className:ue(j.root,f),closeAfterTransition:!0,components:{Backdrop:Khe},componentsProps:{backdrop:T({transitionDuration:w,as:u},l)},disableEscapeKeyDown:p,onClose:m,open:b,ref:r,onClick:z,ownerState:k},P,{children:R.jsx(E,T({appear:!0,in:b,timeout:w,role:"presentation"},O,{children:R.jsx(Xhe,{className:ue(j.container),onMouseDown:F,ownerState:k,children:R.jsx(Yhe,T({as:h,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":M},_,{className:ue(j.paper,_.className),ownerState:k,children:R.jsx(_4.Provider,{value:W,children:c})}))})}))}))}),TC=Jhe;function Zhe(e){return Ue("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const eve=["className","disableSpacing"],tve=e=>{const{classes:t,disableSpacing:r}=e;return qe({root:["root",!r&&"spacing"]},Zhe,t)},rve=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),nve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Pe(n,eve),s=T({},n,{disableSpacing:o}),u=tve(s);return R.jsx(rve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),$C=nve;function ave(e){return Ue("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function ove(e){return Ue("MuiDialogTitle",e)}const ive=We("MuiDialogTitle",["root"]),sve=ive,lve=["className","dividers"],uve=e=>{const{classes:t,dividers:r}=e;return qe({root:["root",r&&"dividers"]},ave,t)},cve=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${sve.root} + &`]:{paddingTop:0}})),dve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Pe(n,lve),s=T({},n,{dividers:o}),u=uve(s);return R.jsx(cve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),kC=dve;function fve(e){return Ue("MuiDialogContentText",e)}We("MuiDialogContentText",["root"]);const pve=["children","className"],hve=e=>{const{classes:t}=e,n=qe({root:["root"]},fve,t);return T({},t,n)},vve=ne(_t,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Pe(n,pve),i=hve(o);return R.jsx(vve,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),C4=gve,mve=["className","id"],yve=e=>{const{classes:t}=e;return qe({root:["root"]},ove,t)},bve=ne(_t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),xve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Pe(n,mve),s=n,u=yve(s),{titleId:l=o}=d.useContext(_4);return R.jsx(bve,T({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),jC=xve;function wve(e){return Ue("MuiDivider",e)}const Sve=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WT=Sve,_ve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Cve=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:s,variant:u}=e;return qe({root:["root",t&&"absolute",u,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},wve,n)},Eve=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Ove=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),E4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:s=o?"div":"hr",flexItem:u=!1,light:l=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=Pe(n,_ve),y=T({},n,{absolute:a,component:s,flexItem:u,light:l,orientation:c,role:f,textAlign:p,variant:v}),S=Cve(y);return R.jsx(Eve,T({as:s,className:ue(S.root,i),role:f,ref:r,ownerState:y},g,{children:o?R.jsx(Ove,{className:S.wrapper,ownerState:y,children:o}):null}))});E4.muiSkipListHighlight=!0;const mg=E4,Pve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function Tve(e){return typeof e=="function"?e():e}function uh(e,t,r){const n=Tve(r),a=Rve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $ve=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=a,in:p,onEnter:v,onEntered:g,onEntering:y,onExit:S,onExited:x,onExiting:m,style:b,timeout:h=o,TransitionComponent:_=gC}=t,C=Pe(t,Pve),E=d.useRef(null),w=Jt(u.ref,E,r),O=B=>U=>{B&&(U===void 0?B(E.current):B(E.current,U))},P=O((B,U)=>{uh(c,B,l),bC(B),v&&v(B,U)}),k=O((B,U)=>{const q=Ju({timeout:h,style:b,easing:f},{mode:"enter"});B.style.webkitTransition=n.transitions.create("-webkit-transform",T({},q)),B.style.transition=n.transitions.create("transform",T({},q)),B.style.webkitTransform="none",B.style.transform="none",y&&y(B,U)}),j=O(g),$=O(m),F=O(B=>{const U=Ju({timeout:h,style:b,easing:f},{mode:"exit"});B.style.webkitTransition=n.transitions.create("-webkit-transform",U),B.style.transition=n.transitions.create("transform",U),uh(c,B,l),S&&S(B)}),z=O(B=>{B.style.webkitTransition="",B.style.transition="",x&&x(B)}),M=B=>{i&&i(E.current,B)},W=d.useCallback(()=>{E.current&&uh(c,E.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const B=Rc(()=>{E.current&&uh(c,E.current,l)}),U=da(E.current);return U.addEventListener("resize",B),()=>{B.clear(),U.removeEventListener("resize",B)}},[c,p,l]),d.useEffect(()=>{p||W()},[p,W]),R.jsx(_,T({nodeRef:E,onEnter:P,onEntered:j,onEntering:k,onExit:F,onExited:z,onExiting:$,addEndListener:M,appear:s,in:p,timeout:h},C,{children:(B,U)=>d.cloneElement(u,T({ref:w,style:T({visibility:B==="exited"&&!p?"hidden":void 0},b,u.props.style)},U))}))}),O4=$ve;function kve(e){return Ue("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const jve=["BackdropProps"],Ive=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],P4=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Ave=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ge(r)}`,n!=="temporary"&&`paperAnchorDocked${ge(r)}`]};return qe(a,kve,t)},Mve=ne(RC,{name:"MuiDrawer",slot:"Root",overridesResolver:P4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),HT=ne("div",{shouldForwardProp:Wr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:P4})({flex:"0 0 auto"}),Fve=ne(Yi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ge(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ge(r.anchor)}`]]}})(({theme:e,ownerState:t})=>T({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),R4={left:"right",right:"left",top:"down",bottom:"up"};function Nve(e){return["left","right"].indexOf(e)!==-1}function Lve({direction:e},t){return e==="rtl"&&Nve(t)?R4[t]:t}const Dve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),a=fo(),o=cl(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:g,open:y=!1,PaperProps:S={},SlideProps:x,TransitionComponent:m=O4,transitionDuration:b=i,variant:h="temporary"}=n,_=Pe(n.ModalProps,jve),C=Pe(n,Ive),E=d.useRef(!1);d.useEffect(()=>{E.current=!0},[]);const w=Lve({direction:o?"rtl":"ltr"},s),P=T({},n,{anchor:s,elevation:f,open:y,variant:h},C),k=Ave(P),j=R.jsx(Fve,T({elevation:h==="temporary"?f:0,square:!0},S,{className:ue(k.paper,S.className),ownerState:P,children:l}));if(h==="permanent")return R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:j}));const $=R.jsx(m,T({in:y,direction:R4[w],timeout:b,appear:E.current},x,{children:j}));return h==="persistent"?R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:$})):R.jsx(Mve,T({BackdropProps:T({},u,v,{transitionDuration:b}),className:ue(k.root,k.modal,c),open:y,ownerState:P,onClose:g,hideBackdrop:p,ref:r},C,_,{children:$}))}),Bve=Dve;function zve(e){return Ue("MuiFab",e)}const Vve=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),qT=Vve,Uve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Wve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${ge(a)}`,t==="inherit"?"colorInherit":t]},i=qe(o,zve,n);return T({},n,i)},Hve=ne(Ma,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Wr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ge(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return T({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${qT.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>T({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${qT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),qve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,v=Pe(n,Uve),g=T({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),y=Wve(g);return R.jsx(Hve,T({className:ue(y.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(y.focusVisible,c),ownerState:g,ref:r},v,{classes:y,children:a}))}),Kve=qve,Gve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Qve=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},zfe,t);return T({},t,a)},Xve=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Yve=ne(Ay,{name:"MuiFilledInput",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),T4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,S=Pe(s,Gve),x=T({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),m=Qve(s),b={root:{ownerState:x},input:{ownerState:x}},h=v??l?Rr(b,v??l):b,_=(n=(a=g.root)!=null?a:u.Root)!=null?n:Xve,C=(o=(i=g.input)!=null?i:u.Input)!=null?o:Yve;return R.jsx(My,T({slots:{root:_,input:C},componentsProps:h,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},S,{classes:m}))});T4.muiName="Input";const $4=T4;function Jve(e){return Ue("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Zve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ege=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return qe(a,Jve,t)},tge=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${ge(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),rge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:y="medium",variant:S="outlined"}=n,x=Pe(n,Zve),m=T({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:y,variant:S}),b=ege(m),[h,_]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{if(!Hh(F,["Input","Select"]))return;const z=Hh(F,["Select"])?F.props.input:F;z&&$fe(z.props)&&($=!0)}),$}),[C,E]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{Hh(F,["Input","Select"])&&(hg(F.props,!0)||hg(F.props.inputProps,!0))&&($=!0)}),$}),[w,O]=d.useState(!1);u&&w&&O(!1);const P=c!==void 0&&!u?c:w;let k;const j=d.useMemo(()=>({adornedStart:h,setAdornedStart:_,color:i,disabled:u,error:l,filled:C,focused:P,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{O(!0)},registerEffect:k,required:g,variant:S}),[h,i,u,l,C,P,f,p,k,g,y,S]);return R.jsx($y.Provider,{value:j,children:R.jsx(tge,T({as:s,ownerState:m,className:ue(b.root,o),ref:r},x,{children:a}))})}),nge=rge,age=Cle({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),Ny=age;function oge(e){return Ue("MuiFormControlLabel",e)}const ige=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pd=ige,sge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],lge=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return qe(i,oge,t)},uge=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pd.label}`]:t.label},t.root,t[`labelPlacement${ge(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pd.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${pd.label}`]:{[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),cge=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),dge=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=o,y=Pe(o,sge),S=po(),x=(n=l??u.props.disabled)!=null?n:S==null?void 0:S.disabled,m=v??u.props.required,b={disabled:x,required:m};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof o[O]<"u"&&(b[O]=o[O])});const h=Zi({props:o,muiFormControl:S,states:["error"]}),_=T({},o,{disabled:x,labelPlacement:p,required:m,error:h.error}),C=lge(_),E=(a=g.typography)!=null?a:s.typography;let w=f;return w!=null&&w.type!==_t&&!c&&(w=R.jsx(_t,T({component:"span"},E,{className:ue(C.label,E==null?void 0:E.className),children:w}))),R.jsxs(uge,T({className:ue(C.root,i),ownerState:_,ref:r},y,{children:[d.cloneElement(u,b),m?R.jsxs(Ny,{display:"block",children:[w,R.jsxs(cge,{ownerState:_,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):w]}))}),fge=dge;function pge(e){return Ue("MuiFormGroup",e)}We("MuiFormGroup",["root","row","error"]);const hge=["className","row"],vge=e=>{const{classes:t,row:r,error:n}=e;return qe({root:["root",r&&"row",n&&"error"]},pge,t)},gge=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),mge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Pe(n,hge),s=po(),u=Zi({props:n,muiFormControl:s,states:["error"]}),l=T({},n,{row:o,error:u.error}),c=vge(l);return R.jsx(gge,T({className:ue(c.root,a),ownerState:l,ref:r},i))}),yge=mge;function bge(e){return Ue("MuiFormHelperText",e)}const xge=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KT=xge;var GT;const wge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Sge=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${ge(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return qe(l,bge,t)},_ge=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ge(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KT.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KT.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Cge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Pe(n,wge),u=po(),l=Zi({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=T({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Sge(c);return R.jsx(_ge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:a===" "?GT||(GT=R.jsx("span",{className:"notranslate",children:"​"})):a}))}),IC=Cge;function Ege(e){return Ue("MuiFormLabel",e)}const Oge=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ld=Oge,Pge=["children","className","color","component","disabled","error","filled","focused","required"],Rge=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${ge(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return qe(u,Ege,t)},Tge=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ld.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),$ge=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),kge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Pe(n,Pge),u=po(),l=Zi({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=T({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Rge(c);return R.jsxs(Tge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:[a,l.required&&R.jsxs($ge,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),jge=kge,Ige=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cx(e){return`scale(${e}, ${e**2})`}const Age={entering:{opacity:1,transform:Cx(1)},entered:{opacity:1,transform:"none"}},s0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k4=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:y="auto",TransitionComponent:S=gC}=t,x=Pe(t,Ige),m=Ss(),b=d.useRef(),h=fo(),_=d.useRef(null),C=Jt(_,o.ref,r),E=z=>M=>{if(z){const W=_.current;M===void 0?z(W):z(W,M)}},w=E(c),O=E((z,M)=>{bC(z);const{duration:W,delay:B,easing:U}=Ju({style:g,timeout:y,easing:i},{mode:"enter"});let q;y==="auto"?(q=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=q):q=W,z.style.transition=[h.transitions.create("opacity",{duration:q,delay:B}),h.transitions.create("transform",{duration:s0?q:q*.666,delay:B,easing:U})].join(","),u&&u(z,M)}),P=E(l),k=E(v),j=E(z=>{const{duration:M,delay:W,easing:B}=Ju({style:g,timeout:y,easing:i},{mode:"exit"});let U;y==="auto"?(U=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=U):U=M,z.style.transition=[h.transitions.create("opacity",{duration:U,delay:W}),h.transitions.create("transform",{duration:s0?U:U*.666,delay:s0?W:W||U*.333,easing:B})].join(","),z.style.opacity=0,z.style.transform=Cx(.75),f&&f(z)}),$=E(p),F=z=>{y==="auto"&&m.start(b.current||0,z),n&&n(_.current,z)};return R.jsx(S,T({appear:a,in:s,nodeRef:_,onEnter:O,onEntered:P,onEntering:w,onExit:j,onExited:$,onExiting:k,addEndListener:F,timeout:y==="auto"?null:y},x,{children:(z,M)=>d.cloneElement(o,T({style:T({opacity:0,transform:Cx(.75),visibility:z==="exited"&&!s?"hidden":void 0},Age[z],g,o.props.style),ref:C},M))}))});k4.muiSupportAuto=!0;const yg=k4,Mge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Fge=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Nfe,t);return T({},t,a)},Nge=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Lge=ne(Ay,{name:"MuiInput",slot:"Input",overridesResolver:jy})({}),j4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:y={},type:S="text"}=s,x=Pe(s,Mge),m=Fge(s),h={root:{ownerState:{disableUnderline:u}}},_=g??c?Rr(g??c,h):h,C=(n=(a=y.root)!=null?a:l.Root)!=null?n:Nge,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:Lge;return R.jsx(My,T({slots:{root:C,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:S},x,{classes:m}))});j4.muiName="Input";const I4=j4;function Dge(e){return Ue("MuiInputAdornment",e)}const Bge=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),QT=Bge;var XT;const zge=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Vge=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Uge=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${ge(a)}`,i,n&&"hiddenLabel",o&&`size${ge(o)}`]};return qe(s,Dge,t)},Wge=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Vge})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${QT.positionStart}&:not(.${QT.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Hge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=Pe(n,zge),p=po()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=T({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),y=Uge(g);return R.jsx($y.Provider,{value:null,children:R.jsx(Wge,T({as:i,ownerState:g,className:ue(y.root,o),ref:r},f,{children:typeof a=="string"&&!u?R.jsx(_t,{color:"text.secondary",children:a}):R.jsxs(d.Fragment,{children:[l==="start"?XT||(XT=R.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})}),Xh=Hge;function qge(e){return Ue("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Kge=["disableAnimation","margin","shrink","variant","className"],Gge=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ge(n)}`,i],asterisk:[s&&"asterisk"]},l=qe(u,qge,t);return T({},t,l)},Qge=ne(jge,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ld.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Xge=d.forwardRef(function(t,r){const n=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Pe(n,Kge),u=po();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Zi({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=T({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Gge(f);return R.jsx(Qge,T({"data-shrink":l,ownerState:f,ref:r,className:ue(p.root,i)},s,{classes:p}))}),Yge=Xge;function Jge(e){return Ue("MuiLink",e)}const Zge=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),eme=Zge,A4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tme=e=>A4[e]||e,rme=({theme:e,ownerState:t})=>{const r=tme(t.color),n=Xu(e,`palette.${r}`,!1)||t.color,a=Xu(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},nme=rme,ame=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ome=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${ge(a)}`,r==="button"&&"button",n&&"focusVisible"]};return qe(o,Jge,t)},ime=ne(_t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ge(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:nme({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${eme.focusVisible}`]:{outline:"auto"}})),sme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,v=Pe(n,ame),{isFocusVisibleRef:g,onBlur:y,onFocus:S,ref:x}=Ey(),[m,b]=d.useState(!1),h=Jt(r,x),_=O=>{y(O),g.current===!1&&b(!1),s&&s(O)},C=O=>{S(O),g.current===!0&&b(!0),u&&u(O)},E=T({},n,{color:o,component:i,focusVisible:m,underline:c,variant:f}),w=ome(E);return R.jsx(ime,T({color:o,className:ue(w.root,a),classes:l,component:i,onBlur:_,onFocus:C,ref:h,ownerState:E,variant:f,sx:[...Object.keys(A4).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},v))}),lme=sme,ume=d.createContext({}),jf=ume;function cme(e){return Ue("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const dme=["children","className","component","dense","disablePadding","subheader"],fme=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return qe({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},cme,t)},pme=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),hme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Pe(n,dme),f=d.useMemo(()=>({dense:s}),[s]),p=T({},n,{component:i,dense:s,disablePadding:u}),v=fme(p);return R.jsx(jf.Provider,{value:f,children:R.jsxs(pme,T({as:i,className:ue(v.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})}),vme=hme;function gme(e){return Ue("MuiListItemIcon",e)}const mme=We("MuiListItemIcon",["root","alignItemsFlexStart"]),YT=mme,yme=["className"],bme=e=>{const{alignItems:t,classes:r}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},gme,r)},xme=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>T({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),wme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Pe(n,yme),i=d.useContext(jf),s=T({},n,{alignItems:i.alignItems}),u=bme(s);return R.jsx(xme,T({className:ue(u.root,a),ownerState:s,ref:r},o))}),Cs=wme;function Sme(e){return Ue("MuiListItemText",e)}const _me=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bg=_me,Cme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Eme=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return qe({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Sme,t)},Ome=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bg.primary}`]:t.primary},{[`& .${bg.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Pme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=Pe(n,Cme),{dense:v}=d.useContext(jf);let g=u??a,y=c;const S=T({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!y,dense:v}),x=Eme(S);return g!=null&&g.type!==_t&&!i&&(g=R.jsx(_t,T({variant:v?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),y!=null&&y.type!==_t&&!i&&(y=R.jsx(_t,T({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),R.jsxs(Ome,T({className:ue(x.root,o),ownerState:S,ref:r},p,{children:[g,y]}))}),Zl=Pme,Rme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JT(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function M4(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Yc(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!M4(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const Tme=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=Pe(t,Rme),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{a&&v.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:h})=>{const _=!v.current.style.width;if(b.clientHeight{const h=v.current,_=b.key,C=wr(h).activeElement;if(_==="ArrowDown")b.preventDefault(),Yc(h,C,l,u,l0);else if(_==="ArrowUp")b.preventDefault(),Yc(h,C,l,u,JT);else if(_==="Home")b.preventDefault(),Yc(h,null,l,u,l0);else if(_==="End")b.preventDefault(),Yc(h,null,l,u,JT);else if(_.length===1){const E=g.current,w=_.toLowerCase(),O=performance.now();E.keys.length>0&&(O-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&w!==E.keys[0]&&(E.repeating=!1)),E.lastTime=O,E.keys.push(w);const P=C&&!E.repeating&&M4(C,E);E.previousKeyMatched&&(P||Yc(h,C,!1,u,l0,E))?b.preventDefault():E.previousKeyMatched=!1}c&&c(b)},S=Jt(v,r);let x=-1;d.Children.forEach(i,(b,h)=>{if(!d.isValidElement(b)){x===h&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=h),x===h&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(b,h)=>{if(h===x){const _={};return o&&(_.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),d.cloneElement(b,_)}return b});return R.jsx(vme,T({role:"menu",ref:S,className:s,onKeyDown:y,tabIndex:a?0:-1},p,{children:m}))}),F4=Tme;function $me(e){return Ue("MuiPopover",e)}We("MuiPopover",["root","paper"]);const kme=["onEntering"],jme=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ime=["slotProps"];function ZT(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function e$(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function t$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function u0(e){return typeof e=="function"?e():e}const Ame=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},$me,t)},Mme=ne(RC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4=ne(Yi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Fme=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:y=8,marginThreshold:S=16,open:x,PaperProps:m={},slots:b,slotProps:h,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:C=yg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:O=!1}=i,P=Pe(i.TransitionProps,kme),k=Pe(i,jme),j=(n=h==null?void 0:h.paper)!=null?n:m,$=d.useRef(),F=Jt($,j.ref),z=T({},i,{anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:_,TransitionComponent:C,transitionDuration:E,TransitionProps:P}),M=Ame(z),W=d.useCallback(()=>{if(f==="anchorPosition")return c;const Ne=u0(u),He=(Ne&&Ne.nodeType===1?Ne:wr($.current).body).getBoundingClientRect();return{top:He.top+ZT(He,l.vertical),left:He.left+e$(He,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),B=d.useCallback(Ne=>({vertical:ZT(Ne,_.vertical),horizontal:e$(Ne,_.horizontal)}),[_.horizontal,_.vertical]),U=d.useCallback(Ne=>{const Ae={width:Ne.offsetWidth,height:Ne.offsetHeight},He=B(Ae);if(f==="none")return{top:null,left:null,transformOrigin:t$(He)};const ht=W();let ut=ht.top-He.vertical,V=ht.left-He.horizontal;const K=ut+Ae.height,te=V+Ae.width,se=da(u0(u)),de=se.innerHeight-S,fe=se.innerWidth-S;if(S!==null&&utde){const Oe=K-de;ut-=Oe,He.vertical+=Oe}if(S!==null&&Vfe){const Oe=te-fe;V-=Oe,He.horizontal+=Oe}return{top:`${Math.round(ut)}px`,left:`${Math.round(V)}px`,transformOrigin:t$(He)}},[u,f,W,B,S]),[q,ie]=d.useState(x),oe=d.useCallback(()=>{const Ne=$.current;if(!Ne)return;const Ae=U(Ne);Ae.top!==null&&(Ne.style.top=Ae.top),Ae.left!==null&&(Ne.style.left=Ae.left),Ne.style.transformOrigin=Ae.transformOrigin,ie(!0)},[U]);d.useEffect(()=>(O&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,O,oe]);const Ee=(Ne,Ae)=>{w&&w(Ne,Ae),oe()},pe=()=>{ie(!1)};d.useEffect(()=>{x&&oe()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),d.useEffect(()=>{if(!x)return;const Ne=Rc(()=>{oe()}),Ae=da(u);return Ae.addEventListener("resize",Ne),()=>{Ne.clear(),Ae.removeEventListener("resize",Ne)}},[u,x,oe]);let Te=E;E==="auto"&&!C.muiSupportAuto&&(Te=void 0);const ye=g||(u?wr(u0(u)).body:void 0),be=(a=b==null?void 0:b.root)!=null?a:Mme,we=(o=b==null?void 0:b.paper)!=null?o:N4,ve=fa({elementType:we,externalSlotProps:T({},j,{style:q?j.style:T({},j.style,{opacity:0})}),additionalProps:{elevation:y,ref:F},ownerState:z,className:ue(M.paper,j==null?void 0:j.className)}),De=fa({elementType:be,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ye,open:x},ownerState:z,className:ue(M.root,v)}),{slotProps:Me}=De,Qe=Pe(De,Ime);return R.jsx(be,T({},Qe,!Rf(be)&&{slotProps:Me,disableScrollLock:O},{children:R.jsx(C,T({appear:!0,in:x,onEntering:Ee,onExited:pe,timeout:Te},P,{children:R.jsx(we,T({},ve,{children:p}))}))}))}),L4=Fme;function Nme(e){return Ue("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Lme=["onEntering"],Dme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Bme={vertical:"top",horizontal:"right"},zme={vertical:"top",horizontal:"left"},Vme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Nme,t)},Ume=ne(L4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wme=ne(N4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Hme=ne(F4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qme=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:x="selectedMenu",slots:m={},slotProps:b={}}=o,h=Pe(o.TransitionProps,Lme),_=Pe(o,Dme),C=cl(),E=T({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:v,transitionDuration:y,TransitionProps:h,variant:x}),w=Vme(E),O=i&&!l&&p,P=d.useRef(null),k=(B,U)=>{P.current&&P.current.adjustStyleForScrollbar(B,{direction:C?"rtl":"ltr"}),S&&S(B,U)},j=B=>{B.key==="Tab"&&(B.preventDefault(),f&&f(B,"tabKeyDown"))};let $=-1;d.Children.map(s,(B,U)=>{d.isValidElement(B)&&(B.props.disabled||(x==="selectedMenu"&&B.props.selected||$===-1)&&($=U))});const F=(n=m.paper)!=null?n:Wme,z=(a=b.paper)!=null?a:v,M=fa({elementType:m.root,externalSlotProps:b.root,ownerState:E,className:[w.root,u]}),W=fa({elementType:F,externalSlotProps:z,ownerState:E,className:w.paper});return R.jsx(Ume,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Bme:zme,slots:{paper:F,root:m.root},slotProps:{root:M,paper:W},open:p,ref:r,transitionDuration:y,TransitionProps:T({onEntering:k},h),ownerState:E},_,{classes:g,children:R.jsx(Hme,T({onKeyDown:j,actions:P,autoFocus:i&&($===-1||l),autoFocusItem:O,variant:x},c,{className:ue(w.list,c.className),children:s}))}))}),Ly=qme;function Kme(e){return Ue("MuiMenuItem",e)}const Gme=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jc=Gme,Qme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Xme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Yme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=qe({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Kme,i);return T({},i,u)},Jme=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Xme})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Jc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Jc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WT.inset}`]:{marginLeft:52},[`& .${bg.root}`]:{marginTop:0,marginBottom:0},[`& .${bg.inset}`]:{paddingLeft:36},[`& .${YT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${YT.root} svg`]:{fontSize:"1.25rem"}}))),Zme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,v=Pe(n,Qme),g=d.useContext(jf),y=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),S=d.useRef(null);qn(()=>{a&&S.current&&S.current.focus()},[a]);const x=T({},n,{dense:y.dense,divider:s,disableGutters:u}),m=Yme(n),b=Jt(S,r);let h;return n.disabled||(h=f!==void 0?f:-1),R.jsx(jf.Provider,{value:y,children:R.jsx(Jme,T({ref:b,role:c,tabIndex:h,component:o,focusVisibleClassName:ue(m.focusVisible,l),className:ue(m.root,p)},v,{ownerState:x,classes:m}))})}),Ta=Zme;function eye(e){return Ue("MuiNativeSelect",e)}const tye=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AC=tye,rye=["className","disabled","error","IconComponent","inputRef","variant"],nye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"]};return qe(s,eye,t)},D4=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${AC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),aye=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${AC.multiple}`]:t.multiple}]}})(D4),B4=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),oye=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),iye=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Pe(t,rye),c=T({},t,{disabled:a,variant:u,error:o}),f=nye(c);return R.jsxs(d.Fragment,{children:[R.jsx(aye,T({ownerState:c,className:ue(f.select,n),disabled:a,ref:s||r},l)),t.multiple?null:R.jsx(oye,{as:i,ownerState:c,className:f.icon})]})}),sye=iye;var r$;const lye=["children","classes","className","label","notched"],uye=ne("fieldset",{shouldForwardProp:Wr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cye=ne("legend",{shouldForwardProp:Wr})(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function dye(e){const{className:t,label:r,notched:n}=e,a=Pe(e,lye),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return R.jsx(uye,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:R.jsx(cye,{ownerState:i,children:o?R.jsx("span",{children:r}):r$||(r$=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const fye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pye=e=>{const{classes:t}=e,n=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Dfe,t);return T({},t,n)},hye=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ky})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yo.focused} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yo.error} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yo.disabled} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),vye=ne(dye,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),gye=ne(Ay,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),z4=d.forwardRef(function(t,r){var n,a,o,i,s;const u=Ke({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:y={},type:S="text"}=u,x=Pe(u,fye),m=pye(u),b=po(),h=Zi({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:b,fullWidth:c,hiddenLabel:h.hiddenLabel,multiline:v,size:h.size,type:S}),C=(n=(a=y.root)!=null?a:l.Root)!=null?n:hye,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:gye;return R.jsx(My,T({slots:{root:C,input:E},renderSuffix:w=>R.jsx(vye,{ownerState:_,className:m.notchedOutline,label:p!=null&&p!==""&&h.required?s||(s=R.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:r,type:S},x,{classes:T({},m,{notchedOutline:null})}))});z4.muiName="Input";const V4=z4;function mye(e){return Ue("MuiPagination",e)}We("MuiPagination",["root","ul","outlined","text"]);const yye=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function bye(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=Pe(e,yye),[g,y]=Yu({controlled:l,default:a,name:r,state:"page"}),S=(O,P)=>{l||y(P),u&&u(O,P)},x=(O,P)=>{const k=P-O+1;return Array.from({length:k},(j,$)=>O+$)},m=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),h=Math.max(Math.min(g-p,n-t-p*2-1),t+2),_=Math.min(Math.max(g+p,t+p*2+2),b.length>0?b[0]-2:n-1),C=[...c?["first"]:[],...s?[]:["previous"],...m,...h>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...f?["last"]:[]],E=O=>{switch(O){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},w=C.map(O=>typeof O=="number"?{onClick:P=>{S(P,O)},type:"page",page:O,selected:O===g,disabled:o,"aria-current":O===g?"true":void 0}:{onClick:P=>{S(P,E(O))},type:O,page:E(O),selected:!1,disabled:o||O.indexOf("ellipsis")===-1&&(O==="next"||O==="last"?g>=n:g<=1)});return T({items:w},v)}function xye(e){return Ue("MuiPaginationItem",e)}const wye=We("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Yn=wye,Ex=An(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ox=An(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),n$=An(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),a$=An(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Sye=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],U4=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.variant==="text"&&t[`text${ge(r.color)}`],r.variant==="outlined"&&t[`outlined${ge(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},_ye=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${ge(o)}`,u,i,r!=="standard"&&`color${ge(r)}`,r!=="standard"&&`${u}${ge(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return qe(l,xye,t)},Cye=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Eye=ne(Ma,{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Yn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>T({},t.variant==="text"&&{[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Yn.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Yn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Oye=ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>T({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Pye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:v={},type:g="page",variant:y="text"}=n,S=Pe(n,Sye),x=T({},n,{color:o,disabled:u,selected:c,shape:f,size:p,type:g,variant:y}),m=cl(),b=_ye(x),_=(m?{previous:v.next||s.next||a$,next:v.previous||s.previous||n$,last:v.first||s.first||Ex,first:v.last||s.last||Ox}:{previous:v.previous||s.previous||n$,next:v.next||s.next||a$,first:v.first||s.first||Ex,last:v.last||s.last||Ox})[g];return g==="start-ellipsis"||g==="end-ellipsis"?R.jsx(Cye,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):R.jsxs(Eye,T({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},S,{children:[g==="page"&&l,_?R.jsx(Oye,{as:_,ownerState:x,className:b.icon}):null]}))}),Rye=Pye,Tye=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],$ye=e=>{const{classes:t,variant:r}=e;return qe({root:["root",r],ul:["ul"]},mye,t)},kye=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),jye=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Iye(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Aye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Iye,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=w=>R.jsx(Rye,T({},w)),shape:g="circular",showFirstButton:y=!1,showLastButton:S=!1,siblingCount:x=1,size:m="medium",variant:b="text"}=n,h=Pe(n,Tye),{items:_}=bye(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:g,showFirstButton:y,showLastButton:S,siblingCount:x,size:m,variant:b}),E=$ye(C);return R.jsx(kye,T({"aria-label":"pagination navigation",className:ue(E.root,o),ownerState:C,ref:r},h,{children:R.jsx(jye,{className:E.ul,ownerState:C,children:_.map((w,O)=>R.jsx("li",{children:v(T({},w,{color:i,"aria-label":c(w.type,w.page,w.selected),shape:g,size:m,variant:b}))},O))})}))}),Mye=Aye;function Fye(e){return Ue("MuiSelect",e)}const Nye=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zc=Nye;var o$;const Lye=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Dye=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Zc.select}`]:t.select},{[`&.${Zc.select}`]:t[r.variant]},{[`&.${Zc.error}`]:t.error},{[`&.${Zc.multiple}`]:t.multiple}]}})(D4,{[`&.${Zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Bye=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),zye=ne("input",{shouldForwardProp:e=>n4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function i$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Vye(e){return e==null||typeof e=="string"&&!e.trim()}const Uye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return qe(s,Fye,t)},Wye=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:S,labelId:x,MenuProps:m={},multiple:b,name:h,onBlur:_,onChange:C,onClose:E,onFocus:w,onOpen:O,open:P,readOnly:k,renderValue:j,SelectDisplayProps:$={},tabIndex:F,value:z,variant:M="standard"}=t,W=Pe(t,Lye),[B,U]=Yu({controlled:z,default:f,name:"Select"}),[q,ie]=Yu({controlled:P,default:c,name:"Select"}),oe=d.useRef(null),Ee=d.useRef(null),[pe,Te]=d.useState(null),{current:ye}=d.useRef(P!=null),[be,we]=d.useState(),ve=Jt(r,S),De=d.useCallback(je=>{Ee.current=je,je&&Te(je)},[]),Me=pe==null?void 0:pe.parentNode;d.useImperativeHandle(ve,()=>({focus:()=>{Ee.current.focus()},node:oe.current,value:B}),[B]),d.useEffect(()=>{c&&q&&pe&&!ye&&(we(s?null:Me.clientWidth),Ee.current.focus())},[pe,s]),d.useEffect(()=>{i&&Ee.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const je=wr(Ee.current).getElementById(x);if(je){const Je=()=>{getSelection().isCollapsed&&Ee.current.focus()};return je.addEventListener("click",Je),()=>{je.removeEventListener("click",Je)}}},[x]);const Qe=(je,Je)=>{je?O&&O(Je):E&&E(Je),ye||(we(s?null:Me.clientWidth),ie(je))},Ne=je=>{je.button===0&&(je.preventDefault(),Ee.current.focus(),Qe(!0,je))},Ae=je=>{Qe(!1,je)},He=d.Children.toArray(u),ht=je=>{const Je=He.find(_e=>_e.props.value===je.target.value);Je!==void 0&&(U(Je.props.value),C&&C(je,Je))},ut=je=>Je=>{let _e;if(Je.currentTarget.hasAttribute("tabindex")){if(b){_e=Array.isArray(B)?B.slice():[];const Fe=B.indexOf(je.props.value);Fe===-1?_e.push(je.props.value):_e.splice(Fe,1)}else _e=je.props.value;if(je.props.onClick&&je.props.onClick(Je),B!==_e&&(U(_e),C)){const Fe=Je.nativeEvent||Je,Ge=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ge,"target",{writable:!0,value:{value:_e,name:h}}),C(Ge,je)}b||Qe(!1,Je)}},V=je=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),Qe(!0,je))},K=pe!==null&&q,te=je=>{!K&&_&&(Object.defineProperty(je,"target",{writable:!0,value:{value:B,name:h}}),_(je))};delete W["aria-invalid"];let se,de;const fe=[];let Oe=!1;(hg({value:B})||v)&&(j?se=j(B):Oe=!0);const ae=He.map(je=>{if(!d.isValidElement(je))return null;let Je;if(b){if(!Array.isArray(B))throw new Error(No(2));Je=B.some(_e=>i$(_e,je.props.value)),Je&&Oe&&fe.push(je.props.children)}else Je=i$(B,je.props.value),Je&&Oe&&(de=je.props.children);return d.cloneElement(je,{"aria-selected":Je?"true":"false",onClick:ut(je),onKeyUp:_e=>{_e.key===" "&&_e.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(_e)},role:"option",selected:Je,value:void 0,"data-value":je.props.value})});Oe&&(b?fe.length===0?se=null:se=fe.reduce((je,Je,_e)=>(je.push(Je),_e{const{classes:t}=e;return t},MC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wr(e)&&e!=="variant",slot:"Root"},Qye=ne(I4,MC)(""),Xye=ne(V4,MC)(""),Yye=ne($4,MC)(""),W4=d.forwardRef(function(t,r){const n=Ke({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Ufe,id:f,input:p,inputProps:v,label:g,labelId:y,MenuProps:S,multiple:x=!1,native:m=!1,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=n,O=Pe(n,qye),P=m?sye:Hye,k=po(),j=Zi({props:n,muiFormControl:k,states:["variant","error"]}),$=j.variant||w,F=T({},n,{variant:$,classes:i}),z=Gye(F),M=Pe(z,Kye),W=p||{standard:R.jsx(Qye,{ownerState:F}),outlined:R.jsx(Xye,{label:g,ownerState:F}),filled:R.jsx(Yye,{ownerState:F})}[$],B=Jt(r,W.ref);return R.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:P,inputProps:T({children:o,error:j.error,IconComponent:c,variant:$,type:void 0,multiple:x},m?{id:f}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:T({id:f},E)},v,{classes:v?Rr(M,v.classes):M},p?p.props.inputProps:{})},(x&&m||l)&&$==="outlined"?{notched:!0}:{},{ref:B,className:ue(W.props.className,s,z.root)},!p&&{variant:$},O))})});W4.muiName="Select";const H4=W4;function Jye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Ss();d.useEffect(()=>{if(!a)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=fn((x,m)=>{n==null||n(x,m)}),u=fn(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});d.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,f=d.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>m=>{const b=x.onBlur;b==null||b(m),f()},v=x=>m=>{const b=x.onFocus;b==null||b(m),c()},g=x=>m=>{const b=x.onMouseEnter;b==null||b(m),c()},y=x=>m=>{const b=x.onMouseLeave;b==null||b(m),f()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,a,f,c]),{getRootProps:(x={})=>{const m=T({},ug(e),ug(x));return T({role:"presentation"},x,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:g(m),onMouseLeave:y(m)})},onClickAway:l}}function Zye(e){return Ue("MuiSnackbarContent",e)}We("MuiSnackbarContent",["root","message","action"]);const ebe=["action","className","message","role"],tbe=e=>{const{classes:t}=e;return qe({root:["root"],action:["action"],message:["message"]},Zye,t)},rbe=ne(Yi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Rle(e.palette.background.default,t);return T({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),nbe=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),abe=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),obe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Pe(n,ebe),l=n,c=tbe(l);return R.jsxs(rbe,T({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[R.jsx(nbe,{className:c.message,ownerState:l,children:i}),a?R.jsx(abe,{className:c.action,ownerState:l,children:a}):null]}))}),ibe=obe;function sbe(e){return Ue("MuiSnackbar",e)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const lbe=["onEnter","onExited"],ube=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],cbe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ge(r.vertical)}${ge(r.horizontal)}`]};return qe(n,sbe,t)},s$=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ge(r.anchorOrigin.vertical)}${ge(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return T({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:T({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),dbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbar"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:g=!1,message:y,open:S,TransitionComponent:x=yg,transitionDuration:m=o,TransitionProps:{onEnter:b,onExited:h}={}}=n,_=Pe(n.TransitionProps,lbe),C=Pe(n,ube),E=T({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),w=cbe(E),{getRootProps:O,onClickAway:P}=Jye(T({},E)),[k,j]=d.useState(!0),$=fa({elementType:s$,getSlotProps:O,externalForwardedProps:C,ownerState:E,additionalProps:{ref:r},className:[w.root,f]}),F=M=>{j(!0),h&&h(M)},z=(M,W)=>{j(!1),b&&b(M,W)};return!S&&k?null:R.jsx(ghe,T({onClickAway:P},p,{children:R.jsx(s$,T({},$,{children:R.jsx(x,T({appear:!0,in:S,timeout:m,direction:s==="top"?"down":"up",onEnter:z,onExited:F},_,{children:c||R.jsx(ibe,T({message:y,action:i},v))}))}))}))}),fbe=dbe;function pbe(e){return Ue("MuiTooltip",e)}const hbe=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_i=hbe,vbe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function gbe(e){return Math.round(e*1e5)/1e5}const mbe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${ge(o.split("-")[0])}`],arrow:["arrow"]};return qe(i,pbe,t)},ybe=ne(m4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_i.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_i.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_i.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${_i.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),bbe=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ge(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${gbe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_i.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_i.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_i.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_i.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),xbe=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ch=!1;const l$=new hp;let ed={x:0,y:0};function dh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const wbe=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_;const C=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:w,components:O={},componentsProps:P={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:$=!1,disableInteractive:F=!1,disableTouchListener:z=!1,enterDelay:M=100,enterNextDelay:W=0,enterTouchDelay:B=700,followCursor:U=!1,id:q,leaveDelay:ie=0,leaveTouchDelay:oe=1500,onClose:Ee,onOpen:pe,open:Te,placement:ye="bottom",PopperComponent:be,PopperProps:we={},slotProps:ve={},slots:De={},title:Me,TransitionComponent:Qe=yg,TransitionProps:Ne}=C,Ae=Pe(C,vbe),He=d.isValidElement(w)?w:R.jsx("span",{children:w}),ht=fo(),ut=cl(),[V,K]=d.useState(),[te,se]=d.useState(null),de=d.useRef(!1),fe=F||U,Oe=Ss(),ae=Ss(),Z=Ss(),G=Ss(),[le,he]=Yu({controlled:Te,default:!1,name:"Tooltip",state:"open"});let Re=le;const Be=el(q),Ye=d.useRef(),je=fn(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),G.clear()});d.useEffect(()=>je,[je]);const Je=Y=>{l$.clear(),ch=!0,he(!0),pe&&!Re&&pe(Y)},_e=fn(Y=>{l$.start(800+ie,()=>{ch=!1}),he(!1),Ee&&Re&&Ee(Y),Oe.start(ht.transitions.duration.shortest,()=>{de.current=!1})}),Fe=Y=>{de.current&&Y.type!=="touchstart"||(V&&V.removeAttribute("title"),ae.clear(),Z.clear(),M||ch&&W?ae.start(ch?W:M,()=>{Je(Y)}):Je(Y))},Ge=Y=>{ae.clear(),Z.start(ie,()=>{_e(Y)})},{isFocusVisibleRef:nt,onBlur:mt,onFocus:Ot,ref:kt}=Ey(),[,Pt]=d.useState(!1),at=Y=>{mt(Y),nt.current===!1&&(Pt(!1),Ge(Y))},It=Y=>{V||K(Y.currentTarget),Ot(Y),nt.current===!0&&(Pt(!0),Fe(Y))},nr=Y=>{de.current=!0;const Q=He.props;Q.onTouchStart&&Q.onTouchStart(Y)},mn=Y=>{nr(Y),Z.clear(),Oe.clear(),je(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(B,()=>{document.body.style.WebkitUserSelect=Ye.current,Fe(Y)})},qr=Y=>{He.props.onTouchEnd&&He.props.onTouchEnd(Y),je(),Z.start(oe,()=>{_e(Y)})};d.useEffect(()=>{if(!Re)return;function Y(Q){(Q.key==="Escape"||Q.key==="Esc")&&_e(Q)}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[_e,Re]);const Nr=Jt(He.ref,kt,K,r);!Me&&Me!==0&&(Re=!1);const Tr=d.useRef(),Mn=Y=>{const Q=He.props;Q.onMouseMove&&Q.onMouseMove(Y),ed={x:Y.clientX,y:Y.clientY},Tr.current&&Tr.current.update()},Kr={},Ko=typeof Me=="string";k?(Kr.title=!Re&&Ko&&!$?Me:null,Kr["aria-describedby"]=Re?Be:null):(Kr["aria-label"]=Ko?Me:null,Kr["aria-labelledby"]=Re&&!Ko?Be:null);const $r=T({},Kr,Ae,He.props,{className:ue(Ae.className,He.props.className),onTouchStart:nr,ref:Nr},U?{onMouseMove:Mn}:{}),ho={};z||($r.onTouchStart=mn,$r.onTouchEnd=qr),$||($r.onMouseOver=dh(Fe,$r.onMouseOver),$r.onMouseLeave=dh(Ge,$r.onMouseLeave),fe||(ho.onMouseOver=Fe,ho.onMouseLeave=Ge)),j||($r.onFocus=dh(It,$r.onFocus),$r.onBlur=dh(at,$r.onBlur),fe||(ho.onFocus=It,ho.onBlur=at));const X=d.useMemo(()=>{var Y;let Q=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Y=we.popperOptions)!=null&&Y.modifiers&&(Q=Q.concat(we.popperOptions.modifiers)),T({},we.popperOptions,{modifiers:Q})},[te,we]),ee=T({},C,{isRtl:ut,arrow:E,disableInteractive:fe,placement:ye,PopperComponentProp:be,touch:de.current}),ce=mbe(ee),Ce=(n=(a=De.popper)!=null?a:O.Popper)!=null?n:ybe,N=(o=(i=(s=De.transition)!=null?s:O.Transition)!=null?i:Qe)!=null?o:yg,D=(u=(l=De.tooltip)!=null?l:O.Tooltip)!=null?u:bbe,I=(c=(f=De.arrow)!=null?f:O.Arrow)!=null?c:xbe,A=Jl(Ce,T({},we,(p=ve.popper)!=null?p:P.popper,{className:ue(ce.popper,we==null?void 0:we.className,(v=(g=ve.popper)!=null?g:P.popper)==null?void 0:v.className)}),ee),L=Jl(N,T({},Ne,(y=ve.transition)!=null?y:P.transition),ee),H=Jl(D,T({},(S=ve.tooltip)!=null?S:P.tooltip,{className:ue(ce.tooltip,(x=(m=ve.tooltip)!=null?m:P.tooltip)==null?void 0:x.className)}),ee),re=Jl(I,T({},(b=ve.arrow)!=null?b:P.arrow,{className:ue(ce.arrow,(h=(_=ve.arrow)!=null?_:P.arrow)==null?void 0:h.className)}),ee);return R.jsxs(d.Fragment,{children:[d.cloneElement(He,$r),R.jsx(Ce,T({as:be??m4,placement:ye,anchorEl:U?{getBoundingClientRect:()=>({top:ed.y,left:ed.x,right:ed.x,bottom:ed.y,width:0,height:0})}:V,popperRef:Tr,open:V?Re:!1,id:Be,transition:!0},ho,A,{popperOptions:X,children:({TransitionProps:Y})=>R.jsx(N,T({timeout:ht.transitions.duration.shorter},Y,L,{children:R.jsxs(D,T({},H,{children:[Me,E?R.jsx(I,T({},re,{ref:se})):null]}))}))}))]})}),kn=wbe;function Sbe(e){return Ue("MuiSwitch",e)}const _be=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),on=_be,Cbe=["className","color","edge","size","sx"],Ebe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,s={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qe(s,Sbe,t);return T({},t,u)},Obe=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),Pbe=ne(S4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fC(e.palette[t].main,.62):dC(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Rbe=ne("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Tbe=ne("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),$be=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:s="medium",sx:u}=n,l=Pe(n,Cbe),c=T({},n,{color:o,edge:i,size:s}),f=Ebe(c),p=R.jsx(Tbe,{className:f.thumb,ownerState:c});return R.jsxs(Obe,{className:ue(f.root,a),sx:u,ownerState:c,children:[R.jsx(Pbe,T({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:c},l,{classes:T({},f,{root:f.switchBase})})),R.jsx(Rbe,{className:f.track,ownerState:c})]})}),kbe=$be;function jbe(e){return Ue("MuiTab",e)}const Ibe=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Zo=Ibe,Abe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Mbe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:s,disabled:u}=e,l={root:["root",o&&i&&"labelIcon",`textColor${ge(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return qe(l,jbe,t)},Fbe=ne(Ma,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ge(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Zo.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Zo.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Zo.selected}`]:{opacity:1},[`&.${Zo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Nbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:y,selectionFollowsFocus:S,textColor:x="inherit",value:m,wrapped:b=!1}=n,h=Pe(n,Abe),_=T({},n,{disabled:o,disableFocusRipple:i,selected:y,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=Mbe(_),E=u&&f&&d.isValidElement(u)?d.cloneElement(u,{className:ue(C.iconWrapper,u.props.className)}):u,w=P=>{!y&&p&&p(P,m),v&&v(P)},O=P=>{S&&!y&&p&&p(P,m),g&&g(P)};return R.jsxs(Fbe,T({focusRipple:!i,className:ue(C.root,a),ref:r,role:"tab","aria-selected":y,disabled:o,onClick:w,onFocus:O,ownerState:_,tabIndex:y?0:-1},h,{children:[l==="top"||l==="start"?R.jsxs(d.Fragment,{children:[E,f]}):R.jsxs(d.Fragment,{children:[f,E]}),c]}))}),Lbe=Nbe,Dbe=d.createContext(),q4=Dbe;function Bbe(e){return Ue("MuiTable",e)}We("MuiTable",["root","stickyHeader"]);const zbe=["className","component","padding","size","stickyHeader"],Vbe=e=>{const{classes:t,stickyHeader:r}=e;return qe({root:["root",r&&"stickyHeader"]},Bbe,t)},Ube=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),u$="table",Wbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTable"}),{className:a,component:o=u$,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Pe(n,zbe),c=T({},n,{component:o,padding:i,size:s,stickyHeader:u}),f=Vbe(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return R.jsx(q4.Provider,{value:p,children:R.jsx(Ube,T({as:o,role:o===u$?null:"table",ref:r,className:ue(f.root,a),ownerState:c},l))})}),K4=Wbe,Hbe=d.createContext(),Dy=Hbe;function qbe(e){return Ue("MuiTableBody",e)}We("MuiTableBody",["root"]);const Kbe=["className","component"],Gbe=e=>{const{classes:t}=e;return qe({root:["root"]},qbe,t)},Qbe=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Xbe={variant:"body"},c$="tbody",Ybe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableBody"}),{className:a,component:o=c$}=n,i=Pe(n,Kbe),s=T({},n,{component:o}),u=Gbe(s);return R.jsx(Dy.Provider,{value:Xbe,children:R.jsx(Qbe,T({className:ue(u.root,a),as:o,ref:r,role:o===c$?null:"rowgroup",ownerState:s},i))})}),G4=Ybe;function Jbe(e){return Ue("MuiTableCell",e)}const Zbe=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),e0e=Zbe,t0e=["align","className","component","padding","scope","size","sortDirection","variant"],r0e=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,a!=="normal"&&`padding${ge(a)}`,`size${ge(o)}`]};return qe(s,Jbe,t)},n0e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.padding!=="normal"&&t[`padding${ge(r.padding)}`],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?fC(gt(e.palette.divider,1),.88):dC(gt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${e0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),a0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=Pe(n,t0e),v=d.useContext(q4),g=d.useContext(Dy),y=g&&g.variant==="head";let S;i?S=i:S=y?"th":"td";let x=u;S==="td"?x=void 0:!x&&y&&(x="col");const m=f||g&&g.variant,b=T({},n,{align:a,component:S,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),h=r0e(b);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),R.jsx(n0e,T({as:S,ref:r,className:ue(h.root,o),"aria-sort":_,scope:x,ownerState:b},p))}),en=a0e;function o0e(e){return Ue("MuiTableHead",e)}We("MuiTableHead",["root"]);const i0e=["className","component"],s0e=e=>{const{classes:t}=e;return qe({root:["root"]},o0e,t)},l0e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),u0e={variant:"head"},d$="thead",c0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableHead"}),{className:a,component:o=d$}=n,i=Pe(n,i0e),s=T({},n,{component:o}),u=s0e(s);return R.jsx(Dy.Provider,{value:u0e,children:R.jsx(l0e,T({as:o,className:ue(u.root,a),ref:r,role:o===d$?null:"rowgroup",ownerState:s},i))})}),Q4=c0e;function d0e(e){return Ue("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const f0e=["className","component","disableGutters","variant"],p0e=e=>{const{classes:t,disableGutters:r,variant:n}=e;return qe({root:["root",!r&&"gutters",n]},d0e,t)},h0e=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),v0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Pe(n,f0e),l=T({},n,{component:o,disableGutters:i,variant:s}),c=p0e(l);return R.jsx(h0e,T({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),jc=v0e,X4=An(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Y4=An(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),g0e=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],m0e=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:S,page:x,rowsPerPage:m,showFirstButton:b,showLastButton:h,slots:_={},slotProps:C={}}=t,E=Pe(t,g0e),w=cl(),O=ve=>{S(ve,0)},P=ve=>{S(ve,x-1)},k=ve=>{S(ve,x+1)},j=ve=>{S(ve,Math.max(0,Math.ceil(p/m)-1))},$=(n=_.firstButton)!=null?n:Pr,F=(a=_.lastButton)!=null?a:Pr,z=(o=_.nextButton)!=null?o:Pr,M=(i=_.previousButton)!=null?i:Pr,W=(s=_.firstButtonIcon)!=null?s:Ex,B=(u=_.lastButtonIcon)!=null?u:Ox,U=(l=_.nextButtonIcon)!=null?l:Y4,q=(c=_.previousButtonIcon)!=null?c:X4,ie=w?F:$,oe=w?z:M,Ee=w?M:z,pe=w?$:F,Te=w?C.lastButton:C.firstButton,ye=w?C.nextButton:C.previousButton,be=w?C.previousButton:C.nextButton,we=w?C.firstButton:C.lastButton;return R.jsxs("div",T({ref:r},E,{children:[b&&R.jsx(ie,T({onClick:O,disabled:v||x===0,"aria-label":g("first",x),title:g("first",x)},Te,{children:w?R.jsx(B,T({},C.lastButtonIcon)):R.jsx(W,T({},C.firstButtonIcon))})),R.jsx(oe,T({onClick:P,disabled:v||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},ye??f,{children:w?R.jsx(U,T({},C.nextButtonIcon)):R.jsx(q,T({},C.previousButtonIcon))})),R.jsx(Ee,T({onClick:k,disabled:v||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},be??y,{children:w?R.jsx(q,T({},C.previousButtonIcon)):R.jsx(U,T({},C.nextButtonIcon))})),h&&R.jsx(pe,T({onClick:j,disabled:v||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},we,{children:w?R.jsx(W,T({},C.firstButtonIcon)):R.jsx(B,T({},C.lastButtonIcon))}))]}))}),y0e=m0e;function b0e(e){return Ue("MuiTablePagination",e)}const x0e=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Dd=x0e;var f$;const w0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],S0e=ne(en,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),_0e=ne(jc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Dd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Dd.actions}`]:{flexShrink:0,marginLeft:20}})),C0e=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),E0e=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),O0e=ne(H4,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Dd.selectIcon}`]:t.selectIcon,[`& .${Dd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Dd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),P0e=ne(Ta,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),R0e=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function T0e({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function $0e(e){return`Go to ${e} page`}const k0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},b0e,t)},j0e=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=y0e,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:f=!1,getItemAriaLabel:p=$0e,labelDisplayedRows:v=T0e,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:S,onRowsPerPageChange:x,page:m,rowsPerPage:b,rowsPerPageOptions:h=[10,25,50,100],SelectProps:_={},showFirstButton:C=!1,showLastButton:E=!1,slotProps:w={},slots:O={}}=a,P=Pe(a,w0e),k=a,j=k0e(k),$=(n=w==null?void 0:w.select)!=null?n:_,F=$.native?"option":P0e;let z;(l===en||l==="td")&&(z=u||1e3);const M=el($.id),W=el($.labelId),B=()=>c===-1?(m+1)*b:b===-1?c:Math.min(c,(m+1)*b);return R.jsx(S0e,T({colSpan:z,ref:r,as:l,ownerState:k,className:ue(j.root,s)},P,{children:R.jsxs(_0e,{className:j.toolbar,children:[R.jsx(C0e,{className:j.spacer}),h.length>1&&R.jsx(E0e,{className:j.selectLabel,id:W,children:g}),h.length>1&&R.jsx(O0e,T({variant:"standard"},!$.variant&&{input:f$||(f$=R.jsx(My,{}))},{value:b,onChange:x,id:M,labelId:W},$,{classes:T({},$.classes,{root:ue(j.input,j.selectRoot,($.classes||{}).root),select:ue(j.select,($.classes||{}).select),icon:ue(j.selectIcon,($.classes||{}).icon)}),disabled:f,children:h.map(U=>d.createElement(F,T({},!Rf(F)&&{ownerState:k},{className:j.menuItem,key:U.label?U.label:U,value:U.value?U.value:U}),U.label?U.label:U))})),R.jsx(R0e,{className:j.displayedRows,children:v({from:c===0?0:m*b+1,to:B(),count:c===-1?-1:c,page:m})}),R.jsx(o,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:S,page:m,rowsPerPage:b,showFirstButton:C,showLastButton:E,slotProps:w.actions,slots:O.actions,getItemAriaLabel:p,disabled:f})]})}))}),p$=j0e;function I0e(e){return Ue("MuiTableRow",e)}const A0e=We("MuiTableRow",["root","selected","hover","head","footer"]),h$=A0e,M0e=["className","component","hover","selected"],F0e=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return qe({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},I0e,t)},N0e=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h$.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),v$="tr",L0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableRow"}),{className:a,component:o=v$,hover:i=!1,selected:s=!1}=n,u=Pe(n,M0e),l=d.useContext(Dy),c=T({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=F0e(c);return R.jsx(N0e,T({as:o,ref:r,className:ue(f.root,a),role:o===v$?null:"row",ownerState:c},u))}),If=L0e,D0e=An(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function B0e(e){return Ue("MuiTableSortLabel",e)}const z0e=We("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),c0=z0e,V0e=["active","children","className","direction","hideSortIcon","IconComponent"],U0e=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${ge(r)}`]};return qe(a,B0e,t)},W0e=ne(Ma,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${c0.icon}`]:{opacity:.5}},[`&.${c0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${c0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),H0e=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ge(r.direction)}`]]}})(({theme:e,ownerState:t})=>T({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),q0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=D0e}=n,c=Pe(n,V0e),f=T({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=U0e(f);return R.jsxs(W0e,T({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[o,u&&!a?null:R.jsx(H0e,{as:l,className:ue(p.icon),ownerState:f})]}))}),K0e=q0e;function G0e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Q0e(e,t,r,n={},a=()=>{}){const{ease:o=G0e,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const c=()=>{l=!0},f=p=>{if(l){a(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=o(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(f)};return u===r?(a(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const X0e=["onChange"],Y0e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function J0e(e){const{onChange:t}=e,r=Pe(e,X0e),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qn(()=>{const i=Rc(()=>{const u=n.current;o(),u!==n.current&&t(n.current)}),s=da(a.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),R.jsx("div",T({style:Y0e,ref:a},r))}function Z0e(e){return Ue("MuiTabScrollButton",e)}const e1e=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),t1e=e1e,r1e=["className","slots","slotProps","direction","orientation","disabled"],n1e=e=>{const{classes:t,orientation:r,disabled:n}=e;return qe({root:["root",r,n&&"disabled"]},Z0e,t)},a1e=ne(Ma,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${t1e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),o1e=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=o,c=Pe(o,r1e),f=cl(),p=T({isRtl:f},o),v=n1e(p),g=(n=s.StartScrollButtonIcon)!=null?n:X4,y=(a=s.EndScrollButtonIcon)!=null?a:Y4,S=fa({elementType:g,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),x=fa({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return R.jsx(a1e,T({component:"div",className:ue(v.root,i),ref:r,role:null,ownerState:p,tabIndex:null},c,{children:l==="left"?R.jsx(g,T({},S)):R.jsx(y,T({},x))}))}),i1e=o1e;function s1e(e){return Ue("MuiTabs",e)}const l1e=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),d0=l1e,u1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],g$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,m$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fh=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},c1e=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},s1e,u)},d1e=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${d0.scrollButtons}`]:t.scrollButtons},{[`& .${d0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${d0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),f1e=ne("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),p1e=ne("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),h1e=ne("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),v1e=ne(J0e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),y$={},g1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTabs"}),a=fo(),o=cl(),{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:x=i1e,scrollButtons:m="auto",selectionFollowsFocus:b,slots:h={},slotProps:_={},TabIndicatorProps:C={},TabScrollButtonProps:E={},textColor:w="primary",value:O,variant:P="standard",visibleScrollbar:k=!1}=n,j=Pe(n,u1e),$=P==="scrollable",F=S==="vertical",z=F?"scrollTop":"scrollLeft",M=F?"top":"left",W=F?"bottom":"right",B=F?"clientHeight":"clientWidth",U=F?"height":"width",q=T({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:S,vertical:F,scrollButtons:m,textColor:w,variant:P,visibleScrollbar:k,fixed:!$,hideScrollbar:$&&!k,scrollableX:$&&!F,scrollableY:$&&F,centered:l&&!$,scrollButtonsHideMobile:!v}),ie=c1e(q),oe=fa({elementType:h.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:q}),Ee=fa({elementType:h.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:q}),[pe,Te]=d.useState(!1),[ye,be]=d.useState(y$),[we,ve]=d.useState(!1),[De,Me]=d.useState(!1),[Qe,Ne]=d.useState(!1),[Ae,He]=d.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ut=d.useRef(null),V=d.useRef(null),K=()=>{const _e=ut.current;let Fe;if(_e){const nt=_e.getBoundingClientRect();Fe={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollLeftNormalized:nle(_e,o?"rtl":"ltr"),scrollWidth:_e.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let Ge;if(_e&&O!==!1){const nt=V.current.children;if(nt.length>0){const mt=nt[ht.get(O)];Ge=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ge}},te=fn(()=>{const{tabsMeta:_e,tabMeta:Fe}=K();let Ge=0,nt;if(F)nt="top",Fe&&_e&&(Ge=Fe.top-_e.top+_e.scrollTop);else if(nt=o?"right":"left",Fe&&_e){const Ot=o?_e.scrollLeftNormalized+_e.clientWidth-_e.scrollWidth:_e.scrollLeft;Ge=(o?-1:1)*(Fe[nt]-_e[nt]+Ot)}const mt={[nt]:Ge,[U]:Fe?Fe[U]:0};if(isNaN(ye[nt])||isNaN(ye[U]))be(mt);else{const Ot=Math.abs(ye[nt]-mt[nt]),kt=Math.abs(ye[U]-mt[U]);(Ot>=1||kt>=1)&&be(mt)}}),se=(_e,{animation:Fe=!0}={})=>{Fe?Q0e(z,ut.current,_e,{duration:a.transitions.duration.standard}):ut.current[z]=_e},de=_e=>{let Fe=ut.current[z];F?Fe+=_e:(Fe+=_e*(o?-1:1),Fe*=o&&zF()==="reverse"?-1:1),se(Fe)},fe=()=>{const _e=ut.current[B];let Fe=0;const Ge=Array.from(V.current.children);for(let nt=0;nt_e){nt===0&&(Fe=_e);break}Fe+=mt[B]}return Fe},Oe=()=>{de(-1*fe())},ae=()=>{de(fe())},Z=d.useCallback(_e=>{He({overflow:null,scrollbarWidth:_e})},[]),G=()=>{const _e={};_e.scrollbarSizeListener=$?R.jsx(v1e,{onChange:Z,className:ue(ie.scrollableX,ie.hideScrollbar)}):null;const Ge=$&&(m==="auto"&&(we||De)||m===!0);return _e.scrollButtonStart=Ge?R.jsx(x,T({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:S,direction:o?"right":"left",onClick:Oe,disabled:!we},E,{className:ue(ie.scrollButtons,E.className)})):null,_e.scrollButtonEnd=Ge?R.jsx(x,T({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:S,direction:o?"left":"right",onClick:ae,disabled:!De},E,{className:ue(ie.scrollButtons,E.className)})):null,_e},le=fn(_e=>{const{tabsMeta:Fe,tabMeta:Ge}=K();if(!(!Ge||!Fe)){if(Ge[M]Fe[W]){const nt=Fe[z]+(Ge[W]-Fe[W]);se(nt,{animation:_e})}}}),he=fn(()=>{$&&m!==!1&&Ne(!Qe)});d.useEffect(()=>{const _e=Rc(()=>{ut.current&&te()});let Fe;const Ge=Ot=>{Ot.forEach(kt=>{kt.removedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.unobserve(Pt)}),kt.addedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.observe(Pt)})}),_e(),he()},nt=da(ut.current);nt.addEventListener("resize",_e);let mt;return typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(_e),Array.from(V.current.children).forEach(Ot=>{Fe.observe(Ot)})),typeof MutationObserver<"u"&&(mt=new MutationObserver(Ge),mt.observe(V.current,{childList:!0})),()=>{var Ot,kt;_e.clear(),nt.removeEventListener("resize",_e),(Ot=mt)==null||Ot.disconnect(),(kt=Fe)==null||kt.disconnect()}},[te,he]),d.useEffect(()=>{const _e=Array.from(V.current.children),Fe=_e.length;if(typeof IntersectionObserver<"u"&&Fe>0&&$&&m!==!1){const Ge=_e[0],nt=_e[Fe-1],mt={root:ut.current,threshold:.99},Ot=It=>{ve(!It[0].isIntersecting)},kt=new IntersectionObserver(Ot,mt);kt.observe(Ge);const Pt=It=>{Me(!It[0].isIntersecting)},at=new IntersectionObserver(Pt,mt);return at.observe(nt),()=>{kt.disconnect(),at.disconnect()}}},[$,m,Qe,c==null?void 0:c.length]),d.useEffect(()=>{Te(!0)},[]),d.useEffect(()=>{te()}),d.useEffect(()=>{le(y$!==ye)},[le,ye]),d.useImperativeHandle(u,()=>({updateIndicator:te,updateScrollButtons:he}),[te,he]);const Re=R.jsx(h1e,T({},C,{className:ue(ie.indicator,C.className),ownerState:q,style:T({},ye,C.style)}));let Be=0;const Ye=d.Children.map(c,_e=>{if(!d.isValidElement(_e))return null;const Fe=_e.props.value===void 0?Be:_e.props.value;ht.set(Fe,Be);const Ge=Fe===O;return Be+=1,d.cloneElement(_e,T({fullWidth:P==="fullWidth",indicator:Ge&&!pe&&Re,selected:Ge,selectionFollowsFocus:b,onChange:y,textColor:w,value:Fe},Be===1&&O===!1&&!_e.props.tabIndex?{tabIndex:0}:{}))}),je=_e=>{const Fe=V.current,Ge=wr(Fe).activeElement;if(Ge.getAttribute("role")!=="tab")return;let mt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(mt="ArrowRight",Ot="ArrowLeft"),_e.key){case mt:_e.preventDefault(),fh(Fe,Ge,m$);break;case Ot:_e.preventDefault(),fh(Fe,Ge,g$);break;case"Home":_e.preventDefault(),fh(Fe,null,g$);break;case"End":_e.preventDefault(),fh(Fe,null,m$);break}},Je=G();return R.jsxs(d1e,T({className:ue(ie.root,f),ownerState:q,ref:r,as:p},j,{children:[Je.scrollButtonStart,Je.scrollbarSizeListener,R.jsxs(f1e,{className:ie.scroller,ownerState:q,style:{overflow:Ae.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:k?void 0:-Ae.scrollbarWidth},ref:ut,children:[R.jsx(p1e,{"aria-label":i,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,className:ie.flexContainer,ownerState:q,onKeyDown:je,ref:V,role:"tablist",children:Ye}),pe&&Re]}),Je.scrollButtonEnd]}))}),m1e=g1e;function y1e(e){return Ue("MuiTextField",e)}We("MuiTextField",["root"]);const b1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],x1e={standard:I4,filled:$4,outlined:V4},w1e=e=>{const{classes:t}=e;return qe({root:["root"]},y1e,t)},S1e=ne(nge,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:S,inputProps:x,InputProps:m,inputRef:b,label:h,maxRows:_,minRows:C,multiline:E=!1,name:w,onBlur:O,onChange:P,onFocus:k,placeholder:j,required:$=!1,rows:F,select:z=!1,SelectProps:M,type:W,value:B,variant:U="outlined"}=n,q=Pe(n,b1e),ie=T({},n,{autoFocus:o,color:u,disabled:c,error:f,fullWidth:v,multiline:E,required:$,select:z,variant:U}),oe=w1e(ie),Ee={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(Ee.notched=S.shrink),Ee.label=h),z&&((!M||!M.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const pe=el(y),Te=g&&pe?`${pe}-helper-text`:void 0,ye=h&&pe?`${pe}-label`:void 0,be=x1e[U],we=R.jsx(be,T({"aria-describedby":Te,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:v,multiline:E,name:w,rows:F,maxRows:_,minRows:C,type:W,value:B,id:pe,inputRef:b,onBlur:O,onChange:P,onFocus:k,placeholder:j,inputProps:x},Ee,m));return R.jsxs(S1e,T({className:ue(oe.root,s),disabled:c,error:f,fullWidth:v,ref:r,required:$,color:u,variant:U,ownerState:ie},q,{children:[h!=null&&h!==""&&R.jsx(Yge,T({htmlFor:pe,id:ye},S,{children:h})),z?R.jsx(H4,T({"aria-describedby":Te,id:pe,labelId:ye,value:B,input:we},M,{children:i})):we,g&&R.jsx(IC,T({id:Te},p,{children:g}))]}))}),yp=_1e,C1e=["getTrigger","target"];function E1e(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const O1e=typeof window<"u"?window:null;function J4(e={}){const{getTrigger:t=E1e,target:r=O1e}=e,n=Pe(e,C1e),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const s=()=>{i(t(a,T({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var FC={},f0={};const P1e=Do(Vue);var b$;function ct(){return b$||(b$=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=P1e}(f0)),f0}var R1e=it;Object.defineProperty(FC,"__esModule",{value:!0});var By=FC.default=void 0,T1e=R1e(ct()),$1e=R;By=FC.default=(0,T1e.default)((0,$1e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Bd=globalThis&&globalThis.__assign||function(){return Bd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(WSe,null):null,t&&d.createElement(Fxe,null),d.createElement(lxe,null))},Dxe=d.createElement(Lxe,null),Bxe=d.createElement(UC,null),ss="RaAppBar",Es={appBar:"".concat(ss,"-appBar"),toolbar:"".concat(ss,"-toolbar"),menuButton:"".concat(ss,"-menuButton"),menuButtonIconClosed:"".concat(ss,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ss,"-menuButtonIconOpen"),title:"".concat(ss,"-title")},zxe=ne(Vce,{name:ss,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Es.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Es.menuButton)]={marginRight:"0.2em"},t["& .".concat(Es.title)]={},t}),qC={},Vxe=it;Object.defineProperty(qC,"__esModule",{value:!0});var Uy=qC.default=void 0,Uxe=Vxe(ct()),Wxe=R;Uy=qC.default=(0,Uxe.default)((0,Wxe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var KC={},Hxe=it;Object.defineProperty(KC,"__esModule",{value:!0});var v5=KC.default=void 0,qxe=Hxe(ct()),Kxe=R;v5=KC.default=(0,qxe.default)((0,Kxe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Vd=globalThis&&globalThis.__assign||function(){return Vd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?d.createElement(x5,Og({title:r,defaultTitle:t},a)):d.createElement(Pwe,Og({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,tp.createPortal(u,i))},Lx=globalThis&&globalThis.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=u_e(S===!1||S===void 0?void 0:!S,l||!O||E||w);q_(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var k=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){var z;return C$(this,function(M){switch(M.label){case 0:return h!=null&&h.save?[4,h.save(F,Hd(Hd({},u),{transform:p}))]:[3,2];case 1:z=M.sent(),M.label=2;case 2:return z!=null&&m3(z,b.setError),[2]}})})},[b.setError,h,u,p]),j=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){return C$(this,function(z){switch(z.label){case 0:return s&&s(F),F.defaultPrevented?[2]:f!=="button"?[3,2]:(F.stopPropagation(),[4,b.handleSubmit(k)(F)]);case 1:z.sent(),z.label=2;case 2:return[2]}})})},[s,f,b,k]),$=i&&m(i,{_:i});return d.createElement(l_e,Hd({variant:g,type:f,color:r,"aria-label":$,disabled:P,onClick:j},x),w?d.createElement(kc,{sx:o_e,size:14,thickness:3,color:"inherit"}):a,$)},o_e={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},i_e=d.createElement(U5,null),s_e="RaSaveButton",l_e=ne(hn,{name:s_e,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),u_e=function(e,t){return typeof e>"u"?t:e},c_e=function(){return ke.createElement(f_e,{onClick:p_e,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},d_e="RaSkipNavigationButton",f_e=ne(Hr,{name:d_e,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),p_e=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jx=globalThis&&globalThis.__assign||function(){return Jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var h=Q5(),_=et(),C=_r(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var E=Nt(e),w=Wo(e),O=w.hasShow||w.hasEdit;if(!E)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var P=(!h||!h.isRowExpandable||h.isRowExpandable(C))&&i,k=Yte(E,f,h&&h.expandSingle),j=k[0],$=k[1],F=d.useState(function(){return E$(P,a,u)}),z=F[0],M=F[1];d.useEffect(function(){var oe=E$(P,a,u);oe!==z&&M(oe)},[P,z,a,u]);var W=lo(),B=d.useCallback(function(oe){$(),oe.stopPropagation()},[$]),U=d.useCallback(function(oe){!m||!p||(p(f,oe),oe.stopPropagation())},[f,p,m]),q=Cne(),ie=d.useCallback(function(oe){return D_e(void 0,void 0,void 0,function(){var Ee;return B_e(this,function(pe){switch(pe.label){case 0:return oe.persist(),[4,q({record:C,resource:E,link:typeof v=="function"?function(Te,ye){return v(Te.id,ye,Te)}:v})];case 1:return Ee=pe.sent(),v==="expand"?(B(oe),[2]):v==="toggleSelection"?(U(oe),[2]):Ee===!1||Ee==null?[2]:(W(Ee,{state:{_scrollToTop:!0}}),[2])}})})},[C,E,v,W,B,U,q]);return ke.createElement(ke.Fragment,null,ke.createElement(If,ow({ref:t,className:ue(o,(r={},r[rt.expandable]=P,r[rt.selectable]=m,r[rt.clickableRow]=v??O,r)),key:f,style:S,hover:c,onClick:ie},b),i&&ke.createElement(en,{padding:"none",className:rt.expandIconCell},P&&ke.createElement(L_e,{className:ue(rt.expandIcon,(n={},n[rt.expanded]=j,n)),expanded:j,onClick:B,expandContentId:"".concat(f,"-expand")})),u&&ke.createElement(en,{padding:"checkbox"},ke.createElement(gg,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(rt.checkbox),checked:m&&y,onClick:U,disabled:!m})),ke.Children.map(a,function(oe,Ee){return d.isValidElement(oe)?ke.createElement(M_e,{key:"".concat(f,"-").concat(oe.props.source||Ee),className:ue("column-".concat(oe.props.source),rt.rowCell),record:C,field:oe,resource:E}):null})),P&&j&&ke.createElement(If,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:rt.expandedPanel},ke.createElement(en,{colSpan:z},d.isValidElement(i)?i:d.createElement(i))))}),z_e=function(e,t){e.children,e.expand;var r=iw(e,["children","expand"]);t.children,t.expand;var n=iw(t,["children","expand"]);return vM(r,n)},Y5=d.memo(X5,z_e);Y5.displayName="PureDatagridRow";const V_e=X5;var Ng=globalThis&&globalThis.__assign||function(){return Ng=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=lCe&&(o=sCe,i=!1,t=new rCe(t));e:for(;++a0&&b.length>0&&b.every(function(h){return v.includes(h)}),onChange:m,onClick:function(h){return h.stopPropagation()}})),d.Children.map(t,function(h,_){return d.isValidElement(h)?d.createElement(Q_e,{className:ue(rt.headerCell,"column-".concat(h.props.source)),sort:c,field:h,isSorting:(c==null?void 0:c.field)===(h.props.sortBy||h.props.source),key:h.props.source||_,updateSort:x||void 0}):null})))};eN.displayName="DatagridHeader";var bCe=function(e){var t=e.children,r=e.value;return ke.createElement(G5.Provider,{value:r},t)};const xCe=bCe;var gE={},wCe=it;Object.defineProperty(gE,"__esModule",{value:!0});var tN=gE.default=void 0,SCe=wCe(ct()),_Ce=R;tN=gE.default=(0,SCe.default)((0,_Ce.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var lw=globalThis&&globalThis.__assign||function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?d.createElement(d.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",d.createElement(Hr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Mf=globalThis&&globalThis.__assign||function(){return Mf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var v=o.getValues();return r.filter(function(g){var y=qt(v,g.props.source);return g.props.alwaysOn||u[g.props.source]||!aN(y)})},f=d.useCallback(function(v){return l(v.currentTarget.dataset.key)},[l]),p=d.useMemo(function(){return{getSource:function(v){return v},getLabel:function(v){return"resources.".concat(a,".fields.").concat(v)}}},[a]);return d.createElement(k3,{value:p},d.createElement(VCe,Ai({className:t},DCe(n),{onSubmit:LCe}),c().map(function(v){return d.createElement(jCe,{key:v.key||v.props.source,filterElement:v,handleHide:f,resource:a,className:Dg.filterFormInput})}),d.createElement("div",{className:Dg.clearFix})))},LCe=function(e){return e.preventDefault(),!1},DCe=function(e){e.hasCreate,e.resource;var t=mE(e,["hasCreate","resource"]);return t},BCe=function(e,t){return Ai(Ai({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return km(Ai({},r),n.props.source,n.props.defaultValue)},{})),e)},zCe=function(e){return e.preventDefault(),e.stopPropagation(),!1},cw="RaFilterForm",Dg={clearFix:"".concat(cw,"-clearFix"),filterFormInput:"".concat(cw,"-filterFormInput")},VCe=ne("form",{name:cw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Dg.clearFix)]={clear:"right"},t["& .".concat(Dg.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),UCe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=nN(e,a,t),n},(r=pM(t))!==null&&r!==void 0?r:{})},nN=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return qt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,s=nN(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},aN=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return aN(e[t])}):!1},yE={},WCe=it;Object.defineProperty(yE,"__esModule",{value:!0});var Ff=yE.default=void 0,HCe=WCe(ct()),qCe=R;Ff=yE.default=(0,HCe.default)((0,qCe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var bE={},KCe=it;Object.defineProperty(bE,"__esModule",{value:!0});var oN=bE.default=void 0,GCe=KCe(ct()),QCe=R;oN=bE.default=(0,GCe.default)((0,QCe.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var xE={},XCe=it;Object.defineProperty(xE,"__esModule",{value:!0});var iN=xE.default=void 0,YCe=XCe(ct()),JCe=R;iN=xE.default=(0,YCe.default)((0,JCe.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var wE={},ZCe=it;Object.defineProperty(wE,"__esModule",{value:!0});var sN=wE.default=void 0,eEe=ZCe(ct()),tEe=R;sN=wE.default=(0,eEe.default)((0,tEe.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var SE={},rEe=it;Object.defineProperty(SE,"__esModule",{value:!0});var lN=SE.default=void 0,nEe=rEe(ct()),aEe=R;lN=SE.default=(0,nEe.default)((0,aEe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var _E={},oEe=it;Object.defineProperty(_E,"__esModule",{value:!0});var uN=_E.default=void 0,iEe=oEe(ct()),sEe=R;uN=_E.default=(0,iEe.default)((0,sEe.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var CE={},lEe=it;Object.defineProperty(CE,"__esModule",{value:!0});var cN=CE.default=void 0,uEe=lEe(ct()),cEe=R;cN=CE.default=(0,uEe.default)((0,cEe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var dEe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,s=Nt(e),u=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(Ta,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?l:u,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Cs,null,i?d.createElement(cN,{fontSize:"small"}):d.createElement(uN,{fontSize:"small"})),d.createElement(Zl,null,d.createElement(no,{label:r.props.label,source:r.props.source,resource:s})))}),EE=function(e){return ya("".concat(e,".savedQueries"),[])},OE=function(e){return Array.isArray(e)?e.filter(function(t){return fEe(t)}):[]},fEe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},pEe=function(e){var t=e.open,r=e.onClose,n=et(),a=ga(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=EE(o),f=c[0],p=c[1],v=d.useState(""),g=v[0],y=v[1],S=function(b){y(b.target.value)},x=function(b){b.preventDefault(),m()},m=function(){var b={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},h=OE(f);p(h.concat(b)),y(""),r()};return d.createElement(TC,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(jC,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(kC,null,d.createElement("form",{onSubmit:x},d.createElement(yp,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:S}))),d.createElement($C,null,d.createElement(hn,{onClick:r},n("ra.action.cancel")),d.createElement(hn,{onClick:m,color:"primary"},n("ra.action.save"))))},$$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=EE(u||"")[0],f=lo(),p=ga(),v=p.displayedFilters,g=v===void 0?{}:v,y=p.filterValues,S=p.perPage,x=p.setFilters,m=p.showFilter,b=p.hideFilter,h=p.sort,_=!ja(y,{}),C=OE(c),E=C.some(function(be){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})}),w=d.useState(!1),O=w[0],P=w[1],k=d.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var j=s.filter(function(be){return!be.props.alwaysOn}),$=d.useCallback(function(be){be.preventDefault(),P(!0),k.current=be.currentTarget},[k,P]),F=d.useCallback(function(){P(!1)},[P]),z=d.useCallback(function(be){var we=be.source,ve=be.defaultValue;m(we,ve===""?void 0:ve),setTimeout(function(){var De=document.querySelector("input[name='".concat(we,"']"));De&&De.focus()},50),P(!1)},[m,P]),M=d.useCallback(function(be){var we=be.source;b(we),P(!1)},[b,P]),W=d.useState(!1),B=W[0],U=W[1],q=function(){U(!1)},ie=function(){P(!1),U(!0)},oe=d.useState(!1),Ee=oe[0],pe=oe[1],Te=function(){pe(!1)},ye=function(){P(!1),pe(!0)};return j.length===0&&C.length===0&&!_?null:d.createElement(mEe,dw({className:r},vEe(i)),d.createElement(Hr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:$,variant:o,size:a},d.createElement(lN,null)),d.createElement(Ly,{open:O,anchorEl:k.current,onClose:F},j.map(function(be,we){return d.createElement(dEe,{key:be.props.source,filter:be,displayed:!!g[be.props.source],resource:u,onShow:z,onHide:M,autoFocus:we===0})}),(_||C.length>0)&&d.createElement(mg,null),C.map(function(be,we){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})?d.createElement(Ta,{onClick:ye,key:we},d.createElement(Cs,null,d.createElement(iN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:be.label}))):d.createElement(Ta,{onClick:function(){var ve,De;f({search:ko.stringify({filter:JSON.stringify(be.value.filter),sort:(ve=be.value.sort)===null||ve===void 0?void 0:ve.field,order:(De=be.value.sort)===null||De===void 0?void 0:De.order,page:1,perPage:be.value.perPage,displayedFilters:JSON.stringify(be.value.displayedFilters)})}),P(!1)},key:we},d.createElement(Cs,null,d.createElement(sN,{fontSize:"small"})),d.createElement(Zl,null,be.label))}),_&&!E&&!n&&d.createElement(Ta,{onClick:ie},d.createElement(Cs,null,d.createElement(oN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&d.createElement(Ta,{onClick:function(){x({},{}),P(!1)}},d.createElement(Cs,null,d.createElement(Ff,{fontSize:"small"})),d.createElement(Zl,null,l("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(pEe,{open:B,onClose:q}),d.createElement(hEe,{open:Ee,onClose:Te})))},vEe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=dN(e,["displayedFilters","filterValues","showFilter"]);return t},gEe="RaFilterButton",mEe=ne("div",{name:gEe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),yEe=function(e){var t=e.children,r=function(){return d.createElement(fN,{className:j$.button})},n=function(){return d.createElement(rN,{className:j$.form})};return d.createElement(Ep.Provider,{value:d.Children.toArray(t)},e.context==="button"?r():n())},k$="RaFilter",j$={button:"".concat(k$,"-button"),form:"".concat(k$,"-form")},fw=globalThis&&globalThis.__assign||function(){return fw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:w+1}));v(w+1)},[x,v,y]),b=d.useCallback(function(E){g(E.target.value)},[g]),h=d.useCallback(function(E){var w=E.from,O=E.to,P=E.count;return P===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:w,offsetEnd:O,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:w,offsetEnd:O,total:P===-1?O:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),_=d.useCallback(function(E){return y("ra.navigation.".concat(E),{_:"Go to ".concat(E," page")})},[y]);if(u)return d.createElement(jc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(S)return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:CEe,component:"span",labelDisplayedRows:h},wf(i)));var C=n||(!u&&p!=null?bEe:void 0);return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:b,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:_,rowsPerPageOptions:r},wf(i)))}),_Ee=[5,10,25,50],CEe=[],zg=globalThis&&globalThis.__assign||function(){return zg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ye.target.value>"u")){var be=ye.target,we=be.valueAsDate!==void 0&&be.valueAsDate!==null&&!isNaN(new Date(be.valueAsDate).getTime())?g?g(be.valueAsDate):be.valueAsDate:g?g(be.value):mh(be.value);we!==""&&we!=null&&(_.onChange(we),j.current=!0)}},B=function(ye){c&&c(ye),M.current=!0},U=function(){if(M.current=!1,!!$.current){var ye=$.current.valueAsDate!==void 0&&$.current.valueAsDate!==null&&!isNaN(new Date($.current.valueAsDate).getTime())?g?g($.current.valueAsDate):mh($.current.valueAsDate):g?g($.current.value):mh($.current.value);ye!==_.value&&_.onChange(ye??""),z&&z()}},q=C.error,ie=C.invalid,oe=i!==!1||ie,Ee=_.ref,pe=_.name,Te=dae([Ee,$]);return d.createElement(yp,zg({id:E,inputRef:Te,name:pe,defaultValue:a(F.current),key:P,type:"datetime-local",onChange:W,onFocus:B,onBlur:U,className:ue("ra-input","ra-input-".concat(f),t),size:"small",variant:S,margin:s,error:ie,disabled:x||m,readOnly:m,helperText:oe?d.createElement(rl,{error:q==null?void 0:q.message,helperText:i}):null,label:d.createElement(no,{label:o,source:f,resource:p,isRequired:w}),InputLabelProps:$Ee},_p(b)))},vN=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},REe=vN(4),gh=vN(2),A$=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=REe(e.getFullYear()),r=gh(e.getMonth()+1),n=gh(e.getDate()),a=gh(e.getHours()),o=gh(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},TEe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,$Ee={shrink:!0},mh=function(e){return e==null||e===""?"":e instanceof Date?A$(e):TEe.test(e)?e:A$(new Date(e))},Vg=globalThis&&globalThis.__assign||function(){return Vg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof we.target.value>"u")){var ve=we.target;q(ve.value);var De=ve.valueAsNumber!==void 0&&ve.valueAsNumber!==null&&!isNaN(ve.valueAsNumber)?p?p(ve.valueAsNumber):ve.valueAsNumber:p?p(ve.value):NEe(ve.value);P.onChange(De)}},Ee=function(we){f&&f(we),ie.current=!0},pe=function(){M&&M(),ie.current=!1;var we=o(P.value);q(function(ve){return ve!==we?we:ve})},Te=i!==!1||$,ye=P.ref,be=F$(P,["ref"]);return d.createElement(yp,ii({id:F},be,{inputRef:ye,value:U,onChange:oe,onFocus:Ee,onBlur:pe,className:ue("ra-input","ra-input-".concat(g),t),type:"number",size:"small",variant:h,error:$,disabled:C||E,readOnly:E,helperText:Te?d.createElement(rl,{error:j==null?void 0:j.message,helperText:i}):null,label:d.createElement(no,{label:s,source:g,resource:v,isRequired:z}),margin:u,inputProps:ii(ii({},W),{readOnly:E})},_p(w)))},NEe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},LEe=function(e){return e==null||isNaN(e)?"":e.toString()},Ug=globalThis&&globalThis.__assign||function(){return Ug=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(qEe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Di,{className:vu.content},d.createElement(Nn,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Xl()}),d.createElement(Nn,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Xl()}),d.createElement(hn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:vu.button},a?d.createElement(kc,{className:vu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},nv="RaLoginForm",vu={content:"".concat(nv,"-content"),button:"".concat(nv,"-button"),icon:"".concat(nv,"-icon")},qEe=ne(M_,{name:nv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(vu.content)]={width:300},t["& .".concat(vu.button)]={marginTop:r.spacing(2)},t["& .".concat(vu.icon)]={margin:r.spacing(.3)},t}),pw=globalThis&&globalThis.__assign||function(){return pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?sOe:r;return a?d.createElement(uOe,mw({className:ue("edit-page",o)},l),u!==!1&&d.createElement(dl,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),y,d.createElement("div",{className:ue(yu.main,(t={},t[yu.noActions]=!y,t))},d.createElement(s,{className:yu.card},g?a:d.createElement(Di,null," ")),n)):null},iv="RaEdit",yu={main:"".concat(iv,"-main"),noActions:"".concat(iv,"-noActions"),card:"".concat(iv,"-card")},uOe=ne("div",{name:iv,overridesResolver:function(e,t){return t.root}})((td={},td["& .".concat(yu.main)]={display:"flex",alignItems:"flex-start"},td["& .".concat(yu.noActions)]={marginTop:"1em"},td["& .".concat(yu.card)]={flex:"1 1 auto"},td)),yw=globalThis&&globalThis.__assign||function(){return yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&S?COe:r;return!a||!y&&l?null:d.createElement(OOe,ww({className:ue("show-page",o)},f),c!==!1&&d.createElement(dl,{title:c,defaultTitle:g,preferenceKey:"".concat(v,".show.title")}),x!==!1&&x,d.createElement("div",{className:ue(xu.main,(t={},t[xu.noActions]=!x,t))},d.createElement(s,{className:xu.card},a),n))},lv="RaShow",xu={main:"".concat(lv,"-main"),noActions:"".concat(lv,"-noActions"),card:"".concat(lv,"-card")},OOe=ne("div",{name:lv,overridesResolver:function(e,t){return t.root}})((rd={},rd["& .".concat(xu.main)]={display:"flex"},rd["& .".concat(xu.noActions)]={marginTop:"1em"},rd["& .".concat(xu.card)]={flex:"1 1 auto"},rd)),Sw=globalThis&&globalThis.__assign||function(){return Sw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var v=ry(e);if(v==null||v==="")return r?d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),r&&p(r,{_:r})):null;var g=c(v),y="";if(g)if(i&&u)y=g0?g.toLocaleString(n,a):g.toLocaleString();else if(u){var S=a??(typeof v=="string"&&v.length<=10?{timeZone:"UTC"}:void 0);y=g0?g.toLocaleDateString(n,S):g.toLocaleDateString()}else i&&(y=g0?g.toLocaleTimeString(n,a):g.toLocaleTimeString());return d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),y)};_N.displayName="DateFieldImpl";var Ya=Ky(_N),FOe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},g0=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Gg=globalThis&&globalThis.__assign||function(){return Gg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},Kd=globalThis&&globalThis.__assign||function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&D$.call(t.callee)==="[object Function]"),n},m0,B$;function EPe(){if(B$)return m0;B$=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=AN,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",S=n(v),x=g&&r.call(v)==="[object String]",m=[];if(!g&&!y&&!S)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(x&&v.length>0&&!t.call(v,0))for(var h=0;h0)for(var _=0;_"u"||!jr?bt:jr(Uint8Array),Bs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":El&&jr?jr([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XPe,"%eval%":eval,"%EvalError%":YPe,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":NN,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":El&&jr?jr(jr([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!El||!jr?bt:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":JPe,"%ReferenceError%":ZPe,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!El||!jr?bt:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":El&&jr?jr(""[Symbol.iterator]()):bt,"%Symbol%":El?Symbol:bt,"%SyntaxError%":oc,"%ThrowTypeError%":t2e,"%TypedArray%":n2e,"%TypeError%":Su,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":e2e,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet};if(jr)try{null.error}catch(e){var a2e=jr(jr(e));Bs["%Error.prototype%"]=a2e}var o2e=function e(t){var r;if(t==="%AsyncFunction%")r=b0("async function () {}");else if(t==="%GeneratorFunction%")r=b0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=b0("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&jr&&(r=jr(a.prototype))}return Bs[t]=r,r},H$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pp=$E,Qg=FN,i2e=Pp.call(Function.call,Array.prototype.concat),s2e=Pp.call(Function.apply,Array.prototype.splice),q$=Pp.call(Function.call,String.prototype.replace),Xg=Pp.call(Function.call,String.prototype.slice),l2e=Pp.call(Function.call,RegExp.prototype.exec),u2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,c2e=/\\(\\)?/g,d2e=function(t){var r=Xg(t,0,1),n=Xg(t,-1);if(r==="%"&&n!=="%")throw new oc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new oc("invalid intrinsic syntax, expected opening `%`");var a=[];return q$(t,u2e,function(o,i,s,u){a[a.length]=s?q$(u,c2e,"$1"):i||o}),a},f2e=function(t,r){var n=t,a;if(Qg(H$,n)&&(a=H$[n],n="%"+a[0]+"%"),Qg(Bs,n)){var o=Bs[n];if(o===Il&&(o=o2e(n)),typeof o>"u"&&!r)throw new Su("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new oc("intrinsic "+t+" does not exist!")},Rp=function(t,r){if(typeof t!="string"||t.length===0)throw new Su("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Su('"allowMissing" argument must be a boolean');if(l2e(/^%?[^%]*%?$/,t)===null)throw new oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=d2e(t),a=n.length>0?n[0]:"",o=f2e("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],s2e(n,i2e([0,1],l)));for(var c=1,f=!0;c=n.length){var y=Ds(s,p);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else f=Qg(s,p),s=s[p];f&&!u&&(Bs[i]=s)}}return s},p2e=Rp,dv=p2e("%Object.defineProperty%",!0)||!1;if(dv)try{dv({},"a",{value:1})}catch{dv=!1}var kE=dv,h2e=Rp,fv=h2e("%Object.getOwnPropertyDescriptor%",!0);if(fv)try{fv([],"length")}catch{fv=null}var LN=fv,K$=kE,v2e=MN,Ol=Op,G$=LN,DN=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ol("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ol("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ol("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ol("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ol("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ol("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!G$&&G$(t,r);if(K$)K$(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new v2e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mw=kE,BN=function(){return!!Mw};BN.hasArrayLengthDefineBug=function(){if(!Mw)return null;try{return Mw([],"length",{value:1}).length!==1}catch{return!0}};var zN=BN,g2e=RPe,m2e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",y2e=Object.prototype.toString,b2e=Array.prototype.concat,Q$=DN,x2e=function(e){return typeof e=="function"&&y2e.call(e)==="[object Function]"},VN=zN(),w2e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!x2e(n)||!n())return}VN?Q$(e,t,r,!0):Q$(e,t,r)},UN=function(e,t){var r=arguments.length>2?arguments[2]:{},n=g2e(t);m2e&&(n=b2e.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||C2e(r)!==r)throw new J$("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Y$){var i=Y$(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(_2e?X$(t,"length",r,!0,!0):X$(t,"length",r)),t};(function(e){var t=$E,r=Rp,n=E2e,a=Op,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=kE,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var v=s(t,i,arguments);return n(v,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(HN);var qN=HN.exports,O2e=Op,P2e=function(t){if(t==null)throw new O2e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},KN=Rp,GN=qN,R2e=GN(KN("String.prototype.indexOf")),T2e=function(t,r){var n=KN(t,!!r);return typeof n=="function"&&R2e(t,".prototype.")>-1?GN(n):n},$2e=P2e,QN=T2e,k2e=QN("Object.prototype.propertyIsEnumerable"),j2e=QN("Array.prototype.push"),XN=function(t){var r=$2e(t),n=[];for(var a in r)k2e(r,a)&&j2e(n,[a,r[a]]);return n},I2e=XN,YN=function(){return typeof Object.entries=="function"?Object.entries:I2e},A2e=YN,M2e=WN,F2e=function(){var t=A2e();return M2e(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},N2e=WN,L2e=qN,D2e=XN,JN=YN,B2e=F2e,ZN=L2e(JN(),Object);N2e(ZN,{getPolyfill:JN,implementation:D2e,shim:B2e});var z2e=ZN,jE=z2e,eL=FN,V2e=function(t){},Fw=String.prototype.replace,tL=String.prototype.split,pv="||||",bh=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},rL={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:bh,chinese:function(){return 0},croatian:bh,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bh,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:bh},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function U2e(e){for(var t={},r=jE(e),n=0;n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var lRe=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),uRe=function(e){lRe(t,e);function t(r,n,a){a===void 0&&(a=null);var o=e.call(this,r)||this;return o.message=r,o.status=n,o.body=a,Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(o,o.constructor):o.stack=new Error(r).stack,o.stack=new Error().stack,o}return t}(Error);const cRe=uRe;var Yg=globalThis&&globalThis.__assign||function(){return Yg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new cRe(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},fRe=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},Jg=function(e,t){var r;return t===void 0&&(t=[]),fRe(e)?Object.assign.apply(Object,dRe([{}],Object.keys(e).map(function(n){return Jg(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e};function Nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{t.headers||(t.headers=aL(t));const r=localStorage.getItem("token");return r&&t.headers.set("Authorization",`Bearer ${r}`),ME(e,t)},gRe=hRe(fl,vRe),mRe={...gRe,getManyReference:(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={...Jg(t.filter),[t.target]:t.id,_sort:a,_order:o,_start:(r-1)*n,_end:r*n,output_size_limit:200},s=`${fl}/${t.target}/${t.id}/${e}?${ko.stringify(i)}`;return ME(s).then(({headers:u,json:l})=>{if(!u.has("x-total-count"))throw new Error("The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?");return{data:l,total:parseInt(u.get("x-total-count").split("/").pop()||"",10)}})}};var FE={},yRe=it;Object.defineProperty(FE,"__esModule",{value:!0});var Gy=FE.default=void 0,bRe=yRe(ct()),xRe=R;Gy=FE.default=(0,bRe.default)((0,xRe.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");const wRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}`,{method:"POST"}).then(()=>{t("Success running job")}).catch(u=>{t("Error on running job",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Run",onClick:i,disabled:a,children:R.jsx(Gy,{})})},SRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}/toggle`,{method:"POST"}).then(()=>{t("Job toggled")}).catch(u=>{t("Error on job toggle",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Toggle",title:"Enable/disable execution of selected jobs",onClick:i,disabled:a,children:R.jsx(Gy,{})})};var NE={},_Re=it;Object.defineProperty(NE,"__esModule",{value:!0});var LE=NE.default=void 0,CRe=_Re(ct()),ERe=R;LE=NE.default=(0,CRe.default)((0,ERe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var DE={},ORe=it;Object.defineProperty(DE,"__esModule",{value:!0});var iL=DE.default=void 0,PRe=ORe(ct()),RRe=R;iL=DE.default=(0,PRe.default)((0,RRe.jsx)("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer");const TRe=()=>{const e=_r();return e.status==="success"?R.jsx(kn,{title:"Success",children:R.jsx(Uy,{htmlColor:"green"})}):e.status==="failed"?R.jsx(kn,{title:"Error",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Waiting to Run",children:R.jsx(iL,{htmlColor:"blue"})})},$Re=()=>_r().disabled?R.jsx(kn,{title:"Disabled",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Enabled",children:R.jsx(Uy,{htmlColor:"green"})}),kRe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function jRe(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let o=0;const i=()=>(o+=1,o);return(s,u)=>{const l=u.options.name;if(l&&l.indexOf("Mui")===0&&!u.options.link&&!t){if(kRe.indexOf(s.key)!==-1)return`Mui-${s.key}`;const c=`${a}${l}-${s.key}`;return!u.options.theme[HF]||n!==""?c:`${c}-${i()}`}return`${a}${r}${i()}`}}var sk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tp=(typeof window>"u"?"undefined":sk(window))==="object"&&(typeof document>"u"?"undefined":sk(document))==="object"&&document.nodeType===9,IRe={}.constructor;function Lw(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Lw);if(e.constructor!==IRe)return e;var t={};for(var r in e)t[r]=Lw(e[r]);return t}function BE(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,a=Lw(t),o=n.plugins.onCreateRule(e,a,r);return o||(e[0],null)}var lk=function(t,r){for(var n="",a=0;a<+~=|^:(),"'`\s])/g,uk=typeof CSS<"u"&&CSS.escape,zE=function(e){return uk?uk(e):e.replace(ARe,"\\$1")},sL=function(){function e(r,n,a){this.type="style",this.isProcessed=!1;var o=a.sheet,i=a.Renderer;this.key=r,this.options=a,this.style=n,o?this.renderer=o.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,a,o){if(a===void 0)return this.style[n];var i=o?o.force:!1;if(!i&&this.style[n]===a)return this;var s=a;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(a,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),Dw=function(e){Py(t,e);function t(n,a,o){var i;i=e.call(this,n,a,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,c=o.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(bx(bx(i)),l),i.selectorText="."+zE(i.id)),i}var r=t.prototype;return r.applyTo=function(a){var o=this.renderer;if(o){var i=this.toJSON();for(var s in i)o.setProperty(a,s,i[s])}return this},r.toJSON=function(){var a={};for(var o in this.style){var i=this.style[o];typeof i!="object"?a[o]=i:Array.isArray(i)&&(a[o]=zs(i))}return a},r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.selectorText,this.style,s)},oL(t,[{key:"selector",set:function(a){if(a!==this.selectorText){this.selectorText=a;var o=this.renderer,i=this.renderable;if(!(!i||!o)){var s=o.setSelector(i,a);s||o.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(sL),MRe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new Dw(t,r,n)}},S0={indent:1,children:!0},FRe=/@([\w-]+)/,NRe=function(){function e(r,n,a){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(FRe);this.at=o?o[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new Qy(T({},a,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=S0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=S0.indent),n.children==null&&(n.children=S0.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+o+i+o+"}":""},e}(),LRe=/@container|@media|@supports\s+/,DRe={onCreateRule:function(t,r,n){return LRe.test(t)?new NRe(t,r,n):null}},_0={indent:1,children:!0},BRe=/@keyframes\s+([\w-]+)/,Bw=function(){function e(r,n,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(BRe);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var i=a.scoped,s=a.sheet,u=a.generateId;this.id=i===!1?this.name:zE(u(this,s)),this.rules=new Qy(T({},a,{parent:this}));for(var l in n)this.rules.add(l,n[l],T({},a,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=_0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=_0.indent),n.children==null&&(n.children=_0.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+o+i+o),this.at+" "+this.id+" {"+i+"}"},e}(),zRe=/@keyframes\s+/,VRe=/\$([\w-]+)/g,zw=function(t,r){return typeof t=="string"?t.replace(VRe,function(n,a){return a in r?r[a]:n}):t},ck=function(t,r,n){var a=t[r],o=zw(a,n);o!==a&&(t[r]=o)},URe={onCreateRule:function(t,r,n){return typeof t=="string"&&zRe.test(t)?new Bw(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&ck(t,"animation-name",n.keyframes),"animation"in t&&ck(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var a=n.options.sheet;if(!a)return t;switch(r){case"animation":return zw(t,a.keyframes);case"animation-name":return zw(t,a.keyframes);default:return t}}},WRe=function(e){Py(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.key,this.style,s)},t}(sL),HRe={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new WRe(t,r,n):null}},qRe=function(){function e(r,n,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=a}var t=e.prototype;return t.toString=function(n){var a=Ic(n),o=a.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){a.push(n);return}for(var i=0;io){a.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var a=this.registry.indexOf(n);this.registry.splice(a,1)},t.toString=function(n){for(var a=n===void 0?{}:n,o=a.attached,i=Pe(a,["attached"]),s=Ic(i),u=s.linebreak,l="",c=0;c-1?a.substr(0,o-1):a;t.style.setProperty(r,i,o>-1?"important":"")}}catch{return!1}return!0},oTe=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},iTe=function(t,r){return t.selectorText=r,t.selectorText===r},cL=uL(function(){return document.querySelector("head")});function sTe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function lTe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function uTe(e){for(var t=cL(),r=0;r0){var r=sTe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=lTe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var a=uTe(n);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}function dTe(e,t){var r=t.insertionPoint,n=cTe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var a=r,o=a.parentNode;o&&o.insertBefore(e,a.nextSibling);return}cL().appendChild(e)}var fTe=uL(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),vk=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},gk=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},pTe=function(){var t=document.createElement("style");return t.textContent=` -`,t},hTe=function(){function e(r){this.getPropertyValue=nTe,this.setProperty=aTe,this.removeProperty=oTe,this.setSelector=iTe,this.hasInsertedRules=!1,this.cssRules=[],r&&Gd.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},a=n.media,o=n.meta,i=n.element;this.element=i||pTe(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),o&&this.element.setAttribute("data-meta",o);var s=fTe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){dTe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` + `),che)),vhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=Pe(n,lhe),v=T({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=dhe(v),y={},S={},x={};if(f==="determinate"){const m=2*Math.PI*((Jo-l)/2);y.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(fhe,T({className:ue(g.root,a),style:T({width:s,height:s},S,u),ownerState:v,ref:r,role:"progressbar"},x,p,{children:R.jsx(phe,{className:g.svg,ownerState:v,viewBox:`${Jo/2} ${Jo/2} ${Jo} ${Jo}`,children:R.jsx(hhe,{className:g.circle,style:y,ownerState:v,cx:Jo,cy:Jo,r:(Jo-l)/2,fill:"none",strokeWidth:l})})}))}),kc=vhe;function zT(e){return e.substring(2).toLowerCase()}function ghe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Jt(t.ref,s),f=fn(g=>{const y=l.current;l.current=!1;const S=wr(s.current);if(!u.current||!s.current||"clientX"in g&&ghe(g,S))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!S.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!y)&&a(g)}),p=g=>y=>{l.current=!0;const S=t.props[g];S&&S(y)},v={ref:c};return o!==!1&&(v[o]=p(o)),d.useEffect(()=>{if(o!==!1){const g=zT(o),y=wr(s.current),S=()=>{i.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",S),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",S)}}},[f,o]),n!==!1&&(v[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=zT(n),y=wr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,n]),R.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const yhe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),bhe=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),xhe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,s])=>{var u;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let a=T({html:yhe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},bhe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function whe(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return R.jsxs(d.Fragment,{children:[R.jsx(y4,{styles:a=>xhe(a,n)}),r]})}function She(e){const t=wr(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VT(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function _he(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function UT(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!_he(i);s&&u&&Nd(i,a)})}function o0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Che(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(She(n)){const i=BF(wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${VT(n)+i}px`;const s=wr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${VT(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=wr(n).body;else{const i=n.parentElement,s=da(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Ehe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ohe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Nd(t.modalRef,!1);const a=Ehe(r);UT(r,t.mount,t.modalRef,a,!0);const o=o0(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=o0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Che(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=o0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Nd(t.modalRef,r),UT(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Nd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Phe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rhe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function The(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function $he(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||The(e))}function khe(e){const t=[],r=[];return Array.from(e.querySelectorAll(Phe)).forEach((n,a)=>{const o=Rhe(n);o===-1||!$he(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function jhe(){return!0}function Ihe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=khe,isEnabled:i=jhe,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),y=Jt(t.ref,g),S=d.useRef(null);d.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{a||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current),h=E=>{S.current=E,!(n||!i()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(u.current=!0,c.current&&c.current.focus())},_=()=>{const E=g.current;if(E===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let w=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(w=o(g.current)),w.length>0){var O,P;const k=!!((O=S.current)!=null&&O.shiftKey&&((P=S.current)==null?void 0:P.key)==="Tab"),j=w[0],$=w[w.length-1];typeof j!="string"&&typeof $!="string"&&(k?$.focus():j.focus())}else E.focus()};b.addEventListener("focusin",_),b.addEventListener("keydown",h,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",_),b.removeEventListener("keydown",h,!0)}},[r,n,a,i,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0,p.current=b.target;const h=t.props.onFocus;h&&h(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0};return R.jsxs(d.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:y,onFocus:x}),R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function Ahe(e){return typeof e=="function"?e():e}function Mhe(e){return e?e.props.hasOwnProperty("in"):!1}const Fhe=new Ohe;function Nhe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Fhe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),y=Jt(g,f),[S,x]=d.useState(!c),m=Mhe(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const h=()=>wr(v.current),_=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),C=()=>{a.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=fn(()=>{const M=Ahe(t)||h().body;a.add(_(),M),g.current&&C()}),w=d.useCallback(()=>a.isTopModal(_()),[a]),O=fn(M=>{v.current=M,M&&(c&&w()?C():g.current&&Nd(g.current,b))}),P=d.useCallback(()=>{a.remove(_(),b)},[b,a]);d.useEffect(()=>()=>{P()},[P]),d.useEffect(()=>{c?E():(!m||!o)&&P()},[c,P,m,o,E]);const k=M=>W=>{var B;(B=M.onKeyDown)==null||B.call(M,W),!(W.key!=="Escape"||W.which===229||!w())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},j=M=>W=>{var B;(B=M.onClick)==null||B.call(M,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(M={})=>{const W=ug(e);delete W.onTransitionEnter,delete W.onTransitionExited;const B=T({},W,M);return T({role:"presentation"},B,{onKeyDown:k(B),ref:y})},getBackdropProps:(M={})=>{const W=M;return T({"aria-hidden":!0},W,{onClick:j(W),open:c})},getTransitionProps:()=>{const M=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:hx(M,u==null?void 0:u.props.onEnter),onExited:hx(W,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:O,isTopModal:w,exited:S,hasTransition:m}}function Lhe(e){return Ue("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Dhe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Bhe=e=>{const{open:t,exited:r,classes:n}=e;return qe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Lhe,n)},zhe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vhe=ne(x4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Uhe=d.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Ke({name:"MuiModal",props:t}),{BackdropComponent:c=Vhe,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:y,component:S,components:x={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:_=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:O=!1,keepMounted:P=!1,onBackdropClick:k,open:j,slotProps:$,slots:F}=l,z=Pe(l,Dhe),M=T({},l,{closeAfterTransition:v,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:_,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:O,keepMounted:P}),{getRootProps:W,getBackdropProps:B,getTransitionProps:U,portalRef:q,isTopModal:ie,exited:oe,hasTransition:Ee}=Nhe(T({},M,{rootRef:r})),pe=T({},M,{exited:oe}),Te=Bhe(pe),ye={};if(g.props.tabIndex===void 0&&(ye.tabIndex="-1"),Ee){const{onEnter:Ne,onExited:Ae}=U();ye.onEnter=Ne,ye.onExited=Ae}const be=(n=(a=F==null?void 0:F.root)!=null?a:x.Root)!=null?n:zhe,we=(o=(i=F==null?void 0:F.backdrop)!=null?i:x.Backdrop)!=null?o:c,ve=(s=$==null?void 0:$.root)!=null?s:m.root,De=(u=$==null?void 0:$.backdrop)!=null?u:m.backdrop,Me=fa({elementType:be,externalSlotProps:ve,externalForwardedProps:z,getSlotProps:W,additionalProps:{ref:r,as:S},ownerState:pe,className:ue(p,ve==null?void 0:ve.className,Te==null?void 0:Te.root,!pe.open&&pe.exited&&(Te==null?void 0:Te.hidden))}),Qe=fa({elementType:we,externalSlotProps:De,additionalProps:f,getSlotProps:Ne=>B(T({},Ne,{onClick:Ae=>{k&&k(Ae),Ne!=null&&Ne.onClick&&Ne.onClick(Ae)}})),className:ue(De==null?void 0:De.className,f==null?void 0:f.className,Te==null?void 0:Te.backdrop),ownerState:pe});return!P&&!j&&(!Ee||oe)?null:R.jsx(g4,{ref:q,container:y,disablePortal:C,children:R.jsxs(be,T({},Me,{children:[!O&&c?R.jsx(we,T({},Qe)):null,R.jsx(Ihe,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:ie,open:j,children:d.cloneElement(g,ye)})]}))})}),RC=Uhe;function Whe(e){return Ue("MuiDialog",e)}const Hhe=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),i0=Hhe,qhe=d.createContext({}),_4=qhe,Khe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ghe=ne(x4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qhe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return qe(i,Whe,t)},Xhe=ne(RC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Yhe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ge(r.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Jhe=ne(Yi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ge(r.scroll)}`],t[`paperWidth${ge(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${i0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${i0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${i0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Zhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialog"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:S,onClick:x,onClose:m,open:b,PaperComponent:h=Yi,PaperProps:_={},scroll:C="paper",TransitionComponent:E=b4,transitionDuration:w=o,TransitionProps:O}=n,P=Pe(n,Khe),k=T({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:y,scroll:C}),j=Qhe(k),$=d.useRef(),F=B=>{$.current=B.target===B.currentTarget},z=B=>{x&&x(B),$.current&&($.current=null,S&&S(B),m&&m(B,"backdropClick"))},M=el(s),W=d.useMemo(()=>({titleId:M}),[M]);return R.jsx(Xhe,T({className:ue(j.root,f),closeAfterTransition:!0,components:{Backdrop:Ghe},componentsProps:{backdrop:T({transitionDuration:w,as:u},l)},disableEscapeKeyDown:p,onClose:m,open:b,ref:r,onClick:z,ownerState:k},P,{children:R.jsx(E,T({appear:!0,in:b,timeout:w,role:"presentation"},O,{children:R.jsx(Yhe,{className:ue(j.container),onMouseDown:F,ownerState:k,children:R.jsx(Jhe,T({as:h,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":M},_,{className:ue(j.paper,_.className),ownerState:k,children:R.jsx(_4.Provider,{value:W,children:c})}))})}))}))}),TC=Zhe;function eve(e){return Ue("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const tve=["className","disableSpacing"],rve=e=>{const{classes:t,disableSpacing:r}=e;return qe({root:["root",!r&&"spacing"]},eve,t)},nve=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ave=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Pe(n,tve),s=T({},n,{disableSpacing:o}),u=rve(s);return R.jsx(nve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),$C=ave;function ove(e){return Ue("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function ive(e){return Ue("MuiDialogTitle",e)}const sve=We("MuiDialogTitle",["root"]),lve=sve,uve=["className","dividers"],cve=e=>{const{classes:t,dividers:r}=e;return qe({root:["root",r&&"dividers"]},ove,t)},dve=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${lve.root} + &`]:{paddingTop:0}})),fve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Pe(n,uve),s=T({},n,{dividers:o}),u=cve(s);return R.jsx(dve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),kC=fve;function pve(e){return Ue("MuiDialogContentText",e)}We("MuiDialogContentText",["root"]);const hve=["children","className"],vve=e=>{const{classes:t}=e,n=qe({root:["root"]},pve,t);return T({},t,n)},gve=ne(_t,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Pe(n,hve),i=vve(o);return R.jsx(gve,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),C4=mve,yve=["className","id"],bve=e=>{const{classes:t}=e;return qe({root:["root"]},ive,t)},xve=ne(_t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),wve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Pe(n,yve),s=n,u=bve(s),{titleId:l=o}=d.useContext(_4);return R.jsx(xve,T({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),jC=wve;function Sve(e){return Ue("MuiDivider",e)}const _ve=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WT=_ve,Cve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Eve=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:s,variant:u}=e;return qe({root:["root",t&&"absolute",u,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Sve,n)},Ove=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Pve=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),E4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:s=o?"div":"hr",flexItem:u=!1,light:l=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=Pe(n,Cve),y=T({},n,{absolute:a,component:s,flexItem:u,light:l,orientation:c,role:f,textAlign:p,variant:v}),S=Eve(y);return R.jsx(Ove,T({as:s,className:ue(S.root,i),role:f,ref:r,ownerState:y},g,{children:o?R.jsx(Pve,{className:S.wrapper,ownerState:y,children:o}):null}))});E4.muiSkipListHighlight=!0;const mg=E4,Rve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function $ve(e){return typeof e=="function"?e():e}function uh(e,t,r){const n=$ve(r),a=Tve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const kve=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=a,in:p,onEnter:v,onEntered:g,onEntering:y,onExit:S,onExited:x,onExiting:m,style:b,timeout:h=o,TransitionComponent:_=gC}=t,C=Pe(t,Rve),E=d.useRef(null),w=Jt(u.ref,E,r),O=B=>U=>{B&&(U===void 0?B(E.current):B(E.current,U))},P=O((B,U)=>{uh(c,B,l),bC(B),v&&v(B,U)}),k=O((B,U)=>{const q=Ju({timeout:h,style:b,easing:f},{mode:"enter"});B.style.webkitTransition=n.transitions.create("-webkit-transform",T({},q)),B.style.transition=n.transitions.create("transform",T({},q)),B.style.webkitTransform="none",B.style.transform="none",y&&y(B,U)}),j=O(g),$=O(m),F=O(B=>{const U=Ju({timeout:h,style:b,easing:f},{mode:"exit"});B.style.webkitTransition=n.transitions.create("-webkit-transform",U),B.style.transition=n.transitions.create("transform",U),uh(c,B,l),S&&S(B)}),z=O(B=>{B.style.webkitTransition="",B.style.transition="",x&&x(B)}),M=B=>{i&&i(E.current,B)},W=d.useCallback(()=>{E.current&&uh(c,E.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const B=Rc(()=>{E.current&&uh(c,E.current,l)}),U=da(E.current);return U.addEventListener("resize",B),()=>{B.clear(),U.removeEventListener("resize",B)}},[c,p,l]),d.useEffect(()=>{p||W()},[p,W]),R.jsx(_,T({nodeRef:E,onEnter:P,onEntered:j,onEntering:k,onExit:F,onExited:z,onExiting:$,addEndListener:M,appear:s,in:p,timeout:h},C,{children:(B,U)=>d.cloneElement(u,T({ref:w,style:T({visibility:B==="exited"&&!p?"hidden":void 0},b,u.props.style)},U))}))}),O4=kve;function jve(e){return Ue("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Ive=["BackdropProps"],Ave=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],P4=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Mve=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ge(r)}`,n!=="temporary"&&`paperAnchorDocked${ge(r)}`]};return qe(a,jve,t)},Fve=ne(RC,{name:"MuiDrawer",slot:"Root",overridesResolver:P4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),HT=ne("div",{shouldForwardProp:Wr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:P4})({flex:"0 0 auto"}),Nve=ne(Yi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ge(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ge(r.anchor)}`]]}})(({theme:e,ownerState:t})=>T({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),R4={left:"right",right:"left",top:"down",bottom:"up"};function Lve(e){return["left","right"].indexOf(e)!==-1}function Dve({direction:e},t){return e==="rtl"&&Lve(t)?R4[t]:t}const Bve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),a=fo(),o=cl(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:g,open:y=!1,PaperProps:S={},SlideProps:x,TransitionComponent:m=O4,transitionDuration:b=i,variant:h="temporary"}=n,_=Pe(n.ModalProps,Ive),C=Pe(n,Ave),E=d.useRef(!1);d.useEffect(()=>{E.current=!0},[]);const w=Dve({direction:o?"rtl":"ltr"},s),P=T({},n,{anchor:s,elevation:f,open:y,variant:h},C),k=Mve(P),j=R.jsx(Nve,T({elevation:h==="temporary"?f:0,square:!0},S,{className:ue(k.paper,S.className),ownerState:P,children:l}));if(h==="permanent")return R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:j}));const $=R.jsx(m,T({in:y,direction:R4[w],timeout:b,appear:E.current},x,{children:j}));return h==="persistent"?R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:$})):R.jsx(Fve,T({BackdropProps:T({},u,v,{transitionDuration:b}),className:ue(k.root,k.modal,c),open:y,ownerState:P,onClose:g,hideBackdrop:p,ref:r},C,_,{children:$}))}),zve=Bve;function Vve(e){return Ue("MuiFab",e)}const Uve=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),qT=Uve,Wve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Hve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${ge(a)}`,t==="inherit"?"colorInherit":t]},i=qe(o,Vve,n);return T({},n,i)},qve=ne(Ma,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Wr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ge(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return T({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${qT.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>T({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${qT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Kve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,v=Pe(n,Wve),g=T({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),y=Hve(g);return R.jsx(qve,T({className:ue(y.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(y.focusVisible,c),ownerState:g,ref:r},v,{classes:y,children:a}))}),Gve=Kve,Qve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Xve=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Vfe,t);return T({},t,a)},Yve=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Jve=ne(Ay,{name:"MuiFilledInput",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),T4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,S=Pe(s,Qve),x=T({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),m=Xve(s),b={root:{ownerState:x},input:{ownerState:x}},h=v??l?Rr(b,v??l):b,_=(n=(a=g.root)!=null?a:u.Root)!=null?n:Yve,C=(o=(i=g.input)!=null?i:u.Input)!=null?o:Jve;return R.jsx(My,T({slots:{root:_,input:C},componentsProps:h,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},S,{classes:m}))});T4.muiName="Input";const $4=T4;function Zve(e){return Ue("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ege=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],tge=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return qe(a,Zve,t)},rge=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${ge(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),nge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:y="medium",variant:S="outlined"}=n,x=Pe(n,ege),m=T({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:y,variant:S}),b=tge(m),[h,_]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{if(!Hh(F,["Input","Select"]))return;const z=Hh(F,["Select"])?F.props.input:F;z&&kfe(z.props)&&($=!0)}),$}),[C,E]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{Hh(F,["Input","Select"])&&(hg(F.props,!0)||hg(F.props.inputProps,!0))&&($=!0)}),$}),[w,O]=d.useState(!1);u&&w&&O(!1);const P=c!==void 0&&!u?c:w;let k;const j=d.useMemo(()=>({adornedStart:h,setAdornedStart:_,color:i,disabled:u,error:l,filled:C,focused:P,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{O(!0)},registerEffect:k,required:g,variant:S}),[h,i,u,l,C,P,f,p,k,g,y,S]);return R.jsx($y.Provider,{value:j,children:R.jsx(rge,T({as:s,ownerState:m,className:ue(b.root,o),ref:r},x,{children:a}))})}),age=nge,oge=Ele({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),Ny=oge;function ige(e){return Ue("MuiFormControlLabel",e)}const sge=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pd=sge,lge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],uge=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return qe(i,ige,t)},cge=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pd.label}`]:t.label},t.root,t[`labelPlacement${ge(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pd.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${pd.label}`]:{[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),dge=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),fge=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=o,y=Pe(o,lge),S=po(),x=(n=l??u.props.disabled)!=null?n:S==null?void 0:S.disabled,m=v??u.props.required,b={disabled:x,required:m};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof o[O]<"u"&&(b[O]=o[O])});const h=Zi({props:o,muiFormControl:S,states:["error"]}),_=T({},o,{disabled:x,labelPlacement:p,required:m,error:h.error}),C=uge(_),E=(a=g.typography)!=null?a:s.typography;let w=f;return w!=null&&w.type!==_t&&!c&&(w=R.jsx(_t,T({component:"span"},E,{className:ue(C.label,E==null?void 0:E.className),children:w}))),R.jsxs(cge,T({className:ue(C.root,i),ownerState:_,ref:r},y,{children:[d.cloneElement(u,b),m?R.jsxs(Ny,{display:"block",children:[w,R.jsxs(dge,{ownerState:_,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):w]}))}),pge=fge;function hge(e){return Ue("MuiFormGroup",e)}We("MuiFormGroup",["root","row","error"]);const vge=["className","row"],gge=e=>{const{classes:t,row:r,error:n}=e;return qe({root:["root",r&&"row",n&&"error"]},hge,t)},mge=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),yge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Pe(n,vge),s=po(),u=Zi({props:n,muiFormControl:s,states:["error"]}),l=T({},n,{row:o,error:u.error}),c=gge(l);return R.jsx(mge,T({className:ue(c.root,a),ownerState:l,ref:r},i))}),bge=yge;function xge(e){return Ue("MuiFormHelperText",e)}const wge=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KT=wge;var GT;const Sge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_ge=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${ge(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return qe(l,xge,t)},Cge=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ge(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KT.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KT.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ege=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Pe(n,Sge),u=po(),l=Zi({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=T({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=_ge(c);return R.jsx(Cge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:a===" "?GT||(GT=R.jsx("span",{className:"notranslate",children:"​"})):a}))}),IC=Ege;function Oge(e){return Ue("MuiFormLabel",e)}const Pge=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ld=Pge,Rge=["children","className","color","component","disabled","error","filled","focused","required"],Tge=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${ge(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return qe(u,Oge,t)},$ge=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ld.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),kge=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),jge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Pe(n,Rge),u=po(),l=Zi({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=T({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Tge(c);return R.jsxs($ge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:[a,l.required&&R.jsxs(kge,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Ige=jge,Age=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cx(e){return`scale(${e}, ${e**2})`}const Mge={entering:{opacity:1,transform:Cx(1)},entered:{opacity:1,transform:"none"}},s0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k4=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:y="auto",TransitionComponent:S=gC}=t,x=Pe(t,Age),m=Ss(),b=d.useRef(),h=fo(),_=d.useRef(null),C=Jt(_,o.ref,r),E=z=>M=>{if(z){const W=_.current;M===void 0?z(W):z(W,M)}},w=E(c),O=E((z,M)=>{bC(z);const{duration:W,delay:B,easing:U}=Ju({style:g,timeout:y,easing:i},{mode:"enter"});let q;y==="auto"?(q=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=q):q=W,z.style.transition=[h.transitions.create("opacity",{duration:q,delay:B}),h.transitions.create("transform",{duration:s0?q:q*.666,delay:B,easing:U})].join(","),u&&u(z,M)}),P=E(l),k=E(v),j=E(z=>{const{duration:M,delay:W,easing:B}=Ju({style:g,timeout:y,easing:i},{mode:"exit"});let U;y==="auto"?(U=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=U):U=M,z.style.transition=[h.transitions.create("opacity",{duration:U,delay:W}),h.transitions.create("transform",{duration:s0?U:U*.666,delay:s0?W:W||U*.333,easing:B})].join(","),z.style.opacity=0,z.style.transform=Cx(.75),f&&f(z)}),$=E(p),F=z=>{y==="auto"&&m.start(b.current||0,z),n&&n(_.current,z)};return R.jsx(S,T({appear:a,in:s,nodeRef:_,onEnter:O,onEntered:P,onEntering:w,onExit:j,onExited:$,onExiting:k,addEndListener:F,timeout:y==="auto"?null:y},x,{children:(z,M)=>d.cloneElement(o,T({style:T({opacity:0,transform:Cx(.75),visibility:z==="exited"&&!s?"hidden":void 0},Mge[z],g,o.props.style),ref:C},M))}))});k4.muiSupportAuto=!0;const yg=k4,Fge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Nge=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Lfe,t);return T({},t,a)},Lge=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Dge=ne(Ay,{name:"MuiInput",slot:"Input",overridesResolver:jy})({}),j4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:y={},type:S="text"}=s,x=Pe(s,Fge),m=Nge(s),h={root:{ownerState:{disableUnderline:u}}},_=g??c?Rr(g??c,h):h,C=(n=(a=y.root)!=null?a:l.Root)!=null?n:Lge,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:Dge;return R.jsx(My,T({slots:{root:C,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:S},x,{classes:m}))});j4.muiName="Input";const I4=j4;function Bge(e){return Ue("MuiInputAdornment",e)}const zge=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),QT=zge;var XT;const Vge=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Uge=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Wge=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${ge(a)}`,i,n&&"hiddenLabel",o&&`size${ge(o)}`]};return qe(s,Bge,t)},Hge=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Uge})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${QT.positionStart}&:not(.${QT.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),qge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=Pe(n,Vge),p=po()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=T({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),y=Wge(g);return R.jsx($y.Provider,{value:null,children:R.jsx(Hge,T({as:i,ownerState:g,className:ue(y.root,o),ref:r},f,{children:typeof a=="string"&&!u?R.jsx(_t,{color:"text.secondary",children:a}):R.jsxs(d.Fragment,{children:[l==="start"?XT||(XT=R.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})}),Xh=qge;function Kge(e){return Ue("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gge=["disableAnimation","margin","shrink","variant","className"],Qge=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ge(n)}`,i],asterisk:[s&&"asterisk"]},l=qe(u,Kge,t);return T({},t,l)},Xge=ne(Ige,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ld.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yge=d.forwardRef(function(t,r){const n=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Pe(n,Gge),u=po();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Zi({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=T({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Qge(f);return R.jsx(Xge,T({"data-shrink":l,ownerState:f,ref:r,className:ue(p.root,i)},s,{classes:p}))}),Jge=Yge;function Zge(e){return Ue("MuiLink",e)}const eme=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tme=eme,A4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rme=e=>A4[e]||e,nme=({theme:e,ownerState:t})=>{const r=rme(t.color),n=Xu(e,`palette.${r}`,!1)||t.color,a=Xu(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},ame=nme,ome=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ime=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${ge(a)}`,r==="button"&&"button",n&&"focusVisible"]};return qe(o,Zge,t)},sme=ne(_t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ge(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:ame({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tme.focusVisible}`]:{outline:"auto"}})),lme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,v=Pe(n,ome),{isFocusVisibleRef:g,onBlur:y,onFocus:S,ref:x}=Ey(),[m,b]=d.useState(!1),h=Jt(r,x),_=O=>{y(O),g.current===!1&&b(!1),s&&s(O)},C=O=>{S(O),g.current===!0&&b(!0),u&&u(O)},E=T({},n,{color:o,component:i,focusVisible:m,underline:c,variant:f}),w=ime(E);return R.jsx(sme,T({color:o,className:ue(w.root,a),classes:l,component:i,onBlur:_,onFocus:C,ref:h,ownerState:E,variant:f,sx:[...Object.keys(A4).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},v))}),ume=lme,cme=d.createContext({}),jf=cme;function dme(e){return Ue("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const fme=["children","className","component","dense","disablePadding","subheader"],pme=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return qe({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},dme,t)},hme=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),vme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Pe(n,fme),f=d.useMemo(()=>({dense:s}),[s]),p=T({},n,{component:i,dense:s,disablePadding:u}),v=pme(p);return R.jsx(jf.Provider,{value:f,children:R.jsxs(hme,T({as:i,className:ue(v.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})}),gme=vme;function mme(e){return Ue("MuiListItemIcon",e)}const yme=We("MuiListItemIcon",["root","alignItemsFlexStart"]),YT=yme,bme=["className"],xme=e=>{const{alignItems:t,classes:r}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},mme,r)},wme=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>T({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Sme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Pe(n,bme),i=d.useContext(jf),s=T({},n,{alignItems:i.alignItems}),u=xme(s);return R.jsx(wme,T({className:ue(u.root,a),ownerState:s,ref:r},o))}),Cs=Sme;function _me(e){return Ue("MuiListItemText",e)}const Cme=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bg=Cme,Eme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ome=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return qe({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},_me,t)},Pme=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bg.primary}`]:t.primary},{[`& .${bg.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Rme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=Pe(n,Eme),{dense:v}=d.useContext(jf);let g=u??a,y=c;const S=T({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!y,dense:v}),x=Ome(S);return g!=null&&g.type!==_t&&!i&&(g=R.jsx(_t,T({variant:v?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),y!=null&&y.type!==_t&&!i&&(y=R.jsx(_t,T({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),R.jsxs(Pme,T({className:ue(x.root,o),ownerState:S,ref:r},p,{children:[g,y]}))}),Zl=Rme,Tme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JT(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function M4(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Yc(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!M4(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const $me=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=Pe(t,Tme),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{a&&v.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:h})=>{const _=!v.current.style.width;if(b.clientHeight{const h=v.current,_=b.key,C=wr(h).activeElement;if(_==="ArrowDown")b.preventDefault(),Yc(h,C,l,u,l0);else if(_==="ArrowUp")b.preventDefault(),Yc(h,C,l,u,JT);else if(_==="Home")b.preventDefault(),Yc(h,null,l,u,l0);else if(_==="End")b.preventDefault(),Yc(h,null,l,u,JT);else if(_.length===1){const E=g.current,w=_.toLowerCase(),O=performance.now();E.keys.length>0&&(O-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&w!==E.keys[0]&&(E.repeating=!1)),E.lastTime=O,E.keys.push(w);const P=C&&!E.repeating&&M4(C,E);E.previousKeyMatched&&(P||Yc(h,C,!1,u,l0,E))?b.preventDefault():E.previousKeyMatched=!1}c&&c(b)},S=Jt(v,r);let x=-1;d.Children.forEach(i,(b,h)=>{if(!d.isValidElement(b)){x===h&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=h),x===h&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(b,h)=>{if(h===x){const _={};return o&&(_.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),d.cloneElement(b,_)}return b});return R.jsx(gme,T({role:"menu",ref:S,className:s,onKeyDown:y,tabIndex:a?0:-1},p,{children:m}))}),F4=$me;function kme(e){return Ue("MuiPopover",e)}We("MuiPopover",["root","paper"]);const jme=["onEntering"],Ime=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ame=["slotProps"];function ZT(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function e$(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function t$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function u0(e){return typeof e=="function"?e():e}const Mme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},kme,t)},Fme=ne(RC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4=ne(Yi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nme=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:y=8,marginThreshold:S=16,open:x,PaperProps:m={},slots:b,slotProps:h,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:C=yg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:O=!1}=i,P=Pe(i.TransitionProps,jme),k=Pe(i,Ime),j=(n=h==null?void 0:h.paper)!=null?n:m,$=d.useRef(),F=Jt($,j.ref),z=T({},i,{anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:_,TransitionComponent:C,transitionDuration:E,TransitionProps:P}),M=Mme(z),W=d.useCallback(()=>{if(f==="anchorPosition")return c;const Ne=u0(u),He=(Ne&&Ne.nodeType===1?Ne:wr($.current).body).getBoundingClientRect();return{top:He.top+ZT(He,l.vertical),left:He.left+e$(He,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),B=d.useCallback(Ne=>({vertical:ZT(Ne,_.vertical),horizontal:e$(Ne,_.horizontal)}),[_.horizontal,_.vertical]),U=d.useCallback(Ne=>{const Ae={width:Ne.offsetWidth,height:Ne.offsetHeight},He=B(Ae);if(f==="none")return{top:null,left:null,transformOrigin:t$(He)};const ht=W();let ut=ht.top-He.vertical,V=ht.left-He.horizontal;const K=ut+Ae.height,te=V+Ae.width,se=da(u0(u)),de=se.innerHeight-S,fe=se.innerWidth-S;if(S!==null&&utde){const Oe=K-de;ut-=Oe,He.vertical+=Oe}if(S!==null&&Vfe){const Oe=te-fe;V-=Oe,He.horizontal+=Oe}return{top:`${Math.round(ut)}px`,left:`${Math.round(V)}px`,transformOrigin:t$(He)}},[u,f,W,B,S]),[q,ie]=d.useState(x),oe=d.useCallback(()=>{const Ne=$.current;if(!Ne)return;const Ae=U(Ne);Ae.top!==null&&(Ne.style.top=Ae.top),Ae.left!==null&&(Ne.style.left=Ae.left),Ne.style.transformOrigin=Ae.transformOrigin,ie(!0)},[U]);d.useEffect(()=>(O&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,O,oe]);const Ee=(Ne,Ae)=>{w&&w(Ne,Ae),oe()},pe=()=>{ie(!1)};d.useEffect(()=>{x&&oe()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),d.useEffect(()=>{if(!x)return;const Ne=Rc(()=>{oe()}),Ae=da(u);return Ae.addEventListener("resize",Ne),()=>{Ne.clear(),Ae.removeEventListener("resize",Ne)}},[u,x,oe]);let Te=E;E==="auto"&&!C.muiSupportAuto&&(Te=void 0);const ye=g||(u?wr(u0(u)).body:void 0),be=(a=b==null?void 0:b.root)!=null?a:Fme,we=(o=b==null?void 0:b.paper)!=null?o:N4,ve=fa({elementType:we,externalSlotProps:T({},j,{style:q?j.style:T({},j.style,{opacity:0})}),additionalProps:{elevation:y,ref:F},ownerState:z,className:ue(M.paper,j==null?void 0:j.className)}),De=fa({elementType:be,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ye,open:x},ownerState:z,className:ue(M.root,v)}),{slotProps:Me}=De,Qe=Pe(De,Ame);return R.jsx(be,T({},Qe,!Rf(be)&&{slotProps:Me,disableScrollLock:O},{children:R.jsx(C,T({appear:!0,in:x,onEntering:Ee,onExited:pe,timeout:Te},P,{children:R.jsx(we,T({},ve,{children:p}))}))}))}),L4=Nme;function Lme(e){return Ue("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Dme=["onEntering"],Bme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],zme={vertical:"top",horizontal:"right"},Vme={vertical:"top",horizontal:"left"},Ume=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Lme,t)},Wme=ne(L4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hme=ne(N4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qme=ne(F4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Kme=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:x="selectedMenu",slots:m={},slotProps:b={}}=o,h=Pe(o.TransitionProps,Dme),_=Pe(o,Bme),C=cl(),E=T({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:v,transitionDuration:y,TransitionProps:h,variant:x}),w=Ume(E),O=i&&!l&&p,P=d.useRef(null),k=(B,U)=>{P.current&&P.current.adjustStyleForScrollbar(B,{direction:C?"rtl":"ltr"}),S&&S(B,U)},j=B=>{B.key==="Tab"&&(B.preventDefault(),f&&f(B,"tabKeyDown"))};let $=-1;d.Children.map(s,(B,U)=>{d.isValidElement(B)&&(B.props.disabled||(x==="selectedMenu"&&B.props.selected||$===-1)&&($=U))});const F=(n=m.paper)!=null?n:Hme,z=(a=b.paper)!=null?a:v,M=fa({elementType:m.root,externalSlotProps:b.root,ownerState:E,className:[w.root,u]}),W=fa({elementType:F,externalSlotProps:z,ownerState:E,className:w.paper});return R.jsx(Wme,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?zme:Vme,slots:{paper:F,root:m.root},slotProps:{root:M,paper:W},open:p,ref:r,transitionDuration:y,TransitionProps:T({onEntering:k},h),ownerState:E},_,{classes:g,children:R.jsx(qme,T({onKeyDown:j,actions:P,autoFocus:i&&($===-1||l),autoFocusItem:O,variant:x},c,{className:ue(w.list,c.className),children:s}))}))}),Ly=Kme;function Gme(e){return Ue("MuiMenuItem",e)}const Qme=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jc=Qme,Xme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Jme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=qe({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Gme,i);return T({},i,u)},Zme=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Yme})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Jc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Jc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WT.inset}`]:{marginLeft:52},[`& .${bg.root}`]:{marginTop:0,marginBottom:0},[`& .${bg.inset}`]:{paddingLeft:36},[`& .${YT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${YT.root} svg`]:{fontSize:"1.25rem"}}))),eye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,v=Pe(n,Xme),g=d.useContext(jf),y=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),S=d.useRef(null);qn(()=>{a&&S.current&&S.current.focus()},[a]);const x=T({},n,{dense:y.dense,divider:s,disableGutters:u}),m=Jme(n),b=Jt(S,r);let h;return n.disabled||(h=f!==void 0?f:-1),R.jsx(jf.Provider,{value:y,children:R.jsx(Zme,T({ref:b,role:c,tabIndex:h,component:o,focusVisibleClassName:ue(m.focusVisible,l),className:ue(m.root,p)},v,{ownerState:x,classes:m}))})}),Ta=eye;function tye(e){return Ue("MuiNativeSelect",e)}const rye=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AC=rye,nye=["className","disabled","error","IconComponent","inputRef","variant"],aye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"]};return qe(s,tye,t)},D4=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${AC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),oye=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${AC.multiple}`]:t.multiple}]}})(D4),B4=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),iye=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),sye=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Pe(t,nye),c=T({},t,{disabled:a,variant:u,error:o}),f=aye(c);return R.jsxs(d.Fragment,{children:[R.jsx(oye,T({ownerState:c,className:ue(f.select,n),disabled:a,ref:s||r},l)),t.multiple?null:R.jsx(iye,{as:i,ownerState:c,className:f.icon})]})}),lye=sye;var r$;const uye=["children","classes","className","label","notched"],cye=ne("fieldset",{shouldForwardProp:Wr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dye=ne("legend",{shouldForwardProp:Wr})(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function fye(e){const{className:t,label:r,notched:n}=e,a=Pe(e,uye),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return R.jsx(cye,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:R.jsx(dye,{ownerState:i,children:o?R.jsx("span",{children:r}):r$||(r$=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const pye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hye=e=>{const{classes:t}=e,n=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bfe,t);return T({},t,n)},vye=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ky})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yo.focused} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yo.error} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yo.disabled} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),gye=ne(fye,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),mye=ne(Ay,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),z4=d.forwardRef(function(t,r){var n,a,o,i,s;const u=Ke({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:y={},type:S="text"}=u,x=Pe(u,pye),m=hye(u),b=po(),h=Zi({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:b,fullWidth:c,hiddenLabel:h.hiddenLabel,multiline:v,size:h.size,type:S}),C=(n=(a=y.root)!=null?a:l.Root)!=null?n:vye,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:mye;return R.jsx(My,T({slots:{root:C,input:E},renderSuffix:w=>R.jsx(gye,{ownerState:_,className:m.notchedOutline,label:p!=null&&p!==""&&h.required?s||(s=R.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:r,type:S},x,{classes:T({},m,{notchedOutline:null})}))});z4.muiName="Input";const V4=z4;function yye(e){return Ue("MuiPagination",e)}We("MuiPagination",["root","ul","outlined","text"]);const bye=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function xye(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=Pe(e,bye),[g,y]=Yu({controlled:l,default:a,name:r,state:"page"}),S=(O,P)=>{l||y(P),u&&u(O,P)},x=(O,P)=>{const k=P-O+1;return Array.from({length:k},(j,$)=>O+$)},m=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),h=Math.max(Math.min(g-p,n-t-p*2-1),t+2),_=Math.min(Math.max(g+p,t+p*2+2),b.length>0?b[0]-2:n-1),C=[...c?["first"]:[],...s?[]:["previous"],...m,...h>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...f?["last"]:[]],E=O=>{switch(O){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},w=C.map(O=>typeof O=="number"?{onClick:P=>{S(P,O)},type:"page",page:O,selected:O===g,disabled:o,"aria-current":O===g?"true":void 0}:{onClick:P=>{S(P,E(O))},type:O,page:E(O),selected:!1,disabled:o||O.indexOf("ellipsis")===-1&&(O==="next"||O==="last"?g>=n:g<=1)});return T({items:w},v)}function wye(e){return Ue("MuiPaginationItem",e)}const Sye=We("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Yn=Sye,Ex=An(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ox=An(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),n$=An(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),a$=An(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),_ye=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],U4=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.variant==="text"&&t[`text${ge(r.color)}`],r.variant==="outlined"&&t[`outlined${ge(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Cye=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${ge(o)}`,u,i,r!=="standard"&&`color${ge(r)}`,r!=="standard"&&`${u}${ge(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return qe(l,wye,t)},Eye=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Oye=ne(Ma,{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Yn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>T({},t.variant==="text"&&{[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Yn.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Yn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Pye=ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>T({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Rye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:v={},type:g="page",variant:y="text"}=n,S=Pe(n,_ye),x=T({},n,{color:o,disabled:u,selected:c,shape:f,size:p,type:g,variant:y}),m=cl(),b=Cye(x),_=(m?{previous:v.next||s.next||a$,next:v.previous||s.previous||n$,last:v.first||s.first||Ex,first:v.last||s.last||Ox}:{previous:v.previous||s.previous||n$,next:v.next||s.next||a$,first:v.first||s.first||Ex,last:v.last||s.last||Ox})[g];return g==="start-ellipsis"||g==="end-ellipsis"?R.jsx(Eye,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):R.jsxs(Oye,T({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},S,{children:[g==="page"&&l,_?R.jsx(Pye,{as:_,ownerState:x,className:b.icon}):null]}))}),Tye=Rye,$ye=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],kye=e=>{const{classes:t,variant:r}=e;return qe({root:["root",r],ul:["ul"]},yye,t)},jye=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Iye=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Aye(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Mye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Aye,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=w=>R.jsx(Tye,T({},w)),shape:g="circular",showFirstButton:y=!1,showLastButton:S=!1,siblingCount:x=1,size:m="medium",variant:b="text"}=n,h=Pe(n,$ye),{items:_}=xye(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:g,showFirstButton:y,showLastButton:S,siblingCount:x,size:m,variant:b}),E=kye(C);return R.jsx(jye,T({"aria-label":"pagination navigation",className:ue(E.root,o),ownerState:C,ref:r},h,{children:R.jsx(Iye,{className:E.ul,ownerState:C,children:_.map((w,O)=>R.jsx("li",{children:v(T({},w,{color:i,"aria-label":c(w.type,w.page,w.selected),shape:g,size:m,variant:b}))},O))})}))}),Fye=Mye;function Nye(e){return Ue("MuiSelect",e)}const Lye=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zc=Lye;var o$;const Dye=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Bye=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Zc.select}`]:t.select},{[`&.${Zc.select}`]:t[r.variant]},{[`&.${Zc.error}`]:t.error},{[`&.${Zc.multiple}`]:t.multiple}]}})(D4,{[`&.${Zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zye=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),Vye=ne("input",{shouldForwardProp:e=>n4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function i$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Uye(e){return e==null||typeof e=="string"&&!e.trim()}const Wye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return qe(s,Nye,t)},Hye=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:S,labelId:x,MenuProps:m={},multiple:b,name:h,onBlur:_,onChange:C,onClose:E,onFocus:w,onOpen:O,open:P,readOnly:k,renderValue:j,SelectDisplayProps:$={},tabIndex:F,value:z,variant:M="standard"}=t,W=Pe(t,Dye),[B,U]=Yu({controlled:z,default:f,name:"Select"}),[q,ie]=Yu({controlled:P,default:c,name:"Select"}),oe=d.useRef(null),Ee=d.useRef(null),[pe,Te]=d.useState(null),{current:ye}=d.useRef(P!=null),[be,we]=d.useState(),ve=Jt(r,S),De=d.useCallback(je=>{Ee.current=je,je&&Te(je)},[]),Me=pe==null?void 0:pe.parentNode;d.useImperativeHandle(ve,()=>({focus:()=>{Ee.current.focus()},node:oe.current,value:B}),[B]),d.useEffect(()=>{c&&q&&pe&&!ye&&(we(s?null:Me.clientWidth),Ee.current.focus())},[pe,s]),d.useEffect(()=>{i&&Ee.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const je=wr(Ee.current).getElementById(x);if(je){const Je=()=>{getSelection().isCollapsed&&Ee.current.focus()};return je.addEventListener("click",Je),()=>{je.removeEventListener("click",Je)}}},[x]);const Qe=(je,Je)=>{je?O&&O(Je):E&&E(Je),ye||(we(s?null:Me.clientWidth),ie(je))},Ne=je=>{je.button===0&&(je.preventDefault(),Ee.current.focus(),Qe(!0,je))},Ae=je=>{Qe(!1,je)},He=d.Children.toArray(u),ht=je=>{const Je=He.find(_e=>_e.props.value===je.target.value);Je!==void 0&&(U(Je.props.value),C&&C(je,Je))},ut=je=>Je=>{let _e;if(Je.currentTarget.hasAttribute("tabindex")){if(b){_e=Array.isArray(B)?B.slice():[];const Fe=B.indexOf(je.props.value);Fe===-1?_e.push(je.props.value):_e.splice(Fe,1)}else _e=je.props.value;if(je.props.onClick&&je.props.onClick(Je),B!==_e&&(U(_e),C)){const Fe=Je.nativeEvent||Je,Ge=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ge,"target",{writable:!0,value:{value:_e,name:h}}),C(Ge,je)}b||Qe(!1,Je)}},V=je=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),Qe(!0,je))},K=pe!==null&&q,te=je=>{!K&&_&&(Object.defineProperty(je,"target",{writable:!0,value:{value:B,name:h}}),_(je))};delete W["aria-invalid"];let se,de;const fe=[];let Oe=!1;(hg({value:B})||v)&&(j?se=j(B):Oe=!0);const ae=He.map(je=>{if(!d.isValidElement(je))return null;let Je;if(b){if(!Array.isArray(B))throw new Error(No(2));Je=B.some(_e=>i$(_e,je.props.value)),Je&&Oe&&fe.push(je.props.children)}else Je=i$(B,je.props.value),Je&&Oe&&(de=je.props.children);return d.cloneElement(je,{"aria-selected":Je?"true":"false",onClick:ut(je),onKeyUp:_e=>{_e.key===" "&&_e.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(_e)},role:"option",selected:Je,value:void 0,"data-value":je.props.value})});Oe&&(b?fe.length===0?se=null:se=fe.reduce((je,Je,_e)=>(je.push(Je),_e{const{classes:t}=e;return t},MC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wr(e)&&e!=="variant",slot:"Root"},Xye=ne(I4,MC)(""),Yye=ne(V4,MC)(""),Jye=ne($4,MC)(""),W4=d.forwardRef(function(t,r){const n=Ke({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Wfe,id:f,input:p,inputProps:v,label:g,labelId:y,MenuProps:S,multiple:x=!1,native:m=!1,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=n,O=Pe(n,Kye),P=m?lye:qye,k=po(),j=Zi({props:n,muiFormControl:k,states:["variant","error"]}),$=j.variant||w,F=T({},n,{variant:$,classes:i}),z=Qye(F),M=Pe(z,Gye),W=p||{standard:R.jsx(Xye,{ownerState:F}),outlined:R.jsx(Yye,{label:g,ownerState:F}),filled:R.jsx(Jye,{ownerState:F})}[$],B=Jt(r,W.ref);return R.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:P,inputProps:T({children:o,error:j.error,IconComponent:c,variant:$,type:void 0,multiple:x},m?{id:f}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:T({id:f},E)},v,{classes:v?Rr(M,v.classes):M},p?p.props.inputProps:{})},(x&&m||l)&&$==="outlined"?{notched:!0}:{},{ref:B,className:ue(W.props.className,s,z.root)},!p&&{variant:$},O))})});W4.muiName="Select";const H4=W4;function Zye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Ss();d.useEffect(()=>{if(!a)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=fn((x,m)=>{n==null||n(x,m)}),u=fn(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});d.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,f=d.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>m=>{const b=x.onBlur;b==null||b(m),f()},v=x=>m=>{const b=x.onFocus;b==null||b(m),c()},g=x=>m=>{const b=x.onMouseEnter;b==null||b(m),c()},y=x=>m=>{const b=x.onMouseLeave;b==null||b(m),f()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,a,f,c]),{getRootProps:(x={})=>{const m=T({},ug(e),ug(x));return T({role:"presentation"},x,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:g(m),onMouseLeave:y(m)})},onClickAway:l}}function ebe(e){return Ue("MuiSnackbarContent",e)}We("MuiSnackbarContent",["root","message","action"]);const tbe=["action","className","message","role"],rbe=e=>{const{classes:t}=e;return qe({root:["root"],action:["action"],message:["message"]},ebe,t)},nbe=ne(Yi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Tle(e.palette.background.default,t);return T({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),abe=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),obe=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),ibe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Pe(n,tbe),l=n,c=rbe(l);return R.jsxs(nbe,T({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[R.jsx(abe,{className:c.message,ownerState:l,children:i}),a?R.jsx(obe,{className:c.action,ownerState:l,children:a}):null]}))}),sbe=ibe;function lbe(e){return Ue("MuiSnackbar",e)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ube=["onEnter","onExited"],cbe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],dbe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ge(r.vertical)}${ge(r.horizontal)}`]};return qe(n,lbe,t)},s$=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ge(r.anchorOrigin.vertical)}${ge(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return T({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:T({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),fbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbar"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:g=!1,message:y,open:S,TransitionComponent:x=yg,transitionDuration:m=o,TransitionProps:{onEnter:b,onExited:h}={}}=n,_=Pe(n.TransitionProps,ube),C=Pe(n,cbe),E=T({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),w=dbe(E),{getRootProps:O,onClickAway:P}=Zye(T({},E)),[k,j]=d.useState(!0),$=fa({elementType:s$,getSlotProps:O,externalForwardedProps:C,ownerState:E,additionalProps:{ref:r},className:[w.root,f]}),F=M=>{j(!0),h&&h(M)},z=(M,W)=>{j(!1),b&&b(M,W)};return!S&&k?null:R.jsx(mhe,T({onClickAway:P},p,{children:R.jsx(s$,T({},$,{children:R.jsx(x,T({appear:!0,in:S,timeout:m,direction:s==="top"?"down":"up",onEnter:z,onExited:F},_,{children:c||R.jsx(sbe,T({message:y,action:i},v))}))}))}))}),pbe=fbe;function hbe(e){return Ue("MuiTooltip",e)}const vbe=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_i=vbe,gbe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function mbe(e){return Math.round(e*1e5)/1e5}const ybe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${ge(o.split("-")[0])}`],arrow:["arrow"]};return qe(i,hbe,t)},bbe=ne(m4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_i.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_i.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_i.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${_i.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xbe=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ge(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${mbe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_i.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_i.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_i.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_i.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wbe=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ch=!1;const l$=new hp;let ed={x:0,y:0};function dh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Sbe=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_;const C=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:w,components:O={},componentsProps:P={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:$=!1,disableInteractive:F=!1,disableTouchListener:z=!1,enterDelay:M=100,enterNextDelay:W=0,enterTouchDelay:B=700,followCursor:U=!1,id:q,leaveDelay:ie=0,leaveTouchDelay:oe=1500,onClose:Ee,onOpen:pe,open:Te,placement:ye="bottom",PopperComponent:be,PopperProps:we={},slotProps:ve={},slots:De={},title:Me,TransitionComponent:Qe=yg,TransitionProps:Ne}=C,Ae=Pe(C,gbe),He=d.isValidElement(w)?w:R.jsx("span",{children:w}),ht=fo(),ut=cl(),[V,K]=d.useState(),[te,se]=d.useState(null),de=d.useRef(!1),fe=F||U,Oe=Ss(),ae=Ss(),Z=Ss(),G=Ss(),[le,he]=Yu({controlled:Te,default:!1,name:"Tooltip",state:"open"});let Re=le;const Be=el(q),Ye=d.useRef(),je=fn(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),G.clear()});d.useEffect(()=>je,[je]);const Je=Y=>{l$.clear(),ch=!0,he(!0),pe&&!Re&&pe(Y)},_e=fn(Y=>{l$.start(800+ie,()=>{ch=!1}),he(!1),Ee&&Re&&Ee(Y),Oe.start(ht.transitions.duration.shortest,()=>{de.current=!1})}),Fe=Y=>{de.current&&Y.type!=="touchstart"||(V&&V.removeAttribute("title"),ae.clear(),Z.clear(),M||ch&&W?ae.start(ch?W:M,()=>{Je(Y)}):Je(Y))},Ge=Y=>{ae.clear(),Z.start(ie,()=>{_e(Y)})},{isFocusVisibleRef:nt,onBlur:mt,onFocus:Ot,ref:kt}=Ey(),[,Pt]=d.useState(!1),at=Y=>{mt(Y),nt.current===!1&&(Pt(!1),Ge(Y))},It=Y=>{V||K(Y.currentTarget),Ot(Y),nt.current===!0&&(Pt(!0),Fe(Y))},nr=Y=>{de.current=!0;const Q=He.props;Q.onTouchStart&&Q.onTouchStart(Y)},mn=Y=>{nr(Y),Z.clear(),Oe.clear(),je(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(B,()=>{document.body.style.WebkitUserSelect=Ye.current,Fe(Y)})},qr=Y=>{He.props.onTouchEnd&&He.props.onTouchEnd(Y),je(),Z.start(oe,()=>{_e(Y)})};d.useEffect(()=>{if(!Re)return;function Y(Q){(Q.key==="Escape"||Q.key==="Esc")&&_e(Q)}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[_e,Re]);const Nr=Jt(He.ref,kt,K,r);!Me&&Me!==0&&(Re=!1);const Tr=d.useRef(),Mn=Y=>{const Q=He.props;Q.onMouseMove&&Q.onMouseMove(Y),ed={x:Y.clientX,y:Y.clientY},Tr.current&&Tr.current.update()},Kr={},Ko=typeof Me=="string";k?(Kr.title=!Re&&Ko&&!$?Me:null,Kr["aria-describedby"]=Re?Be:null):(Kr["aria-label"]=Ko?Me:null,Kr["aria-labelledby"]=Re&&!Ko?Be:null);const $r=T({},Kr,Ae,He.props,{className:ue(Ae.className,He.props.className),onTouchStart:nr,ref:Nr},U?{onMouseMove:Mn}:{}),ho={};z||($r.onTouchStart=mn,$r.onTouchEnd=qr),$||($r.onMouseOver=dh(Fe,$r.onMouseOver),$r.onMouseLeave=dh(Ge,$r.onMouseLeave),fe||(ho.onMouseOver=Fe,ho.onMouseLeave=Ge)),j||($r.onFocus=dh(It,$r.onFocus),$r.onBlur=dh(at,$r.onBlur),fe||(ho.onFocus=It,ho.onBlur=at));const X=d.useMemo(()=>{var Y;let Q=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Y=we.popperOptions)!=null&&Y.modifiers&&(Q=Q.concat(we.popperOptions.modifiers)),T({},we.popperOptions,{modifiers:Q})},[te,we]),ee=T({},C,{isRtl:ut,arrow:E,disableInteractive:fe,placement:ye,PopperComponentProp:be,touch:de.current}),ce=ybe(ee),Ce=(n=(a=De.popper)!=null?a:O.Popper)!=null?n:bbe,N=(o=(i=(s=De.transition)!=null?s:O.Transition)!=null?i:Qe)!=null?o:yg,D=(u=(l=De.tooltip)!=null?l:O.Tooltip)!=null?u:xbe,I=(c=(f=De.arrow)!=null?f:O.Arrow)!=null?c:wbe,A=Jl(Ce,T({},we,(p=ve.popper)!=null?p:P.popper,{className:ue(ce.popper,we==null?void 0:we.className,(v=(g=ve.popper)!=null?g:P.popper)==null?void 0:v.className)}),ee),L=Jl(N,T({},Ne,(y=ve.transition)!=null?y:P.transition),ee),H=Jl(D,T({},(S=ve.tooltip)!=null?S:P.tooltip,{className:ue(ce.tooltip,(x=(m=ve.tooltip)!=null?m:P.tooltip)==null?void 0:x.className)}),ee),re=Jl(I,T({},(b=ve.arrow)!=null?b:P.arrow,{className:ue(ce.arrow,(h=(_=ve.arrow)!=null?_:P.arrow)==null?void 0:h.className)}),ee);return R.jsxs(d.Fragment,{children:[d.cloneElement(He,$r),R.jsx(Ce,T({as:be??m4,placement:ye,anchorEl:U?{getBoundingClientRect:()=>({top:ed.y,left:ed.x,right:ed.x,bottom:ed.y,width:0,height:0})}:V,popperRef:Tr,open:V?Re:!1,id:Be,transition:!0},ho,A,{popperOptions:X,children:({TransitionProps:Y})=>R.jsx(N,T({timeout:ht.transitions.duration.shorter},Y,L,{children:R.jsxs(D,T({},H,{children:[Me,E?R.jsx(I,T({},re,{ref:se})):null]}))}))}))]})}),kn=Sbe;function _be(e){return Ue("MuiSwitch",e)}const Cbe=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),on=Cbe,Ebe=["className","color","edge","size","sx"],Obe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,s={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qe(s,_be,t);return T({},t,u)},Pbe=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),Rbe=ne(S4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fC(e.palette[t].main,.62):dC(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Tbe=ne("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),$be=ne("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),kbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:s="medium",sx:u}=n,l=Pe(n,Ebe),c=T({},n,{color:o,edge:i,size:s}),f=Obe(c),p=R.jsx($be,{className:f.thumb,ownerState:c});return R.jsxs(Pbe,{className:ue(f.root,a),sx:u,ownerState:c,children:[R.jsx(Rbe,T({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:c},l,{classes:T({},f,{root:f.switchBase})})),R.jsx(Tbe,{className:f.track,ownerState:c})]})}),jbe=kbe;function Ibe(e){return Ue("MuiTab",e)}const Abe=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Zo=Abe,Mbe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Fbe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:s,disabled:u}=e,l={root:["root",o&&i&&"labelIcon",`textColor${ge(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return qe(l,Ibe,t)},Nbe=ne(Ma,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ge(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Zo.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Zo.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Zo.selected}`]:{opacity:1},[`&.${Zo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Lbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:y,selectionFollowsFocus:S,textColor:x="inherit",value:m,wrapped:b=!1}=n,h=Pe(n,Mbe),_=T({},n,{disabled:o,disableFocusRipple:i,selected:y,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=Fbe(_),E=u&&f&&d.isValidElement(u)?d.cloneElement(u,{className:ue(C.iconWrapper,u.props.className)}):u,w=P=>{!y&&p&&p(P,m),v&&v(P)},O=P=>{S&&!y&&p&&p(P,m),g&&g(P)};return R.jsxs(Nbe,T({focusRipple:!i,className:ue(C.root,a),ref:r,role:"tab","aria-selected":y,disabled:o,onClick:w,onFocus:O,ownerState:_,tabIndex:y?0:-1},h,{children:[l==="top"||l==="start"?R.jsxs(d.Fragment,{children:[E,f]}):R.jsxs(d.Fragment,{children:[f,E]}),c]}))}),Dbe=Lbe,Bbe=d.createContext(),q4=Bbe;function zbe(e){return Ue("MuiTable",e)}We("MuiTable",["root","stickyHeader"]);const Vbe=["className","component","padding","size","stickyHeader"],Ube=e=>{const{classes:t,stickyHeader:r}=e;return qe({root:["root",r&&"stickyHeader"]},zbe,t)},Wbe=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),u$="table",Hbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTable"}),{className:a,component:o=u$,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Pe(n,Vbe),c=T({},n,{component:o,padding:i,size:s,stickyHeader:u}),f=Ube(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return R.jsx(q4.Provider,{value:p,children:R.jsx(Wbe,T({as:o,role:o===u$?null:"table",ref:r,className:ue(f.root,a),ownerState:c},l))})}),K4=Hbe,qbe=d.createContext(),Dy=qbe;function Kbe(e){return Ue("MuiTableBody",e)}We("MuiTableBody",["root"]);const Gbe=["className","component"],Qbe=e=>{const{classes:t}=e;return qe({root:["root"]},Kbe,t)},Xbe=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ybe={variant:"body"},c$="tbody",Jbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableBody"}),{className:a,component:o=c$}=n,i=Pe(n,Gbe),s=T({},n,{component:o}),u=Qbe(s);return R.jsx(Dy.Provider,{value:Ybe,children:R.jsx(Xbe,T({className:ue(u.root,a),as:o,ref:r,role:o===c$?null:"rowgroup",ownerState:s},i))})}),G4=Jbe;function Zbe(e){return Ue("MuiTableCell",e)}const e0e=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),t0e=e0e,r0e=["align","className","component","padding","scope","size","sortDirection","variant"],n0e=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,a!=="normal"&&`padding${ge(a)}`,`size${ge(o)}`]};return qe(s,Zbe,t)},a0e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.padding!=="normal"&&t[`padding${ge(r.padding)}`],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?fC(gt(e.palette.divider,1),.88):dC(gt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${t0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),o0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=Pe(n,r0e),v=d.useContext(q4),g=d.useContext(Dy),y=g&&g.variant==="head";let S;i?S=i:S=y?"th":"td";let x=u;S==="td"?x=void 0:!x&&y&&(x="col");const m=f||g&&g.variant,b=T({},n,{align:a,component:S,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),h=n0e(b);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),R.jsx(a0e,T({as:S,ref:r,className:ue(h.root,o),"aria-sort":_,scope:x,ownerState:b},p))}),en=o0e;function i0e(e){return Ue("MuiTableHead",e)}We("MuiTableHead",["root"]);const s0e=["className","component"],l0e=e=>{const{classes:t}=e;return qe({root:["root"]},i0e,t)},u0e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),c0e={variant:"head"},d$="thead",d0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableHead"}),{className:a,component:o=d$}=n,i=Pe(n,s0e),s=T({},n,{component:o}),u=l0e(s);return R.jsx(Dy.Provider,{value:c0e,children:R.jsx(u0e,T({as:o,className:ue(u.root,a),ref:r,role:o===d$?null:"rowgroup",ownerState:s},i))})}),Q4=d0e;function f0e(e){return Ue("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const p0e=["className","component","disableGutters","variant"],h0e=e=>{const{classes:t,disableGutters:r,variant:n}=e;return qe({root:["root",!r&&"gutters",n]},f0e,t)},v0e=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),g0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Pe(n,p0e),l=T({},n,{component:o,disableGutters:i,variant:s}),c=h0e(l);return R.jsx(v0e,T({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),jc=g0e,X4=An(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Y4=An(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),m0e=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],y0e=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:S,page:x,rowsPerPage:m,showFirstButton:b,showLastButton:h,slots:_={},slotProps:C={}}=t,E=Pe(t,m0e),w=cl(),O=ve=>{S(ve,0)},P=ve=>{S(ve,x-1)},k=ve=>{S(ve,x+1)},j=ve=>{S(ve,Math.max(0,Math.ceil(p/m)-1))},$=(n=_.firstButton)!=null?n:Pr,F=(a=_.lastButton)!=null?a:Pr,z=(o=_.nextButton)!=null?o:Pr,M=(i=_.previousButton)!=null?i:Pr,W=(s=_.firstButtonIcon)!=null?s:Ex,B=(u=_.lastButtonIcon)!=null?u:Ox,U=(l=_.nextButtonIcon)!=null?l:Y4,q=(c=_.previousButtonIcon)!=null?c:X4,ie=w?F:$,oe=w?z:M,Ee=w?M:z,pe=w?$:F,Te=w?C.lastButton:C.firstButton,ye=w?C.nextButton:C.previousButton,be=w?C.previousButton:C.nextButton,we=w?C.firstButton:C.lastButton;return R.jsxs("div",T({ref:r},E,{children:[b&&R.jsx(ie,T({onClick:O,disabled:v||x===0,"aria-label":g("first",x),title:g("first",x)},Te,{children:w?R.jsx(B,T({},C.lastButtonIcon)):R.jsx(W,T({},C.firstButtonIcon))})),R.jsx(oe,T({onClick:P,disabled:v||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},ye??f,{children:w?R.jsx(U,T({},C.nextButtonIcon)):R.jsx(q,T({},C.previousButtonIcon))})),R.jsx(Ee,T({onClick:k,disabled:v||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},be??y,{children:w?R.jsx(q,T({},C.previousButtonIcon)):R.jsx(U,T({},C.nextButtonIcon))})),h&&R.jsx(pe,T({onClick:j,disabled:v||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},we,{children:w?R.jsx(W,T({},C.firstButtonIcon)):R.jsx(B,T({},C.lastButtonIcon))}))]}))}),b0e=y0e;function x0e(e){return Ue("MuiTablePagination",e)}const w0e=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Dd=w0e;var f$;const S0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_0e=ne(en,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),C0e=ne(jc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Dd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Dd.actions}`]:{flexShrink:0,marginLeft:20}})),E0e=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),O0e=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),P0e=ne(H4,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Dd.selectIcon}`]:t.selectIcon,[`& .${Dd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Dd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),R0e=ne(Ta,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),T0e=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function $0e({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function k0e(e){return`Go to ${e} page`}const j0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},x0e,t)},I0e=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=b0e,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:f=!1,getItemAriaLabel:p=k0e,labelDisplayedRows:v=$0e,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:S,onRowsPerPageChange:x,page:m,rowsPerPage:b,rowsPerPageOptions:h=[10,25,50,100],SelectProps:_={},showFirstButton:C=!1,showLastButton:E=!1,slotProps:w={},slots:O={}}=a,P=Pe(a,S0e),k=a,j=j0e(k),$=(n=w==null?void 0:w.select)!=null?n:_,F=$.native?"option":R0e;let z;(l===en||l==="td")&&(z=u||1e3);const M=el($.id),W=el($.labelId),B=()=>c===-1?(m+1)*b:b===-1?c:Math.min(c,(m+1)*b);return R.jsx(_0e,T({colSpan:z,ref:r,as:l,ownerState:k,className:ue(j.root,s)},P,{children:R.jsxs(C0e,{className:j.toolbar,children:[R.jsx(E0e,{className:j.spacer}),h.length>1&&R.jsx(O0e,{className:j.selectLabel,id:W,children:g}),h.length>1&&R.jsx(P0e,T({variant:"standard"},!$.variant&&{input:f$||(f$=R.jsx(My,{}))},{value:b,onChange:x,id:M,labelId:W},$,{classes:T({},$.classes,{root:ue(j.input,j.selectRoot,($.classes||{}).root),select:ue(j.select,($.classes||{}).select),icon:ue(j.selectIcon,($.classes||{}).icon)}),disabled:f,children:h.map(U=>d.createElement(F,T({},!Rf(F)&&{ownerState:k},{className:j.menuItem,key:U.label?U.label:U,value:U.value?U.value:U}),U.label?U.label:U))})),R.jsx(T0e,{className:j.displayedRows,children:v({from:c===0?0:m*b+1,to:B(),count:c===-1?-1:c,page:m})}),R.jsx(o,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:S,page:m,rowsPerPage:b,showFirstButton:C,showLastButton:E,slotProps:w.actions,slots:O.actions,getItemAriaLabel:p,disabled:f})]})}))}),p$=I0e;function A0e(e){return Ue("MuiTableRow",e)}const M0e=We("MuiTableRow",["root","selected","hover","head","footer"]),h$=M0e,F0e=["className","component","hover","selected"],N0e=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return qe({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},A0e,t)},L0e=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h$.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),v$="tr",D0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableRow"}),{className:a,component:o=v$,hover:i=!1,selected:s=!1}=n,u=Pe(n,F0e),l=d.useContext(Dy),c=T({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=N0e(c);return R.jsx(L0e,T({as:o,ref:r,className:ue(f.root,a),role:o===v$?null:"row",ownerState:c},u))}),If=D0e,B0e=An(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function z0e(e){return Ue("MuiTableSortLabel",e)}const V0e=We("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),c0=V0e,U0e=["active","children","className","direction","hideSortIcon","IconComponent"],W0e=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${ge(r)}`]};return qe(a,z0e,t)},H0e=ne(Ma,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${c0.icon}`]:{opacity:.5}},[`&.${c0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${c0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),q0e=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ge(r.direction)}`]]}})(({theme:e,ownerState:t})=>T({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),K0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=B0e}=n,c=Pe(n,U0e),f=T({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=W0e(f);return R.jsxs(H0e,T({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[o,u&&!a?null:R.jsx(q0e,{as:l,className:ue(p.icon),ownerState:f})]}))}),G0e=K0e;function Q0e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function X0e(e,t,r,n={},a=()=>{}){const{ease:o=Q0e,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const c=()=>{l=!0},f=p=>{if(l){a(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=o(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(f)};return u===r?(a(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Y0e=["onChange"],J0e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Z0e(e){const{onChange:t}=e,r=Pe(e,Y0e),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qn(()=>{const i=Rc(()=>{const u=n.current;o(),u!==n.current&&t(n.current)}),s=da(a.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),R.jsx("div",T({style:J0e,ref:a},r))}function e1e(e){return Ue("MuiTabScrollButton",e)}const t1e=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),r1e=t1e,n1e=["className","slots","slotProps","direction","orientation","disabled"],a1e=e=>{const{classes:t,orientation:r,disabled:n}=e;return qe({root:["root",r,n&&"disabled"]},e1e,t)},o1e=ne(Ma,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${r1e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),i1e=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=o,c=Pe(o,n1e),f=cl(),p=T({isRtl:f},o),v=a1e(p),g=(n=s.StartScrollButtonIcon)!=null?n:X4,y=(a=s.EndScrollButtonIcon)!=null?a:Y4,S=fa({elementType:g,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),x=fa({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return R.jsx(o1e,T({component:"div",className:ue(v.root,i),ref:r,role:null,ownerState:p,tabIndex:null},c,{children:l==="left"?R.jsx(g,T({},S)):R.jsx(y,T({},x))}))}),s1e=i1e;function l1e(e){return Ue("MuiTabs",e)}const u1e=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),d0=u1e,c1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],g$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,m$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fh=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},d1e=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},l1e,u)},f1e=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${d0.scrollButtons}`]:t.scrollButtons},{[`& .${d0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${d0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),p1e=ne("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),h1e=ne("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),v1e=ne("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),g1e=ne(Z0e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),y$={},m1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTabs"}),a=fo(),o=cl(),{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:x=s1e,scrollButtons:m="auto",selectionFollowsFocus:b,slots:h={},slotProps:_={},TabIndicatorProps:C={},TabScrollButtonProps:E={},textColor:w="primary",value:O,variant:P="standard",visibleScrollbar:k=!1}=n,j=Pe(n,c1e),$=P==="scrollable",F=S==="vertical",z=F?"scrollTop":"scrollLeft",M=F?"top":"left",W=F?"bottom":"right",B=F?"clientHeight":"clientWidth",U=F?"height":"width",q=T({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:S,vertical:F,scrollButtons:m,textColor:w,variant:P,visibleScrollbar:k,fixed:!$,hideScrollbar:$&&!k,scrollableX:$&&!F,scrollableY:$&&F,centered:l&&!$,scrollButtonsHideMobile:!v}),ie=d1e(q),oe=fa({elementType:h.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:q}),Ee=fa({elementType:h.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:q}),[pe,Te]=d.useState(!1),[ye,be]=d.useState(y$),[we,ve]=d.useState(!1),[De,Me]=d.useState(!1),[Qe,Ne]=d.useState(!1),[Ae,He]=d.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ut=d.useRef(null),V=d.useRef(null),K=()=>{const _e=ut.current;let Fe;if(_e){const nt=_e.getBoundingClientRect();Fe={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollLeftNormalized:ale(_e,o?"rtl":"ltr"),scrollWidth:_e.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let Ge;if(_e&&O!==!1){const nt=V.current.children;if(nt.length>0){const mt=nt[ht.get(O)];Ge=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ge}},te=fn(()=>{const{tabsMeta:_e,tabMeta:Fe}=K();let Ge=0,nt;if(F)nt="top",Fe&&_e&&(Ge=Fe.top-_e.top+_e.scrollTop);else if(nt=o?"right":"left",Fe&&_e){const Ot=o?_e.scrollLeftNormalized+_e.clientWidth-_e.scrollWidth:_e.scrollLeft;Ge=(o?-1:1)*(Fe[nt]-_e[nt]+Ot)}const mt={[nt]:Ge,[U]:Fe?Fe[U]:0};if(isNaN(ye[nt])||isNaN(ye[U]))be(mt);else{const Ot=Math.abs(ye[nt]-mt[nt]),kt=Math.abs(ye[U]-mt[U]);(Ot>=1||kt>=1)&&be(mt)}}),se=(_e,{animation:Fe=!0}={})=>{Fe?X0e(z,ut.current,_e,{duration:a.transitions.duration.standard}):ut.current[z]=_e},de=_e=>{let Fe=ut.current[z];F?Fe+=_e:(Fe+=_e*(o?-1:1),Fe*=o&&zF()==="reverse"?-1:1),se(Fe)},fe=()=>{const _e=ut.current[B];let Fe=0;const Ge=Array.from(V.current.children);for(let nt=0;nt_e){nt===0&&(Fe=_e);break}Fe+=mt[B]}return Fe},Oe=()=>{de(-1*fe())},ae=()=>{de(fe())},Z=d.useCallback(_e=>{He({overflow:null,scrollbarWidth:_e})},[]),G=()=>{const _e={};_e.scrollbarSizeListener=$?R.jsx(g1e,{onChange:Z,className:ue(ie.scrollableX,ie.hideScrollbar)}):null;const Ge=$&&(m==="auto"&&(we||De)||m===!0);return _e.scrollButtonStart=Ge?R.jsx(x,T({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:S,direction:o?"right":"left",onClick:Oe,disabled:!we},E,{className:ue(ie.scrollButtons,E.className)})):null,_e.scrollButtonEnd=Ge?R.jsx(x,T({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:S,direction:o?"left":"right",onClick:ae,disabled:!De},E,{className:ue(ie.scrollButtons,E.className)})):null,_e},le=fn(_e=>{const{tabsMeta:Fe,tabMeta:Ge}=K();if(!(!Ge||!Fe)){if(Ge[M]Fe[W]){const nt=Fe[z]+(Ge[W]-Fe[W]);se(nt,{animation:_e})}}}),he=fn(()=>{$&&m!==!1&&Ne(!Qe)});d.useEffect(()=>{const _e=Rc(()=>{ut.current&&te()});let Fe;const Ge=Ot=>{Ot.forEach(kt=>{kt.removedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.unobserve(Pt)}),kt.addedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.observe(Pt)})}),_e(),he()},nt=da(ut.current);nt.addEventListener("resize",_e);let mt;return typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(_e),Array.from(V.current.children).forEach(Ot=>{Fe.observe(Ot)})),typeof MutationObserver<"u"&&(mt=new MutationObserver(Ge),mt.observe(V.current,{childList:!0})),()=>{var Ot,kt;_e.clear(),nt.removeEventListener("resize",_e),(Ot=mt)==null||Ot.disconnect(),(kt=Fe)==null||kt.disconnect()}},[te,he]),d.useEffect(()=>{const _e=Array.from(V.current.children),Fe=_e.length;if(typeof IntersectionObserver<"u"&&Fe>0&&$&&m!==!1){const Ge=_e[0],nt=_e[Fe-1],mt={root:ut.current,threshold:.99},Ot=It=>{ve(!It[0].isIntersecting)},kt=new IntersectionObserver(Ot,mt);kt.observe(Ge);const Pt=It=>{Me(!It[0].isIntersecting)},at=new IntersectionObserver(Pt,mt);return at.observe(nt),()=>{kt.disconnect(),at.disconnect()}}},[$,m,Qe,c==null?void 0:c.length]),d.useEffect(()=>{Te(!0)},[]),d.useEffect(()=>{te()}),d.useEffect(()=>{le(y$!==ye)},[le,ye]),d.useImperativeHandle(u,()=>({updateIndicator:te,updateScrollButtons:he}),[te,he]);const Re=R.jsx(v1e,T({},C,{className:ue(ie.indicator,C.className),ownerState:q,style:T({},ye,C.style)}));let Be=0;const Ye=d.Children.map(c,_e=>{if(!d.isValidElement(_e))return null;const Fe=_e.props.value===void 0?Be:_e.props.value;ht.set(Fe,Be);const Ge=Fe===O;return Be+=1,d.cloneElement(_e,T({fullWidth:P==="fullWidth",indicator:Ge&&!pe&&Re,selected:Ge,selectionFollowsFocus:b,onChange:y,textColor:w,value:Fe},Be===1&&O===!1&&!_e.props.tabIndex?{tabIndex:0}:{}))}),je=_e=>{const Fe=V.current,Ge=wr(Fe).activeElement;if(Ge.getAttribute("role")!=="tab")return;let mt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(mt="ArrowRight",Ot="ArrowLeft"),_e.key){case mt:_e.preventDefault(),fh(Fe,Ge,m$);break;case Ot:_e.preventDefault(),fh(Fe,Ge,g$);break;case"Home":_e.preventDefault(),fh(Fe,null,g$);break;case"End":_e.preventDefault(),fh(Fe,null,m$);break}},Je=G();return R.jsxs(f1e,T({className:ue(ie.root,f),ownerState:q,ref:r,as:p},j,{children:[Je.scrollButtonStart,Je.scrollbarSizeListener,R.jsxs(p1e,{className:ie.scroller,ownerState:q,style:{overflow:Ae.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:k?void 0:-Ae.scrollbarWidth},ref:ut,children:[R.jsx(h1e,{"aria-label":i,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,className:ie.flexContainer,ownerState:q,onKeyDown:je,ref:V,role:"tablist",children:Ye}),pe&&Re]}),Je.scrollButtonEnd]}))}),y1e=m1e;function b1e(e){return Ue("MuiTextField",e)}We("MuiTextField",["root"]);const x1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],w1e={standard:I4,filled:$4,outlined:V4},S1e=e=>{const{classes:t}=e;return qe({root:["root"]},b1e,t)},_1e=ne(age,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:S,inputProps:x,InputProps:m,inputRef:b,label:h,maxRows:_,minRows:C,multiline:E=!1,name:w,onBlur:O,onChange:P,onFocus:k,placeholder:j,required:$=!1,rows:F,select:z=!1,SelectProps:M,type:W,value:B,variant:U="outlined"}=n,q=Pe(n,x1e),ie=T({},n,{autoFocus:o,color:u,disabled:c,error:f,fullWidth:v,multiline:E,required:$,select:z,variant:U}),oe=S1e(ie),Ee={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(Ee.notched=S.shrink),Ee.label=h),z&&((!M||!M.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const pe=el(y),Te=g&&pe?`${pe}-helper-text`:void 0,ye=h&&pe?`${pe}-label`:void 0,be=w1e[U],we=R.jsx(be,T({"aria-describedby":Te,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:v,multiline:E,name:w,rows:F,maxRows:_,minRows:C,type:W,value:B,id:pe,inputRef:b,onBlur:O,onChange:P,onFocus:k,placeholder:j,inputProps:x},Ee,m));return R.jsxs(_1e,T({className:ue(oe.root,s),disabled:c,error:f,fullWidth:v,ref:r,required:$,color:u,variant:U,ownerState:ie},q,{children:[h!=null&&h!==""&&R.jsx(Jge,T({htmlFor:pe,id:ye},S,{children:h})),z?R.jsx(H4,T({"aria-describedby":Te,id:pe,labelId:ye,value:B,input:we},M,{children:i})):we,g&&R.jsx(IC,T({id:Te},p,{children:g}))]}))}),yp=C1e,E1e=["getTrigger","target"];function O1e(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const P1e=typeof window<"u"?window:null;function J4(e={}){const{getTrigger:t=O1e,target:r=P1e}=e,n=Pe(e,E1e),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const s=()=>{i(t(a,T({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var FC={},f0={};const R1e=Do(Uue);var b$;function ct(){return b$||(b$=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=R1e}(f0)),f0}var T1e=it;Object.defineProperty(FC,"__esModule",{value:!0});var By=FC.default=void 0,$1e=T1e(ct()),k1e=R;By=FC.default=(0,$1e.default)((0,k1e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Bd=globalThis&&globalThis.__assign||function(){return Bd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(HSe,null):null,t&&d.createElement(Nxe,null),d.createElement(uxe,null))},Bxe=d.createElement(Dxe,null),zxe=d.createElement(UC,null),ss="RaAppBar",Es={appBar:"".concat(ss,"-appBar"),toolbar:"".concat(ss,"-toolbar"),menuButton:"".concat(ss,"-menuButton"),menuButtonIconClosed:"".concat(ss,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ss,"-menuButtonIconOpen"),title:"".concat(ss,"-title")},Vxe=ne(Uce,{name:ss,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Es.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Es.menuButton)]={marginRight:"0.2em"},t["& .".concat(Es.title)]={},t}),qC={},Uxe=it;Object.defineProperty(qC,"__esModule",{value:!0});var Uy=qC.default=void 0,Wxe=Uxe(ct()),Hxe=R;Uy=qC.default=(0,Wxe.default)((0,Hxe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var KC={},qxe=it;Object.defineProperty(KC,"__esModule",{value:!0});var v5=KC.default=void 0,Kxe=qxe(ct()),Gxe=R;v5=KC.default=(0,Kxe.default)((0,Gxe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Vd=globalThis&&globalThis.__assign||function(){return Vd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?d.createElement(x5,Og({title:r,defaultTitle:t},a)):d.createElement(Rwe,Og({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,tp.createPortal(u,i))},Lx=globalThis&&globalThis.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=c_e(S===!1||S===void 0?void 0:!S,l||!O||E||w);q_(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var k=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){var z;return C$(this,function(M){switch(M.label){case 0:return h!=null&&h.save?[4,h.save(F,Hd(Hd({},u),{transform:p}))]:[3,2];case 1:z=M.sent(),M.label=2;case 2:return z!=null&&m3(z,b.setError),[2]}})})},[b.setError,h,u,p]),j=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){return C$(this,function(z){switch(z.label){case 0:return s&&s(F),F.defaultPrevented?[2]:f!=="button"?[3,2]:(F.stopPropagation(),[4,b.handleSubmit(k)(F)]);case 1:z.sent(),z.label=2;case 2:return[2]}})})},[s,f,b,k]),$=i&&m(i,{_:i});return d.createElement(u_e,Hd({variant:g,type:f,color:r,"aria-label":$,disabled:P,onClick:j},x),w?d.createElement(kc,{sx:i_e,size:14,thickness:3,color:"inherit"}):a,$)},i_e={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},s_e=d.createElement(U5,null),l_e="RaSaveButton",u_e=ne(hn,{name:l_e,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),c_e=function(e,t){return typeof e>"u"?t:e},d_e=function(){return ke.createElement(p_e,{onClick:h_e,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},f_e="RaSkipNavigationButton",p_e=ne(Hr,{name:f_e,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),h_e=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jx=globalThis&&globalThis.__assign||function(){return Jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var h=Q5(),_=et(),C=_r(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var E=Nt(e),w=Wo(e),O=w.hasShow||w.hasEdit;if(!E)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var P=(!h||!h.isRowExpandable||h.isRowExpandable(C))&&i,k=Jte(E,f,h&&h.expandSingle),j=k[0],$=k[1],F=d.useState(function(){return E$(P,a,u)}),z=F[0],M=F[1];d.useEffect(function(){var oe=E$(P,a,u);oe!==z&&M(oe)},[P,z,a,u]);var W=lo(),B=d.useCallback(function(oe){$(),oe.stopPropagation()},[$]),U=d.useCallback(function(oe){!m||!p||(p(f,oe),oe.stopPropagation())},[f,p,m]),q=Ene(),ie=d.useCallback(function(oe){return B_e(void 0,void 0,void 0,function(){var Ee;return z_e(this,function(pe){switch(pe.label){case 0:return oe.persist(),[4,q({record:C,resource:E,link:typeof v=="function"?function(Te,ye){return v(Te.id,ye,Te)}:v})];case 1:return Ee=pe.sent(),v==="expand"?(B(oe),[2]):v==="toggleSelection"?(U(oe),[2]):Ee===!1||Ee==null?[2]:(W(Ee,{state:{_scrollToTop:!0}}),[2])}})})},[C,E,v,W,B,U,q]);return ke.createElement(ke.Fragment,null,ke.createElement(If,ow({ref:t,className:ue(o,(r={},r[rt.expandable]=P,r[rt.selectable]=m,r[rt.clickableRow]=v??O,r)),key:f,style:S,hover:c,onClick:ie},b),i&&ke.createElement(en,{padding:"none",className:rt.expandIconCell},P&&ke.createElement(D_e,{className:ue(rt.expandIcon,(n={},n[rt.expanded]=j,n)),expanded:j,onClick:B,expandContentId:"".concat(f,"-expand")})),u&&ke.createElement(en,{padding:"checkbox"},ke.createElement(gg,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(rt.checkbox),checked:m&&y,onClick:U,disabled:!m})),ke.Children.map(a,function(oe,Ee){return d.isValidElement(oe)?ke.createElement(F_e,{key:"".concat(f,"-").concat(oe.props.source||Ee),className:ue("column-".concat(oe.props.source),rt.rowCell),record:C,field:oe,resource:E}):null})),P&&j&&ke.createElement(If,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:rt.expandedPanel},ke.createElement(en,{colSpan:z},d.isValidElement(i)?i:d.createElement(i))))}),V_e=function(e,t){e.children,e.expand;var r=iw(e,["children","expand"]);t.children,t.expand;var n=iw(t,["children","expand"]);return vM(r,n)},Y5=d.memo(X5,V_e);Y5.displayName="PureDatagridRow";const U_e=X5;var Ng=globalThis&&globalThis.__assign||function(){return Ng=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=uCe&&(o=lCe,i=!1,t=new nCe(t));e:for(;++a0&&b.length>0&&b.every(function(h){return v.includes(h)}),onChange:m,onClick:function(h){return h.stopPropagation()}})),d.Children.map(t,function(h,_){return d.isValidElement(h)?d.createElement(X_e,{className:ue(rt.headerCell,"column-".concat(h.props.source)),sort:c,field:h,isSorting:(c==null?void 0:c.field)===(h.props.sortBy||h.props.source),key:h.props.source||_,updateSort:x||void 0}):null})))};eN.displayName="DatagridHeader";var xCe=function(e){var t=e.children,r=e.value;return ke.createElement(G5.Provider,{value:r},t)};const wCe=xCe;var gE={},SCe=it;Object.defineProperty(gE,"__esModule",{value:!0});var tN=gE.default=void 0,_Ce=SCe(ct()),CCe=R;tN=gE.default=(0,_Ce.default)((0,CCe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var lw=globalThis&&globalThis.__assign||function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?d.createElement(d.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",d.createElement(Hr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Mf=globalThis&&globalThis.__assign||function(){return Mf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var v=o.getValues();return r.filter(function(g){var y=qt(v,g.props.source);return g.props.alwaysOn||u[g.props.source]||!aN(y)})},f=d.useCallback(function(v){return l(v.currentTarget.dataset.key)},[l]),p=d.useMemo(function(){return{getSource:function(v){return v},getLabel:function(v){return"resources.".concat(a,".fields.").concat(v)}}},[a]);return d.createElement(k3,{value:p},d.createElement(UCe,Ai({className:t},BCe(n),{onSubmit:DCe}),c().map(function(v){return d.createElement(ICe,{key:v.key||v.props.source,filterElement:v,handleHide:f,resource:a,className:Dg.filterFormInput})}),d.createElement("div",{className:Dg.clearFix})))},DCe=function(e){return e.preventDefault(),!1},BCe=function(e){e.hasCreate,e.resource;var t=mE(e,["hasCreate","resource"]);return t},zCe=function(e,t){return Ai(Ai({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return km(Ai({},r),n.props.source,n.props.defaultValue)},{})),e)},VCe=function(e){return e.preventDefault(),e.stopPropagation(),!1},cw="RaFilterForm",Dg={clearFix:"".concat(cw,"-clearFix"),filterFormInput:"".concat(cw,"-filterFormInput")},UCe=ne("form",{name:cw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Dg.clearFix)]={clear:"right"},t["& .".concat(Dg.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),WCe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=nN(e,a,t),n},(r=pM(t))!==null&&r!==void 0?r:{})},nN=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return qt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,s=nN(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},aN=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return aN(e[t])}):!1},yE={},HCe=it;Object.defineProperty(yE,"__esModule",{value:!0});var Ff=yE.default=void 0,qCe=HCe(ct()),KCe=R;Ff=yE.default=(0,qCe.default)((0,KCe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var bE={},GCe=it;Object.defineProperty(bE,"__esModule",{value:!0});var oN=bE.default=void 0,QCe=GCe(ct()),XCe=R;oN=bE.default=(0,QCe.default)((0,XCe.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var xE={},YCe=it;Object.defineProperty(xE,"__esModule",{value:!0});var iN=xE.default=void 0,JCe=YCe(ct()),ZCe=R;iN=xE.default=(0,JCe.default)((0,ZCe.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var wE={},eEe=it;Object.defineProperty(wE,"__esModule",{value:!0});var sN=wE.default=void 0,tEe=eEe(ct()),rEe=R;sN=wE.default=(0,tEe.default)((0,rEe.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var SE={},nEe=it;Object.defineProperty(SE,"__esModule",{value:!0});var lN=SE.default=void 0,aEe=nEe(ct()),oEe=R;lN=SE.default=(0,aEe.default)((0,oEe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var _E={},iEe=it;Object.defineProperty(_E,"__esModule",{value:!0});var uN=_E.default=void 0,sEe=iEe(ct()),lEe=R;uN=_E.default=(0,sEe.default)((0,lEe.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var CE={},uEe=it;Object.defineProperty(CE,"__esModule",{value:!0});var cN=CE.default=void 0,cEe=uEe(ct()),dEe=R;cN=CE.default=(0,cEe.default)((0,dEe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var fEe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,s=Nt(e),u=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(Ta,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?l:u,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Cs,null,i?d.createElement(cN,{fontSize:"small"}):d.createElement(uN,{fontSize:"small"})),d.createElement(Zl,null,d.createElement(no,{label:r.props.label,source:r.props.source,resource:s})))}),EE=function(e){return ya("".concat(e,".savedQueries"),[])},OE=function(e){return Array.isArray(e)?e.filter(function(t){return pEe(t)}):[]},pEe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},hEe=function(e){var t=e.open,r=e.onClose,n=et(),a=ga(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=EE(o),f=c[0],p=c[1],v=d.useState(""),g=v[0],y=v[1],S=function(b){y(b.target.value)},x=function(b){b.preventDefault(),m()},m=function(){var b={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},h=OE(f);p(h.concat(b)),y(""),r()};return d.createElement(TC,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(jC,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(kC,null,d.createElement("form",{onSubmit:x},d.createElement(yp,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:S}))),d.createElement($C,null,d.createElement(hn,{onClick:r},n("ra.action.cancel")),d.createElement(hn,{onClick:m,color:"primary"},n("ra.action.save"))))},$$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=EE(u||"")[0],f=lo(),p=ga(),v=p.displayedFilters,g=v===void 0?{}:v,y=p.filterValues,S=p.perPage,x=p.setFilters,m=p.showFilter,b=p.hideFilter,h=p.sort,_=!ja(y,{}),C=OE(c),E=C.some(function(be){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})}),w=d.useState(!1),O=w[0],P=w[1],k=d.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var j=s.filter(function(be){return!be.props.alwaysOn}),$=d.useCallback(function(be){be.preventDefault(),P(!0),k.current=be.currentTarget},[k,P]),F=d.useCallback(function(){P(!1)},[P]),z=d.useCallback(function(be){var we=be.source,ve=be.defaultValue;m(we,ve===""?void 0:ve),setTimeout(function(){var De=document.querySelector("input[name='".concat(we,"']"));De&&De.focus()},50),P(!1)},[m,P]),M=d.useCallback(function(be){var we=be.source;b(we),P(!1)},[b,P]),W=d.useState(!1),B=W[0],U=W[1],q=function(){U(!1)},ie=function(){P(!1),U(!0)},oe=d.useState(!1),Ee=oe[0],pe=oe[1],Te=function(){pe(!1)},ye=function(){P(!1),pe(!0)};return j.length===0&&C.length===0&&!_?null:d.createElement(yEe,dw({className:r},gEe(i)),d.createElement(Hr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:$,variant:o,size:a},d.createElement(lN,null)),d.createElement(Ly,{open:O,anchorEl:k.current,onClose:F},j.map(function(be,we){return d.createElement(fEe,{key:be.props.source,filter:be,displayed:!!g[be.props.source],resource:u,onShow:z,onHide:M,autoFocus:we===0})}),(_||C.length>0)&&d.createElement(mg,null),C.map(function(be,we){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})?d.createElement(Ta,{onClick:ye,key:we},d.createElement(Cs,null,d.createElement(iN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:be.label}))):d.createElement(Ta,{onClick:function(){var ve,De;f({search:ko.stringify({filter:JSON.stringify(be.value.filter),sort:(ve=be.value.sort)===null||ve===void 0?void 0:ve.field,order:(De=be.value.sort)===null||De===void 0?void 0:De.order,page:1,perPage:be.value.perPage,displayedFilters:JSON.stringify(be.value.displayedFilters)})}),P(!1)},key:we},d.createElement(Cs,null,d.createElement(sN,{fontSize:"small"})),d.createElement(Zl,null,be.label))}),_&&!E&&!n&&d.createElement(Ta,{onClick:ie},d.createElement(Cs,null,d.createElement(oN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&d.createElement(Ta,{onClick:function(){x({},{}),P(!1)}},d.createElement(Cs,null,d.createElement(Ff,{fontSize:"small"})),d.createElement(Zl,null,l("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(hEe,{open:B,onClose:q}),d.createElement(vEe,{open:Ee,onClose:Te})))},gEe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=dN(e,["displayedFilters","filterValues","showFilter"]);return t},mEe="RaFilterButton",yEe=ne("div",{name:mEe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),bEe=function(e){var t=e.children,r=function(){return d.createElement(fN,{className:j$.button})},n=function(){return d.createElement(rN,{className:j$.form})};return d.createElement(Ep.Provider,{value:d.Children.toArray(t)},e.context==="button"?r():n())},k$="RaFilter",j$={button:"".concat(k$,"-button"),form:"".concat(k$,"-form")},fw=globalThis&&globalThis.__assign||function(){return fw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:w+1}));v(w+1)},[x,v,y]),b=d.useCallback(function(E){g(E.target.value)},[g]),h=d.useCallback(function(E){var w=E.from,O=E.to,P=E.count;return P===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:w,offsetEnd:O,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:w,offsetEnd:O,total:P===-1?O:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),_=d.useCallback(function(E){return y("ra.navigation.".concat(E),{_:"Go to ".concat(E," page")})},[y]);if(u)return d.createElement(jc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(S)return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:EEe,component:"span",labelDisplayedRows:h},wf(i)));var C=n||(!u&&p!=null?xEe:void 0);return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:b,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:_,rowsPerPageOptions:r},wf(i)))}),CEe=[5,10,25,50],EEe=[],zg=globalThis&&globalThis.__assign||function(){return zg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ye.target.value>"u")){var be=ye.target,we=be.valueAsDate!==void 0&&be.valueAsDate!==null&&!isNaN(new Date(be.valueAsDate).getTime())?g?g(be.valueAsDate):be.valueAsDate:g?g(be.value):mh(be.value);we!==""&&we!=null&&(_.onChange(we),j.current=!0)}},B=function(ye){c&&c(ye),M.current=!0},U=function(){if(M.current=!1,!!$.current){var ye=$.current.valueAsDate!==void 0&&$.current.valueAsDate!==null&&!isNaN(new Date($.current.valueAsDate).getTime())?g?g($.current.valueAsDate):mh($.current.valueAsDate):g?g($.current.value):mh($.current.value);ye!==_.value&&_.onChange(ye??""),z&&z()}},q=C.error,ie=C.invalid,oe=i!==!1||ie,Ee=_.ref,pe=_.name,Te=fae([Ee,$]);return d.createElement(yp,zg({id:E,inputRef:Te,name:pe,defaultValue:a(F.current),key:P,type:"datetime-local",onChange:W,onFocus:B,onBlur:U,className:ue("ra-input","ra-input-".concat(f),t),size:"small",variant:S,margin:s,error:ie,disabled:x||m,readOnly:m,helperText:oe?d.createElement(rl,{error:q==null?void 0:q.message,helperText:i}):null,label:d.createElement(no,{label:o,source:f,resource:p,isRequired:w}),InputLabelProps:kEe},_p(b)))},vN=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},TEe=vN(4),gh=vN(2),A$=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=TEe(e.getFullYear()),r=gh(e.getMonth()+1),n=gh(e.getDate()),a=gh(e.getHours()),o=gh(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},$Ee=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,kEe={shrink:!0},mh=function(e){return e==null||e===""?"":e instanceof Date?A$(e):$Ee.test(e)?e:A$(new Date(e))},Vg=globalThis&&globalThis.__assign||function(){return Vg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof we.target.value>"u")){var ve=we.target;q(ve.value);var De=ve.valueAsNumber!==void 0&&ve.valueAsNumber!==null&&!isNaN(ve.valueAsNumber)?p?p(ve.valueAsNumber):ve.valueAsNumber:p?p(ve.value):LEe(ve.value);P.onChange(De)}},Ee=function(we){f&&f(we),ie.current=!0},pe=function(){M&&M(),ie.current=!1;var we=o(P.value);q(function(ve){return ve!==we?we:ve})},Te=i!==!1||$,ye=P.ref,be=F$(P,["ref"]);return d.createElement(yp,ii({id:F},be,{inputRef:ye,value:U,onChange:oe,onFocus:Ee,onBlur:pe,className:ue("ra-input","ra-input-".concat(g),t),type:"number",size:"small",variant:h,error:$,disabled:C||E,readOnly:E,helperText:Te?d.createElement(rl,{error:j==null?void 0:j.message,helperText:i}):null,label:d.createElement(no,{label:s,source:g,resource:v,isRequired:z}),margin:u,inputProps:ii(ii({},W),{readOnly:E})},_p(w)))},LEe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},DEe=function(e){return e==null||isNaN(e)?"":e.toString()},Ug=globalThis&&globalThis.__assign||function(){return Ug=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(KEe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Di,{className:vu.content},d.createElement(Nn,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Xl()}),d.createElement(Nn,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Xl()}),d.createElement(hn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:vu.button},a?d.createElement(kc,{className:vu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},nv="RaLoginForm",vu={content:"".concat(nv,"-content"),button:"".concat(nv,"-button"),icon:"".concat(nv,"-icon")},KEe=ne(M_,{name:nv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(vu.content)]={width:300},t["& .".concat(vu.button)]={marginTop:r.spacing(2)},t["& .".concat(vu.icon)]={margin:r.spacing(.3)},t}),pw=globalThis&&globalThis.__assign||function(){return pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?lOe:r;return a?d.createElement(cOe,mw({className:ue("edit-page",o)},l),u!==!1&&d.createElement(dl,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),y,d.createElement("div",{className:ue(yu.main,(t={},t[yu.noActions]=!y,t))},d.createElement(s,{className:yu.card},g?a:d.createElement(Di,null," ")),n)):null},iv="RaEdit",yu={main:"".concat(iv,"-main"),noActions:"".concat(iv,"-noActions"),card:"".concat(iv,"-card")},cOe=ne("div",{name:iv,overridesResolver:function(e,t){return t.root}})((td={},td["& .".concat(yu.main)]={display:"flex",alignItems:"flex-start"},td["& .".concat(yu.noActions)]={marginTop:"1em"},td["& .".concat(yu.card)]={flex:"1 1 auto"},td)),yw=globalThis&&globalThis.__assign||function(){return yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&S?EOe:r;return!a||!y&&l?null:d.createElement(POe,ww({className:ue("show-page",o)},f),c!==!1&&d.createElement(dl,{title:c,defaultTitle:g,preferenceKey:"".concat(v,".show.title")}),x!==!1&&x,d.createElement("div",{className:ue(xu.main,(t={},t[xu.noActions]=!x,t))},d.createElement(s,{className:xu.card},a),n))},lv="RaShow",xu={main:"".concat(lv,"-main"),noActions:"".concat(lv,"-noActions"),card:"".concat(lv,"-card")},POe=ne("div",{name:lv,overridesResolver:function(e,t){return t.root}})((rd={},rd["& .".concat(xu.main)]={display:"flex"},rd["& .".concat(xu.noActions)]={marginTop:"1em"},rd["& .".concat(xu.card)]={flex:"1 1 auto"},rd)),Sw=globalThis&&globalThis.__assign||function(){return Sw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var v=ry(e);if(v==null||v==="")return r?d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),r&&p(r,{_:r})):null;var g=c(v),y="";if(g)if(i&&u)y=g0?g.toLocaleString(n,a):g.toLocaleString();else if(u){var S=a??(typeof v=="string"&&v.length<=10?{timeZone:"UTC"}:void 0);y=g0?g.toLocaleDateString(n,S):g.toLocaleDateString()}else i&&(y=g0?g.toLocaleTimeString(n,a):g.toLocaleTimeString());return d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),y)};_N.displayName="DateFieldImpl";var Ya=Ky(_N),NOe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},g0=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Gg=globalThis&&globalThis.__assign||function(){return Gg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},Kd=globalThis&&globalThis.__assign||function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&D$.call(t.callee)==="[object Function]"),n},m0,B$;function OPe(){if(B$)return m0;B$=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=AN,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",S=n(v),x=g&&r.call(v)==="[object String]",m=[];if(!g&&!y&&!S)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(x&&v.length>0&&!t.call(v,0))for(var h=0;h0)for(var _=0;_"u"||!jr?bt:jr(Uint8Array),Bs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":El&&jr?jr([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":YPe,"%eval%":eval,"%EvalError%":JPe,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":NN,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":El&&jr?jr(jr([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!El||!jr?bt:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":ZPe,"%ReferenceError%":e2e,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!El||!jr?bt:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":El&&jr?jr(""[Symbol.iterator]()):bt,"%Symbol%":El?Symbol:bt,"%SyntaxError%":oc,"%ThrowTypeError%":r2e,"%TypedArray%":a2e,"%TypeError%":Su,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":t2e,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet};if(jr)try{null.error}catch(e){var o2e=jr(jr(e));Bs["%Error.prototype%"]=o2e}var i2e=function e(t){var r;if(t==="%AsyncFunction%")r=b0("async function () {}");else if(t==="%GeneratorFunction%")r=b0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=b0("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&jr&&(r=jr(a.prototype))}return Bs[t]=r,r},H$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pp=$E,Qg=FN,s2e=Pp.call(Function.call,Array.prototype.concat),l2e=Pp.call(Function.apply,Array.prototype.splice),q$=Pp.call(Function.call,String.prototype.replace),Xg=Pp.call(Function.call,String.prototype.slice),u2e=Pp.call(Function.call,RegExp.prototype.exec),c2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d2e=/\\(\\)?/g,f2e=function(t){var r=Xg(t,0,1),n=Xg(t,-1);if(r==="%"&&n!=="%")throw new oc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new oc("invalid intrinsic syntax, expected opening `%`");var a=[];return q$(t,c2e,function(o,i,s,u){a[a.length]=s?q$(u,d2e,"$1"):i||o}),a},p2e=function(t,r){var n=t,a;if(Qg(H$,n)&&(a=H$[n],n="%"+a[0]+"%"),Qg(Bs,n)){var o=Bs[n];if(o===Il&&(o=i2e(n)),typeof o>"u"&&!r)throw new Su("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new oc("intrinsic "+t+" does not exist!")},Rp=function(t,r){if(typeof t!="string"||t.length===0)throw new Su("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Su('"allowMissing" argument must be a boolean');if(u2e(/^%?[^%]*%?$/,t)===null)throw new oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=f2e(t),a=n.length>0?n[0]:"",o=p2e("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],l2e(n,s2e([0,1],l)));for(var c=1,f=!0;c=n.length){var y=Ds(s,p);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else f=Qg(s,p),s=s[p];f&&!u&&(Bs[i]=s)}}return s},h2e=Rp,dv=h2e("%Object.defineProperty%",!0)||!1;if(dv)try{dv({},"a",{value:1})}catch{dv=!1}var kE=dv,v2e=Rp,fv=v2e("%Object.getOwnPropertyDescriptor%",!0);if(fv)try{fv([],"length")}catch{fv=null}var LN=fv,K$=kE,g2e=MN,Ol=Op,G$=LN,DN=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ol("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ol("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ol("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ol("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ol("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ol("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!G$&&G$(t,r);if(K$)K$(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new g2e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mw=kE,BN=function(){return!!Mw};BN.hasArrayLengthDefineBug=function(){if(!Mw)return null;try{return Mw([],"length",{value:1}).length!==1}catch{return!0}};var zN=BN,m2e=TPe,y2e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",b2e=Object.prototype.toString,x2e=Array.prototype.concat,Q$=DN,w2e=function(e){return typeof e=="function"&&b2e.call(e)==="[object Function]"},VN=zN(),S2e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!w2e(n)||!n())return}VN?Q$(e,t,r,!0):Q$(e,t,r)},UN=function(e,t){var r=arguments.length>2?arguments[2]:{},n=m2e(t);y2e&&(n=x2e.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||E2e(r)!==r)throw new J$("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Y$){var i=Y$(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(C2e?X$(t,"length",r,!0,!0):X$(t,"length",r)),t};(function(e){var t=$E,r=Rp,n=O2e,a=Op,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=kE,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var v=s(t,i,arguments);return n(v,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(HN);var qN=HN.exports,P2e=Op,R2e=function(t){if(t==null)throw new P2e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},KN=Rp,GN=qN,T2e=GN(KN("String.prototype.indexOf")),$2e=function(t,r){var n=KN(t,!!r);return typeof n=="function"&&T2e(t,".prototype.")>-1?GN(n):n},k2e=R2e,QN=$2e,j2e=QN("Object.prototype.propertyIsEnumerable"),I2e=QN("Array.prototype.push"),XN=function(t){var r=k2e(t),n=[];for(var a in r)j2e(r,a)&&I2e(n,[a,r[a]]);return n},A2e=XN,YN=function(){return typeof Object.entries=="function"?Object.entries:A2e},M2e=YN,F2e=WN,N2e=function(){var t=M2e();return F2e(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},L2e=WN,D2e=qN,B2e=XN,JN=YN,z2e=N2e,ZN=D2e(JN(),Object);L2e(ZN,{getPolyfill:JN,implementation:B2e,shim:z2e});var V2e=ZN,jE=V2e,eL=FN,U2e=function(t){},Fw=String.prototype.replace,tL=String.prototype.split,pv="||||",bh=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},rL={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:bh,chinese:function(){return 0},croatian:bh,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bh,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:bh},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function W2e(e){for(var t={},r=jE(e),n=0;n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var uRe=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),cRe=function(e){uRe(t,e);function t(r,n,a){a===void 0&&(a=null);var o=e.call(this,r)||this;return o.message=r,o.status=n,o.body=a,Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(o,o.constructor):o.stack=new Error(r).stack,o.stack=new Error().stack,o}return t}(Error);const dRe=cRe;var Yg=globalThis&&globalThis.__assign||function(){return Yg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new dRe(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},pRe=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},Jg=function(e,t){var r;return t===void 0&&(t=[]),pRe(e)?Object.assign.apply(Object,fRe([{}],Object.keys(e).map(function(n){return Jg(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e};function Nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{t.headers||(t.headers=aL(t));const r=localStorage.getItem("token");return r&&t.headers.set("Authorization",`Bearer ${r}`),ME(e,t)},mRe=vRe(fl,gRe),yRe={...mRe,getManyReference:(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={...Jg(t.filter),[t.target]:t.id,_sort:a,_order:o,_start:(r-1)*n,_end:r*n,output_size_limit:200},s=`${fl}/${t.target}/${t.id}/${e}?${ko.stringify(i)}`;return ME(s).then(({headers:u,json:l})=>{if(!u.has("x-total-count"))throw new Error("The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?");return{data:l,total:parseInt(u.get("x-total-count").split("/").pop()||"",10)}})}};var FE={},bRe=it;Object.defineProperty(FE,"__esModule",{value:!0});var Gy=FE.default=void 0,xRe=bRe(ct()),wRe=R;Gy=FE.default=(0,xRe.default)((0,wRe.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");const SRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}`,{method:"POST"}).then(()=>{t("Success running job")}).catch(u=>{t("Error on running job",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Run",onClick:i,disabled:a,children:R.jsx(Gy,{})})},_Re=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}/toggle`,{method:"POST"}).then(()=>{t("Job toggled")}).catch(u=>{t("Error on job toggle",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Toggle",title:"Enable/disable execution of selected jobs",onClick:i,disabled:a,children:R.jsx(Gy,{})})};var NE={},CRe=it;Object.defineProperty(NE,"__esModule",{value:!0});var LE=NE.default=void 0,ERe=CRe(ct()),ORe=R;LE=NE.default=(0,ERe.default)((0,ORe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var DE={},PRe=it;Object.defineProperty(DE,"__esModule",{value:!0});var iL=DE.default=void 0,RRe=PRe(ct()),TRe=R;iL=DE.default=(0,RRe.default)((0,TRe.jsx)("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer");const $Re=()=>{const e=_r();return e.status==="success"?R.jsx(kn,{title:"Success",children:R.jsx(Uy,{htmlColor:"green"})}):e.status==="failed"?R.jsx(kn,{title:"Error",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Waiting to Run",children:R.jsx(iL,{htmlColor:"blue"})})},kRe=()=>_r().disabled?R.jsx(kn,{title:"Disabled",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Enabled",children:R.jsx(Uy,{htmlColor:"green"})}),jRe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function IRe(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let o=0;const i=()=>(o+=1,o);return(s,u)=>{const l=u.options.name;if(l&&l.indexOf("Mui")===0&&!u.options.link&&!t){if(jRe.indexOf(s.key)!==-1)return`Mui-${s.key}`;const c=`${a}${l}-${s.key}`;return!u.options.theme[HF]||n!==""?c:`${c}-${i()}`}return`${a}${r}${i()}`}}var sk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tp=(typeof window>"u"?"undefined":sk(window))==="object"&&(typeof document>"u"?"undefined":sk(document))==="object"&&document.nodeType===9,ARe={}.constructor;function Lw(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Lw);if(e.constructor!==ARe)return e;var t={};for(var r in e)t[r]=Lw(e[r]);return t}function BE(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,a=Lw(t),o=n.plugins.onCreateRule(e,a,r);return o||(e[0],null)}var lk=function(t,r){for(var n="",a=0;a<+~=|^:(),"'`\s])/g,uk=typeof CSS<"u"&&CSS.escape,zE=function(e){return uk?uk(e):e.replace(MRe,"\\$1")},sL=function(){function e(r,n,a){this.type="style",this.isProcessed=!1;var o=a.sheet,i=a.Renderer;this.key=r,this.options=a,this.style=n,o?this.renderer=o.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,a,o){if(a===void 0)return this.style[n];var i=o?o.force:!1;if(!i&&this.style[n]===a)return this;var s=a;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(a,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),Dw=function(e){Py(t,e);function t(n,a,o){var i;i=e.call(this,n,a,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,c=o.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(bx(bx(i)),l),i.selectorText="."+zE(i.id)),i}var r=t.prototype;return r.applyTo=function(a){var o=this.renderer;if(o){var i=this.toJSON();for(var s in i)o.setProperty(a,s,i[s])}return this},r.toJSON=function(){var a={};for(var o in this.style){var i=this.style[o];typeof i!="object"?a[o]=i:Array.isArray(i)&&(a[o]=zs(i))}return a},r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.selectorText,this.style,s)},oL(t,[{key:"selector",set:function(a){if(a!==this.selectorText){this.selectorText=a;var o=this.renderer,i=this.renderable;if(!(!i||!o)){var s=o.setSelector(i,a);s||o.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(sL),FRe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new Dw(t,r,n)}},S0={indent:1,children:!0},NRe=/@([\w-]+)/,LRe=function(){function e(r,n,a){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(NRe);this.at=o?o[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new Qy(T({},a,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=S0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=S0.indent),n.children==null&&(n.children=S0.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+o+i+o+"}":""},e}(),DRe=/@container|@media|@supports\s+/,BRe={onCreateRule:function(t,r,n){return DRe.test(t)?new LRe(t,r,n):null}},_0={indent:1,children:!0},zRe=/@keyframes\s+([\w-]+)/,Bw=function(){function e(r,n,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(zRe);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var i=a.scoped,s=a.sheet,u=a.generateId;this.id=i===!1?this.name:zE(u(this,s)),this.rules=new Qy(T({},a,{parent:this}));for(var l in n)this.rules.add(l,n[l],T({},a,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=_0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=_0.indent),n.children==null&&(n.children=_0.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+o+i+o),this.at+" "+this.id+" {"+i+"}"},e}(),VRe=/@keyframes\s+/,URe=/\$([\w-]+)/g,zw=function(t,r){return typeof t=="string"?t.replace(URe,function(n,a){return a in r?r[a]:n}):t},ck=function(t,r,n){var a=t[r],o=zw(a,n);o!==a&&(t[r]=o)},WRe={onCreateRule:function(t,r,n){return typeof t=="string"&&VRe.test(t)?new Bw(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&ck(t,"animation-name",n.keyframes),"animation"in t&&ck(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var a=n.options.sheet;if(!a)return t;switch(r){case"animation":return zw(t,a.keyframes);case"animation-name":return zw(t,a.keyframes);default:return t}}},HRe=function(e){Py(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.key,this.style,s)},t}(sL),qRe={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new HRe(t,r,n):null}},KRe=function(){function e(r,n,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=a}var t=e.prototype;return t.toString=function(n){var a=Ic(n),o=a.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){a.push(n);return}for(var i=0;io){a.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var a=this.registry.indexOf(n);this.registry.splice(a,1)},t.toString=function(n){for(var a=n===void 0?{}:n,o=a.attached,i=Pe(a,["attached"]),s=Ic(i),u=s.linebreak,l="",c=0;c-1?a.substr(0,o-1):a;t.style.setProperty(r,i,o>-1?"important":"")}}catch{return!1}return!0},iTe=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},sTe=function(t,r){return t.selectorText=r,t.selectorText===r},cL=uL(function(){return document.querySelector("head")});function lTe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function uTe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function cTe(e){for(var t=cL(),r=0;r0){var r=lTe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=uTe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var a=cTe(n);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}function fTe(e,t){var r=t.insertionPoint,n=dTe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var a=r,o=a.parentNode;o&&o.insertBefore(e,a.nextSibling);return}cL().appendChild(e)}var pTe=uL(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),vk=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},gk=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},hTe=function(){var t=document.createElement("style");return t.textContent=` +`,t},vTe=function(){function e(r){this.getPropertyValue=aTe,this.setProperty=oTe,this.removeProperty=iTe,this.setSelector=sTe,this.hasInsertedRules=!1,this.cssRules=[],r&&Gd.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},a=n.media,o=n.meta,i=n.element;this.element=i||hTe(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),o&&this.element.setAttribute("data-meta",o);var s=pTe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){fTe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` `)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` `+n.toString()+` -`}},t.insertRules=function(n,a){for(var o=0;o-1){var o=bL[t];if(!Array.isArray(o))return ft.js+Bi(o)in r?ft.css+o:!1;if(!a)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},o=Object.keys(r).sort(e),i=0;i"u"?null:h$e(),v$e()]}}function wL(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=T({},t);return Object.keys(r).forEach(o=>{r[o]&&(a[o]=`${t[o]} ${r[o]}`)}),a}const m$e={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},ru=m$e;function y$e(){var e;const t=cC();return(e=t==null?void 0:t.$$material)!=null?e:t}const b$e=dL(g$e()),x$e=jRe(),w$e=new Map,S$e={disableGeneration:!1,generateClassName:x$e,jss:b$e,sheetsCache:null,sheetsManager:w$e,sheetsRegistry:null},_$e=d.createContext(S$e);let xk=-1e9;function C$e(){return xk+=1,xk}const E$e=["variant"];function wk(e){return e.length===0}function O$e(e){const{variant:t}=e,r=Pe(e,E$e);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=wk(n)?e[a]:ge(e[a]):n+=`${wk(n)?a:ge(a)}${ge(e[a].toString())}`}),n}const P$e={},R$e=P$e;function T$e(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(u){throw u}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const o=r.components[n].styleOverrides||{},i=r.components[n].variants||[],s=T({},a);return Object.keys(o).forEach(u=>{s[u]=Rr(s[u]||{},o[u])}),i.forEach(u=>{const l=O$e(u.props);s[l]=Rr(s[l]||{},u.style)}),s},options:{}}}const $$e=["name","classNamePrefix","Component","defaultTheme"];function k$e({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=wL({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function j$e({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},o){if(r.disableGeneration)return;let i=ru.get(r.sheetsManager,n,t);i||(i={refs:0,staticSheet:null,dynamicStyles:null},ru.set(r.sheetsManager,n,t,i));const s=T({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=r.sheetsRegistry;if(i.refs===0){let l;r.sheetsCache&&(l=ru.get(r.sheetsCache,n,t));const c=n.create(t,a);l||(l=r.jss.createStyleSheet(c,T({link:!1},s)),l.attach(),r.sheetsCache&&ru.set(r.sheetsCache,n,t,l)),u&&u.add(l),i.staticSheet=l,i.dynamicStyles=fL(c)}if(i.dynamicStyles){const l=r.jss.createStyleSheet(i.dynamicStyles,T({link:!0},s));l.update(o),l.attach(),e.dynamicSheet=l,e.classes=wL({baseClasses:i.staticSheet.classes,newClasses:l.classes}),u&&u.add(l)}else e.classes=i.staticSheet.classes;i.refs+=1}function I$e({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function A$e({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=ru.get(r.sheetsManager,n,t);a.refs-=1;const o=r.sheetsRegistry;a.refs===0&&(ru.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}function M$e(e,t){const r=d.useRef([]);let n;const a=d.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),d.useEffect(()=>()=>{n&&n()},[a])}function SL(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:o=R$e}=t,i=Pe(t,$$e),s=T$e(e),u=r||n||"makeStyles";return s.options={index:C$e(),name:r,meta:u,classNamePrefix:u},(c={})=>{const f=y$e()||o,p=T({},d.useContext(_$e),i),v=d.useRef(),g=d.useRef();return M$e(()=>{const S={name:r,state:{},stylesCreator:s,stylesOptions:p,theme:f};return j$e(S,c),g.current=!1,v.current=S,()=>{A$e(S)}},[f,s]),d.useEffect(()=>{g.current&&I$e(v.current,c),g.current=!0}),k$e(v.current,c.classes,a)}}const F$e=e=>R.jsxs(yEe,{...e,children:[R.jsx(Nn,{label:"Search",source:"q",alwaysOn:!0}),R.jsx(yN,{source:"status",choices:[{id:"success",name:"Success"},{id:"failed",name:"Failed"},{id:"untriggered",name:"Waiting to Run"}]}),R.jsx(rw,{source:"disabled"})]}),N$e=e=>R.jsxs(d.Fragment,{children:[R.jsx(wRe,{...e}),R.jsx(SRe,{...e}),R.jsx(F5,{...e})]}),L$e=e=>R.jsx(hN,{rowsPerPageOptions:[5,10,25,50,100],...e}),D$e=SL(e=>({hiddenOnSmallScreens:{display:"table-cell",[e.breakpoints.down("md")]:{display:"none"}},cell:{padding:"6px 8px 6px 8px"}})),B$e=e=>{const t=D$e();return R.jsx(TE,{...e,filters:R.jsx(F$e,{}),bulkActionButtons:R.jsx(N$e,{}),pagination:R.jsx(L$e,{}),children:R.jsxs(Cp,{rowClick:"show",classes:{rowCell:t.cell},children:[R.jsx(fr,{source:"id",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"displayname",label:"Display name"}),R.jsx(fr,{source:"timezone",sortable:!1,cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"schedule"}),R.jsx(qd,{source:"success_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(qd,{source:"error_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Ya,{source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx($Re,{source:"disabled",label:"Enabled",sortable:!1}),R.jsx(qd,{source:"retries",sortable:!1}),R.jsx(TRe,{source:"status",sortable:!1}),R.jsx(Ya,{source:"next",showTime:!0}),R.jsx(uE,{})]})})};var _L={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Al,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),f=function(p,v,g){var y,S,x,m=p&f.F,b=p&f.G,h=p&f.S,_=p&f.P,C=p&f.B,E=p&f.W,w=b?s:s[v]||(s[v]={}),O=w.prototype,P=b?i:h?i[v]:(i[v]||{}).prototype;for(y in b&&(g=v),g)(S=!m&&P&&P[y]!==void 0)&&c(w,y)||(x=S?P[y]:g[y],w[y]=b&&typeof P[y]!="function"?g[y]:C&&S?u(x,i):E&&P[y]==x?function(k){var j=function($,F,z){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k($);case 2:return new k($,F)}return new k($,F,z)}return k.apply(this,arguments)};return j.prototype=k.prototype,j}(x):_&&typeof x=="function"?u(Function.call,x):x,_&&((w.virtual||(w.virtual={}))[y]=x,p&f.R&&O&&!O[y]&&l(O,y,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,v){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),v===void 0?g:s(g,v)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,f){var p,v=s(c),g=0,y=[];for(p in v)p!=l&&i(v,p)&&y.push(p);for(;f.length>g;)i(v,p=f[g++])&&(~u(y,p)||y.push(p));return y}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(v,g){try{return v[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=S(o(49)),s=S(o(76)),u=S(o(81)),l=S(o(89)),c=S(o(93)),f=function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&(P[k]=O[k]);return P.default=O,P}(o(94)),p=S(o(132)),v=S(o(133)),g=S(o(138)),y=o(139);function S(O){return O&&O.__esModule?O:{default:O}}var x=f.default,m=(0,l.default)(x),b=(0,g.default)(v.default,y.rgb2yuv,function(O){var P,k=(0,u.default)(O,3),j=k[0],$=k[1],F=k[2];return[(P=j,P<.25?1:P<.5?.9-P:1.1-P),$,F]},y.yuv2rgb,p.default),h=function(O){return function(P){return{className:[P.className,O.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},O.style||{})}}},_=function(O,P){var k=(0,l.default)(P);for(var j in O)k.indexOf(j)===-1&&k.push(j);return k.reduce(function($,F){return $[F]=function(z,M){if(z===void 0)return M;if(M===void 0)return z;var W=z===void 0?"undefined":(0,i.default)(z),B=M===void 0?"undefined":(0,i.default)(M);switch(W){case"string":switch(B){case"string":return[M,z].filter(Boolean).join(" ");case"object":return h({className:z,style:M});case"function":return function(U){for(var q=arguments.length,ie=Array(q>1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe2?k-2:0),$=2;$3?P-3:0),j=3;j1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=$.defaultBase16,M=z===void 0?x:z,W=$.base16Themes,B=W===void 0?null:W,U=w(F,B);U&&(F=(0,s.default)({},U,F));var q=m.reduce(function(pe,Te){return pe[Te]=F[Te]||M[Te],pe},{}),ie=(0,l.default)(F).reduce(function(pe,Te){return m.indexOf(Te)===-1&&(pe[Te]=F[Te]),pe},{}),oe=O(q),Ee=_(ie,oe);return(0,c.default)(C,2).apply(void 0,[Ee].concat(k))},3),a.getBase16Theme=function(O,P){if(O&&O.extend&&(O=O.extend),typeof O=="string"){var k=O.split(":"),j=(0,u.default)(k,2),$=j[0],F=j[1];O=(P||{})[$]||f[$],F==="inverted"&&(O=E(O))}return O&&O.hasOwnProperty("base00")?O:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(h,_,C){return Function.prototype.apply.call(h,_,C)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var l=Number.isNaN||function(h){return h!=h};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(h,_){return new Promise(function(C,E){function w(){O!==void 0&&h.removeListener("error",O),C([].slice.call(arguments))}var O;_!=="error"&&(O=function(P){h.removeListener(_,w),E(P)},h.once("error",O)),h.once(_,w)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function v(h){return h._maxListeners===void 0?c.defaultMaxListeners:h._maxListeners}function g(h,_,C,E){var w,O,P,k;if(p(C),(O=h._events)===void 0?(O=h._events=Object.create(null),h._eventsCount=0):(O.newListener!==void 0&&(h.emit("newListener",_,C.listener?C.listener:C),O=h._events),P=O[_]),P===void 0)P=O[_]=C,++h._eventsCount;else if(typeof P=="function"?P=O[_]=E?[C,P]:[P,C]:E?P.unshift(C):P.push(C),(w=v(h))>0&&P.length>w&&!P.warned){P.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=h,j.type=_,j.count=P.length,k=j,console&&console.warn&&console.warn(k)}return h}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(h,_,C){var E={fired:!1,wrapFn:void 0,target:h,type:_,listener:C},w=y.bind(E);return w.listener=C,E.wrapFn=w,w}function x(h,_,C){var E=h._events;if(E===void 0)return[];var w=E[_];return w===void 0?[]:typeof w=="function"?C?[w.listener||w]:[w]:C?function(O){for(var P=new Array(O.length),k=0;k0&&(O=_[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var k=w[h];if(k===void 0)return!1;if(typeof k=="function")u(k,this,_);else{var j=k.length,$=b(k,j);for(C=0;C=0;O--)if(C[O]===_||C[O].listener===_){P=C[O].listener,w=O;break}if(w<0)return this;w===0?C.shift():function(k,j){for(;j+1=0;E--)this.removeListener(h,_[E]);return this},c.prototype.listeners=function(h){return x(this,h,!0)},c.prototype.rawListeners=function(h){return x(this,h,!1)},c.listenerCount=function(h,_){return typeof h.listenerCount=="function"?h.listenerCount(_):m.call(h,_)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var f,p,v=String(s(l)),g=i(c),y=v.length;return g<0||g>=y?u?"":void 0:(f=v.charCodeAt(g))<55296||f>56319||g+1===y||(p=v.charCodeAt(g+1))<56320||p>57343?u?v.charAt(g):f:u?v.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),v=p.length,g=0;v>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,f,p){var v,g=i(c),y=s(g.length),S=u(p,y);if(l&&f!=f){for(;y>S;)if((v=g[S++])!=v)return!0}else for(;y>S;S++)if((l||S in g)&&g[S]===f)return l||S||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),f=o(68).KEY,p=o(8),v=o(26),g=o(28),y=o(17),S=o(2),x=o(30),m=o(31),b=o(69),h=o(70),_=o(10),C=o(11),E=o(18),w=o(9),O=o(23),P=o(16),k=o(38),j=o(71),$=o(72),F=o(32),z=o(7),M=o(13),W=$.f,B=z.f,U=j.f,q=i.Symbol,ie=i.JSON,oe=ie&&ie.stringify,Ee=S("_hidden"),pe=S("toPrimitive"),Te={}.propertyIsEnumerable,ye=v("symbol-registry"),be=v("symbols"),we=v("op-symbols"),ve=Object.prototype,De=typeof q=="function"&&!!F.f,Me=i.QObject,Qe=!Me||!Me.prototype||!Me.prototype.findChild,Ne=u&&p(function(){return k(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(G,le,he){var Re=W(ve,le);Re&&delete ve[le],B(G,le,he),Re&&G!==ve&&B(ve,le,Re)}:B,Ae=function(G){var le=be[G]=k(q.prototype);return le._k=G,le},He=De&&typeof q.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof q},ht=function(G,le,he){return G===ve&&ht(we,le,he),_(G),le=O(le,!0),_(he),s(be,le)?(he.enumerable?(s(G,Ee)&&G[Ee][le]&&(G[Ee][le]=!1),he=k(he,{enumerable:P(0,!1)})):(s(G,Ee)||B(G,Ee,P(1,{})),G[Ee][le]=!0),Ne(G,le,he)):B(G,le,he)},ut=function(G,le){_(G);for(var he,Re=b(le=w(le)),Be=0,Ye=Re.length;Ye>Be;)ht(G,he=Re[Be++],le[he]);return G},V=function(G){var le=Te.call(this,G=O(G,!0));return!(this===ve&&s(be,G)&&!s(we,G))&&(!(le||!s(this,G)||!s(be,G)||s(this,Ee)&&this[Ee][G])||le)},K=function(G,le){if(G=w(G),le=O(le,!0),G!==ve||!s(be,le)||s(we,le)){var he=W(G,le);return!he||!s(be,le)||s(G,Ee)&&G[Ee][le]||(he.enumerable=!0),he}},te=function(G){for(var le,he=U(w(G)),Re=[],Be=0;he.length>Be;)s(be,le=he[Be++])||le==Ee||le==f||Re.push(le);return Re},se=function(G){for(var le,he=G===ve,Re=U(he?we:w(G)),Be=[],Ye=0;Re.length>Ye;)!s(be,le=Re[Ye++])||he&&!s(ve,le)||Be.push(be[le]);return Be};De||(c((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var G=y(arguments.length>0?arguments[0]:void 0),le=function(he){this===ve&&le.call(we,he),s(this,Ee)&&s(this[Ee],G)&&(this[Ee][G]=!1),Ne(this,G,P(1,he))};return u&&Qe&&Ne(ve,G,{configurable:!0,set:le}),Ae(G)}).prototype,"toString",function(){return this._k}),$.f=K,z.f=ht,o(41).f=j.f=te,o(19).f=V,F.f=se,u&&!o(14)&&c(ve,"propertyIsEnumerable",V,!0),x.f=function(G){return Ae(S(G))}),l(l.G+l.W+l.F*!De,{Symbol:q});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fe=0;de.length>fe;)S(de[fe++]);for(var Oe=M(S.store),ae=0;Oe.length>ae;)m(Oe[ae++]);l(l.S+l.F*!De,"Symbol",{for:function(G){return s(ye,G+="")?ye[G]:ye[G]=q(G)},keyFor:function(G){if(!He(G))throw TypeError(G+" is not a symbol!");for(var le in ye)if(ye[le]===G)return le},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),l(l.S+l.F*!De,"Object",{create:function(G,le){return le===void 0?k(G):ut(k(G),le)},defineProperty:ht,defineProperties:ut,getOwnPropertyDescriptor:K,getOwnPropertyNames:te,getOwnPropertySymbols:se});var Z=p(function(){F.f(1)});l(l.S+l.F*Z,"Object",{getOwnPropertySymbols:function(G){return F.f(E(G))}}),ie&&l(l.S+l.F*(!De||p(function(){var G=q();return oe([G])!="[null]"||oe({a:G})!="{}"||oe(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var le,he,Re=[G],Be=1;arguments.length>Be;)Re.push(arguments[Be++]);if(he=le=Re[1],(C(le)||G!==void 0)&&!He(G))return h(le)||(le=function(Ye,je){if(typeof he=="function"&&(je=he.call(this,Ye,je)),!He(je))return je}),Re[1]=le,oe.apply(ie,Re)}}),q.prototype[pe]||o(6)(q.prototype,pe,q.prototype.valueOf),g(q,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!o(8)(function(){return f(Object.preventExtensions({}))}),v=function(y){l(y,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(y,S){if(!s(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!u(y,i)){if(!f(y))return"F";if(!S)return"E";v(y)}return y[i].i},getWeak:function(y,S){if(!u(y,i)){if(!f(y))return!0;if(!S)return!1;v(y)}return y[i].w},onFreeze:function(y){return p&&g.NEED&&f(y)&&!u(y,i)&&v(y),y}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,v=f(l),g=u.f,y=0;v.length>y;)g.call(l,p=v[y++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),f=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(v,g){if(v=u(v),g=l(g,!0),f)try{return p(v,g)}catch{}if(c(v,g))return s(!i.f.call(v,g),v[g])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var h,_=f(arguments[x++]),C=m?s(_).concat(m(_)):s(_),E=C.length,w=0;E>w;)h=C[w++],i&&!b.call(_,h)||(y[h]=_[h]);return y}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var v=[],g=!0,y=!1,S=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(v.push(x.value),!p||v.length!==p);g=!0);}catch(b){y=!0,S=b}finally{try{!g&&m.return&&m.return()}finally{if(y)throw S}}return v}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,y=/^0o[0-7]+$/i,S=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,h=m||b||Function("return this")();function _(ae,Z,G){switch(G.length){case 0:return ae.call(Z);case 1:return ae.call(Z,G[0]);case 2:return ae.call(Z,G[0],G[1]);case 3:return ae.call(Z,G[0],G[1],G[2])}return ae.apply(Z,G)}function C(ae,Z){return!!(ae&&ae.length)&&function(G,le,he){if(le!=le)return function(Ye,je,Je,_e){for(var Fe=Ye.length,Ge=Je+(_e?1:-1);_e?Ge--:++Ge-1}function E(ae){return ae!=ae}function w(ae,Z){for(var G=ae.length,le=0;G--;)ae[G]===Z&&le++;return le}function O(ae,Z){for(var G=-1,le=ae.length,he=0,Re=[];++G2?k:void 0);function Te(ae){return de(ae)?ie(ae):{}}function ye(ae){return!(!de(ae)||function(Z){return!!M&&M in Z}(ae))&&(function(Z){var G=de(Z)?U.call(Z):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(ae)||function(Z){var G=!1;if(Z!=null&&typeof Z.toString!="function")try{G=!!(Z+"")}catch{}return G}(ae)?q:g).test(function(Z){if(Z!=null){try{return W.call(Z)}catch{}try{return Z+""}catch{}}return""}(ae))}function be(ae,Z,G,le){for(var he=-1,Re=ae.length,Be=G.length,Ye=-1,je=Z.length,Je=oe(Re-Be,0),_e=Array(je+Je),Fe=!le;++Ye1&&at.reverse(),_e&&je1?"& ":"")+Z[le],Z=Z.join(G>2?", ":" "),ae.replace(l,`{ + */dL();var pL=Date.now(),C0="fnValues"+pL,E0="fnStyle"+ ++pL,yTe=function(){return{onCreateRule:function(r,n,a){if(typeof n!="function")return null;var o=BE(r,{},a);return o[E0]=n,o},onProcessStyle:function(r,n){if(C0 in n||E0 in n)return r;var a={};for(var o in r){var i=r[o];typeof i=="function"&&(delete r[o],a[o]=i)}return n[C0]=a,r},onUpdate:function(r,n,a,o){var i=n,s=i[E0];s&&(i.style=s(r)||{});var u=i[C0];if(u)for(var l in u)i.prop(l,u[l](r),o)}}};const bTe=yTe;var Mi="@global",Ww="@global ",xTe=function(){function e(r,n,a){this.type="global",this.at=Mi,this.isProcessed=!1,this.key=r,this.options=a,this.rules=new Qy(T({},a,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e}(),wTe=function(){function e(r,n,a){this.type="global",this.at=Mi,this.isProcessed=!1,this.key=r,this.options=a;var o=r.substr(Ww.length);this.rule=a.jss.createRule(o,n,T({},a,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e}(),STe=/\s*,\s*/g;function hL(e,t){for(var r=e.split(STe),n="",a=0;a-1){var o=bL[t];if(!Array.isArray(o))return ft.js+Bi(o)in r?ft.css+o:!1;if(!a)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},o=Object.keys(r).sort(e),i=0;i"u"?null:v$e(),g$e()]}}function wL(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=T({},t);return Object.keys(r).forEach(o=>{r[o]&&(a[o]=`${t[o]} ${r[o]}`)}),a}const y$e={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},ru=y$e;function b$e(){var e;const t=cC();return(e=t==null?void 0:t.$$material)!=null?e:t}const x$e=dL(m$e()),w$e=IRe(),S$e=new Map,_$e={disableGeneration:!1,generateClassName:w$e,jss:x$e,sheetsCache:null,sheetsManager:S$e,sheetsRegistry:null},C$e=d.createContext(_$e);let xk=-1e9;function E$e(){return xk+=1,xk}const O$e=["variant"];function wk(e){return e.length===0}function P$e(e){const{variant:t}=e,r=Pe(e,O$e);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=wk(n)?e[a]:ge(e[a]):n+=`${wk(n)?a:ge(a)}${ge(e[a].toString())}`}),n}const R$e={},T$e=R$e;function $$e(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(u){throw u}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const o=r.components[n].styleOverrides||{},i=r.components[n].variants||[],s=T({},a);return Object.keys(o).forEach(u=>{s[u]=Rr(s[u]||{},o[u])}),i.forEach(u=>{const l=P$e(u.props);s[l]=Rr(s[l]||{},u.style)}),s},options:{}}}const k$e=["name","classNamePrefix","Component","defaultTheme"];function j$e({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=wL({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function I$e({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},o){if(r.disableGeneration)return;let i=ru.get(r.sheetsManager,n,t);i||(i={refs:0,staticSheet:null,dynamicStyles:null},ru.set(r.sheetsManager,n,t,i));const s=T({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=r.sheetsRegistry;if(i.refs===0){let l;r.sheetsCache&&(l=ru.get(r.sheetsCache,n,t));const c=n.create(t,a);l||(l=r.jss.createStyleSheet(c,T({link:!1},s)),l.attach(),r.sheetsCache&&ru.set(r.sheetsCache,n,t,l)),u&&u.add(l),i.staticSheet=l,i.dynamicStyles=fL(c)}if(i.dynamicStyles){const l=r.jss.createStyleSheet(i.dynamicStyles,T({link:!0},s));l.update(o),l.attach(),e.dynamicSheet=l,e.classes=wL({baseClasses:i.staticSheet.classes,newClasses:l.classes}),u&&u.add(l)}else e.classes=i.staticSheet.classes;i.refs+=1}function A$e({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function M$e({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=ru.get(r.sheetsManager,n,t);a.refs-=1;const o=r.sheetsRegistry;a.refs===0&&(ru.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}function F$e(e,t){const r=d.useRef([]);let n;const a=d.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),d.useEffect(()=>()=>{n&&n()},[a])}function SL(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:o=T$e}=t,i=Pe(t,k$e),s=$$e(e),u=r||n||"makeStyles";return s.options={index:E$e(),name:r,meta:u,classNamePrefix:u},(c={})=>{const f=b$e()||o,p=T({},d.useContext(C$e),i),v=d.useRef(),g=d.useRef();return F$e(()=>{const S={name:r,state:{},stylesCreator:s,stylesOptions:p,theme:f};return I$e(S,c),g.current=!1,v.current=S,()=>{M$e(S)}},[f,s]),d.useEffect(()=>{g.current&&A$e(v.current,c),g.current=!0}),j$e(v.current,c.classes,a)}}const N$e=e=>R.jsxs(bEe,{...e,children:[R.jsx(Nn,{label:"Search",source:"q",alwaysOn:!0}),R.jsx(yN,{source:"status",choices:[{id:"success",name:"Success"},{id:"failed",name:"Failed"},{id:"untriggered",name:"Waiting to Run"}]}),R.jsx(rw,{source:"disabled"})]}),L$e=e=>R.jsxs(d.Fragment,{children:[R.jsx(SRe,{...e}),R.jsx(_Re,{...e}),R.jsx(F5,{...e})]}),D$e=e=>R.jsx(hN,{rowsPerPageOptions:[5,10,25,50,100],...e}),B$e=SL(e=>({hiddenOnSmallScreens:{display:"table-cell",[e.breakpoints.down("md")]:{display:"none"}},cell:{padding:"6px 8px 6px 8px"}})),z$e=e=>{const t=B$e();return R.jsx(TE,{...e,filters:R.jsx(N$e,{}),bulkActionButtons:R.jsx(L$e,{}),pagination:R.jsx(D$e,{}),children:R.jsxs(Cp,{rowClick:"show",classes:{rowCell:t.cell},children:[R.jsx(fr,{source:"id",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"displayname",label:"Display name"}),R.jsx(fr,{source:"timezone",sortable:!1,cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"schedule"}),R.jsx(qd,{source:"success_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(qd,{source:"error_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Ya,{source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(kRe,{source:"disabled",label:"Enabled",sortable:!1}),R.jsx(qd,{source:"retries",sortable:!1}),R.jsx($Re,{source:"status",sortable:!1}),R.jsx(Ya,{source:"next",showTime:!0}),R.jsx(uE,{})]})})};var _L={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Al,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),f=function(p,v,g){var y,S,x,m=p&f.F,b=p&f.G,h=p&f.S,_=p&f.P,C=p&f.B,E=p&f.W,w=b?s:s[v]||(s[v]={}),O=w.prototype,P=b?i:h?i[v]:(i[v]||{}).prototype;for(y in b&&(g=v),g)(S=!m&&P&&P[y]!==void 0)&&c(w,y)||(x=S?P[y]:g[y],w[y]=b&&typeof P[y]!="function"?g[y]:C&&S?u(x,i):E&&P[y]==x?function(k){var j=function($,F,z){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k($);case 2:return new k($,F)}return new k($,F,z)}return k.apply(this,arguments)};return j.prototype=k.prototype,j}(x):_&&typeof x=="function"?u(Function.call,x):x,_&&((w.virtual||(w.virtual={}))[y]=x,p&f.R&&O&&!O[y]&&l(O,y,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,v){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),v===void 0?g:s(g,v)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,f){var p,v=s(c),g=0,y=[];for(p in v)p!=l&&i(v,p)&&y.push(p);for(;f.length>g;)i(v,p=f[g++])&&(~u(y,p)||y.push(p));return y}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(v,g){try{return v[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=S(o(49)),s=S(o(76)),u=S(o(81)),l=S(o(89)),c=S(o(93)),f=function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&(P[k]=O[k]);return P.default=O,P}(o(94)),p=S(o(132)),v=S(o(133)),g=S(o(138)),y=o(139);function S(O){return O&&O.__esModule?O:{default:O}}var x=f.default,m=(0,l.default)(x),b=(0,g.default)(v.default,y.rgb2yuv,function(O){var P,k=(0,u.default)(O,3),j=k[0],$=k[1],F=k[2];return[(P=j,P<.25?1:P<.5?.9-P:1.1-P),$,F]},y.yuv2rgb,p.default),h=function(O){return function(P){return{className:[P.className,O.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},O.style||{})}}},_=function(O,P){var k=(0,l.default)(P);for(var j in O)k.indexOf(j)===-1&&k.push(j);return k.reduce(function($,F){return $[F]=function(z,M){if(z===void 0)return M;if(M===void 0)return z;var W=z===void 0?"undefined":(0,i.default)(z),B=M===void 0?"undefined":(0,i.default)(M);switch(W){case"string":switch(B){case"string":return[M,z].filter(Boolean).join(" ");case"object":return h({className:z,style:M});case"function":return function(U){for(var q=arguments.length,ie=Array(q>1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe2?k-2:0),$=2;$3?P-3:0),j=3;j1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=$.defaultBase16,M=z===void 0?x:z,W=$.base16Themes,B=W===void 0?null:W,U=w(F,B);U&&(F=(0,s.default)({},U,F));var q=m.reduce(function(pe,Te){return pe[Te]=F[Te]||M[Te],pe},{}),ie=(0,l.default)(F).reduce(function(pe,Te){return m.indexOf(Te)===-1&&(pe[Te]=F[Te]),pe},{}),oe=O(q),Ee=_(ie,oe);return(0,c.default)(C,2).apply(void 0,[Ee].concat(k))},3),a.getBase16Theme=function(O,P){if(O&&O.extend&&(O=O.extend),typeof O=="string"){var k=O.split(":"),j=(0,u.default)(k,2),$=j[0],F=j[1];O=(P||{})[$]||f[$],F==="inverted"&&(O=E(O))}return O&&O.hasOwnProperty("base00")?O:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(h,_,C){return Function.prototype.apply.call(h,_,C)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var l=Number.isNaN||function(h){return h!=h};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(h,_){return new Promise(function(C,E){function w(){O!==void 0&&h.removeListener("error",O),C([].slice.call(arguments))}var O;_!=="error"&&(O=function(P){h.removeListener(_,w),E(P)},h.once("error",O)),h.once(_,w)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function v(h){return h._maxListeners===void 0?c.defaultMaxListeners:h._maxListeners}function g(h,_,C,E){var w,O,P,k;if(p(C),(O=h._events)===void 0?(O=h._events=Object.create(null),h._eventsCount=0):(O.newListener!==void 0&&(h.emit("newListener",_,C.listener?C.listener:C),O=h._events),P=O[_]),P===void 0)P=O[_]=C,++h._eventsCount;else if(typeof P=="function"?P=O[_]=E?[C,P]:[P,C]:E?P.unshift(C):P.push(C),(w=v(h))>0&&P.length>w&&!P.warned){P.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=h,j.type=_,j.count=P.length,k=j,console&&console.warn&&console.warn(k)}return h}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(h,_,C){var E={fired:!1,wrapFn:void 0,target:h,type:_,listener:C},w=y.bind(E);return w.listener=C,E.wrapFn=w,w}function x(h,_,C){var E=h._events;if(E===void 0)return[];var w=E[_];return w===void 0?[]:typeof w=="function"?C?[w.listener||w]:[w]:C?function(O){for(var P=new Array(O.length),k=0;k0&&(O=_[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var k=w[h];if(k===void 0)return!1;if(typeof k=="function")u(k,this,_);else{var j=k.length,$=b(k,j);for(C=0;C=0;O--)if(C[O]===_||C[O].listener===_){P=C[O].listener,w=O;break}if(w<0)return this;w===0?C.shift():function(k,j){for(;j+1=0;E--)this.removeListener(h,_[E]);return this},c.prototype.listeners=function(h){return x(this,h,!0)},c.prototype.rawListeners=function(h){return x(this,h,!1)},c.listenerCount=function(h,_){return typeof h.listenerCount=="function"?h.listenerCount(_):m.call(h,_)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var f,p,v=String(s(l)),g=i(c),y=v.length;return g<0||g>=y?u?"":void 0:(f=v.charCodeAt(g))<55296||f>56319||g+1===y||(p=v.charCodeAt(g+1))<56320||p>57343?u?v.charAt(g):f:u?v.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),v=p.length,g=0;v>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,f,p){var v,g=i(c),y=s(g.length),S=u(p,y);if(l&&f!=f){for(;y>S;)if((v=g[S++])!=v)return!0}else for(;y>S;S++)if((l||S in g)&&g[S]===f)return l||S||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),f=o(68).KEY,p=o(8),v=o(26),g=o(28),y=o(17),S=o(2),x=o(30),m=o(31),b=o(69),h=o(70),_=o(10),C=o(11),E=o(18),w=o(9),O=o(23),P=o(16),k=o(38),j=o(71),$=o(72),F=o(32),z=o(7),M=o(13),W=$.f,B=z.f,U=j.f,q=i.Symbol,ie=i.JSON,oe=ie&&ie.stringify,Ee=S("_hidden"),pe=S("toPrimitive"),Te={}.propertyIsEnumerable,ye=v("symbol-registry"),be=v("symbols"),we=v("op-symbols"),ve=Object.prototype,De=typeof q=="function"&&!!F.f,Me=i.QObject,Qe=!Me||!Me.prototype||!Me.prototype.findChild,Ne=u&&p(function(){return k(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(G,le,he){var Re=W(ve,le);Re&&delete ve[le],B(G,le,he),Re&&G!==ve&&B(ve,le,Re)}:B,Ae=function(G){var le=be[G]=k(q.prototype);return le._k=G,le},He=De&&typeof q.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof q},ht=function(G,le,he){return G===ve&&ht(we,le,he),_(G),le=O(le,!0),_(he),s(be,le)?(he.enumerable?(s(G,Ee)&&G[Ee][le]&&(G[Ee][le]=!1),he=k(he,{enumerable:P(0,!1)})):(s(G,Ee)||B(G,Ee,P(1,{})),G[Ee][le]=!0),Ne(G,le,he)):B(G,le,he)},ut=function(G,le){_(G);for(var he,Re=b(le=w(le)),Be=0,Ye=Re.length;Ye>Be;)ht(G,he=Re[Be++],le[he]);return G},V=function(G){var le=Te.call(this,G=O(G,!0));return!(this===ve&&s(be,G)&&!s(we,G))&&(!(le||!s(this,G)||!s(be,G)||s(this,Ee)&&this[Ee][G])||le)},K=function(G,le){if(G=w(G),le=O(le,!0),G!==ve||!s(be,le)||s(we,le)){var he=W(G,le);return!he||!s(be,le)||s(G,Ee)&&G[Ee][le]||(he.enumerable=!0),he}},te=function(G){for(var le,he=U(w(G)),Re=[],Be=0;he.length>Be;)s(be,le=he[Be++])||le==Ee||le==f||Re.push(le);return Re},se=function(G){for(var le,he=G===ve,Re=U(he?we:w(G)),Be=[],Ye=0;Re.length>Ye;)!s(be,le=Re[Ye++])||he&&!s(ve,le)||Be.push(be[le]);return Be};De||(c((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var G=y(arguments.length>0?arguments[0]:void 0),le=function(he){this===ve&&le.call(we,he),s(this,Ee)&&s(this[Ee],G)&&(this[Ee][G]=!1),Ne(this,G,P(1,he))};return u&&Qe&&Ne(ve,G,{configurable:!0,set:le}),Ae(G)}).prototype,"toString",function(){return this._k}),$.f=K,z.f=ht,o(41).f=j.f=te,o(19).f=V,F.f=se,u&&!o(14)&&c(ve,"propertyIsEnumerable",V,!0),x.f=function(G){return Ae(S(G))}),l(l.G+l.W+l.F*!De,{Symbol:q});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fe=0;de.length>fe;)S(de[fe++]);for(var Oe=M(S.store),ae=0;Oe.length>ae;)m(Oe[ae++]);l(l.S+l.F*!De,"Symbol",{for:function(G){return s(ye,G+="")?ye[G]:ye[G]=q(G)},keyFor:function(G){if(!He(G))throw TypeError(G+" is not a symbol!");for(var le in ye)if(ye[le]===G)return le},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),l(l.S+l.F*!De,"Object",{create:function(G,le){return le===void 0?k(G):ut(k(G),le)},defineProperty:ht,defineProperties:ut,getOwnPropertyDescriptor:K,getOwnPropertyNames:te,getOwnPropertySymbols:se});var Z=p(function(){F.f(1)});l(l.S+l.F*Z,"Object",{getOwnPropertySymbols:function(G){return F.f(E(G))}}),ie&&l(l.S+l.F*(!De||p(function(){var G=q();return oe([G])!="[null]"||oe({a:G})!="{}"||oe(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var le,he,Re=[G],Be=1;arguments.length>Be;)Re.push(arguments[Be++]);if(he=le=Re[1],(C(le)||G!==void 0)&&!He(G))return h(le)||(le=function(Ye,je){if(typeof he=="function"&&(je=he.call(this,Ye,je)),!He(je))return je}),Re[1]=le,oe.apply(ie,Re)}}),q.prototype[pe]||o(6)(q.prototype,pe,q.prototype.valueOf),g(q,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!o(8)(function(){return f(Object.preventExtensions({}))}),v=function(y){l(y,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(y,S){if(!s(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!u(y,i)){if(!f(y))return"F";if(!S)return"E";v(y)}return y[i].i},getWeak:function(y,S){if(!u(y,i)){if(!f(y))return!0;if(!S)return!1;v(y)}return y[i].w},onFreeze:function(y){return p&&g.NEED&&f(y)&&!u(y,i)&&v(y),y}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,v=f(l),g=u.f,y=0;v.length>y;)g.call(l,p=v[y++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),f=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(v,g){if(v=u(v),g=l(g,!0),f)try{return p(v,g)}catch{}if(c(v,g))return s(!i.f.call(v,g),v[g])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var h,_=f(arguments[x++]),C=m?s(_).concat(m(_)):s(_),E=C.length,w=0;E>w;)h=C[w++],i&&!b.call(_,h)||(y[h]=_[h]);return y}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var v=[],g=!0,y=!1,S=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(v.push(x.value),!p||v.length!==p);g=!0);}catch(b){y=!0,S=b}finally{try{!g&&m.return&&m.return()}finally{if(y)throw S}}return v}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,y=/^0o[0-7]+$/i,S=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,h=m||b||Function("return this")();function _(ae,Z,G){switch(G.length){case 0:return ae.call(Z);case 1:return ae.call(Z,G[0]);case 2:return ae.call(Z,G[0],G[1]);case 3:return ae.call(Z,G[0],G[1],G[2])}return ae.apply(Z,G)}function C(ae,Z){return!!(ae&&ae.length)&&function(G,le,he){if(le!=le)return function(Ye,je,Je,_e){for(var Fe=Ye.length,Ge=Je+(_e?1:-1);_e?Ge--:++Ge-1}function E(ae){return ae!=ae}function w(ae,Z){for(var G=ae.length,le=0;G--;)ae[G]===Z&&le++;return le}function O(ae,Z){for(var G=-1,le=ae.length,he=0,Re=[];++G2?k:void 0);function Te(ae){return de(ae)?ie(ae):{}}function ye(ae){return!(!de(ae)||function(Z){return!!M&&M in Z}(ae))&&(function(Z){var G=de(Z)?U.call(Z):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(ae)||function(Z){var G=!1;if(Z!=null&&typeof Z.toString!="function")try{G=!!(Z+"")}catch{}return G}(ae)?q:g).test(function(Z){if(Z!=null){try{return W.call(Z)}catch{}try{return Z+""}catch{}}return""}(ae))}function be(ae,Z,G,le){for(var he=-1,Re=ae.length,Be=G.length,Ye=-1,je=Z.length,Je=oe(Re-Be,0),_e=Array(je+Je),Fe=!le;++Ye1&&at.reverse(),_e&&je1?"& ":"")+Z[le],Z=Z.join(G>2?", ":" "),ae.replace(l,`{ /* [wrapped with `+Z+`] */ `)}function ut(ae,Z){return!!(Z=Z??9007199254740991)&&(typeof ae=="number"||S.test(ae))&&ae>-1&&ae%1==0&&ae1&&u--,c=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,l[g]=255*c;return l}},function(n,a,o){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,l=s||u||Function("return this")();function c(O,P,k){switch(k.length){case 0:return O.call(P);case 1:return O.call(P,k[0]);case 2:return O.call(P,k[0],k[1]);case 3:return O.call(P,k[0],k[1],k[2])}return O.apply(P,k)}function f(O,P){for(var k=-1,j=P.length,$=O.length;++k-1&&$%1==0&&$<=9007199254740991}(j.length)&&!function($){var F=function(z){var M=typeof z;return!!z&&(M=="object"||M=="function")}($)?g.call($):"";return F=="[object Function]"||F=="[object GeneratorFunction]"}(j)}(k)}(P)&&v.call(P,"callee")&&(!S.call(P,"callee")||g.call(P)=="[object Arguments]")}(O)||!!(x&&O&&O[x])}var h=Array.isArray,_,C,E,w=(C=function(O){var P=(O=function j($,F,z,M,W){var B=-1,U=$.length;for(z||(z=b),W||(W=[]);++B0&&z(q)?F>1?j(q,F-1,z,M,W):f(W,q):M||(W[W.length]=q)}return W}(O,1)).length,k=P;for(_;k--;)if(typeof O[k]!="function")throw new TypeError("Expected a function");return function(){for(var j=0,$=P?O[j].apply(this,arguments):arguments[0];++j2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var I,A=g(N);if(D){var L=g(this).constructor;I=Reflect.construct(A,arguments,L)}else I=A.apply(this,arguments);return x(this,I)}}o.r(a);var b=o(0),h=o.n(b);function _(){var N=this.constructor.getDerivedStateFromProps(this.props,this.state);N!=null&&this.setState(N)}function C(N){this.setState((function(D){var I=this.constructor.getDerivedStateFromProps(N,D);return I??null}).bind(this))}function E(N,D){try{var I=this.props,A=this.state;this.props=N,this.state=D,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(I,A)}finally{this.props=I,this.state=A}}function w(N){var D=N.prototype;if(!D||!D.isReactComponent)throw new Error("Can only polyfill class components");if(typeof N.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function")return N;var I=null,A=null,L=null;if(typeof D.componentWillMount=="function"?I="componentWillMount":typeof D.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof D.componentWillReceiveProps=="function"?A="componentWillReceiveProps":typeof D.UNSAFE_componentWillReceiveProps=="function"&&(A="UNSAFE_componentWillReceiveProps"),typeof D.componentWillUpdate=="function"?L="componentWillUpdate":typeof D.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),I!==null||A!==null||L!==null){var H=N.displayName||N.name,re=typeof N.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. @@ -232,4 +232,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof N.getDerivedStateFromProps=="function"&&(D.componentWillMount=_,D.componentWillReceiveProps=C),typeof D.getSnapshotBeforeUpdate=="function"){if(typeof D.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");D.componentWillUpdate=E;var Y=D.componentDidUpdate;D.componentDidUpdate=function(Q,me,$e){var Ze=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:$e;Y.call(this,Q,me,Ze)}}return N}function O(N,D){if(N==null)return{};var I,A,L=function(re,Y){if(re==null)return{};var Q,me,$e={},Ze=Object.keys(re);for(me=0;me=0||($e[Q]=re[Q]);return $e}(N,D);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);for(A=0;A=0||Object.prototype.propertyIsEnumerable.call(N,I)&&(L[I]=N[I])}return L}function P(N){var D=function(I){return{}.toString.call(I).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(N);return D==="number"&&(D=isNaN(N)?"nan":(0|N)!=N?"float":"integer"),D}_.__suppressDeprecationWarning=!0,C.__suppressDeprecationWarning=!0,E.__suppressDeprecationWarning=!0;var k={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},j={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},$={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},F=o(45),z=function(N){var D=function(I){return{backgroundColor:I.base00,ellipsisColor:I.base09,braceColor:I.base07,expandedIcon:I.base0D,collapsedIcon:I.base0E,keyColor:I.base07,arrayKeyColor:I.base0C,objectSize:I.base04,copyToClipboard:I.base0F,copyToClipboardCheck:I.base0D,objectBorder:I.base02,dataTypes:{boolean:I.base0E,date:I.base0D,float:I.base0B,function:I.base0D,integer:I.base0F,string:I.base09,nan:I.base08,null:I.base0A,undefined:I.base05,regexp:I.base0A,background:I.base02},editVariable:{editIcon:I.base0E,cancelIcon:I.base09,removeIcon:I.base09,addIcon:I.base0E,checkIcon:I.base0E,background:I.base01,color:I.base0A,border:I.base07},addKeyModal:{background:I.base05,border:I.base04,color:I.base0A,labelColor:I.base01},validationFailure:{background:I.base09,iconColor:I.base01,fontColor:I.base01}}}(N);return{"app-container":{fontFamily:$.globalFontFamily,cursor:$.globalCursor,backgroundColor:D.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:D.ellipsisColor,fontSize:$.ellipsisFontSize,lineHeight:$.ellipsisLineHeight,cursor:$.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:$.braceCursor,fontWeight:$.braceFontWeight,color:D.braceColor},"expanded-icon":{color:D.expandedIcon},"collapsed-icon":{color:D.collapsedIcon},colon:{display:"inline-block",margin:$.keyMargin,color:D.keyColor,verticalAlign:"top"},objectKeyVal:function(I,A){return{style:u({paddingTop:$.keyValPaddingTop,paddingRight:$.keyValPaddingRight,paddingBottom:$.keyValPaddingBottom,borderLeft:$.keyValBorderLeft+" "+D.objectBorder,":hover":{paddingLeft:A.paddingLeft-1+"px",borderLeft:$.keyValBorderHover+" "+D.objectBorder}},A)}},"object-key-val-no-border":{padding:$.keyValPadding},"pushed-content":{marginLeft:$.pushedContentMarginLeft},variableValue:function(I,A){return{style:u({display:"inline-block",paddingRight:$.variableValuePaddingRight,position:"relative"},A)}},"object-name":{display:"inline-block",color:D.keyColor,letterSpacing:$.keyLetterSpacing,fontStyle:$.keyFontStyle,verticalAlign:$.keyVerticalAlign,opacity:$.keyOpacity,":hover":{opacity:$.keyOpacityHover}},"array-key":{display:"inline-block",color:D.arrayKeyColor,letterSpacing:$.keyLetterSpacing,fontStyle:$.keyFontStyle,verticalAlign:$.keyVerticalAlign,opacity:$.keyOpacity,":hover":{opacity:$.keyOpacityHover}},"object-size":{color:D.objectSize,borderRadius:$.objectSizeBorderRadius,fontStyle:$.objectSizeFontStyle,margin:$.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:$.dataTypeFontSize,marginRight:$.dataTypeMarginRight,opacity:$.datatypeOpacity},boolean:{display:"inline-block",color:D.dataTypes.boolean},date:{display:"inline-block",color:D.dataTypes.date},"date-value":{marginLeft:$.dateValueMarginLeft},float:{display:"inline-block",color:D.dataTypes.float},function:{display:"inline-block",color:D.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:D.dataTypes.integer},string:{display:"inline-block",color:D.dataTypes.string},nan:{display:"inline-block",color:D.dataTypes.nan,fontSize:$.nanFontSize,fontWeight:$.nanFontWeight,backgroundColor:D.dataTypes.background,padding:$.nanPadding,borderRadius:$.nanBorderRadius},null:{display:"inline-block",color:D.dataTypes.null,fontSize:$.nullFontSize,fontWeight:$.nullFontWeight,backgroundColor:D.dataTypes.background,padding:$.nullPadding,borderRadius:$.nullBorderRadius},undefined:{display:"inline-block",color:D.dataTypes.undefined,fontSize:$.undefinedFontSize,padding:$.undefinedPadding,borderRadius:$.undefinedBorderRadius,backgroundColor:D.dataTypes.background},regexp:{display:"inline-block",color:D.dataTypes.regexp},"copy-to-clipboard":{cursor:$.clipboardCursor},"copy-icon":{color:D.copyToClipboard,fontSize:$.iconFontSize,marginRight:$.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:D.copyToClipboardCheck,marginLeft:$.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:$.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:$.metaDataPadding},"icon-container":{display:"inline-block",width:$.iconContainerWidth},tooltip:{padding:$.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.removeIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.addIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.editIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:$.iconCursor,color:D.editVariable.checkIcon,fontSize:$.iconFontSize,paddingRight:$.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:$.iconCursor,color:D.editVariable.cancelIcon,fontSize:$.iconFontSize,paddingRight:$.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:$.editInputMinWidth,borderRadius:$.editInputBorderRadius,backgroundColor:D.editVariable.background,color:D.editVariable.color,padding:$.editInputPadding,marginRight:$.editInputMarginRight,fontFamily:$.editInputFontFamily},"detected-row":{paddingTop:$.detectedRowPaddingTop},"key-modal-request":{position:$.addKeyCoverPosition,top:$.addKeyCoverPositionPx,left:$.addKeyCoverPositionPx,right:$.addKeyCoverPositionPx,bottom:$.addKeyCoverPositionPx,backgroundColor:$.addKeyCoverBackground},"key-modal":{width:$.addKeyModalWidth,backgroundColor:D.addKeyModal.background,marginLeft:$.addKeyModalMargin,marginRight:$.addKeyModalMargin,padding:$.addKeyModalPadding,borderRadius:$.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:D.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:D.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:D.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:D.addKeyModal.labelColor,fontSize:$.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:D.editVariable.addIcon,fontSize:$.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:D.ellipsisColor,fontSize:$.ellipsisFontSize,lineHeight:$.ellipsisLineHeight,cursor:$.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:D.validationFailure.fontColor,backgroundColor:D.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:D.validationFailure.iconColor,fontSize:$.iconFontSize,transform:"rotate(45deg)"}}};function M(N,D,I){return N||console.error("theme has not been set"),function(A){var L=k;return A!==!1&&A!=="none"||(L=j),Object(F.createStyling)(z,{defaultBase16:L})(A)}(N)(D,I)}var W=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=(A.rjvId,A.type_name),H=A.displayDataTypes,re=A.theme;return H?h.a.createElement("span",Object.assign({className:"data-type-label"},M(re,"data-type-label")),L):null}}]),I}(h.a.PureComponent),B=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"boolean"),h.a.createElement(W,Object.assign({type_name:"bool"},A)),A.value?"true":"false")}}]),I}(h.a.PureComponent),U=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"date"),h.a.createElement(W,Object.assign({type_name:"date"},A)),h.a.createElement("span",Object.assign({className:"date-value"},M(A.theme,"date-value")),A.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),I}(h.a.PureComponent),q=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"float"),h.a.createElement(W,Object.assign({type_name:"float"},A)),this.props.value)}}]),I}(h.a.PureComponent);function ie(N,D){(D==null||D>N.length)&&(D=N.length);for(var I=0,A=new Array(D);I"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(I=oe(N))||D&&N&&typeof N.length=="number"){I&&(N=I);var A=0,L=function(){};return{s:L,n:function(){return A>=N.length?{done:!0}:{done:!1,value:N[A++]}},e:function(Q){throw Q},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,re=!0,Y=!1;return{s:function(){I=N[Symbol.iterator]()},n:function(){var Q=I.next();return re=Q.done,Q},e:function(Q){Y=!0,H=Q},f:function(){try{re||I.return==null||I.return()}finally{if(Y)throw H}}}}function pe(N){return function(D){if(Array.isArray(D))return ie(D)}(N)||function(D){if(typeof Symbol<"u"&&Symbol.iterator in Object(D))return Array.from(D)}(N)||oe(N)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),ye=new(o(47)).Dispatcher,be=new(function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reL&&(Y.style.cursor="pointer",this.state.collapsed&&(re=h.a.createElement("span",null,re.substring(0,L),h.a.createElement("span",M(H,"ellipsis")," ...")))),h.a.createElement("div",M(H,"string"),h.a.createElement(W,Object.assign({type_name:"string"},A)),h.a.createElement("span",Object.assign({className:"string-value"},Y,{onClick:this.toggleCollapsed}),'"',re,'"'))}}]),I}(h.a.PureComponent),He=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){return h.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),I}(h.a.PureComponent);function ht(){return(ht=Object.assign||function(N){for(var D=1;D=0||(vo[kr]=lt[kr]);return vo}(N,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),$e,Ze=me.value!==void 0,tt=Object(b.useRef)(null),St=te(tt,D),st=Object(b.useRef)(0),xt=Object(b.useRef)(),jt=function(){var lt=tt.current,Dt=I&&xt.current?xt.current:function(ot){var Vt=window.getComputedStyle(ot);if(Vt===null)return null;var mr,vt=(mr=Vt,ae.reduce(function(Go,Qo){return Go[Qo]=mr[Qo],Go},{})),Gr=vt.boxSizing;return Gr===""?null:(Z&&Gr==="border-box"&&(vt.width=parseFloat(vt.width)+parseFloat(vt.borderRightWidth)+parseFloat(vt.borderLeftWidth)+parseFloat(vt.paddingRight)+parseFloat(vt.paddingLeft)+"px"),{sizingStyle:vt,paddingSize:parseFloat(vt.paddingBottom)+parseFloat(vt.paddingTop),borderSize:parseFloat(vt.borderBottomWidth)+parseFloat(vt.borderTopWidth)})}(lt);if(Dt){xt.current=Dt;var kr=function(ot,Vt,mr,vt){mr===void 0&&(mr=1),vt===void 0&&(vt=1/0),fe||((fe=document.createElement("textarea")).setAttribute("tab-index","-1"),fe.setAttribute("aria-hidden","true"),de(fe)),fe.parentNode===null&&document.body.appendChild(fe);var Gr=ot.paddingSize,Go=ot.borderSize,Qo=ot.sizingStyle,YE=Qo.boxSizing;Object.keys(Qo).forEach(function(Zy){var pl=Zy;fe.style[pl]=Qo[pl]}),de(fe),fe.value=Vt;var kp=function(Zy,pl){var JE=Zy.scrollHeight;return pl.sizingStyle.boxSizing==="border-box"?JE+pl.borderSize:JE-pl.paddingSize}(fe,ot);fe.value="x";var Xy=fe.scrollHeight-Gr,Yy=Xy*mr;YE==="border-box"&&(Yy=Yy+Gr+Go),kp=Math.max(Yy,kp);var Jy=Xy*vt;return YE==="border-box"&&(Jy=Jy+Gr+Go),[kp=Math.min(Jy,kp),Xy]}(Dt,lt.value||lt.placeholder||"x",L,A),yn=kr[0],vo=kr[1];st.current!==yn&&(st.current=yn,lt.style.setProperty("height",yn+"px","important"),Q(yn,{rowHeight:vo}))}};return Object(b.useLayoutEffect)(jt),$e=V(jt),Object(b.useLayoutEffect)(function(){var lt=function(Dt){$e.current(Dt)};return window.addEventListener("resize",lt),function(){window.removeEventListener("resize",lt)}},[]),Object(b.createElement)("textarea",ht({},me,{onChange:function(lt){Ze||jt(),re(lt)},ref:St}))},le=Object(b.forwardRef)(G);function he(N){N=N.trim();try{if((N=JSON.stringify(JSON.parse(N)))[0]==="[")return Re("array",JSON.parse(N));if(N[0]==="{")return Re("object",JSON.parse(N));if(N.match(/\-?\d+\.\d+/)&&N.match(/\-?\d+\.\d+/)[0]===N)return Re("float",parseFloat(N));if(N.match(/\-?\d+e-\d+/)&&N.match(/\-?\d+e-\d+/)[0]===N)return Re("float",Number(N));if(N.match(/\-?\d+/)&&N.match(/\-?\d+/)[0]===N)return Re("integer",parseInt(N));if(N.match(/\-?\d+e\+\d+/)&&N.match(/\-?\d+e\+\d+/)[0]===N)return Re("integer",Number(N))}catch{}switch(N=N.toLowerCase()){case"undefined":return Re("undefined",void 0);case"nan":return Re("nan",NaN);case"null":return Re("null",null);case"true":return Re("boolean",!0);case"false":return Re("boolean",!1);default:if(N=Date.parse(N))return Re("date",new Date(N))}return Re(!1,null)}function Re(N,D){return{type:N,value:D}}var Be=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),I}(h.a.PureComponent),Ye=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),I}(h.a.PureComponent),je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),Je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),_e=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),I}(h.a.PureComponent),Fe=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),I}(h.a.PureComponent),Ge=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),I}(h.a.PureComponent),nt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),mt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),Ot=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),I}(h.a.PureComponent),kt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),I}(h.a.PureComponent),Pt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent);function at(N){return N||(N={}),{style:u(u({verticalAlign:"middle"},N),{},{color:N.color?N.color:"#000000",height:"1em",width:"1em"})}}var It=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).copiedTimer=null,L.handleCopy=function(){var H=document.createElement("textarea"),re=L.props,Y=re.clickCallback,Q=re.src,me=re.namespace;H.innerHTML=JSON.stringify(L.clipboardValue(Q),null," "),document.body.appendChild(H),H.select(),document.execCommand("copy"),document.body.removeChild(H),L.copiedTimer=setTimeout(function(){L.setState({copied:!1})},5500),L.setState({copied:!0},function(){typeof Y=="function"&&Y({src:Q,namespace:me,name:me[me.length-1]})})},L.getClippyIcon=function(){var H=L.props.theme;return L.state.copied?h.a.createElement("span",null,h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon"))),h.a.createElement("span",M(H,"copy-icon-copied"),"✔")):h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon")))},L.clipboardValue=function(H){switch(P(H)){case"function":case"regexp":return H.toString();default:return H}},L.state={copied:!1},L}return f(I,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var A=this.props,L=(A.src,A.theme),H=A.hidden,re=A.rowHovered,Y=M(L,"copy-to-clipboard").style,Q="inline";return H&&(Q="none"),h.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:re?"inline-block":"none"}},h.a.createElement("span",{style:u(u({},Y),{},{display:Q}),onClick:this.handleCopy},this.getClippyIcon()))}}]),I}(h.a.PureComponent),nr=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).getEditIcon=function(){var H=L.props,re=H.variable,Y=H.theme;return h.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(kt,Object.assign({className:"click-to-edit-icon"},M(Y,"editVarIcon"),{onClick:function(){L.prepopInput(re)}})))},L.prepopInput=function(H){if(L.props.onEdit!==!1){var re=function(Q){var me;switch(P(Q)){case"undefined":me="undefined";break;case"nan":me="NaN";break;case"string":me=Q;break;case"date":case"function":case"regexp":me=Q.toString();break;default:try{me=JSON.stringify(Q,null," ")}catch{me=""}}return me}(H.value),Y=he(re);L.setState({editMode:!0,editValue:re,parsedInput:{type:Y.type,value:Y.value}})}},L.getRemoveIcon=function(){var H=L.props,re=H.variable,Y=H.namespace,Q=H.theme,me=H.rjvId;return h.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(Q,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:me,data:{name:re.name,namespace:Y,existing_value:re.value,variable_removed:!0}})}})))},L.getValue=function(H,re){var Y=!re&&H.type,Q=S(L).props;switch(Y){case!1:return L.getEditInput();case"string":return h.a.createElement(Ae,Object.assign({value:H.value},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:H.value},Q));case"float":return h.a.createElement(q,Object.assign({value:H.value},Q));case"boolean":return h.a.createElement(B,Object.assign({value:H.value},Q));case"function":return h.a.createElement(ve,Object.assign({value:H.value},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:H.value},Q));case"regexp":return h.a.createElement(Ne,Object.assign({value:H.value},Q));default:return h.a.createElement("div",{className:"object-value"},JSON.stringify(H.value))}},L.getEditInput=function(){var H=L.props.theme,re=L.state.editValue;return h.a.createElement("div",null,h.a.createElement(le,Object.assign({type:"text",inputRef:function(Y){return Y&&Y.focus()},value:re,className:"variable-editor",onChange:function(Y){var Q=Y.target.value,me=he(Q);L.setState({editValue:Q,parsedInput:{type:me.type,value:me.value}})},onKeyDown:function(Y){switch(Y.key){case"Escape":L.setState({editMode:!1,editValue:""});break;case"Enter":(Y.ctrlKey||Y.metaKey)&&L.submitEdit(!0)}Y.stopPropagation()},placeholder:"update this value",minRows:2},M(H,"edit-input"))),h.a.createElement("div",M(H,"edit-icon-container"),h.a.createElement(nt,Object.assign({className:"edit-cancel"},M(H,"cancel-icon"),{onClick:function(){L.setState({editMode:!1,editValue:""})}})),h.a.createElement(Pt,Object.assign({className:"edit-check string-value"},M(H,"check-icon"),{onClick:function(){L.submitEdit()}})),h.a.createElement("div",null,L.showDetected())))},L.submitEdit=function(H){var re=L.props,Y=re.variable,Q=re.namespace,me=re.rjvId,$e=L.state,Ze=$e.editValue,tt=$e.parsedInput,St=Ze;H&&tt.type&&(St=tt.value),L.setState({editMode:!1}),ye.dispatch({name:"VARIABLE_UPDATED",rjvId:me,data:{name:Y.name,namespace:Q,existing_value:Y.value,new_value:St,variable_removed:!1}})},L.showDetected=function(){var H=L.props,re=H.theme,Y=(H.variable,H.namespace,H.rjvId,L.state.parsedInput),Q=(Y.type,Y.value,L.getDetectedInput());if(Q)return h.a.createElement("div",null,h.a.createElement("div",M(re,"detected-row"),Q,h.a.createElement(Pt,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},M(re,"check-icon").style),onClick:function(){L.submitEdit(!0)}})))},L.getDetectedInput=function(){var H=L.state.parsedInput,re=H.type,Y=H.value,Q=S(L).props,me=Q.theme;if(re!==!1)switch(re.toLowerCase()){case"object":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"{"),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"}"));case"array":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"["),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"]"));case"string":return h.a.createElement(Ae,Object.assign({value:Y},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:Y},Q));case"float":return h.a.createElement(q,Object.assign({value:Y},Q));case"boolean":return h.a.createElement(B,Object.assign({value:Y},Q));case"function":return h.a.createElement(ve,Object.assign({value:Y},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:new Date(Y)},Q))}},L.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.variable,re=L.singleIndent,Y=L.type,Q=L.theme,me=L.namespace,$e=L.indentWidth,Ze=L.enableClipboard,tt=L.onEdit,St=L.onDelete,st=L.onSelect,xt=L.displayArrayKey,jt=L.quotesOnKeys,lt=this.state.editMode;return h.a.createElement("div",Object.assign({},M(Q,"objectKeyVal",{paddingLeft:$e*re}),{onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))},className:"variable-row",key:H.name}),Y=="array"?xt?h.a.createElement("span",Object.assign({},M(Q,"array-key"),{key:H.name+"_"+me}),H.name,h.a.createElement("div",M(Q,"colon"),":")):null:h.a.createElement("span",null,h.a.createElement("span",Object.assign({},M(Q,"object-name"),{className:"object-key",key:H.name+"_"+me}),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",{style:{display:"inline-block"}},H.name),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(Q,"colon"),":")),h.a.createElement("div",Object.assign({className:"variable-value",onClick:st===!1&&tt===!1?null:function(Dt){var kr=pe(me);(Dt.ctrlKey||Dt.metaKey)&&tt!==!1?A.prepopInput(H):st!==!1&&(kr.shift(),st(u(u({},H),{},{namespace:kr})))}},M(Q,"variableValue",{cursor:st===!1?"default":"pointer"})),this.getValue(H,lt)),Ze?h.a.createElement(It,{rowHovered:this.state.hovered,hidden:lt,src:H.value,clickCallback:Ze,theme:Q,namespace:[].concat(pe(me),[H.name])}):null,tt!==!1&<==0?this.getEditIcon():null,St!==!1&<==0?this.getRemoveIcon():null)}}]),I}(h.a.PureComponent),mn=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re0?Ze:null,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!1,key_name:null};P(tt)==="object"?ye.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:St,data:xt}):ye.dispatch({name:"VARIABLE_ADDED",rjvId:St,data:u(u({},xt),{},{new_value:[].concat(pe(tt),[null])})})}})))},A.getRemoveObject=function(Y){var Q=A.props,me=Q.theme,$e=(Q.hover,Q.namespace),Ze=Q.name,tt=Q.src,St=Q.rjvId;if($e.length!==1)return h.a.createElement("span",{className:"click-to-remove",style:{display:Y?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(me,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:St,data:{name:Ze,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!0}})}})))},A.render=function(){var Y=A.props,Q=Y.theme,me=Y.onDelete,$e=Y.onAdd,Ze=Y.enableClipboard,tt=Y.src,St=Y.namespace,st=Y.rowHovered;return h.a.createElement("div",Object.assign({},M(Q,"object-meta-data"),{className:"object-meta-data",onClick:function(xt){xt.stopPropagation()}}),A.getObjectSize(),Ze?h.a.createElement(It,{rowHovered:st,clickCallback:Ze,src:tt,theme:Q,namespace:St}):null,$e!==!1?A.getAddAttribute(st):null,me!==!1?A.getRemoveObject(st):null)},A}return I}(h.a.PureComponent);function qr(N){var D=N.parent_type,I=N.namespace,A=N.quotesOnKeys,L=N.theme,H=N.jsvRoot,re=N.name,Y=N.displayArrayKey,Q=N.name?N.name:"";return!H||re!==!1&&re!==null?D=="array"?Y?h.a.createElement("span",Object.assign({},M(L,"array-key"),{key:I}),h.a.createElement("span",{className:"array-key"},Q),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null):h.a.createElement("span",Object.assign({},M(L,"object-name"),{key:I}),h.a.createElement("span",{className:"object-key"},A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",null,Q),A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null)}function Nr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(Fe,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));case"square":return h.a.createElement(je,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));default:return h.a.createElement(Be,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}))}}function Tr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(_e,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h.a.createElement(Je,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));default:return h.a.createElement(Ye,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}))}}var Mn=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).toggleCollapsed=function(H){var re=[];for(var Y in L.state.expanded)re.push(L.state.expanded[Y]);re[H]=!re[H],L.setState({expanded:re})},L.state={expanded:[]},L}return f(I,[{key:"getExpandedIcon",value:function(A){var L=this.props,H=L.theme,re=L.iconStyle;return this.state.expanded[A]?h.a.createElement(Nr,{theme:H,iconStyle:re}):h.a.createElement(Tr,{theme:H,iconStyle:re})}},{key:"render",value:function(){var A=this,L=this.props,H=L.src,re=L.groupArraysAfterLength,Y=(L.depth,L.name),Q=L.theme,me=L.jsvRoot,$e=L.namespace,Ze=(L.parent_type,O(L,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tt=0,St=5*this.props.indentWidth;me||(tt=5*this.props.indentWidth);var st=re,xt=Math.ceil(H.length/st);return h.a.createElement("div",Object.assign({className:"object-key-val"},M(Q,me?"jsv-root":"objectKeyVal",{paddingLeft:tt})),h.a.createElement(qr,this.props),h.a.createElement("span",null,h.a.createElement(mn,Object.assign({size:H.length},this.props))),pe(Array(xt)).map(function(jt,lt){return h.a.createElement("div",Object.assign({key:lt,className:"object-key-val array-group"},M(Q,"objectKeyVal",{marginLeft:6,paddingLeft:St})),h.a.createElement("span",M(Q,"brace-row"),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container"),{onClick:function(Dt){A.toggleCollapsed(lt)}}),A.getExpandedIcon(lt)),A.state.expanded[lt]?h.a.createElement($r,Object.assign({key:Y+lt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:st,index_offset:lt*st,src:H.slice(lt*st,lt*st+st),namespace:$e,type:"array",parent_type:"array_group",theme:Q},Ze)):h.a.createElement("span",Object.assign({},M(Q,"brace"),{onClick:function(Dt){A.toggleCollapsed(lt)},className:"array-group-brace"}),"[",h.a.createElement("div",Object.assign({},M(Q,"array-group-meta-data"),{className:"array-group-meta-data"}),h.a.createElement("span",Object.assign({className:"object-size"},M(Q,"object-size")),lt*st," - ",lt*st+st>H.length?H.length:lt*st+st)),"]")))}))}}]),I}(h.a.PureComponent),Kr=function(N){v(I,N);var D=m(I);function I(A){var L;l(this,I),(L=D.call(this,A)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){we.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(re,Y,Q){return h.a.createElement("div",{className:"pushed-content object-container"},h.a.createElement("div",Object.assign({className:"object-content"},M(L.props.theme,"pushed-content")),L.renderObjectContents(Y,Q)))},L.getEllipsis=function(){return L.state.size===0?null:h.a.createElement("div",Object.assign({},M(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(re){var Y=L.props,Q=(Y.rjvId,Y.theme,L.state),me=Q.size,$e=Q.hovered;return h.a.createElement(mn,Object.assign({rowHovered:$e,size:me},L.props))},L.renderObjectContents=function(re,Y){var Q,me=L.props,$e=me.depth,Ze=me.parent_type,tt=me.index_offset,St=me.groupArraysAfterLength,st=me.namespace,xt=L.state.object_type,jt=[],lt=Object.keys(re||{});return L.props.sortKeys&&xt!=="array"&&(lt=lt.sort()),lt.forEach(function(Dt){if(Q=new Ko(Dt,re[Dt]),Ze==="array_group"&&tt&&(Q.name=parseInt(Q.name)+tt),re.hasOwnProperty(Dt))if(Q.type==="object")jt.push(h.a.createElement($r,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),parent_type:xt},Y)));else if(Q.type==="array"){var kr=$r;St&&Q.value.length>St&&(kr=Mn),jt.push(h.a.createElement(kr,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),type:"array",parent_type:xt},Y)))}else jt.push(h.a.createElement(nr,Object.assign({key:Q.name+"_"+st,variable:Q,singleIndent:5,namespace:st,type:L.props.type},Y)))}),jt};var H=I.getState(A);return L.state=u(u({},H),{},{prevProps:{}}),L}return f(I,[{key:"getBraceStart",value:function(A,L){var H=this,re=this.props,Y=re.src,Q=re.theme,me=re.iconStyle;if(re.parent_type==="array_group")return h.a.createElement("span",null,h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{"),L?this.getObjectMetaData(Y):null);var $e=L?Nr:Tr;return h.a.createElement("span",null,h.a.createElement("span",Object.assign({onClick:function(Ze){H.toggleCollapsed()}},M(Q,"brace-row")),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container")),h.a.createElement($e,{theme:Q,iconStyle:me})),h.a.createElement(qr,this.props),h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{")),L?this.getObjectMetaData(Y):null)}},{key:"render",value:function(){var A=this,L=this.props,H=L.depth,re=L.src,Y=(L.namespace,L.name,L.type,L.parent_type),Q=L.theme,me=L.jsvRoot,$e=L.iconStyle,Ze=O(L,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tt=this.state,St=tt.object_type,st=tt.expanded,xt={};return me||Y==="array_group"?Y==="array_group"&&(xt.borderLeft=0,xt.display="inline"):xt.paddingLeft=5*this.props.indentWidth,h.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))}},M(Q,me?"jsv-root":"objectKeyVal",xt)),this.getBraceStart(St,st),st?this.getObjectContent(H,re,u({theme:Q,iconStyle:$e},Ze)):this.getEllipsis(),h.a.createElement("span",{className:"brace-row"},h.a.createElement("span",{style:u(u({},M(Q,"brace").style),{},{paddingLeft:st?"3px":"0px"})},St==="array"?"]":"}"),st?null:this.getObjectMetaData(re)))}}],[{key:"getDerivedStateFromProps",value:function(A,L){var H=L.prevProps;return A.src!==H.src||A.collapsed!==H.collapsed||A.name!==H.name||A.namespace!==H.namespace||A.rjvId!==H.rjvId?u(u({},I.getState(A)),{},{prevProps:A}):null}}]),I}(h.a.PureComponent);Kr.getState=function(N){var D=Object.keys(N.src).length,I=(N.collapsed===!1||N.collapsed!==!0&&N.collapsed>N.depth)&&(!N.shouldCollapse||N.shouldCollapse({name:N.name,src:N.src,type:P(N.src),namespace:N.namespace})===!1)&&D!==0;return{expanded:we.get(N.rjvId,N.namespace,"expanded",I),object_type:N.type==="array"?"array":"object",parent_type:N.type==="array"?"array":"object",size:D,hovered:!1}};var Ko=function N(D,I){l(this,N),this.name=D,this.value=I,this.type=P(I)};w(Kr);var $r=Kr,ho=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reY.groupArraysAfterLength&&(me=Mn),h.a.createElement("div",{className:"pretty-json-container object-container"},h.a.createElement("div",{className:"object-content"},h.a.createElement(me,Object.assign({namespace:Q,depth:0,jsvRoot:!0},Y))))},A}return I}(h.a.PureComponent),X=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).closeModal=function(){ye.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:A.input?A.input:""},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.theme,re=L.rjvId,Y=L.isValid,Q=this.state.input,me=Y(Q);return h.a.createElement("div",Object.assign({className:"key-modal-request"},M(H,"key-modal-request"),{onClick:this.closeModal}),h.a.createElement("div",Object.assign({},M(H,"key-modal"),{onClick:function($e){$e.stopPropagation()}}),h.a.createElement("div",M(H,"key-modal-label"),"Key Name:"),h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("input",Object.assign({},M(H,"key-modal-input"),{className:"key-modal-input",ref:function($e){return $e&&$e.focus()},spellCheck:!1,value:Q,placeholder:"...",onChange:function($e){A.setState({input:$e.target.value})},onKeyPress:function($e){me&&$e.key==="Enter"?A.submit():$e.key==="Escape"&&A.closeModal()}})),me?h.a.createElement(Pt,Object.assign({},M(H,"key-modal-submit"),{className:"key-modal-submit",onClick:function($e){return A.submit()}})):null),h.a.createElement("span",M(H,"key-modal-cancel"),h.a.createElement(Ot,Object.assign({},M(H,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ye.dispatch({rjvId:re,name:"RESET"})}})))))}}]),I}(h.a.PureComponent),ee=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re{const e=_r();return R.jsx(dOe,{...e,children:R.jsx(EL,{})})},U$e=e=>R.jsx(rOe,{...e,children:R.jsx(EL,{})}),EL=e=>R.jsxs(vOe,{...e,children:[R.jsx(Nn,{disabled:!0,source:"id",helperText:"Job id. Must be unique, it's a copy of name."}),R.jsx(Nn,{source:"name",helperText:"Job name. Must be unique, acts as the id.",validate:Xl()}),R.jsx(Nn,{source:"displayname",helperText:"Display name of the job. If present, displayed instead of the name."}),R.jsx(Nn,{source:"timezone",helperText:"The timezone where the cron expression will be evaluated in."}),R.jsx(Nn,{source:"schedule",helperText:"Cron expression for the job. When to run the job.",validate:Xl()}),R.jsx(Nn,{source:"owner",helperText:"Arbitrary string indicating the owner of the job.",disabled:!0}),R.jsx(Nn,{source:"owner_email",helperText:"Email address to use for notifications."}),R.jsx(Nn,{source:"parent_job",helperText:"Job id of job that this job is dependent upon."}),R.jsx(rw,{source:"ephemeral",helperText:"Delete the job after the first successful execution."}),R.jsx(PEe,{source:"expires_at",helperText:"The job will not be executed after this time."}),R.jsx(yN,{source:"concurrency",choices:[{id:"allow",name:"Allow"},{id:"forbid",name:"Forbid"}],helperText:"Concurrency policy for this job (allow, forbid)."}),R.jsx(Sh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Processor plugins to use for this job."}),R.jsx(Sh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Tags of the target servers to run this job against."}),R.jsx(Sh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Job metadata describes the job and allows filtering from the API."}),R.jsx(Nn,{source:"executor",helperText:"Executor plugin to be used in this job.",validate:Xl()}),R.jsx(Sh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!0,enableClipboard:!1,displayDataTypes:!1},helperText:"Configuration arguments for the specific executor.",validate:Xl()}),R.jsx(rw,{source:"disabled",helperText:"Is this job disabled?"}),R.jsx(FEe,{source:"retries",helperText:"Number of times to retry a job that failed an execution."})]});var WE={},W$e=it;Object.defineProperty(WE,"__esModule",{value:!0});var OL=WE.default=void 0,H$e=W$e(ct()),q$e=R;OL=WE.default=(0,H$e.default)((0,q$e.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const K$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}/toggle`,{method:"POST"}).then(()=>{r("Job toggled"),t()}).catch(i=>{r("Error on toggle job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Toggle",onClick:o,disabled:n,children:R.jsx(OL,{})})},G$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}`,{method:"POST"}).then(()=>{r("Success running job"),t()}).catch(i=>{r("Error on running job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Run",onClick:o,disabled:n,children:R.jsx(Gy,{})})},Q$e=e=>(e.record!==void 0&&e.source!==void 0&&e.record[e.source]==="0001-01-01T00:00:00Z"&&(e.record[e.source]=null),R.jsx(Ya,{...e}));var HE={},X$e=it;Object.defineProperty(HE,"__esModule",{value:!0});var PL=HE.default=void 0,Y$e=X$e(ct()),J$e=R;PL=HE.default=(0,Y$e.default)((0,J$e.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"}),"BatteryFull");const Z$e=({basePath:e,data:t,resource:r})=>R.jsxs(M5,{children:[R.jsx(G$e,{}),R.jsx(K$e,{}),R.jsx(uE,{record:t})]}),eke=e=>e.record!==void 0&&e.record.finished_at===null?R.jsx(kn,{title:"Running",children:R.jsx(Hy,{})}):R.jsx(SN,{...e}),tke=({record:e})=>{const t=ur(),[r,n]=d.useState(!1),a=()=>{n(!0),fetch(`${fl}/jobs/${e.job_name}/executions/${e.id}`).then(o=>{if(o.ok)return t("Success loading full output"),o.json();throw o}).then(o=>{e.output_truncated=!1,e.output=o.output}).catch(o=>{t("Error on loading full output",{type:"warning"})}).finally(()=>{n(!1)})};return R.jsx(Hr,{label:"Load full output",onClick:a,disabled:r,children:R.jsx(PL,{})})},rke=({id:e,record:t,resource:r})=>R.jsxs("div",{className:"execution-output",children:[t.output_truncated?R.jsx("div",{children:R.jsx(tke,{record:t})}):"",t.output||"Nothing to show"]}),nke=e=>R.jsx(ROe,{actions:R.jsx(Z$e,{...e}),...e,children:R.jsxs($N,{children:[R.jsxs(Pw,{label:"summary",children:[R.jsx(fr,{source:"name"}),R.jsx(fr,{source:"timezone"}),R.jsx(fr,{source:"schedule"}),R.jsx(Ya,{label:"Last success",source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(fr,{source:"status"}),R.jsx(fr,{source:"concurrency"}),R.jsx(SN,{source:"ephemeral"}),R.jsx(Ya,{source:"expires_at",showTime:!0}),R.jsx(Ya,{source:"next",sortable:!1,showTime:!0}),R.jsx(wh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1}}),R.jsx(fr,{source:"executor"}),R.jsx(wh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}})]}),R.jsx(Pw,{label:"executions",path:"executions",children:R.jsx(HOe,{reference:"executions",target:"jobs",label:"Executions",children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(rke,{...e}),children:[R.jsx(fr,{source:"id"}),R.jsx(fr,{source:"group",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(Ya,{source:"started_at",showTime:!0}),R.jsx(Q$e,{source:"finished_at",showTime:!0}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(eke,{source:"success",sortable:!1}),R.jsx(qd,{source:"attempt"})]})})})]})}),ake={list:B$e,edit:V$e,create:U$e,show:nke,icon:Hy},oke=({id:e,record:t,resource:r})=>R.jsx("div",{className:"execution-output",children:t.output||"Empty output"}),ike=e=>R.jsx(TE,{...e,pagination:!1,children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(oke,{}),children:[R.jsx(fr,{source:"id",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(Ya,{source:"started_at",sortable:!1,showTime:!0})]})});var qE={},ske=it;Object.defineProperty(qE,"__esModule",{value:!0});var RL=qE.default=void 0,lke=ske(ct()),uke=R;RL=qE.default=(0,lke.default)((0,uke.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book");class cke extends d.Component{constructor(t){super(t),this.state={date:new Date}}componentDidMount(){this.timer=setInterval(()=>this.setState({date:new Date}),1e3)}componentWillUnmount(){clearInterval(this.timer)}render(){return R.jsx("div",{className:"clock",children:R.jsx("div",{children:this.state.date.toLocaleTimeString()})})}}const dke=""+new URL("dkron-logo-2b1c801f.png",import.meta.url).href,j0="CustomAppBar",_u={title:`${j0}-title`,spacer:`${j0}-spacer`,logo:`${j0}-logo`},fke=ne(h5)({[`& .${_u.title}`]:{flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[`& .${_u.spacer}`]:{flex:1},[`& .${_u.logo}`]:{maxWidth:"125px"}});d.forwardRef((e,t)=>R.jsx(xp,{ref:t,to:"/settings",primaryText:"Settings",leftIcon:R.jsx(eE,{}),onClick:e.onClick}));const pke=e=>R.jsx(UC,{...e,children:R.jsx(xp,{to:"https://dkron.io/docs/basics/getting-started",primaryText:"Docs",leftIcon:R.jsx(RL,{})})}),hke=e=>R.jsxs(fke,{...e,elevation:1,userMenu:R.jsx(pke,{}),children:[R.jsx(_t,{variant:"h6",color:"inherit",className:_u.title,id:"react-admin-title"}),R.jsx("div",{children:R.jsx(zOe,{to:"/",color:"inherit",underline:"none",children:R.jsx("img",{src:dke,alt:"logo",className:_u.logo})})}),R.jsx("span",{className:_u.spacer}),R.jsx(cke,{})]}),vke=e=>R.jsx(O5,{...e,size:200}),gke=e=>R.jsx(j5,{...e,appBar:hke,sidebar:vke});const mke={login:({token:e})=>(localStorage.setItem("token",e),Promise.resolve()),logout:()=>(localStorage.removeItem("token"),Promise.resolve()),checkAuth:()=>localStorage.getItem("token")?Promise.resolve():Promise.reject(),checkError:e=>{const t=e.status;return t===401||t===403?(localStorage.removeItem("token"),Promise.reject()):Promise.resolve()},getIdentity:()=>Promise.resolve(),getPermissions:()=>Promise.resolve()},TL=({record:e})=>e===void 0?null:R.jsx("ul",{children:Object.keys(e.Tags).map(t=>R.jsx(_fe,{label:t+": "+e.Tags[t]}))});TL.defaultProps={addLabel:!0};var KE={},yke=it;Object.defineProperty(KE,"__esModule",{value:!0});var $L=KE.default=void 0,bke=yke(ct()),xke=R;$L=KE.default=(0,bke.default)((0,xke.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");const $p=({icon:e,title:t,subtitle:r,to:n,children:a})=>R.jsxs(oo,{sx:{minHeight:52,display:"flex",flexDirection:"column",flex:"1","& a":{textDecoration:"none",color:"inherit"}},children:[R.jsx(Fo,{to:n,children:R.jsxs(Qh,{sx:{position:"relative",overflow:"hidden",padding:"16px",display:"flex",justifyContent:"space-between",alignItems:"center","& .icon":{color:"secondary.main"},"&:before":{position:"absolute",top:"50%",left:0,display:"block",content:"''",height:"200%",aspectRatio:"1",transform:"translate(-30%, -60%)",borderRadius:"50%",backgroundColor:"secondary.main",opacity:.15}},children:[R.jsx(Qh,{width:"3em",className:"icon",children:d.createElement(e,{fontSize:"large"})}),R.jsxs(Qh,{textAlign:"right",children:[R.jsx(_t,{color:"textSecondary",children:t}),R.jsx(_t,{variant:"h5",component:"h2",children:r||" "})]})]})}),a&&R.jsx(mg,{}),a]}),wke=({value:e})=>R.jsx($p,{to:"/jobs",icon:$L,title:"Leader",subtitle:e});var GE={},Ske=it;Object.defineProperty(GE,"__esModule",{value:!0});var kL=GE.default=void 0,_ke=Ske(ct()),Cke=R;kL=GE.default=(0,_ke.default)((0,Cke.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown");const Eke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"failed"}',icon:kL,title:"Failed Jobs",subtitle:e});var QE={},Oke=it;Object.defineProperty(QE,"__esModule",{value:!0});var jL=QE.default=void 0,Pke=Oke(ct()),Rke=R;jL=QE.default=(0,Pke.default)((0,Rke.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp");const Tke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"success"}',icon:jL,title:"Successful Jobs",subtitle:e});var XE={},$ke=it;Object.defineProperty(XE,"__esModule",{value:!0});var IL=XE.default=void 0,kke=$ke(ct()),jke=R;IL=XE.default=(0,kke.default)((0,jke.jsx)("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"}),"NewReleases");const Ike=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"untriggered"}',icon:IL,title:"Untriggered Jobs",subtitle:e}),Ake=({value:e})=>R.jsx($p,{to:"/jobs",icon:Hy,title:"Total Jobs",subtitle:e});let Mke={basePath:"/members",count:10,hasCreate:!1,hasEdit:!1,hasList:!0,hasShow:!1,location:{pathname:"/",search:"",hash:"",state:void 0},match:{path:"/",url:"/",isExact:!0,params:{}},options:{},permissions:null,resource:"members"};const I0={flex:{display:"flex"},flexColumn:{display:"flex",flexDirection:"column"},leftCol:{flex:1,marginRight:"0.5em"},rightCol:{flex:1,marginLeft:"0.5em"},singleCol:{marginTop:"1em",marginBottom:"1em"}},_h=()=>R.jsx("span",{style:{width:"1em"}}),Fke=()=>R.jsxs("div",{children:[R.jsxs(oo,{children:[R.jsx(FT,{title:"Welcome"}),R.jsx(Di,{children:R.jsx("div",{style:I0.flex,children:R.jsx("div",{style:I0.leftCol,children:R.jsxs("div",{style:I0.flex,children:[R.jsx(wke,{value:window.DKRON_LEADER||"devel"}),R.jsx(_h,{}),R.jsx(Ake,{value:window.DKRON_TOTAL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Tke,{value:window.DKRON_SUCCESSFUL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Eke,{value:window.DKRON_FAILED_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Ike,{value:window.DKRON_UNTRIGGERED_JOBS||"0"})]})})})})]}),R.jsxs(oo,{children:[R.jsx(FT,{title:"Nodes"}),R.jsx(Di,{children:R.jsx(TE,{...Mke,children:R.jsxs(Cp,{isRowSelectable:e=>!1,children:[R.jsx(fr,{source:"Name",sortable:!1}),R.jsx(fr,{source:"Addr",sortable:!1}),R.jsx(fr,{source:"Port",sortable:!1}),R.jsx(fr,{label:"Status",source:"statusText",sortable:!1}),R.jsx(TL,{source:"Tags",sortable:!1})]})})})]})]}),Nke=SL({label:{width:"10em",display:"inline-block"},button:{margin:"1em"}}),Lke=()=>(Nke(),R.jsxs(oo,{children:[R.jsx(dl,{title:"Settings"}),R.jsx(Di,{})]})),Dke=e=>{const[t,r]=d.useState(""),n=X3(),a=ur(),o=R.jsx(By,{}),{className:i}=e,[s,u]=Bn(!1),l=c=>{u(!0),n({token:t}).catch(()=>{u(!1),a("Invalid token")})};return R.jsx(Bke,{children:R.jsxs(oo,{className:Cu.card,children:[R.jsx("div",{className:Cu.avatar,children:R.jsx(vg,{className:Cu.icon,children:o})}),R.jsx(zke,{onSubmit:l,mode:"onChange",noValidate:!0,className:i,children:R.jsxs(Di,{className:Eu.content,children:[R.jsx(Nn,{name:"token",type:"text",value:t,onChange:c=>r(c.target.value)}),R.jsx(hn,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,className:Eu.button,children:s?R.jsx(kc,{className:Eu.icon,size:19,thickness:3}):"Sign in"})]})})]})})},hv="RaLogin",Cu={card:`${hv}-card`,avatar:`${hv}-avatar`,icon:`${hv}-icon`},Bke=ne("div",{name:hv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)",[`& .${Cu.card}`]:{minWidth:300,marginTop:"6em"},[`& .${Cu.avatar}`]:{margin:"1em",display:"flex",justifyContent:"center"},[`& .${Cu.icon}`]:{backgroundColor:e.palette.secondary[500]}})),vv="RaLoginForm",Eu={content:`${vv}-content`,button:`${vv}-button`,icon:`${vv}-icon`},zke=ne(M_,{name:vv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Eu.content}`]:{width:300},[`& .${Eu.button}`]:{marginTop:e.spacing(2)},[`& .${Eu.icon}`]:{margin:e.spacing(.3)}}));iRe();const Vke=()=>R.jsxs(eRe,{dashboard:Fke,loginPage:Dke,authProvider:mke,dataProvider:mRe,layout:gke,children:[R.jsx(Yl,{name:"jobs",...ake}),R.jsx(Yl,{name:"busy",options:{label:"Busy"},list:ike,icon:nL}),R.jsx(Yl,{name:"executions"}),R.jsx(Yl,{name:"members"}),R.jsx(P3,{children:R.jsx(zr,{path:"/settings",element:R.jsx(Lke,{})})})]});A0.createRoot(document.getElementById("root")).render(R.jsx(ke.StrictMode,{children:R.jsx(Vke,{})})); +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),ye=new(o(47)).Dispatcher,be=new(function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reL&&(Y.style.cursor="pointer",this.state.collapsed&&(re=h.a.createElement("span",null,re.substring(0,L),h.a.createElement("span",M(H,"ellipsis")," ...")))),h.a.createElement("div",M(H,"string"),h.a.createElement(W,Object.assign({type_name:"string"},A)),h.a.createElement("span",Object.assign({className:"string-value"},Y,{onClick:this.toggleCollapsed}),'"',re,'"'))}}]),I}(h.a.PureComponent),He=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){return h.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),I}(h.a.PureComponent);function ht(){return(ht=Object.assign||function(N){for(var D=1;D=0||(vo[kr]=lt[kr]);return vo}(N,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),$e,Ze=me.value!==void 0,tt=Object(b.useRef)(null),St=te(tt,D),st=Object(b.useRef)(0),xt=Object(b.useRef)(),jt=function(){var lt=tt.current,Dt=I&&xt.current?xt.current:function(ot){var Vt=window.getComputedStyle(ot);if(Vt===null)return null;var mr,vt=(mr=Vt,ae.reduce(function(Go,Qo){return Go[Qo]=mr[Qo],Go},{})),Gr=vt.boxSizing;return Gr===""?null:(Z&&Gr==="border-box"&&(vt.width=parseFloat(vt.width)+parseFloat(vt.borderRightWidth)+parseFloat(vt.borderLeftWidth)+parseFloat(vt.paddingRight)+parseFloat(vt.paddingLeft)+"px"),{sizingStyle:vt,paddingSize:parseFloat(vt.paddingBottom)+parseFloat(vt.paddingTop),borderSize:parseFloat(vt.borderBottomWidth)+parseFloat(vt.borderTopWidth)})}(lt);if(Dt){xt.current=Dt;var kr=function(ot,Vt,mr,vt){mr===void 0&&(mr=1),vt===void 0&&(vt=1/0),fe||((fe=document.createElement("textarea")).setAttribute("tab-index","-1"),fe.setAttribute("aria-hidden","true"),de(fe)),fe.parentNode===null&&document.body.appendChild(fe);var Gr=ot.paddingSize,Go=ot.borderSize,Qo=ot.sizingStyle,YE=Qo.boxSizing;Object.keys(Qo).forEach(function(Zy){var pl=Zy;fe.style[pl]=Qo[pl]}),de(fe),fe.value=Vt;var kp=function(Zy,pl){var JE=Zy.scrollHeight;return pl.sizingStyle.boxSizing==="border-box"?JE+pl.borderSize:JE-pl.paddingSize}(fe,ot);fe.value="x";var Xy=fe.scrollHeight-Gr,Yy=Xy*mr;YE==="border-box"&&(Yy=Yy+Gr+Go),kp=Math.max(Yy,kp);var Jy=Xy*vt;return YE==="border-box"&&(Jy=Jy+Gr+Go),[kp=Math.min(Jy,kp),Xy]}(Dt,lt.value||lt.placeholder||"x",L,A),yn=kr[0],vo=kr[1];st.current!==yn&&(st.current=yn,lt.style.setProperty("height",yn+"px","important"),Q(yn,{rowHeight:vo}))}};return Object(b.useLayoutEffect)(jt),$e=V(jt),Object(b.useLayoutEffect)(function(){var lt=function(Dt){$e.current(Dt)};return window.addEventListener("resize",lt),function(){window.removeEventListener("resize",lt)}},[]),Object(b.createElement)("textarea",ht({},me,{onChange:function(lt){Ze||jt(),re(lt)},ref:St}))},le=Object(b.forwardRef)(G);function he(N){N=N.trim();try{if((N=JSON.stringify(JSON.parse(N)))[0]==="[")return Re("array",JSON.parse(N));if(N[0]==="{")return Re("object",JSON.parse(N));if(N.match(/\-?\d+\.\d+/)&&N.match(/\-?\d+\.\d+/)[0]===N)return Re("float",parseFloat(N));if(N.match(/\-?\d+e-\d+/)&&N.match(/\-?\d+e-\d+/)[0]===N)return Re("float",Number(N));if(N.match(/\-?\d+/)&&N.match(/\-?\d+/)[0]===N)return Re("integer",parseInt(N));if(N.match(/\-?\d+e\+\d+/)&&N.match(/\-?\d+e\+\d+/)[0]===N)return Re("integer",Number(N))}catch{}switch(N=N.toLowerCase()){case"undefined":return Re("undefined",void 0);case"nan":return Re("nan",NaN);case"null":return Re("null",null);case"true":return Re("boolean",!0);case"false":return Re("boolean",!1);default:if(N=Date.parse(N))return Re("date",new Date(N))}return Re(!1,null)}function Re(N,D){return{type:N,value:D}}var Be=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),I}(h.a.PureComponent),Ye=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),I}(h.a.PureComponent),je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),Je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),_e=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),I}(h.a.PureComponent),Fe=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),I}(h.a.PureComponent),Ge=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),I}(h.a.PureComponent),nt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),mt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),Ot=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),I}(h.a.PureComponent),kt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),I}(h.a.PureComponent),Pt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent);function at(N){return N||(N={}),{style:u(u({verticalAlign:"middle"},N),{},{color:N.color?N.color:"#000000",height:"1em",width:"1em"})}}var It=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).copiedTimer=null,L.handleCopy=function(){var H=document.createElement("textarea"),re=L.props,Y=re.clickCallback,Q=re.src,me=re.namespace;H.innerHTML=JSON.stringify(L.clipboardValue(Q),null," "),document.body.appendChild(H),H.select(),document.execCommand("copy"),document.body.removeChild(H),L.copiedTimer=setTimeout(function(){L.setState({copied:!1})},5500),L.setState({copied:!0},function(){typeof Y=="function"&&Y({src:Q,namespace:me,name:me[me.length-1]})})},L.getClippyIcon=function(){var H=L.props.theme;return L.state.copied?h.a.createElement("span",null,h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon"))),h.a.createElement("span",M(H,"copy-icon-copied"),"✔")):h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon")))},L.clipboardValue=function(H){switch(P(H)){case"function":case"regexp":return H.toString();default:return H}},L.state={copied:!1},L}return f(I,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var A=this.props,L=(A.src,A.theme),H=A.hidden,re=A.rowHovered,Y=M(L,"copy-to-clipboard").style,Q="inline";return H&&(Q="none"),h.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:re?"inline-block":"none"}},h.a.createElement("span",{style:u(u({},Y),{},{display:Q}),onClick:this.handleCopy},this.getClippyIcon()))}}]),I}(h.a.PureComponent),nr=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).getEditIcon=function(){var H=L.props,re=H.variable,Y=H.theme;return h.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(kt,Object.assign({className:"click-to-edit-icon"},M(Y,"editVarIcon"),{onClick:function(){L.prepopInput(re)}})))},L.prepopInput=function(H){if(L.props.onEdit!==!1){var re=function(Q){var me;switch(P(Q)){case"undefined":me="undefined";break;case"nan":me="NaN";break;case"string":me=Q;break;case"date":case"function":case"regexp":me=Q.toString();break;default:try{me=JSON.stringify(Q,null," ")}catch{me=""}}return me}(H.value),Y=he(re);L.setState({editMode:!0,editValue:re,parsedInput:{type:Y.type,value:Y.value}})}},L.getRemoveIcon=function(){var H=L.props,re=H.variable,Y=H.namespace,Q=H.theme,me=H.rjvId;return h.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(Q,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:me,data:{name:re.name,namespace:Y,existing_value:re.value,variable_removed:!0}})}})))},L.getValue=function(H,re){var Y=!re&&H.type,Q=S(L).props;switch(Y){case!1:return L.getEditInput();case"string":return h.a.createElement(Ae,Object.assign({value:H.value},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:H.value},Q));case"float":return h.a.createElement(q,Object.assign({value:H.value},Q));case"boolean":return h.a.createElement(B,Object.assign({value:H.value},Q));case"function":return h.a.createElement(ve,Object.assign({value:H.value},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:H.value},Q));case"regexp":return h.a.createElement(Ne,Object.assign({value:H.value},Q));default:return h.a.createElement("div",{className:"object-value"},JSON.stringify(H.value))}},L.getEditInput=function(){var H=L.props.theme,re=L.state.editValue;return h.a.createElement("div",null,h.a.createElement(le,Object.assign({type:"text",inputRef:function(Y){return Y&&Y.focus()},value:re,className:"variable-editor",onChange:function(Y){var Q=Y.target.value,me=he(Q);L.setState({editValue:Q,parsedInput:{type:me.type,value:me.value}})},onKeyDown:function(Y){switch(Y.key){case"Escape":L.setState({editMode:!1,editValue:""});break;case"Enter":(Y.ctrlKey||Y.metaKey)&&L.submitEdit(!0)}Y.stopPropagation()},placeholder:"update this value",minRows:2},M(H,"edit-input"))),h.a.createElement("div",M(H,"edit-icon-container"),h.a.createElement(nt,Object.assign({className:"edit-cancel"},M(H,"cancel-icon"),{onClick:function(){L.setState({editMode:!1,editValue:""})}})),h.a.createElement(Pt,Object.assign({className:"edit-check string-value"},M(H,"check-icon"),{onClick:function(){L.submitEdit()}})),h.a.createElement("div",null,L.showDetected())))},L.submitEdit=function(H){var re=L.props,Y=re.variable,Q=re.namespace,me=re.rjvId,$e=L.state,Ze=$e.editValue,tt=$e.parsedInput,St=Ze;H&&tt.type&&(St=tt.value),L.setState({editMode:!1}),ye.dispatch({name:"VARIABLE_UPDATED",rjvId:me,data:{name:Y.name,namespace:Q,existing_value:Y.value,new_value:St,variable_removed:!1}})},L.showDetected=function(){var H=L.props,re=H.theme,Y=(H.variable,H.namespace,H.rjvId,L.state.parsedInput),Q=(Y.type,Y.value,L.getDetectedInput());if(Q)return h.a.createElement("div",null,h.a.createElement("div",M(re,"detected-row"),Q,h.a.createElement(Pt,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},M(re,"check-icon").style),onClick:function(){L.submitEdit(!0)}})))},L.getDetectedInput=function(){var H=L.state.parsedInput,re=H.type,Y=H.value,Q=S(L).props,me=Q.theme;if(re!==!1)switch(re.toLowerCase()){case"object":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"{"),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"}"));case"array":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"["),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"]"));case"string":return h.a.createElement(Ae,Object.assign({value:Y},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:Y},Q));case"float":return h.a.createElement(q,Object.assign({value:Y},Q));case"boolean":return h.a.createElement(B,Object.assign({value:Y},Q));case"function":return h.a.createElement(ve,Object.assign({value:Y},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:new Date(Y)},Q))}},L.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.variable,re=L.singleIndent,Y=L.type,Q=L.theme,me=L.namespace,$e=L.indentWidth,Ze=L.enableClipboard,tt=L.onEdit,St=L.onDelete,st=L.onSelect,xt=L.displayArrayKey,jt=L.quotesOnKeys,lt=this.state.editMode;return h.a.createElement("div",Object.assign({},M(Q,"objectKeyVal",{paddingLeft:$e*re}),{onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))},className:"variable-row",key:H.name}),Y=="array"?xt?h.a.createElement("span",Object.assign({},M(Q,"array-key"),{key:H.name+"_"+me}),H.name,h.a.createElement("div",M(Q,"colon"),":")):null:h.a.createElement("span",null,h.a.createElement("span",Object.assign({},M(Q,"object-name"),{className:"object-key",key:H.name+"_"+me}),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",{style:{display:"inline-block"}},H.name),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(Q,"colon"),":")),h.a.createElement("div",Object.assign({className:"variable-value",onClick:st===!1&&tt===!1?null:function(Dt){var kr=pe(me);(Dt.ctrlKey||Dt.metaKey)&&tt!==!1?A.prepopInput(H):st!==!1&&(kr.shift(),st(u(u({},H),{},{namespace:kr})))}},M(Q,"variableValue",{cursor:st===!1?"default":"pointer"})),this.getValue(H,lt)),Ze?h.a.createElement(It,{rowHovered:this.state.hovered,hidden:lt,src:H.value,clickCallback:Ze,theme:Q,namespace:[].concat(pe(me),[H.name])}):null,tt!==!1&<==0?this.getEditIcon():null,St!==!1&<==0?this.getRemoveIcon():null)}}]),I}(h.a.PureComponent),mn=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re0?Ze:null,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!1,key_name:null};P(tt)==="object"?ye.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:St,data:xt}):ye.dispatch({name:"VARIABLE_ADDED",rjvId:St,data:u(u({},xt),{},{new_value:[].concat(pe(tt),[null])})})}})))},A.getRemoveObject=function(Y){var Q=A.props,me=Q.theme,$e=(Q.hover,Q.namespace),Ze=Q.name,tt=Q.src,St=Q.rjvId;if($e.length!==1)return h.a.createElement("span",{className:"click-to-remove",style:{display:Y?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(me,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:St,data:{name:Ze,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!0}})}})))},A.render=function(){var Y=A.props,Q=Y.theme,me=Y.onDelete,$e=Y.onAdd,Ze=Y.enableClipboard,tt=Y.src,St=Y.namespace,st=Y.rowHovered;return h.a.createElement("div",Object.assign({},M(Q,"object-meta-data"),{className:"object-meta-data",onClick:function(xt){xt.stopPropagation()}}),A.getObjectSize(),Ze?h.a.createElement(It,{rowHovered:st,clickCallback:Ze,src:tt,theme:Q,namespace:St}):null,$e!==!1?A.getAddAttribute(st):null,me!==!1?A.getRemoveObject(st):null)},A}return I}(h.a.PureComponent);function qr(N){var D=N.parent_type,I=N.namespace,A=N.quotesOnKeys,L=N.theme,H=N.jsvRoot,re=N.name,Y=N.displayArrayKey,Q=N.name?N.name:"";return!H||re!==!1&&re!==null?D=="array"?Y?h.a.createElement("span",Object.assign({},M(L,"array-key"),{key:I}),h.a.createElement("span",{className:"array-key"},Q),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null):h.a.createElement("span",Object.assign({},M(L,"object-name"),{key:I}),h.a.createElement("span",{className:"object-key"},A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",null,Q),A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null)}function Nr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(Fe,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));case"square":return h.a.createElement(je,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));default:return h.a.createElement(Be,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}))}}function Tr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(_e,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h.a.createElement(Je,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));default:return h.a.createElement(Ye,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}))}}var Mn=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).toggleCollapsed=function(H){var re=[];for(var Y in L.state.expanded)re.push(L.state.expanded[Y]);re[H]=!re[H],L.setState({expanded:re})},L.state={expanded:[]},L}return f(I,[{key:"getExpandedIcon",value:function(A){var L=this.props,H=L.theme,re=L.iconStyle;return this.state.expanded[A]?h.a.createElement(Nr,{theme:H,iconStyle:re}):h.a.createElement(Tr,{theme:H,iconStyle:re})}},{key:"render",value:function(){var A=this,L=this.props,H=L.src,re=L.groupArraysAfterLength,Y=(L.depth,L.name),Q=L.theme,me=L.jsvRoot,$e=L.namespace,Ze=(L.parent_type,O(L,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tt=0,St=5*this.props.indentWidth;me||(tt=5*this.props.indentWidth);var st=re,xt=Math.ceil(H.length/st);return h.a.createElement("div",Object.assign({className:"object-key-val"},M(Q,me?"jsv-root":"objectKeyVal",{paddingLeft:tt})),h.a.createElement(qr,this.props),h.a.createElement("span",null,h.a.createElement(mn,Object.assign({size:H.length},this.props))),pe(Array(xt)).map(function(jt,lt){return h.a.createElement("div",Object.assign({key:lt,className:"object-key-val array-group"},M(Q,"objectKeyVal",{marginLeft:6,paddingLeft:St})),h.a.createElement("span",M(Q,"brace-row"),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container"),{onClick:function(Dt){A.toggleCollapsed(lt)}}),A.getExpandedIcon(lt)),A.state.expanded[lt]?h.a.createElement($r,Object.assign({key:Y+lt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:st,index_offset:lt*st,src:H.slice(lt*st,lt*st+st),namespace:$e,type:"array",parent_type:"array_group",theme:Q},Ze)):h.a.createElement("span",Object.assign({},M(Q,"brace"),{onClick:function(Dt){A.toggleCollapsed(lt)},className:"array-group-brace"}),"[",h.a.createElement("div",Object.assign({},M(Q,"array-group-meta-data"),{className:"array-group-meta-data"}),h.a.createElement("span",Object.assign({className:"object-size"},M(Q,"object-size")),lt*st," - ",lt*st+st>H.length?H.length:lt*st+st)),"]")))}))}}]),I}(h.a.PureComponent),Kr=function(N){v(I,N);var D=m(I);function I(A){var L;l(this,I),(L=D.call(this,A)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){we.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(re,Y,Q){return h.a.createElement("div",{className:"pushed-content object-container"},h.a.createElement("div",Object.assign({className:"object-content"},M(L.props.theme,"pushed-content")),L.renderObjectContents(Y,Q)))},L.getEllipsis=function(){return L.state.size===0?null:h.a.createElement("div",Object.assign({},M(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(re){var Y=L.props,Q=(Y.rjvId,Y.theme,L.state),me=Q.size,$e=Q.hovered;return h.a.createElement(mn,Object.assign({rowHovered:$e,size:me},L.props))},L.renderObjectContents=function(re,Y){var Q,me=L.props,$e=me.depth,Ze=me.parent_type,tt=me.index_offset,St=me.groupArraysAfterLength,st=me.namespace,xt=L.state.object_type,jt=[],lt=Object.keys(re||{});return L.props.sortKeys&&xt!=="array"&&(lt=lt.sort()),lt.forEach(function(Dt){if(Q=new Ko(Dt,re[Dt]),Ze==="array_group"&&tt&&(Q.name=parseInt(Q.name)+tt),re.hasOwnProperty(Dt))if(Q.type==="object")jt.push(h.a.createElement($r,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),parent_type:xt},Y)));else if(Q.type==="array"){var kr=$r;St&&Q.value.length>St&&(kr=Mn),jt.push(h.a.createElement(kr,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),type:"array",parent_type:xt},Y)))}else jt.push(h.a.createElement(nr,Object.assign({key:Q.name+"_"+st,variable:Q,singleIndent:5,namespace:st,type:L.props.type},Y)))}),jt};var H=I.getState(A);return L.state=u(u({},H),{},{prevProps:{}}),L}return f(I,[{key:"getBraceStart",value:function(A,L){var H=this,re=this.props,Y=re.src,Q=re.theme,me=re.iconStyle;if(re.parent_type==="array_group")return h.a.createElement("span",null,h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{"),L?this.getObjectMetaData(Y):null);var $e=L?Nr:Tr;return h.a.createElement("span",null,h.a.createElement("span",Object.assign({onClick:function(Ze){H.toggleCollapsed()}},M(Q,"brace-row")),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container")),h.a.createElement($e,{theme:Q,iconStyle:me})),h.a.createElement(qr,this.props),h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{")),L?this.getObjectMetaData(Y):null)}},{key:"render",value:function(){var A=this,L=this.props,H=L.depth,re=L.src,Y=(L.namespace,L.name,L.type,L.parent_type),Q=L.theme,me=L.jsvRoot,$e=L.iconStyle,Ze=O(L,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tt=this.state,St=tt.object_type,st=tt.expanded,xt={};return me||Y==="array_group"?Y==="array_group"&&(xt.borderLeft=0,xt.display="inline"):xt.paddingLeft=5*this.props.indentWidth,h.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))}},M(Q,me?"jsv-root":"objectKeyVal",xt)),this.getBraceStart(St,st),st?this.getObjectContent(H,re,u({theme:Q,iconStyle:$e},Ze)):this.getEllipsis(),h.a.createElement("span",{className:"brace-row"},h.a.createElement("span",{style:u(u({},M(Q,"brace").style),{},{paddingLeft:st?"3px":"0px"})},St==="array"?"]":"}"),st?null:this.getObjectMetaData(re)))}}],[{key:"getDerivedStateFromProps",value:function(A,L){var H=L.prevProps;return A.src!==H.src||A.collapsed!==H.collapsed||A.name!==H.name||A.namespace!==H.namespace||A.rjvId!==H.rjvId?u(u({},I.getState(A)),{},{prevProps:A}):null}}]),I}(h.a.PureComponent);Kr.getState=function(N){var D=Object.keys(N.src).length,I=(N.collapsed===!1||N.collapsed!==!0&&N.collapsed>N.depth)&&(!N.shouldCollapse||N.shouldCollapse({name:N.name,src:N.src,type:P(N.src),namespace:N.namespace})===!1)&&D!==0;return{expanded:we.get(N.rjvId,N.namespace,"expanded",I),object_type:N.type==="array"?"array":"object",parent_type:N.type==="array"?"array":"object",size:D,hovered:!1}};var Ko=function N(D,I){l(this,N),this.name=D,this.value=I,this.type=P(I)};w(Kr);var $r=Kr,ho=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reY.groupArraysAfterLength&&(me=Mn),h.a.createElement("div",{className:"pretty-json-container object-container"},h.a.createElement("div",{className:"object-content"},h.a.createElement(me,Object.assign({namespace:Q,depth:0,jsvRoot:!0},Y))))},A}return I}(h.a.PureComponent),X=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).closeModal=function(){ye.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:A.input?A.input:""},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.theme,re=L.rjvId,Y=L.isValid,Q=this.state.input,me=Y(Q);return h.a.createElement("div",Object.assign({className:"key-modal-request"},M(H,"key-modal-request"),{onClick:this.closeModal}),h.a.createElement("div",Object.assign({},M(H,"key-modal"),{onClick:function($e){$e.stopPropagation()}}),h.a.createElement("div",M(H,"key-modal-label"),"Key Name:"),h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("input",Object.assign({},M(H,"key-modal-input"),{className:"key-modal-input",ref:function($e){return $e&&$e.focus()},spellCheck:!1,value:Q,placeholder:"...",onChange:function($e){A.setState({input:$e.target.value})},onKeyPress:function($e){me&&$e.key==="Enter"?A.submit():$e.key==="Escape"&&A.closeModal()}})),me?h.a.createElement(Pt,Object.assign({},M(H,"key-modal-submit"),{className:"key-modal-submit",onClick:function($e){return A.submit()}})):null),h.a.createElement("span",M(H,"key-modal-cancel"),h.a.createElement(Ot,Object.assign({},M(H,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ye.dispatch({rjvId:re,name:"RESET"})}})))))}}]),I}(h.a.PureComponent),ee=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re{const e=_r();return R.jsx(fOe,{...e,children:R.jsx(EL,{})})},W$e=e=>R.jsx(nOe,{...e,children:R.jsx(EL,{})}),EL=e=>R.jsxs(gOe,{...e,children:[R.jsx(Nn,{disabled:!0,source:"id",helperText:"Job id. Must be unique, it's a copy of name."}),R.jsx(Nn,{source:"name",helperText:"Job name. Must be unique, acts as the id.",validate:Xl()}),R.jsx(Nn,{source:"displayname",helperText:"Display name of the job. If present, displayed instead of the name."}),R.jsx(Nn,{source:"timezone",helperText:"The timezone where the cron expression will be evaluated in."}),R.jsx(Nn,{source:"schedule",helperText:"Cron expression for the job. When to run the job.",validate:Xl()}),R.jsx(Nn,{source:"owner",helperText:"Arbitrary string indicating the owner of the job.",disabled:!0}),R.jsx(Nn,{source:"owner_email",helperText:"Email address to use for notifications."}),R.jsx(Nn,{source:"parent_job",helperText:"Job id of job that this job is dependent upon."}),R.jsx(rw,{source:"ephemeral",helperText:"Delete the job after the first successful execution."}),R.jsx(REe,{source:"expires_at",helperText:"The job will not be executed after this time."}),R.jsx(yN,{source:"concurrency",choices:[{id:"allow",name:"Allow"},{id:"forbid",name:"Forbid"}],helperText:"Concurrency policy for this job (allow, forbid)."}),R.jsx(Sh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Processor plugins to use for this job."}),R.jsx(Sh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Tags of the target servers to run this job against."}),R.jsx(Sh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Job metadata describes the job and allows filtering from the API."}),R.jsx(Nn,{source:"executor",helperText:"Executor plugin to be used in this job.",validate:Xl()}),R.jsx(Sh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!0,enableClipboard:!1,displayDataTypes:!1},helperText:"Configuration arguments for the specific executor.",validate:Xl()}),R.jsx(rw,{source:"disabled",helperText:"Is this job disabled?"}),R.jsx(NEe,{source:"retries",helperText:"Number of times to retry a job that failed an execution."})]});var WE={},H$e=it;Object.defineProperty(WE,"__esModule",{value:!0});var OL=WE.default=void 0,q$e=H$e(ct()),K$e=R;OL=WE.default=(0,q$e.default)((0,K$e.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const G$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}/toggle`,{method:"POST"}).then(()=>{r("Job toggled"),t()}).catch(i=>{r("Error on toggle job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Toggle",onClick:o,disabled:n,children:R.jsx(OL,{})})},Q$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}`,{method:"POST"}).then(()=>{r("Success running job"),t()}).catch(i=>{r("Error on running job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Run",onClick:o,disabled:n,children:R.jsx(Gy,{})})},X$e=e=>(e.record!==void 0&&e.source!==void 0&&e.record[e.source]==="0001-01-01T00:00:00Z"&&(e.record[e.source]=null),R.jsx(Ya,{...e}));var HE={},Y$e=it;Object.defineProperty(HE,"__esModule",{value:!0});var PL=HE.default=void 0,J$e=Y$e(ct()),Z$e=R;PL=HE.default=(0,J$e.default)((0,Z$e.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"}),"BatteryFull");const eke=({basePath:e,data:t,resource:r})=>R.jsxs(M5,{children:[R.jsx(Q$e,{}),R.jsx(G$e,{}),R.jsx(uE,{record:t})]}),tke=e=>e.record!==void 0&&e.record.finished_at===null?R.jsx(kn,{title:"Running",children:R.jsx(Hy,{})}):R.jsx(SN,{...e}),rke=({record:e})=>{const t=ur(),[r,n]=d.useState(!1),a=()=>{n(!0),fetch(`${fl}/jobs/${e.job_name}/executions/${e.id}`).then(o=>{if(o.ok)return t("Success loading full output"),o.json();throw o}).then(o=>{e.output_truncated=!1,e.output=o.output}).catch(o=>{t("Error on loading full output",{type:"warning"})}).finally(()=>{n(!1)})};return R.jsx(Hr,{label:"Load full output",onClick:a,disabled:r,children:R.jsx(PL,{})})},nke=({id:e,record:t,resource:r})=>R.jsxs("div",{className:"execution-output",children:[t.output_truncated?R.jsx("div",{children:R.jsx(rke,{record:t})}):"",t.output||"Nothing to show"]}),ake=e=>R.jsx(TOe,{actions:R.jsx(eke,{...e}),...e,children:R.jsxs($N,{children:[R.jsxs(Pw,{label:"summary",children:[R.jsx(fr,{source:"name"}),R.jsx(fr,{source:"timezone"}),R.jsx(fr,{source:"schedule"}),R.jsx(Ya,{label:"Last success",source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(fr,{source:"status"}),R.jsx(fr,{source:"concurrency"}),R.jsx(SN,{source:"ephemeral"}),R.jsx(Ya,{source:"expires_at",showTime:!0}),R.jsx(Ya,{source:"next",sortable:!1,showTime:!0}),R.jsx(wh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1}}),R.jsx(fr,{source:"executor"}),R.jsx(wh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}})]}),R.jsx(Pw,{label:"executions",path:"executions",children:R.jsx(qOe,{reference:"executions",target:"jobs",label:"Executions",children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(nke,{...e}),children:[R.jsx(fr,{source:"id"}),R.jsx(fr,{source:"group",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(Ya,{source:"started_at",showTime:!0}),R.jsx(X$e,{source:"finished_at",showTime:!0}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(tke,{source:"success",sortable:!1}),R.jsx(qd,{source:"attempt"})]})})})]})}),oke={list:z$e,edit:U$e,create:W$e,show:ake,icon:Hy},ike=({id:e,record:t,resource:r})=>R.jsx("div",{className:"execution-output",children:t.output||"Empty output"}),ske=e=>R.jsx(TE,{...e,pagination:!1,children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(ike,{}),children:[R.jsx(fr,{source:"id",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(Ya,{source:"started_at",sortable:!1,showTime:!0})]})});var qE={},lke=it;Object.defineProperty(qE,"__esModule",{value:!0});var RL=qE.default=void 0,uke=lke(ct()),cke=R;RL=qE.default=(0,uke.default)((0,cke.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book");class dke extends d.Component{constructor(t){super(t),this.state={date:new Date}}componentDidMount(){this.timer=setInterval(()=>this.setState({date:new Date}),1e3)}componentWillUnmount(){clearInterval(this.timer)}render(){return R.jsx("div",{className:"clock",children:R.jsx("div",{children:this.state.date.toLocaleTimeString()})})}}const fke=""+new URL("dkron-logo-2b1c801f.png",import.meta.url).href,j0="CustomAppBar",_u={title:`${j0}-title`,spacer:`${j0}-spacer`,logo:`${j0}-logo`},pke=ne(h5)({[`& .${_u.title}`]:{flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[`& .${_u.spacer}`]:{flex:1},[`& .${_u.logo}`]:{maxWidth:"125px"}});d.forwardRef((e,t)=>R.jsx(xp,{ref:t,to:"/settings",primaryText:"Settings",leftIcon:R.jsx(eE,{}),onClick:e.onClick}));const hke=e=>R.jsx(UC,{...e,children:R.jsx(xp,{to:"https://dkron.io/docs/basics/getting-started",primaryText:"Docs",leftIcon:R.jsx(RL,{})})}),vke=e=>R.jsxs(pke,{...e,elevation:1,userMenu:R.jsx(hke,{}),children:[R.jsx(_t,{variant:"h6",color:"inherit",className:_u.title,id:"react-admin-title"}),R.jsx("div",{children:R.jsx(VOe,{to:"/",color:"inherit",underline:"none",children:R.jsx("img",{src:fke,alt:"logo",className:_u.logo})})}),R.jsx("span",{className:_u.spacer}),R.jsx(dke,{})]}),gke=e=>R.jsx(O5,{...e,size:200}),mke=e=>R.jsx(j5,{...e,appBar:vke,sidebar:gke});const yke={login:({token:e})=>(localStorage.setItem("token",e),Promise.resolve()),logout:()=>(localStorage.removeItem("token"),Promise.resolve()),checkAuth:()=>localStorage.getItem("token")?Promise.resolve():Promise.reject(),checkError:e=>{const t=e.status;return t===401||t===403?(localStorage.removeItem("token"),Promise.reject()):Promise.resolve()},getIdentity:()=>Promise.resolve(),getPermissions:()=>Promise.resolve()},TL=({record:e})=>e===void 0?null:R.jsx("ul",{children:Object.keys(e.Tags).map(t=>R.jsx(Cfe,{label:t+": "+e.Tags[t]}))});TL.defaultProps={addLabel:!0};var KE={},bke=it;Object.defineProperty(KE,"__esModule",{value:!0});var $L=KE.default=void 0,xke=bke(ct()),wke=R;$L=KE.default=(0,xke.default)((0,wke.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");const $p=({icon:e,title:t,subtitle:r,to:n,children:a})=>R.jsxs(oo,{sx:{minHeight:52,display:"flex",flexDirection:"column",flex:"1","& a":{textDecoration:"none",color:"inherit"}},children:[R.jsx(Fo,{to:n,children:R.jsxs(Qh,{sx:{position:"relative",overflow:"hidden",padding:"16px",display:"flex",justifyContent:"space-between",alignItems:"center","& .icon":{color:"secondary.main"},"&:before":{position:"absolute",top:"50%",left:0,display:"block",content:"''",height:"200%",aspectRatio:"1",transform:"translate(-30%, -60%)",borderRadius:"50%",backgroundColor:"secondary.main",opacity:.15}},children:[R.jsx(Qh,{width:"3em",className:"icon",children:d.createElement(e,{fontSize:"large"})}),R.jsxs(Qh,{textAlign:"right",children:[R.jsx(_t,{color:"textSecondary",children:t}),R.jsx(_t,{variant:"h5",component:"h2",children:r||" "})]})]})}),a&&R.jsx(mg,{}),a]}),Ske=({value:e})=>R.jsx($p,{to:"/jobs",icon:$L,title:"Leader",subtitle:e});var GE={},_ke=it;Object.defineProperty(GE,"__esModule",{value:!0});var kL=GE.default=void 0,Cke=_ke(ct()),Eke=R;kL=GE.default=(0,Cke.default)((0,Eke.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown");const Oke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"failed"}',icon:kL,title:"Failed Jobs",subtitle:e});var QE={},Pke=it;Object.defineProperty(QE,"__esModule",{value:!0});var jL=QE.default=void 0,Rke=Pke(ct()),Tke=R;jL=QE.default=(0,Rke.default)((0,Tke.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp");const $ke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"success"}',icon:jL,title:"Successful Jobs",subtitle:e});var XE={},kke=it;Object.defineProperty(XE,"__esModule",{value:!0});var IL=XE.default=void 0,jke=kke(ct()),Ike=R;IL=XE.default=(0,jke.default)((0,Ike.jsx)("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"}),"NewReleases");const Ake=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"untriggered"}',icon:IL,title:"Untriggered Jobs",subtitle:e}),Mke=({value:e})=>R.jsx($p,{to:"/jobs",icon:Hy,title:"Total Jobs",subtitle:e});let Fke={basePath:"/members",count:10,hasCreate:!1,hasEdit:!1,hasList:!0,hasShow:!1,location:{pathname:"/",search:"",hash:"",state:void 0},match:{path:"/",url:"/",isExact:!0,params:{}},options:{},permissions:null,resource:"members"};const I0={flex:{display:"flex"},flexColumn:{display:"flex",flexDirection:"column"},leftCol:{flex:1,marginRight:"0.5em"},rightCol:{flex:1,marginLeft:"0.5em"},singleCol:{marginTop:"1em",marginBottom:"1em"}},_h=()=>R.jsx("span",{style:{width:"1em"}}),Nke=()=>R.jsxs("div",{children:[R.jsxs(oo,{children:[R.jsx(FT,{title:"Welcome"}),R.jsx(Di,{children:R.jsx("div",{style:I0.flex,children:R.jsx("div",{style:I0.leftCol,children:R.jsxs("div",{style:I0.flex,children:[R.jsx(Ske,{value:window.DKRON_LEADER||"devel"}),R.jsx(_h,{}),R.jsx(Mke,{value:window.DKRON_TOTAL_JOBS||"0"}),R.jsx(_h,{}),R.jsx($ke,{value:window.DKRON_SUCCESSFUL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Oke,{value:window.DKRON_FAILED_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Ake,{value:window.DKRON_UNTRIGGERED_JOBS||"0"})]})})})})]}),R.jsxs(oo,{children:[R.jsx(FT,{title:"Nodes"}),R.jsx(Di,{children:R.jsx(TE,{...Fke,children:R.jsxs(Cp,{isRowSelectable:e=>!1,children:[R.jsx(fr,{source:"Name",sortable:!1}),R.jsx(fr,{source:"Addr",sortable:!1}),R.jsx(fr,{source:"Port",sortable:!1}),R.jsx(fr,{label:"Status",source:"statusText",sortable:!1}),R.jsx(TL,{source:"Tags",sortable:!1})]})})})]})]}),Lke=SL({label:{width:"10em",display:"inline-block"},button:{margin:"1em"}}),Dke=()=>(Lke(),R.jsxs(oo,{children:[R.jsx(dl,{title:"Settings"}),R.jsx(Di,{})]})),Bke=e=>{const[t,r]=d.useState(""),n=X3(),a=ur(),o=R.jsx(By,{}),{className:i}=e,[s,u]=Bn(!1),l=c=>{u(!0),n({token:t}).catch(()=>{u(!1),a("Invalid token")})};return R.jsx(zke,{children:R.jsxs(oo,{className:Cu.card,children:[R.jsx("div",{className:Cu.avatar,children:R.jsx(vg,{className:Cu.icon,children:o})}),R.jsx(Vke,{onSubmit:l,mode:"onChange",noValidate:!0,className:i,children:R.jsxs(Di,{className:Eu.content,children:[R.jsx(Nn,{name:"token",type:"text",value:t,onChange:c=>r(c.target.value)}),R.jsx(hn,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,className:Eu.button,children:s?R.jsx(kc,{className:Eu.icon,size:19,thickness:3}):"Sign in"})]})})]})})},hv="RaLogin",Cu={card:`${hv}-card`,avatar:`${hv}-avatar`,icon:`${hv}-icon`},zke=ne("div",{name:hv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)",[`& .${Cu.card}`]:{minWidth:300,marginTop:"6em"},[`& .${Cu.avatar}`]:{margin:"1em",display:"flex",justifyContent:"center"},[`& .${Cu.icon}`]:{backgroundColor:e.palette.secondary[500]}})),vv="RaLoginForm",Eu={content:`${vv}-content`,button:`${vv}-button`,icon:`${vv}-icon`},Vke=ne(M_,{name:vv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Eu.content}`]:{width:300},[`& .${Eu.button}`]:{marginTop:e.spacing(2)},[`& .${Eu.icon}`]:{margin:e.spacing(.3)}}));sRe();let AL=()=>Promise.resolve();window.DKRON_ACL_ENABLED&&(AL=yke);const Uke=()=>R.jsxs(tRe,{dashboard:Nke,loginPage:Bke,authProvider:AL,dataProvider:yRe,layout:mke,children:[R.jsx(Yl,{name:"jobs",...oke}),R.jsx(Yl,{name:"busy",options:{label:"Busy"},list:ske,icon:nL}),R.jsx(Yl,{name:"executions"}),R.jsx(Yl,{name:"members"}),R.jsx(P3,{children:R.jsx(zr,{path:"/settings",element:R.jsx(Dke,{})})})]});A0.createRoot(document.getElementById("root")).render(R.jsx(ke.StrictMode,{children:R.jsx(Uke,{})})); diff --git a/dkron/ui-dist/index.html b/dkron/ui-dist/index.html index fb45842c8..2f7415ecb 100644 --- a/dkron/ui-dist/index.html +++ b/dkron/ui-dist/index.html @@ -118,7 +118,7 @@ window.DKRON_SUCCESSFUL_JOBS = {{.DKRON_SUCCESSFUL_JOBS }}; window.DKRON_FAILED_JOBS = {{.DKRON_FAILED_JOBS }}; window.DKRON_UNTRIGGERED_JOBS = {{.DKRON_UNTRIGGERED_JOBS }}; - + diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 717881010..32eab922c 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -20,18 +20,24 @@ declare global { DKRON_FAILED_JOBS: string; DKRON_SUCCESSFUL_JOBS: string; DKRON_TOTAL_JOBS: string; + DKRON_ACL_ENABLED: boolean; } } const history = createHashHistory(); +let auth = () => Promise.resolve(); +if (window.DKRON_ACL_ENABLED) { + auth = authProvider; +} export const App = () => + From 8b8630407fe0a7db6e230bf40c900f888d3528f7 Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Mon, 30 Sep 2024 01:25:28 +0200 Subject: [PATCH 09/10] fix: ups --- ui/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/index.html b/ui/index.html index 1cecd7636..67ebea0d9 100644 --- a/ui/index.html +++ b/ui/index.html @@ -117,7 +117,8 @@ window.DKRON_TOTAL_JOBS = {{.DKRON_TOTAL_JOBS }}; window.DKRON_SUCCESSFUL_JOBS = {{.DKRON_SUCCESSFUL_JOBS }}; window.DKRON_FAILED_JOBS = {{.DKRON_FAILED_JOBS }}; - window.DKRON_UNTRIGGERED_JOBS = {{.DKRON_UNTRIGGERED_JOBS }}; + window.DKRON_UNTRIGGERED_JOBS = {{.DKRON_UNTRIGGERED_JOBS }}; + window.DKRON_ACL_ENABLED = {{.DKRON_ACL_ENABLED }}; From faa15b0d1aa4fec00486b18c76bc29513f228803 Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Wed, 2 Oct 2024 16:19:50 +0200 Subject: [PATCH 10/10] feat: check for ACL --- .../{index-079c97c3.js => index-244e3810.js} | 80 +++++++++---------- dkron/ui-dist/index.html | 17 ++-- ui/index.html | 16 ++-- ui/src/App.tsx | 8 +- 4 files changed, 59 insertions(+), 62 deletions(-) rename dkron/ui-dist/assets/{index-079c97c3.js => index-244e3810.js} (85%) diff --git a/dkron/ui-dist/assets/index-079c97c3.js b/dkron/ui-dist/assets/index-244e3810.js similarity index 85% rename from dkron/ui-dist/assets/index-079c97c3.js rename to dkron/ui-dist/assets/index-244e3810.js index 98e338552..864cfbb34 100644 --- a/dkron/ui-dist/assets/index-079c97c3.js +++ b/dkron/ui-dist/assets/index-244e3810.js @@ -1,4 +1,4 @@ -var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e,t,"read from private field"),r?r.call(e):t.get(e)),Xe=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ze=(e,t,r,n)=>(eb(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var jp=(e,t,r,n)=>({set _(a){ze(e,t,a,r)},get _(){return J(e,t,n)}}),pt=(e,t,r)=>(eb(e,t,"access private method"),r);function jk(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Do(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Ik={exports:{}},rm={},Ak={exports:{}},yt={};/** +var Zy=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(Zy(e,t,"read from private field"),r?r.call(e):t.get(e)),Xe=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ze=(e,t,r,n)=>(Zy(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var jp=(e,t,r,n)=>({set _(a){ze(e,t,a,r)},get _(){return J(e,t,n)}}),pt=(e,t,r)=>(Zy(e,t,"access private method"),r);function Ik(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Do(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Ak={exports:{}},tm={},Mk={exports:{}},yt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xf=Symbol.for("react.element"),ML=Symbol.for("react.portal"),FL=Symbol.for("react.fragment"),NL=Symbol.for("react.strict_mode"),LL=Symbol.for("react.profiler"),DL=Symbol.for("react.provider"),BL=Symbol.for("react.context"),zL=Symbol.for("react.forward_ref"),VL=Symbol.for("react.suspense"),UL=Symbol.for("react.memo"),WL=Symbol.for("react.lazy"),ZE=Symbol.iterator;function HL(e){return e===null||typeof e!="object"?null:(e=ZE&&e[ZE]||e["@@iterator"],typeof e=="function"?e:null)}var Mk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fk=Object.assign,Nk={};function ic(e,t,r){this.props=e,this.context=t,this.refs=Nk,this.updater=r||Mk}ic.prototype.isReactComponent={};ic.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ic.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lk(){}Lk.prototype=ic.prototype;function Kw(e,t,r){this.props=e,this.context=t,this.refs=Nk,this.updater=r||Mk}var Gw=Kw.prototype=new Lk;Gw.constructor=Kw;Fk(Gw,ic.prototype);Gw.isPureReactComponent=!0;var eO=Array.isArray,Dk=Object.prototype.hasOwnProperty,Qw={current:null},Bk={key:!0,ref:!0,__self:!0,__source:!0};function zk(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Dk.call(t,n)&&!Bk.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var XL=d,YL=Symbol.for("react.element"),JL=Symbol.for("react.fragment"),ZL=Object.prototype.hasOwnProperty,eD=XL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tD={key:!0,ref:!0,__self:!0,__source:!0};function Uk(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)ZL.call(t,n)&&!tD.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:YL,type:e,key:o,ref:i,props:a,_owner:eD.current}}rm.Fragment=JL;rm.jsx=Uk;rm.jsxs=Uk;Ik.exports=rm;var R=Ik.exports,A0={},Wk={exports:{}},Gn={},Hk={exports:{}},qk={};/** + */var XL=d,YL=Symbol.for("react.element"),JL=Symbol.for("react.fragment"),ZL=Object.prototype.hasOwnProperty,eD=XL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tD={key:!0,ref:!0,__self:!0,__source:!0};function Wk(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)ZL.call(t,n)&&!tD.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:YL,type:e,key:o,ref:i,props:a,_owner:eD.current}}tm.Fragment=JL;tm.jsx=Wk;tm.jsxs=Wk;Ak.exports=tm;var R=Ak.exports,A0={},Hk={exports:{}},Gn={},qk={exports:{}},Kk={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(B,U){var q=B.length;B.push(U);e:for(;0>>1,oe=B[ie];if(0>>1;iea(Te,q))yea(be,Te)?(B[ie]=be,B[ye]=q,ie=ye):(B[ie]=Te,B[pe]=q,ie=pe);else if(yea(be,q))B[ie]=be,B[ye]=q,ie=ye;else break e}}return U}function a(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=B)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function h(B){if(y=!1,b(B),!g)if(r(u)!==null)g=!0,M(_);else{var U=r(l);U!==null&&W(h,U.startTime-B)}}function _(B,U){g=!1,y&&(y=!1,x(w),w=-1),v=!0;var q=p;try{for(b(U),f=r(u);f!==null&&(!(f.expirationTime>U)||B&&!k());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,p=f.priorityLevel;var oe=ie(f.expirationTime<=U);U=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===r(u)&&n(u),b(U)}else n(u);f=r(u)}if(f!==null)var Ee=!0;else{var pe=r(l);pe!==null&&W(h,pe.startTime-U),Ee=!1}return Ee}finally{f=null,p=q,v=!1}}var C=!1,E=null,w=-1,O=5,P=-1;function k(){return!(e.unstable_now()-PB||125ie?(B.sortIndex=q,t(l,B),r(u)===null&&B===r(l)&&(y?(x(w),w=-1):y=!0,W(h,q-ie))):(B.sortIndex=oe,t(u,B),g||v||(g=!0,M(_))),B},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(qk);Hk.exports=qk;var rD=Hk.exports;/** + */(function(e){function t(B,U){var q=B.length;B.push(U);e:for(;0>>1,oe=B[ie];if(0>>1;iea(Te,q))yea(be,Te)?(B[ie]=be,B[ye]=q,ie=ye):(B[ie]=Te,B[pe]=q,ie=pe);else if(yea(be,q))B[ie]=be,B[ye]=q,ie=ye;else break e}}return U}function a(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=B)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function h(B){if(y=!1,b(B),!g)if(r(u)!==null)g=!0,M(_);else{var U=r(l);U!==null&&W(h,U.startTime-B)}}function _(B,U){g=!1,y&&(y=!1,x(w),w=-1),v=!0;var q=p;try{for(b(U),f=r(u);f!==null&&(!(f.expirationTime>U)||B&&!k());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,p=f.priorityLevel;var oe=ie(f.expirationTime<=U);U=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===r(u)&&n(u),b(U)}else n(u);f=r(u)}if(f!==null)var Ee=!0;else{var pe=r(l);pe!==null&&W(h,pe.startTime-U),Ee=!1}return Ee}finally{f=null,p=q,v=!1}}var C=!1,E=null,w=-1,O=5,P=-1;function k(){return!(e.unstable_now()-PB||125ie?(B.sortIndex=q,t(l,B),r(u)===null&&B===r(l)&&(y?(x(w),w=-1):y=!0,W(h,q-ie))):(B.sortIndex=oe,t(u,B),g||v||(g=!0,M(_))),B},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(Kk);qk.exports=Kk;var rD=qk.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var nD=d,Hn=rD;function Ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M0=Object.prototype.hasOwnProperty,aD=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rO={},nO={};function oD(e){return M0.call(nO,e)?!0:M0.call(rO,e)?!1:aD.test(e)?nO[e]=!0:(rO[e]=!0,!1)}function iD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sD(e,t,r,n){if(t===null||typeof t>"u"||iD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gn(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ur[e]=new gn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ur[t]=new gn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ur[e]=new gn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ur[e]=new gn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ur[e]=new gn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ur[e]=new gn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ur[e]=new gn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ur[e]=new gn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ur[e]=new gn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yw=/[\-:]([a-z])/g;function Jw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ur.xlinkHref=new gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zw(e,t,r,n){var a=Ur.hasOwnProperty(t)?Ur[t]:null;(a!==null?a.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M0=Object.prototype.hasOwnProperty,aD=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rO={},nO={};function oD(e){return M0.call(nO,e)?!0:M0.call(rO,e)?!1:aD.test(e)?nO[e]=!0:(rO[e]=!0,!1)}function iD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sD(e,t,r,n){if(t===null||typeof t>"u"||iD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gn(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ur[e]=new gn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ur[t]=new gn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ur[e]=new gn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ur[e]=new gn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ur[e]=new gn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ur[e]=new gn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ur[e]=new gn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ur[e]=new gn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ur[e]=new gn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yw=/[\-:]([a-z])/g;function Jw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ur.xlinkHref=new gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zw(e,t,r,n){var a=Ur.hasOwnProperty(t)?Ur[t]:null;(a!==null?a.type!==0:n||!(2s||a[i]!==o[s]){var u=` -`+a[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{nb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ad(e):""}function lD(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=ab(e.type,!1),e;case 11:return e=ab(e.type.render,!1),e;case 1:return e=ab(e.type,!0),e;default:return""}}function D0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fl:return"Fragment";case Ml:return"Portal";case F0:return"Profiler";case eS:return"StrictMode";case N0:return"Suspense";case L0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qk:return(e.displayName||"Context")+".Consumer";case Gk:return(e._context.displayName||"Context")+".Provider";case tS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rS:return t=e.displayName||null,t!==null?t:D0(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return D0(e(t))}catch{}}return null}function uD(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D0(t);case 8:return t===eS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cD(e){var t=Yk(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mp(e){e._valueTracker||(e._valueTracker=cD(e))}function Jk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Yk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function B0(e,t){var r=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function oO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zk(e,t){t=t.checked,t!=null&&Zw(e,"checked",t,!1)}function z0(e,t){Zk(e,t);var r=Fi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?V0(e,t.type,r):t.hasOwnProperty("defaultValue")&&V0(e,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function V0(e,t,r){(t!=="number"||gv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var od=Array.isArray;function nu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Fp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var md={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dD=["Webkit","ms","Moz","O"];Object.keys(md).forEach(function(e){dD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),md[t]=md[e]})});function nj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||md.hasOwnProperty(e)&&md[e]?(""+t).trim():t+"px"}function aj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=nj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var fD=rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function H0(e,t){if(t){if(fD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function q0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var K0=null;function nS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var G0=null,au=null,ou=null;function uO(e){if(e=Zf(e)){if(typeof G0!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=sm(t),G0(e.stateNode,e.type,t))}}function oj(e){au?ou?ou.push(e):ou=[e]:au=e}function ij(){if(au){var e=au,t=ou;if(ou=au=null,uO(e),t)for(e=0;e>>=0,e===0?32:31-(_D(e)/CD|0)|0}var Np=64,Lp=4194304;function id(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=id(s):(o&=i,o!==0&&(n=id(o)))}else i=r&~a,i!==0?n=id(i):o!==0&&(n=id(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=r}function RD(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=bd),yO=String.fromCharCode(32),bO=!1;function Oj(e,t){switch(e){case"keyup":return r6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function a6(e,t){switch(e){case"compositionend":return Pj(t);case"keypress":return t.which!==32?null:(bO=!0,yO);case"textInput":return e=t.data,e===yO&&bO?null:e;default:return null}}function o6(e,t){if(Nl)return e==="compositionend"||!dS&&Oj(e,t)?(e=Cj(),Ph=lS=xi=null,Nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_O(r)}}function kj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jj(){for(var e=window,t=gv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gv(e.document)}return t}function fS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function h6(e){var t=jj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kj(r.ownerDocument.documentElement,r)){if(n!==null&&fS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=CO(r,o);var i=CO(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ll=null,e1=null,wd=null,t1=!1;function EO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t1||Ll==null||Ll!==gv(n)||(n=Ll,"selectionStart"in n&&fS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wd&&af(wd,n)||(wd=n,n=_v(e1,"onSelect"),0zl||(e.current=s1[zl],s1[zl]=null,zl--)}function Ht(e,t){zl++,s1[zl]=e.current,e.current=t}var Ni={},tn=Vi(Ni),On=Vi(!1),Vs=Ni;function zu(e,t){var r=e.type.contextTypes;if(!r)return Ni;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pn(e){return e=e.childContextTypes,e!=null}function Ev(){Qt(On),Qt(tn)}function jO(e,t,r){if(tn.current!==Ni)throw Error(Ie(168));Ht(tn,t),Ht(On,r)}function zj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Ie(108,uD(e)||"Unknown",a));return rr({},r,n)}function Ov(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Vs=tn.current,Ht(tn,e),Ht(On,On.current),!0}function IO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=zj(e,t,Vs),n.__reactInternalMemoizedMergedChildContext=e,Qt(On),Qt(tn),Ht(tn,e)):Qt(On),Ht(On,r)}var wo=null,lm=!1,yb=!1;function Vj(e){wo===null?wo=[e]:wo.push(e)}function O6(e){lm=!0,Vj(e)}function Ui(){if(!yb&&wo!==null){yb=!0;var e=0,t=At;try{var r=wo;for(At=1;e>=i,a-=i,Eo=1<<32-$a(t)+a|r<w?(O=E,E=null):O=E.sibling;var P=p(x,E,b[w],h);if(P===null){E===null&&(E=O);break}e&&E&&P.alternate===null&&t(x,E),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P,E=O}if(w===b.length)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;ww?(O=E,E=null):O=E.sibling;var k=p(x,E,P.value,h);if(k===null){E===null&&(E=O);break}e&&E&&k.alternate===null&&t(x,E),m=o(k,m,w),C===null?_=k:C.sibling=k,C=k,E=O}if(P.done)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;!P.done;w++,P=b.next())P=f(x,P.value,h),P!==null&&(m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return Yt&&rs(x,w),_}for(E=n(x,E);!P.done;w++,P=b.next())P=v(E,x,w,P.value,h),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?w:P.key),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return e&&E.forEach(function(j){return t(x,j)}),Yt&&rs(x,w),_}function S(x,m,b,h){if(typeof b=="object"&&b!==null&&b.type===Fl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ap:e:{for(var _=b.key,C=m;C!==null;){if(C.key===_){if(_=b.type,_===Fl){if(C.tag===7){r(x,C.sibling),m=a(C,b.props.children),m.return=x,x=m;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ni&&FO(_)===C.type){r(x,C.sibling),m=a(C,b.props),m.ref=Dc(x,C,b),m.return=x,x=m;break e}r(x,C);break}else t(x,C);C=C.sibling}b.type===Fl?(m=Ms(b.props.children,x.mode,h,b.key),m.return=x,x=m):(h=Mh(b.type,b.key,b.props,null,x.mode,h),h.ref=Dc(x,m,b),h.return=x,x=h)}return i(x);case Ml:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(x,m.sibling),m=a(m,b.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Ob(b,x.mode,h),m.return=x,x=m}return i(x);case ni:return C=b._init,S(x,m,C(b._payload),h)}if(od(b))return g(x,m,b,h);if(Ac(b))return y(x,m,b,h);Hp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(x,m.sibling),m=a(m,b),m.return=x,x=m):(r(x,m),m=Eb(b,x.mode,h),m.return=x,x=m),i(x)):r(x,m)}return S}var Uu=qj(!0),Kj=qj(!1),Tv=Vi(null),$v=null,Wl=null,gS=null;function mS(){gS=Wl=$v=null}function yS(e){var t=Tv.current;Qt(Tv),e._currentValue=t}function c1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function su(e,t){$v=e,gS=Wl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(En=!0),e.firstContext=null)}function ua(e){var t=e._currentValue;if(gS!==e)if(e={context:e,memoizedValue:t,next:null},Wl===null){if($v===null)throw Error(Ie(308));Wl=e,$v.dependencies={lanes:0,firstContext:e}}else Wl=Wl.next=e;return t}var ys=null;function bS(e){ys===null?ys=[e]:ys.push(e)}function Gj(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,bS(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ao(e,n)}function Ao(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ai=!1;function xS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ct&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ao(e,r)}return a=n.interleaved,a===null?(t.next=t,bS(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ao(e,r)}function Th(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}function NO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function kv(e,t,r,n){var a=e.updateQueue;ai=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,v=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,f,p):g,p==null)break e;f=rr({},f,p);break e;case 2:ai=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=v,u=f):c=c.next=v,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(c===null&&(u=f),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hs|=i,e.lanes=i,e.memoizedState=f}}function LO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=xb.transition;xb.transition={};try{e(!1),t()}finally{At=r,xb.transition=n}}function fI(){return ca().memoizedState}function $6(e,t,r){var n=ji(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pI(e))hI(t,r);else if(r=Gj(e,t,r,n),r!==null){var a=pn();ka(r,e,n,a),vI(r,t,n)}}function k6(e,t,r){var n=ji(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pI(e))hI(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,Ia(s,i)){var u=t.interleaved;u===null?(a.next=a,bS(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=Gj(e,t,a,n),r!==null&&(a=pn(),ka(r,e,n,a),vI(r,t,n))}}function pI(e){var t=e.alternate;return e===tr||t!==null&&t===tr}function hI(e,t){Sd=Iv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function vI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}var Av={readContext:ua,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},j6={readContext:ua,useCallback:function(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:BO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,kh(4194308,4,sI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return kh(4194308,4,e,t)},useInsertionEffect:function(e,t){return kh(4,2,e,t)},useMemo:function(e,t){var r=Ba();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ba();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$6.bind(null,tr,e),[n.memoizedState,e]},useRef:function(e){var t=Ba();return e={current:e},t.memoizedState=e},useState:DO,useDebugValue:RS,useDeferredValue:function(e){return Ba().memoizedState=e},useTransition:function(){var e=DO(!1),t=e[0];return e=T6.bind(null,e[1]),Ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tr,a=Ba();if(Yt){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Ar===null)throw Error(Ie(349));Ws&30||Zj(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,BO(tI.bind(null,n,o,e),[e]),n.flags|=2048,pf(9,eI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ba(),t=Ar.identifierPrefix;if(Yt){var r=Oo,n=Eo;r=(n&~(1<<32-$a(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=df++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{rb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ad(e):""}function lD(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=nb(e.type,!1),e;case 11:return e=nb(e.type.render,!1),e;case 1:return e=nb(e.type,!0),e;default:return""}}function D0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fl:return"Fragment";case Ml:return"Portal";case F0:return"Profiler";case eS:return"StrictMode";case N0:return"Suspense";case L0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xk:return(e.displayName||"Context")+".Consumer";case Qk:return(e._context.displayName||"Context")+".Provider";case tS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rS:return t=e.displayName||null,t!==null?t:D0(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return D0(e(t))}catch{}}return null}function uD(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D0(t);case 8:return t===eS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cD(e){var t=Jk(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mp(e){e._valueTracker||(e._valueTracker=cD(e))}function Zk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Jk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function vv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function B0(e,t){var r=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function oO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ej(e,t){t=t.checked,t!=null&&Zw(e,"checked",t,!1)}function z0(e,t){ej(e,t);var r=Fi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?V0(e,t.type,r):t.hasOwnProperty("defaultValue")&&V0(e,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function V0(e,t,r){(t!=="number"||vv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var od=Array.isArray;function nu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Fp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var md={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dD=["Webkit","ms","Moz","O"];Object.keys(md).forEach(function(e){dD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),md[t]=md[e]})});function aj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||md.hasOwnProperty(e)&&md[e]?(""+t).trim():t+"px"}function oj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=aj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var fD=rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function H0(e,t){if(t){if(fD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function q0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var K0=null;function nS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var G0=null,au=null,ou=null;function uO(e){if(e=Zf(e)){if(typeof G0!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=im(t),G0(e.stateNode,e.type,t))}}function ij(e){au?ou?ou.push(e):ou=[e]:au=e}function sj(){if(au){var e=au,t=ou;if(ou=au=null,uO(e),t)for(e=0;e>>=0,e===0?32:31-(_D(e)/CD|0)|0}var Np=64,Lp=4194304;function id(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=id(s):(o&=i,o!==0&&(n=id(o)))}else i=r&~a,i!==0?n=id(i):o!==0&&(n=id(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=r}function RD(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=bd),yO=String.fromCharCode(32),bO=!1;function Pj(e,t){switch(e){case"keyup":return r6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function a6(e,t){switch(e){case"compositionend":return Rj(t);case"keypress":return t.which!==32?null:(bO=!0,yO);case"textInput":return e=t.data,e===yO&&bO?null:e;default:return null}}function o6(e,t){if(Nl)return e==="compositionend"||!dS&&Pj(e,t)?(e=Ej(),Ph=lS=xi=null,Nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_O(r)}}function jj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ij(){for(var e=window,t=vv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=vv(e.document)}return t}function fS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function h6(e){var t=Ij(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&jj(r.ownerDocument.documentElement,r)){if(n!==null&&fS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=CO(r,o);var i=CO(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ll=null,e1=null,wd=null,t1=!1;function EO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t1||Ll==null||Ll!==vv(n)||(n=Ll,"selectionStart"in n&&fS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wd&&af(wd,n)||(wd=n,n=Sv(e1,"onSelect"),0zl||(e.current=s1[zl],s1[zl]=null,zl--)}function Ht(e,t){zl++,s1[zl]=e.current,e.current=t}var Ni={},tn=Vi(Ni),On=Vi(!1),Vs=Ni;function zu(e,t){var r=e.type.contextTypes;if(!r)return Ni;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pn(e){return e=e.childContextTypes,e!=null}function Cv(){Qt(On),Qt(tn)}function jO(e,t,r){if(tn.current!==Ni)throw Error(Ie(168));Ht(tn,t),Ht(On,r)}function Vj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Ie(108,uD(e)||"Unknown",a));return rr({},r,n)}function Ev(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Vs=tn.current,Ht(tn,e),Ht(On,On.current),!0}function IO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=Vj(e,t,Vs),n.__reactInternalMemoizedMergedChildContext=e,Qt(On),Qt(tn),Ht(tn,e)):Qt(On),Ht(On,r)}var wo=null,sm=!1,mb=!1;function Uj(e){wo===null?wo=[e]:wo.push(e)}function O6(e){sm=!0,Uj(e)}function Ui(){if(!mb&&wo!==null){mb=!0;var e=0,t=At;try{var r=wo;for(At=1;e>=i,a-=i,Eo=1<<32-$a(t)+a|r<w?(O=E,E=null):O=E.sibling;var P=p(x,E,b[w],h);if(P===null){E===null&&(E=O);break}e&&E&&P.alternate===null&&t(x,E),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P,E=O}if(w===b.length)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;ww?(O=E,E=null):O=E.sibling;var k=p(x,E,P.value,h);if(k===null){E===null&&(E=O);break}e&&E&&k.alternate===null&&t(x,E),m=o(k,m,w),C===null?_=k:C.sibling=k,C=k,E=O}if(P.done)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;!P.done;w++,P=b.next())P=f(x,P.value,h),P!==null&&(m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return Yt&&rs(x,w),_}for(E=n(x,E);!P.done;w++,P=b.next())P=v(E,x,w,P.value,h),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?w:P.key),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return e&&E.forEach(function(j){return t(x,j)}),Yt&&rs(x,w),_}function S(x,m,b,h){if(typeof b=="object"&&b!==null&&b.type===Fl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ap:e:{for(var _=b.key,C=m;C!==null;){if(C.key===_){if(_=b.type,_===Fl){if(C.tag===7){r(x,C.sibling),m=a(C,b.props.children),m.return=x,x=m;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ni&&FO(_)===C.type){r(x,C.sibling),m=a(C,b.props),m.ref=Dc(x,C,b),m.return=x,x=m;break e}r(x,C);break}else t(x,C);C=C.sibling}b.type===Fl?(m=Ms(b.props.children,x.mode,h,b.key),m.return=x,x=m):(h=Mh(b.type,b.key,b.props,null,x.mode,h),h.ref=Dc(x,m,b),h.return=x,x=h)}return i(x);case Ml:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(x,m.sibling),m=a(m,b.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Eb(b,x.mode,h),m.return=x,x=m}return i(x);case ni:return C=b._init,S(x,m,C(b._payload),h)}if(od(b))return g(x,m,b,h);if(Ac(b))return y(x,m,b,h);Hp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(x,m.sibling),m=a(m,b),m.return=x,x=m):(r(x,m),m=Cb(b,x.mode,h),m.return=x,x=m),i(x)):r(x,m)}return S}var Uu=Kj(!0),Gj=Kj(!1),Rv=Vi(null),Tv=null,Wl=null,gS=null;function mS(){gS=Wl=Tv=null}function yS(e){var t=Rv.current;Qt(Rv),e._currentValue=t}function c1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function su(e,t){Tv=e,gS=Wl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(En=!0),e.firstContext=null)}function ua(e){var t=e._currentValue;if(gS!==e)if(e={context:e,memoizedValue:t,next:null},Wl===null){if(Tv===null)throw Error(Ie(308));Wl=e,Tv.dependencies={lanes:0,firstContext:e}}else Wl=Wl.next=e;return t}var ys=null;function bS(e){ys===null?ys=[e]:ys.push(e)}function Qj(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,bS(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ao(e,n)}function Ao(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ai=!1;function xS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ct&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ao(e,r)}return a=n.interleaved,a===null?(t.next=t,bS(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ao(e,r)}function Th(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}function NO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function $v(e,t,r,n){var a=e.updateQueue;ai=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,v=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,f,p):g,p==null)break e;f=rr({},f,p);break e;case 2:ai=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=v,u=f):c=c.next=v,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(c===null&&(u=f),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hs|=i,e.lanes=i,e.memoizedState=f}}function LO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=bb.transition;bb.transition={};try{e(!1),t()}finally{At=r,bb.transition=n}}function pI(){return ca().memoizedState}function $6(e,t,r){var n=ji(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},hI(e))vI(t,r);else if(r=Qj(e,t,r,n),r!==null){var a=pn();ka(r,e,n,a),gI(r,t,n)}}function k6(e,t,r){var n=ji(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(hI(e))vI(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,Ia(s,i)){var u=t.interleaved;u===null?(a.next=a,bS(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=Qj(e,t,a,n),r!==null&&(a=pn(),ka(r,e,n,a),gI(r,t,n))}}function hI(e){var t=e.alternate;return e===tr||t!==null&&t===tr}function vI(e,t){Sd=jv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function gI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}var Iv={readContext:ua,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},j6={readContext:ua,useCallback:function(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:BO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,kh(4194308,4,lI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return kh(4194308,4,e,t)},useInsertionEffect:function(e,t){return kh(4,2,e,t)},useMemo:function(e,t){var r=Ba();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ba();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$6.bind(null,tr,e),[n.memoizedState,e]},useRef:function(e){var t=Ba();return e={current:e},t.memoizedState=e},useState:DO,useDebugValue:RS,useDeferredValue:function(e){return Ba().memoizedState=e},useTransition:function(){var e=DO(!1),t=e[0];return e=T6.bind(null,e[1]),Ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tr,a=Ba();if(Yt){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Ar===null)throw Error(Ie(349));Ws&30||eI(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,BO(rI.bind(null,n,o,e),[e]),n.flags|=2048,pf(9,tI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ba(),t=Ar.identifierPrefix;if(Yt){var r=Oo,n=Eo;r=(n&~(1<<32-$a(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=df++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Qa]=t,e[lf]=n,EI(e,t,!1,!1),t.stateNode=e;e:{switch(i=q0(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),a=n;break;case"iframe":case"object":case"embed":Kt("load",e),a=n;break;case"video":case"audio":for(a=0;aqu&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304)}else{if(!n)if(e=jv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Yt)return Xr(t),null}else 2*pr()-o.renderingStartTime>qu&&r!==1073741824&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pr(),t.sibling=null,r=er.current,Ht(er,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return AS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function B6(e,t){switch(hS(t),t.tag){case 1:return Pn(t.type)&&Ev(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wu(),Qt(On),Qt(tn),_S(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return SS(t),null;case 13:if(Qt(er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(er),null;case 4:return Wu(),null;case 10:return yS(t.type._context),null;case 22:case 23:return AS(),null;case 24:return null;default:return null}}var Kp=!1,Zr=!1,z6=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Hl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){sr(e,t,n)}else r.current=null}function b1(e,t,r){try{r()}catch(n){sr(e,t,n)}}var YO=!1;function V6(e,t){if(r1=wv,e=jj(),fS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==r||a!==0&&f.nodeType!==3||(s=i+a),f!==o||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(n1={focusedElem:e,selectionRange:r},wv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:wa(t.type,y),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){sr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=YO,YO=!1,g}function _d(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&b1(t,r,o)}a=a.next}while(a!==n)}}function dm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function x1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function RI(e){var t=e.alternate;t!==null&&(e.alternate=null,RI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qa],delete t[lf],delete t[i1],delete t[C6],delete t[E6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function TI(e){return e.tag===5||e.tag===3||e.tag===4}function JO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Cv));else if(n!==4&&(e=e.child,e!==null))for(w1(e,t,r),e=e.sibling;e!==null;)w1(e,t,r),e=e.sibling}function S1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(S1(e,t,r),e=e.sibling;e!==null;)S1(e,t,r),e=e.sibling}var Dr=null,_a=!1;function Xo(e,t,r){for(r=r.child;r!==null;)$I(e,t,r),r=r.sibling}function $I(e,t,r){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(nm,r)}catch{}switch(r.tag){case 5:Zr||Hl(r,t);case 6:var n=Dr,a=_a;Dr=null,Xo(e,t,r),Dr=n,_a=a,Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?mb(e.parentNode,r):e.nodeType===1&&mb(e,r),rf(e)):mb(Dr,r.stateNode));break;case 4:n=Dr,a=_a,Dr=r.stateNode.containerInfo,_a=!0,Xo(e,t,r),Dr=n,_a=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&b1(r,t,i),a=a.next}while(a!==n)}Xo(e,t,r);break;case 1:if(!Zr&&(Hl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){sr(r,t,s)}Xo(e,t,r);break;case 21:Xo(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Xo(e,t,r),Zr=n):Xo(e,t,r);break;default:Xo(e,t,r)}}function ZO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new z6),t.forEach(function(n){var a=Y6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=pr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*W6(n/1960))-n,10e?16:e,wi===null)var n=!1;else{if(e=wi,wi=null,Nv=0,Ct&6)throw Error(Ie(331));var a=Ct;for(Ct|=4,Ve=e.current;Ve!==null;){var o=Ve,i=o.child;if(Ve.flags&16){var s=o.deletions;if(s!==null){for(var u=0;upr()-jS?As(e,0):kS|=r),Rn(e,t)}function LI(e,t){t===0&&(e.mode&1?(t=Lp,Lp<<=1,!(Lp&130023424)&&(Lp=4194304)):t=1);var r=pn();e=Ao(e,t),e!==null&&(Yf(e,t,r),Rn(e,r))}function X6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),LI(e,r)}function Y6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ie(314))}n!==null&&n.delete(t),LI(e,r)}var DI;DI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)En=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return En=!1,L6(e,t,r);En=!!(e.flags&131072)}else En=!1,Yt&&t.flags&1048576&&Uj(t,Rv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;jh(e,t),e=t.pendingProps;var a=zu(t,tn.current);su(t,r),a=ES(null,t,n,e,a,r);var o=OS();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(n)?(o=!0,Ov(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xS(t),a.updater=cm,t.stateNode=a,a._reactInternals=t,f1(t,n,e,r),t=v1(null,t,n,!0,o,r)):(t.tag=0,Yt&&o&&pS(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(jh(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Z6(n),e=wa(n,e),a){case 0:t=h1(null,t,n,e,r);break e;case 1:t=GO(null,t,n,e,r);break e;case 11:t=qO(null,t,n,e,r);break e;case 14:t=KO(null,t,n,wa(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),h1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),GO(e,t,n,a,r);case 3:e:{if(SI(t),e===null)throw Error(Ie(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Qj(e,t),kv(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Hu(Error(Ie(423)),t),t=QO(e,t,n,r,a);break e}else if(n!==a){a=Hu(Error(Ie(424)),t),t=QO(e,t,n,r,a);break e}else for(Vn=Ti(t.stateNode.containerInfo.firstChild),Un=t,Yt=!0,Ea=null,r=Kj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vu(),n===a){t=Mo(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return Xj(t),e===null&&u1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,a1(n,a)?i=null:o!==null&&a1(n,o)&&(t.flags|=32),wI(e,t),cn(e,t,i,r),t.child;case 6:return e===null&&u1(t),null;case 13:return _I(e,t,r);case 4:return wS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Uu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),qO(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ht(Tv,n._currentValue),n._currentValue=i,o!==null)if(Ia(o.value,i)){if(o.children===a.children&&!On.current){t=Mo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=To(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),c1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ie(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),c1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,su(t,r),a=ua(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=wa(n,t.pendingProps),a=wa(n.type,a),KO(e,t,n,a,r);case 15:return bI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),jh(e,t),t.tag=1,Pn(n)?(e=!0,Ov(t)):e=!1,su(t,r),gI(t,n,a),f1(t,n,a,r),v1(null,t,n,!0,e,r);case 19:return CI(e,t,r);case 22:return xI(e,t,r)}throw Error(Ie(156,t.tag))};function BI(e,t){return pj(e,t)}function J6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ia(e,t,r,n){return new J6(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Z6(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tS)return 11;if(e===rS)return 14}return 2}function Ii(e,t){var r=e.alternate;return r===null?(r=ia(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Mh(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")FS(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fl:return Ms(r.children,a,o,t);case eS:i=8,a|=8;break;case F0:return e=ia(12,r,t,a|2),e.elementType=F0,e.lanes=o,e;case N0:return e=ia(13,r,t,a),e.elementType=N0,e.lanes=o,e;case L0:return e=ia(19,r,t,a),e.elementType=L0,e.lanes=o,e;case Xk:return pm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gk:i=10;break e;case Qk:i=9;break e;case tS:i=11;break e;case rS:i=14;break e;case ni:i=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ia(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Ms(e,t,r,n){return e=ia(7,e,n,t),e.lanes=r,e}function pm(e,t,r,n){return e=ia(22,e,n,t),e.elementType=Xk,e.lanes=r,e.stateNode={isHidden:!1},e}function Eb(e,t,r){return e=ia(6,e,null,t),e.lanes=r,e}function Ob(e,t,r){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eB(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function NS(e,t,r,n,a,o,i,s,u){return e=new eB(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ia(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},xS(o),e}function tB(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WI)}catch(e){console.error(e)}}WI(),Wk.exports=Gn;var tp=Wk.exports;const ld=Mr(tp),iB=jk({__proto__:null,default:ld},[tp]);var sP=tp;A0.createRoot=sP.createRoot,A0.hydrateRoot=sP.hydrateRoot;var zS=d.createContext(void 0);zS.displayName="AuthContext";var ym={loginUrl:"/login",afterLoginUrl:"/"},sB=function(){return d.useContext(zS)};const zo=sB;var uc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ku=typeof window>"u"||"Deno"in globalThis;function Zn(){}function lB(e,t){return typeof e=="function"?e(t):e}function P1(e){return typeof e=="number"&&e>=0&&e!==1/0}function HI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uu(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){return typeof e=="function"?e(t):e}function lP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==VS(i,t.options))return!1}else if(!vf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function uP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ks(t.options.mutationKey)!==Ks(o))return!1}else if(!vf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function VS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ks)(e)}function Ks(e){return JSON.stringify(e,(t,r)=>R1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function vf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!vf(e[r],t[r])):!1}function qI(e,t){if(e===t)return e;const r=cP(e)&&cP(t);if(r||R1(e)&&R1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function T1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?qI(e,t):t}function cB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function dB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var KI=Symbol();function GI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===KI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Os,fi,Ou,Sk,fB=(Sk=class extends uc{constructor(){super();Xe(this,Os,void 0);Xe(this,fi,void 0);Xe(this,Ou,void 0);ze(this,Ou,t=>{if(!Ku&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){J(this,fi)||this.setEventListener(J(this,Ou))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,fi))==null||t.call(this),ze(this,fi,void 0))}setEventListener(t){var r;ze(this,Ou,t),(r=J(this,fi))==null||r.call(this),ze(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){J(this,Os)!==t&&(ze(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof J(this,Os)=="boolean"?J(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,fi=new WeakMap,Ou=new WeakMap,Sk),US=new fB,Pu,pi,Ru,_k,pB=(_k=class extends uc{constructor(){super();Xe(this,Pu,!0);Xe(this,pi,void 0);Xe(this,Ru,void 0);ze(this,Ru,t=>{if(!Ku&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){J(this,pi)||this.setEventListener(J(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,pi))==null||t.call(this),ze(this,pi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=J(this,pi))==null||r.call(this),ze(this,pi,t(this.setOnline.bind(this)))}setOnline(t){J(this,Pu)!==t&&(ze(this,Pu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return J(this,Pu)}},Pu=new WeakMap,pi=new WeakMap,Ru=new WeakMap,_k),zv=new pB;function hB(e){return Math.min(1e3*2**e,3e4)}function QI(e){return(e??"online")==="online"?zv.isOnline():!0}var XI=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Pb(e){return e instanceof XI}function YI(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,m)=>{o=x,i=m}),u=x=>{var m;n||(g(new XI(x)),(m=e.abort)==null||m.call(e))},l=()=>{t=!0},c=()=>{t=!1},f=()=>US.isFocused()&&(e.networkMode==="always"||zv.isOnline())&&e.canRun(),p=()=>QI(e.networkMode)&&e.canRun(),v=x=>{var m;n||(n=!0,(m=e.onSuccess)==null||m.call(e,x),a==null||a(),o(x))},g=x=>{var m;n||(n=!0,(m=e.onError)==null||m.call(e,x),a==null||a(),i(x))},y=()=>new Promise(x=>{var m;a=b=>{(n||f())&&x(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),S=()=>{if(n)return;let x;const m=r===0?e.initialPromise:void 0;try{x=m??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(v).catch(b=>{var w;if(n)return;const h=e.retry??(Ku?0:3),_=e.retryDelay??hB,C=typeof _=="function"?_(r,b):_,E=h===!0||typeof h=="number"&&rf()?void 0:y()).then(()=>{t?g(b):S()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?S():y().then(S),s)}}function vB(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=s=>setTimeout(s,0);const o=s=>{t?e.push(s):a(()=>{r(s)})},i=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var hr=vB(),Ps,Ck,JI=(Ck=class{constructor(){Xe(this,Ps,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P1(this.gcTime)&&ze(this,Ps,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ku?1/0:5*60*1e3))}clearGcTimeout(){J(this,Ps)&&(clearTimeout(J(this,Ps)),ze(this,Ps,void 0))}},Ps=new WeakMap,Ck),Tu,$u,Jn,Jr,Lf,Rs,Sa,yo,Ek,gB=(Ek=class extends JI{constructor(t){super();Xe(this,Sa);Xe(this,Tu,void 0);Xe(this,$u,void 0);Xe(this,Jn,void 0);Xe(this,Jr,void 0);Xe(this,Lf,void 0);Xe(this,Rs,void 0);ze(this,Rs,!1),ze(this,Lf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Jn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Tu,mB(this.options)),this.state=t.state??J(this,Tu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...J(this,Lf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Jn).remove(this)}setData(t,r){const n=T1(this.state.data,t,this.options);return pt(this,Sa,yo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){pt(this,Sa,yo).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=J(this,Jr))==null?void 0:n.promise;return(a=J(this,Jr))==null||a.cancel(t),r?r.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Tu))}isActive(){return this.observers.some(t=>Oa(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!HI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(J(this,Jr)&&(J(this,Rs)?J(this,Jr).cancel({revert:!0}):J(this,Jr).cancelRetry()),this.scheduleGc()),J(this,Jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Sa,yo).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(J(this,Jr))return J(this,Jr).continueRetry(),J(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ze(this,Rs,!0),n.signal)})},o=()=>{const f=GI(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Rs,!1),this.options.persister?this.options.persister(f,p,this):f(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,$u,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&pt(this,Sa,yo).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=f=>{var p,v,g,y;Pb(f)&&f.silent||pt(this,Sa,yo).call(this,{type:"error",error:f}),Pb(f)||((v=(p=J(this,Jn).config).onError)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,YI({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,v,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){s(S);return}(v=(p=J(this,Jn).config).onSuccess)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,p)=>{pt(this,Sa,yo).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pt(this,Sa,yo).call(this,{type:"pause"})},onContinue:()=>{pt(this,Sa,yo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),J(this,Jr).start()}},Tu=new WeakMap,$u=new WeakMap,Jn=new WeakMap,Jr=new WeakMap,Lf=new WeakMap,Rs=new WeakMap,Sa=new WeakSet,yo=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...ZI(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Pb(a)&&a.revert&&J(this,$u)?{...J(this,$u),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),J(this,Jn).notify({query:this,type:"updated",action:t})})},Ek);function ZI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Va,Ok,yB=(Ok=class extends uc{constructor(t={}){super();Xe(this,Va,void 0);this.config=t,ze(this,Va,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??VS(a,r);let i=this.get(o);return i||(i=new gB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){J(this,Va).has(t.queryHash)||(J(this,Va).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=J(this,Va).get(t.queryHash);r&&(t.destroy(),r===t&&J(this,Va).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Va).get(t)}getAll(){return[...J(this,Va).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>lP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>lP(t,n)):r}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){hr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Va=new WeakMap,Ok),Ua,sn,Ts,Wa,ei,Pk,bB=(Pk=class extends JI{constructor(t){super();Xe(this,Wa);Xe(this,Ua,void 0);Xe(this,sn,void 0);Xe(this,Ts,void 0);this.mutationId=t.mutationId,ze(this,sn,t.mutationCache),ze(this,Ua,[]),this.state=t.state||eA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Ua).includes(t)||(J(this,Ua).push(t),this.clearGcTimeout(),J(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ua,J(this,Ua).filter(r=>r!==t)),this.scheduleGc(),J(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Ua).length||(this.state.status==="pending"?this.scheduleGc():J(this,sn).remove(this))}continue(){var t;return((t=J(this,Ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_,C,E;ze(this,Ts,YI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,O)=>{pt(this,Wa,ei).call(this,{type:"failed",failureCount:w,error:O})},onPause:()=>{pt(this,Wa,ei).call(this,{type:"pause"})},onContinue:()=>{pt(this,Wa,ei).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,sn).canRun(this)}));const r=this.state.status==="pending",n=!J(this,Ts).canStart();try{if(!r){pt(this,Wa,ei).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=J(this,sn).config).onMutate)==null?void 0:o.call(a,t,this));const O=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));O!==this.state.context&&pt(this,Wa,ei).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const w=await J(this,Ts).start();return await((l=(u=J(this,sn).config).onSuccess)==null?void 0:l.call(u,w,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,w,t,this.state.context)),await((v=(p=J(this,sn).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,w,null,t,this.state.context)),pt(this,Wa,ei).call(this,{type:"success",data:w}),w}catch(w){try{throw await((x=(S=J(this,sn).config).onError)==null?void 0:x.call(S,w,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,w,t,this.state.context)),await((_=(h=J(this,sn).config).onSettled)==null?void 0:_.call(h,void 0,w,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,w,t,this.state.context)),w}finally{pt(this,Wa,ei).call(this,{type:"error",error:w})}}finally{J(this,sn).runNext(this)}}},Ua=new WeakMap,sn=new WeakMap,Ts=new WeakMap,Wa=new WeakSet,ei=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),hr.batch(()=>{J(this,Ua).forEach(n=>{n.onMutationUpdate(t)}),J(this,sn).notify({mutation:this,type:"updated",action:t})})},Pk);function eA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,Df,Rk,xB=(Rk=class extends uc{constructor(t={}){super();Xe(this,Fn,void 0);Xe(this,Df,void 0);this.config=t,ze(this,Fn,new Map),ze(this,Df,Date.now())}build(t,r,n){const a=new bB({mutationCache:this,mutationId:++jp(this,Df)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Xp(t),n=J(this,Fn).get(r)??[];n.push(t),J(this,Fn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Xp(t);if(J(this,Fn).has(r)){const a=(n=J(this,Fn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?J(this,Fn).delete(r):J(this,Fn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...J(this,Fn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uP(r,n))}findAll(t={}){return this.getAll().filter(r=>uP(t,r))}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return hr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Zn))))}},Fn=new WeakMap,Df=new WeakMap,Rk);function Xp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fP(e){return{onFetch:(t,r)=>{var c,f,p,v,g;const n=t.options,a=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let y=!1;const S=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},x=GI(t.options,t.fetchOptions),m=async(b,h,_)=>{if(y)return Promise.reject();if(h==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:t.queryKey,pageParam:h,direction:_?"backward":"forward",meta:t.options.meta};S(C);const E=await x(C),{maxPages:w}=t.options,O=_?dB:cB;return{pages:O(b.pages,E,w),pageParams:O(b.pageParams,h,w)}};if(a&&o.length){const b=a==="backward",h=b?wB:pP,_={pages:o,pageParams:i},C=h(n,_);s=await m(_,C,b)}else{const b=e??o.length;do{const h=u===0?i[0]??n.initialPageParam:pP(n,s);if(u>0&&h==null)break;s=await m(s,h),u++}while(u{var y,S;return(S=(y=t.options).persister)==null?void 0:S.call(y,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function pP(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function wB(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ir,hi,vi,ku,ju,gi,Iu,Au,Tk,SB=(Tk=class{constructor(e={}){Xe(this,ir,void 0);Xe(this,hi,void 0);Xe(this,vi,void 0);Xe(this,ku,void 0);Xe(this,ju,void 0);Xe(this,gi,void 0);Xe(this,Iu,void 0);Xe(this,Au,void 0);ze(this,ir,e.queryCache||new yB),ze(this,hi,e.mutationCache||new xB),ze(this,vi,e.defaultOptions||{}),ze(this,ku,new Map),ze(this,ju,new Map),ze(this,gi,0)}mount(){jp(this,gi)._++,J(this,gi)===1&&(ze(this,Iu,US.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onFocus())})),ze(this,Au,zv.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onOnline())})))}unmount(){var e,t;jp(this,gi)._--,J(this,gi)===0&&((e=J(this,Iu))==null||e.call(this),ze(this,Iu,void 0),(t=J(this,Au))==null||t.call(this),ze(this,Au,void 0))}isFetching(e){return J(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=J(this,ir).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(uu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return J(this,ir).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=J(this,ir).get(n.queryHash),o=a==null?void 0:a.state.data,i=lB(t,o);if(i!==void 0)return J(this,ir).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return hr.batch(()=>J(this,ir).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=J(this,ir);hr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=J(this,ir),n={type:"active",...e};return hr.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=hr.batch(()=>J(this,ir).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Zn).catch(Zn)}invalidateQueries(e={},t={}){return hr.batch(()=>{if(J(this,ir).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=hr.batch(()=>J(this,ir).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Zn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=J(this,ir).build(this,t);return r.isStaleByTime(uu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=fP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=fP(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zv.isOnline()?J(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,ir)}getMutationCache(){return J(this,hi)}getDefaultOptions(){return J(this,vi)}setDefaultOptions(e){ze(this,vi,e)}setQueryDefaults(e,t){J(this,ku).set(Ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ku).values()];let r={};return t.forEach(n=>{vf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){J(this,ju).set(Ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,ju).values()];let r={};return t.forEach(n=>{vf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===KI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,vi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,ir).clear(),J(this,hi).clear()}},ir=new WeakMap,hi=new WeakMap,vi=new WeakMap,ku=new WeakMap,ju=new WeakMap,gi=new WeakMap,Iu=new WeakMap,Au=new WeakMap,Tk),wn,wt,Bf,ln,$s,Mu,Ha,zf,Fu,Nu,ks,js,mi,Lu,Is,ud,Vf,$1,Uf,k1,Wf,j1,Hf,I1,qf,A1,Kf,M1,Gf,F1,tm,tA,$k,_B=($k=class extends uc{constructor(t,r){super();Xe(this,Is);Xe(this,Vf);Xe(this,Uf);Xe(this,Wf);Xe(this,Hf);Xe(this,qf);Xe(this,Kf);Xe(this,Gf);Xe(this,tm);Xe(this,wn,void 0);Xe(this,wt,void 0);Xe(this,Bf,void 0);Xe(this,ln,void 0);Xe(this,$s,void 0);Xe(this,Mu,void 0);Xe(this,Ha,void 0);Xe(this,zf,void 0);Xe(this,Fu,void 0);Xe(this,Nu,void 0);Xe(this,ks,void 0);Xe(this,js,void 0);Xe(this,mi,void 0);Xe(this,Lu,new Set);this.options=r,ze(this,wn,t),ze(this,Ha,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,wt).addObserver(this),hP(J(this,wt),this.options)?pt(this,Is,ud).call(this):this.updateResult(),pt(this,Hf,I1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return N1(J(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return N1(J(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,qf,A1).call(this),pt(this,Kf,M1).call(this),J(this,wt).removeObserver(this)}setOptions(t,r){const n=this.options,a=J(this,wt);if(this.options=J(this,wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oa(this.options.enabled,J(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Gf,F1).call(this),J(this,wt).setOptions(this.options),n._defaulted&&!Bv(this.options,n)&&J(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,wt),observer:this});const o=this.hasListeners();o&&vP(J(this,wt),a,this.options,n)&&pt(this,Is,ud).call(this),this.updateResult(r),o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||uu(this.options.staleTime,J(this,wt))!==uu(n.staleTime,J(this,wt)))&&pt(this,Vf,$1).call(this);const i=pt(this,Uf,k1).call(this);o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||i!==J(this,mi))&&pt(this,Wf,j1).call(this,i)}getOptimisticResult(t){const r=J(this,wn).getQueryCache().build(J(this,wn),t),n=this.createResult(r,t);return EB(this,n)&&(ze(this,ln,n),ze(this,Mu,this.options),ze(this,$s,J(this,wt).state)),n}getCurrentResult(){return J(this,ln)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){J(this,Lu).add(t)}getCurrentQuery(){return J(this,wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=J(this,wn).defaultQueryOptions(t),n=J(this,wn).getQueryCache().build(J(this,wn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return pt(this,Is,ud).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,ln)))}createResult(t,r){var E;const n=J(this,wt),a=this.options,o=J(this,ln),i=J(this,$s),s=J(this,Mu),l=t!==n?t.state:J(this,Bf),{state:c}=t;let f={...c},p=!1,v;if(r._optimisticResults){const w=this.hasListeners(),O=!w&&hP(t,r),P=w&&vP(t,n,r,a);(O||P)&&(f={...f,...ZI(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:S}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(i==null?void 0:i.data)&&r.select===J(this,zf))v=J(this,Fu);else try{ze(this,zf,r.select),v=r.select(f.data),v=T1(o==null?void 0:o.data,v,r),ze(this,Fu,v),ze(this,Ha,null)}catch(w){ze(this,Ha,w)}else v=f.data;if(r.placeholderData!==void 0&&v===void 0&&S==="pending"){let w;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))w=o.data;else if(w=typeof r.placeholderData=="function"?r.placeholderData((E=J(this,Nu))==null?void 0:E.state.data,J(this,Nu)):r.placeholderData,r.select&&w!==void 0)try{w=r.select(w),ze(this,Ha,null)}catch(O){ze(this,Ha,O)}w!==void 0&&(S="success",v=T1(o==null?void 0:o.data,w,r),p=!0)}J(this,Ha)&&(g=J(this,Ha),v=J(this,Fu),y=Date.now(),S="error");const x=f.fetchStatus==="fetching",m=S==="pending",b=S==="error",h=m&&x,_=v!==void 0;return{status:S,fetchStatus:f.fetchStatus,isPending:m,isSuccess:S==="success",isError:b,isInitialLoading:h,isLoading:h,data:v,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!m,isLoadingError:b&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&_,isStale:WS(t,r),refetch:this.refetch}}updateResult(t){const r=J(this,ln),n=this.createResult(J(this,wt),this.options);if(ze(this,$s,J(this,wt).state),ze(this,Mu,this.options),J(this,$s).data!==void 0&&ze(this,Nu,J(this,wt)),Bv(n,r))return;ze(this,ln,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!J(this,Lu).size)return!0;const u=new Set(s??J(this,Lu));return this.options.throwOnError&&u.add("error"),Object.keys(J(this,ln)).some(l=>{const c=l;return J(this,ln)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),pt(this,tm,tA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Hf,I1).call(this)}},wn=new WeakMap,wt=new WeakMap,Bf=new WeakMap,ln=new WeakMap,$s=new WeakMap,Mu=new WeakMap,Ha=new WeakMap,zf=new WeakMap,Fu=new WeakMap,Nu=new WeakMap,ks=new WeakMap,js=new WeakMap,mi=new WeakMap,Lu=new WeakMap,Is=new WeakSet,ud=function(t){pt(this,Gf,F1).call(this);let r=J(this,wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Zn)),r},Vf=new WeakSet,$1=function(){pt(this,qf,A1).call(this);const t=uu(this.options.staleTime,J(this,wt));if(Ku||J(this,ln).isStale||!P1(t))return;const n=HI(J(this,ln).dataUpdatedAt,t)+1;ze(this,ks,setTimeout(()=>{J(this,ln).isStale||this.updateResult()},n))},Uf=new WeakSet,k1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,wt)):this.options.refetchInterval)??!1},Wf=new WeakSet,j1=function(t){pt(this,Kf,M1).call(this),ze(this,mi,t),!(Ku||Oa(this.options.enabled,J(this,wt))===!1||!P1(J(this,mi))||J(this,mi)===0)&&ze(this,js,setInterval(()=>{(this.options.refetchIntervalInBackground||US.isFocused())&&pt(this,Is,ud).call(this)},J(this,mi)))},Hf=new WeakSet,I1=function(){pt(this,Vf,$1).call(this),pt(this,Wf,j1).call(this,pt(this,Uf,k1).call(this))},qf=new WeakSet,A1=function(){J(this,ks)&&(clearTimeout(J(this,ks)),ze(this,ks,void 0))},Kf=new WeakSet,M1=function(){J(this,js)&&(clearInterval(J(this,js)),ze(this,js,void 0))},Gf=new WeakSet,F1=function(){const t=J(this,wn).getQueryCache().build(J(this,wn),this.options);if(t===J(this,wt))return;const r=J(this,wt);ze(this,wt,t),ze(this,Bf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},tm=new WeakSet,tA=function(t){hr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(J(this,ln))}),J(this,wn).getQueryCache().notify({query:J(this,wt),type:"observerResultsUpdated"})})},$k);function CB(e,t){return Oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hP(e,t){return CB(e,t)||e.state.data!==void 0&&N1(e,t,t.refetchOnMount)}function N1(e,t,r){if(Oa(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&WS(e,t)}return!1}function vP(e,t,r,n){return(e!==t||Oa(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&WS(e,r)}function WS(e,t){return Oa(t.enabled,e)!==!1&&e.isStaleByTime(uu(t.staleTime,e))}function EB(e,t){return!Bv(e.getCurrentResult(),t)}var yi,bi,Sn,_o,Du,Fh,Qf,L1,kk,OB=(kk=class extends uc{constructor(r,n){super();Xe(this,Du);Xe(this,Qf);Xe(this,yi,void 0);Xe(this,bi,void 0);Xe(this,Sn,void 0);Xe(this,_o,void 0);ze(this,yi,r),this.setOptions(n),this.bindMethods(),pt(this,Du,Fh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=J(this,yi).defaultMutationOptions(r),Bv(this.options,n)||J(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ks(n.mutationKey)!==Ks(this.options.mutationKey)?this.reset():((a=J(this,Sn))==null?void 0:a.state.status)==="pending"&&J(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=J(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this,r)}getCurrentResult(){return J(this,bi)}reset(){var r;(r=J(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this)}mutate(r,n){var a;return ze(this,_o,n),(a=J(this,Sn))==null||a.removeObserver(this),ze(this,Sn,J(this,yi).getMutationCache().build(J(this,yi),this.options)),J(this,Sn).addObserver(this),J(this,Sn).execute(r)}},yi=new WeakMap,bi=new WeakMap,Sn=new WeakMap,_o=new WeakMap,Du=new WeakSet,Fh=function(){var n;const r=((n=J(this,Sn))==null?void 0:n.state)??eA();ze(this,bi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Qf=new WeakSet,L1=function(r){hr.batch(()=>{var n,a,o,i,s,u,l,c;if(J(this,_o)&&this.hasListeners()){const f=J(this,bi).variables,p=J(this,bi).context;(r==null?void 0:r.type)==="success"?((a=(n=J(this,_o)).onSuccess)==null||a.call(n,r.data,f,p),(i=(o=J(this,_o)).onSettled)==null||i.call(o,r.data,null,f,p)):(r==null?void 0:r.type)==="error"&&((u=(s=J(this,_o)).onError)==null||u.call(s,r.error,f,p),(c=(l=J(this,_o)).onSettled)==null||c.call(l,void 0,r.error,f,p))}this.listeners.forEach(f=>{f(J(this,bi))})})},kk),rA=d.createContext(void 0),Fa=e=>{const t=d.useContext(rA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PB=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(rA.Provider,{value:e,children:t})),nA=d.createContext(!1),RB=()=>d.useContext(nA);nA.Provider;function TB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $B=d.createContext(TB()),kB=()=>d.useContext($B);function aA(e,t){return typeof e=="function"?e(...t):!!e}function jB(){}var IB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},AB=e=>{d.useEffect(()=>{e.clearReset()},[e])},MB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&aA(r,[e.error,n]),FB=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},NB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,LB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function DB(e,t,r){var l,c,f,p;const n=Fa(r),a=RB(),o=kB(),i=n.defaultQueryOptions(e);(c=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||c.call(l,i),i._optimisticResults=a?"isRestoring":"optimistic",FB(i),IB(i,o),AB(o);const[s]=d.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(d.useSyncExternalStore(d.useCallback(v=>{const g=a?()=>{}:s.subscribe(hr.batchCalls(v));return s.updateResult(),g},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),NB(i,u))throw LB(i,s,o);if(MB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return(p=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,i,u),i.notifyOnChangeProps?u:s.trackResult(u)}function il(e,t){return DB(e,_B,t)}function bm(e,t){const r=Fa(t),[n]=d.useState(()=>new OB(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(hr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,s)=>{n.mutate(i,s).catch(jB)},[n]);if(a.error&&aA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function Sb(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function p1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var M6=typeof WeakMap=="function"?WeakMap:Map;function yI(e,t,r){r=To(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Mv||(Mv=!0,_1=n),p1(e,t)},r}function bI(e,t,r){r=To(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){p1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){p1(e,t),typeof n!="function"&&(ki===null?ki=new Set([this]):ki.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function UO(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new M6;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=Q6.bind(null,e,t,r),t.then(e,e))}function WO(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function HO(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=To(-1,1),t.tag=2,$i(r,t,1))),r.lanes|=1),e)}var F6=Bo.ReactCurrentOwner,En=!1;function cn(e,t,r,n){t.child=e===null?Gj(t,null,r,n):Uu(t,e.child,r,n)}function qO(e,t,r,n,a){r=r.render;var o=t.ref;return su(t,a),n=ES(e,t,r,n,o,a),r=OS(),e!==null&&!En?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Mo(e,t,a)):(Yt&&r&&pS(t),t.flags|=1,cn(e,t,n,a),t.child)}function KO(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!FS(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,xI(e,t,o,n,a)):(e=Mh(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:af,r(i,n)&&e.ref===t.ref)return Mo(e,t,a)}return t.flags|=1,e=Ii(o,n),e.ref=t.ref,e.return=t,t.child=e}function xI(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(af(o,n)&&e.ref===t.ref)if(En=!1,t.pendingProps=n=o,(e.lanes&a)!==0)e.flags&131072&&(En=!0);else return t.lanes=e.lanes,Mo(e,t,a)}return h1(e,t,r,n,a)}function wI(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ht(ql,Ln),Ln|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ht(ql,Ln),Ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Ht(ql,Ln),Ln|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ht(ql,Ln),Ln|=n;return cn(e,t,a,r),t.child}function SI(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function h1(e,t,r,n,a){var o=Pn(r)?Vs:tn.current;return o=zu(t,o),su(t,a),r=ES(e,t,r,n,o,a),n=OS(),e!==null&&!En?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Mo(e,t,a)):(Yt&&n&&pS(t),t.flags|=1,cn(e,t,r,a),t.child)}function GO(e,t,r,n,a){if(Pn(r)){var o=!0;Ev(t)}else o=!1;if(su(t,a),t.stateNode===null)jh(e,t),mI(t,r,n),f1(t,r,n,a),n=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,l=r.contextType;typeof l=="object"&&l!==null?l=ua(l):(l=Pn(r)?Vs:tn.current,l=zu(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==n||u!==l)&&VO(t,i,n,l),ai=!1;var p=t.memoizedState;i.state=p,$v(t,n,i,a),u=t.memoizedState,s!==n||p!==u||On.current||ai?(typeof c=="function"&&(d1(t,r,c,n),u=t.memoizedState),(s=ai||zO(t,r,s,n,p,u,l))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),i.props=n,i.state=u,i.context=l,n=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Xj(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:wa(t.type,s),i.props=l,f=t.pendingProps,p=i.context,u=r.contextType,typeof u=="object"&&u!==null?u=ua(u):(u=Pn(r)?Vs:tn.current,u=zu(t,u));var v=r.getDerivedStateFromProps;(c=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||p!==u)&&VO(t,i,n,u),ai=!1,p=t.memoizedState,i.state=p,$v(t,n,i,a);var g=t.memoizedState;s!==f||p!==g||On.current||ai?(typeof v=="function"&&(d1(t,r,v,n),g=t.memoizedState),(l=ai||zO(t,r,l,n,p,g,u)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,g,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,g,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),i.props=n,i.state=g,i.context=u,n=l):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return v1(e,t,r,n,o,a)}function v1(e,t,r,n,a,o){SI(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return a&&IO(t,r,!1),Mo(e,t,o);n=t.stateNode,F6.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Uu(t,e.child,null,o),t.child=Uu(t,null,s,o)):cn(e,t,s,o),t.memoizedState=n.state,a&&IO(t,r,!0),t.child}function _I(e){var t=e.stateNode;t.pendingContext?jO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jO(e,t.context,!1),wS(e,t.containerInfo)}function QO(e,t,r,n,a){return Vu(),vS(a),t.flags|=256,cn(e,t,r,n),t.child}var g1={dehydrated:null,treeContext:null,retryLane:0};function m1(e){return{baseLanes:e,cachePool:null,transitions:null}}function CI(e,t,r){var n=t.pendingProps,a=er.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ht(er,a&1),e===null)return u1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=fm(i,n,0,null),e=Ms(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=m1(r),t.memoizedState=g1,e):TS(t,i));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return N6(e,t,i,n,s,a,r);if(o){o=n.fallback,i=t.mode,a=e.child,s=a.sibling;var u={mode:"hidden",children:n.children};return!(i&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Ii(a,u),n.subtreeFlags=a.subtreeFlags&14680064),s!==null?o=Ii(s,o):(o=Ms(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?m1(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=g1,n}return o=e.child,e=o.sibling,n=Ii(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function TS(e,t){return t=fm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qp(e,t,r,n){return n!==null&&vS(n),Uu(t,e.child,null,r),e=TS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function N6(e,t,r,n,a,o,i){if(r)return t.flags&256?(t.flags&=-257,n=Sb(Error(Ie(422))),qp(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=fm({mode:"visible",children:n.children},a,0,null),o=Ms(o,a,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Uu(t,e.child,null,i),t.child.memoizedState=m1(i),t.memoizedState=g1,o);if(!(t.mode&1))return qp(e,t,i,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(Ie(419)),n=Sb(o,n,void 0),qp(e,t,i,n)}if(s=(i&e.childLanes)!==0,En||s){if(n=Ar,n!==null){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,Ao(e,a),ka(n,e,a,-1))}return MS(),n=Sb(Error(Ie(421))),qp(e,t,i,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=X6.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Vn=Ti(a.nextSibling),Un=t,Yt=!0,Ea=null,e!==null&&(na[aa++]=Eo,na[aa++]=Oo,na[aa++]=Us,Eo=e.id,Oo=e.overflow,Us=t),t=TS(t,n.children),t.flags|=4096,t)}function XO(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),c1(e.return,t,r)}function _b(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function EI(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(cn(e,t,n.children,r),n=er.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&XO(e,r,t);else if(e.tag===19)XO(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ht(er,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&kv(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),_b(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&kv(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}_b(t,!0,r,null,o);break;case"together":_b(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Hs|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ie(153));if(t.child!==null){for(e=t.child,r=Ii(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ii(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function L6(e,t,r){switch(t.tag){case 3:_I(t),Vu();break;case 5:Yj(t);break;case 1:Pn(t.type)&&Ev(t);break;case 4:wS(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Ht(Rv,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ht(er,er.current&1),t.flags|=128,null):r&t.child.childLanes?CI(e,t,r):(Ht(er,er.current&1),e=Mo(e,t,r),e!==null?e.sibling:null);Ht(er,er.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return EI(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ht(er,er.current),n)break;return null;case 22:case 23:return t.lanes=0,wI(e,t,r)}return Mo(e,t,r)}var OI,y1,PI,RI;OI=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};y1=function(){};PI=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,bs(eo.current);var o=null;switch(r){case"input":a=B0(e,a),n=B0(e,n),o=[];break;case"select":a=rr({},a,{value:void 0}),n=rr({},n,{value:void 0}),o=[];break;case"textarea":a=U0(e,a),n=U0(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=_v)}H0(r,n);var i;r=null;for(l in a)if(!n.hasOwnProperty(l)&&a.hasOwnProperty(l)&&a[l]!=null)if(l==="style"){var s=a[l];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Yd.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(s=a!=null?a[l]:void 0,n.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Yd.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Kt("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};RI=function(e,t,r,n){r!==n&&(t.flags|=4)};function Bc(e,t){if(!Yt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Xr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function D6(e,t,r){var n=t.pendingProps;switch(hS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:return Pn(t.type)&&Cv(),Xr(t),null;case 3:return n=t.stateNode,Wu(),Qt(On),Qt(tn),_S(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ea!==null&&(O1(Ea),Ea=null))),y1(e,t),Xr(t),null;case 5:SS(t);var a=bs(cf.current);if(r=t.type,e!==null&&t.stateNode!=null)PI(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ie(166));return Xr(t),null}if(e=bs(eo.current),Wp(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Qa]=t,n[lf]=o,e=(t.mode&1)!==0,r){case"dialog":Kt("cancel",n),Kt("close",n);break;case"iframe":case"object":case"embed":Kt("load",n);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Qa]=t,e[lf]=n,OI(e,t,!1,!1),t.stateNode=e;e:{switch(i=q0(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),a=n;break;case"iframe":case"object":case"embed":Kt("load",e),a=n;break;case"video":case"audio":for(a=0;aqu&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304)}else{if(!n)if(e=kv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Yt)return Xr(t),null}else 2*pr()-o.renderingStartTime>qu&&r!==1073741824&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pr(),t.sibling=null,r=er.current,Ht(er,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return AS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function B6(e,t){switch(hS(t),t.tag){case 1:return Pn(t.type)&&Cv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wu(),Qt(On),Qt(tn),_S(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return SS(t),null;case 13:if(Qt(er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(er),null;case 4:return Wu(),null;case 10:return yS(t.type._context),null;case 22:case 23:return AS(),null;case 24:return null;default:return null}}var Kp=!1,Zr=!1,z6=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Hl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){sr(e,t,n)}else r.current=null}function b1(e,t,r){try{r()}catch(n){sr(e,t,n)}}var YO=!1;function V6(e,t){if(r1=xv,e=Ij(),fS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==r||a!==0&&f.nodeType!==3||(s=i+a),f!==o||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(n1={focusedElem:e,selectionRange:r},xv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:wa(t.type,y),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){sr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=YO,YO=!1,g}function _d(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&b1(t,r,o)}a=a.next}while(a!==n)}}function cm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function x1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function TI(e){var t=e.alternate;t!==null&&(e.alternate=null,TI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qa],delete t[lf],delete t[i1],delete t[C6],delete t[E6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $I(e){return e.tag===5||e.tag===3||e.tag===4}function JO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$I(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=_v));else if(n!==4&&(e=e.child,e!==null))for(w1(e,t,r),e=e.sibling;e!==null;)w1(e,t,r),e=e.sibling}function S1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(S1(e,t,r),e=e.sibling;e!==null;)S1(e,t,r),e=e.sibling}var Dr=null,_a=!1;function Xo(e,t,r){for(r=r.child;r!==null;)kI(e,t,r),r=r.sibling}function kI(e,t,r){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(rm,r)}catch{}switch(r.tag){case 5:Zr||Hl(r,t);case 6:var n=Dr,a=_a;Dr=null,Xo(e,t,r),Dr=n,_a=a,Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?gb(e.parentNode,r):e.nodeType===1&&gb(e,r),rf(e)):gb(Dr,r.stateNode));break;case 4:n=Dr,a=_a,Dr=r.stateNode.containerInfo,_a=!0,Xo(e,t,r),Dr=n,_a=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&b1(r,t,i),a=a.next}while(a!==n)}Xo(e,t,r);break;case 1:if(!Zr&&(Hl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){sr(r,t,s)}Xo(e,t,r);break;case 21:Xo(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Xo(e,t,r),Zr=n):Xo(e,t,r);break;default:Xo(e,t,r)}}function ZO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new z6),t.forEach(function(n){var a=Y6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=pr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*W6(n/1960))-n,10e?16:e,wi===null)var n=!1;else{if(e=wi,wi=null,Fv=0,Ct&6)throw Error(Ie(331));var a=Ct;for(Ct|=4,Ve=e.current;Ve!==null;){var o=Ve,i=o.child;if(Ve.flags&16){var s=o.deletions;if(s!==null){for(var u=0;upr()-jS?As(e,0):kS|=r),Rn(e,t)}function DI(e,t){t===0&&(e.mode&1?(t=Lp,Lp<<=1,!(Lp&130023424)&&(Lp=4194304)):t=1);var r=pn();e=Ao(e,t),e!==null&&(Yf(e,t,r),Rn(e,r))}function X6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),DI(e,r)}function Y6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ie(314))}n!==null&&n.delete(t),DI(e,r)}var BI;BI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)En=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return En=!1,L6(e,t,r);En=!!(e.flags&131072)}else En=!1,Yt&&t.flags&1048576&&Wj(t,Pv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;jh(e,t),e=t.pendingProps;var a=zu(t,tn.current);su(t,r),a=ES(null,t,n,e,a,r);var o=OS();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(n)?(o=!0,Ev(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xS(t),a.updater=um,t.stateNode=a,a._reactInternals=t,f1(t,n,e,r),t=v1(null,t,n,!0,o,r)):(t.tag=0,Yt&&o&&pS(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(jh(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Z6(n),e=wa(n,e),a){case 0:t=h1(null,t,n,e,r);break e;case 1:t=GO(null,t,n,e,r);break e;case 11:t=qO(null,t,n,e,r);break e;case 14:t=KO(null,t,n,wa(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),h1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),GO(e,t,n,a,r);case 3:e:{if(_I(t),e===null)throw Error(Ie(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Xj(e,t),$v(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Hu(Error(Ie(423)),t),t=QO(e,t,n,r,a);break e}else if(n!==a){a=Hu(Error(Ie(424)),t),t=QO(e,t,n,r,a);break e}else for(Vn=Ti(t.stateNode.containerInfo.firstChild),Un=t,Yt=!0,Ea=null,r=Gj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vu(),n===a){t=Mo(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return Yj(t),e===null&&u1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,a1(n,a)?i=null:o!==null&&a1(n,o)&&(t.flags|=32),SI(e,t),cn(e,t,i,r),t.child;case 6:return e===null&&u1(t),null;case 13:return CI(e,t,r);case 4:return wS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Uu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),qO(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ht(Rv,n._currentValue),n._currentValue=i,o!==null)if(Ia(o.value,i)){if(o.children===a.children&&!On.current){t=Mo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=To(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),c1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ie(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),c1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,su(t,r),a=ua(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=wa(n,t.pendingProps),a=wa(n.type,a),KO(e,t,n,a,r);case 15:return xI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),jh(e,t),t.tag=1,Pn(n)?(e=!0,Ev(t)):e=!1,su(t,r),mI(t,n,a),f1(t,n,a,r),v1(null,t,n,!0,e,r);case 19:return EI(e,t,r);case 22:return wI(e,t,r)}throw Error(Ie(156,t.tag))};function zI(e,t){return hj(e,t)}function J6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ia(e,t,r,n){return new J6(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Z6(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tS)return 11;if(e===rS)return 14}return 2}function Ii(e,t){var r=e.alternate;return r===null?(r=ia(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Mh(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")FS(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fl:return Ms(r.children,a,o,t);case eS:i=8,a|=8;break;case F0:return e=ia(12,r,t,a|2),e.elementType=F0,e.lanes=o,e;case N0:return e=ia(13,r,t,a),e.elementType=N0,e.lanes=o,e;case L0:return e=ia(19,r,t,a),e.elementType=L0,e.lanes=o,e;case Yk:return fm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qk:i=10;break e;case Xk:i=9;break e;case tS:i=11;break e;case rS:i=14;break e;case ni:i=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ia(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Ms(e,t,r,n){return e=ia(7,e,n,t),e.lanes=r,e}function fm(e,t,r,n){return e=ia(22,e,n,t),e.elementType=Yk,e.lanes=r,e.stateNode={isHidden:!1},e}function Cb(e,t,r){return e=ia(6,e,null,t),e.lanes=r,e}function Eb(e,t,r){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eB(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ob(0),this.expirationTimes=ob(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ob(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function NS(e,t,r,n,a,o,i,s,u){return e=new eB(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ia(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},xS(o),e}function tB(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HI)}catch(e){console.error(e)}}HI(),Hk.exports=Gn;var tp=Hk.exports;const ld=Mr(tp),iB=Ik({__proto__:null,default:ld},[tp]);var sP=tp;A0.createRoot=sP.createRoot,A0.hydrateRoot=sP.hydrateRoot;var zS=d.createContext(void 0);zS.displayName="AuthContext";var mm={loginUrl:"/login",afterLoginUrl:"/"},sB=function(){return d.useContext(zS)};const zo=sB;var uc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ku=typeof window>"u"||"Deno"in globalThis;function Zn(){}function lB(e,t){return typeof e=="function"?e(t):e}function P1(e){return typeof e=="number"&&e>=0&&e!==1/0}function qI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uu(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){return typeof e=="function"?e(t):e}function lP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==VS(i,t.options))return!1}else if(!vf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function uP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ks(t.options.mutationKey)!==Ks(o))return!1}else if(!vf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function VS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ks)(e)}function Ks(e){return JSON.stringify(e,(t,r)=>R1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function vf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!vf(e[r],t[r])):!1}function KI(e,t){if(e===t)return e;const r=cP(e)&&cP(t);if(r||R1(e)&&R1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function T1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?KI(e,t):t}function cB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function dB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var GI=Symbol();function QI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===GI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Os,fi,Ou,_k,fB=(_k=class extends uc{constructor(){super();Xe(this,Os,void 0);Xe(this,fi,void 0);Xe(this,Ou,void 0);ze(this,Ou,t=>{if(!Ku&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){J(this,fi)||this.setEventListener(J(this,Ou))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,fi))==null||t.call(this),ze(this,fi,void 0))}setEventListener(t){var r;ze(this,Ou,t),(r=J(this,fi))==null||r.call(this),ze(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){J(this,Os)!==t&&(ze(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof J(this,Os)=="boolean"?J(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,fi=new WeakMap,Ou=new WeakMap,_k),US=new fB,Pu,pi,Ru,Ck,pB=(Ck=class extends uc{constructor(){super();Xe(this,Pu,!0);Xe(this,pi,void 0);Xe(this,Ru,void 0);ze(this,Ru,t=>{if(!Ku&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){J(this,pi)||this.setEventListener(J(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,pi))==null||t.call(this),ze(this,pi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=J(this,pi))==null||r.call(this),ze(this,pi,t(this.setOnline.bind(this)))}setOnline(t){J(this,Pu)!==t&&(ze(this,Pu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return J(this,Pu)}},Pu=new WeakMap,pi=new WeakMap,Ru=new WeakMap,Ck),Bv=new pB;function hB(e){return Math.min(1e3*2**e,3e4)}function XI(e){return(e??"online")==="online"?Bv.isOnline():!0}var YI=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ob(e){return e instanceof YI}function JI(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,m)=>{o=x,i=m}),u=x=>{var m;n||(g(new YI(x)),(m=e.abort)==null||m.call(e))},l=()=>{t=!0},c=()=>{t=!1},f=()=>US.isFocused()&&(e.networkMode==="always"||Bv.isOnline())&&e.canRun(),p=()=>XI(e.networkMode)&&e.canRun(),v=x=>{var m;n||(n=!0,(m=e.onSuccess)==null||m.call(e,x),a==null||a(),o(x))},g=x=>{var m;n||(n=!0,(m=e.onError)==null||m.call(e,x),a==null||a(),i(x))},y=()=>new Promise(x=>{var m;a=b=>{(n||f())&&x(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),S=()=>{if(n)return;let x;const m=r===0?e.initialPromise:void 0;try{x=m??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(v).catch(b=>{var w;if(n)return;const h=e.retry??(Ku?0:3),_=e.retryDelay??hB,C=typeof _=="function"?_(r,b):_,E=h===!0||typeof h=="number"&&rf()?void 0:y()).then(()=>{t?g(b):S()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?S():y().then(S),s)}}function vB(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=s=>setTimeout(s,0);const o=s=>{t?e.push(s):a(()=>{r(s)})},i=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var hr=vB(),Ps,Ek,ZI=(Ek=class{constructor(){Xe(this,Ps,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P1(this.gcTime)&&ze(this,Ps,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ku?1/0:5*60*1e3))}clearGcTimeout(){J(this,Ps)&&(clearTimeout(J(this,Ps)),ze(this,Ps,void 0))}},Ps=new WeakMap,Ek),Tu,$u,Jn,Jr,Lf,Rs,Sa,yo,Ok,gB=(Ok=class extends ZI{constructor(t){super();Xe(this,Sa);Xe(this,Tu,void 0);Xe(this,$u,void 0);Xe(this,Jn,void 0);Xe(this,Jr,void 0);Xe(this,Lf,void 0);Xe(this,Rs,void 0);ze(this,Rs,!1),ze(this,Lf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Jn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Tu,mB(this.options)),this.state=t.state??J(this,Tu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...J(this,Lf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Jn).remove(this)}setData(t,r){const n=T1(this.state.data,t,this.options);return pt(this,Sa,yo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){pt(this,Sa,yo).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=J(this,Jr))==null?void 0:n.promise;return(a=J(this,Jr))==null||a.cancel(t),r?r.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Tu))}isActive(){return this.observers.some(t=>Oa(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!qI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(J(this,Jr)&&(J(this,Rs)?J(this,Jr).cancel({revert:!0}):J(this,Jr).cancelRetry()),this.scheduleGc()),J(this,Jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Sa,yo).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(J(this,Jr))return J(this,Jr).continueRetry(),J(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ze(this,Rs,!0),n.signal)})},o=()=>{const f=QI(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Rs,!1),this.options.persister?this.options.persister(f,p,this):f(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,$u,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&pt(this,Sa,yo).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=f=>{var p,v,g,y;Ob(f)&&f.silent||pt(this,Sa,yo).call(this,{type:"error",error:f}),Ob(f)||((v=(p=J(this,Jn).config).onError)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,JI({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,v,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){s(S);return}(v=(p=J(this,Jn).config).onSuccess)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,p)=>{pt(this,Sa,yo).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pt(this,Sa,yo).call(this,{type:"pause"})},onContinue:()=>{pt(this,Sa,yo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),J(this,Jr).start()}},Tu=new WeakMap,$u=new WeakMap,Jn=new WeakMap,Jr=new WeakMap,Lf=new WeakMap,Rs=new WeakMap,Sa=new WeakSet,yo=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...eA(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Ob(a)&&a.revert&&J(this,$u)?{...J(this,$u),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),J(this,Jn).notify({query:this,type:"updated",action:t})})},Ok);function eA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:XI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Va,Pk,yB=(Pk=class extends uc{constructor(t={}){super();Xe(this,Va,void 0);this.config=t,ze(this,Va,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??VS(a,r);let i=this.get(o);return i||(i=new gB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){J(this,Va).has(t.queryHash)||(J(this,Va).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=J(this,Va).get(t.queryHash);r&&(t.destroy(),r===t&&J(this,Va).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Va).get(t)}getAll(){return[...J(this,Va).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>lP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>lP(t,n)):r}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){hr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Va=new WeakMap,Pk),Ua,sn,Ts,Wa,ei,Rk,bB=(Rk=class extends ZI{constructor(t){super();Xe(this,Wa);Xe(this,Ua,void 0);Xe(this,sn,void 0);Xe(this,Ts,void 0);this.mutationId=t.mutationId,ze(this,sn,t.mutationCache),ze(this,Ua,[]),this.state=t.state||tA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Ua).includes(t)||(J(this,Ua).push(t),this.clearGcTimeout(),J(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ua,J(this,Ua).filter(r=>r!==t)),this.scheduleGc(),J(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Ua).length||(this.state.status==="pending"?this.scheduleGc():J(this,sn).remove(this))}continue(){var t;return((t=J(this,Ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_,C,E;ze(this,Ts,JI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,O)=>{pt(this,Wa,ei).call(this,{type:"failed",failureCount:w,error:O})},onPause:()=>{pt(this,Wa,ei).call(this,{type:"pause"})},onContinue:()=>{pt(this,Wa,ei).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,sn).canRun(this)}));const r=this.state.status==="pending",n=!J(this,Ts).canStart();try{if(!r){pt(this,Wa,ei).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=J(this,sn).config).onMutate)==null?void 0:o.call(a,t,this));const O=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));O!==this.state.context&&pt(this,Wa,ei).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const w=await J(this,Ts).start();return await((l=(u=J(this,sn).config).onSuccess)==null?void 0:l.call(u,w,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,w,t,this.state.context)),await((v=(p=J(this,sn).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,w,null,t,this.state.context)),pt(this,Wa,ei).call(this,{type:"success",data:w}),w}catch(w){try{throw await((x=(S=J(this,sn).config).onError)==null?void 0:x.call(S,w,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,w,t,this.state.context)),await((_=(h=J(this,sn).config).onSettled)==null?void 0:_.call(h,void 0,w,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,w,t,this.state.context)),w}finally{pt(this,Wa,ei).call(this,{type:"error",error:w})}}finally{J(this,sn).runNext(this)}}},Ua=new WeakMap,sn=new WeakMap,Ts=new WeakMap,Wa=new WeakSet,ei=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),hr.batch(()=>{J(this,Ua).forEach(n=>{n.onMutationUpdate(t)}),J(this,sn).notify({mutation:this,type:"updated",action:t})})},Rk);function tA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,Df,Tk,xB=(Tk=class extends uc{constructor(t={}){super();Xe(this,Fn,void 0);Xe(this,Df,void 0);this.config=t,ze(this,Fn,new Map),ze(this,Df,Date.now())}build(t,r,n){const a=new bB({mutationCache:this,mutationId:++jp(this,Df)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Xp(t),n=J(this,Fn).get(r)??[];n.push(t),J(this,Fn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Xp(t);if(J(this,Fn).has(r)){const a=(n=J(this,Fn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?J(this,Fn).delete(r):J(this,Fn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...J(this,Fn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uP(r,n))}findAll(t={}){return this.getAll().filter(r=>uP(t,r))}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return hr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Zn))))}},Fn=new WeakMap,Df=new WeakMap,Tk);function Xp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fP(e){return{onFetch:(t,r)=>{var c,f,p,v,g;const n=t.options,a=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let y=!1;const S=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},x=QI(t.options,t.fetchOptions),m=async(b,h,_)=>{if(y)return Promise.reject();if(h==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:t.queryKey,pageParam:h,direction:_?"backward":"forward",meta:t.options.meta};S(C);const E=await x(C),{maxPages:w}=t.options,O=_?dB:cB;return{pages:O(b.pages,E,w),pageParams:O(b.pageParams,h,w)}};if(a&&o.length){const b=a==="backward",h=b?wB:pP,_={pages:o,pageParams:i},C=h(n,_);s=await m(_,C,b)}else{const b=e??o.length;do{const h=u===0?i[0]??n.initialPageParam:pP(n,s);if(u>0&&h==null)break;s=await m(s,h),u++}while(u{var y,S;return(S=(y=t.options).persister)==null?void 0:S.call(y,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function pP(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function wB(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ir,hi,vi,ku,ju,gi,Iu,Au,$k,SB=($k=class{constructor(e={}){Xe(this,ir,void 0);Xe(this,hi,void 0);Xe(this,vi,void 0);Xe(this,ku,void 0);Xe(this,ju,void 0);Xe(this,gi,void 0);Xe(this,Iu,void 0);Xe(this,Au,void 0);ze(this,ir,e.queryCache||new yB),ze(this,hi,e.mutationCache||new xB),ze(this,vi,e.defaultOptions||{}),ze(this,ku,new Map),ze(this,ju,new Map),ze(this,gi,0)}mount(){jp(this,gi)._++,J(this,gi)===1&&(ze(this,Iu,US.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onFocus())})),ze(this,Au,Bv.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onOnline())})))}unmount(){var e,t;jp(this,gi)._--,J(this,gi)===0&&((e=J(this,Iu))==null||e.call(this),ze(this,Iu,void 0),(t=J(this,Au))==null||t.call(this),ze(this,Au,void 0))}isFetching(e){return J(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=J(this,ir).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(uu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return J(this,ir).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=J(this,ir).get(n.queryHash),o=a==null?void 0:a.state.data,i=lB(t,o);if(i!==void 0)return J(this,ir).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return hr.batch(()=>J(this,ir).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=J(this,ir);hr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=J(this,ir),n={type:"active",...e};return hr.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=hr.batch(()=>J(this,ir).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Zn).catch(Zn)}invalidateQueries(e={},t={}){return hr.batch(()=>{if(J(this,ir).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=hr.batch(()=>J(this,ir).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Zn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=J(this,ir).build(this,t);return r.isStaleByTime(uu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=fP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=fP(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Bv.isOnline()?J(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,ir)}getMutationCache(){return J(this,hi)}getDefaultOptions(){return J(this,vi)}setDefaultOptions(e){ze(this,vi,e)}setQueryDefaults(e,t){J(this,ku).set(Ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ku).values()];let r={};return t.forEach(n=>{vf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){J(this,ju).set(Ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,ju).values()];let r={};return t.forEach(n=>{vf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===GI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,vi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,ir).clear(),J(this,hi).clear()}},ir=new WeakMap,hi=new WeakMap,vi=new WeakMap,ku=new WeakMap,ju=new WeakMap,gi=new WeakMap,Iu=new WeakMap,Au=new WeakMap,$k),wn,wt,Bf,ln,$s,Mu,Ha,zf,Fu,Nu,ks,js,mi,Lu,Is,ud,Vf,$1,Uf,k1,Wf,j1,Hf,I1,qf,A1,Kf,M1,Gf,F1,em,rA,kk,_B=(kk=class extends uc{constructor(t,r){super();Xe(this,Is);Xe(this,Vf);Xe(this,Uf);Xe(this,Wf);Xe(this,Hf);Xe(this,qf);Xe(this,Kf);Xe(this,Gf);Xe(this,em);Xe(this,wn,void 0);Xe(this,wt,void 0);Xe(this,Bf,void 0);Xe(this,ln,void 0);Xe(this,$s,void 0);Xe(this,Mu,void 0);Xe(this,Ha,void 0);Xe(this,zf,void 0);Xe(this,Fu,void 0);Xe(this,Nu,void 0);Xe(this,ks,void 0);Xe(this,js,void 0);Xe(this,mi,void 0);Xe(this,Lu,new Set);this.options=r,ze(this,wn,t),ze(this,Ha,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,wt).addObserver(this),hP(J(this,wt),this.options)?pt(this,Is,ud).call(this):this.updateResult(),pt(this,Hf,I1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return N1(J(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return N1(J(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,qf,A1).call(this),pt(this,Kf,M1).call(this),J(this,wt).removeObserver(this)}setOptions(t,r){const n=this.options,a=J(this,wt);if(this.options=J(this,wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oa(this.options.enabled,J(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Gf,F1).call(this),J(this,wt).setOptions(this.options),n._defaulted&&!Dv(this.options,n)&&J(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,wt),observer:this});const o=this.hasListeners();o&&vP(J(this,wt),a,this.options,n)&&pt(this,Is,ud).call(this),this.updateResult(r),o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||uu(this.options.staleTime,J(this,wt))!==uu(n.staleTime,J(this,wt)))&&pt(this,Vf,$1).call(this);const i=pt(this,Uf,k1).call(this);o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||i!==J(this,mi))&&pt(this,Wf,j1).call(this,i)}getOptimisticResult(t){const r=J(this,wn).getQueryCache().build(J(this,wn),t),n=this.createResult(r,t);return EB(this,n)&&(ze(this,ln,n),ze(this,Mu,this.options),ze(this,$s,J(this,wt).state)),n}getCurrentResult(){return J(this,ln)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){J(this,Lu).add(t)}getCurrentQuery(){return J(this,wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=J(this,wn).defaultQueryOptions(t),n=J(this,wn).getQueryCache().build(J(this,wn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return pt(this,Is,ud).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,ln)))}createResult(t,r){var E;const n=J(this,wt),a=this.options,o=J(this,ln),i=J(this,$s),s=J(this,Mu),l=t!==n?t.state:J(this,Bf),{state:c}=t;let f={...c},p=!1,v;if(r._optimisticResults){const w=this.hasListeners(),O=!w&&hP(t,r),P=w&&vP(t,n,r,a);(O||P)&&(f={...f,...eA(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:S}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(i==null?void 0:i.data)&&r.select===J(this,zf))v=J(this,Fu);else try{ze(this,zf,r.select),v=r.select(f.data),v=T1(o==null?void 0:o.data,v,r),ze(this,Fu,v),ze(this,Ha,null)}catch(w){ze(this,Ha,w)}else v=f.data;if(r.placeholderData!==void 0&&v===void 0&&S==="pending"){let w;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))w=o.data;else if(w=typeof r.placeholderData=="function"?r.placeholderData((E=J(this,Nu))==null?void 0:E.state.data,J(this,Nu)):r.placeholderData,r.select&&w!==void 0)try{w=r.select(w),ze(this,Ha,null)}catch(O){ze(this,Ha,O)}w!==void 0&&(S="success",v=T1(o==null?void 0:o.data,w,r),p=!0)}J(this,Ha)&&(g=J(this,Ha),v=J(this,Fu),y=Date.now(),S="error");const x=f.fetchStatus==="fetching",m=S==="pending",b=S==="error",h=m&&x,_=v!==void 0;return{status:S,fetchStatus:f.fetchStatus,isPending:m,isSuccess:S==="success",isError:b,isInitialLoading:h,isLoading:h,data:v,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!m,isLoadingError:b&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&_,isStale:WS(t,r),refetch:this.refetch}}updateResult(t){const r=J(this,ln),n=this.createResult(J(this,wt),this.options);if(ze(this,$s,J(this,wt).state),ze(this,Mu,this.options),J(this,$s).data!==void 0&&ze(this,Nu,J(this,wt)),Dv(n,r))return;ze(this,ln,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!J(this,Lu).size)return!0;const u=new Set(s??J(this,Lu));return this.options.throwOnError&&u.add("error"),Object.keys(J(this,ln)).some(l=>{const c=l;return J(this,ln)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),pt(this,em,rA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Hf,I1).call(this)}},wn=new WeakMap,wt=new WeakMap,Bf=new WeakMap,ln=new WeakMap,$s=new WeakMap,Mu=new WeakMap,Ha=new WeakMap,zf=new WeakMap,Fu=new WeakMap,Nu=new WeakMap,ks=new WeakMap,js=new WeakMap,mi=new WeakMap,Lu=new WeakMap,Is=new WeakSet,ud=function(t){pt(this,Gf,F1).call(this);let r=J(this,wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Zn)),r},Vf=new WeakSet,$1=function(){pt(this,qf,A1).call(this);const t=uu(this.options.staleTime,J(this,wt));if(Ku||J(this,ln).isStale||!P1(t))return;const n=qI(J(this,ln).dataUpdatedAt,t)+1;ze(this,ks,setTimeout(()=>{J(this,ln).isStale||this.updateResult()},n))},Uf=new WeakSet,k1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,wt)):this.options.refetchInterval)??!1},Wf=new WeakSet,j1=function(t){pt(this,Kf,M1).call(this),ze(this,mi,t),!(Ku||Oa(this.options.enabled,J(this,wt))===!1||!P1(J(this,mi))||J(this,mi)===0)&&ze(this,js,setInterval(()=>{(this.options.refetchIntervalInBackground||US.isFocused())&&pt(this,Is,ud).call(this)},J(this,mi)))},Hf=new WeakSet,I1=function(){pt(this,Vf,$1).call(this),pt(this,Wf,j1).call(this,pt(this,Uf,k1).call(this))},qf=new WeakSet,A1=function(){J(this,ks)&&(clearTimeout(J(this,ks)),ze(this,ks,void 0))},Kf=new WeakSet,M1=function(){J(this,js)&&(clearInterval(J(this,js)),ze(this,js,void 0))},Gf=new WeakSet,F1=function(){const t=J(this,wn).getQueryCache().build(J(this,wn),this.options);if(t===J(this,wt))return;const r=J(this,wt);ze(this,wt,t),ze(this,Bf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},em=new WeakSet,rA=function(t){hr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(J(this,ln))}),J(this,wn).getQueryCache().notify({query:J(this,wt),type:"observerResultsUpdated"})})},kk);function CB(e,t){return Oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hP(e,t){return CB(e,t)||e.state.data!==void 0&&N1(e,t,t.refetchOnMount)}function N1(e,t,r){if(Oa(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&WS(e,t)}return!1}function vP(e,t,r,n){return(e!==t||Oa(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&WS(e,r)}function WS(e,t){return Oa(t.enabled,e)!==!1&&e.isStaleByTime(uu(t.staleTime,e))}function EB(e,t){return!Dv(e.getCurrentResult(),t)}var yi,bi,Sn,_o,Du,Fh,Qf,L1,jk,OB=(jk=class extends uc{constructor(r,n){super();Xe(this,Du);Xe(this,Qf);Xe(this,yi,void 0);Xe(this,bi,void 0);Xe(this,Sn,void 0);Xe(this,_o,void 0);ze(this,yi,r),this.setOptions(n),this.bindMethods(),pt(this,Du,Fh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=J(this,yi).defaultMutationOptions(r),Dv(this.options,n)||J(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ks(n.mutationKey)!==Ks(this.options.mutationKey)?this.reset():((a=J(this,Sn))==null?void 0:a.state.status)==="pending"&&J(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=J(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this,r)}getCurrentResult(){return J(this,bi)}reset(){var r;(r=J(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this)}mutate(r,n){var a;return ze(this,_o,n),(a=J(this,Sn))==null||a.removeObserver(this),ze(this,Sn,J(this,yi).getMutationCache().build(J(this,yi),this.options)),J(this,Sn).addObserver(this),J(this,Sn).execute(r)}},yi=new WeakMap,bi=new WeakMap,Sn=new WeakMap,_o=new WeakMap,Du=new WeakSet,Fh=function(){var n;const r=((n=J(this,Sn))==null?void 0:n.state)??tA();ze(this,bi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Qf=new WeakSet,L1=function(r){hr.batch(()=>{var n,a,o,i,s,u,l,c;if(J(this,_o)&&this.hasListeners()){const f=J(this,bi).variables,p=J(this,bi).context;(r==null?void 0:r.type)==="success"?((a=(n=J(this,_o)).onSuccess)==null||a.call(n,r.data,f,p),(i=(o=J(this,_o)).onSettled)==null||i.call(o,r.data,null,f,p)):(r==null?void 0:r.type)==="error"&&((u=(s=J(this,_o)).onError)==null||u.call(s,r.error,f,p),(c=(l=J(this,_o)).onSettled)==null||c.call(l,void 0,r.error,f,p))}this.listeners.forEach(f=>{f(J(this,bi))})})},jk),nA=d.createContext(void 0),Fa=e=>{const t=d.useContext(nA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PB=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(nA.Provider,{value:e,children:t})),aA=d.createContext(!1),RB=()=>d.useContext(aA);aA.Provider;function TB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $B=d.createContext(TB()),kB=()=>d.useContext($B);function oA(e,t){return typeof e=="function"?e(...t):!!e}function jB(){}var IB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},AB=e=>{d.useEffect(()=>{e.clearReset()},[e])},MB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&oA(r,[e.error,n]),FB=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},NB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,LB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function DB(e,t,r){var l,c,f,p;const n=Fa(r),a=RB(),o=kB(),i=n.defaultQueryOptions(e);(c=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||c.call(l,i),i._optimisticResults=a?"isRestoring":"optimistic",FB(i),IB(i,o),AB(o);const[s]=d.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(d.useSyncExternalStore(d.useCallback(v=>{const g=a?()=>{}:s.subscribe(hr.batchCalls(v));return s.updateResult(),g},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),NB(i,u))throw LB(i,s,o);if(MB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return(p=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,i,u),i.notifyOnChangeProps?u:s.trackResult(u)}function il(e,t){return DB(e,_B,t)}function ym(e,t){const r=Fa(t),[n]=d.useState(()=>new OB(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(hr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,s)=>{n.mutate(i,s).catch(jB)},[n]);if(a.error&&oA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -46,9 +46,9 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zB(){return Math.random().toString(36).substr(2,8)}function mP(e,t){return{usr:e.state,key:e.key,idx:t}}function gf(e,t,r,n){return r===void 0&&(r=null),Zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?io(t):t,{state:r,key:t&&t.key||n||zB()})}function Qs(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function io(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function VB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=dr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(Zt({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function f(){s=dr.Pop;let S=c(),x=S==null?null:S-l;l=S,u&&u({action:s,location:y.location,delta:x})}function p(S,x){s=dr.Push;let m=gf(y.location,S,x);r&&r(m,S),l=c()+1;let b=mP(m,l),h=y.createHref(m);try{i.pushState(b,"",h)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(h)}o&&u&&u({action:s,location:y.location,delta:1})}function v(S,x){s=dr.Replace;let m=gf(y.location,S,x);r&&r(m,S),l=c();let b=mP(m,l),h=y.createHref(m);i.replaceState(b,"",h),o&&u&&u({action:s,location:y.location,delta:0})}function g(S){let x=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof S=="string"?S:Qs(S);return m=m.replace(/ $/,"%20"),dt(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let y={get action(){return s},get location(){return e(a,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(gP,f),u=S,()=>{a.removeEventListener(gP,f),u=null}},createHref(S){return t(a,S)},createURL:g,encodeLocation(S){let x=g(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return i.go(S)}};return y}var zt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zt||(zt={}));const UB=new Set(["lazy","caseSensitive","path","id","index","children"]);function WB(e){return e.index===!0}function mf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(dt(a.index!==!0||!a.children,"Cannot specify children on an index route"),dt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),WB(a)){let u=Zt({},a,t(a),{id:s});return n[s]=u,u}else{let u=Zt({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=mf(a.children,t,i,n)),u}})}function us(e,t,r){return r===void 0&&(r="/"),Nh(e,t,r,!1)}function Nh(e,t,r,n){let a=typeof t=="string"?io(t):t,o=Li(a.pathname||"/",r);if(o==null)return null;let i=oA(e);qB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(dt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=$o([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),oA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:ZB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of iA(o.path))a(o,i,u)}),t}function iA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=iA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function qB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:e8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const KB=/^:[\w-]+$/,GB=3,QB=2,XB=1,YB=10,JB=-2,yP=e=>e==="*";function ZB(e,t){let r=e.split("/"),n=r.length;return r.some(yP)&&(n+=JB),t&&(n+=QB),r.filter(a=>!yP(a)).reduce((a,o)=>a+(KB.test(o)?GB:o===""?XB:YB),n)}function e8(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function t8(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:v}=c;if(p==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function r8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function sA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gs(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Li(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function n8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?io(e):e;return{pathname:r?r.startsWith("/")?r:a8(r,t):t,search:i8(n),hash:s8(a)}}function a8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Rb(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function xm(e,t){let r=lA(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function wm(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=io(e):(a=Zt({},e),dt(!a.pathname||!a.pathname.includes("?"),Rb("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),Rb("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),Rb("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=n8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const $o=e=>e.join("/").replace(/\/\/+/g,"/"),o8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),i8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Vv{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Sm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uA=["post","put","patch","delete"],l8=new Set(uA),u8=["get",...uA],c8=new Set(u8),d8=new Set([301,302,303,307,308]),f8=new Set([307,308]),Tb={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},p8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),cA="remix-router-transitions";function v8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;dt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;a=ee=>({hasErrorBoundary:X(ee)})}else a=h8;let o={},i=mf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||w8,c=e.unstable_patchRoutesOnNavigation,f=Zt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,g=1e3,y=new Set,S=null,x=null,m=null,b=e.hydrationData!=null,h=us(i,e.history.location,u),_=null;if(h==null&&!c){let X=un(404,{pathname:e.history.location.pathname}),{matches:ee,route:ce}=PP(i);h=ee,_={[ce.id]:X}}h&&!e.hydrationData&&Mn(h,i,e.history.location.pathname).active&&(h=null);let C;if(h)if(h.some(X=>X.route.lazy))C=!1;else if(!h.some(X=>X.route.loader))C=!0;else if(f.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null,ce=Ce=>Ce.route.loader?typeof Ce.route.loader=="function"&&Ce.route.loader.hydrate===!0?!1:X&&X[Ce.route.id]!==void 0||ee&&ee[Ce.route.id]!==void 0:!0;if(ee){let Ce=h.findIndex(N=>ee[N.route.id]!==void 0);C=h.slice(0,Ce+1).every(ce)}else C=h.every(ce)}else C=e.hydrationData!=null;else if(C=!1,h=[],f.v7_partialHydration){let X=Mn(null,i,e.history.location.pathname);X.active&&X.matches&&(h=X.matches)}let E,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:C,navigation:Tb,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},O=dr.Pop,P=!1,k,j=!1,$=new Map,F=null,z=!1,M=!1,W=[],B=new Set,U=new Map,q=0,ie=-1,oe=new Map,Ee=new Set,pe=new Map,Te=new Map,ye=new Set,be=new Map,we=new Map,ve=new Map,De;function Me(){if(p=e.history.listen(X=>{let{action:ee,location:ce,delta:Ce}=X;if(De){De(),De=void 0;return}Gs(we.size===0||Ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let N=Pt({currentLocation:w.location,nextLocation:ce,historyAction:ee});if(N&&Ce!=null){let D=new Promise(I=>{De=I});e.history.go(Ce*-1),kt(N,{state:"blocked",location:ce,proceed(){kt(N,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),D.then(()=>e.history.go(Ce))},reset(){let I=new Map(w.blockers);I.set(N,Tl),Ae({blockers:I})}});return}return V(ee,ce)}),r){F8(t,$);let X=()=>N8(t,$);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return w.initialized||V(dr.Pop,w.location,{initialHydration:!0}),E}function Qe(){p&&p(),F&&F(),v.clear(),k&&k.abort(),w.fetchers.forEach((X,ee)=>je(ee)),w.blockers.forEach((X,ee)=>Ot(ee))}function Ne(X){return v.add(X),()=>v.delete(X)}function Ae(X,ee){ee===void 0&&(ee={}),w=Zt({},w,X);let ce=[],Ce=[];f.v7_fetcherPersist&&w.fetchers.forEach((N,D)=>{N.state==="idle"&&(ye.has(D)?Ce.push(D):ce.push(D))}),[...v].forEach(N=>N(w,{deletedFetchers:Ce,unstable_viewTransitionOpts:ee.viewTransitionOpts,unstable_flushSync:ee.flushSync===!0})),f.v7_fetcherPersist&&(ce.forEach(N=>w.fetchers.delete(N)),Ce.forEach(N=>je(N)))}function He(X,ee,ce){var Ce,N;let{flushSync:D}=ce===void 0?{}:ce,I=w.actionData!=null&&w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&w.navigation.state==="loading"&&((Ce=X.state)==null?void 0:Ce._isRedirect)!==!0,A;ee.actionData?Object.keys(ee.actionData).length>0?A=ee.actionData:A=null:I?A=w.actionData:A=null;let L=ee.loaderData?EP(w.loaderData,ee.loaderData,ee.matches||[],ee.errors):w.loaderData,H=w.blockers;H.size>0&&(H=new Map(H),H.forEach((Q,me)=>H.set(me,Tl)));let re=P===!0||w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&((N=X.state)==null?void 0:N._isRedirect)!==!0;s&&(i=s,s=void 0),z||O===dr.Pop||(O===dr.Push?e.history.push(X,X.state):O===dr.Replace&&e.history.replace(X,X.state));let Y;if(O===dr.Pop){let Q=$.get(w.location.pathname);Q&&Q.has(X.pathname)?Y={currentLocation:w.location,nextLocation:X}:$.has(X.pathname)&&(Y={currentLocation:X,nextLocation:w.location})}else if(j){let Q=$.get(w.location.pathname);Q?Q.add(X.pathname):(Q=new Set([X.pathname]),$.set(w.location.pathname,Q)),Y={currentLocation:w.location,nextLocation:X}}Ae(Zt({},ee,{actionData:A,loaderData:L,historyAction:O,location:X,initialized:!0,navigation:Tb,revalidation:"idle",restoreScrollPosition:Tr(X,ee.matches||w.matches),preventScrollReset:re,blockers:H}),{viewTransitionOpts:Y,flushSync:D===!0}),O=dr.Pop,P=!1,j=!1,z=!1,M=!1,W=[]}async function ht(X,ee){if(typeof X=="number"){e.history.go(X);return}let ce=B1(w.location,w.matches,u,f.v7_prependBasename,X,f.v7_relativeSplatPath,ee==null?void 0:ee.fromRouteId,ee==null?void 0:ee.relative),{path:Ce,submission:N,error:D}=bP(f.v7_normalizeFormMethod,!1,ce,ee),I=w.location,A=gf(w.location,Ce,ee&&ee.state);A=Zt({},A,e.history.encodeLocation(A));let L=ee&&ee.replace!=null?ee.replace:void 0,H=dr.Push;L===!0?H=dr.Replace:L===!1||N!=null&&Ca(N.formMethod)&&N.formAction===w.location.pathname+w.location.search&&(H=dr.Replace);let re=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,Y=(ee&&ee.unstable_flushSync)===!0,Q=Pt({currentLocation:I,nextLocation:A,historyAction:H});if(Q){kt(Q,{state:"blocked",location:A,proceed(){kt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ht(X,ee)},reset(){let me=new Map(w.blockers);me.set(Q,Tl),Ae({blockers:me})}});return}return await V(H,A,{submission:N,pendingError:D,preventScrollReset:re,replace:ee&&ee.replace,enableViewTransition:ee&&ee.unstable_viewTransition,flushSync:Y})}function ut(){if(he(),Ae({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){V(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}V(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:j===!0})}}async function V(X,ee,ce){k&&k.abort(),k=null,O=X,z=(ce&&ce.startUninterruptedRevalidation)===!0,Nr(w.location,w.matches),P=(ce&&ce.preventScrollReset)===!0,j=(ce&&ce.enableViewTransition)===!0;let Ce=s||i,N=ce&&ce.overrideNavigation,D=us(Ce,ee,u),I=(ce&&ce.flushSync)===!0,A=Mn(D,Ce,ee.pathname);if(A.active&&A.matches&&(D=A.matches),!D){let{error:$e,notFoundMatches:Ze,route:tt}=at(ee.pathname);He(ee,{matches:Ze,loaderData:{},errors:{[tt.id]:$e}},{flushSync:I});return}if(w.initialized&&!M&&P8(w.location,ee)&&!(ce&&ce.submission&&Ca(ce.submission.formMethod))){He(ee,{matches:D},{flushSync:I});return}k=new AbortController;let L=vl(e.history,ee,k.signal,ce&&ce.submission),H;if(ce&&ce.pendingError)H=[Kl(D).route.id,{type:zt.error,error:ce.pendingError}];else if(ce&&ce.submission&&Ca(ce.submission.formMethod)){let $e=await K(L,ee,ce.submission,D,A.active,{replace:ce.replace,flushSync:I});if($e.shortCircuited)return;if($e.pendingActionResult){let[Ze,tt]=$e.pendingActionResult;if(Dn(tt)&&Sm(tt.error)&&tt.error.status===404){k=null,He(ee,{matches:$e.matches,loaderData:{},errors:{[Ze]:tt.error}});return}}D=$e.matches||D,H=$e.pendingActionResult,N=$b(ee,ce.submission),I=!1,A.active=!1,L=vl(e.history,L.url,L.signal)}let{shortCircuited:re,matches:Y,loaderData:Q,errors:me}=await te(L,ee,D,A.active,N,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,I,H);re||(k=null,He(ee,Zt({matches:Y||D},OP(H),{loaderData:Q,errors:me})))}async function K(X,ee,ce,Ce,N,D){D===void 0&&(D={}),he();let I=A8(ee,ce);if(Ae({navigation:I},{flushSync:D.flushSync===!0}),N){let H=await Kr(Ce,ee.pathname,X.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let{boundaryId:re,error:Y}=It(ee.pathname,H);return{matches:H.partialMatches,pendingActionResult:[re,{type:zt.error,error:Y}]}}else if(H.matches)Ce=H.matches;else{let{notFoundMatches:re,error:Y,route:Q}=at(ee.pathname);return{matches:re,pendingActionResult:[Q.id,{type:zt.error,error:Y}]}}}let A,L=cd(Ce,ee);if(!L.route.action&&!L.route.lazy)A={type:zt.error,error:un(405,{method:X.method,pathname:ee.pathname,routeId:L.route.id})};else if(A=(await G("action",w,X,[L],Ce,null))[L.route.id],X.signal.aborted)return{shortCircuited:!0};if(xs(A)){let H;return D&&D.replace!=null?H=D.replace:H=SP(A.response.headers.get("Location"),new URL(X.url),u)===w.location.pathname+w.location.search,await Z(X,A,!0,{submission:ce,replace:H}),{shortCircuited:!0}}if(Si(A))throw un(400,{type:"defer-action"});if(Dn(A)){let H=Kl(Ce,L.route.id);return(D&&D.replace)!==!0&&(O=dr.Push),{matches:Ce,pendingActionResult:[H.route.id,A]}}return{matches:Ce,pendingActionResult:[L.route.id,A]}}async function te(X,ee,ce,Ce,N,D,I,A,L,H,re){let Y=N||$b(ee,D),Q=D||I||TP(Y),me=!z&&(!f.v7_partialHydration||!L);if(Ce){if(me){let Vt=se(re);Ae(Zt({navigation:Y},Vt!==void 0?{actionData:Vt}:{}),{flushSync:H})}let ot=await Kr(ce,ee.pathname,X.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){let{boundaryId:Vt,error:mr}=It(ee.pathname,ot);return{matches:ot.partialMatches,loaderData:{},errors:{[Vt]:mr}}}else if(ot.matches)ce=ot.matches;else{let{error:Vt,notFoundMatches:mr,route:vt}=at(ee.pathname);return{matches:mr,loaderData:{},errors:{[vt.id]:Vt}}}}let $e=s||i,[Ze,tt]=xP(e.history,w,ce,Q,ee,f.v7_partialHydration&&L===!0,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,$e,u,re);if(nr(ot=>!(ce&&ce.some(Vt=>Vt.route.id===ot))||Ze&&Ze.some(Vt=>Vt.route.id===ot)),ie=++q,Ze.length===0&&tt.length===0){let ot=Ge();return He(ee,Zt({matches:ce,loaderData:{},errors:re&&Dn(re[1])?{[re[0]]:re[1].error}:null},OP(re),ot?{fetchers:new Map(w.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(me){let ot={};if(!Ce){ot.navigation=Y;let Vt=se(re);Vt!==void 0&&(ot.actionData=Vt)}tt.length>0&&(ot.fetchers=de(tt)),Ae(ot,{flushSync:H})}tt.forEach(ot=>{U.has(ot.key)&&_e(ot.key),ot.controller&&U.set(ot.key,ot.controller)});let St=()=>tt.forEach(ot=>_e(ot.key));k&&k.signal.addEventListener("abort",St);let{loaderResults:st,fetcherResults:xt}=await le(w,ce,Ze,tt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",St),tt.forEach(ot=>U.delete(ot.key));let jt=Yp(st);if(jt)return await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};if(jt=Yp(xt),jt)return Ee.add(jt.key),await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:lt,errors:Dt}=CP(w,ce,Ze,st,re,tt,xt,be);be.forEach((ot,Vt)=>{ot.subscribe(mr=>{(mr||ot.done)&&be.delete(Vt)})}),f.v7_partialHydration&&L&&w.errors&&Object.entries(w.errors).filter(ot=>{let[Vt]=ot;return!Ze.some(mr=>mr.route.id===Vt)}).forEach(ot=>{let[Vt,mr]=ot;Dt=Object.assign(Dt||{},{[Vt]:mr})});let kr=Ge(),yn=nt(ie),vo=kr||yn||tt.length>0;return Zt({matches:ce,loaderData:lt,errors:Dt},vo?{fetchers:new Map(w.fetchers)}:{})}function se(X){if(X&&!Dn(X[1]))return{[X[0]]:X[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function de(X){return X.forEach(ee=>{let ce=w.fetchers.get(ee.key),Ce=Vc(void 0,ce?ce.data:void 0);w.fetchers.set(ee.key,Ce)}),new Map(w.fetchers)}function fe(X,ee,ce,Ce){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(X)&&_e(X);let N=(Ce&&Ce.unstable_flushSync)===!0,D=s||i,I=B1(w.location,w.matches,u,f.v7_prependBasename,ce,f.v7_relativeSplatPath,ee,Ce==null?void 0:Ce.relative),A=us(D,I,u),L=Mn(A,D,I);if(L.active&&L.matches&&(A=L.matches),!A){Be(X,ee,un(404,{pathname:I}),{flushSync:N});return}let{path:H,submission:re,error:Y}=bP(f.v7_normalizeFormMethod,!0,I,Ce);if(Y){Be(X,ee,Y,{flushSync:N});return}let Q=cd(A,H);if(P=(Ce&&Ce.preventScrollReset)===!0,re&&Ca(re.formMethod)){Oe(X,ee,H,Q,A,L.active,N,re);return}pe.set(X,{routeId:ee,path:H}),ae(X,ee,H,Q,A,L.active,N,re)}async function Oe(X,ee,ce,Ce,N,D,I,A){he(),pe.delete(X);function L(vt){if(!vt.route.action&&!vt.route.lazy){let Gr=un(405,{method:A.formMethod,pathname:ce,routeId:ee});return Be(X,ee,Gr,{flushSync:I}),!0}return!1}if(!D&&L(Ce))return;let H=w.fetchers.get(X);Re(X,M8(A,H),{flushSync:I});let re=new AbortController,Y=vl(e.history,ce,re.signal,A);if(D){let vt=await Kr(N,ce,Y.signal);if(vt.type==="aborted")return;if(vt.type==="error"){let{error:Gr}=It(ce,vt);Be(X,ee,Gr,{flushSync:I});return}else if(vt.matches){if(N=vt.matches,Ce=cd(N,ce),L(Ce))return}else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,re);let Q=q,$e=(await G("action",w,Y,[Ce],N,X))[Ce.route.id];if(Y.signal.aborted){U.get(X)===re&&U.delete(X);return}if(f.v7_fetcherPersist&&ye.has(X)){if(xs($e)||Dn($e)){Re(X,ti(void 0));return}}else{if(xs($e))if(U.delete(X),ie>Q){Re(X,ti(void 0));return}else return Ee.add(X),Re(X,Vc(A)),Z(Y,$e,!1,{fetcherSubmission:A});if(Dn($e)){Be(X,ee,$e.error);return}}if(Si($e))throw un(400,{type:"defer-action"});let Ze=w.navigation.location||w.location,tt=vl(e.history,Ze,re.signal),St=s||i,st=w.navigation.state!=="idle"?us(St,w.navigation.location,u):w.matches;dt(st,"Didn't find any matches after fetcher action");let xt=++q;oe.set(X,xt);let jt=Vc(A,$e.data);w.fetchers.set(X,jt);let[lt,Dt]=xP(e.history,w,st,A,Ze,!1,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,St,u,[Ce.route.id,$e]);Dt.filter(vt=>vt.key!==X).forEach(vt=>{let Gr=vt.key,Go=w.fetchers.get(Gr),Qo=Vc(void 0,Go?Go.data:void 0);w.fetchers.set(Gr,Qo),U.has(Gr)&&_e(Gr),vt.controller&&U.set(Gr,vt.controller)}),Ae({fetchers:new Map(w.fetchers)});let kr=()=>Dt.forEach(vt=>_e(vt.key));re.signal.addEventListener("abort",kr);let{loaderResults:yn,fetcherResults:vo}=await le(w,st,lt,Dt,tt);if(re.signal.aborted)return;re.signal.removeEventListener("abort",kr),oe.delete(X),U.delete(X),Dt.forEach(vt=>U.delete(vt.key));let ot=Yp(yn);if(ot)return Z(tt,ot.result,!1);if(ot=Yp(vo),ot)return Ee.add(ot.key),Z(tt,ot.result,!1);let{loaderData:Vt,errors:mr}=CP(w,st,lt,yn,void 0,Dt,vo,be);if(w.fetchers.has(X)){let vt=ti($e.data);w.fetchers.set(X,vt)}nt(xt),w.navigation.state==="loading"&&xt>ie?(dt(O,"Expected pending action"),k&&k.abort(),He(w.navigation.location,{matches:st,loaderData:Vt,errors:mr,fetchers:new Map(w.fetchers)})):(Ae({errors:mr,loaderData:EP(w.loaderData,Vt,st,mr),fetchers:new Map(w.fetchers)}),M=!1)}async function ae(X,ee,ce,Ce,N,D,I,A){let L=w.fetchers.get(X);Re(X,Vc(A,L?L.data:void 0),{flushSync:I});let H=new AbortController,re=vl(e.history,ce,H.signal);if(D){let $e=await Kr(N,ce,re.signal);if($e.type==="aborted")return;if($e.type==="error"){let{error:Ze}=It(ce,$e);Be(X,ee,Ze,{flushSync:I});return}else if($e.matches)N=$e.matches,Ce=cd(N,ce);else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,H);let Y=q,me=(await G("loader",w,re,[Ce],N,X))[Ce.route.id];if(Si(me)&&(me=await qS(me,re.signal,!0)||me),U.get(X)===H&&U.delete(X),!re.signal.aborted){if(ye.has(X)){Re(X,ti(void 0));return}if(xs(me))if(ie>Y){Re(X,ti(void 0));return}else{Ee.add(X),await Z(re,me,!1);return}if(Dn(me)){Be(X,ee,me.error);return}dt(!Si(me),"Unhandled fetcher deferred data"),Re(X,ti(me.data))}}async function Z(X,ee,ce,Ce){let{submission:N,fetcherSubmission:D,replace:I}=Ce===void 0?{}:Ce;ee.response.headers.has("X-Remix-Revalidate")&&(M=!0);let A=ee.response.headers.get("Location");dt(A,"Expected a Location header on the redirect Response"),A=SP(A,new URL(X.url),u);let L=gf(w.location,A,{_isRedirect:!0});if(r){let $e=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))$e=!0;else if(HS.test(A)){const Ze=e.history.createURL(A);$e=Ze.origin!==t.location.origin||Li(Ze.pathname,u)==null}if($e){I?t.location.replace(A):t.location.assign(A);return}}k=null;let H=I===!0||ee.response.headers.has("X-Remix-Replace")?dr.Replace:dr.Push,{formMethod:re,formAction:Y,formEncType:Q}=w.navigation;!N&&!D&&re&&Y&&Q&&(N=TP(w.navigation));let me=N||D;if(f8.has(ee.response.status)&&me&&Ca(me.formMethod))await V(H,L,{submission:Zt({},me,{formAction:A}),preventScrollReset:P,enableViewTransition:ce?j:void 0});else{let $e=$b(L,N);await V(H,L,{overrideNavigation:$e,fetcherSubmission:D,preventScrollReset:P,enableViewTransition:ce?j:void 0})}}async function G(X,ee,ce,Ce,N,D){let I,A={};try{I=await S8(l,X,ee,ce,Ce,N,D,o,a)}catch(L){return Ce.forEach(H=>{A[H.route.id]={type:zt.error,error:L}}),A}for(let[L,H]of Object.entries(I))if(T8(H)){let re=H.result;A[L]={type:zt.redirect,response:E8(re,ce,L,N,u,f.v7_relativeSplatPath)}}else A[L]=await C8(H);return A}async function le(X,ee,ce,Ce,N){let D=X.matches,I=G("loader",X,N,ce,ee,null),A=Promise.all(Ce.map(async re=>{if(re.matches&&re.match&&re.controller){let Q=(await G("loader",X,vl(e.history,re.path,re.controller.signal),[re.match],re.matches,re.key))[re.match.route.id];return{[re.key]:Q}}else return Promise.resolve({[re.key]:{type:zt.error,error:un(404,{pathname:re.path})}})})),L=await I,H=(await A).reduce((re,Y)=>Object.assign(re,Y),{});return await Promise.all([j8(ee,L,N.signal,D,X.loaderData),I8(ee,H,Ce)]),{loaderResults:L,fetcherResults:H}}function he(){M=!0,W.push(...nr()),pe.forEach((X,ee)=>{U.has(ee)&&(B.add(ee),_e(ee))})}function Re(X,ee,ce){ce===void 0&&(ce={}),w.fetchers.set(X,ee),Ae({fetchers:new Map(w.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Be(X,ee,ce,Ce){Ce===void 0&&(Ce={});let N=Kl(w.matches,ee);je(X),Ae({errors:{[N.route.id]:ce},fetchers:new Map(w.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function Ye(X){return f.v7_fetcherPersist&&(Te.set(X,(Te.get(X)||0)+1),ye.has(X)&&ye.delete(X)),w.fetchers.get(X)||p8}function je(X){let ee=w.fetchers.get(X);U.has(X)&&!(ee&&ee.state==="loading"&&oe.has(X))&&_e(X),pe.delete(X),oe.delete(X),Ee.delete(X),ye.delete(X),B.delete(X),w.fetchers.delete(X)}function Je(X){if(f.v7_fetcherPersist){let ee=(Te.get(X)||0)-1;ee<=0?(Te.delete(X),ye.add(X)):Te.set(X,ee)}else je(X);Ae({fetchers:new Map(w.fetchers)})}function _e(X){let ee=U.get(X);dt(ee,"Expected fetch controller: "+X),ee.abort(),U.delete(X)}function Fe(X){for(let ee of X){let ce=Ye(ee),Ce=ti(ce.data);w.fetchers.set(ee,Ce)}}function Ge(){let X=[],ee=!1;for(let ce of Ee){let Ce=w.fetchers.get(ce);dt(Ce,"Expected fetcher: "+ce),Ce.state==="loading"&&(Ee.delete(ce),X.push(ce),ee=!0)}return Fe(X),ee}function nt(X){let ee=[];for(let[ce,Ce]of oe)if(Ce0}function mt(X,ee){let ce=w.blockers.get(X)||Tl;return we.get(X)!==ee&&we.set(X,ee),ce}function Ot(X){w.blockers.delete(X),we.delete(X)}function kt(X,ee){let ce=w.blockers.get(X)||Tl;dt(ce.state==="unblocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="proceeding"||ce.state==="blocked"&&ee.state==="unblocked"||ce.state==="proceeding"&&ee.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+ee.state);let Ce=new Map(w.blockers);Ce.set(X,ee),Ae({blockers:Ce})}function Pt(X){let{currentLocation:ee,nextLocation:ce,historyAction:Ce}=X;if(we.size===0)return;we.size>1&&Gs(!1,"A router only supports one blocker at a time");let N=Array.from(we.entries()),[D,I]=N[N.length-1],A=w.blockers.get(D);if(!(A&&A.state==="proceeding")&&I({currentLocation:ee,nextLocation:ce,historyAction:Ce}))return D}function at(X){let ee=un(404,{pathname:X}),ce=s||i,{matches:Ce,route:N}=PP(ce);return nr(),{notFoundMatches:Ce,route:N,error:ee}}function It(X,ee){return{boundaryId:Kl(ee.partialMatches).route.id,error:un(400,{type:"route-discovery",pathname:X,message:ee.error!=null&&"message"in ee.error?ee.error:String(ee.error)})}}function nr(X){let ee=[];return be.forEach((ce,Ce)=>{(!X||X(Ce))&&(ce.cancel(),ee.push(Ce),be.delete(Ce))}),ee}function mn(X,ee,ce){if(S=X,m=ee,x=ce||null,!b&&w.navigation===Tb){b=!0;let Ce=Tr(w.location,w.matches);Ce!=null&&Ae({restoreScrollPosition:Ce})}return()=>{S=null,m=null,x=null}}function qr(X,ee){return x&&x(X,ee.map(Ce=>HB(Ce,w.loaderData)))||X.key}function Nr(X,ee){if(S&&m){let ce=qr(X,ee);S[ce]=m()}}function Tr(X,ee){if(S){let ce=qr(X,ee),Ce=S[ce];if(typeof Ce=="number")return Ce}return null}function Mn(X,ee,ce){if(c){if(y.has(ce))return{active:!1,matches:X};if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:Nh(ee,ce,u,!0)}}else return{active:!0,matches:Nh(ee,ce,u,!0)||[]}}return{active:!1,matches:null}}async function Kr(X,ee,ce){let Ce=X;for(;;){let N=s==null,D=s||i;try{await b8(c,ee,Ce,D,o,a,ve,ce)}catch(L){return{type:"error",error:L,partialMatches:Ce}}finally{N&&(i=[...i])}if(ce.aborted)return{type:"aborted"};let I=us(D,ee,u);if(I)return Ko(ee,y),{type:"success",matches:I};let A=Nh(D,ee,u,!0);if(!A||Ce.length===A.length&&Ce.every((L,H)=>L.route.id===A[H].route.id))return Ko(ee,y),{type:"success",matches:null};Ce=A}}function Ko(X,ee){if(ee.size>=g){let ce=ee.values().next().value;ee.delete(ce)}ee.add(X)}function $r(X){o={},s=mf(X,a,void 0,o)}function ho(X,ee){let ce=s==null;fA(X,ee,s||i,o,a),ce&&(i=[...i],Ae({}))}return E={get basename(){return u},get future(){return f},get state(){return w},get routes(){return i},get window(){return t},initialize:Me,subscribe:Ne,enableScrollRestoration:mn,navigate:ht,fetch:fe,revalidate:ut,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ye,deleteFetcher:Je,dispose:Qe,getBlocker:mt,deleteBlocker:Ot,patchRoutes:ho,_internalFetchControllers:U,_internalActiveDeferreds:be,_internalSetRoutes:$r},E}function g8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function B1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let f of t)if(u.push(f),f.route.id===i){l=f;break}}else u=t,l=t[t.length-1];let c=wm(a||".",xm(u,o),Li(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!KS(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:$o([r,c.pathname])),Qs(c)}function bP(e,t,r,n){if(!n||!g8(n))return{path:r};if(n.formMethod&&!k8(n.formMethod))return{path:r,error:un(405,{method:n.formMethod})};let a=()=>({path:r,error:un(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=pA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ca(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,S]=g;return""+v+y+"="+S+` -`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Ca(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}dt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=z1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=z1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=_P(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=_P(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Ca(c.formMethod))return{path:r,submission:c};let f=io(r);return t&&f.search&&KS(f.search)&&u.append("index",""),f.search="?"+u,{path:Qs(f),submission:c}}function m8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function xP(e,t,r,n,a,o,i,s,u,l,c,f,p,v,g,y){let S=y?Dn(y[1])?y[1].error:y[1].data:void 0,x=e.createURL(t.location),m=e.createURL(a),b=y&&Dn(y[1])?y[0]:void 0,h=b?m8(r,b):r,_=y?y[1].statusCode:void 0,C=i&&_&&_>=400,E=h.filter((O,P)=>{let{route:k}=O;if(k.lazy)return!0;if(k.loader==null)return!1;if(o)return typeof k.loader!="function"||k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(y8(t.loaderData,t.matches[P],O)||u.some(F=>F===O.route.id))return!0;let j=t.matches[P],$=O;return wP(O,Zt({currentUrl:x,currentParams:j.params,nextUrl:m,nextParams:$.params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s||x.pathname+x.search===m.pathname+m.search||x.search!==m.search||dA(j,$)}))}),w=[];return f.forEach((O,P)=>{if(o||!r.some(z=>z.route.id===O.routeId)||c.has(P))return;let k=us(v,O.path,g);if(!k){w.push({key:P,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(P),$=cd(k,O.path),F=!1;p.has(P)?F=!1:l.has(P)?(l.delete(P),F=!0):j&&j.state!=="idle"&&j.data===void 0?F=s:F=wP($,Zt({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s})),F&&w.push({key:P,routeId:O.routeId,path:O.path,matches:k,match:$,controller:new AbortController})}),[E,w]}function y8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function dA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function b8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,f)=>{s.aborted||fA(c,f,n,a,o)}}),i.set(u,l)),l&&R8(l)&&await l}finally{i.delete(u)}}function fA(e,t,r,n,a){if(e){var o;let i=n[e];dt(i,"No route found to patch children into: routeId = "+e);let s=mf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=mf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function x8(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];dt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";Gs(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!UB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Zt({},t(a),{lazy:void 0}))}async function w8(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function S8(e,t,r,n,a,o,i,s,u,l){let c=o.map(v=>v.route.lazy?x8(v.route,u,s):void 0),f=o.map((v,g)=>{let y=c[g],S=a.some(m=>m.route.id===v.route.id);return Zt({},v,{shouldLoad:S,resolve:async m=>(m&&n.method==="GET"&&(v.route.lazy||v.route.loader)&&(S=!0),S?_8(t,n,v,y,m,l):Promise.resolve({type:zt.data,result:void 0}))})}),p=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:l});try{await Promise.all(c)}catch{}return p}async function _8(e,t,r,n,a,o){let i,s,u=l=>{let c,f=new Promise((g,y)=>c=y);s=()=>c(),t.signal.addEventListener("abort",s);let p=g=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):l({request:t,params:r.params,context:o},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(y=>p(y)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,f])};try{let l=r.route[e];if(n)if(l){let c,[f]=await Promise.all([u(l).catch(p=>{c=p}),n]);if(c!==void 0)throw c;i=f}else if(await n,l=r.route[e],l)i=await u(l);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw un(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:zt.data,result:void 0};else if(l)i=await u(l);else{let c=new URL(t.url),f=c.pathname+c.search;throw un(404,{pathname:f})}dt(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(l){return{type:zt.error,result:l}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function C8(e){let{result:t,type:r}=e;if(hA(t)){let l;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(c){return{type:zt.error,error:c}}return r===zt.error?{type:zt.error,error:new Vv(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:zt.data,data:l,statusCode:t.status,headers:t.headers}}if(r===zt.error){if(RP(t)){var n;if(t.data instanceof Error){var a;return{type:zt.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new Vv(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zt.error,error:t,statusCode:Sm(t)?t.status:void 0}}if($8(t)){var o,i;return{type:zt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(RP(t)){var s,u;return{type:zt.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:zt.data,data:t}}function E8(e,t,r,n,a,o){let i=e.headers.get("Location");if(dt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!HS.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=B1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function SP(e,t,r){if(HS.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Li(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function vl(e,t,r,n){let a=e.createURL(pA(t)).toString(),o={signal:r};if(n&&Ca(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=z1(n.formData):o.body=n.formData}return new Request(a,o)}function z1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function _P(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function O8(e,t,r,n,a){let o={},i=null,s,u=!1,l={},c=r&&Dn(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,v=t[p];if(dt(!xs(v),"Cannot handle redirect results in processLoaderData"),Dn(v)){let g=v.error;if(c!==void 0&&(g=c,c=void 0),i=i||{},a)i[p]=g;else{let y=Kl(e,p);i[y.route.id]==null&&(i[y.route.id]=g)}o[p]=void 0,u||(u=!0,s=Sm(v.error)?v.error.status:500),v.headers&&(l[p]=v.headers)}else Si(v)?(n.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers))}),c!==void 0&&r&&(i={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:l}}function CP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=O8(t,n,a,s,!1);return o.forEach(c=>{let{key:f,match:p,controller:v}=c,g=i[f];if(dt(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Dn(g)){let y=Kl(e.matches,p==null?void 0:p.route.id);l&&l[y.route.id]||(l=Zt({},l,{[y.route.id]:g.error})),e.fetchers.delete(f)}else if(xs(g))dt(!1,"Unhandled fetcher revalidation redirect");else if(Si(g))dt(!1,"Unhandled fetcher deferred data");else{let y=ti(g.data);e.fetchers.set(f,y)}}),{loaderData:u,errors:l}}function EP(e,t,r,n){let a=Zt({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function OP(e){return e?Dn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kl(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function PP(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function un(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+i):a&&r&&n?u="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new Vv(e||500,s,new Error(u),!0)}function Yp(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(xs(a))return{key:n,result:a}}}function pA(e){let t=typeof e=="string"?io(e):e;return Qs(Zt({},t,{hash:""}))}function P8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function R8(e){return typeof e=="object"&&e!=null&&"then"in e}function T8(e){return hA(e.result)&&d8.has(e.result.status)}function Si(e){return e.type===zt.deferred}function Dn(e){return e.type===zt.error}function xs(e){return(e&&e.type)===zt.redirect}function RP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function $8(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function hA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function k8(e){return c8.has(e.toLowerCase())}function Ca(e){return l8.has(e.toLowerCase())}async function j8(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(p==null?void 0:p.route.id)===s);if(!l)continue;let c=n.find(p=>p.route.id===l.route.id),f=c!=null&&!dA(c,l)&&(a&&a[l.route.id])!==void 0;Si(u)&&f&&await qS(u,r,!1).then(p=>{p&&(t[s]=p)})}}async function I8(e,t,r){for(let n=0;n(l==null?void 0:l.route.id)===o)&&Si(s)&&(dt(i,"Expected an AbortController for revalidating fetcher deferred result"),await qS(s,i.signal,!0).then(l=>{l&&(t[a]=l)}))}}async function qS(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zt.error,error:a}}return{type:zt.data,data:e.deferredData.data}}}function KS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cd(e,t){let r=typeof t=="string"?io(t).search:t.search;if(e[e.length-1].route.index&&KS(r||""))return e[e.length-1];let n=lA(e);return n[n.length-1]}function TP(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function $b(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function A8(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Vc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function M8(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ti(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function F8(e,t){try{let r=e.sessionStorage.getItem(cA);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function N8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(cA,JSON.stringify(r))}catch(n){Gs(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zB(){return Math.random().toString(36).substr(2,8)}function mP(e,t){return{usr:e.state,key:e.key,idx:t}}function gf(e,t,r,n){return r===void 0&&(r=null),Zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?io(t):t,{state:r,key:t&&t.key||n||zB()})}function Qs(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function io(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function VB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=dr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(Zt({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function f(){s=dr.Pop;let S=c(),x=S==null?null:S-l;l=S,u&&u({action:s,location:y.location,delta:x})}function p(S,x){s=dr.Push;let m=gf(y.location,S,x);r&&r(m,S),l=c()+1;let b=mP(m,l),h=y.createHref(m);try{i.pushState(b,"",h)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(h)}o&&u&&u({action:s,location:y.location,delta:1})}function v(S,x){s=dr.Replace;let m=gf(y.location,S,x);r&&r(m,S),l=c();let b=mP(m,l),h=y.createHref(m);i.replaceState(b,"",h),o&&u&&u({action:s,location:y.location,delta:0})}function g(S){let x=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof S=="string"?S:Qs(S);return m=m.replace(/ $/,"%20"),dt(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let y={get action(){return s},get location(){return e(a,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(gP,f),u=S,()=>{a.removeEventListener(gP,f),u=null}},createHref(S){return t(a,S)},createURL:g,encodeLocation(S){let x=g(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return i.go(S)}};return y}var zt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zt||(zt={}));const UB=new Set(["lazy","caseSensitive","path","id","index","children"]);function WB(e){return e.index===!0}function mf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(dt(a.index!==!0||!a.children,"Cannot specify children on an index route"),dt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),WB(a)){let u=Zt({},a,t(a),{id:s});return n[s]=u,u}else{let u=Zt({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=mf(a.children,t,i,n)),u}})}function us(e,t,r){return r===void 0&&(r="/"),Nh(e,t,r,!1)}function Nh(e,t,r,n){let a=typeof t=="string"?io(t):t,o=Li(a.pathname||"/",r);if(o==null)return null;let i=iA(e);qB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(dt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=$o([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),iA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:ZB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of sA(o.path))a(o,i,u)}),t}function sA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=sA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function qB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:e8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const KB=/^:[\w-]+$/,GB=3,QB=2,XB=1,YB=10,JB=-2,yP=e=>e==="*";function ZB(e,t){let r=e.split("/"),n=r.length;return r.some(yP)&&(n+=JB),t&&(n+=QB),r.filter(a=>!yP(a)).reduce((a,o)=>a+(KB.test(o)?GB:o===""?XB:YB),n)}function e8(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function t8(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:v}=c;if(p==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function r8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function lA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gs(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Li(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function n8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?io(e):e;return{pathname:r?r.startsWith("/")?r:a8(r,t):t,search:i8(n),hash:s8(a)}}function a8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Pb(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function uA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function bm(e,t){let r=uA(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function xm(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=io(e):(a=Zt({},e),dt(!a.pathname||!a.pathname.includes("?"),Pb("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),Pb("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),Pb("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=n8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const $o=e=>e.join("/").replace(/\/\/+/g,"/"),o8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),i8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class zv{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function wm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cA=["post","put","patch","delete"],l8=new Set(cA),u8=["get",...cA],c8=new Set(u8),d8=new Set([301,302,303,307,308]),f8=new Set([307,308]),Rb={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},p8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),dA="remix-router-transitions";function v8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;dt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;a=ee=>({hasErrorBoundary:X(ee)})}else a=h8;let o={},i=mf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||w8,c=e.unstable_patchRoutesOnNavigation,f=Zt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,g=1e3,y=new Set,S=null,x=null,m=null,b=e.hydrationData!=null,h=us(i,e.history.location,u),_=null;if(h==null&&!c){let X=un(404,{pathname:e.history.location.pathname}),{matches:ee,route:ce}=PP(i);h=ee,_={[ce.id]:X}}h&&!e.hydrationData&&Mn(h,i,e.history.location.pathname).active&&(h=null);let C;if(h)if(h.some(X=>X.route.lazy))C=!1;else if(!h.some(X=>X.route.loader))C=!0;else if(f.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null,ce=Ce=>Ce.route.loader?typeof Ce.route.loader=="function"&&Ce.route.loader.hydrate===!0?!1:X&&X[Ce.route.id]!==void 0||ee&&ee[Ce.route.id]!==void 0:!0;if(ee){let Ce=h.findIndex(N=>ee[N.route.id]!==void 0);C=h.slice(0,Ce+1).every(ce)}else C=h.every(ce)}else C=e.hydrationData!=null;else if(C=!1,h=[],f.v7_partialHydration){let X=Mn(null,i,e.history.location.pathname);X.active&&X.matches&&(h=X.matches)}let E,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:C,navigation:Rb,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},O=dr.Pop,P=!1,k,j=!1,$=new Map,F=null,z=!1,M=!1,W=[],B=new Set,U=new Map,q=0,ie=-1,oe=new Map,Ee=new Set,pe=new Map,Te=new Map,ye=new Set,be=new Map,we=new Map,ve=new Map,De;function Me(){if(p=e.history.listen(X=>{let{action:ee,location:ce,delta:Ce}=X;if(De){De(),De=void 0;return}Gs(we.size===0||Ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let N=Pt({currentLocation:w.location,nextLocation:ce,historyAction:ee});if(N&&Ce!=null){let D=new Promise(I=>{De=I});e.history.go(Ce*-1),kt(N,{state:"blocked",location:ce,proceed(){kt(N,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),D.then(()=>e.history.go(Ce))},reset(){let I=new Map(w.blockers);I.set(N,Tl),Ae({blockers:I})}});return}return V(ee,ce)}),r){F8(t,$);let X=()=>N8(t,$);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return w.initialized||V(dr.Pop,w.location,{initialHydration:!0}),E}function Qe(){p&&p(),F&&F(),v.clear(),k&&k.abort(),w.fetchers.forEach((X,ee)=>je(ee)),w.blockers.forEach((X,ee)=>Ot(ee))}function Ne(X){return v.add(X),()=>v.delete(X)}function Ae(X,ee){ee===void 0&&(ee={}),w=Zt({},w,X);let ce=[],Ce=[];f.v7_fetcherPersist&&w.fetchers.forEach((N,D)=>{N.state==="idle"&&(ye.has(D)?Ce.push(D):ce.push(D))}),[...v].forEach(N=>N(w,{deletedFetchers:Ce,unstable_viewTransitionOpts:ee.viewTransitionOpts,unstable_flushSync:ee.flushSync===!0})),f.v7_fetcherPersist&&(ce.forEach(N=>w.fetchers.delete(N)),Ce.forEach(N=>je(N)))}function He(X,ee,ce){var Ce,N;let{flushSync:D}=ce===void 0?{}:ce,I=w.actionData!=null&&w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&w.navigation.state==="loading"&&((Ce=X.state)==null?void 0:Ce._isRedirect)!==!0,A;ee.actionData?Object.keys(ee.actionData).length>0?A=ee.actionData:A=null:I?A=w.actionData:A=null;let L=ee.loaderData?EP(w.loaderData,ee.loaderData,ee.matches||[],ee.errors):w.loaderData,H=w.blockers;H.size>0&&(H=new Map(H),H.forEach((Q,me)=>H.set(me,Tl)));let re=P===!0||w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&((N=X.state)==null?void 0:N._isRedirect)!==!0;s&&(i=s,s=void 0),z||O===dr.Pop||(O===dr.Push?e.history.push(X,X.state):O===dr.Replace&&e.history.replace(X,X.state));let Y;if(O===dr.Pop){let Q=$.get(w.location.pathname);Q&&Q.has(X.pathname)?Y={currentLocation:w.location,nextLocation:X}:$.has(X.pathname)&&(Y={currentLocation:X,nextLocation:w.location})}else if(j){let Q=$.get(w.location.pathname);Q?Q.add(X.pathname):(Q=new Set([X.pathname]),$.set(w.location.pathname,Q)),Y={currentLocation:w.location,nextLocation:X}}Ae(Zt({},ee,{actionData:A,loaderData:L,historyAction:O,location:X,initialized:!0,navigation:Rb,revalidation:"idle",restoreScrollPosition:Tr(X,ee.matches||w.matches),preventScrollReset:re,blockers:H}),{viewTransitionOpts:Y,flushSync:D===!0}),O=dr.Pop,P=!1,j=!1,z=!1,M=!1,W=[]}async function ht(X,ee){if(typeof X=="number"){e.history.go(X);return}let ce=B1(w.location,w.matches,u,f.v7_prependBasename,X,f.v7_relativeSplatPath,ee==null?void 0:ee.fromRouteId,ee==null?void 0:ee.relative),{path:Ce,submission:N,error:D}=bP(f.v7_normalizeFormMethod,!1,ce,ee),I=w.location,A=gf(w.location,Ce,ee&&ee.state);A=Zt({},A,e.history.encodeLocation(A));let L=ee&&ee.replace!=null?ee.replace:void 0,H=dr.Push;L===!0?H=dr.Replace:L===!1||N!=null&&Ca(N.formMethod)&&N.formAction===w.location.pathname+w.location.search&&(H=dr.Replace);let re=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,Y=(ee&&ee.unstable_flushSync)===!0,Q=Pt({currentLocation:I,nextLocation:A,historyAction:H});if(Q){kt(Q,{state:"blocked",location:A,proceed(){kt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ht(X,ee)},reset(){let me=new Map(w.blockers);me.set(Q,Tl),Ae({blockers:me})}});return}return await V(H,A,{submission:N,pendingError:D,preventScrollReset:re,replace:ee&&ee.replace,enableViewTransition:ee&&ee.unstable_viewTransition,flushSync:Y})}function ut(){if(he(),Ae({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){V(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}V(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:j===!0})}}async function V(X,ee,ce){k&&k.abort(),k=null,O=X,z=(ce&&ce.startUninterruptedRevalidation)===!0,Nr(w.location,w.matches),P=(ce&&ce.preventScrollReset)===!0,j=(ce&&ce.enableViewTransition)===!0;let Ce=s||i,N=ce&&ce.overrideNavigation,D=us(Ce,ee,u),I=(ce&&ce.flushSync)===!0,A=Mn(D,Ce,ee.pathname);if(A.active&&A.matches&&(D=A.matches),!D){let{error:$e,notFoundMatches:Ze,route:tt}=at(ee.pathname);He(ee,{matches:Ze,loaderData:{},errors:{[tt.id]:$e}},{flushSync:I});return}if(w.initialized&&!M&&P8(w.location,ee)&&!(ce&&ce.submission&&Ca(ce.submission.formMethod))){He(ee,{matches:D},{flushSync:I});return}k=new AbortController;let L=vl(e.history,ee,k.signal,ce&&ce.submission),H;if(ce&&ce.pendingError)H=[Kl(D).route.id,{type:zt.error,error:ce.pendingError}];else if(ce&&ce.submission&&Ca(ce.submission.formMethod)){let $e=await K(L,ee,ce.submission,D,A.active,{replace:ce.replace,flushSync:I});if($e.shortCircuited)return;if($e.pendingActionResult){let[Ze,tt]=$e.pendingActionResult;if(Dn(tt)&&wm(tt.error)&&tt.error.status===404){k=null,He(ee,{matches:$e.matches,loaderData:{},errors:{[Ze]:tt.error}});return}}D=$e.matches||D,H=$e.pendingActionResult,N=Tb(ee,ce.submission),I=!1,A.active=!1,L=vl(e.history,L.url,L.signal)}let{shortCircuited:re,matches:Y,loaderData:Q,errors:me}=await te(L,ee,D,A.active,N,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,I,H);re||(k=null,He(ee,Zt({matches:Y||D},OP(H),{loaderData:Q,errors:me})))}async function K(X,ee,ce,Ce,N,D){D===void 0&&(D={}),he();let I=A8(ee,ce);if(Ae({navigation:I},{flushSync:D.flushSync===!0}),N){let H=await Kr(Ce,ee.pathname,X.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let{boundaryId:re,error:Y}=It(ee.pathname,H);return{matches:H.partialMatches,pendingActionResult:[re,{type:zt.error,error:Y}]}}else if(H.matches)Ce=H.matches;else{let{notFoundMatches:re,error:Y,route:Q}=at(ee.pathname);return{matches:re,pendingActionResult:[Q.id,{type:zt.error,error:Y}]}}}let A,L=cd(Ce,ee);if(!L.route.action&&!L.route.lazy)A={type:zt.error,error:un(405,{method:X.method,pathname:ee.pathname,routeId:L.route.id})};else if(A=(await G("action",w,X,[L],Ce,null))[L.route.id],X.signal.aborted)return{shortCircuited:!0};if(xs(A)){let H;return D&&D.replace!=null?H=D.replace:H=SP(A.response.headers.get("Location"),new URL(X.url),u)===w.location.pathname+w.location.search,await Z(X,A,!0,{submission:ce,replace:H}),{shortCircuited:!0}}if(Si(A))throw un(400,{type:"defer-action"});if(Dn(A)){let H=Kl(Ce,L.route.id);return(D&&D.replace)!==!0&&(O=dr.Push),{matches:Ce,pendingActionResult:[H.route.id,A]}}return{matches:Ce,pendingActionResult:[L.route.id,A]}}async function te(X,ee,ce,Ce,N,D,I,A,L,H,re){let Y=N||Tb(ee,D),Q=D||I||TP(Y),me=!z&&(!f.v7_partialHydration||!L);if(Ce){if(me){let Vt=se(re);Ae(Zt({navigation:Y},Vt!==void 0?{actionData:Vt}:{}),{flushSync:H})}let ot=await Kr(ce,ee.pathname,X.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){let{boundaryId:Vt,error:mr}=It(ee.pathname,ot);return{matches:ot.partialMatches,loaderData:{},errors:{[Vt]:mr}}}else if(ot.matches)ce=ot.matches;else{let{error:Vt,notFoundMatches:mr,route:vt}=at(ee.pathname);return{matches:mr,loaderData:{},errors:{[vt.id]:Vt}}}}let $e=s||i,[Ze,tt]=xP(e.history,w,ce,Q,ee,f.v7_partialHydration&&L===!0,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,$e,u,re);if(nr(ot=>!(ce&&ce.some(Vt=>Vt.route.id===ot))||Ze&&Ze.some(Vt=>Vt.route.id===ot)),ie=++q,Ze.length===0&&tt.length===0){let ot=Ge();return He(ee,Zt({matches:ce,loaderData:{},errors:re&&Dn(re[1])?{[re[0]]:re[1].error}:null},OP(re),ot?{fetchers:new Map(w.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(me){let ot={};if(!Ce){ot.navigation=Y;let Vt=se(re);Vt!==void 0&&(ot.actionData=Vt)}tt.length>0&&(ot.fetchers=de(tt)),Ae(ot,{flushSync:H})}tt.forEach(ot=>{U.has(ot.key)&&_e(ot.key),ot.controller&&U.set(ot.key,ot.controller)});let St=()=>tt.forEach(ot=>_e(ot.key));k&&k.signal.addEventListener("abort",St);let{loaderResults:st,fetcherResults:xt}=await le(w,ce,Ze,tt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",St),tt.forEach(ot=>U.delete(ot.key));let jt=Yp(st);if(jt)return await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};if(jt=Yp(xt),jt)return Ee.add(jt.key),await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:lt,errors:Dt}=CP(w,ce,Ze,st,re,tt,xt,be);be.forEach((ot,Vt)=>{ot.subscribe(mr=>{(mr||ot.done)&&be.delete(Vt)})}),f.v7_partialHydration&&L&&w.errors&&Object.entries(w.errors).filter(ot=>{let[Vt]=ot;return!Ze.some(mr=>mr.route.id===Vt)}).forEach(ot=>{let[Vt,mr]=ot;Dt=Object.assign(Dt||{},{[Vt]:mr})});let kr=Ge(),yn=nt(ie),vo=kr||yn||tt.length>0;return Zt({matches:ce,loaderData:lt,errors:Dt},vo?{fetchers:new Map(w.fetchers)}:{})}function se(X){if(X&&!Dn(X[1]))return{[X[0]]:X[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function de(X){return X.forEach(ee=>{let ce=w.fetchers.get(ee.key),Ce=Vc(void 0,ce?ce.data:void 0);w.fetchers.set(ee.key,Ce)}),new Map(w.fetchers)}function fe(X,ee,ce,Ce){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(X)&&_e(X);let N=(Ce&&Ce.unstable_flushSync)===!0,D=s||i,I=B1(w.location,w.matches,u,f.v7_prependBasename,ce,f.v7_relativeSplatPath,ee,Ce==null?void 0:Ce.relative),A=us(D,I,u),L=Mn(A,D,I);if(L.active&&L.matches&&(A=L.matches),!A){Be(X,ee,un(404,{pathname:I}),{flushSync:N});return}let{path:H,submission:re,error:Y}=bP(f.v7_normalizeFormMethod,!0,I,Ce);if(Y){Be(X,ee,Y,{flushSync:N});return}let Q=cd(A,H);if(P=(Ce&&Ce.preventScrollReset)===!0,re&&Ca(re.formMethod)){Oe(X,ee,H,Q,A,L.active,N,re);return}pe.set(X,{routeId:ee,path:H}),ae(X,ee,H,Q,A,L.active,N,re)}async function Oe(X,ee,ce,Ce,N,D,I,A){he(),pe.delete(X);function L(vt){if(!vt.route.action&&!vt.route.lazy){let Gr=un(405,{method:A.formMethod,pathname:ce,routeId:ee});return Be(X,ee,Gr,{flushSync:I}),!0}return!1}if(!D&&L(Ce))return;let H=w.fetchers.get(X);Re(X,M8(A,H),{flushSync:I});let re=new AbortController,Y=vl(e.history,ce,re.signal,A);if(D){let vt=await Kr(N,ce,Y.signal);if(vt.type==="aborted")return;if(vt.type==="error"){let{error:Gr}=It(ce,vt);Be(X,ee,Gr,{flushSync:I});return}else if(vt.matches){if(N=vt.matches,Ce=cd(N,ce),L(Ce))return}else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,re);let Q=q,$e=(await G("action",w,Y,[Ce],N,X))[Ce.route.id];if(Y.signal.aborted){U.get(X)===re&&U.delete(X);return}if(f.v7_fetcherPersist&&ye.has(X)){if(xs($e)||Dn($e)){Re(X,ti(void 0));return}}else{if(xs($e))if(U.delete(X),ie>Q){Re(X,ti(void 0));return}else return Ee.add(X),Re(X,Vc(A)),Z(Y,$e,!1,{fetcherSubmission:A});if(Dn($e)){Be(X,ee,$e.error);return}}if(Si($e))throw un(400,{type:"defer-action"});let Ze=w.navigation.location||w.location,tt=vl(e.history,Ze,re.signal),St=s||i,st=w.navigation.state!=="idle"?us(St,w.navigation.location,u):w.matches;dt(st,"Didn't find any matches after fetcher action");let xt=++q;oe.set(X,xt);let jt=Vc(A,$e.data);w.fetchers.set(X,jt);let[lt,Dt]=xP(e.history,w,st,A,Ze,!1,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,St,u,[Ce.route.id,$e]);Dt.filter(vt=>vt.key!==X).forEach(vt=>{let Gr=vt.key,Go=w.fetchers.get(Gr),Qo=Vc(void 0,Go?Go.data:void 0);w.fetchers.set(Gr,Qo),U.has(Gr)&&_e(Gr),vt.controller&&U.set(Gr,vt.controller)}),Ae({fetchers:new Map(w.fetchers)});let kr=()=>Dt.forEach(vt=>_e(vt.key));re.signal.addEventListener("abort",kr);let{loaderResults:yn,fetcherResults:vo}=await le(w,st,lt,Dt,tt);if(re.signal.aborted)return;re.signal.removeEventListener("abort",kr),oe.delete(X),U.delete(X),Dt.forEach(vt=>U.delete(vt.key));let ot=Yp(yn);if(ot)return Z(tt,ot.result,!1);if(ot=Yp(vo),ot)return Ee.add(ot.key),Z(tt,ot.result,!1);let{loaderData:Vt,errors:mr}=CP(w,st,lt,yn,void 0,Dt,vo,be);if(w.fetchers.has(X)){let vt=ti($e.data);w.fetchers.set(X,vt)}nt(xt),w.navigation.state==="loading"&&xt>ie?(dt(O,"Expected pending action"),k&&k.abort(),He(w.navigation.location,{matches:st,loaderData:Vt,errors:mr,fetchers:new Map(w.fetchers)})):(Ae({errors:mr,loaderData:EP(w.loaderData,Vt,st,mr),fetchers:new Map(w.fetchers)}),M=!1)}async function ae(X,ee,ce,Ce,N,D,I,A){let L=w.fetchers.get(X);Re(X,Vc(A,L?L.data:void 0),{flushSync:I});let H=new AbortController,re=vl(e.history,ce,H.signal);if(D){let $e=await Kr(N,ce,re.signal);if($e.type==="aborted")return;if($e.type==="error"){let{error:Ze}=It(ce,$e);Be(X,ee,Ze,{flushSync:I});return}else if($e.matches)N=$e.matches,Ce=cd(N,ce);else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,H);let Y=q,me=(await G("loader",w,re,[Ce],N,X))[Ce.route.id];if(Si(me)&&(me=await qS(me,re.signal,!0)||me),U.get(X)===H&&U.delete(X),!re.signal.aborted){if(ye.has(X)){Re(X,ti(void 0));return}if(xs(me))if(ie>Y){Re(X,ti(void 0));return}else{Ee.add(X),await Z(re,me,!1);return}if(Dn(me)){Be(X,ee,me.error);return}dt(!Si(me),"Unhandled fetcher deferred data"),Re(X,ti(me.data))}}async function Z(X,ee,ce,Ce){let{submission:N,fetcherSubmission:D,replace:I}=Ce===void 0?{}:Ce;ee.response.headers.has("X-Remix-Revalidate")&&(M=!0);let A=ee.response.headers.get("Location");dt(A,"Expected a Location header on the redirect Response"),A=SP(A,new URL(X.url),u);let L=gf(w.location,A,{_isRedirect:!0});if(r){let $e=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))$e=!0;else if(HS.test(A)){const Ze=e.history.createURL(A);$e=Ze.origin!==t.location.origin||Li(Ze.pathname,u)==null}if($e){I?t.location.replace(A):t.location.assign(A);return}}k=null;let H=I===!0||ee.response.headers.has("X-Remix-Replace")?dr.Replace:dr.Push,{formMethod:re,formAction:Y,formEncType:Q}=w.navigation;!N&&!D&&re&&Y&&Q&&(N=TP(w.navigation));let me=N||D;if(f8.has(ee.response.status)&&me&&Ca(me.formMethod))await V(H,L,{submission:Zt({},me,{formAction:A}),preventScrollReset:P,enableViewTransition:ce?j:void 0});else{let $e=Tb(L,N);await V(H,L,{overrideNavigation:$e,fetcherSubmission:D,preventScrollReset:P,enableViewTransition:ce?j:void 0})}}async function G(X,ee,ce,Ce,N,D){let I,A={};try{I=await S8(l,X,ee,ce,Ce,N,D,o,a)}catch(L){return Ce.forEach(H=>{A[H.route.id]={type:zt.error,error:L}}),A}for(let[L,H]of Object.entries(I))if(T8(H)){let re=H.result;A[L]={type:zt.redirect,response:E8(re,ce,L,N,u,f.v7_relativeSplatPath)}}else A[L]=await C8(H);return A}async function le(X,ee,ce,Ce,N){let D=X.matches,I=G("loader",X,N,ce,ee,null),A=Promise.all(Ce.map(async re=>{if(re.matches&&re.match&&re.controller){let Q=(await G("loader",X,vl(e.history,re.path,re.controller.signal),[re.match],re.matches,re.key))[re.match.route.id];return{[re.key]:Q}}else return Promise.resolve({[re.key]:{type:zt.error,error:un(404,{pathname:re.path})}})})),L=await I,H=(await A).reduce((re,Y)=>Object.assign(re,Y),{});return await Promise.all([j8(ee,L,N.signal,D,X.loaderData),I8(ee,H,Ce)]),{loaderResults:L,fetcherResults:H}}function he(){M=!0,W.push(...nr()),pe.forEach((X,ee)=>{U.has(ee)&&(B.add(ee),_e(ee))})}function Re(X,ee,ce){ce===void 0&&(ce={}),w.fetchers.set(X,ee),Ae({fetchers:new Map(w.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Be(X,ee,ce,Ce){Ce===void 0&&(Ce={});let N=Kl(w.matches,ee);je(X),Ae({errors:{[N.route.id]:ce},fetchers:new Map(w.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function Ye(X){return f.v7_fetcherPersist&&(Te.set(X,(Te.get(X)||0)+1),ye.has(X)&&ye.delete(X)),w.fetchers.get(X)||p8}function je(X){let ee=w.fetchers.get(X);U.has(X)&&!(ee&&ee.state==="loading"&&oe.has(X))&&_e(X),pe.delete(X),oe.delete(X),Ee.delete(X),ye.delete(X),B.delete(X),w.fetchers.delete(X)}function Je(X){if(f.v7_fetcherPersist){let ee=(Te.get(X)||0)-1;ee<=0?(Te.delete(X),ye.add(X)):Te.set(X,ee)}else je(X);Ae({fetchers:new Map(w.fetchers)})}function _e(X){let ee=U.get(X);dt(ee,"Expected fetch controller: "+X),ee.abort(),U.delete(X)}function Fe(X){for(let ee of X){let ce=Ye(ee),Ce=ti(ce.data);w.fetchers.set(ee,Ce)}}function Ge(){let X=[],ee=!1;for(let ce of Ee){let Ce=w.fetchers.get(ce);dt(Ce,"Expected fetcher: "+ce),Ce.state==="loading"&&(Ee.delete(ce),X.push(ce),ee=!0)}return Fe(X),ee}function nt(X){let ee=[];for(let[ce,Ce]of oe)if(Ce0}function mt(X,ee){let ce=w.blockers.get(X)||Tl;return we.get(X)!==ee&&we.set(X,ee),ce}function Ot(X){w.blockers.delete(X),we.delete(X)}function kt(X,ee){let ce=w.blockers.get(X)||Tl;dt(ce.state==="unblocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="proceeding"||ce.state==="blocked"&&ee.state==="unblocked"||ce.state==="proceeding"&&ee.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+ee.state);let Ce=new Map(w.blockers);Ce.set(X,ee),Ae({blockers:Ce})}function Pt(X){let{currentLocation:ee,nextLocation:ce,historyAction:Ce}=X;if(we.size===0)return;we.size>1&&Gs(!1,"A router only supports one blocker at a time");let N=Array.from(we.entries()),[D,I]=N[N.length-1],A=w.blockers.get(D);if(!(A&&A.state==="proceeding")&&I({currentLocation:ee,nextLocation:ce,historyAction:Ce}))return D}function at(X){let ee=un(404,{pathname:X}),ce=s||i,{matches:Ce,route:N}=PP(ce);return nr(),{notFoundMatches:Ce,route:N,error:ee}}function It(X,ee){return{boundaryId:Kl(ee.partialMatches).route.id,error:un(400,{type:"route-discovery",pathname:X,message:ee.error!=null&&"message"in ee.error?ee.error:String(ee.error)})}}function nr(X){let ee=[];return be.forEach((ce,Ce)=>{(!X||X(Ce))&&(ce.cancel(),ee.push(Ce),be.delete(Ce))}),ee}function mn(X,ee,ce){if(S=X,m=ee,x=ce||null,!b&&w.navigation===Rb){b=!0;let Ce=Tr(w.location,w.matches);Ce!=null&&Ae({restoreScrollPosition:Ce})}return()=>{S=null,m=null,x=null}}function qr(X,ee){return x&&x(X,ee.map(Ce=>HB(Ce,w.loaderData)))||X.key}function Nr(X,ee){if(S&&m){let ce=qr(X,ee);S[ce]=m()}}function Tr(X,ee){if(S){let ce=qr(X,ee),Ce=S[ce];if(typeof Ce=="number")return Ce}return null}function Mn(X,ee,ce){if(c){if(y.has(ce))return{active:!1,matches:X};if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:Nh(ee,ce,u,!0)}}else return{active:!0,matches:Nh(ee,ce,u,!0)||[]}}return{active:!1,matches:null}}async function Kr(X,ee,ce){let Ce=X;for(;;){let N=s==null,D=s||i;try{await b8(c,ee,Ce,D,o,a,ve,ce)}catch(L){return{type:"error",error:L,partialMatches:Ce}}finally{N&&(i=[...i])}if(ce.aborted)return{type:"aborted"};let I=us(D,ee,u);if(I)return Ko(ee,y),{type:"success",matches:I};let A=Nh(D,ee,u,!0);if(!A||Ce.length===A.length&&Ce.every((L,H)=>L.route.id===A[H].route.id))return Ko(ee,y),{type:"success",matches:null};Ce=A}}function Ko(X,ee){if(ee.size>=g){let ce=ee.values().next().value;ee.delete(ce)}ee.add(X)}function $r(X){o={},s=mf(X,a,void 0,o)}function ho(X,ee){let ce=s==null;pA(X,ee,s||i,o,a),ce&&(i=[...i],Ae({}))}return E={get basename(){return u},get future(){return f},get state(){return w},get routes(){return i},get window(){return t},initialize:Me,subscribe:Ne,enableScrollRestoration:mn,navigate:ht,fetch:fe,revalidate:ut,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ye,deleteFetcher:Je,dispose:Qe,getBlocker:mt,deleteBlocker:Ot,patchRoutes:ho,_internalFetchControllers:U,_internalActiveDeferreds:be,_internalSetRoutes:$r},E}function g8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function B1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let f of t)if(u.push(f),f.route.id===i){l=f;break}}else u=t,l=t[t.length-1];let c=xm(a||".",bm(u,o),Li(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!KS(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:$o([r,c.pathname])),Qs(c)}function bP(e,t,r,n){if(!n||!g8(n))return{path:r};if(n.formMethod&&!k8(n.formMethod))return{path:r,error:un(405,{method:n.formMethod})};let a=()=>({path:r,error:un(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=hA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ca(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,S]=g;return""+v+y+"="+S+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Ca(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}dt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=z1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=z1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=_P(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=_P(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Ca(c.formMethod))return{path:r,submission:c};let f=io(r);return t&&f.search&&KS(f.search)&&u.append("index",""),f.search="?"+u,{path:Qs(f),submission:c}}function m8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function xP(e,t,r,n,a,o,i,s,u,l,c,f,p,v,g,y){let S=y?Dn(y[1])?y[1].error:y[1].data:void 0,x=e.createURL(t.location),m=e.createURL(a),b=y&&Dn(y[1])?y[0]:void 0,h=b?m8(r,b):r,_=y?y[1].statusCode:void 0,C=i&&_&&_>=400,E=h.filter((O,P)=>{let{route:k}=O;if(k.lazy)return!0;if(k.loader==null)return!1;if(o)return typeof k.loader!="function"||k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(y8(t.loaderData,t.matches[P],O)||u.some(F=>F===O.route.id))return!0;let j=t.matches[P],$=O;return wP(O,Zt({currentUrl:x,currentParams:j.params,nextUrl:m,nextParams:$.params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s||x.pathname+x.search===m.pathname+m.search||x.search!==m.search||fA(j,$)}))}),w=[];return f.forEach((O,P)=>{if(o||!r.some(z=>z.route.id===O.routeId)||c.has(P))return;let k=us(v,O.path,g);if(!k){w.push({key:P,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(P),$=cd(k,O.path),F=!1;p.has(P)?F=!1:l.has(P)?(l.delete(P),F=!0):j&&j.state!=="idle"&&j.data===void 0?F=s:F=wP($,Zt({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s})),F&&w.push({key:P,routeId:O.routeId,path:O.path,matches:k,match:$,controller:new AbortController})}),[E,w]}function y8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function fA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function b8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,f)=>{s.aborted||pA(c,f,n,a,o)}}),i.set(u,l)),l&&R8(l)&&await l}finally{i.delete(u)}}function pA(e,t,r,n,a){if(e){var o;let i=n[e];dt(i,"No route found to patch children into: routeId = "+e);let s=mf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=mf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function x8(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];dt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";Gs(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!UB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Zt({},t(a),{lazy:void 0}))}async function w8(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function S8(e,t,r,n,a,o,i,s,u,l){let c=o.map(v=>v.route.lazy?x8(v.route,u,s):void 0),f=o.map((v,g)=>{let y=c[g],S=a.some(m=>m.route.id===v.route.id);return Zt({},v,{shouldLoad:S,resolve:async m=>(m&&n.method==="GET"&&(v.route.lazy||v.route.loader)&&(S=!0),S?_8(t,n,v,y,m,l):Promise.resolve({type:zt.data,result:void 0}))})}),p=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:l});try{await Promise.all(c)}catch{}return p}async function _8(e,t,r,n,a,o){let i,s,u=l=>{let c,f=new Promise((g,y)=>c=y);s=()=>c(),t.signal.addEventListener("abort",s);let p=g=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):l({request:t,params:r.params,context:o},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(y=>p(y)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,f])};try{let l=r.route[e];if(n)if(l){let c,[f]=await Promise.all([u(l).catch(p=>{c=p}),n]);if(c!==void 0)throw c;i=f}else if(await n,l=r.route[e],l)i=await u(l);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw un(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:zt.data,result:void 0};else if(l)i=await u(l);else{let c=new URL(t.url),f=c.pathname+c.search;throw un(404,{pathname:f})}dt(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(l){return{type:zt.error,result:l}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function C8(e){let{result:t,type:r}=e;if(vA(t)){let l;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(c){return{type:zt.error,error:c}}return r===zt.error?{type:zt.error,error:new zv(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:zt.data,data:l,statusCode:t.status,headers:t.headers}}if(r===zt.error){if(RP(t)){var n;if(t.data instanceof Error){var a;return{type:zt.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new zv(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zt.error,error:t,statusCode:wm(t)?t.status:void 0}}if($8(t)){var o,i;return{type:zt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(RP(t)){var s,u;return{type:zt.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:zt.data,data:t}}function E8(e,t,r,n,a,o){let i=e.headers.get("Location");if(dt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!HS.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=B1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function SP(e,t,r){if(HS.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Li(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function vl(e,t,r,n){let a=e.createURL(hA(t)).toString(),o={signal:r};if(n&&Ca(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=z1(n.formData):o.body=n.formData}return new Request(a,o)}function z1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function _P(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function O8(e,t,r,n,a){let o={},i=null,s,u=!1,l={},c=r&&Dn(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,v=t[p];if(dt(!xs(v),"Cannot handle redirect results in processLoaderData"),Dn(v)){let g=v.error;if(c!==void 0&&(g=c,c=void 0),i=i||{},a)i[p]=g;else{let y=Kl(e,p);i[y.route.id]==null&&(i[y.route.id]=g)}o[p]=void 0,u||(u=!0,s=wm(v.error)?v.error.status:500),v.headers&&(l[p]=v.headers)}else Si(v)?(n.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers))}),c!==void 0&&r&&(i={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:l}}function CP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=O8(t,n,a,s,!1);return o.forEach(c=>{let{key:f,match:p,controller:v}=c,g=i[f];if(dt(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Dn(g)){let y=Kl(e.matches,p==null?void 0:p.route.id);l&&l[y.route.id]||(l=Zt({},l,{[y.route.id]:g.error})),e.fetchers.delete(f)}else if(xs(g))dt(!1,"Unhandled fetcher revalidation redirect");else if(Si(g))dt(!1,"Unhandled fetcher deferred data");else{let y=ti(g.data);e.fetchers.set(f,y)}}),{loaderData:u,errors:l}}function EP(e,t,r,n){let a=Zt({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function OP(e){return e?Dn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kl(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function PP(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function un(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+i):a&&r&&n?u="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new zv(e||500,s,new Error(u),!0)}function Yp(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(xs(a))return{key:n,result:a}}}function hA(e){let t=typeof e=="string"?io(e):e;return Qs(Zt({},t,{hash:""}))}function P8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function R8(e){return typeof e=="object"&&e!=null&&"then"in e}function T8(e){return vA(e.result)&&d8.has(e.result.status)}function Si(e){return e.type===zt.deferred}function Dn(e){return e.type===zt.error}function xs(e){return(e&&e.type)===zt.redirect}function RP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function $8(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function vA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function k8(e){return c8.has(e.toLowerCase())}function Ca(e){return l8.has(e.toLowerCase())}async function j8(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(p==null?void 0:p.route.id)===s);if(!l)continue;let c=n.find(p=>p.route.id===l.route.id),f=c!=null&&!fA(c,l)&&(a&&a[l.route.id])!==void 0;Si(u)&&f&&await qS(u,r,!1).then(p=>{p&&(t[s]=p)})}}async function I8(e,t,r){for(let n=0;n(l==null?void 0:l.route.id)===o)&&Si(s)&&(dt(i,"Expected an AbortController for revalidating fetcher deferred result"),await qS(s,i.signal,!0).then(l=>{l&&(t[a]=l)}))}}async function qS(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zt.error,error:a}}return{type:zt.data,data:e.deferredData.data}}}function KS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cd(e,t){let r=typeof t=="string"?io(t).search:t.search;if(e[e.length-1].route.index&&KS(r||""))return e[e.length-1];let n=uA(e);return n[n.length-1]}function TP(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function Tb(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function A8(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Vc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function M8(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ti(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function F8(e,t){try{let r=e.sessionStorage.getItem(dA);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function N8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(dA,JSON.stringify(r))}catch(n){Gs(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;tD1(e,sA(t)),[t,e])}function gA(e){d.useContext(Wi).static||d.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=d.useContext(so);return e?Z8():B8()}function B8(){Hi()||dt(!1);let e=d.useContext(rp),{basename:t,future:r,navigator:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,r.v7_relativeSplatPath)),s=d.useRef(!1);return gA(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=wm(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$o([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,o,e])}const z8=d.createContext(null);function V8(e){let t=d.useContext(so).outlet;return t&&d.createElement(z8.Provider,{value:e},t)}function QS(){let{matches:e}=d.useContext(so),t=e[e.length-1];return t?t.params:{}}function mA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,n.v7_relativeSplatPath));return d.useMemo(()=>wm(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function U8(e,t){return yA(e,t)}function yA(e,t,r,n){Hi()||dt(!1);let{navigator:a}=d.useContext(Wi),{matches:o}=d.useContext(so),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=rn(),c;if(t){var f;let S=typeof t=="string"?io(t):t;u==="/"||(f=S.pathname)!=null&&f.startsWith(u)||dt(!1),c=S}else c=l;let p=c.pathname||"/",v=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=us(e,{pathname:v}),y=G8(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$o([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$o([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&y?d.createElement(_m.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dr.Pop}},y):y}function W8(){let e=X8(),t=Sm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,o)}const H8=d.createElement(W8,null);class q8 extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(so.Provider,{value:this.props.routeContext},d.createElement(vA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function K8(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(rp);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(so.Provider,{value:t},n)}function G8(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||dt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let v,g=!1,y=null,S=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||H8,u&&(l<0&&p===0?(ez("route-fallback",!1),g=!0,S=null):l===p&&(g=!0,S=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let b;return v?b=y:g?b=S:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,d.createElement(K8,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(q8,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var XS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(XS||{}),yf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yf||{});function bA(e){let t=d.useContext(rp);return t||dt(!1),t}function xA(e){let t=d.useContext(GS);return t||dt(!1),t}function Q8(e){let t=d.useContext(so);return t||dt(!1),t}function wA(e){let t=Q8(),r=t.matches[t.matches.length-1];return r.route.id||dt(!1),r.route.id}function X8(){var e;let t=d.useContext(vA),r=xA(yf.UseRouteError),n=wA(yf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let Y8=0;function J8(e){let{router:t,basename:r}=bA(XS.UseBlocker),n=xA(yf.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:Xs({},u,{pathname:Li(u.pathname,r)||u.pathname}),nextLocation:Xs({},l,{pathname:Li(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return d.useEffect(()=>{let s=String(++Y8);return o(s),()=>t.deleteBlocker(s)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Tl}function Z8(){let{router:e}=bA(XS.UseNavigateStable),t=wA(yf.UseNavigateStable),r=d.useRef(!1);return gA(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Xs({fromRouteId:t},o)))},[e,t])}const $P={};function ez(e,t,r){!t&&!$P[e]&&($P[e]=!0)}function tz(e){let{to:t,replace:r,state:n,relative:a}=e;Hi()||dt(!1);let{future:o,static:i}=d.useContext(Wi),{matches:s}=d.useContext(so),{pathname:u}=rn(),l=lo(),c=wm(t,xm(s,o.v7_relativeSplatPath),u,a==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:a}),[l,f,a,r,n]),null}function rz(e){return V8(e.context)}function zr(e){dt(!1)}function nz(e){let{basename:t="/",children:r=null,location:n,navigationType:a=dr.Pop,navigator:o,static:i=!1,future:s}=e;Hi()&&dt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:o,static:i,future:Xs({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=io(n));let{pathname:c="/",search:f="",hash:p="",state:v=null,key:g="default"}=n,y=d.useMemo(()=>{let S=Li(c,u);return S==null?null:{location:{pathname:S,search:f,hash:p,state:v,key:g},navigationType:a}},[u,c,f,p,v,g,a]);return y==null?null:d.createElement(Wi.Provider,{value:l},d.createElement(_m.Provider,{children:r,value:y}))}function ws(e){let{children:t,location:r}=e;return U8(V1(t),r)}new Promise(()=>{});function V1(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,V1(n.props.children,o));return}n.type!==zr&&dt(!1),!n.props.index||!n.props.children||dt(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=V1(n.props.children,o)),r.push(i)}),r}function az(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;tD1(e,lA(t)),[t,e])}function mA(e){d.useContext(Wi).static||d.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=d.useContext(so);return e?Z8():B8()}function B8(){Hi()||dt(!1);let e=d.useContext(rp),{basename:t,future:r,navigator:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(bm(a,r.v7_relativeSplatPath)),s=d.useRef(!1);return mA(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=xm(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$o([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,o,e])}const z8=d.createContext(null);function V8(e){let t=d.useContext(so).outlet;return t&&d.createElement(z8.Provider,{value:e},t)}function QS(){let{matches:e}=d.useContext(so),t=e[e.length-1];return t?t.params:{}}function yA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(bm(a,n.v7_relativeSplatPath));return d.useMemo(()=>xm(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function U8(e,t){return bA(e,t)}function bA(e,t,r,n){Hi()||dt(!1);let{navigator:a}=d.useContext(Wi),{matches:o}=d.useContext(so),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=rn(),c;if(t){var f;let S=typeof t=="string"?io(t):t;u==="/"||(f=S.pathname)!=null&&f.startsWith(u)||dt(!1),c=S}else c=l;let p=c.pathname||"/",v=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=us(e,{pathname:v}),y=G8(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$o([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$o([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&y?d.createElement(Sm.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dr.Pop}},y):y}function W8(){let e=X8(),t=wm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,o)}const H8=d.createElement(W8,null);class q8 extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(so.Provider,{value:this.props.routeContext},d.createElement(gA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function K8(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(rp);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(so.Provider,{value:t},n)}function G8(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||dt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let v,g=!1,y=null,S=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||H8,u&&(l<0&&p===0?(ez("route-fallback",!1),g=!0,S=null):l===p&&(g=!0,S=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let b;return v?b=y:g?b=S:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,d.createElement(K8,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(q8,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var XS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(XS||{}),yf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yf||{});function xA(e){let t=d.useContext(rp);return t||dt(!1),t}function wA(e){let t=d.useContext(GS);return t||dt(!1),t}function Q8(e){let t=d.useContext(so);return t||dt(!1),t}function SA(e){let t=Q8(),r=t.matches[t.matches.length-1];return r.route.id||dt(!1),r.route.id}function X8(){var e;let t=d.useContext(gA),r=wA(yf.UseRouteError),n=SA(yf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let Y8=0;function J8(e){let{router:t,basename:r}=xA(XS.UseBlocker),n=wA(yf.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:Xs({},u,{pathname:Li(u.pathname,r)||u.pathname}),nextLocation:Xs({},l,{pathname:Li(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return d.useEffect(()=>{let s=String(++Y8);return o(s),()=>t.deleteBlocker(s)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Tl}function Z8(){let{router:e}=xA(XS.UseNavigateStable),t=SA(yf.UseNavigateStable),r=d.useRef(!1);return mA(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Xs({fromRouteId:t},o)))},[e,t])}const $P={};function ez(e,t,r){!t&&!$P[e]&&($P[e]=!0)}function tz(e){let{to:t,replace:r,state:n,relative:a}=e;Hi()||dt(!1);let{future:o,static:i}=d.useContext(Wi),{matches:s}=d.useContext(so),{pathname:u}=rn(),l=lo(),c=xm(t,bm(s,o.v7_relativeSplatPath),u,a==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:a}),[l,f,a,r,n]),null}function rz(e){return V8(e.context)}function zr(e){dt(!1)}function nz(e){let{basename:t="/",children:r=null,location:n,navigationType:a=dr.Pop,navigator:o,static:i=!1,future:s}=e;Hi()&&dt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:o,static:i,future:Xs({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=io(n));let{pathname:c="/",search:f="",hash:p="",state:v=null,key:g="default"}=n,y=d.useMemo(()=>{let S=Li(c,u);return S==null?null:{location:{pathname:S,search:f,hash:p,state:v,key:g},navigationType:a}},[u,c,f,p,v,g,a]);return y==null?null:d.createElement(Wi.Provider,{value:l},d.createElement(Sm.Provider,{children:r,value:y}))}function ws(e){let{children:t,location:r}=e;return U8(V1(t),r)}new Promise(()=>{});function V1(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,V1(n.props.children,o));return}n.type!==zr&&dt(!1),!n.props.index||!n.props.children||dt(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=V1(n.props.children,o)),r.push(i)}),r}function az(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -66,18 +66,18 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function iz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sz(e,t){return e.button===0&&(!t||t==="_self")&&!iz(e)}const lz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],uz="6";try{window.__reactRouterVersion=uz}catch{}function cz(e,t){return v8({basename:t==null?void 0:t.basename,future:bf({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:BB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dz(),routes:e,mapRouteProperties:az,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function dz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bf({},t,{errors:fz(t.errors)})),t}function fz(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new Vv(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const pz=d.createContext({isTransitioning:!1}),hz=d.createContext(new Map),vz="startTransition",kP=Xd[vz],gz="flushSync",jP=iB[gz];function mz(e){kP?kP(e):e()}function Uc(e){jP?jP(e):e()}class yz{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function bz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,s]=d.useState(),[u,l]=d.useState({isTransitioning:!1}),[c,f]=d.useState(),[p,v]=d.useState(),[g,y]=d.useState(),S=d.useRef(new Map),{v7_startTransition:x}=n||{},m=d.useCallback(w=>{x?mz(w):w()},[x]),b=d.useCallback((w,O)=>{let{deletedFetchers:P,unstable_flushSync:k,unstable_viewTransitionOpts:j}=O;P.forEach(F=>S.current.delete(F)),w.fetchers.forEach((F,z)=>{F.data!==void 0&&S.current.set(z,F.data)});let $=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!j||$){k?Uc(()=>o(w)):m(()=>o(w));return}if(k){Uc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let F=r.window.document.startViewTransition(()=>{Uc(()=>o(w))});F.finished.finally(()=>{Uc(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})})}),Uc(()=>v(F));return}p?(c&&c.resolve(),p.skipTransition(),y({state:w,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(s(w),l({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[r.window,p,c,S,m]);d.useLayoutEffect(()=>r.subscribe(b),[r,b]),d.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new yz)},[u]),d.useEffect(()=>{if(c&&i&&r.window){let w=i,O=c.promise,P=r.window.document.startViewTransition(async()=>{m(()=>o(w)),await O});P.finished.finally(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})}),v(P)}},[m,i,c,r.window]),d.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),d.useEffect(()=>{!u.isTransitioning&&g&&(s(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[u.isTransitioning,g]),d.useEffect(()=>{},[]);let h=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:w=>r.navigate(w),push:(w,O,P)=>r.navigate(w,{state:O,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(w,O,P)=>r.navigate(w,{replace:!0,state:O,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[r]),_=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:h,static:!1,basename:_}),[r,h,_]),E=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(rp.Provider,{value:C},d.createElement(GS.Provider,{value:a},d.createElement(hz.Provider,{value:S.current},d.createElement(pz.Provider,{value:u},d.createElement(nz,{basename:_,location:a.location,navigationType:a.historyAction,navigator:h,future:E},a.initialized||r.future.v7_partialHydration?d.createElement(xz,{routes:r.routes,future:r.future,state:a}):t))))),null)}const xz=d.memo(wz);function wz(e){let{routes:t,future:r,state:n}=e;return yA(t,void 0,n,r)}const Sz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=oz(t,lz),{basename:v}=d.useContext(Wi),g,y=!1;if(typeof l=="string"&&_z.test(l)&&(g=l,Sz))try{let b=new URL(window.location.href),h=l.startsWith("//")?new URL(b.protocol+l):new URL(l),_=Li(h.pathname,v);h.origin===b.origin&&_!=null?l=_+h.search+h.hash:y=!0}catch{}let S=L8(l,{relative:a}),x=Cz(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||x(b)}return d.createElement("a",bf({},p,{href:g||S,onClick:y||o?n:m,ref:r,target:u}))});var IP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(IP||(IP={}));var AP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AP||(AP={}));function Cz(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lo(),l=rn(),c=mA(e,{relative:i});return d.useCallback(f=>{if(sz(f,r)){f.preventDefault();let p=n!==void 0?n:Qs(l)===Qs(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var Ez="RaStore",Oz=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},U1=Oz(),Pz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Ez).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?MP(s.newValue):void 0;Object.keys(a).forEach(function(f){a[f]&&a[f].key===l&&(c===null?a[f].callback(void 0):a[f].callback(c??void 0))})}};return{setup:function(){if(U1){var s=go().getItem("".concat(r,".version"));if(s&&s!==e){var u=go();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}go().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){U1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=go().getItem("".concat(r,".").concat(s));return l==null?u:MP(l)},setItem:function(s,u){u===void 0?go().removeItem("".concat(r,".").concat(s)):go().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){go().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=go();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=go();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},MP=function(e){try{return JSON.parse(e)}catch{return e}},Rz=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),Tz=new Rz,go=function(){return U1?window.localStorage:Tz},$z=typeof Al=="object"&&Al&&Al.Object===Object&&Al,SA=$z,kz=SA,jz=typeof self=="object"&&self&&self.Object===Object&&self,Iz=kz||jz||Function("return this")(),Na=Iz,Az=Na,Mz=Az.Symbol,cc=Mz,FP=cc,_A=Object.prototype,Fz=_A.hasOwnProperty,Nz=_A.toString,Wc=FP?FP.toStringTag:void 0;function Lz(e){var t=Fz.call(e,Wc),r=e[Wc];try{e[Wc]=void 0;var n=!0}catch{}var a=Nz.call(e);return n&&(t?e[Wc]=r:delete e[Wc]),a}var Dz=Lz,Bz=Object.prototype,zz=Bz.toString;function Vz(e){return zz.call(e)}var Uz=Vz,NP=cc,Wz=Dz,Hz=Uz,qz="[object Null]",Kz="[object Undefined]",LP=NP?NP.toStringTag:void 0;function Gz(e){return e==null?e===void 0?Kz:qz:LP&&LP in Object(e)?Wz(e):Hz(e)}var dc=Gz;function Qz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var La=Qz,Xz=dc,Yz=La,Jz="[object AsyncFunction]",Zz="[object Function]",e9="[object GeneratorFunction]",t9="[object Proxy]";function r9(e){if(!Yz(e))return!1;var t=Xz(e);return t==Zz||t==e9||t==Jz||t==t9}var YS=r9,n9=Na,a9=n9["__core-js_shared__"],o9=a9,kb=o9,DP=function(){var e=/[^.]+$/.exec(kb&&kb.keys&&kb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i9(e){return!!DP&&DP in e}var s9=i9,l9=Function.prototype,u9=l9.toString;function c9(e){if(e!=null){try{return u9.call(e)}catch{}try{return e+""}catch{}}return""}var CA=c9,d9=YS,f9=s9,p9=La,h9=CA,v9=/[\\^$.*+?()[\]{}|]/g,g9=/^\[object .+?Constructor\]$/,m9=Function.prototype,y9=Object.prototype,b9=m9.toString,x9=y9.hasOwnProperty,w9=RegExp("^"+b9.call(x9).replace(v9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S9(e){if(!p9(e)||f9(e))return!1;var t=d9(e)?w9:g9;return t.test(h9(e))}var _9=S9;function C9(e,t){return e==null?void 0:e[t]}var E9=C9,O9=_9,P9=E9;function R9(e,t){var r=P9(e,t);return O9(r)?r:void 0}var sl=R9,T9=sl,$9=function(){try{var e=T9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),EA=$9,BP=EA;function k9(e,t,r){t=="__proto__"&&BP?BP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var JS=k9;function j9(e,t){return e===t||e!==e&&t!==t}var fc=j9,I9=JS,A9=fc,M9=Object.prototype,F9=M9.hasOwnProperty;function N9(e,t,r){var n=e[t];(!(F9.call(e,t)&&A9(n,r))||r===void 0&&!(t in e))&&I9(e,t,r)}var ZS=N9,L9=Array.isArray,uo=L9;function D9(e){return e!=null&&typeof e=="object"}var Vo=D9,B9=dc,z9=Vo,V9="[object Symbol]";function U9(e){return typeof e=="symbol"||z9(e)&&B9(e)==V9}var Cm=U9,W9=uo,H9=Cm,q9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K9=/^\w*$/;function G9(e,t){if(W9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||H9(e)?!0:K9.test(e)||!q9.test(e)||t!=null&&e in Object(t)}var Q9=G9,X9=sl,Y9=X9(Object,"create"),Em=Y9,zP=Em;function J9(){this.__data__=zP?zP(null):{},this.size=0}var Z9=J9;function e7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var t7=e7,r7=Em,n7="__lodash_hash_undefined__",a7=Object.prototype,o7=a7.hasOwnProperty;function i7(e){var t=this.__data__;if(r7){var r=t[e];return r===n7?void 0:r}return o7.call(t,e)?t[e]:void 0}var s7=i7,l7=Em,u7=Object.prototype,c7=u7.hasOwnProperty;function d7(e){var t=this.__data__;return l7?t[e]!==void 0:c7.call(t,e)}var f7=d7,p7=Em,h7="__lodash_hash_undefined__";function v7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=p7&&t===void 0?h7:t,this}var g7=v7,m7=Z9,y7=t7,b7=s7,x7=f7,w7=g7;function pc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var N7=F7,L7=Om;function D7(e,t){var r=this.__data__,n=L7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var B7=D7,z7=C7,V7=k7,U7=A7,W7=N7,H7=B7;function hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,v=r&dW?new sW:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e<=lH}var c_=uH,cH=dc,dH=c_,fH=Vo,pH="[object Arguments]",hH="[object Array]",vH="[object Boolean]",gH="[object Date]",mH="[object Error]",yH="[object Function]",bH="[object Map]",xH="[object Number]",wH="[object Object]",SH="[object RegExp]",_H="[object Set]",CH="[object String]",EH="[object WeakMap]",OH="[object ArrayBuffer]",PH="[object DataView]",RH="[object Float32Array]",TH="[object Float64Array]",$H="[object Int8Array]",kH="[object Int16Array]",jH="[object Int32Array]",IH="[object Uint8Array]",AH="[object Uint8ClampedArray]",MH="[object Uint16Array]",FH="[object Uint32Array]",Gt={};Gt[RH]=Gt[TH]=Gt[$H]=Gt[kH]=Gt[jH]=Gt[IH]=Gt[AH]=Gt[MH]=Gt[FH]=!0;Gt[pH]=Gt[hH]=Gt[OH]=Gt[vH]=Gt[PH]=Gt[gH]=Gt[mH]=Gt[yH]=Gt[bH]=Gt[xH]=Gt[wH]=Gt[SH]=Gt[_H]=Gt[CH]=Gt[EH]=!1;function NH(e){return fH(e)&&dH(e.length)&&!!Gt[cH(e)]}var LH=NH;function DH(e){return function(t){return e(t)}}var Mm=DH,Hv={exports:{}};Hv.exports;(function(e,t){var r=SA,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Hv,Hv.exports);var d_=Hv.exports,BH=LH,zH=Mm,ZP=d_,e2=ZP&&ZP.isTypedArray,VH=e2?zH(e2):BH,f_=VH,UH=XW,WH=Im,HH=uo,qH=Am,KH=Tm,GH=f_,QH=Object.prototype,XH=QH.hasOwnProperty;function YH(e,t){var r=HH(e),n=!r&&WH(e),a=!r&&!n&&qH(e),o=!r&&!n&&!a&&GH(e),i=r||n||a||o,s=i?UH(e.length,String):[],u=s.length;for(var l in e)(t||XH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||KH(l,u)))&&s.push(l);return s}var DA=YH,JH=Object.prototype;function ZH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||JH;return e===r}var p_=ZH;function eq(e,t){return function(r){return e(t(r))}}var BA=eq,tq=BA,rq=tq(Object.keys,Object),nq=rq,aq=p_,oq=nq,iq=Object.prototype,sq=iq.hasOwnProperty;function lq(e){if(!aq(e))return oq(e);var t=[];for(var r in Object(e))sq.call(e,r)&&r!="constructor"&&t.push(r);return t}var uq=lq,cq=YS,dq=c_;function fq(e){return e!=null&&dq(e.length)&&!cq(e)}var Fm=fq,pq=DA,hq=uq,vq=Fm;function gq(e){return vq(e)?pq(e):hq(e)}var h_=gq,mq=FA,yq=u_,bq=h_;function xq(e){return mq(e,bq,yq)}var zA=xq,t2=zA,wq=1,Sq=Object.prototype,_q=Sq.hasOwnProperty;function Cq(e,t,r,n,a,o){var i=r&wq,s=t2(e),u=s.length,l=t2(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:_q.call(t,p)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var S=i;++f0){if(++t>=qG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var XG=QG,YG=HG,JG=XG,ZG=JG(YG),aM=ZG,eQ=rM,tQ=nM,rQ=aM;function nQ(e,t){return rQ(tQ(e,t,eQ),e+"")}var Lm=nQ,aQ=fc,oQ=Fm,iQ=Tm,sQ=La;function lQ(e,t,r){if(!sQ(r))return!1;var n=typeof t;return(n=="number"?oQ(r)&&iQ(t,r.length):n=="string"&&t in r)?aQ(r[t],e):!1}var oM=lQ,uQ=Lm,cQ=oM;function dQ(e){return uQ(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&cQ(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||E<0||f&&w>=o}function x(){var C=Ab();if(S(C))return m(C);s=setTimeout(x,y(C))}function m(C){return s=void 0,p&&n?v(C):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function h(){return s===void 0?i:m(Ab())}function _(){var C=Ab(),E=S(C);if(n=arguments,a=this,u=C,E){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),v(u)}return s===void 0&&(s=setTimeout(x,t)),i}return _.cancel=b,_.flush=h,_}var _J=SJ;const x_=Mr(_J);var CJ=function(e,t){t===void 0&&(t=250);var r=EJ(e,t),n=r[0],a=r[1],o=rn();d.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},EJ=function(e,t){t===void 0&&(t=250);var r=ya(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=x_(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},OJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return CJ(r,a),t},qi=function(){return d.useContext(hM)},ll=function(){var e=qi();return d.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return qa("".concat(e,"/").concat(r));case"create":return qa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},qa=function(e){return e.replace("//","/")};function A2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var vM=function(e,t){if(A2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. + */function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function iz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sz(e,t){return e.button===0&&(!t||t==="_self")&&!iz(e)}const lz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],uz="6";try{window.__reactRouterVersion=uz}catch{}function cz(e,t){return v8({basename:t==null?void 0:t.basename,future:bf({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:BB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dz(),routes:e,mapRouteProperties:az,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function dz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bf({},t,{errors:fz(t.errors)})),t}function fz(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new zv(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const pz=d.createContext({isTransitioning:!1}),hz=d.createContext(new Map),vz="startTransition",kP=Xd[vz],gz="flushSync",jP=iB[gz];function mz(e){kP?kP(e):e()}function Uc(e){jP?jP(e):e()}class yz{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function bz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,s]=d.useState(),[u,l]=d.useState({isTransitioning:!1}),[c,f]=d.useState(),[p,v]=d.useState(),[g,y]=d.useState(),S=d.useRef(new Map),{v7_startTransition:x}=n||{},m=d.useCallback(w=>{x?mz(w):w()},[x]),b=d.useCallback((w,O)=>{let{deletedFetchers:P,unstable_flushSync:k,unstable_viewTransitionOpts:j}=O;P.forEach(F=>S.current.delete(F)),w.fetchers.forEach((F,z)=>{F.data!==void 0&&S.current.set(z,F.data)});let $=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!j||$){k?Uc(()=>o(w)):m(()=>o(w));return}if(k){Uc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let F=r.window.document.startViewTransition(()=>{Uc(()=>o(w))});F.finished.finally(()=>{Uc(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})})}),Uc(()=>v(F));return}p?(c&&c.resolve(),p.skipTransition(),y({state:w,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(s(w),l({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[r.window,p,c,S,m]);d.useLayoutEffect(()=>r.subscribe(b),[r,b]),d.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new yz)},[u]),d.useEffect(()=>{if(c&&i&&r.window){let w=i,O=c.promise,P=r.window.document.startViewTransition(async()=>{m(()=>o(w)),await O});P.finished.finally(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})}),v(P)}},[m,i,c,r.window]),d.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),d.useEffect(()=>{!u.isTransitioning&&g&&(s(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[u.isTransitioning,g]),d.useEffect(()=>{},[]);let h=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:w=>r.navigate(w),push:(w,O,P)=>r.navigate(w,{state:O,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(w,O,P)=>r.navigate(w,{replace:!0,state:O,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[r]),_=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:h,static:!1,basename:_}),[r,h,_]),E=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(rp.Provider,{value:C},d.createElement(GS.Provider,{value:a},d.createElement(hz.Provider,{value:S.current},d.createElement(pz.Provider,{value:u},d.createElement(nz,{basename:_,location:a.location,navigationType:a.historyAction,navigator:h,future:E},a.initialized||r.future.v7_partialHydration?d.createElement(xz,{routes:r.routes,future:r.future,state:a}):t))))),null)}const xz=d.memo(wz);function wz(e){let{routes:t,future:r,state:n}=e;return bA(t,void 0,n,r)}const Sz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=oz(t,lz),{basename:v}=d.useContext(Wi),g,y=!1;if(typeof l=="string"&&_z.test(l)&&(g=l,Sz))try{let b=new URL(window.location.href),h=l.startsWith("//")?new URL(b.protocol+l):new URL(l),_=Li(h.pathname,v);h.origin===b.origin&&_!=null?l=_+h.search+h.hash:y=!0}catch{}let S=L8(l,{relative:a}),x=Cz(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||x(b)}return d.createElement("a",bf({},p,{href:g||S,onClick:y||o?n:m,ref:r,target:u}))});var IP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(IP||(IP={}));var AP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AP||(AP={}));function Cz(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lo(),l=rn(),c=yA(e,{relative:i});return d.useCallback(f=>{if(sz(f,r)){f.preventDefault();let p=n!==void 0?n:Qs(l)===Qs(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var Ez="RaStore",Oz=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},U1=Oz(),Pz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Ez).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?MP(s.newValue):void 0;Object.keys(a).forEach(function(f){a[f]&&a[f].key===l&&(c===null?a[f].callback(void 0):a[f].callback(c??void 0))})}};return{setup:function(){if(U1){var s=go().getItem("".concat(r,".version"));if(s&&s!==e){var u=go();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}go().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){U1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=go().getItem("".concat(r,".").concat(s));return l==null?u:MP(l)},setItem:function(s,u){u===void 0?go().removeItem("".concat(r,".").concat(s)):go().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){go().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=go();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=go();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},MP=function(e){try{return JSON.parse(e)}catch{return e}},Rz=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),Tz=new Rz,go=function(){return U1?window.localStorage:Tz},$z=typeof Al=="object"&&Al&&Al.Object===Object&&Al,_A=$z,kz=_A,jz=typeof self=="object"&&self&&self.Object===Object&&self,Iz=kz||jz||Function("return this")(),Na=Iz,Az=Na,Mz=Az.Symbol,cc=Mz,FP=cc,CA=Object.prototype,Fz=CA.hasOwnProperty,Nz=CA.toString,Wc=FP?FP.toStringTag:void 0;function Lz(e){var t=Fz.call(e,Wc),r=e[Wc];try{e[Wc]=void 0;var n=!0}catch{}var a=Nz.call(e);return n&&(t?e[Wc]=r:delete e[Wc]),a}var Dz=Lz,Bz=Object.prototype,zz=Bz.toString;function Vz(e){return zz.call(e)}var Uz=Vz,NP=cc,Wz=Dz,Hz=Uz,qz="[object Null]",Kz="[object Undefined]",LP=NP?NP.toStringTag:void 0;function Gz(e){return e==null?e===void 0?Kz:qz:LP&&LP in Object(e)?Wz(e):Hz(e)}var dc=Gz;function Qz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var La=Qz,Xz=dc,Yz=La,Jz="[object AsyncFunction]",Zz="[object Function]",e9="[object GeneratorFunction]",t9="[object Proxy]";function r9(e){if(!Yz(e))return!1;var t=Xz(e);return t==Zz||t==e9||t==Jz||t==t9}var YS=r9,n9=Na,a9=n9["__core-js_shared__"],o9=a9,$b=o9,DP=function(){var e=/[^.]+$/.exec($b&&$b.keys&&$b.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i9(e){return!!DP&&DP in e}var s9=i9,l9=Function.prototype,u9=l9.toString;function c9(e){if(e!=null){try{return u9.call(e)}catch{}try{return e+""}catch{}}return""}var EA=c9,d9=YS,f9=s9,p9=La,h9=EA,v9=/[\\^$.*+?()[\]{}|]/g,g9=/^\[object .+?Constructor\]$/,m9=Function.prototype,y9=Object.prototype,b9=m9.toString,x9=y9.hasOwnProperty,w9=RegExp("^"+b9.call(x9).replace(v9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S9(e){if(!p9(e)||f9(e))return!1;var t=d9(e)?w9:g9;return t.test(h9(e))}var _9=S9;function C9(e,t){return e==null?void 0:e[t]}var E9=C9,O9=_9,P9=E9;function R9(e,t){var r=P9(e,t);return O9(r)?r:void 0}var sl=R9,T9=sl,$9=function(){try{var e=T9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),OA=$9,BP=OA;function k9(e,t,r){t=="__proto__"&&BP?BP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var JS=k9;function j9(e,t){return e===t||e!==e&&t!==t}var fc=j9,I9=JS,A9=fc,M9=Object.prototype,F9=M9.hasOwnProperty;function N9(e,t,r){var n=e[t];(!(F9.call(e,t)&&A9(n,r))||r===void 0&&!(t in e))&&I9(e,t,r)}var ZS=N9,L9=Array.isArray,uo=L9;function D9(e){return e!=null&&typeof e=="object"}var Vo=D9,B9=dc,z9=Vo,V9="[object Symbol]";function U9(e){return typeof e=="symbol"||z9(e)&&B9(e)==V9}var _m=U9,W9=uo,H9=_m,q9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K9=/^\w*$/;function G9(e,t){if(W9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||H9(e)?!0:K9.test(e)||!q9.test(e)||t!=null&&e in Object(t)}var Q9=G9,X9=sl,Y9=X9(Object,"create"),Cm=Y9,zP=Cm;function J9(){this.__data__=zP?zP(null):{},this.size=0}var Z9=J9;function e7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var t7=e7,r7=Cm,n7="__lodash_hash_undefined__",a7=Object.prototype,o7=a7.hasOwnProperty;function i7(e){var t=this.__data__;if(r7){var r=t[e];return r===n7?void 0:r}return o7.call(t,e)?t[e]:void 0}var s7=i7,l7=Cm,u7=Object.prototype,c7=u7.hasOwnProperty;function d7(e){var t=this.__data__;return l7?t[e]!==void 0:c7.call(t,e)}var f7=d7,p7=Cm,h7="__lodash_hash_undefined__";function v7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=p7&&t===void 0?h7:t,this}var g7=v7,m7=Z9,y7=t7,b7=s7,x7=f7,w7=g7;function pc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var N7=F7,L7=Em;function D7(e,t){var r=this.__data__,n=L7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var B7=D7,z7=C7,V7=k7,U7=A7,W7=N7,H7=B7;function hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,v=r&dW?new sW:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e<=lH}var c_=uH,cH=dc,dH=c_,fH=Vo,pH="[object Arguments]",hH="[object Array]",vH="[object Boolean]",gH="[object Date]",mH="[object Error]",yH="[object Function]",bH="[object Map]",xH="[object Number]",wH="[object Object]",SH="[object RegExp]",_H="[object Set]",CH="[object String]",EH="[object WeakMap]",OH="[object ArrayBuffer]",PH="[object DataView]",RH="[object Float32Array]",TH="[object Float64Array]",$H="[object Int8Array]",kH="[object Int16Array]",jH="[object Int32Array]",IH="[object Uint8Array]",AH="[object Uint8ClampedArray]",MH="[object Uint16Array]",FH="[object Uint32Array]",Gt={};Gt[RH]=Gt[TH]=Gt[$H]=Gt[kH]=Gt[jH]=Gt[IH]=Gt[AH]=Gt[MH]=Gt[FH]=!0;Gt[pH]=Gt[hH]=Gt[OH]=Gt[vH]=Gt[PH]=Gt[gH]=Gt[mH]=Gt[yH]=Gt[bH]=Gt[xH]=Gt[wH]=Gt[SH]=Gt[_H]=Gt[CH]=Gt[EH]=!1;function NH(e){return fH(e)&&dH(e.length)&&!!Gt[cH(e)]}var LH=NH;function DH(e){return function(t){return e(t)}}var Am=DH,Wv={exports:{}};Wv.exports;(function(e,t){var r=_A,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Wv,Wv.exports);var d_=Wv.exports,BH=LH,zH=Am,ZP=d_,e2=ZP&&ZP.isTypedArray,VH=e2?zH(e2):BH,f_=VH,UH=XW,WH=jm,HH=uo,qH=Im,KH=Rm,GH=f_,QH=Object.prototype,XH=QH.hasOwnProperty;function YH(e,t){var r=HH(e),n=!r&&WH(e),a=!r&&!n&&qH(e),o=!r&&!n&&!a&&GH(e),i=r||n||a||o,s=i?UH(e.length,String):[],u=s.length;for(var l in e)(t||XH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||KH(l,u)))&&s.push(l);return s}var BA=YH,JH=Object.prototype;function ZH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||JH;return e===r}var p_=ZH;function eq(e,t){return function(r){return e(t(r))}}var zA=eq,tq=zA,rq=tq(Object.keys,Object),nq=rq,aq=p_,oq=nq,iq=Object.prototype,sq=iq.hasOwnProperty;function lq(e){if(!aq(e))return oq(e);var t=[];for(var r in Object(e))sq.call(e,r)&&r!="constructor"&&t.push(r);return t}var uq=lq,cq=YS,dq=c_;function fq(e){return e!=null&&dq(e.length)&&!cq(e)}var Mm=fq,pq=BA,hq=uq,vq=Mm;function gq(e){return vq(e)?pq(e):hq(e)}var h_=gq,mq=NA,yq=u_,bq=h_;function xq(e){return mq(e,bq,yq)}var VA=xq,t2=VA,wq=1,Sq=Object.prototype,_q=Sq.hasOwnProperty;function Cq(e,t,r,n,a,o){var i=r&wq,s=t2(e),u=s.length,l=t2(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:_q.call(t,p)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var S=i;++f0){if(++t>=qG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var XG=QG,YG=HG,JG=XG,ZG=JG(YG),oM=ZG,eQ=nM,tQ=aM,rQ=oM;function nQ(e,t){return rQ(tQ(e,t,eQ),e+"")}var Nm=nQ,aQ=fc,oQ=Mm,iQ=Rm,sQ=La;function lQ(e,t,r){if(!sQ(r))return!1;var n=typeof t;return(n=="number"?oQ(r)&&iQ(t,r.length):n=="string"&&t in r)?aQ(r[t],e):!1}var iM=lQ,uQ=Nm,cQ=iM;function dQ(e){return uQ(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&cQ(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||E<0||f&&w>=o}function x(){var C=Ib();if(S(C))return m(C);s=setTimeout(x,y(C))}function m(C){return s=void 0,p&&n?v(C):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function h(){return s===void 0?i:m(Ib())}function _(){var C=Ib(),E=S(C);if(n=arguments,a=this,u=C,E){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),v(u)}return s===void 0&&(s=setTimeout(x,t)),i}return _.cancel=b,_.flush=h,_}var _J=SJ;const x_=Mr(_J);var CJ=function(e,t){t===void 0&&(t=250);var r=EJ(e,t),n=r[0],a=r[1],o=rn();d.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},EJ=function(e,t){t===void 0&&(t=250);var r=ya(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=x_(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},OJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return CJ(r,a),t},qi=function(){return d.useContext(vM)},ll=function(){var e=qi();return d.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return qa("".concat(e,"/").concat(r));case"create":return qa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},qa=function(e){return e.replace("//","/")};function A2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var gM=function(e,t){if(A2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. Be sure to pass the props from the parent. Example: const My`).concat(e,` = props => ( <`).concat(e," {...props}> ); -The missing props are: `).concat(a.join(", ")))},Gv=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),PM="%[a-f0-9]{2}",D2=new RegExp("("+PM+")|([^%]+?)","gi"),B2=new RegExp("("+PM+")+","gi");function J1(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],J1(r),J1(n))}function tZ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(D2)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},oZ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;om==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return b=>(h,_)=>{const C=h.length;return _===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[",C,"]"].join("")]:[...h,[c(b,m),"[",c(C,m),"]=",c(_,m)].join("")]};case"bracket":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[]"].join("")]:[...h,[c(b,m),"[]=",c(_,m)].join("")];case"colon-list-separator":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),":list="].join("")]:[...h,[c(b,m),":list=",c(_,m)].join("")];case"comma":case"separator":case"bracket-separator":{const b=m.arrayFormat==="bracket-separator"?"[]=":"=";return h=>(_,C)=>C===void 0||m.skipNull&&C===null||m.skipEmptyString&&C===""?_:(C=C===null?"":C,_.length===0?[[c(h,m),b,c(C,m)].join("")]:[[_,c(C,m)].join(m.arrayFormatSeparator)])}default:return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,c(b,m)]:[...h,[c(b,m),"=",c(_,m)].join("")]}}function u(m){let b;switch(m.arrayFormat){case"index":return(h,_,C)=>{if(b=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!b){C[h]=_;return}C[h]===void 0&&(C[h]={}),C[h][b[1]]=_};case"bracket":return(h,_,C)=>{if(b=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"colon-list-separator":return(h,_,C)=>{if(b=/(:list)$/.exec(h),h=h.replace(/:list$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"comma":case"separator":return(h,_,C)=>{const E=typeof _=="string"&&_.includes(m.arrayFormatSeparator),w=typeof _=="string"&&!E&&f(_,m).includes(m.arrayFormatSeparator);_=w?f(_,m):_;const O=E||w?_.split(m.arrayFormatSeparator).map(P=>f(P,m)):_===null?_:f(_,m);C[h]=O};case"bracket-separator":return(h,_,C)=>{const E=/(\[\])$/.test(h);if(h=h.replace(/\[\]$/,""),!E){C[h]=_&&f(_,m);return}const w=_===null?[]:_.split(m.arrayFormatSeparator).map(O=>f(O,m));if(C[h]===void 0){C[h]=w;return}C[h]=[].concat(C[h],w)};default:return(h,_,C)=>{if(C[h]===void 0){C[h]=_;return}C[h]=[].concat(C[h],_)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,b){return b.encode?b.strict?t(m):encodeURIComponent(m):m}function f(m,b){return b.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((b,h)=>Number(b)-Number(h)).map(b=>m[b]):m}function v(m){const b=m.indexOf("#");return b!==-1&&(m=m.slice(0,b)),m}function g(m){let b="";const h=m.indexOf("#");return h!==-1&&(b=m.slice(h)),b}function y(m){m=v(m);const b=m.indexOf("?");return b===-1?"":m.slice(b+1)}function S(m,b){return b.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):b.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const h=u(b),_=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return _;for(const C of m.split("&")){if(C==="")continue;let[E,w]=n(b.decode?C.replace(/\+/g," "):C,"=");w=w===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?w:f(w,b),h(f(E,b),w,_)}for(const C of Object.keys(_)){const E=_[C];if(typeof E=="object"&&E!==null)for(const w of Object.keys(E))E[w]=S(E[w],b);else _[C]=S(E,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((C,E)=>{const w=_[E];return w&&typeof w=="object"&&!Array.isArray(w)?C[E]=p(w):C[E]=w,C},Object.create(null))}e.extract=y,e.parse=x,e.stringify=(m,b)=>{if(!m)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const h=w=>b.skipNull&&o(m[w])||b.skipEmptyString&&m[w]==="",_=s(b),C={};for(const w of Object.keys(m))h(w)||(C[w]=m[w]);const E=Object.keys(C);return b.sort!==!1&&E.sort(b.sort),E.map(w=>{const O=m[w];return O===void 0?"":O===null?c(w,b):Array.isArray(O)?O.length===0&&b.arrayFormat==="bracket-separator"?c(w,b)+"[]":O.reduce(_(w),[]).join("&"):c(w,b)+"="+c(O,b)}).filter(w=>w.length>0).join("&")},e.parseUrl=(m,b)=>{b=Object.assign({decode:!0},b);const[h,_]=n(m,"#");return Object.assign({url:h.split("?")[0]||"",query:x(y(m),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:f(_,b)}:{})},e.stringifyUrl=(m,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const h=v(m.url).split("?")[0]||"",_=e.extract(m.url),C=e.parse(_,{sort:!1}),E=Object.assign(C,m.query);let w=e.stringify(E,b);w&&(w=`?${w}`);let O=g(m.url);return m.fragmentIdentifier&&(O=`#${b[i]?c(m.fragmentIdentifier,b):m.fragmentIdentifier}`),`${h}${w}${O}`},e.pick=(m,b,h)=>{h=Object.assign({parseFragmentIdentifier:!0,[i]:!1},h);const{url:_,query:C,fragmentIdentifier:E}=e.parseUrl(m,h);return e.stringifyUrl({url:_,query:a(C,b),fragmentIdentifier:E},h)},e.exclude=(m,b,h)=>{const _=Array.isArray(b)?C=>!b.includes(C):(C,E)=>!b(C,E);return e.pick(m,_,h)}})(ko);var z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message};const $M=fZ;var hZ=["getList","getMany","getManyReference"],Ki=function(){var e=d.useContext(OM)||w_,t=$M(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=ke.useRef(e.isMutating()>0),a=ke.useState(r.current||n.current),o=a[0],i=a[1];return ke.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(hr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(hr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},Uo=function(){var e=Fa();return d.useCallback(function(){e.invalidateQueries()},[e])},Z1=globalThis&&globalThis.__assign||function(){return Z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?jM(s,t-1,r,n,a):CZ(a,s):n||(a[a.length]=s)}return a}var S_=jM;function OZ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var IM=LZ;function DZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=ZZ){var l=t?null:YZ(e);if(l)return JZ(l);i=!1,a=XZ,u=new KZ}else u=t?[]:s;e:for(;++n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?$(F):F},{updatedAt:j}),a.setQueriesData({queryKey:[w,"getManyReference"]},function(F){return F&&F.data?{data:$(F.data),total:F.total}:F},{updatedAt:j})},h=bm(Bt(Bt({mutationFn:function(E){var w=E===void 0?{}:E,O=w.resource,P=O===void 0?e:O,k=w.id,j=k===void 0?v.current.id:k,$=w.data,F=$===void 0?v.current.data:$,z=w.meta,M=z===void 0?v.current.meta:z,W=w.previousData,B=W===void 0?v.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(j==null)throw new Error("useUpdate mutation requires a non-empty id");if(!F)throw new Error("useUpdate mutation requires a non-empty data object");return y.current(P,{id:j,data:F,previousData:B,meta:M}).then(function(U){var q=U.data;return q})}},f),{onMutate:function(E){return q2(void 0,void 0,void 0,function(){var w;return K2(this,function(O){switch(O.label){case 0:return f.onMutate?[4,f.onMutate(E)]:[3,2];case 1:return w=O.sent()||{},[2,Bt({snapshot:g.current},w)];case 2:return[2,{snapshot:g.current}]}})})},onError:function(E,w,O){if(w===void 0&&(w={}),(p.current==="optimistic"||p.current==="undoable")&&O.snapshot.forEach(function(P){var k=P[0],j=P[1];a.setQueryData(k,j)}),S.current)return S.current(E,w,O);if(f.onError)return f.onError(E,w,O)},onSuccess:function(E,w,O){if(w===void 0&&(w={}),p.current==="pessimistic"){var P=w.resource,k=P===void 0?e:P,j=w.id,$=j===void 0?o:j;b({resource:k,id:$,data:E}),f.onSuccess&&!m.current&&f.onSuccess(E,w,O)}},onSettled:function(E,w,O,P){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function(k){var j=k[0];a.invalidateQueries({queryKey:j})}),x.current)return x.current(E,w,O,P);if(f.onSettled)return f.onSettled(E,w,O,P)}})),_=function(E,w,O){return E===void 0&&(E=e),w===void 0&&(w={}),O===void 0&&(O={}),q2(void 0,void 0,void 0,function(){var P,k,j,$,F,z,M,W,B,U,q,ie,oe,Ee,pe;return K2(this,function(Te){switch(Te.label){case 0:return P=O.mutationMode,k=O.returnPromise,j=k===void 0?f.returnPromise:k,$=O.onError,F=O.onSettled,z=O.onSuccess,M=G2(O,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?y.current=c(n.update.bind(n)):y.current=n.update,m.current=!!z,S.current=$,x.current=F,v.current=t,P&&(p.current=P),j&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?j?[2,h.mutateAsync(Bt({resource:E},w),Bt({onSuccess:z},M))]:[2,h.mutate(Bt({resource:E},w),Bt({onSuccess:z},M))]:(W=w.id,B=W===void 0?o:W,U=w.data,q=U===void 0?i:U,ie=w.meta,oe=ie===void 0?s:ie,Ee=a.getQueryData([E,"getOne",{id:String(B),meta:oe}]),pe=[[E,"getOne",{id:String(B),meta:oe}],[E,"getList"],[E,"getInfiniteList"],[E,"getMany"],[E,"getManyReference"]],g.current=pe.reduce(function(ye,be){return ye.concat(a.getQueriesData({queryKey:be}))},[]),[4,Promise.all(g.current.map(function(ye){var be=ye[0];return a.cancelQueries({queryKey:be})}))]);case 1:return Te.sent(),b({resource:E,id:B,data:q}),setTimeout(function(){z?z(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current}):f.onSuccess&&!m.current&&f.onSuccess(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current})},0),p.current==="optimistic"?[2,h.mutate(Bt({resource:E},w))]:(xf.once("end",function(ye){var be=ye.isUndo;be?g.current.forEach(function(we){var ve=we[0],De=we[1];a.setQueryData(ve,De)}):h.mutate(Bt({resource:E},w))}),[2])}})})},C=d.useMemo(function(){return Bt({isLoading:h.isPending},h)},[h]);return[Mt(_),C]},nn=globalThis&&globalThis.__assign||function(){return nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(P):P},{updatedAt:w}),a.setQueriesData({queryKey:[_,"getManyReference"]},function(P){if(!P||!P.data)return P;var k=O(P.data),j=k.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?w(O):O},{updatedAt:E}),a.setQueriesData({queryKey:[h,"getManyReference"]},function(O){if(!O||!O.data)return O;var P=w(O.data),k=P.length=0?i[l].apply(i,Hc(Hc([],f,!1),[c],!1)):o.apply(void 0,f)};return i.length>0?i[l].apply(i,Hc(Hc([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Qv=globalThis&&globalThis.__assign||function(){return Qv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;ie||y(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M instanceof Error||typeof M=="object"&&M!==null&&M.hasOwnProperty("message")?M.message:void 0}})}},_),{returnPromise:!0,getMutateWithMiddlewares:w})),k=P[0],j=P[1].isPending,$=d.useCallback(function(M,W){W===void 0&&(W={});var B=W.transform,U=W.meta,q=aR(W,["transform","meta"]);return Promise.resolve(B?B(M):o?o(M):M).then(function(ie){return rR(void 0,void 0,void 0,function(){var oe,Ee;return nR(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,2,,3]),[4,k(u,{data:ie,meta:U??h},q)];case 1:return pe.sent(),[3,3];case 2:return oe=pe.sent(),(oe instanceof ZJ||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((Ee=oe.body)===null||Ee===void 0?void 0:Ee.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[k,h,u,o]),F=_c(),z=g("ra.page.create",{name:F(u,1)});return{isFetching:!1,isLoading:!1,isPending:j,saving:j,defaultTitle:z,save:$,resource:u,record:x,redirect:p,registerMutationMiddleware:E,unregisterMutationMiddleware:O}},tte=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ko.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},rte=function(e,t){return t?"edit":e?"show":"list"},C_=d.createContext(void 0);C_.displayName="RecordContext";var bc=function(e){var t=e.children,r=e.value;return d.createElement(C_.Provider,{value:r},t)},E_=d.createContext(null);E_.displayName="CreateContext";var Xv=globalThis&&globalThis.__assign||function(){return Xv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!Ae||a!=="pessimistic")&&y(typeof ve=="string"?ve:ve.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ve=="string"?ve:ve instanceof Error||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("message")?ve.message:void 0}})}},O),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:j})),ye=Te[0],be=Te[1].isPending,we=d.useCallback(function(ve,De){var Me=De===void 0?{}:De,Qe=Me.onSuccess,Ne=Me.onError,Ae=Me.transform,He=Me.meta;return Promise.resolve(Ae?Ae(ve,{previousData:pe.previousData}):f?f(ve,{previousData:pe.previousData}):ve).then(function(ht){return oR(void 0,void 0,void 0,function(){var ut,V;return iR(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,ye(p,{id:b,data:ht,meta:He??C},{onError:Ne,onSuccess:Qe})];case 1:return K.sent(),[3,3];case 2:return ut=K.sent(),((V=ut.body)===null||V===void 0?void 0:V.errors)!=null?[2,ut.body.errors]:[3,3];case 3:return[2]}})})})},[b,C,p,f,ye,pe.previousData]);return{defaultTitle:Ee,error:M,isFetching:B,isLoading:W,isPending:U,mutationMode:a,record:z,redirect:c,refetch:q,registerMutationMiddleware:k,resource:p,save:we,saving:be,unregisterMutationMiddleware:$}},lte="list",_r=function(e){var t=d.useContext(C_);return e&&e.record||t},zM=function(e){var t=e.value,r=e.children;return t?d.createElement(bc,{value:t},r):r},O_=d.createContext(null);O_.displayName="EditContext";var ute=function(e){var t=e.children,r=e.value;return d.createElement(O_.Provider,{value:r},d.createElement(LM,{value:DM(r)},d.createElement(bc,{value:r&&r.record},t)))},cte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":UM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),bte=yte,xte=typeof window>"u"?Al:window;function wte(e,t){if(e instanceof xte[t])return!0;switch(typeof e>"u"?"undefined":UM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Ub,lR;function Ste(){return lR||(lR=1,Ub=function(t,r,n){var a=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),Ub}var _te=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(o)),a.push(f.join(this._options.rowDelimiter)),n=f}}catch(v){s=!0,u=v}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(S){var x=a._headers.indexOf(S);return x===-1&&(a._headers.push(S),x=a._headers.indexOf(S)),x};i=function(S){var x=[],m=function(F){return x.push(F.map(function(z){return z??""}))},b=function(){return new Array(a._headers.length).fill(null)},h={},_=b(),C=!0,E=!1,w=void 0;try{for(var O=S[Symbol.iterator](),P;!(C=(P=O.next()).done);C=!0){var k=P.value,j=s(k.item);if(_[j]!=null&&(m(_),_=b()),h[j]=h[j]||0,a._options.fillTopRow&&h[j]0&&m(_),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=a._handler.check(v,a._options.mainPathItem,v,r);i(g)}}catch(y){l=!0,c=y}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),uR(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var v=[f.item,p];a.push(v.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),uR(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Pte=Ote,Rte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Tte=Rte,dR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fR=Pte,pR=Tte,$te=VM,kte=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:$te,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":dR(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":dR(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new pR(new fR(e));var p=Object.assign({},e,r),v=new fR(p);return t?new Promise(function(g,y){v.parse(t,function(S,x){if(n)return n(S,x);if(S)return y(S);if(y)return g(x)})}):new pR};const jte=Mr(kte);var Ite=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},Ate=function(e,t,r,n){return jte(e,function(a,o){return Ite(o,n)})},Mte=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},Fte=function(e){return function(t,r,n){return e.getMany(n,{ids:Mte(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},gl=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||g(function(m){if(!Array.isArray(m))return gl([],m,!0);var b=m.indexOf(x);return b>-1?gl(gl([],m.slice(0,b),!0),m.slice(b+1),!0):gl(gl([],m,!0),[x],!1)})},clearSelection:function(){y()}}},[g,y]);return[v,S]},Wb=[];function Bn(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useRef(!1);d.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=d.useCallback(function(i){if(a.current)return n(i)},[a,n]);return[r,o]}function P_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Bn(!1),n=r[0],a=r[1];return d.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function Nte(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Po=globalThis&&globalThis.__assign||function(){return Po=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&h(O)},[v.search]);var P=d.useCallback(function(q){C.current&&(_.current?_.current=F2(_.current,q):(_.current=F2(O,q),setTimeout(function(){_.current&&(a&&!p?x(_.current):a&&p?h(_.current):g({search:"?".concat(ko.stringify(Po(Po({},_.current),{filter:JSON.stringify(_.current.filter),displayedFilters:JSON.stringify(_.current.displayedFilters)})))},{state:{_scrollToTop:q.type===X1}}),_.current=void 0)},0)))},hR(hR([],E,!0),[g],!1)),k=d.useCallback(function(q){return P({type:yM,payload:q})},[P]),j=d.useCallback(function(q){return P({type:X1,payload:q})},[P]),$=d.useCallback(function(q){return P({type:bM,payload:q})},[P]),F=O.filter||mR,z=O.displayedFilters||mR,M=x_(function(q,ie){P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},r),W=d.useCallback(function(q,ie,oe){return ie===void 0&&(ie=void 0),oe===void 0&&(oe=!1),oe?M(q,ie):P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},[P]),B=d.useCallback(function(q){P({type:wM,payload:q})},[P]),U=d.useCallback(function(q,ie){P({type:xM,payload:{filterName:q,defaultValue:ie}})},[P]);return[Po(Po({filterValues:F,requestSignature:E},O),{displayedFilters:z}),{changeParams:P,setPage:j,setPerPage:$,setSort:k,setFilters:W,hideFilter:B,showFilter:U}]},vR=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Dte=function(e){var t=e.search,r=ko.parse(t);return vR(r,"filter"),vR(r,"displayedFilters"),r},Bte=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},zte=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:Bte(r)?Po({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Po(Po({},i),{page:gR(i.page,1),perPage:gR(i.perPage,10)})},gR=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},mR={},Vte={field:"id",order:Fs},yR={},Bm=d.createContext(null);Bm.displayName="ListContext";var WM=d.createContext(void 0),Ute=function(e){return d.useMemo(function(){return Dm(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};WM.displayName="ListFilterContext";var HM=d.createContext(void 0),Wte=function(e){return d.useMemo(function(){return Dm(e,["sort","setSort","resource"])},[e.sort,e.setSort])};HM.displayName="ListSortContext";var R_=d.createContext(void 0);R_.displayName="ListPaginationContext";var Hte=function(e){return d.useMemo(function(){return Dm(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},qM=function(e){var t=e.value,r=e.children;return d.createElement(Bm.Provider,{value:t},d.createElement(WM.Provider,{value:Ute(t)},d.createElement(HM.Provider,{value:Wte(t)},d.createElement(R_.Provider,{value:Hte(t)},r))))},Ns=globalThis&&globalThis.__assign||function(){return Ns=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(j==null||(j==null?void 0:j.length)===0)){E.setPage(1);return}if(F!=null){var pe=Math.ceil(F/C.perPage)||1;!B&&C.page>pe&&E.setPage(pe)}},[B,C.page,C.perPage,j,E,F]);var ie=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),oe=_c(),Ee=b("ra.page.list",{name:oe(S,2)});return{sort:ie,data:j,meta:z,defaultTitle:Ee,displayedFilters:C.displayedFilters,error:M,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:E.hideFilter,isFetching:B,isLoading:W,isPending:U,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:C.page,perPage:C.perPage,refetch:q,resource:S,selectedIds:O,setFilters:E.setFilters,setPage:E.setPage,setPerPage:E.setPerPage,setSort:E.setSort,showFilter:E.showFilter,total:F,hasNextPage:$?$.hasNextPage:F!=null?C.page*C.perPage1}},Gte={field:"id",order:Fs},Qte=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],wf=function(e){return Object.keys(e).filter(function(t){return!Qte.includes(t)}).reduce(function(t,r){var n;return Ns(Ns({},t),(n={},n[r]=e[r],n))},{})},Xte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Zp(Zp([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Zp(Zp([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},Zte=function(e,t){var r=ya("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},Gl=globalThis&&globalThis.__assign||function(){return Gl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(de,oe.field)?oe.order==="ASC"?1:-1:qt(se,oe.field)1,hideFilter:He,isFetching:_,isLoading:w,isPending:k,onSelect:be.select,onToggleItem:be.toggle,onUnselectItems:be.clearSelection,page:W,perPage:U,resource:"",refetch:ere,selectedIds:ye,setFilters:ut,setPage:B,setPerPage:q,setSort:pe,showFilter:ht,total:F==null?void 0:F.total}},rre={},ga=function(){var e=d.useContext(Bm);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},nre=Lm,are=fc,ore=oM,ire=yc,KM=Object.prototype,sre=KM.hasOwnProperty,lre=nre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&ore(t[0],t[1],a)&&(n=1);++r1,setSort:F,showFilter:ye,total:Me}},pre={},ip=e=>e.type==="checkbox",Ql=e=>e instanceof Date,dn=e=>e==null;const YM=e=>typeof e=="object";var Sr=e=>!dn(e)&&!Array.isArray(e)&&YM(e)&&!Ql(e),JM=e=>Sr(e)&&e.target?ip(e.target)?e.target.checked:e.target.value:e,hre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ZM=(e,t)=>e.has(hre(t)),vre=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},$_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!($_&&(e instanceof Blob||e instanceof FileList))&&(r||Sr(e)))if(t=r?[]:{},!r&&!vre(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=xn(e[n]));else return e;return t}var zm=e=>Array.isArray(e)?e.filter(Boolean):[],lr=e=>e===void 0,Le=(e,t,r)=>{if(!t||!Sr(e))return r;const n=zm(t.split(/[,[\].]+?/)).reduce((a,o)=>dn(a)?a:a[o],e);return lr(n)||n===e?lr(e[t])?r:e[t]:n},ta=e=>typeof e=="boolean",k_=e=>/^\w*$/.test(e),e3=e=>zm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ut=(e,t,r)=>{let n=-1;const a=k_(t)?[t]:e3(t),o=a.length,i=o-1;for(;++nke.useContext(t3),r3=e=>{const{children:t,...r}=e;return ke.createElement(t3.Provider,{value:r},t)};var n3=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Ra.all&&(t._proxyFormState[i]=!n||Ra.all),r&&(r[i]=!0),e[i]}});return a},_n=e=>Sr(e)&&!Object.keys(e).length,a3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return _n(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Ra.all))},Td=e=>Array.isArray(e)?e:[e],o3=(e,t,r)=>!e||!t||e===t||Td(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function j_(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Vm(e){const t=xc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=ke.useState(r._formState),u=ke.useRef(!0),l=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ke.useRef(a);return c.current=a,j_({disabled:n,next:f=>u.current&&o3(c.current,f.name,o)&&a3(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),ke.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),n3(i,r,l.current,!1)}var Ja=e=>typeof e=="string",i3=(e,t,r,n,a)=>Ja(e)?(n&&t.watch.add(e),Le(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Le(r,o))):(n&&(t.watchAll=!0),r);function gre(e){const t=xc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=ke.useRef(n);s.current=n,j_({disabled:o,subject:r._subjects.values,next:c=>{o3(s.current,c.name,i)&&l(xn(i3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),u}function mre(e){const t=xc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=ZM(a._names.array,r),s=gre({control:a,name:r,defaultValue:Le(a._formValues,r,Le(a._defaultValues,r,e.defaultValue)),exact:!0}),u=Vm({control:a,name:r,exact:!0}),l=ke.useRef(a.register(r,{...e.rules,value:s,...ta(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const c=a._options.shouldUnregister||o,f=(p,v)=>{const g=Le(a._fields,p);g&&g._f&&(g._f.mount=v)};if(f(r,!0),c){const p=xn(Le(a._options.defaultValues,r));Ut(a._defaultValues,r,p),lr(Le(a._formValues,r))&&Ut(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):f(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Le(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Le(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ta(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:ke.useCallback(c=>l.current.onChange({target:{value:JM(c),name:r},type:Yv.CHANGE}),[r]),onBlur:ke.useCallback(()=>l.current.onBlur({target:{value:Le(a._formValues,r),name:r},type:Yv.BLUR}),[r,a]),ref:ke.useCallback(c=>{const f=Le(a._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})},[a._fields,r])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Le(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Le(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Le(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Le(u.validatingFields,r)},error:{enumerable:!0,get:()=>Le(u.errors,r)}})}}var yre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},xR=e=>({isOnSubmit:!e||e===Ra.onSubmit,isOnBlur:e===Ra.onBlur,isOnChange:e===Ra.onChange,isOnAll:e===Ra.all,isOnTouch:e===Ra.onTouched}),wR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const $d=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Le(e,a);if(o){const{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if($d(s,t))break}else if(Sr(s)&&$d(s,t))break}}};var bre=(e,t,r)=>{const n=Td(Le(e,r));return Ut(n,"root",t[r]),Ut(e,r,n),e},I_=e=>e.type==="file",Ro=e=>typeof e=="function",Jv=e=>{if(!$_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Bh=e=>Ja(e),A_=e=>e.type==="radio",Zv=e=>e instanceof RegExp;const SR={value:!1,isValid:!1},_R={value:!0,isValid:!0};var s3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!lr(e[0].attributes.value)?lr(e[0].value)||e[0].value===""?_R:{value:e[0].value,isValid:!0}:_R:SR}return SR};const CR={isValid:!1,value:null};var l3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,CR):CR;function ER(e,t,r="validate"){if(Bh(e)||Array.isArray(e)&&e.every(Bh)||ta(e)&&!e)return{type:r,message:Bh(e)?e:"",ref:t}}var ml=e=>Sr(e)&&!Zv(e)?e:{value:e,message:""},OR=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:v,name:g,valueAsNumber:y,mount:S,disabled:x}=e._f,m=Le(t,g);if(!S||x)return{};const b=i?i[0]:o,h=j=>{n&&b.reportValidity&&(b.setCustomValidity(ta(j)?"":j||""),b.reportValidity())},_={},C=A_(o),E=ip(o),w=C||E,O=(y||I_(o))&&lr(o.value)&&lr(m)||Jv(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,P=yre.bind(null,g,r,_),k=(j,$,F,z=mo.maxLength,M=mo.minLength)=>{const W=j?$:F;_[g]={type:j?z:M,message:W,ref:o,...P(j?z:M,W)}};if(a?!Array.isArray(m)||!m.length:s&&(!w&&(O||dn(m))||ta(m)&&!m||E&&!s3(i).isValid||C&&!l3(i).isValid)){const{value:j,message:$}=Bh(s)?{value:!!s,message:s}:ml(s);if(j&&(_[g]={type:mo.required,message:$,ref:b,...P(mo.required,$)},!r))return h($),_}if(!O&&(!dn(c)||!dn(f))){let j,$;const F=ml(f),z=ml(c);if(!dn(m)&&!isNaN(m)){const M=o.valueAsNumber||m&&+m;dn(F.value)||(j=M>F.value),dn(z.value)||($=Mnew Date(new Date().toDateString()+" "+q),B=o.type=="time",U=o.type=="week";Ja(F.value)&&m&&(j=B?W(m)>W(F.value):U?m>F.value:M>new Date(F.value)),Ja(z.value)&&m&&($=B?W(m)+j.value,z=!dn($.value)&&m.length<+$.value;if((F||z)&&(k(F,j.message,$.message),!r))return h(_[g].message),_}if(p&&!O&&Ja(m)){const{value:j,message:$}=ml(p);if(Zv(j)&&!m.match(j)&&(_[g]={type:mo.pattern,message:$,ref:o,...P(mo.pattern,$)},!r))return h($),_}if(v){if(Ro(v)){const j=await v(m,t),$=ER(j,b);if($&&(_[g]={...$,...P(mo.validate,$.message)},!r))return h($.message),_}else if(Sr(v)){let j={};for(const $ in v){if(!_n(j)&&!r)break;const F=ER(await v[$](m,t),b,$);F&&(j={...F,...P($,F.message)},h(F.message),r&&(_[g]=j))}if(!_n(j)&&(_[g]={ref:b,...j},!r))return _}}return h(!0),_};function xre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},eg=e=>dn(e)||!YM(e);function ci(e,t){if(eg(e)||eg(t))return e===t;if(Ql(e)&&Ql(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Ql(o)&&Ql(i)||Sr(o)&&Sr(i)||Array.isArray(o)&&Array.isArray(i)?!ci(o,i):o!==i)return!1}}return!0}var u3=e=>e.type==="select-multiple",Sre=e=>A_(e)||ip(e),Kb=e=>Jv(e)&&e.isConnected,c3=e=>{for(const t in e)if(Ro(e[t]))return!0;return!1};function tg(e,t={}){const r=Array.isArray(e);if(Sr(e)||r)for(const n in e)Array.isArray(e[n])||Sr(e[n])&&!c3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},tg(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function d3(e,t,r){const n=Array.isArray(e);if(Sr(e)||n)for(const a in e)Array.isArray(e[a])||Sr(e[a])&&!c3(e[a])?lr(t)||eg(r[a])?r[a]=Array.isArray(e[a])?tg(e[a],[]):{...tg(e[a])}:d3(e[a],dn(t)?{}:t[a],r[a]):r[a]=!ci(e[a],t[a]);return r}var eh=(e,t)=>d3(e,t,tg(t)),f3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>lr(e)?e:t?e===""?NaN:e&&+e:r&&Ja(e)?new Date(e):n?n(e):e;function Gb(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return I_(t)?t.files:A_(t)?l3(e.refs).value:u3(t)?[...t.selectedOptions].map(({value:r})=>r):ip(t)?s3(e.refs).value:f3(lr(t.value)?e.ref.value:t.value,e)}var _re=(e,t,r,n)=>{const a={};for(const o of e){const i=Le(t,o);i&&Ut(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},qc=e=>lr(e)?e:Zv(e)?e.source:Sr(e)?Zv(e.value)?e.value.source:e.value:e;const PR="AsyncFunction";var Cre=e=>(!e||!e.validate)&&!!(Ro(e.validate)&&e.validate.constructor.name===PR||Sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===PR)),Ere=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function RR(e,t,r){const n=Le(e,r);if(n||k_(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Le(t,o),s=Le(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Ore=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Pre=(e,t)=>!zm(Le(e,t)).length&&Cr(e,t);const Rre={mode:Ra.onSubmit,reValidateMode:Ra.onChange,shouldFocusError:!0};function Tre(e={}){let t={...Rre,...e},r={submitCount:0,isDirty:!1,isLoading:Ro(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Sr(t.defaultValues)||Sr(t.values)?xn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:xn(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:qb(),array:qb(),state:qb()},p=xR(t.mode),v=xR(t.reValidateMode),g=t.criteriaMode===Ra.all,y=V=>K=>{clearTimeout(l),l=setTimeout(V,K)},S=async V=>{if(c.isValid||V){const K=t.resolver?_n((await w()).errors):await P(n,!0);K!==r.isValid&&f.state.next({isValid:K})}},x=(V,K)=>{(c.isValidating||c.validatingFields)&&((V||Array.from(s.mount)).forEach(te=>{te&&(K?Ut(r.validatingFields,te,K):Cr(r.validatingFields,te))}),f.state.next({validatingFields:r.validatingFields,isValidating:!_n(r.validatingFields)}))},m=(V,K=[],te,se,de=!0,fe=!0)=>{if(se&&te){if(i.action=!0,fe&&Array.isArray(Le(n,V))){const Oe=te(Le(n,V),se.argA,se.argB);de&&Ut(n,V,Oe)}if(fe&&Array.isArray(Le(r.errors,V))){const Oe=te(Le(r.errors,V),se.argA,se.argB);de&&Ut(r.errors,V,Oe),Pre(r.errors,V)}if(c.touchedFields&&fe&&Array.isArray(Le(r.touchedFields,V))){const Oe=te(Le(r.touchedFields,V),se.argA,se.argB);de&&Ut(r.touchedFields,V,Oe)}c.dirtyFields&&(r.dirtyFields=eh(a,o)),f.state.next({name:V,isDirty:j(V,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ut(o,V,K)},b=(V,K)=>{Ut(r.errors,V,K),f.state.next({errors:r.errors})},h=V=>{r.errors=V,f.state.next({errors:r.errors,isValid:!1})},_=(V,K,te,se)=>{const de=Le(n,V);if(de){const fe=Le(o,V,lr(te)?Le(a,V):te);lr(fe)||se&&se.defaultChecked||K?Ut(o,V,K?fe:Gb(de._f)):z(V,fe),i.mount&&S()}},C=(V,K,te,se,de)=>{let fe=!1,Oe=!1;const ae={name:V},Z=!!(Le(n,V)&&Le(n,V)._f&&Le(n,V)._f.disabled);if(!te||se){c.isDirty&&(Oe=r.isDirty,r.isDirty=ae.isDirty=j(),fe=Oe!==ae.isDirty);const G=Z||ci(Le(a,V),K);Oe=!!(!Z&&Le(r.dirtyFields,V)),G||Z?Cr(r.dirtyFields,V):Ut(r.dirtyFields,V,!0),ae.dirtyFields=r.dirtyFields,fe=fe||c.dirtyFields&&Oe!==!G}if(te){const G=Le(r.touchedFields,V);G||(Ut(r.touchedFields,V,te),ae.touchedFields=r.touchedFields,fe=fe||c.touchedFields&&G!==te)}return fe&&de&&f.state.next(ae),fe?ae:{}},E=(V,K,te,se)=>{const de=Le(r.errors,V),fe=c.isValid&&ta(K)&&r.isValid!==K;if(e.delayError&&te?(u=y(()=>b(V,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Ut(r.errors,V,te):Cr(r.errors,V)),(te?!ci(de,te):de)||!_n(se)||fe){const Oe={...se,...fe&&ta(K)?{isValid:K}:{},errors:r.errors,name:V};r={...r,...Oe},f.state.next(Oe)}},w=async V=>{x(V,!0);const K=await t.resolver(o,t.context,_re(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(V),K},O=async V=>{const{errors:K}=await w(V);if(V)for(const te of V){const se=Le(K,te);se?Ut(r.errors,te,se):Cr(r.errors,te)}else r.errors=K;return K},P=async(V,K,te={valid:!0})=>{for(const se in V){const de=V[se];if(de){const{_f:fe,...Oe}=de;if(fe){const ae=s.array.has(fe.name),Z=de._f&&Cre(de._f);Z&&c.validatingFields&&x([se],!0);const G=await OR(de,o,g,t.shouldUseNativeValidation&&!K,ae);if(Z&&c.validatingFields&&x([se]),G[fe.name]&&(te.valid=!1,K))break;!K&&(Le(G,fe.name)?ae?bre(r.errors,G,fe.name):Ut(r.errors,fe.name,G[fe.name]):Cr(r.errors,fe.name))}!_n(Oe)&&await P(Oe,K,te)}}return te.valid},k=()=>{for(const V of s.unMount){const K=Le(n,V);K&&(K._f.refs?K._f.refs.every(te=>!Kb(te)):!Kb(K._f.ref))&&ye(V)}s.unMount=new Set},j=(V,K)=>(V&&K&&Ut(o,V,K),!ci(ie(),a)),$=(V,K,te)=>i3(V,s,{...i.mount?o:lr(K)?a:Ja(V)?{[V]:K}:K},te,K),F=V=>zm(Le(i.mount?o:a,V,e.shouldUnregister?Le(a,V,[]):[])),z=(V,K,te={})=>{const se=Le(n,V);let de=K;if(se){const fe=se._f;fe&&(!fe.disabled&&Ut(o,V,f3(K,fe)),de=Jv(fe.ref)&&dn(K)?"":K,u3(fe.ref)?[...fe.ref.options].forEach(Oe=>Oe.selected=de.includes(Oe.value)):fe.refs?ip(fe.ref)?fe.refs.length>1?fe.refs.forEach(Oe=>(!Oe.defaultChecked||!Oe.disabled)&&(Oe.checked=Array.isArray(de)?!!de.find(ae=>ae===Oe.value):de===Oe.value)):fe.refs[0]&&(fe.refs[0].checked=!!de):fe.refs.forEach(Oe=>Oe.checked=Oe.value===de):I_(fe.ref)?fe.ref.value="":(fe.ref.value=de,fe.ref.type||f.values.next({name:V,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&C(V,de,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&q(V)},M=(V,K,te)=>{for(const se in K){const de=K[se],fe=`${V}.${se}`,Oe=Le(n,fe);(s.array.has(V)||!eg(de)||Oe&&!Oe._f)&&!Ql(de)?M(fe,de,te):z(fe,de,te)}},W=(V,K,te={})=>{const se=Le(n,V),de=s.array.has(V),fe=xn(K);Ut(o,V,fe),de?(f.array.next({name:V,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&f.state.next({name:V,dirtyFields:eh(a,o),isDirty:j(V,fe)})):se&&!se._f&&!dn(fe)?M(V,fe,te):z(V,fe,te),wR(V,s)&&f.state.next({...r}),f.values.next({name:i.mount?V:void 0,values:{...o}})},B=async V=>{i.mount=!0;const K=V.target;let te=K.name,se=!0;const de=Le(n,te),fe=()=>K.type?Gb(de._f):JM(V),Oe=ae=>{se=Number.isNaN(ae)||ci(ae,Le(o,te,ae))};if(de){let ae,Z;const G=fe(),le=V.type===Yv.BLUR||V.type===Yv.FOCUS_OUT,he=!Ere(de._f)&&!t.resolver&&!Le(r.errors,te)&&!de._f.deps||Ore(le,Le(r.touchedFields,te),r.isSubmitted,v,p),Re=wR(te,s,le);Ut(o,te,G),le?(de._f.onBlur&&de._f.onBlur(V),u&&u(0)):de._f.onChange&&de._f.onChange(V);const Be=C(te,G,le,!1),Ye=!_n(Be)||Re;if(!le&&f.values.next({name:te,type:V.type,values:{...o}}),he)return c.isValid&&(e.mode==="onBlur"?le&&S():S()),Ye&&f.state.next({name:te,...Re?{}:Be});if(!le&&Re&&f.state.next({...r}),t.resolver){const{errors:je}=await w([te]);if(Oe(G),se){const Je=RR(r.errors,n,te),_e=RR(je,n,Je.name||te);ae=_e.error,te=_e.name,Z=_n(je)}}else x([te],!0),ae=(await OR(de,o,g,t.shouldUseNativeValidation))[te],x([te]),Oe(G),se&&(ae?Z=!1:c.isValid&&(Z=await P(n,!0)));se&&(de._f.deps&&q(de._f.deps),E(te,Z,ae,Be))}},U=(V,K)=>{if(Le(r.errors,K)&&V.focus)return V.focus(),1},q=async(V,K={})=>{let te,se;const de=Td(V);if(t.resolver){const fe=await O(lr(V)?V:de);te=_n(fe),se=V?!de.some(Oe=>Le(fe,Oe)):te}else V?(se=(await Promise.all(de.map(async fe=>{const Oe=Le(n,fe);return await P(Oe&&Oe._f?{[fe]:Oe}:Oe)}))).every(Boolean),!(!se&&!r.isValid)&&S()):se=te=await P(n);return f.state.next({...!Ja(V)||c.isValid&&te!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:te}:{},errors:r.errors}),K.shouldFocus&&!se&&$d(n,U,V?de:s.mount),se},ie=V=>{const K={...i.mount?o:a};return lr(V)?K:Ja(V)?Le(K,V):V.map(te=>Le(K,te))},oe=(V,K)=>({invalid:!!Le((K||r).errors,V),isDirty:!!Le((K||r).dirtyFields,V),error:Le((K||r).errors,V),isValidating:!!Le(r.validatingFields,V),isTouched:!!Le((K||r).touchedFields,V)}),Ee=V=>{V&&Td(V).forEach(K=>Cr(r.errors,K)),f.state.next({errors:V?r.errors:{}})},pe=(V,K,te)=>{const se=(Le(n,V,{_f:{}})._f||{}).ref,de=Le(r.errors,V)||{},{ref:fe,message:Oe,type:ae,...Z}=de;Ut(r.errors,V,{...Z,...K,ref:se}),f.state.next({name:V,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&se&&se.focus&&se.focus()},Te=(V,K)=>Ro(V)?f.values.subscribe({next:te=>V($(void 0,K),te)}):$(V,K,!0),ye=(V,K={})=>{for(const te of V?Td(V):s.mount)s.mount.delete(te),s.array.delete(te),K.keepValue||(Cr(n,te),Cr(o,te)),!K.keepError&&Cr(r.errors,te),!K.keepDirty&&Cr(r.dirtyFields,te),!K.keepTouched&&Cr(r.touchedFields,te),!K.keepIsValidating&&Cr(r.validatingFields,te),!t.shouldUnregister&&!K.keepDefaultValue&&Cr(a,te);f.values.next({values:{...o}}),f.state.next({...r,...K.keepDirty?{isDirty:j()}:{}}),!K.keepIsValid&&S()},be=({disabled:V,name:K,field:te,fields:se,value:de})=>{if(ta(V)&&i.mount||V){const fe=V?void 0:lr(de)?Gb(te?te._f:Le(se,K)._f):de;Ut(o,K,fe),C(K,fe,!1,!1,!0)}},we=(V,K={})=>{let te=Le(n,V);const se=ta(K.disabled)||ta(e.disabled);return Ut(n,V,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:V}},name:V,mount:!0,...K}}),s.mount.add(V),te?be({field:te,disabled:ta(K.disabled)?K.disabled:e.disabled,name:V,value:K.value}):_(V,!0,K.value),{...se?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:qc(K.min),max:qc(K.max),minLength:qc(K.minLength),maxLength:qc(K.maxLength),pattern:qc(K.pattern)}:{},name:V,onChange:B,onBlur:B,ref:de=>{if(de){we(V,K),te=Le(n,V);const fe=lr(de.value)&&de.querySelectorAll&&de.querySelectorAll("input,select,textarea")[0]||de,Oe=Sre(fe),ae=te._f.refs||[];if(Oe?ae.find(Z=>Z===fe):fe===te._f.ref)return;Ut(n,V,{_f:{...te._f,...Oe?{refs:[...ae.filter(Kb),fe,...Array.isArray(Le(a,V))?[{}]:[]],ref:{type:fe.type,name:V}}:{ref:fe}}}),_(V,!1,void 0,fe)}else te=Le(n,V,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(ZM(s.array,V)&&i.action)&&s.unMount.add(V)}}},ve=()=>t.shouldFocusError&&$d(n,U,s.mount),De=V=>{ta(V)&&(f.state.next({disabled:V}),$d(n,(K,te)=>{const se=Le(n,te);se&&(K.disabled=se._f.disabled||V,Array.isArray(se._f.refs)&&se._f.refs.forEach(de=>{de.disabled=se._f.disabled||V}))},0,!1))},Me=(V,K)=>async te=>{let se;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let de=xn(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:fe,values:Oe}=await w();r.errors=fe,de=Oe}else await P(n);if(Cr(r.errors,"root"),_n(r.errors)){f.state.next({errors:{}});try{await V(de,te)}catch(fe){se=fe}}else K&&await K({...r.errors},te),ve(),setTimeout(ve);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_n(r.errors)&&!se,submitCount:r.submitCount+1,errors:r.errors}),se)throw se},Qe=(V,K={})=>{Le(n,V)&&(lr(K.defaultValue)?W(V,xn(Le(a,V))):(W(V,K.defaultValue),Ut(a,V,xn(K.defaultValue))),K.keepTouched||Cr(r.touchedFields,V),K.keepDirty||(Cr(r.dirtyFields,V),r.isDirty=K.defaultValue?j(V,xn(Le(a,V))):j()),K.keepError||(Cr(r.errors,V),c.isValid&&S()),f.state.next({...r}))},Ne=(V,K={})=>{const te=V?xn(V):a,se=xn(te),de=_n(V),fe=de?a:se;if(K.keepDefaultValues||(a=te),!K.keepValues){if(K.keepDirtyValues)for(const Oe of s.mount)Le(r.dirtyFields,Oe)?Ut(fe,Oe,Le(o,Oe)):W(Oe,Le(fe,Oe));else{if($_&&lr(V))for(const Oe of s.mount){const ae=Le(n,Oe);if(ae&&ae._f){const Z=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Jv(Z)){const G=Z.closest("form");if(G){G.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?xn(a):{}:xn(fe),f.array.next({values:{...fe}}),f.values.next({values:{...fe}})}s={mount:K.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:de?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!ci(V,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:de?{}:K.keepDirtyValues?K.keepDefaultValues&&o?eh(a,o):r.dirtyFields:K.keepDefaultValues&&V?eh(a,V):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ae=(V,K)=>Ne(Ro(V)?V(o):V,K);return{control:{register:we,unregister:ye,getFieldState:oe,handleSubmit:Me,setError:pe,_executeSchema:w,_getWatch:$,_getDirty:j,_updateValid:S,_removeUnmounted:k,_updateFieldArray:m,_updateDisabledField:be,_getFieldArray:F,_reset:Ne,_resetDefaultValues:()=>Ro(t.defaultValues)&&t.defaultValues().then(V=>{Ae(V,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:De,_subjects:f,_proxyFormState:c,_setErrors:h,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(V){i=V},get _defaultValues(){return a},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:q,register:we,handleSubmit:Me,watch:Te,setValue:W,getValues:ie,reset:Ae,resetField:Qe,clearErrors:Ee,unregister:ye,setError:pe,setFocus:(V,K={})=>{const te=Le(n,V),se=te&&te._f;if(se){const de=se.refs?se.refs[0]:se.ref;de.focus&&(de.focus(),K.shouldSelect&&de.select())}},getFieldState:oe}}function p3(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:Ro(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ro(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Tre(e),formState:n});const o=t.current.control;return o._options=e,j_({subject:o._subjects.state,next:i=>{a3(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ke.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),ke.useEffect(()=>{e.values&&!ci(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=n3(n,o),t.current}var h3=d.createContext(void 0),rx=globalThis&&globalThis.__assign||function(){return rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=d.useState(!1),l=u[0],c=u[1],f=!e||!s||o,p=J8(function(v){var g=v.currentLocation,y=v.nextLocation;if(f)return!1;var S=t||g.pathname,x=y.pathname.startsWith(S),m=y.pathname.startsWith("".concat(S,"/show")),b=x&&!m;return!b});d.useEffect(function(){if(p.state==="blocked"){if(f){p.proceed();return}c(!0)}},[p.state]),d.useEffect(function(){if(l){var v=window.confirm(n("ra.message.unsaved_changes"));v?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),d.useEffect(function(){var v=function(g){g.preventDefault(),g.returnValue=!0};if(!f)return window.addEventListener("beforeunload",v),function(){window.removeEventListener("beforeunload",v)}},[f])},Vre=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return zre(r,n,a),null};function Ure(e,t){var r=iM({},Wre(e,t),t);return r}function Wre(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var m3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},Hre=function(e,t){t===void 0&&(t=!0);var r=Vm(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=ur();d.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},qre=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},ax=globalThis&&globalThis.__assign||function(){return ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Jre(e){return e?e.hasOwnProperty("message"):!1}var Qi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Xi=function(e){return RA(e,function(){for(var t=[],r=0;re?Qi(t,{max:e},r,n):void 0}});Xi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gi(r)&&re?Qi(t,{max:e},r,n):void 0}});Xi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gi(t)&&isNaN(Number(t))?Qi(e,void 0,t,r):void 0}});var rne=RA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gi(r)&&typeof r=="string"&&!e.test(r)?Qi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Xi(function(e){return e===void 0&&(e="ra.validation.email"),rne(Yre,e)});var nne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xi(function(e,t){return t===void 0&&(t=nne),function(r,n){return!Gi(r)&&e.indexOf(r)===-1?Qi(t,{list:e},r,n):void 0}});var ane=d.createContext(null),one=function(){var e=d.useContext(h3);return e},ine=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=H3(o),s=_r(t),u=xc(),l=u.getValues,c=u.resetField,f=u.formState,p=u.reset,v=qt(s,i),g=qt(l(),i),y=f.dirtyFields,S=Object.keys(y).includes(i);d.useEffect(function(){if(!(a==null||g!=null||v!=null||S)){var x=i.split(".").some(function(h){return sne.test(h)});if(x){var m=i.split(".").slice(0,-1).join("."),b=qt(l(),m);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},sne=/^\d+$/,lne=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,s=e.translateChoice,u=s===void 0?!0:s,l=et(),c=d.useCallback(function(v){if(d.isValidElement(r))return d.createElement(bc,{value:v},r);var g=typeof r=="function"?r(v):qt(v,r);return d.isValidElement(g)?g:u?l(String(g),{_:g}):String(g)},[r,l,u]),f=d.useCallback(function(v){return qt(v,a)},[a]),p=d.useCallback(function(v){return qt(v,i)},[i]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},une=function(){var e=d.useContext(ane);return e},cne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const dne=cne;var fs=globalThis&&globalThis.__assign||function(){return fs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var S3=function(){return d.useContext(x3)},sx=globalThis&&globalThis.__assign||function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Nne=function(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Lne=function(e,t){var r=S3(),n=r.register,a=r.unregister;d.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},Dne=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return _3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},_3=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},dd=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(d.Children.forEach(e,function(a){if(d.isValidElement(a)){if(a.type===d.Fragment){var o=dd(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},C3=d.createContext(!1),Bne=C3.Provider,zne=function(){return d.useContext(C3)},Vne=function(e){Pne();var t=ll(),r=Mne(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.requireAuth,p=e.ready,v=d.useState(f),g=v[0],y=v[1],S=d.useState(f),x=S[0],m=S[1],b=Y3();if(d.useEffect(function(){f&&b(void 0,!1).then(function(){y(!1)}).catch(function(){}).finally(function(){m(!1)})},[b,f]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(p,null)}return o==="loading"||x?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):g?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement(Lae,null)})):d.createElement(ws,null,a,d.createElement(zr,{path:"/*",element:d.createElement(Bne,{value:!!l},d.createElement(s,null,d.createElement(ws,null,n,d.Children.map(i,function(h){return d.createElement(zr,{key:h.props.name,path:"".concat(h.props.name,"/*"),element:h})}),d.createElement(zr,{path:"/",element:l?d.createElement($ae,{authParams:Une,component:l}):i.length>0?d.createElement(tz,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(u,null)}))))}))},Une={params:{route:"dashboard"}},E3=d.createContext("React Admin"),Wne=E3.Provider,O3=function(){return d.useContext(E3)},Hne=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},qne=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return y3(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},Kne=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?AR:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,p=e.error,v=p===void 0?qne:p,g=e.layout,y=g===void 0?Hne:g,S=e.loading,x=S===void 0?AR:S,m=e.loginPage,b=m===void 0?!1:m,h=e.ready,_=h===void 0?lae:h,C=e.requireAuth,E=C===void 0?!1:C,w=e.title,O=w===void 0?"React Admin":w;d.useEffect(function(){if(!(f||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var k=new Image;k.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var P=function(k,j){return n(j)};return d.createElement(Wne,{value:O},d.createElement(w3,{onError:P,fallbackRender:function(k){var j=k.error,$=k.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(v,{error:j,errorInfo:r,resetErrorBoundary:$}))}},d.createElement(ws,null,b!==!1&&b!==!0?d.createElement(zr,{path:"/login",element:IR(b)}):null,o!==!1&&o!==!0?d.createElement(zr,{path:"/auth-callback",element:IR(o)}):null,d.createElement(zr,{path:"/*",element:d.createElement(Vne,{catchAll:s,dashboard:l,layout:y,loading:x,requireAuth:E,ready:_},u)}))))},IR=function(e){return d.isValidElement(e)?e:d.createElement(e)},AR=function(){return null},P3=function(e){return null};P3.raName="CustomRoutes";var R3=d.createContext(void 0),ul=function(e){var t=e.children,r=e.value;return r?d.createElement(R3.Provider,{value:r},t):t},Gne=function(e){var t=e.value,r=e.children;return t?d.createElement(ul,{value:t},r):r},T3={exports:{}},Ft={};/** +The missing props are: `).concat(a.join(", ")))},Kv=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),RM="%[a-f0-9]{2}",D2=new RegExp("("+RM+")|([^%]+?)","gi"),B2=new RegExp("("+RM+")+","gi");function J1(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],J1(r),J1(n))}function tZ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(D2)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},oZ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;om==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return b=>(h,_)=>{const C=h.length;return _===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[",C,"]"].join("")]:[...h,[c(b,m),"[",c(C,m),"]=",c(_,m)].join("")]};case"bracket":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[]"].join("")]:[...h,[c(b,m),"[]=",c(_,m)].join("")];case"colon-list-separator":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),":list="].join("")]:[...h,[c(b,m),":list=",c(_,m)].join("")];case"comma":case"separator":case"bracket-separator":{const b=m.arrayFormat==="bracket-separator"?"[]=":"=";return h=>(_,C)=>C===void 0||m.skipNull&&C===null||m.skipEmptyString&&C===""?_:(C=C===null?"":C,_.length===0?[[c(h,m),b,c(C,m)].join("")]:[[_,c(C,m)].join(m.arrayFormatSeparator)])}default:return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,c(b,m)]:[...h,[c(b,m),"=",c(_,m)].join("")]}}function u(m){let b;switch(m.arrayFormat){case"index":return(h,_,C)=>{if(b=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!b){C[h]=_;return}C[h]===void 0&&(C[h]={}),C[h][b[1]]=_};case"bracket":return(h,_,C)=>{if(b=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"colon-list-separator":return(h,_,C)=>{if(b=/(:list)$/.exec(h),h=h.replace(/:list$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"comma":case"separator":return(h,_,C)=>{const E=typeof _=="string"&&_.includes(m.arrayFormatSeparator),w=typeof _=="string"&&!E&&f(_,m).includes(m.arrayFormatSeparator);_=w?f(_,m):_;const O=E||w?_.split(m.arrayFormatSeparator).map(P=>f(P,m)):_===null?_:f(_,m);C[h]=O};case"bracket-separator":return(h,_,C)=>{const E=/(\[\])$/.test(h);if(h=h.replace(/\[\]$/,""),!E){C[h]=_&&f(_,m);return}const w=_===null?[]:_.split(m.arrayFormatSeparator).map(O=>f(O,m));if(C[h]===void 0){C[h]=w;return}C[h]=[].concat(C[h],w)};default:return(h,_,C)=>{if(C[h]===void 0){C[h]=_;return}C[h]=[].concat(C[h],_)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,b){return b.encode?b.strict?t(m):encodeURIComponent(m):m}function f(m,b){return b.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((b,h)=>Number(b)-Number(h)).map(b=>m[b]):m}function v(m){const b=m.indexOf("#");return b!==-1&&(m=m.slice(0,b)),m}function g(m){let b="";const h=m.indexOf("#");return h!==-1&&(b=m.slice(h)),b}function y(m){m=v(m);const b=m.indexOf("?");return b===-1?"":m.slice(b+1)}function S(m,b){return b.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):b.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const h=u(b),_=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return _;for(const C of m.split("&")){if(C==="")continue;let[E,w]=n(b.decode?C.replace(/\+/g," "):C,"=");w=w===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?w:f(w,b),h(f(E,b),w,_)}for(const C of Object.keys(_)){const E=_[C];if(typeof E=="object"&&E!==null)for(const w of Object.keys(E))E[w]=S(E[w],b);else _[C]=S(E,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((C,E)=>{const w=_[E];return w&&typeof w=="object"&&!Array.isArray(w)?C[E]=p(w):C[E]=w,C},Object.create(null))}e.extract=y,e.parse=x,e.stringify=(m,b)=>{if(!m)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const h=w=>b.skipNull&&o(m[w])||b.skipEmptyString&&m[w]==="",_=s(b),C={};for(const w of Object.keys(m))h(w)||(C[w]=m[w]);const E=Object.keys(C);return b.sort!==!1&&E.sort(b.sort),E.map(w=>{const O=m[w];return O===void 0?"":O===null?c(w,b):Array.isArray(O)?O.length===0&&b.arrayFormat==="bracket-separator"?c(w,b)+"[]":O.reduce(_(w),[]).join("&"):c(w,b)+"="+c(O,b)}).filter(w=>w.length>0).join("&")},e.parseUrl=(m,b)=>{b=Object.assign({decode:!0},b);const[h,_]=n(m,"#");return Object.assign({url:h.split("?")[0]||"",query:x(y(m),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:f(_,b)}:{})},e.stringifyUrl=(m,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const h=v(m.url).split("?")[0]||"",_=e.extract(m.url),C=e.parse(_,{sort:!1}),E=Object.assign(C,m.query);let w=e.stringify(E,b);w&&(w=`?${w}`);let O=g(m.url);return m.fragmentIdentifier&&(O=`#${b[i]?c(m.fragmentIdentifier,b):m.fragmentIdentifier}`),`${h}${w}${O}`},e.pick=(m,b,h)=>{h=Object.assign({parseFragmentIdentifier:!0,[i]:!1},h);const{url:_,query:C,fragmentIdentifier:E}=e.parseUrl(m,h);return e.stringifyUrl({url:_,query:a(C,b),fragmentIdentifier:E},h)},e.exclude=(m,b,h)=>{const _=Array.isArray(b)?C=>!b.includes(C):(C,E)=>!b(C,E);return e.pick(m,_,h)}})(ko);var z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message};const kM=fZ;var hZ=["getList","getMany","getManyReference"],Ki=function(){var e=d.useContext(PM)||w_,t=kM(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=ke.useRef(e.isMutating()>0),a=ke.useState(r.current||n.current),o=a[0],i=a[1];return ke.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(hr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(hr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},Uo=function(){var e=Fa();return d.useCallback(function(){e.invalidateQueries()},[e])},Z1=globalThis&&globalThis.__assign||function(){return Z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?IM(s,t-1,r,n,a):CZ(a,s):n||(a[a.length]=s)}return a}var S_=IM;function OZ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var AM=LZ;function DZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=ZZ){var l=t?null:YZ(e);if(l)return JZ(l);i=!1,a=XZ,u=new KZ}else u=t?[]:s;e:for(;++n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?$(F):F},{updatedAt:j}),a.setQueriesData({queryKey:[w,"getManyReference"]},function(F){return F&&F.data?{data:$(F.data),total:F.total}:F},{updatedAt:j})},h=ym(Bt(Bt({mutationFn:function(E){var w=E===void 0?{}:E,O=w.resource,P=O===void 0?e:O,k=w.id,j=k===void 0?v.current.id:k,$=w.data,F=$===void 0?v.current.data:$,z=w.meta,M=z===void 0?v.current.meta:z,W=w.previousData,B=W===void 0?v.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(j==null)throw new Error("useUpdate mutation requires a non-empty id");if(!F)throw new Error("useUpdate mutation requires a non-empty data object");return y.current(P,{id:j,data:F,previousData:B,meta:M}).then(function(U){var q=U.data;return q})}},f),{onMutate:function(E){return q2(void 0,void 0,void 0,function(){var w;return K2(this,function(O){switch(O.label){case 0:return f.onMutate?[4,f.onMutate(E)]:[3,2];case 1:return w=O.sent()||{},[2,Bt({snapshot:g.current},w)];case 2:return[2,{snapshot:g.current}]}})})},onError:function(E,w,O){if(w===void 0&&(w={}),(p.current==="optimistic"||p.current==="undoable")&&O.snapshot.forEach(function(P){var k=P[0],j=P[1];a.setQueryData(k,j)}),S.current)return S.current(E,w,O);if(f.onError)return f.onError(E,w,O)},onSuccess:function(E,w,O){if(w===void 0&&(w={}),p.current==="pessimistic"){var P=w.resource,k=P===void 0?e:P,j=w.id,$=j===void 0?o:j;b({resource:k,id:$,data:E}),f.onSuccess&&!m.current&&f.onSuccess(E,w,O)}},onSettled:function(E,w,O,P){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function(k){var j=k[0];a.invalidateQueries({queryKey:j})}),x.current)return x.current(E,w,O,P);if(f.onSettled)return f.onSettled(E,w,O,P)}})),_=function(E,w,O){return E===void 0&&(E=e),w===void 0&&(w={}),O===void 0&&(O={}),q2(void 0,void 0,void 0,function(){var P,k,j,$,F,z,M,W,B,U,q,ie,oe,Ee,pe;return K2(this,function(Te){switch(Te.label){case 0:return P=O.mutationMode,k=O.returnPromise,j=k===void 0?f.returnPromise:k,$=O.onError,F=O.onSettled,z=O.onSuccess,M=G2(O,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?y.current=c(n.update.bind(n)):y.current=n.update,m.current=!!z,S.current=$,x.current=F,v.current=t,P&&(p.current=P),j&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?j?[2,h.mutateAsync(Bt({resource:E},w),Bt({onSuccess:z},M))]:[2,h.mutate(Bt({resource:E},w),Bt({onSuccess:z},M))]:(W=w.id,B=W===void 0?o:W,U=w.data,q=U===void 0?i:U,ie=w.meta,oe=ie===void 0?s:ie,Ee=a.getQueryData([E,"getOne",{id:String(B),meta:oe}]),pe=[[E,"getOne",{id:String(B),meta:oe}],[E,"getList"],[E,"getInfiniteList"],[E,"getMany"],[E,"getManyReference"]],g.current=pe.reduce(function(ye,be){return ye.concat(a.getQueriesData({queryKey:be}))},[]),[4,Promise.all(g.current.map(function(ye){var be=ye[0];return a.cancelQueries({queryKey:be})}))]);case 1:return Te.sent(),b({resource:E,id:B,data:q}),setTimeout(function(){z?z(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current}):f.onSuccess&&!m.current&&f.onSuccess(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current})},0),p.current==="optimistic"?[2,h.mutate(Bt({resource:E},w))]:(xf.once("end",function(ye){var be=ye.isUndo;be?g.current.forEach(function(we){var ve=we[0],De=we[1];a.setQueryData(ve,De)}):h.mutate(Bt({resource:E},w))}),[2])}})})},C=d.useMemo(function(){return Bt({isLoading:h.isPending},h)},[h]);return[Mt(_),C]},nn=globalThis&&globalThis.__assign||function(){return nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(P):P},{updatedAt:w}),a.setQueriesData({queryKey:[_,"getManyReference"]},function(P){if(!P||!P.data)return P;var k=O(P.data),j=k.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?w(O):O},{updatedAt:E}),a.setQueriesData({queryKey:[h,"getManyReference"]},function(O){if(!O||!O.data)return O;var P=w(O.data),k=P.length=0?i[l].apply(i,Hc(Hc([],f,!1),[c],!1)):o.apply(void 0,f)};return i.length>0?i[l].apply(i,Hc(Hc([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Gv=globalThis&&globalThis.__assign||function(){return Gv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;ie||y(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M instanceof Error||typeof M=="object"&&M!==null&&M.hasOwnProperty("message")?M.message:void 0}})}},_),{returnPromise:!0,getMutateWithMiddlewares:w})),k=P[0],j=P[1].isPending,$=d.useCallback(function(M,W){W===void 0&&(W={});var B=W.transform,U=W.meta,q=aR(W,["transform","meta"]);return Promise.resolve(B?B(M):o?o(M):M).then(function(ie){return rR(void 0,void 0,void 0,function(){var oe,Ee;return nR(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,2,,3]),[4,k(u,{data:ie,meta:U??h},q)];case 1:return pe.sent(),[3,3];case 2:return oe=pe.sent(),(oe instanceof ZJ||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((Ee=oe.body)===null||Ee===void 0?void 0:Ee.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[k,h,u,o]),F=_c(),z=g("ra.page.create",{name:F(u,1)});return{isFetching:!1,isLoading:!1,isPending:j,saving:j,defaultTitle:z,save:$,resource:u,record:x,redirect:p,registerMutationMiddleware:E,unregisterMutationMiddleware:O}},tte=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ko.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},rte=function(e,t){return t?"edit":e?"show":"list"},C_=d.createContext(void 0);C_.displayName="RecordContext";var bc=function(e){var t=e.children,r=e.value;return d.createElement(C_.Provider,{value:r},t)},E_=d.createContext(null);E_.displayName="CreateContext";var Qv=globalThis&&globalThis.__assign||function(){return Qv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!Ae||a!=="pessimistic")&&y(typeof ve=="string"?ve:ve.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ve=="string"?ve:ve instanceof Error||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("message")?ve.message:void 0}})}},O),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:j})),ye=Te[0],be=Te[1].isPending,we=d.useCallback(function(ve,De){var Me=De===void 0?{}:De,Qe=Me.onSuccess,Ne=Me.onError,Ae=Me.transform,He=Me.meta;return Promise.resolve(Ae?Ae(ve,{previousData:pe.previousData}):f?f(ve,{previousData:pe.previousData}):ve).then(function(ht){return oR(void 0,void 0,void 0,function(){var ut,V;return iR(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,ye(p,{id:b,data:ht,meta:He??C},{onError:Ne,onSuccess:Qe})];case 1:return K.sent(),[3,3];case 2:return ut=K.sent(),((V=ut.body)===null||V===void 0?void 0:V.errors)!=null?[2,ut.body.errors]:[3,3];case 3:return[2]}})})})},[b,C,p,f,ye,pe.previousData]);return{defaultTitle:Ee,error:M,isFetching:B,isLoading:W,isPending:U,mutationMode:a,record:z,redirect:c,refetch:q,registerMutationMiddleware:k,resource:p,save:we,saving:be,unregisterMutationMiddleware:$}},lte="list",_r=function(e){var t=d.useContext(C_);return e&&e.record||t},VM=function(e){var t=e.value,r=e.children;return t?d.createElement(bc,{value:t},r):r},O_=d.createContext(null);O_.displayName="EditContext";var ute=function(e){var t=e.children,r=e.value;return d.createElement(O_.Provider,{value:r},d.createElement(DM,{value:BM(r)},d.createElement(bc,{value:r&&r.record},t)))},cte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":WM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),bte=yte,xte=typeof window>"u"?Al:window;function wte(e,t){if(e instanceof xte[t])return!0;switch(typeof e>"u"?"undefined":WM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Vb,lR;function Ste(){return lR||(lR=1,Vb=function(t,r,n){var a=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),Vb}var _te=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(o)),a.push(f.join(this._options.rowDelimiter)),n=f}}catch(v){s=!0,u=v}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(S){var x=a._headers.indexOf(S);return x===-1&&(a._headers.push(S),x=a._headers.indexOf(S)),x};i=function(S){var x=[],m=function(F){return x.push(F.map(function(z){return z??""}))},b=function(){return new Array(a._headers.length).fill(null)},h={},_=b(),C=!0,E=!1,w=void 0;try{for(var O=S[Symbol.iterator](),P;!(C=(P=O.next()).done);C=!0){var k=P.value,j=s(k.item);if(_[j]!=null&&(m(_),_=b()),h[j]=h[j]||0,a._options.fillTopRow&&h[j]0&&m(_),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=a._handler.check(v,a._options.mainPathItem,v,r);i(g)}}catch(y){l=!0,c=y}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),uR(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var v=[f.item,p];a.push(v.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),uR(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Pte=Ote,Rte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Tte=Rte,dR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fR=Pte,pR=Tte,$te=UM,kte=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:$te,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":dR(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":dR(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new pR(new fR(e));var p=Object.assign({},e,r),v=new fR(p);return t?new Promise(function(g,y){v.parse(t,function(S,x){if(n)return n(S,x);if(S)return y(S);if(y)return g(x)})}):new pR};const jte=Mr(kte);var Ite=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},Ate=function(e,t,r,n){return jte(e,function(a,o){return Ite(o,n)})},Mte=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},Fte=function(e){return function(t,r,n){return e.getMany(n,{ids:Mte(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},gl=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||g(function(m){if(!Array.isArray(m))return gl([],m,!0);var b=m.indexOf(x);return b>-1?gl(gl([],m.slice(0,b),!0),m.slice(b+1),!0):gl(gl([],m,!0),[x],!1)})},clearSelection:function(){y()}}},[g,y]);return[v,S]},Ub=[];function Bn(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useRef(!1);d.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=d.useCallback(function(i){if(a.current)return n(i)},[a,n]);return[r,o]}function P_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Bn(!1),n=r[0],a=r[1];return d.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function Nte(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Po=globalThis&&globalThis.__assign||function(){return Po=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&h(O)},[v.search]);var P=d.useCallback(function(q){C.current&&(_.current?_.current=F2(_.current,q):(_.current=F2(O,q),setTimeout(function(){_.current&&(a&&!p?x(_.current):a&&p?h(_.current):g({search:"?".concat(ko.stringify(Po(Po({},_.current),{filter:JSON.stringify(_.current.filter),displayedFilters:JSON.stringify(_.current.displayedFilters)})))},{state:{_scrollToTop:q.type===X1}}),_.current=void 0)},0)))},hR(hR([],E,!0),[g],!1)),k=d.useCallback(function(q){return P({type:bM,payload:q})},[P]),j=d.useCallback(function(q){return P({type:X1,payload:q})},[P]),$=d.useCallback(function(q){return P({type:xM,payload:q})},[P]),F=O.filter||mR,z=O.displayedFilters||mR,M=x_(function(q,ie){P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},r),W=d.useCallback(function(q,ie,oe){return ie===void 0&&(ie=void 0),oe===void 0&&(oe=!1),oe?M(q,ie):P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},[P]),B=d.useCallback(function(q){P({type:SM,payload:q})},[P]),U=d.useCallback(function(q,ie){P({type:wM,payload:{filterName:q,defaultValue:ie}})},[P]);return[Po(Po({filterValues:F,requestSignature:E},O),{displayedFilters:z}),{changeParams:P,setPage:j,setPerPage:$,setSort:k,setFilters:W,hideFilter:B,showFilter:U}]},vR=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Dte=function(e){var t=e.search,r=ko.parse(t);return vR(r,"filter"),vR(r,"displayedFilters"),r},Bte=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},zte=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:Bte(r)?Po({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Po(Po({},i),{page:gR(i.page,1),perPage:gR(i.perPage,10)})},gR=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},mR={},Vte={field:"id",order:Fs},yR={},Dm=d.createContext(null);Dm.displayName="ListContext";var HM=d.createContext(void 0),Ute=function(e){return d.useMemo(function(){return Lm(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};HM.displayName="ListFilterContext";var qM=d.createContext(void 0),Wte=function(e){return d.useMemo(function(){return Lm(e,["sort","setSort","resource"])},[e.sort,e.setSort])};qM.displayName="ListSortContext";var R_=d.createContext(void 0);R_.displayName="ListPaginationContext";var Hte=function(e){return d.useMemo(function(){return Lm(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},KM=function(e){var t=e.value,r=e.children;return d.createElement(Dm.Provider,{value:t},d.createElement(HM.Provider,{value:Ute(t)},d.createElement(qM.Provider,{value:Wte(t)},d.createElement(R_.Provider,{value:Hte(t)},r))))},Ns=globalThis&&globalThis.__assign||function(){return Ns=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(j==null||(j==null?void 0:j.length)===0)){E.setPage(1);return}if(F!=null){var pe=Math.ceil(F/C.perPage)||1;!B&&C.page>pe&&E.setPage(pe)}},[B,C.page,C.perPage,j,E,F]);var ie=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),oe=_c(),Ee=b("ra.page.list",{name:oe(S,2)});return{sort:ie,data:j,meta:z,defaultTitle:Ee,displayedFilters:C.displayedFilters,error:M,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:E.hideFilter,isFetching:B,isLoading:W,isPending:U,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:C.page,perPage:C.perPage,refetch:q,resource:S,selectedIds:O,setFilters:E.setFilters,setPage:E.setPage,setPerPage:E.setPerPage,setSort:E.setSort,showFilter:E.showFilter,total:F,hasNextPage:$?$.hasNextPage:F!=null?C.page*C.perPage1}},Gte={field:"id",order:Fs},Qte=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],wf=function(e){return Object.keys(e).filter(function(t){return!Qte.includes(t)}).reduce(function(t,r){var n;return Ns(Ns({},t),(n={},n[r]=e[r],n))},{})},Xte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Zp(Zp([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Zp(Zp([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},Zte=function(e,t){var r=ya("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},Gl=globalThis&&globalThis.__assign||function(){return Gl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(de,oe.field)?oe.order==="ASC"?1:-1:qt(se,oe.field)1,hideFilter:He,isFetching:_,isLoading:w,isPending:k,onSelect:be.select,onToggleItem:be.toggle,onUnselectItems:be.clearSelection,page:W,perPage:U,resource:"",refetch:ere,selectedIds:ye,setFilters:ut,setPage:B,setPerPage:q,setSort:pe,showFilter:ht,total:F==null?void 0:F.total}},rre={},ga=function(){var e=d.useContext(Dm);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},nre=Nm,are=fc,ore=iM,ire=yc,GM=Object.prototype,sre=GM.hasOwnProperty,lre=nre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&ore(t[0],t[1],a)&&(n=1);++r1,setSort:F,showFilter:ye,total:Me}},pre={},ip=e=>e.type==="checkbox",Ql=e=>e instanceof Date,dn=e=>e==null;const JM=e=>typeof e=="object";var Sr=e=>!dn(e)&&!Array.isArray(e)&&JM(e)&&!Ql(e),ZM=e=>Sr(e)&&e.target?ip(e.target)?e.target.checked:e.target.value:e,hre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,e3=(e,t)=>e.has(hre(t)),vre=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},$_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!($_&&(e instanceof Blob||e instanceof FileList))&&(r||Sr(e)))if(t=r?[]:{},!r&&!vre(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=xn(e[n]));else return e;return t}var Bm=e=>Array.isArray(e)?e.filter(Boolean):[],lr=e=>e===void 0,Le=(e,t,r)=>{if(!t||!Sr(e))return r;const n=Bm(t.split(/[,[\].]+?/)).reduce((a,o)=>dn(a)?a:a[o],e);return lr(n)||n===e?lr(e[t])?r:e[t]:n},ta=e=>typeof e=="boolean",k_=e=>/^\w*$/.test(e),t3=e=>Bm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ut=(e,t,r)=>{let n=-1;const a=k_(t)?[t]:t3(t),o=a.length,i=o-1;for(;++nke.useContext(r3),n3=e=>{const{children:t,...r}=e;return ke.createElement(r3.Provider,{value:r},t)};var a3=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Ra.all&&(t._proxyFormState[i]=!n||Ra.all),r&&(r[i]=!0),e[i]}});return a},_n=e=>Sr(e)&&!Object.keys(e).length,o3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return _n(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Ra.all))},Td=e=>Array.isArray(e)?e:[e],i3=(e,t,r)=>!e||!t||e===t||Td(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function j_(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function zm(e){const t=xc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=ke.useState(r._formState),u=ke.useRef(!0),l=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ke.useRef(a);return c.current=a,j_({disabled:n,next:f=>u.current&&i3(c.current,f.name,o)&&o3(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),ke.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),a3(i,r,l.current,!1)}var Ja=e=>typeof e=="string",s3=(e,t,r,n,a)=>Ja(e)?(n&&t.watch.add(e),Le(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Le(r,o))):(n&&(t.watchAll=!0),r);function gre(e){const t=xc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=ke.useRef(n);s.current=n,j_({disabled:o,subject:r._subjects.values,next:c=>{i3(s.current,c.name,i)&&l(xn(s3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),u}function mre(e){const t=xc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=e3(a._names.array,r),s=gre({control:a,name:r,defaultValue:Le(a._formValues,r,Le(a._defaultValues,r,e.defaultValue)),exact:!0}),u=zm({control:a,name:r,exact:!0}),l=ke.useRef(a.register(r,{...e.rules,value:s,...ta(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const c=a._options.shouldUnregister||o,f=(p,v)=>{const g=Le(a._fields,p);g&&g._f&&(g._f.mount=v)};if(f(r,!0),c){const p=xn(Le(a._options.defaultValues,r));Ut(a._defaultValues,r,p),lr(Le(a._formValues,r))&&Ut(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):f(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Le(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Le(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ta(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:ke.useCallback(c=>l.current.onChange({target:{value:ZM(c),name:r},type:Xv.CHANGE}),[r]),onBlur:ke.useCallback(()=>l.current.onBlur({target:{value:Le(a._formValues,r),name:r},type:Xv.BLUR}),[r,a]),ref:ke.useCallback(c=>{const f=Le(a._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})},[a._fields,r])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Le(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Le(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Le(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Le(u.validatingFields,r)},error:{enumerable:!0,get:()=>Le(u.errors,r)}})}}var yre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},xR=e=>({isOnSubmit:!e||e===Ra.onSubmit,isOnBlur:e===Ra.onBlur,isOnChange:e===Ra.onChange,isOnAll:e===Ra.all,isOnTouch:e===Ra.onTouched}),wR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const $d=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Le(e,a);if(o){const{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if($d(s,t))break}else if(Sr(s)&&$d(s,t))break}}};var bre=(e,t,r)=>{const n=Td(Le(e,r));return Ut(n,"root",t[r]),Ut(e,r,n),e},I_=e=>e.type==="file",Ro=e=>typeof e=="function",Yv=e=>{if(!$_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Bh=e=>Ja(e),A_=e=>e.type==="radio",Jv=e=>e instanceof RegExp;const SR={value:!1,isValid:!1},_R={value:!0,isValid:!0};var l3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!lr(e[0].attributes.value)?lr(e[0].value)||e[0].value===""?_R:{value:e[0].value,isValid:!0}:_R:SR}return SR};const CR={isValid:!1,value:null};var u3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,CR):CR;function ER(e,t,r="validate"){if(Bh(e)||Array.isArray(e)&&e.every(Bh)||ta(e)&&!e)return{type:r,message:Bh(e)?e:"",ref:t}}var ml=e=>Sr(e)&&!Jv(e)?e:{value:e,message:""},OR=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:v,name:g,valueAsNumber:y,mount:S,disabled:x}=e._f,m=Le(t,g);if(!S||x)return{};const b=i?i[0]:o,h=j=>{n&&b.reportValidity&&(b.setCustomValidity(ta(j)?"":j||""),b.reportValidity())},_={},C=A_(o),E=ip(o),w=C||E,O=(y||I_(o))&&lr(o.value)&&lr(m)||Yv(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,P=yre.bind(null,g,r,_),k=(j,$,F,z=mo.maxLength,M=mo.minLength)=>{const W=j?$:F;_[g]={type:j?z:M,message:W,ref:o,...P(j?z:M,W)}};if(a?!Array.isArray(m)||!m.length:s&&(!w&&(O||dn(m))||ta(m)&&!m||E&&!l3(i).isValid||C&&!u3(i).isValid)){const{value:j,message:$}=Bh(s)?{value:!!s,message:s}:ml(s);if(j&&(_[g]={type:mo.required,message:$,ref:b,...P(mo.required,$)},!r))return h($),_}if(!O&&(!dn(c)||!dn(f))){let j,$;const F=ml(f),z=ml(c);if(!dn(m)&&!isNaN(m)){const M=o.valueAsNumber||m&&+m;dn(F.value)||(j=M>F.value),dn(z.value)||($=Mnew Date(new Date().toDateString()+" "+q),B=o.type=="time",U=o.type=="week";Ja(F.value)&&m&&(j=B?W(m)>W(F.value):U?m>F.value:M>new Date(F.value)),Ja(z.value)&&m&&($=B?W(m)+j.value,z=!dn($.value)&&m.length<+$.value;if((F||z)&&(k(F,j.message,$.message),!r))return h(_[g].message),_}if(p&&!O&&Ja(m)){const{value:j,message:$}=ml(p);if(Jv(j)&&!m.match(j)&&(_[g]={type:mo.pattern,message:$,ref:o,...P(mo.pattern,$)},!r))return h($),_}if(v){if(Ro(v)){const j=await v(m,t),$=ER(j,b);if($&&(_[g]={...$,...P(mo.validate,$.message)},!r))return h($.message),_}else if(Sr(v)){let j={};for(const $ in v){if(!_n(j)&&!r)break;const F=ER(await v[$](m,t),b,$);F&&(j={...F,...P($,F.message)},h(F.message),r&&(_[g]=j))}if(!_n(j)&&(_[g]={ref:b,...j},!r))return _}}return h(!0),_};function xre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Zv=e=>dn(e)||!JM(e);function ci(e,t){if(Zv(e)||Zv(t))return e===t;if(Ql(e)&&Ql(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Ql(o)&&Ql(i)||Sr(o)&&Sr(i)||Array.isArray(o)&&Array.isArray(i)?!ci(o,i):o!==i)return!1}}return!0}var c3=e=>e.type==="select-multiple",Sre=e=>A_(e)||ip(e),qb=e=>Yv(e)&&e.isConnected,d3=e=>{for(const t in e)if(Ro(e[t]))return!0;return!1};function eg(e,t={}){const r=Array.isArray(e);if(Sr(e)||r)for(const n in e)Array.isArray(e[n])||Sr(e[n])&&!d3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},eg(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function f3(e,t,r){const n=Array.isArray(e);if(Sr(e)||n)for(const a in e)Array.isArray(e[a])||Sr(e[a])&&!d3(e[a])?lr(t)||Zv(r[a])?r[a]=Array.isArray(e[a])?eg(e[a],[]):{...eg(e[a])}:f3(e[a],dn(t)?{}:t[a],r[a]):r[a]=!ci(e[a],t[a]);return r}var eh=(e,t)=>f3(e,t,eg(t)),p3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>lr(e)?e:t?e===""?NaN:e&&+e:r&&Ja(e)?new Date(e):n?n(e):e;function Kb(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return I_(t)?t.files:A_(t)?u3(e.refs).value:c3(t)?[...t.selectedOptions].map(({value:r})=>r):ip(t)?l3(e.refs).value:p3(lr(t.value)?e.ref.value:t.value,e)}var _re=(e,t,r,n)=>{const a={};for(const o of e){const i=Le(t,o);i&&Ut(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},qc=e=>lr(e)?e:Jv(e)?e.source:Sr(e)?Jv(e.value)?e.value.source:e.value:e;const PR="AsyncFunction";var Cre=e=>(!e||!e.validate)&&!!(Ro(e.validate)&&e.validate.constructor.name===PR||Sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===PR)),Ere=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function RR(e,t,r){const n=Le(e,r);if(n||k_(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Le(t,o),s=Le(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Ore=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Pre=(e,t)=>!Bm(Le(e,t)).length&&Cr(e,t);const Rre={mode:Ra.onSubmit,reValidateMode:Ra.onChange,shouldFocusError:!0};function Tre(e={}){let t={...Rre,...e},r={submitCount:0,isDirty:!1,isLoading:Ro(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Sr(t.defaultValues)||Sr(t.values)?xn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:xn(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Hb(),array:Hb(),state:Hb()},p=xR(t.mode),v=xR(t.reValidateMode),g=t.criteriaMode===Ra.all,y=V=>K=>{clearTimeout(l),l=setTimeout(V,K)},S=async V=>{if(c.isValid||V){const K=t.resolver?_n((await w()).errors):await P(n,!0);K!==r.isValid&&f.state.next({isValid:K})}},x=(V,K)=>{(c.isValidating||c.validatingFields)&&((V||Array.from(s.mount)).forEach(te=>{te&&(K?Ut(r.validatingFields,te,K):Cr(r.validatingFields,te))}),f.state.next({validatingFields:r.validatingFields,isValidating:!_n(r.validatingFields)}))},m=(V,K=[],te,se,de=!0,fe=!0)=>{if(se&&te){if(i.action=!0,fe&&Array.isArray(Le(n,V))){const Oe=te(Le(n,V),se.argA,se.argB);de&&Ut(n,V,Oe)}if(fe&&Array.isArray(Le(r.errors,V))){const Oe=te(Le(r.errors,V),se.argA,se.argB);de&&Ut(r.errors,V,Oe),Pre(r.errors,V)}if(c.touchedFields&&fe&&Array.isArray(Le(r.touchedFields,V))){const Oe=te(Le(r.touchedFields,V),se.argA,se.argB);de&&Ut(r.touchedFields,V,Oe)}c.dirtyFields&&(r.dirtyFields=eh(a,o)),f.state.next({name:V,isDirty:j(V,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ut(o,V,K)},b=(V,K)=>{Ut(r.errors,V,K),f.state.next({errors:r.errors})},h=V=>{r.errors=V,f.state.next({errors:r.errors,isValid:!1})},_=(V,K,te,se)=>{const de=Le(n,V);if(de){const fe=Le(o,V,lr(te)?Le(a,V):te);lr(fe)||se&&se.defaultChecked||K?Ut(o,V,K?fe:Kb(de._f)):z(V,fe),i.mount&&S()}},C=(V,K,te,se,de)=>{let fe=!1,Oe=!1;const ae={name:V},Z=!!(Le(n,V)&&Le(n,V)._f&&Le(n,V)._f.disabled);if(!te||se){c.isDirty&&(Oe=r.isDirty,r.isDirty=ae.isDirty=j(),fe=Oe!==ae.isDirty);const G=Z||ci(Le(a,V),K);Oe=!!(!Z&&Le(r.dirtyFields,V)),G||Z?Cr(r.dirtyFields,V):Ut(r.dirtyFields,V,!0),ae.dirtyFields=r.dirtyFields,fe=fe||c.dirtyFields&&Oe!==!G}if(te){const G=Le(r.touchedFields,V);G||(Ut(r.touchedFields,V,te),ae.touchedFields=r.touchedFields,fe=fe||c.touchedFields&&G!==te)}return fe&&de&&f.state.next(ae),fe?ae:{}},E=(V,K,te,se)=>{const de=Le(r.errors,V),fe=c.isValid&&ta(K)&&r.isValid!==K;if(e.delayError&&te?(u=y(()=>b(V,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Ut(r.errors,V,te):Cr(r.errors,V)),(te?!ci(de,te):de)||!_n(se)||fe){const Oe={...se,...fe&&ta(K)?{isValid:K}:{},errors:r.errors,name:V};r={...r,...Oe},f.state.next(Oe)}},w=async V=>{x(V,!0);const K=await t.resolver(o,t.context,_re(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(V),K},O=async V=>{const{errors:K}=await w(V);if(V)for(const te of V){const se=Le(K,te);se?Ut(r.errors,te,se):Cr(r.errors,te)}else r.errors=K;return K},P=async(V,K,te={valid:!0})=>{for(const se in V){const de=V[se];if(de){const{_f:fe,...Oe}=de;if(fe){const ae=s.array.has(fe.name),Z=de._f&&Cre(de._f);Z&&c.validatingFields&&x([se],!0);const G=await OR(de,o,g,t.shouldUseNativeValidation&&!K,ae);if(Z&&c.validatingFields&&x([se]),G[fe.name]&&(te.valid=!1,K))break;!K&&(Le(G,fe.name)?ae?bre(r.errors,G,fe.name):Ut(r.errors,fe.name,G[fe.name]):Cr(r.errors,fe.name))}!_n(Oe)&&await P(Oe,K,te)}}return te.valid},k=()=>{for(const V of s.unMount){const K=Le(n,V);K&&(K._f.refs?K._f.refs.every(te=>!qb(te)):!qb(K._f.ref))&&ye(V)}s.unMount=new Set},j=(V,K)=>(V&&K&&Ut(o,V,K),!ci(ie(),a)),$=(V,K,te)=>s3(V,s,{...i.mount?o:lr(K)?a:Ja(V)?{[V]:K}:K},te,K),F=V=>Bm(Le(i.mount?o:a,V,e.shouldUnregister?Le(a,V,[]):[])),z=(V,K,te={})=>{const se=Le(n,V);let de=K;if(se){const fe=se._f;fe&&(!fe.disabled&&Ut(o,V,p3(K,fe)),de=Yv(fe.ref)&&dn(K)?"":K,c3(fe.ref)?[...fe.ref.options].forEach(Oe=>Oe.selected=de.includes(Oe.value)):fe.refs?ip(fe.ref)?fe.refs.length>1?fe.refs.forEach(Oe=>(!Oe.defaultChecked||!Oe.disabled)&&(Oe.checked=Array.isArray(de)?!!de.find(ae=>ae===Oe.value):de===Oe.value)):fe.refs[0]&&(fe.refs[0].checked=!!de):fe.refs.forEach(Oe=>Oe.checked=Oe.value===de):I_(fe.ref)?fe.ref.value="":(fe.ref.value=de,fe.ref.type||f.values.next({name:V,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&C(V,de,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&q(V)},M=(V,K,te)=>{for(const se in K){const de=K[se],fe=`${V}.${se}`,Oe=Le(n,fe);(s.array.has(V)||!Zv(de)||Oe&&!Oe._f)&&!Ql(de)?M(fe,de,te):z(fe,de,te)}},W=(V,K,te={})=>{const se=Le(n,V),de=s.array.has(V),fe=xn(K);Ut(o,V,fe),de?(f.array.next({name:V,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&f.state.next({name:V,dirtyFields:eh(a,o),isDirty:j(V,fe)})):se&&!se._f&&!dn(fe)?M(V,fe,te):z(V,fe,te),wR(V,s)&&f.state.next({...r}),f.values.next({name:i.mount?V:void 0,values:{...o}})},B=async V=>{i.mount=!0;const K=V.target;let te=K.name,se=!0;const de=Le(n,te),fe=()=>K.type?Kb(de._f):ZM(V),Oe=ae=>{se=Number.isNaN(ae)||ci(ae,Le(o,te,ae))};if(de){let ae,Z;const G=fe(),le=V.type===Xv.BLUR||V.type===Xv.FOCUS_OUT,he=!Ere(de._f)&&!t.resolver&&!Le(r.errors,te)&&!de._f.deps||Ore(le,Le(r.touchedFields,te),r.isSubmitted,v,p),Re=wR(te,s,le);Ut(o,te,G),le?(de._f.onBlur&&de._f.onBlur(V),u&&u(0)):de._f.onChange&&de._f.onChange(V);const Be=C(te,G,le,!1),Ye=!_n(Be)||Re;if(!le&&f.values.next({name:te,type:V.type,values:{...o}}),he)return c.isValid&&(e.mode==="onBlur"?le&&S():S()),Ye&&f.state.next({name:te,...Re?{}:Be});if(!le&&Re&&f.state.next({...r}),t.resolver){const{errors:je}=await w([te]);if(Oe(G),se){const Je=RR(r.errors,n,te),_e=RR(je,n,Je.name||te);ae=_e.error,te=_e.name,Z=_n(je)}}else x([te],!0),ae=(await OR(de,o,g,t.shouldUseNativeValidation))[te],x([te]),Oe(G),se&&(ae?Z=!1:c.isValid&&(Z=await P(n,!0)));se&&(de._f.deps&&q(de._f.deps),E(te,Z,ae,Be))}},U=(V,K)=>{if(Le(r.errors,K)&&V.focus)return V.focus(),1},q=async(V,K={})=>{let te,se;const de=Td(V);if(t.resolver){const fe=await O(lr(V)?V:de);te=_n(fe),se=V?!de.some(Oe=>Le(fe,Oe)):te}else V?(se=(await Promise.all(de.map(async fe=>{const Oe=Le(n,fe);return await P(Oe&&Oe._f?{[fe]:Oe}:Oe)}))).every(Boolean),!(!se&&!r.isValid)&&S()):se=te=await P(n);return f.state.next({...!Ja(V)||c.isValid&&te!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:te}:{},errors:r.errors}),K.shouldFocus&&!se&&$d(n,U,V?de:s.mount),se},ie=V=>{const K={...i.mount?o:a};return lr(V)?K:Ja(V)?Le(K,V):V.map(te=>Le(K,te))},oe=(V,K)=>({invalid:!!Le((K||r).errors,V),isDirty:!!Le((K||r).dirtyFields,V),error:Le((K||r).errors,V),isValidating:!!Le(r.validatingFields,V),isTouched:!!Le((K||r).touchedFields,V)}),Ee=V=>{V&&Td(V).forEach(K=>Cr(r.errors,K)),f.state.next({errors:V?r.errors:{}})},pe=(V,K,te)=>{const se=(Le(n,V,{_f:{}})._f||{}).ref,de=Le(r.errors,V)||{},{ref:fe,message:Oe,type:ae,...Z}=de;Ut(r.errors,V,{...Z,...K,ref:se}),f.state.next({name:V,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&se&&se.focus&&se.focus()},Te=(V,K)=>Ro(V)?f.values.subscribe({next:te=>V($(void 0,K),te)}):$(V,K,!0),ye=(V,K={})=>{for(const te of V?Td(V):s.mount)s.mount.delete(te),s.array.delete(te),K.keepValue||(Cr(n,te),Cr(o,te)),!K.keepError&&Cr(r.errors,te),!K.keepDirty&&Cr(r.dirtyFields,te),!K.keepTouched&&Cr(r.touchedFields,te),!K.keepIsValidating&&Cr(r.validatingFields,te),!t.shouldUnregister&&!K.keepDefaultValue&&Cr(a,te);f.values.next({values:{...o}}),f.state.next({...r,...K.keepDirty?{isDirty:j()}:{}}),!K.keepIsValid&&S()},be=({disabled:V,name:K,field:te,fields:se,value:de})=>{if(ta(V)&&i.mount||V){const fe=V?void 0:lr(de)?Kb(te?te._f:Le(se,K)._f):de;Ut(o,K,fe),C(K,fe,!1,!1,!0)}},we=(V,K={})=>{let te=Le(n,V);const se=ta(K.disabled)||ta(e.disabled);return Ut(n,V,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:V}},name:V,mount:!0,...K}}),s.mount.add(V),te?be({field:te,disabled:ta(K.disabled)?K.disabled:e.disabled,name:V,value:K.value}):_(V,!0,K.value),{...se?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:qc(K.min),max:qc(K.max),minLength:qc(K.minLength),maxLength:qc(K.maxLength),pattern:qc(K.pattern)}:{},name:V,onChange:B,onBlur:B,ref:de=>{if(de){we(V,K),te=Le(n,V);const fe=lr(de.value)&&de.querySelectorAll&&de.querySelectorAll("input,select,textarea")[0]||de,Oe=Sre(fe),ae=te._f.refs||[];if(Oe?ae.find(Z=>Z===fe):fe===te._f.ref)return;Ut(n,V,{_f:{...te._f,...Oe?{refs:[...ae.filter(qb),fe,...Array.isArray(Le(a,V))?[{}]:[]],ref:{type:fe.type,name:V}}:{ref:fe}}}),_(V,!1,void 0,fe)}else te=Le(n,V,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(e3(s.array,V)&&i.action)&&s.unMount.add(V)}}},ve=()=>t.shouldFocusError&&$d(n,U,s.mount),De=V=>{ta(V)&&(f.state.next({disabled:V}),$d(n,(K,te)=>{const se=Le(n,te);se&&(K.disabled=se._f.disabled||V,Array.isArray(se._f.refs)&&se._f.refs.forEach(de=>{de.disabled=se._f.disabled||V}))},0,!1))},Me=(V,K)=>async te=>{let se;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let de=xn(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:fe,values:Oe}=await w();r.errors=fe,de=Oe}else await P(n);if(Cr(r.errors,"root"),_n(r.errors)){f.state.next({errors:{}});try{await V(de,te)}catch(fe){se=fe}}else K&&await K({...r.errors},te),ve(),setTimeout(ve);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_n(r.errors)&&!se,submitCount:r.submitCount+1,errors:r.errors}),se)throw se},Qe=(V,K={})=>{Le(n,V)&&(lr(K.defaultValue)?W(V,xn(Le(a,V))):(W(V,K.defaultValue),Ut(a,V,xn(K.defaultValue))),K.keepTouched||Cr(r.touchedFields,V),K.keepDirty||(Cr(r.dirtyFields,V),r.isDirty=K.defaultValue?j(V,xn(Le(a,V))):j()),K.keepError||(Cr(r.errors,V),c.isValid&&S()),f.state.next({...r}))},Ne=(V,K={})=>{const te=V?xn(V):a,se=xn(te),de=_n(V),fe=de?a:se;if(K.keepDefaultValues||(a=te),!K.keepValues){if(K.keepDirtyValues)for(const Oe of s.mount)Le(r.dirtyFields,Oe)?Ut(fe,Oe,Le(o,Oe)):W(Oe,Le(fe,Oe));else{if($_&&lr(V))for(const Oe of s.mount){const ae=Le(n,Oe);if(ae&&ae._f){const Z=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Yv(Z)){const G=Z.closest("form");if(G){G.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?xn(a):{}:xn(fe),f.array.next({values:{...fe}}),f.values.next({values:{...fe}})}s={mount:K.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:de?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!ci(V,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:de?{}:K.keepDirtyValues?K.keepDefaultValues&&o?eh(a,o):r.dirtyFields:K.keepDefaultValues&&V?eh(a,V):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ae=(V,K)=>Ne(Ro(V)?V(o):V,K);return{control:{register:we,unregister:ye,getFieldState:oe,handleSubmit:Me,setError:pe,_executeSchema:w,_getWatch:$,_getDirty:j,_updateValid:S,_removeUnmounted:k,_updateFieldArray:m,_updateDisabledField:be,_getFieldArray:F,_reset:Ne,_resetDefaultValues:()=>Ro(t.defaultValues)&&t.defaultValues().then(V=>{Ae(V,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:De,_subjects:f,_proxyFormState:c,_setErrors:h,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(V){i=V},get _defaultValues(){return a},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:q,register:we,handleSubmit:Me,watch:Te,setValue:W,getValues:ie,reset:Ae,resetField:Qe,clearErrors:Ee,unregister:ye,setError:pe,setFocus:(V,K={})=>{const te=Le(n,V),se=te&&te._f;if(se){const de=se.refs?se.refs[0]:se.ref;de.focus&&(de.focus(),K.shouldSelect&&de.select())}},getFieldState:oe}}function h3(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:Ro(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ro(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Tre(e),formState:n});const o=t.current.control;return o._options=e,j_({subject:o._subjects.state,next:i=>{o3(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ke.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),ke.useEffect(()=>{e.values&&!ci(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=a3(n,o),t.current}var v3=d.createContext(void 0),rx=globalThis&&globalThis.__assign||function(){return rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=d.useState(!1),l=u[0],c=u[1],f=!e||!s||o,p=J8(function(v){var g=v.currentLocation,y=v.nextLocation;if(f)return!1;var S=t||g.pathname,x=y.pathname.startsWith(S),m=y.pathname.startsWith("".concat(S,"/show")),b=x&&!m;return!b});d.useEffect(function(){if(p.state==="blocked"){if(f){p.proceed();return}c(!0)}},[p.state]),d.useEffect(function(){if(l){var v=window.confirm(n("ra.message.unsaved_changes"));v?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),d.useEffect(function(){var v=function(g){g.preventDefault(),g.returnValue=!0};if(!f)return window.addEventListener("beforeunload",v),function(){window.removeEventListener("beforeunload",v)}},[f])},Vre=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return zre(r,n,a),null};function Ure(e,t){var r=sM({},Wre(e,t),t);return r}function Wre(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var y3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},Hre=function(e,t){t===void 0&&(t=!0);var r=zm(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=ur();d.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},qre=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},ax=globalThis&&globalThis.__assign||function(){return ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Jre(e){return e?e.hasOwnProperty("message"):!1}var Qi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Xi=function(e){return TA(e,function(){for(var t=[],r=0;re?Qi(t,{max:e},r,n):void 0}});Xi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gi(r)&&re?Qi(t,{max:e},r,n):void 0}});Xi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gi(t)&&isNaN(Number(t))?Qi(e,void 0,t,r):void 0}});var rne=TA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gi(r)&&typeof r=="string"&&!e.test(r)?Qi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Xi(function(e){return e===void 0&&(e="ra.validation.email"),rne(Yre,e)});var nne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xi(function(e,t){return t===void 0&&(t=nne),function(r,n){return!Gi(r)&&e.indexOf(r)===-1?Qi(t,{list:e},r,n):void 0}});var ane=d.createContext(null),one=function(){var e=d.useContext(v3);return e},ine=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=q3(o),s=_r(t),u=xc(),l=u.getValues,c=u.resetField,f=u.formState,p=u.reset,v=qt(s,i),g=qt(l(),i),y=f.dirtyFields,S=Object.keys(y).includes(i);d.useEffect(function(){if(!(a==null||g!=null||v!=null||S)){var x=i.split(".").some(function(h){return sne.test(h)});if(x){var m=i.split(".").slice(0,-1).join("."),b=qt(l(),m);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},sne=/^\d+$/,lne=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,s=e.translateChoice,u=s===void 0?!0:s,l=et(),c=d.useCallback(function(v){if(d.isValidElement(r))return d.createElement(bc,{value:v},r);var g=typeof r=="function"?r(v):qt(v,r);return d.isValidElement(g)?g:u?l(String(g),{_:g}):String(g)},[r,l,u]),f=d.useCallback(function(v){return qt(v,a)},[a]),p=d.useCallback(function(v){return qt(v,i)},[i]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},une=function(){var e=d.useContext(ane);return e},cne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const dne=cne;var fs=globalThis&&globalThis.__assign||function(){return fs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var _3=function(){return d.useContext(w3)},sx=globalThis&&globalThis.__assign||function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Nne=function(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Lne=function(e,t){var r=_3(),n=r.register,a=r.unregister;d.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},Dne=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return C3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},C3=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},dd=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(d.Children.forEach(e,function(a){if(d.isValidElement(a)){if(a.type===d.Fragment){var o=dd(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},E3=d.createContext(!1),Bne=E3.Provider,zne=function(){return d.useContext(E3)},Vne=function(e){Pne();var t=ll(),r=Mne(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.requireAuth,p=e.ready,v=d.useState(f),g=v[0],y=v[1],S=d.useState(f),x=S[0],m=S[1],b=J3();if(d.useEffect(function(){f&&b(void 0,!1).then(function(){y(!1)}).catch(function(){}).finally(function(){m(!1)})},[b,f]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(p,null)}return o==="loading"||x?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):g?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement(Lae,null)})):d.createElement(ws,null,a,d.createElement(zr,{path:"/*",element:d.createElement(Bne,{value:!!l},d.createElement(s,null,d.createElement(ws,null,n,d.Children.map(i,function(h){return d.createElement(zr,{key:h.props.name,path:"".concat(h.props.name,"/*"),element:h})}),d.createElement(zr,{path:"/",element:l?d.createElement($ae,{authParams:Une,component:l}):i.length>0?d.createElement(tz,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(u,null)}))))}))},Une={params:{route:"dashboard"}},O3=d.createContext("React Admin"),Wne=O3.Provider,P3=function(){return d.useContext(O3)},Hne=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},qne=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return b3(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},Kne=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?AR:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,p=e.error,v=p===void 0?qne:p,g=e.layout,y=g===void 0?Hne:g,S=e.loading,x=S===void 0?AR:S,m=e.loginPage,b=m===void 0?!1:m,h=e.ready,_=h===void 0?lae:h,C=e.requireAuth,E=C===void 0?!1:C,w=e.title,O=w===void 0?"React Admin":w;d.useEffect(function(){if(!(f||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var k=new Image;k.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var P=function(k,j){return n(j)};return d.createElement(Wne,{value:O},d.createElement(S3,{onError:P,fallbackRender:function(k){var j=k.error,$=k.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(v,{error:j,errorInfo:r,resetErrorBoundary:$}))}},d.createElement(ws,null,b!==!1&&b!==!0?d.createElement(zr,{path:"/login",element:IR(b)}):null,o!==!1&&o!==!0?d.createElement(zr,{path:"/auth-callback",element:IR(o)}):null,d.createElement(zr,{path:"/*",element:d.createElement(Vne,{catchAll:s,dashboard:l,layout:y,loading:x,requireAuth:E,ready:_},u)}))))},IR=function(e){return d.isValidElement(e)?e:d.createElement(e)},AR=function(){return null},R3=function(e){return null};R3.raName="CustomRoutes";var T3=d.createContext(void 0),ul=function(e){var t=e.children,r=e.value;return r?d.createElement(T3.Provider,{value:r},t):t},Gne=function(e){var t=e.value,r=e.children;return t?d.createElement(ul,{value:t},r):r},$3={exports:{}},Ft={};/** * @license React * react-is.production.min.js * @@ -85,27 +85,27 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var N_=Symbol.for("react.element"),L_=Symbol.for("react.portal"),Um=Symbol.for("react.fragment"),Wm=Symbol.for("react.strict_mode"),Hm=Symbol.for("react.profiler"),qm=Symbol.for("react.provider"),Km=Symbol.for("react.context"),Qne=Symbol.for("react.server_context"),Gm=Symbol.for("react.forward_ref"),Qm=Symbol.for("react.suspense"),Xm=Symbol.for("react.suspense_list"),Ym=Symbol.for("react.memo"),Jm=Symbol.for("react.lazy"),Xne=Symbol.for("react.offscreen"),$3;$3=Symbol.for("react.module.reference");function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N_:switch(e=e.type,e){case Um:case Hm:case Wm:case Qm:case Xm:return e;default:switch(e=e&&e.$$typeof,e){case Qne:case Km:case Gm:case Jm:case Ym:case qm:return e;default:return t}}case L_:return t}}}Ft.ContextConsumer=Km;Ft.ContextProvider=qm;Ft.Element=N_;Ft.ForwardRef=Gm;Ft.Fragment=Um;Ft.Lazy=Jm;Ft.Memo=Ym;Ft.Portal=L_;Ft.Profiler=Hm;Ft.StrictMode=Wm;Ft.Suspense=Qm;Ft.SuspenseList=Xm;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return ma(e)===Km};Ft.isContextProvider=function(e){return ma(e)===qm};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N_};Ft.isForwardRef=function(e){return ma(e)===Gm};Ft.isFragment=function(e){return ma(e)===Um};Ft.isLazy=function(e){return ma(e)===Jm};Ft.isMemo=function(e){return ma(e)===Ym};Ft.isPortal=function(e){return ma(e)===L_};Ft.isProfiler=function(e){return ma(e)===Hm};Ft.isStrictMode=function(e){return ma(e)===Wm};Ft.isSuspense=function(e){return ma(e)===Qm};Ft.isSuspenseList=function(e){return ma(e)===Xm};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Um||e===Hm||e===Wm||e===Qm||e===Xm||e===Xne||typeof e=="object"&&e!==null&&(e.$$typeof===Jm||e.$$typeof===Ym||e.$$typeof===qm||e.$$typeof===Km||e.$$typeof===Gm||e.$$typeof===$3||e.getModuleId!==void 0)};Ft.typeOf=ma;T3.exports=Ft;var lx=T3.exports,Yl=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(ul,{value:a},d.createElement(ws,null,t&&d.createElement(zr,{path:"create/*",element:th(t)}),o&&d.createElement(zr,{path:":id/show/*",element:th(o)}),r&&d.createElement(zr,{path:":id/*",element:th(r)}),n&&d.createElement(zr,{path:"/*",element:d.createElement(OJ,{storeKey:"".concat(a,".list.scrollPosition")},th(n))}),e.children))},th=function(e){if(d.isValidElement(e))return e;if(lx.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};Yl.raName="Resource";Yl.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var D_=d.createContext(void 0),Yne={getSource:function(e){return e},getLabel:function(e){return e}},k3=D_.Provider,Jne=function(){var e=d.useContext(D_);return e||Yne},Zne=function(){return d.useContext(D_)},sp=function(){return S3().definitions},$t={};/*! + */var N_=Symbol.for("react.element"),L_=Symbol.for("react.portal"),Vm=Symbol.for("react.fragment"),Um=Symbol.for("react.strict_mode"),Wm=Symbol.for("react.profiler"),Hm=Symbol.for("react.provider"),qm=Symbol.for("react.context"),Qne=Symbol.for("react.server_context"),Km=Symbol.for("react.forward_ref"),Gm=Symbol.for("react.suspense"),Qm=Symbol.for("react.suspense_list"),Xm=Symbol.for("react.memo"),Ym=Symbol.for("react.lazy"),Xne=Symbol.for("react.offscreen"),k3;k3=Symbol.for("react.module.reference");function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N_:switch(e=e.type,e){case Vm:case Wm:case Um:case Gm:case Qm:return e;default:switch(e=e&&e.$$typeof,e){case Qne:case qm:case Km:case Ym:case Xm:case Hm:return e;default:return t}}case L_:return t}}}Ft.ContextConsumer=qm;Ft.ContextProvider=Hm;Ft.Element=N_;Ft.ForwardRef=Km;Ft.Fragment=Vm;Ft.Lazy=Ym;Ft.Memo=Xm;Ft.Portal=L_;Ft.Profiler=Wm;Ft.StrictMode=Um;Ft.Suspense=Gm;Ft.SuspenseList=Qm;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return ma(e)===qm};Ft.isContextProvider=function(e){return ma(e)===Hm};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N_};Ft.isForwardRef=function(e){return ma(e)===Km};Ft.isFragment=function(e){return ma(e)===Vm};Ft.isLazy=function(e){return ma(e)===Ym};Ft.isMemo=function(e){return ma(e)===Xm};Ft.isPortal=function(e){return ma(e)===L_};Ft.isProfiler=function(e){return ma(e)===Wm};Ft.isStrictMode=function(e){return ma(e)===Um};Ft.isSuspense=function(e){return ma(e)===Gm};Ft.isSuspenseList=function(e){return ma(e)===Qm};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vm||e===Wm||e===Um||e===Gm||e===Qm||e===Xne||typeof e=="object"&&e!==null&&(e.$$typeof===Ym||e.$$typeof===Xm||e.$$typeof===Hm||e.$$typeof===qm||e.$$typeof===Km||e.$$typeof===k3||e.getModuleId!==void 0)};Ft.typeOf=ma;$3.exports=Ft;var lx=$3.exports,Yl=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(ul,{value:a},d.createElement(ws,null,t&&d.createElement(zr,{path:"create/*",element:th(t)}),o&&d.createElement(zr,{path:":id/show/*",element:th(o)}),r&&d.createElement(zr,{path:":id/*",element:th(r)}),n&&d.createElement(zr,{path:"/*",element:d.createElement(OJ,{storeKey:"".concat(a,".list.scrollPosition")},th(n))}),e.children))},th=function(e){if(d.isValidElement(e))return e;if(lx.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};Yl.raName="Resource";Yl.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var D_=d.createContext(void 0),Yne={getSource:function(e){return e},getLabel:function(e){return e}},j3=D_.Provider,Jne=function(){var e=d.useContext(D_);return e||Yne},Zne=function(){return d.useContext(D_)},sp=function(){return _3().definitions},$t={};/*! * inflection * Copyright(c) 2011 Ben Lin * MIT Licensed * * @fileoverview * A port of inflection-js to node.js module. - */Object.defineProperty($t,"__esModule",{value:!0});var j3=$t.transform=$t.ordinalize=$t.foreignKey=$t.classify=$t.tableize=$t.demodulize=$t.titleize=$t.dasherize=$t.capitalize=ey=$t.humanize=$t.underscore=$t.camelize=N3=$t.inflect=V_=$t.singularize=F3=$t.pluralize=void 0;const ag=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],xe={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},I3=[[xe.plural.men],[xe.plural.people],[xe.plural.children],[xe.plural.tia],[xe.plural.analyses],[xe.plural.databases],[xe.plural.drives],[xe.plural.hives],[xe.plural.curves],[xe.plural.lrves],[xe.plural.foves],[xe.plural.aeiouyies],[xe.plural.series],[xe.plural.movies],[xe.plural.xes],[xe.plural.mice],[xe.plural.buses],[xe.plural.oes],[xe.plural.shoes],[xe.plural.crises],[xe.plural.octopuses],[xe.plural.aliases],[xe.plural.summonses],[xe.plural.oxen],[xe.plural.matrices],[xe.plural.feet],[xe.plural.teeth],[xe.plural.geese],[xe.plural.quizzes],[xe.plural.whereases],[xe.plural.criteria],[xe.plural.genera],[xe.singular.man,"$1en"],[xe.singular.person,"$1ople"],[xe.singular.child,"$1ren"],[xe.singular.drive,"$1s"],[xe.singular.ox,"$1en"],[xe.singular.axis,"$1es"],[xe.singular.octopus,"$1uses"],[xe.singular.alias,"$1es"],[xe.singular.summons,"$1es"],[xe.singular.bus,"$1ses"],[xe.singular.buffalo,"$1oes"],[xe.singular.tium,"$1a"],[xe.singular.sis,"ses"],[xe.singular.ffe,"$1$2ves"],[xe.singular.hive,"$1ves"],[xe.singular.aeiouyy,"$1ies"],[xe.singular.matrix,"$1ices"],[xe.singular.vertex,"$1ices"],[xe.singular.x,"$1es"],[xe.singular.mouse,"$1ice"],[xe.singular.foot,"feet"],[xe.singular.tooth,"teeth"],[xe.singular.goose,"geese"],[xe.singular.quiz,"$1zes"],[xe.singular.whereas,"$1es"],[xe.singular.criterion,"$1a"],[xe.singular.genus,"genera"],[xe.singular.s,"s"],[xe.singular.common,"s"]],A3=[[xe.singular.man],[xe.singular.person],[xe.singular.child],[xe.singular.drive],[xe.singular.ox],[xe.singular.axis],[xe.singular.octopus],[xe.singular.alias],[xe.singular.summons],[xe.singular.bus],[xe.singular.buffalo],[xe.singular.tium],[xe.singular.sis],[xe.singular.ffe],[xe.singular.hive],[xe.singular.aeiouyy],[xe.singular.x],[xe.singular.matrix],[xe.singular.mouse],[xe.singular.foot],[xe.singular.tooth],[xe.singular.goose],[xe.singular.quiz],[xe.singular.whereas],[xe.singular.criterion],[xe.singular.genus],[xe.plural.men,"$1an"],[xe.plural.people,"$1rson"],[xe.plural.children,"$1"],[xe.plural.databases,"$1"],[xe.plural.drives,"$1"],[xe.plural.genera,"genus"],[xe.plural.criteria,"$1on"],[xe.plural.tia,"$1um"],[xe.plural.analyses,"$1$2sis"],[xe.plural.hives,"$1ve"],[xe.plural.curves,"$1"],[xe.plural.lrves,"$1f"],[xe.plural.aves,"$1ve"],[xe.plural.foves,"$1fe"],[xe.plural.movies,"$1ovie"],[xe.plural.aeiouyies,"$1y"],[xe.plural.series,"$1eries"],[xe.plural.xes,"$1"],[xe.plural.mice,"$1ouse"],[xe.plural.buses,"$1"],[xe.plural.oes,"$1"],[xe.plural.shoes,"$1"],[xe.plural.crises,"$1is"],[xe.plural.octopuses,"$1us"],[xe.plural.aliases,"$1"],[xe.plural.summonses,"$1"],[xe.plural.oxen,"$1"],[xe.plural.matrices,"$1ix"],[xe.plural.vertices,"$1ex"],[xe.plural.feet,"foot"],[xe.plural.teeth,"tooth"],[xe.plural.geese,"goose"],[xe.plural.quizzes,"$1"],[xe.plural.whereases,"$1"],[xe.plural.ss,"ss"],[xe.plural.s,""]],eae=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],tae=new RegExp("(_ids|_id)$","g"),M3=new RegExp("_","g"),rae=new RegExp("[ _]","g"),nae=new RegExp("([A-Z])","g"),aae=new RegExp("^_");function og(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const a of t)if(e.match(a[0]))return a[1]!==void 0?e.replace(a[0],a[1]):e;return e}function B_(e,t){return og(e,I3,ag,t)}var F3=$t.pluralize=B_;function z_(e,t){return og(e,A3,ag,t)}var V_=$t.singularize=z_;function oae(e,t,r,n){return isNaN(t)?e:t===1?og(e,A3,ag,r):og(e,I3,ag,n)}var N3=$t.inflect=oae;function U_(e,t){const r=e.split("/"),n=r.length;let a,o,i,s;for(let u=0;u1?F3(r):V_(r))});return o}},Nt=function(e){var t=d.useContext(R3);return e&&e.resource||t},Wo=function(e){var t=Nt(e),r=sp(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return T_({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},H_=function(e){var t=Wo({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?qt(r,t):d.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},H3=function(e){var t=Jne();return t.getSource(e)},q3=function(){var e=et(),t=Nt(),r=Zne();return d.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,uae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},K3=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=q3();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,o({label:r,resource:n,source:t}),a&&d.createElement("span",{"aria-hidden":"true"}," *"))};K3.displayName="FieldTitle";const no=d.memo(K3);var MR=globalThis&&globalThis.__assign||function(){return MR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return[""];var i=cae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=j3(u.replace(/\./g," "),["underscore","humanize"]);return n?[FR(n,s),{_:l}]:r?[r,{_:l}]:[FR(a||"undefined",s),{_:l}]},FR=function(e,t){return"resources.".concat(e,".fields.").concat(t)},cae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){dae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},dae=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function fae(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var pae=typeof window<"u"?d.useLayoutEffect:d.useEffect,Mt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return pae(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,o,t,n,s]);var l=Mt(function(c,f){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},hae=function(e){var t=jm().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},vae=function(e){var t=jm().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},gae=function(){var e=jm().reset;return e},mae=function(){var e=zo(),t=Fa(),r=gae(),n=lo(),a=d.useRef(n),o=rn(),i=d.useRef(o),s=qi(),u=qa("".concat(s,"/").concat(ym.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=d.useCallback(function(c,f,p){return c===void 0&&(c={}),f===void 0&&(f=u),p===void 0&&(p=!0),e?e.logout(c).then(function(v){if(v===!1||f===!1){r(),t.clear();return}var g=v||f;if(g!=null&&g.startsWith("http"))return r(),t.clear(),window.location.href=g,g;var y=g.split("?"),S={pathname:y[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),y[1]&&(S.search=y[1]),a.current(S,x),r(),t.clear(),v}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l};const Cc=mae;var ps=globalThis&&globalThis.__assign||function(){return ps=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},LR=function(){},hs=globalThis&&globalThis.__assign||function(){return hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Ec(t);var i=Q3(t).permissions;if(a)return d.createElement(a,jd({permissions:i},o));if(n)return n(jd({permissions:i},o));if(r)return r(jd({permissions:i},o))};const $ae=Tae;var kae=function(){var e=zo(),t=rn(),r=t.state,n=lo(),a=qi(),o=KA().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=qa("".concat(a,"/").concat(ym.afterLoginUrl)),l=d.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var v=f||i+s||u;n(v)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l};const X3=kae;var jae="AUTH_LOGIN",Iae="AUTH_CHECK",Aae="AUTH_ERROR",Mae="AUTH_LOGOUT",Fae="AUTH_GET_PERMISSIONS";const Nae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Id=globalThis&&globalThis.__assign||function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return ya(r&&e?"".concat(r,".").concat(e):r??e,t)},K_=function(){var e=d.useContext(b3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},Yae=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Br(Oc,--jn):0,Qu--,br===10&&(Qu=1,ay--),br}function Wn(){return br=jn2||Cf(br)>3?"":" "}function Ooe(e,t){for(;--t&&Wn()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return lp(e,zh()+(t<6&&to()==32&&Wn()==32))}function dx(e){for(;Wn();)switch(br){case e:return jn;case 34:case 39:e!==34&&e!==39&&dx(br);break;case 40:e===41&&dx(e);break;case 92:Wn();break}return jn}function Poe(e,t){for(;Wn()&&e+br!==47+10;)if(e+br===42+42&&to()===47)break;return"/*"+lp(t,jn-1)+"*"+ny(e===47?e:Wn())}function Roe(e){for(;!Cf(to());)Wn();return lp(e,jn)}function Toe(e){return sF(Uh("",null,null,null,[""],e=iF(e),0,[0],e))}function Uh(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,f=i,p=0,v=0,g=0,y=1,S=1,x=1,m=0,b="",h=a,_=o,C=n,E=b;S;)switch(g=m,m=Wn()){case 40:if(g!=108&&Br(E,f-1)==58){cx(E+=Tt(Vh(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Vh(m);break;case 9:case 10:case 13:case 32:E+=Eoe(g);break;case 92:E+=Ooe(zh()-1,7);continue;case 47:switch(to()){case 42:case 47:rh($oe(Poe(Wn(),zh()),t,r),u);break;default:E+="/"}break;case 123*y:s[l++]=Ka(E)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+c:x==-1&&(E=Tt(E,/\f/g,"")),v>0&&Ka(E)-f&&rh(v>32?UR(E+";",n,r,f-1):UR(Tt(E," ","")+";",n,r,f-2),u);break;case 59:E+=";";default:if(rh(C=VR(E,t,r,l,c,a,s,b,h=[],_=[],f),o),m===123)if(c===0)Uh(E,t,C,C,h,o,f,s,_);else switch(p===99&&Br(E,3)===110?100:p){case 100:case 108:case 109:case 115:Uh(e,C,C,n&&rh(VR(e,C,C,0,0,a,s,b,a,h=[],f),_),a,_,f,s,n?h:_);break;default:Uh(E,C,C,C,[""],_,0,s,_)}}l=c=v=0,y=x=1,b=E="",f=i;break;case 58:f=1+Ka(E),v=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&Coe()==125)continue}switch(E+=ny(m),m*y){case 38:x=c>0?1:(E+="\f",-1);break;case 44:s[l++]=(Ka(E)-1)*x,x=1;break;case 64:to()===45&&(E+=Vh(Wn())),p=to(),c=f=Ka(b=E+=Roe(zh())),m++;break;case 45:g===45&&Ka(E)==2&&(y=0)}}return o}function VR(e,t,r,n,a,o,i,s,u,l,c){for(var f=a-1,p=a===0?o:[""],v=X_(p),g=0,y=0,S=0;g0?p[x]+" "+m:Tt(m,/&\f/g,p[x])))&&(u[S++]=b);return oy(e,t,r,a===0?G_:s,u,l,c)}function $oe(e,t,r){return oy(e,t,r,rF,ny(_oe()),_f(e,2,-2),0)}function UR(e,t,r,n){return oy(e,t,r,Q_,_f(e,0,n),_f(e,n+1,-1),n)}function cu(e,t){for(var r="",n=X_(e),a=0;a6)switch(Br(e,t+1)){case 109:if(Br(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+ig+(Br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cx(e,"stretch")?lF(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Br(e,t+1)!==115)break;case 6444:switch(Br(e,Ka(e)-3-(~cx(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Br(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Br(e,t+11)){case 114:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Yr+e+e}return e}var Doe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Q_:t.return=lF(t.value,t.length);break;case nF:return cu([Gc(t,{value:Tt(t.value,"@","@"+Rt)})],a);case G_:if(t.length)return Soe(t.props,function(o){switch(woe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Gc(t,{props:[Tt(o,/:(read-\w+)/,":"+ig+"$1")]})],a);case"::placeholder":return cu([Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+ig+"$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Boe=[Doe],uF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||Boe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),x=1;x1?N3(r):V_(r))});return o}},Nt=function(e){var t=d.useContext(T3);return e&&e.resource||t},Wo=function(e){var t=Nt(e),r=sp(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return T_({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},H_=function(e){var t=Wo({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?qt(r,t):d.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},q3=function(e){var t=Jne();return t.getSource(e)},K3=function(){var e=et(),t=Nt(),r=Zne();return d.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,uae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},G3=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=K3();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,o({label:r,resource:n,source:t}),a&&d.createElement("span",{"aria-hidden":"true"}," *"))};G3.displayName="FieldTitle";const no=d.memo(G3);var MR=globalThis&&globalThis.__assign||function(){return MR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return[""];var i=cae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=I3(u.replace(/\./g," "),["underscore","humanize"]);return n?[FR(n,s),{_:l}]:r?[r,{_:l}]:[FR(a||"undefined",s),{_:l}]},FR=function(e,t){return"resources.".concat(e,".fields.").concat(t)},cae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){dae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},dae=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function fae(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var pae=typeof window<"u"?d.useLayoutEffect:d.useEffect,Mt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return pae(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,o,t,n,s]);var l=Mt(function(c,f){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},hae=function(e){var t=km().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},vae=function(e){var t=km().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},gae=function(){var e=km().reset;return e},mae=function(){var e=zo(),t=Fa(),r=gae(),n=lo(),a=d.useRef(n),o=rn(),i=d.useRef(o),s=qi(),u=qa("".concat(s,"/").concat(mm.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=d.useCallback(function(c,f,p){return c===void 0&&(c={}),f===void 0&&(f=u),p===void 0&&(p=!0),e?e.logout(c).then(function(v){if(v===!1||f===!1){r(),t.clear();return}var g=v||f;if(g!=null&&g.startsWith("http"))return r(),t.clear(),window.location.href=g,g;var y=g.split("?"),S={pathname:y[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),y[1]&&(S.search=y[1]),a.current(S,x),r(),t.clear(),v}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l};const Cc=mae;var ps=globalThis&&globalThis.__assign||function(){return ps=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},LR=function(){},hs=globalThis&&globalThis.__assign||function(){return hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Ec(t);var i=X3(t).permissions;if(a)return d.createElement(a,jd({permissions:i},o));if(n)return n(jd({permissions:i},o));if(r)return r(jd({permissions:i},o))};const $ae=Tae;var kae=function(){var e=zo(),t=rn(),r=t.state,n=lo(),a=qi(),o=GA().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=qa("".concat(a,"/").concat(mm.afterLoginUrl)),l=d.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var v=f||i+s||u;n(v)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l};const Y3=kae;var jae="AUTH_LOGIN",Iae="AUTH_CHECK",Aae="AUTH_ERROR",Mae="AUTH_LOGOUT",Fae="AUTH_GET_PERMISSIONS";const Nae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Id=globalThis&&globalThis.__assign||function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return ya(r&&e?"".concat(r,".").concat(e):r??e,t)},K_=function(){var e=d.useContext(x3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},Yae=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Br(Oc,--jn):0,Qu--,br===10&&(Qu=1,ny--),br}function Wn(){return br=jn2||Cf(br)>3?"":" "}function Ooe(e,t){for(;--t&&Wn()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return lp(e,zh()+(t<6&&to()==32&&Wn()==32))}function dx(e){for(;Wn();)switch(br){case e:return jn;case 34:case 39:e!==34&&e!==39&&dx(br);break;case 40:e===41&&dx(e);break;case 92:Wn();break}return jn}function Poe(e,t){for(;Wn()&&e+br!==47+10;)if(e+br===42+42&&to()===47)break;return"/*"+lp(t,jn-1)+"*"+ry(e===47?e:Wn())}function Roe(e){for(;!Cf(to());)Wn();return lp(e,jn)}function Toe(e){return lF(Uh("",null,null,null,[""],e=sF(e),0,[0],e))}function Uh(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,f=i,p=0,v=0,g=0,y=1,S=1,x=1,m=0,b="",h=a,_=o,C=n,E=b;S;)switch(g=m,m=Wn()){case 40:if(g!=108&&Br(E,f-1)==58){cx(E+=Tt(Vh(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Vh(m);break;case 9:case 10:case 13:case 32:E+=Eoe(g);break;case 92:E+=Ooe(zh()-1,7);continue;case 47:switch(to()){case 42:case 47:rh($oe(Poe(Wn(),zh()),t,r),u);break;default:E+="/"}break;case 123*y:s[l++]=Ka(E)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+c:x==-1&&(E=Tt(E,/\f/g,"")),v>0&&Ka(E)-f&&rh(v>32?UR(E+";",n,r,f-1):UR(Tt(E," ","")+";",n,r,f-2),u);break;case 59:E+=";";default:if(rh(C=VR(E,t,r,l,c,a,s,b,h=[],_=[],f),o),m===123)if(c===0)Uh(E,t,C,C,h,o,f,s,_);else switch(p===99&&Br(E,3)===110?100:p){case 100:case 108:case 109:case 115:Uh(e,C,C,n&&rh(VR(e,C,C,0,0,a,s,b,a,h=[],f),_),a,_,f,s,n?h:_);break;default:Uh(E,C,C,C,[""],_,0,s,_)}}l=c=v=0,y=x=1,b=E="",f=i;break;case 58:f=1+Ka(E),v=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&Coe()==125)continue}switch(E+=ry(m),m*y){case 38:x=c>0?1:(E+="\f",-1);break;case 44:s[l++]=(Ka(E)-1)*x,x=1;break;case 64:to()===45&&(E+=Vh(Wn())),p=to(),c=f=Ka(b=E+=Roe(zh())),m++;break;case 45:g===45&&Ka(E)==2&&(y=0)}}return o}function VR(e,t,r,n,a,o,i,s,u,l,c){for(var f=a-1,p=a===0?o:[""],v=X_(p),g=0,y=0,S=0;g0?p[x]+" "+m:Tt(m,/&\f/g,p[x])))&&(u[S++]=b);return ay(e,t,r,a===0?G_:s,u,l,c)}function $oe(e,t,r){return ay(e,t,r,nF,ry(_oe()),_f(e,2,-2),0)}function UR(e,t,r,n){return ay(e,t,r,Q_,_f(e,0,n),_f(e,n+1,-1),n)}function cu(e,t){for(var r="",n=X_(e),a=0;a6)switch(Br(e,t+1)){case 109:if(Br(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+og+(Br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cx(e,"stretch")?uF(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Br(e,t+1)!==115)break;case 6444:switch(Br(e,Ka(e)-3-(~cx(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Br(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Br(e,t+11)){case 114:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Yr+e+e}return e}var Doe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Q_:t.return=uF(t.value,t.length);break;case aF:return cu([Gc(t,{value:Tt(t.value,"@","@"+Rt)})],a);case G_:if(t.length)return Soe(t.props,function(o){switch(woe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Gc(t,{props:[Tt(o,/:(read-\w+)/,":"+og+"$1")]})],a);case"::placeholder":return cu([Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+og+"$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Boe=[Doe],cF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||Boe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),x=1;x=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Joe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zoe=!1,eie=/[A-Z]|^ms/g,tie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gF=function(t){return t.charCodeAt(1)===45},HR=function(t){return t!=null&&typeof t!="boolean"},Yb=tF(function(e){return gF(e)?e:e.replace(eie,"-$&").toLowerCase()}),qR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(tie,function(n,a,o){return Ga={name:a,styles:o,next:Ga},a})}return Joe[t]!==1&&!gF(t)&&typeof r=="number"&&r!==0?r+"px":r},rie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ef(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Ga={name:a.name,styles:a.styles,next:Ga},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ga={name:i.name,styles:i.styles,next:Ga},i=i.next;var s=o.styles+";";return s}return nie(e,t,r)}case"function":{if(e!==void 0){var u=Ga,l=r(e);return Ga=u,Ef(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function nie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?lie:uie},YR=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},cie=!1,die=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return hF(r,n,a),oie(function(){return vF(r,n,a)}),null},fie=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=YR(t,r,n),u=s||XR(a),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,v=1;vt(vie(a)?r:a):t;return R.jsx(sie,{styles:n})}/** + */var Fr=typeof Symbol=="function"&&Symbol.for,Y_=Fr?Symbol.for("react.element"):60103,J_=Fr?Symbol.for("react.portal"):60106,oy=Fr?Symbol.for("react.fragment"):60107,iy=Fr?Symbol.for("react.strict_mode"):60108,sy=Fr?Symbol.for("react.profiler"):60114,ly=Fr?Symbol.for("react.provider"):60109,uy=Fr?Symbol.for("react.context"):60110,Z_=Fr?Symbol.for("react.async_mode"):60111,cy=Fr?Symbol.for("react.concurrent_mode"):60111,dy=Fr?Symbol.for("react.forward_ref"):60112,fy=Fr?Symbol.for("react.suspense"):60113,zoe=Fr?Symbol.for("react.suspense_list"):60120,py=Fr?Symbol.for("react.memo"):60115,hy=Fr?Symbol.for("react.lazy"):60116,Voe=Fr?Symbol.for("react.block"):60121,Uoe=Fr?Symbol.for("react.fundamental"):60117,Woe=Fr?Symbol.for("react.responder"):60118,Hoe=Fr?Symbol.for("react.scope"):60119;function Xn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Y_:switch(e=e.type,e){case Z_:case cy:case oy:case sy:case iy:case fy:return e;default:switch(e=e&&e.$$typeof,e){case uy:case dy:case hy:case py:case ly:return e;default:return t}}case J_:return t}}}function fF(e){return Xn(e)===cy}Lt.AsyncMode=Z_;Lt.ConcurrentMode=cy;Lt.ContextConsumer=uy;Lt.ContextProvider=ly;Lt.Element=Y_;Lt.ForwardRef=dy;Lt.Fragment=oy;Lt.Lazy=hy;Lt.Memo=py;Lt.Portal=J_;Lt.Profiler=sy;Lt.StrictMode=iy;Lt.Suspense=fy;Lt.isAsyncMode=function(e){return fF(e)||Xn(e)===Z_};Lt.isConcurrentMode=fF;Lt.isContextConsumer=function(e){return Xn(e)===uy};Lt.isContextProvider=function(e){return Xn(e)===ly};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y_};Lt.isForwardRef=function(e){return Xn(e)===dy};Lt.isFragment=function(e){return Xn(e)===oy};Lt.isLazy=function(e){return Xn(e)===hy};Lt.isMemo=function(e){return Xn(e)===py};Lt.isPortal=function(e){return Xn(e)===J_};Lt.isProfiler=function(e){return Xn(e)===sy};Lt.isStrictMode=function(e){return Xn(e)===iy};Lt.isSuspense=function(e){return Xn(e)===fy};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oy||e===cy||e===sy||e===iy||e===fy||e===zoe||typeof e=="object"&&e!==null&&(e.$$typeof===hy||e.$$typeof===py||e.$$typeof===ly||e.$$typeof===uy||e.$$typeof===dy||e.$$typeof===Uoe||e.$$typeof===Woe||e.$$typeof===Hoe||e.$$typeof===Voe)};Lt.typeOf=Xn;dF.exports=Lt;var qoe=dF.exports,pF=qoe,Koe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Goe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hF={};hF[pF.ForwardRef]=Koe;hF[pF.Memo]=Goe;var Qoe=!0;function Xoe(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var vF=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Qoe===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},gF=function(t,r,n){vF(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Yoe(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Joe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zoe=!1,eie=/[A-Z]|^ms/g,tie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mF=function(t){return t.charCodeAt(1)===45},HR=function(t){return t!=null&&typeof t!="boolean"},Xb=rF(function(e){return mF(e)?e:e.replace(eie,"-$&").toLowerCase()}),qR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(tie,function(n,a,o){return Ga={name:a,styles:o,next:Ga},a})}return Joe[t]!==1&&!mF(t)&&typeof r=="number"&&r!==0?r+"px":r},rie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ef(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Ga={name:a.name,styles:a.styles,next:Ga},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ga={name:i.name,styles:i.styles,next:Ga},i=i.next;var s=o.styles+";";return s}return nie(e,t,r)}case"function":{if(e!==void 0){var u=Ga,l=r(e);return Ga=u,Ef(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function nie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?lie:uie},YR=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},cie=!1,die=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return vF(r,n,a),oie(function(){return gF(r,n,a)}),null},fie=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=YR(t,r,n),u=s||XR(a),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,v=1;vt(vie(a)?r:a):t;return R.jsx(sie,{styles:n})}/** * @mui/styled-engine v5.16.6 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function tC(e,t){return fx(e,t)}const SF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},gie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wF,StyledEngineProvider:hie,ThemeContext:up,css:gy,default:tC,internal_processStyles:SF,keyframes:Pc},Symbol.toStringTag,{value:"Module"}));function Co(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _F(e){if(!Co(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=_F(e[r])}),t}function Rr(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return Co(e)&&Co(t)&&Object.keys(t).forEach(a=>{Co(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Co(e[a])?n[a]=Rr(e[a],t[a],r):r.clone?n[a]=Co(t[a])?_F(t[a]):t[a]:n[a]=t[a]}),n}const mie=Object.freeze(Object.defineProperty({__proto__:null,default:Rr,isPlainObject:Co},Symbol.toStringTag,{value:"Module"})),yie=["values","unit","step"],bie=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>T({},r,{[n.key]:n.val}),{})};function CF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Pe(e,yie),o=bie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,v){const g=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:v)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rC[e]}px)`};function Aa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||JR;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||JR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rC).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function EF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function OF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Sie(e,...t){const r=EF(e),n=[r,...t].reduce((a,o)=>Rr(a,o),{});return OF(Object.keys(r),n)}function _ie(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function Zb({values:e,breakpoints:t,base:r}){const n=r||_ie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function ge(e){if(typeof e!="string")throw new Error(No(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Cie=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));function Xu(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function sg(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Xu(e,r)||n,t&&(a=t(a,n,e)),a}function vr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Xu(u,n)||{};return Aa(i,s,f=>{let p=sg(l,a,f);return f===p&&typeof f=="string"&&(p=sg(l,a,`${t}${f==="default"?"":ge(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Eie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Oie={m:"margin",p:"padding"},Pie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rie=Eie(e=>{if(e.length>2)if(ZR[e])e=ZR[e];else return[e];const[t,r]=e.split(""),n=Oie[t],a=Pie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nC,...aC];function cp(e,t,r,n){var a;const o=(a=Xu(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function oC(e){return cp(e,"spacing",8)}function Zs(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Tie(e,t){return r=>e.reduce((n,a)=>(n[a]=Zs(t,r),n),{})}function $ie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Rie(r),o=Tie(a,n),i=e[r];return Aa(e,i,o)}function PF(e,t){const r=oC(e.theme);return Object.keys(e).map(n=>$ie(e,t,n,r)).reduce(Ad,{})}function ar(e){return PF(e,nC)}ar.propTypes={};ar.filterProps=nC;function or(e){return PF(e,aC)}or.propTypes={};or.filterProps=aC;function kie(e=8){if(e.mui)return e;const t=oC({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function my(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Ad(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function oa(e){return typeof e!="number"?e:`${e}px solid`}function ba(e,t){return vr({prop:e,themeKey:"borders",transform:t})}const jie=ba("border",oa),Iie=ba("borderTop",oa),Aie=ba("borderRight",oa),Mie=ba("borderBottom",oa),Fie=ba("borderLeft",oa),Nie=ba("borderColor"),Lie=ba("borderTopColor"),Die=ba("borderRightColor"),Bie=ba("borderBottomColor"),zie=ba("borderLeftColor"),Vie=ba("outline",oa),Uie=ba("outlineColor"),yy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zs(t,n)});return Aa(e,e.borderRadius,r)}return null};yy.propTypes={};yy.filterProps=["borderRadius"];my(jie,Iie,Aie,Mie,Fie,Nie,Lie,Die,Bie,zie,yy,Vie,Uie);const by=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cp(e.theme,"spacing",8),r=n=>({gap:Zs(t,n)});return Aa(e,e.gap,r)}return null};by.propTypes={};by.filterProps=["gap"];const xy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({columnGap:Zs(t,n)});return Aa(e,e.columnGap,r)}return null};xy.propTypes={};xy.filterProps=["columnGap"];const wy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({rowGap:Zs(t,n)});return Aa(e,e.rowGap,r)}return null};wy.propTypes={};wy.filterProps=["rowGap"];const Wie=vr({prop:"gridColumn"}),Hie=vr({prop:"gridRow"}),qie=vr({prop:"gridAutoFlow"}),Kie=vr({prop:"gridAutoColumns"}),Gie=vr({prop:"gridAutoRows"}),Qie=vr({prop:"gridTemplateColumns"}),Xie=vr({prop:"gridTemplateRows"}),Yie=vr({prop:"gridTemplateAreas"}),Jie=vr({prop:"gridArea"});my(by,xy,wy,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie,Jie);function du(e,t){return t==="grey"?t:e}const Zie=vr({prop:"color",themeKey:"palette",transform:du}),ese=vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:du}),tse=vr({prop:"backgroundColor",themeKey:"palette",transform:du});my(Zie,ese,tse);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const rse=vr({prop:"width",transform:zn}),iC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||rC[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:zn(r)}};return Aa(e,e.maxWidth,t)}return null};iC.filterProps=["maxWidth"];const nse=vr({prop:"minWidth",transform:zn}),ase=vr({prop:"height",transform:zn}),ose=vr({prop:"maxHeight",transform:zn}),ise=vr({prop:"minHeight",transform:zn});vr({prop:"size",cssProperty:"width",transform:zn});vr({prop:"size",cssProperty:"height",transform:zn});const sse=vr({prop:"boxSizing"});my(rse,iC,nse,ase,ose,ise,sse);const lse={border:{themeKey:"borders",transform:oa},borderTop:{themeKey:"borders",transform:oa},borderRight:{themeKey:"borders",transform:oa},borderBottom:{themeKey:"borders",transform:oa},borderLeft:{themeKey:"borders",transform:oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yy},color:{themeKey:"palette",transform:du},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:du},backgroundColor:{themeKey:"palette",transform:du},p:{style:or},pt:{style:or},pr:{style:or},pb:{style:or},pl:{style:or},px:{style:or},py:{style:or},padding:{style:or},paddingTop:{style:or},paddingRight:{style:or},paddingBottom:{style:or},paddingLeft:{style:or},paddingX:{style:or},paddingY:{style:or},paddingInline:{style:or},paddingInlineStart:{style:or},paddingInlineEnd:{style:or},paddingBlock:{style:or},paddingBlockStart:{style:or},paddingBlockEnd:{style:or},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:by},rowGap:{style:wy},columnGap:{style:xy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:iC},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dp=lse;function use(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function cse(e,t){return typeof e=="function"?e(t):e}function RF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Xu(a,l)||{};return f?f(i):Aa(i,n,g=>{let y=sg(p,c,g);return g===y&&typeof g=="string"&&(y=sg(p,c,`${r}${g==="default"?"":ge(g)}`,g)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:dp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=EF(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(v=>{const g=cse(l[v],o);if(g!=null)if(typeof g=="object")if(i[v])p=Ad(p,e(v,g,o,i));else{const y=Aa({theme:o},g,S=>({[v]:S}));use(y,g)?p[v]=t({sx:g,theme:o}):p=Ad(p,y)}else p=Ad(p,e(v,g,o,i))}),OF(f,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const TF=RF();TF.filterProps=["sx"];const fp=TF;function $F(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const dse=["breakpoints","palette","spacing","shape"];function pp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Pe(e,dse),s=CF(r),u=kie(a);let l=Rr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:u,shape:T({},wie,o)},i);return l.applyStyles=$F,l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const fse=Object.freeze(Object.defineProperty({__proto__:null,default:pp,private_createBreakpoints:CF,unstable_applyStyles:$F},Symbol.toStringTag,{value:"Module"}));function pse(e){return Object.keys(e).length===0}function sC(e=null){const t=d.useContext(up);return!t||pse(t)?e:t}const hse=pp();function Sy(e=hse){return sC(e)}function vse({styles:e,themeId:t,defaultTheme:r={}}){const n=Sy(r),a=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(wF,{styles:a})}const gse=["sx"],mse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:dp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function _y(e){const{sx:t}=e,r=Pe(e,gse),{systemProps:n,otherProps:a}=mse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Co(s)?T({},n,s):n}:o=T({},n,t),T({},a,{sx:o})}const yse=Object.freeze(Object.defineProperty({__proto__:null,default:fp,extendSxProp:_y,unstable_createStyleFunctionSx:RF,unstable_defaultSxConfig:dp},Symbol.toStringTag,{value:"Module"})),eT=e=>e,bse=()=>{let e=eT;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eT}}},xse=bse(),lC=xse;function kF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(fp);return d.forwardRef(function(u,l){const c=Sy(r),f=_y(u),{className:p,component:v="div"}=f,g=Pe(f,wse);return R.jsx(o,T({as:v,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},g))})}const _se={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,t,r="Mui"){const n=_se[t];return n?`${r}-${n}`:`${lC.generate(e)}-${t}`}function We(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ue(e,a,r)}),n}const Cse=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jF(e){const t=`${e}`.match(Cse);return t&&t[1]||""}function IF(e,t=""){return e.displayName||e.name||jF(e)||t}function tT(e,t,r){const n=IF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ese(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return IF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lx.ForwardRef:return tT(e,e.render,"ForwardRef");case lx.Memo:return tT(e,e.type,"memo");default:return}}}const Ose=Object.freeze(Object.defineProperty({__proto__:null,default:Ese,getFunctionName:jF},Symbol.toStringTag,{value:"Module"})),Pse=["ownerState"],Rse=["variants"],Tse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $se(e){return Object.keys(e).length===0}function kse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function e0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jse=pp(),Ise=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nh({defaultTheme:e,theme:t,themeId:r}){return $se(t)?e:t[r]||t}function Ase(e){return e?(t,r)=>r[e]:null}function Wh(e,t){let{ownerState:r}=t,n=Pe(t,Pse);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Wh(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Pe(a,Rse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(T({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(T({ownerState:r},n,r)):u.style))}),s}return a}function Mse(e={}){const{themeId:t,defaultTheme:r=jse,rootShouldForwardProp:n=e0,slotShouldForwardProp:a=e0}=e,o=i=>fp(T({},i,{theme:nh(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{SF(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Ase(Ise(l))}=s,v=Pe(s,Tse),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=e0;l==="Root"||l==="root"?x=n:l?x=a:kse(i)&&(x=void 0);const m=tC(i,T({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||Co(_)?C=>Wh(_,T({},C,{theme:nh({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=nh(T({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Wh(M,T({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=nh(T({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Wh({variants:F},T({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}const Fse=Mse(),Nse=Fse;function Of(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=T({},o),Object.keys(a).forEach(i=>{r[n][i]=Of(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function AF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Of(t.components[r].defaultProps,n)}function MF({props:e,name:t,defaultTheme:r,themeId:n}){let a=Sy(r);return n&&(a=a[n]||a),AF({theme:a,name:t,props:e})}const Lse=typeof window<"u"?d.useLayoutEffect:d.useEffect,qn=Lse;function Dse(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const FF=Xd["useSyncExternalStore"];function Bse(e,t,r,n,a){const o=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return FF(u,s,i)}function In(e,t={}){const r=sC(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=AF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(FF!==void 0?Bse:Dse)(u,a,o,i,s)}function NF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const zse=Object.freeze(Object.defineProperty({__proto__:null,default:NF},Symbol.toStringTag,{value:"Module"}));function LF(e,t=0,r=1){return NF(e,t,r)}function Vse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function uC(e){if(e.type)return e;if(e.charAt(0)==="#")return uC(Vse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(No(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(No(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function DF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Pf(e,t){return e=uC(e),t=LF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,DF(e)}function Use(e,t){if(e=uC(e),t=LF(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return DF(e)}function hx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Rc(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Wse(e,t){return()=>null}function Hh(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function wr(e){return e&&e.ownerDocument||document}function da(e){return wr(e).defaultView||window}function Hse(e,t){return()=>null}function lg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rT=0;function qse(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(rT+=1,r(`mui-${rT}`))},[t]),n}const nT=Xd["useId".toString()];function el(e){if(nT!==void 0){const t=nT();return e??t}return qse(e)}function Kse(e,t,r,n,a){return null}function Yu({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),s=a?e:o,u=d.useCallback(l=>{a||i(l)},[]);return[s,u]}function fn(e){const t=d.useRef(e);return qn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{lg(r,t)})},e)}const aT={};function Gse(e,t){const r=d.useRef(aT);return r.current===aT&&(r.current=e(t)),r}const Qse=[];function Xse(e){d.useEffect(e,Qse)}class hp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hp}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ss(){const e=Gse(hp.create).current;return Xse(e.disposeEffect),e}let Cy=!0,vx=!1;const Yse=new hp,Jse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Zse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Jse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ele(e){e.metaKey||e.altKey||e.ctrlKey||(Cy=!0)}function t0(){Cy=!1}function tle(){this.visibilityState==="hidden"&&vx&&(Cy=!0)}function rle(e){e.addEventListener("keydown",ele,!0),e.addEventListener("mousedown",t0,!0),e.addEventListener("pointerdown",t0,!0),e.addEventListener("touchstart",t0,!0),e.addEventListener("visibilitychange",tle,!0)}function nle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Cy||Zse(t)}function Ey(){const e=d.useCallback(a=>{a!=null&&rle(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(vx=!0,Yse.start(100,()=>{vx=!1}),t.current=!1,!0):!1}function n(a){return nle(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function BF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let _l;function zF(){if(_l)return _l;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),_l="reverse",e.scrollLeft>0?_l="default":(e.scrollLeft=1,e.scrollLeft===0&&(_l="negative")),document.body.removeChild(e),_l}function ale(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(zF()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function qe(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function Rf(e){return typeof e=="string"}function Jl(e,t,r){return e===void 0||Rf(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function ug(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function oT(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function VF(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const v=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=T({},r,a,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=ug(T({},a,n)),s=oT(n),u=oT(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f=T({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=T({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function UF(e,t,r){return typeof e=="function"?e(t,r):e}const ole=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Pe(e,ole),s=o?{}:UF(n,a),{props:u,internalRef:l}=VF(T({},i,{externalSlotProps:s})),c=Jt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jl(r,T({},u,{ref:c}),a)}const ile=d.createContext(null),WF=ile;function cC(){return d.useContext(WF)}const sle=typeof Symbol=="function"&&Symbol.for,HF=sle?Symbol.for("mui.nested"):"__THEME_NESTED__";function lle(e,t){return typeof t=="function"?t(e):T({},e,t)}function ule(e){const{children:t,theme:r}=e,n=cC(),a=d.useMemo(()=>{const o=n===null?r:lle(n,r);return o!=null&&(o[HF]=n!==null),o},[r,n]);return R.jsx(WF.Provider,{value:a,children:t})}const cle=["value"],qF=d.createContext();function dle(e){let{value:t}=e,r=Pe(e,cle);return R.jsx(qF.Provider,T({value:t??!0},r))}const cl=()=>{const e=d.useContext(qF);return e??!1},KF=d.createContext(void 0);function fle({value:e,children:t}){return R.jsx(KF.Provider,{value:e,children:t})}function ple(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?Of(a.defaultProps,n):!a.styleOverrides&&!a.variants?Of(a,n):n}function hle({props:e,name:t}){const r=d.useContext(KF);return ple({props:e,name:t,theme:{components:r}})}const iT={};function sT(e,t,r,n=!1){return d.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?T({},t,{[e]:o}):o;return n?()=>i:i}return e?T({},t,{[e]:r}):T({},t,r)},[e,t,r,n])}function vle(e){const{children:t,theme:r,themeId:n}=e,a=sC(iT),o=cC()||iT,i=sT(n,a,r),s=sT(n,o,r,!0),u=i.direction==="rtl";return R.jsx(ule,{theme:s,children:R.jsx(up.Provider,{value:i,children:R.jsx(dle,{value:u,children:R.jsx(fle,{value:i==null?void 0:i.components,children:t})})})})}function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function gle(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mle(e){var t=gle(e,"string");return Tf(t)=="symbol"?t:t+""}const yle=["component","direction","spacing","divider","children","className","useFlexGap"],ble=pp(),xle=Nse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wle(e){return MF({props:e,name:"MuiStack",defaultTheme:ble})}function Sle(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Cle=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Aa({theme:t},Zb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oC(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=Zb({values:e.direction,base:a}),i=Zb({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Rr(r,Aa({theme:t},i,(u,l)=>e.useFlexGap?{gap:Zs(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_le(l?o[l]:e.direction)}`]:Zs(n,u)}}))}return r=Sie(t.breakpoints,r),r};function Ele(e={}){const{createStyledComponent:t=xle,useThemeProps:r=wle,componentName:n="MuiStack"}=e,a=()=>qe({root:["root"]},u=>Ue(n,u),{}),o=t(Cle);return d.forwardRef(function(u,l){const c=r(u),f=_y(c),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:S,className:x,useFlexGap:m=!1}=f,b=Pe(f,yle),h={direction:v,spacing:g,useFlexGap:m},_=a();return R.jsx(o,T({as:p,ownerState:h,ref:l,className:ue(_.root,x)},b,{children:y?Sle(S,y):S}))})}function Ole(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gr={},GF={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(GF);var it=GF.exports;const Ple=Do(uoe),Rle=Do(zse);var QF=it;Object.defineProperty(gr,"__esModule",{value:!0});var gt=gr.alpha=ZF;gr.blend=Ble;gr.colorChannel=void 0;var dC=gr.darken=hC;gr.decomposeColor=pa;var Tle=gr.emphasize=e4,$le=gr.getContrastRatio=Mle;gr.getLuminance=cg;gr.hexToRgb=XF;gr.hslToRgb=JF;var fC=gr.lighten=vC;gr.private_safeAlpha=Fle;gr.private_safeColorChannel=void 0;gr.private_safeDarken=Nle;gr.private_safeEmphasize=Dle;gr.private_safeLighten=Lle;gr.recomposeColor=Tc;gr.rgbToHex=Ale;var lT=QF(Ple),kle=QF(Rle);function pC(e,t=0,r=1){return(0,kle.default)(e,t,r)}function XF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function jle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pa(e){if(e.type)return e;if(e.charAt(0)==="#")return pa(XF(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,lT.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,lT.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const YF=e=>{const t=pa(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};gr.colorChannel=YF;const Ile=(e,t)=>{try{return YF(e)}catch{return e}};gr.private_safeColorChannel=Ile;function Tc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Ale(e){if(e.indexOf("#")===0)return e;const{values:t}=pa(e);return`#${t.map((r,n)=>jle(n===3?Math.round(255*r):r)).join("")}`}function JF(e){e=pa(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Tc({type:s,values:u})}function cg(e){e=pa(e);let t=e.type==="hsl"||e.type==="hsla"?pa(JF(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Mle(e,t){const r=cg(e),n=cg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ZF(e,t){return e=pa(e),t=pC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tc(e)}function Fle(e,t,r){try{return ZF(e,t)}catch{return e}}function hC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Tc(e)}function Nle(e,t,r){try{return hC(e,t)}catch{return e}}function vC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Tc(e)}function Lle(e,t,r){try{return vC(e,t)}catch{return e}}function e4(e,t=.15){return cg(e)>.5?hC(e,t):vC(e,t)}function Dle(e,t,r){try{return e4(e,t)}catch{return e}}function Ble(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=pa(e),i=pa(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Tc({type:"rgb",values:s})}const zle=["mode","contrastThreshold","tonalOffset"],uT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sf.white,default:Sf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},r0={text:{primary:Sf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Sf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cT(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fC(e.main,a):t==="dark"&&(e.dark=dC(e.main,o)))}function Vle(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[700],light:xl[400],dark:xl[800]}}function Ule(e="light"){return e==="dark"?{main:bl[200],light:bl[50],dark:bl[400]}:{main:bl[500],light:bl[300],dark:bl[700]}}function Wle(e="light"){return e==="dark"?{main:yl[500],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[400],dark:yl[800]}}function Hle(e="light"){return e==="dark"?{main:wl[400],light:wl[300],dark:wl[700]}:{main:wl[700],light:wl[500],dark:wl[900]}}function qle(e="light"){return e==="dark"?{main:Sl[400],light:Sl[300],dark:Sl[700]}:{main:Sl[800],light:Sl[500],dark:Sl[900]}}function Kle(e="light"){return e==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:"#ed6c02",light:Kc[500],dark:Kc[900]}}function Gle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Pe(e,zle),o=e.primary||Vle(t),i=e.secondary||Ule(t),s=e.error||Wle(t),u=e.info||Hle(t),l=e.success||qle(t),c=e.warning||Kle(t);function f(y){return $le(y,r0.text.primary)>=r?r0.text.primary:uT.text.primary}const p=({color:y,name:S,mainShade:x=500,lightShade:m=300,darkShade:b=700})=>{if(y=T({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(No(11,S?` (${S})`:"",x));if(typeof y.main!="string")throw new Error(No(12,S?` (${S})`:"",JSON.stringify(y.main)));return cT(y,"light",m,n),cT(y,"dark",b,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:r0,light:uT};return Rr(T({common:T({},Sf),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:loe,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),a)}const Qle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xle(e){return Math.round(e*1e5)/1e5}const dT={textTransform:"uppercase"},fT='"Roboto", "Helvetica", "Arial", sans-serif';function Yle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=fT,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=Pe(r,Qle),v=a/14,g=f||(x=>`${x/l*v}rem`),y=(x,m,b,h,_)=>T({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:b},n===fT?{letterSpacing:`${Xle(h/m)}em`}:{},_,c),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,dT),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,dT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr(T({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},S),p,{clone:!1})}const Jle=.2,Zle=.14,eue=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Jle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eue})`].join(",")}const tue=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],rue=tue,nue=["duration","easing","delay"],aue={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pT(e){return`${Math.round(e)}ms`}function iue(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sue(e){const t=T({},aue,e.easing),r=T({},oue,e.duration);return T({getAutoHeightDuration:iue,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Pe(o,nue),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:pT(i)} ${s} ${typeof u=="string"?u:pT(u)}`).join(",")}},e,{easing:t,duration:r})}const lue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uue=lue,cue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dg(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Pe(e,cue);if(e.vars)throw new Error(No(18));const s=Gle(n),u=pp(e);let l=Rr(u,{mixins:Ole(u.breakpoints,r),palette:s,shadows:rue.slice(),typography:Yle(s,o),transitions:sue(a),zIndex:T({},uue)});return l=Rr(l,i),l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const due=dg(),Oy=due;function fo(){const e=Sy(Oy);return e[Js]||e}function fue({props:e,name:t}){return MF({props:e,name:t,defaultTheme:Oy,themeId:Js})}var vp={},n0={exports:{}},hT;function pue(){return hT||(hT=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(n0)),n0.exports}const t4=Do(gie),hue=Do(mie),vue=Do(Cie),gue=Do(Ose),mue=Do(fse),yue=Do(yse);var $c=it;Object.defineProperty(vp,"__esModule",{value:!0});var bue=vp.default=jue;vp.shouldForwardProp=qh;vp.systemDefaultTheme=void 0;var ea=$c(xF()),gx=$c(pue()),vT=Oue(t4),xue=hue;$c(vue);$c(gue);var wue=$c(mue),Sue=$c(yue);const _ue=["ownerState"],Cue=["variants"],Eue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function r4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(r4=function(n){return n?r:t})(e)}function Oue(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=r4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Pue(e){return Object.keys(e).length===0}function Rue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tue=vp.systemDefaultTheme=(0,wue.default)(),$ue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ah({defaultTheme:e,theme:t,themeId:r}){return Pue(t)?e:t[r]||t}function kue(e){return e?(t,r)=>r[e]:null}function Kh(e,t){let{ownerState:r}=t,n=(0,gx.default)(t,_ue);const a=typeof e=="function"?e((0,ea.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Kh(o,(0,ea.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,gx.default)(a,Cue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,ea.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,ea.default)({ownerState:r},n,r)):u.style))}),s}return a}function jue(e={}){const{themeId:t,defaultTheme:r=Tue,rootShouldForwardProp:n=qh,slotShouldForwardProp:a=qh}=e,o=i=>(0,Sue.default)((0,ea.default)({},i,{theme:ah((0,ea.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,vT.internal_processStyles)(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=kue($ue(l))}=s,v=(0,gx.default)(s,Eue),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=qh;l==="Root"||l==="root"?x=n:l?x=a:Rue(i)&&(x=void 0);const m=(0,vT.default)(i,(0,ea.default)({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||(0,xue.isPlainObject)(_)?C=>Kh(_,(0,ea.default)({},C,{theme:ah({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Kh(M,(0,ea.default)({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Kh({variants:F},(0,ea.default)({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}function n4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iue=e=>n4(e)&&e!=="classes",Wr=Iue,Aue=bue({themeId:Js,defaultTheme:Oy,rootShouldForwardProp:Wr}),ne=Aue,Mue=["theme"];function Fue(e){let{theme:t}=e,r=Pe(e,Mue);const n=t[Js];return R.jsx(vle,T({},r,{themeId:n?Js:void 0,theme:n||t}))}const Nue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gT=Nue;function Ke(e){return hle(e)}function Lue(e){return Ue("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Due=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bue=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(r)}`]};return qe(a,Lue,n)},zue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ge(r.color)}`],t[`fontSize${ge(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),a4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Pe(n,Due),g=d.isValidElement(a)&&a.type==="svg",y=T({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),S={};c||(S.viewBox=p);const x=Bue(y);return R.jsxs(zue,T({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},S,v,g&&a.props,{ownerState:y,children:[g?a.props.children:a,f?R.jsx("title",{children:f}):null]}))});a4.muiName="SvgIcon";const mT=a4;function An(e,t){function r(n,a){return R.jsx(mT,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=mT.muiName,d.memo(d.forwardRef(r))}const Vue={configure:e=>{lC.configure(e)}},Uue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ge,createChainedFunction:hx,createSvgIcon:An,debounce:Rc,deprecatedPropType:Wse,isMuiElement:Hh,ownerDocument:wr,ownerWindow:da,requirePropFactory:Hse,setRef:lg,unstable_ClassNameGenerator:Vue,unstable_useEnhancedEffect:qn,unstable_useId:el,unsupportedProp:Kse,useControlled:Yu,useEventCallback:fn,useForkRef:Jt,useIsFocusVisible:Ey},Symbol.toStringTag,{value:"Module"}));function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},mx(e,t)}function Py(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mx(e,t)}const yT={disabled:!1},fg=ke.createContext(null);var Wue=function(t){return t.scrollTop},fd="unmounted",os="exited",is="entering",$l="entered",yx="exiting",Ho=function(e){Py(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=os,o.appearStatus=is):u=$l:n.unmountOnExit||n.mountOnEnter?u=fd:u=os,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fd?{status:os}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==is&&i!==$l&&(o=is):(i===is||i===$l)&&(o=yx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===is){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this);i&&Wue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:fd})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[ld.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!a&&!i||yT.disabled){this.safeSetState({status:$l},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:is},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:$l},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ld.findDOMNode(this);if(!o||yT.disabled){this.safeSetState({status:os},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:yx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:os},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fd)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Pe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(fg.Provider,{value:null},typeof i=="function"?i(a,s):ke.cloneElement(ke.Children.only(i),s))},t}(ke.Component);Ho.contextType=fg;Ho.propTypes={};function Cl(){}Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cl,onEntering:Cl,onEntered:Cl,onExit:Cl,onExiting:Cl,onExited:Cl};Ho.UNMOUNTED=fd;Ho.EXITED=os;Ho.ENTERING=is;Ho.ENTERED=$l;Ho.EXITING=yx;const gC=Ho;function bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(e,t){var r=function(o){return t&&d.isValidElement(o)?t(o):o},n=Object.create(null);return e&&d.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Hue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Ju(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function Yue(e){return Ue("MuiPaper",e)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jue=["className","component","elevation","square","variant"],Zue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qe(o,Yue,a)},ece=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",gT(t.elevation))}, ${gt("#fff",gT(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Pe(n,Jue),c=T({},n,{component:o,elevation:i,square:s,variant:u}),f=Zue(c);return R.jsx(ece,T({as:o,ownerState:c,className:ue(f.root,a),ref:r},l))}),Yi=tce,rce=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],nce=["component","slots","slotProps"],ace=["component"];function oce(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Pe(t,rce),{component:l,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=o,p=Pe(o,nce),v=c[e]||n,g=UF(f[e],a),y=VF(T({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:S},internalRef:x}=y,m=Pe(y.props,ace),b=Jt(x,g==null?void 0:g.ref,t.ref),h=i?i(m):{},_=T({},a,h),C=e==="root"?S||l:S,E=Jl(v,T({},e==="root"&&!l&&!c[e]&&s,e!=="root"&&!c[e]&&s,m,C&&{as:C},{ref:b}),_);return Object.keys(h).forEach(w=>{delete E[w]}),[v,E]}function ice(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},g=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),R.jsx("span",{className:p,style:v,children:R.jsx("span",{className:g})})}const sce=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ra=sce,lce=["center","classes","className"];let Ry=e=>e,bT,xT,wT,ST;const xx=550,uce=80,cce=Pc(bT||(bT=Ry` + */function tC(e,t){return fx(e,t)}const _F=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},gie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:SF,StyledEngineProvider:hie,ThemeContext:up,css:vy,default:tC,internal_processStyles:_F,keyframes:Pc},Symbol.toStringTag,{value:"Module"}));function Co(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function CF(e){if(!Co(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=CF(e[r])}),t}function Rr(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return Co(e)&&Co(t)&&Object.keys(t).forEach(a=>{Co(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Co(e[a])?n[a]=Rr(e[a],t[a],r):r.clone?n[a]=Co(t[a])?CF(t[a]):t[a]:n[a]=t[a]}),n}const mie=Object.freeze(Object.defineProperty({__proto__:null,default:Rr,isPlainObject:Co},Symbol.toStringTag,{value:"Module"})),yie=["values","unit","step"],bie=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>T({},r,{[n.key]:n.val}),{})};function EF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Pe(e,yie),o=bie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,v){const g=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:v)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rC[e]}px)`};function Aa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||JR;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||JR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rC).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function OF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function PF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Sie(e,...t){const r=OF(e),n=[r,...t].reduce((a,o)=>Rr(a,o),{});return PF(Object.keys(r),n)}function _ie(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function Jb({values:e,breakpoints:t,base:r}){const n=r||_ie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function ge(e){if(typeof e!="string")throw new Error(No(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Cie=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));function Xu(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function ig(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Xu(e,r)||n,t&&(a=t(a,n,e)),a}function vr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Xu(u,n)||{};return Aa(i,s,f=>{let p=ig(l,a,f);return f===p&&typeof f=="string"&&(p=ig(l,a,`${t}${f==="default"?"":ge(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Eie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Oie={m:"margin",p:"padding"},Pie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rie=Eie(e=>{if(e.length>2)if(ZR[e])e=ZR[e];else return[e];const[t,r]=e.split(""),n=Oie[t],a=Pie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nC,...aC];function cp(e,t,r,n){var a;const o=(a=Xu(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function oC(e){return cp(e,"spacing",8)}function Zs(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Tie(e,t){return r=>e.reduce((n,a)=>(n[a]=Zs(t,r),n),{})}function $ie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Rie(r),o=Tie(a,n),i=e[r];return Aa(e,i,o)}function RF(e,t){const r=oC(e.theme);return Object.keys(e).map(n=>$ie(e,t,n,r)).reduce(Ad,{})}function ar(e){return RF(e,nC)}ar.propTypes={};ar.filterProps=nC;function or(e){return RF(e,aC)}or.propTypes={};or.filterProps=aC;function kie(e=8){if(e.mui)return e;const t=oC({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function gy(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Ad(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function oa(e){return typeof e!="number"?e:`${e}px solid`}function ba(e,t){return vr({prop:e,themeKey:"borders",transform:t})}const jie=ba("border",oa),Iie=ba("borderTop",oa),Aie=ba("borderRight",oa),Mie=ba("borderBottom",oa),Fie=ba("borderLeft",oa),Nie=ba("borderColor"),Lie=ba("borderTopColor"),Die=ba("borderRightColor"),Bie=ba("borderBottomColor"),zie=ba("borderLeftColor"),Vie=ba("outline",oa),Uie=ba("outlineColor"),my=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zs(t,n)});return Aa(e,e.borderRadius,r)}return null};my.propTypes={};my.filterProps=["borderRadius"];gy(jie,Iie,Aie,Mie,Fie,Nie,Lie,Die,Bie,zie,my,Vie,Uie);const yy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cp(e.theme,"spacing",8),r=n=>({gap:Zs(t,n)});return Aa(e,e.gap,r)}return null};yy.propTypes={};yy.filterProps=["gap"];const by=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({columnGap:Zs(t,n)});return Aa(e,e.columnGap,r)}return null};by.propTypes={};by.filterProps=["columnGap"];const xy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({rowGap:Zs(t,n)});return Aa(e,e.rowGap,r)}return null};xy.propTypes={};xy.filterProps=["rowGap"];const Wie=vr({prop:"gridColumn"}),Hie=vr({prop:"gridRow"}),qie=vr({prop:"gridAutoFlow"}),Kie=vr({prop:"gridAutoColumns"}),Gie=vr({prop:"gridAutoRows"}),Qie=vr({prop:"gridTemplateColumns"}),Xie=vr({prop:"gridTemplateRows"}),Yie=vr({prop:"gridTemplateAreas"}),Jie=vr({prop:"gridArea"});gy(yy,by,xy,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie,Jie);function du(e,t){return t==="grey"?t:e}const Zie=vr({prop:"color",themeKey:"palette",transform:du}),ese=vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:du}),tse=vr({prop:"backgroundColor",themeKey:"palette",transform:du});gy(Zie,ese,tse);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const rse=vr({prop:"width",transform:zn}),iC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||rC[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:zn(r)}};return Aa(e,e.maxWidth,t)}return null};iC.filterProps=["maxWidth"];const nse=vr({prop:"minWidth",transform:zn}),ase=vr({prop:"height",transform:zn}),ose=vr({prop:"maxHeight",transform:zn}),ise=vr({prop:"minHeight",transform:zn});vr({prop:"size",cssProperty:"width",transform:zn});vr({prop:"size",cssProperty:"height",transform:zn});const sse=vr({prop:"boxSizing"});gy(rse,iC,nse,ase,ose,ise,sse);const lse={border:{themeKey:"borders",transform:oa},borderTop:{themeKey:"borders",transform:oa},borderRight:{themeKey:"borders",transform:oa},borderBottom:{themeKey:"borders",transform:oa},borderLeft:{themeKey:"borders",transform:oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:my},color:{themeKey:"palette",transform:du},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:du},backgroundColor:{themeKey:"palette",transform:du},p:{style:or},pt:{style:or},pr:{style:or},pb:{style:or},pl:{style:or},px:{style:or},py:{style:or},padding:{style:or},paddingTop:{style:or},paddingRight:{style:or},paddingBottom:{style:or},paddingLeft:{style:or},paddingX:{style:or},paddingY:{style:or},paddingInline:{style:or},paddingInlineStart:{style:or},paddingInlineEnd:{style:or},paddingBlock:{style:or},paddingBlockStart:{style:or},paddingBlockEnd:{style:or},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yy},rowGap:{style:xy},columnGap:{style:by},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:iC},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dp=lse;function use(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function cse(e,t){return typeof e=="function"?e(t):e}function TF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Xu(a,l)||{};return f?f(i):Aa(i,n,g=>{let y=ig(p,c,g);return g===y&&typeof g=="string"&&(y=ig(p,c,`${r}${g==="default"?"":ge(g)}`,g)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:dp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=OF(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(v=>{const g=cse(l[v],o);if(g!=null)if(typeof g=="object")if(i[v])p=Ad(p,e(v,g,o,i));else{const y=Aa({theme:o},g,S=>({[v]:S}));use(y,g)?p[v]=t({sx:g,theme:o}):p=Ad(p,y)}else p=Ad(p,e(v,g,o,i))}),PF(f,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const $F=TF();$F.filterProps=["sx"];const fp=$F;function kF(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const dse=["breakpoints","palette","spacing","shape"];function pp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Pe(e,dse),s=EF(r),u=kie(a);let l=Rr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:u,shape:T({},wie,o)},i);return l.applyStyles=kF,l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const fse=Object.freeze(Object.defineProperty({__proto__:null,default:pp,private_createBreakpoints:EF,unstable_applyStyles:kF},Symbol.toStringTag,{value:"Module"}));function pse(e){return Object.keys(e).length===0}function sC(e=null){const t=d.useContext(up);return!t||pse(t)?e:t}const hse=pp();function wy(e=hse){return sC(e)}function vse({styles:e,themeId:t,defaultTheme:r={}}){const n=wy(r),a=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(SF,{styles:a})}const gse=["sx"],mse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:dp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Sy(e){const{sx:t}=e,r=Pe(e,gse),{systemProps:n,otherProps:a}=mse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Co(s)?T({},n,s):n}:o=T({},n,t),T({},a,{sx:o})}const yse=Object.freeze(Object.defineProperty({__proto__:null,default:fp,extendSxProp:Sy,unstable_createStyleFunctionSx:TF,unstable_defaultSxConfig:dp},Symbol.toStringTag,{value:"Module"})),eT=e=>e,bse=()=>{let e=eT;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eT}}},xse=bse(),lC=xse;function jF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(fp);return d.forwardRef(function(u,l){const c=wy(r),f=Sy(u),{className:p,component:v="div"}=f,g=Pe(f,wse);return R.jsx(o,T({as:v,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},g))})}const _se={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,t,r="Mui"){const n=_se[t];return n?`${r}-${n}`:`${lC.generate(e)}-${t}`}function We(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ue(e,a,r)}),n}const Cse=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function IF(e){const t=`${e}`.match(Cse);return t&&t[1]||""}function AF(e,t=""){return e.displayName||e.name||IF(e)||t}function tT(e,t,r){const n=AF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ese(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return AF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lx.ForwardRef:return tT(e,e.render,"ForwardRef");case lx.Memo:return tT(e,e.type,"memo");default:return}}}const Ose=Object.freeze(Object.defineProperty({__proto__:null,default:Ese,getFunctionName:IF},Symbol.toStringTag,{value:"Module"})),Pse=["ownerState"],Rse=["variants"],Tse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $se(e){return Object.keys(e).length===0}function kse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jse=pp(),Ise=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nh({defaultTheme:e,theme:t,themeId:r}){return $se(t)?e:t[r]||t}function Ase(e){return e?(t,r)=>r[e]:null}function Wh(e,t){let{ownerState:r}=t,n=Pe(t,Pse);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Wh(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Pe(a,Rse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(T({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(T({ownerState:r},n,r)):u.style))}),s}return a}function Mse(e={}){const{themeId:t,defaultTheme:r=jse,rootShouldForwardProp:n=Zb,slotShouldForwardProp:a=Zb}=e,o=i=>fp(T({},i,{theme:nh(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{_F(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Ase(Ise(l))}=s,v=Pe(s,Tse),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=Zb;l==="Root"||l==="root"?x=n:l?x=a:kse(i)&&(x=void 0);const m=tC(i,T({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||Co(_)?C=>Wh(_,T({},C,{theme:nh({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=nh(T({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Wh(M,T({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=nh(T({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Wh({variants:F},T({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}const Fse=Mse(),Nse=Fse;function Of(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=T({},o),Object.keys(a).forEach(i=>{r[n][i]=Of(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function MF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Of(t.components[r].defaultProps,n)}function FF({props:e,name:t,defaultTheme:r,themeId:n}){let a=wy(r);return n&&(a=a[n]||a),MF({theme:a,name:t,props:e})}const Lse=typeof window<"u"?d.useLayoutEffect:d.useEffect,qn=Lse;function Dse(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const NF=Xd["useSyncExternalStore"];function Bse(e,t,r,n,a){const o=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return NF(u,s,i)}function In(e,t={}){const r=sC(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=MF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(NF!==void 0?Bse:Dse)(u,a,o,i,s)}function LF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const zse=Object.freeze(Object.defineProperty({__proto__:null,default:LF},Symbol.toStringTag,{value:"Module"}));function DF(e,t=0,r=1){return LF(e,t,r)}function Vse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function uC(e){if(e.type)return e;if(e.charAt(0)==="#")return uC(Vse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(No(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(No(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function BF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Pf(e,t){return e=uC(e),t=DF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,BF(e)}function Use(e,t){if(e=uC(e),t=DF(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return BF(e)}function hx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Rc(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Wse(e,t){return()=>null}function Hh(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function wr(e){return e&&e.ownerDocument||document}function da(e){return wr(e).defaultView||window}function Hse(e,t){return()=>null}function sg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rT=0;function qse(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(rT+=1,r(`mui-${rT}`))},[t]),n}const nT=Xd["useId".toString()];function el(e){if(nT!==void 0){const t=nT();return e??t}return qse(e)}function Kse(e,t,r,n,a){return null}function Yu({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),s=a?e:o,u=d.useCallback(l=>{a||i(l)},[]);return[s,u]}function fn(e){const t=d.useRef(e);return qn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{sg(r,t)})},e)}const aT={};function Gse(e,t){const r=d.useRef(aT);return r.current===aT&&(r.current=e(t)),r}const Qse=[];function Xse(e){d.useEffect(e,Qse)}class hp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hp}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ss(){const e=Gse(hp.create).current;return Xse(e.disposeEffect),e}let _y=!0,vx=!1;const Yse=new hp,Jse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Zse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Jse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ele(e){e.metaKey||e.altKey||e.ctrlKey||(_y=!0)}function e0(){_y=!1}function tle(){this.visibilityState==="hidden"&&vx&&(_y=!0)}function rle(e){e.addEventListener("keydown",ele,!0),e.addEventListener("mousedown",e0,!0),e.addEventListener("pointerdown",e0,!0),e.addEventListener("touchstart",e0,!0),e.addEventListener("visibilitychange",tle,!0)}function nle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return _y||Zse(t)}function Cy(){const e=d.useCallback(a=>{a!=null&&rle(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(vx=!0,Yse.start(100,()=>{vx=!1}),t.current=!1,!0):!1}function n(a){return nle(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function zF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let _l;function VF(){if(_l)return _l;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),_l="reverse",e.scrollLeft>0?_l="default":(e.scrollLeft=1,e.scrollLeft===0&&(_l="negative")),document.body.removeChild(e),_l}function ale(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(VF()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function qe(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function Rf(e){return typeof e=="string"}function Jl(e,t,r){return e===void 0||Rf(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function lg(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function oT(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function UF(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const v=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=T({},r,a,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=lg(T({},a,n)),s=oT(n),u=oT(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f=T({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=T({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function WF(e,t,r){return typeof e=="function"?e(t,r):e}const ole=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Pe(e,ole),s=o?{}:WF(n,a),{props:u,internalRef:l}=UF(T({},i,{externalSlotProps:s})),c=Jt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jl(r,T({},u,{ref:c}),a)}const ile=d.createContext(null),HF=ile;function cC(){return d.useContext(HF)}const sle=typeof Symbol=="function"&&Symbol.for,qF=sle?Symbol.for("mui.nested"):"__THEME_NESTED__";function lle(e,t){return typeof t=="function"?t(e):T({},e,t)}function ule(e){const{children:t,theme:r}=e,n=cC(),a=d.useMemo(()=>{const o=n===null?r:lle(n,r);return o!=null&&(o[qF]=n!==null),o},[r,n]);return R.jsx(HF.Provider,{value:a,children:t})}const cle=["value"],KF=d.createContext();function dle(e){let{value:t}=e,r=Pe(e,cle);return R.jsx(KF.Provider,T({value:t??!0},r))}const cl=()=>{const e=d.useContext(KF);return e??!1},GF=d.createContext(void 0);function fle({value:e,children:t}){return R.jsx(GF.Provider,{value:e,children:t})}function ple(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?Of(a.defaultProps,n):!a.styleOverrides&&!a.variants?Of(a,n):n}function hle({props:e,name:t}){const r=d.useContext(GF);return ple({props:e,name:t,theme:{components:r}})}const iT={};function sT(e,t,r,n=!1){return d.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?T({},t,{[e]:o}):o;return n?()=>i:i}return e?T({},t,{[e]:r}):T({},t,r)},[e,t,r,n])}function vle(e){const{children:t,theme:r,themeId:n}=e,a=sC(iT),o=cC()||iT,i=sT(n,a,r),s=sT(n,o,r,!0),u=i.direction==="rtl";return R.jsx(ule,{theme:s,children:R.jsx(up.Provider,{value:i,children:R.jsx(dle,{value:u,children:R.jsx(fle,{value:i==null?void 0:i.components,children:t})})})})}function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function gle(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mle(e){var t=gle(e,"string");return Tf(t)=="symbol"?t:t+""}const yle=["component","direction","spacing","divider","children","className","useFlexGap"],ble=pp(),xle=Nse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wle(e){return FF({props:e,name:"MuiStack",defaultTheme:ble})}function Sle(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Cle=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Aa({theme:t},Jb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oC(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=Jb({values:e.direction,base:a}),i=Jb({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Rr(r,Aa({theme:t},i,(u,l)=>e.useFlexGap?{gap:Zs(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_le(l?o[l]:e.direction)}`]:Zs(n,u)}}))}return r=Sie(t.breakpoints,r),r};function Ele(e={}){const{createStyledComponent:t=xle,useThemeProps:r=wle,componentName:n="MuiStack"}=e,a=()=>qe({root:["root"]},u=>Ue(n,u),{}),o=t(Cle);return d.forwardRef(function(u,l){const c=r(u),f=Sy(c),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:S,className:x,useFlexGap:m=!1}=f,b=Pe(f,yle),h={direction:v,spacing:g,useFlexGap:m},_=a();return R.jsx(o,T({as:p,ownerState:h,ref:l,className:ue(_.root,x)},b,{children:y?Sle(S,y):S}))})}function Ole(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gr={},QF={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(QF);var it=QF.exports;const Ple=Do(uoe),Rle=Do(zse);var XF=it;Object.defineProperty(gr,"__esModule",{value:!0});var gt=gr.alpha=e4;gr.blend=Ble;gr.colorChannel=void 0;var dC=gr.darken=hC;gr.decomposeColor=pa;var Tle=gr.emphasize=t4,$le=gr.getContrastRatio=Mle;gr.getLuminance=ug;gr.hexToRgb=YF;gr.hslToRgb=ZF;var fC=gr.lighten=vC;gr.private_safeAlpha=Fle;gr.private_safeColorChannel=void 0;gr.private_safeDarken=Nle;gr.private_safeEmphasize=Dle;gr.private_safeLighten=Lle;gr.recomposeColor=Tc;gr.rgbToHex=Ale;var lT=XF(Ple),kle=XF(Rle);function pC(e,t=0,r=1){return(0,kle.default)(e,t,r)}function YF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function jle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pa(e){if(e.type)return e;if(e.charAt(0)==="#")return pa(YF(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,lT.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,lT.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const JF=e=>{const t=pa(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};gr.colorChannel=JF;const Ile=(e,t)=>{try{return JF(e)}catch{return e}};gr.private_safeColorChannel=Ile;function Tc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Ale(e){if(e.indexOf("#")===0)return e;const{values:t}=pa(e);return`#${t.map((r,n)=>jle(n===3?Math.round(255*r):r)).join("")}`}function ZF(e){e=pa(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Tc({type:s,values:u})}function ug(e){e=pa(e);let t=e.type==="hsl"||e.type==="hsla"?pa(ZF(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Mle(e,t){const r=ug(e),n=ug(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function e4(e,t){return e=pa(e),t=pC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tc(e)}function Fle(e,t,r){try{return e4(e,t)}catch{return e}}function hC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Tc(e)}function Nle(e,t,r){try{return hC(e,t)}catch{return e}}function vC(e,t){if(e=pa(e),t=pC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Tc(e)}function Lle(e,t,r){try{return vC(e,t)}catch{return e}}function t4(e,t=.15){return ug(e)>.5?hC(e,t):vC(e,t)}function Dle(e,t,r){try{return t4(e,t)}catch{return e}}function Ble(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=pa(e),i=pa(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Tc({type:"rgb",values:s})}const zle=["mode","contrastThreshold","tonalOffset"],uT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sf.white,default:Sf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},t0={text:{primary:Sf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Sf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cT(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fC(e.main,a):t==="dark"&&(e.dark=dC(e.main,o)))}function Vle(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[700],light:xl[400],dark:xl[800]}}function Ule(e="light"){return e==="dark"?{main:bl[200],light:bl[50],dark:bl[400]}:{main:bl[500],light:bl[300],dark:bl[700]}}function Wle(e="light"){return e==="dark"?{main:yl[500],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[400],dark:yl[800]}}function Hle(e="light"){return e==="dark"?{main:wl[400],light:wl[300],dark:wl[700]}:{main:wl[700],light:wl[500],dark:wl[900]}}function qle(e="light"){return e==="dark"?{main:Sl[400],light:Sl[300],dark:Sl[700]}:{main:Sl[800],light:Sl[500],dark:Sl[900]}}function Kle(e="light"){return e==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:"#ed6c02",light:Kc[500],dark:Kc[900]}}function Gle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Pe(e,zle),o=e.primary||Vle(t),i=e.secondary||Ule(t),s=e.error||Wle(t),u=e.info||Hle(t),l=e.success||qle(t),c=e.warning||Kle(t);function f(y){return $le(y,t0.text.primary)>=r?t0.text.primary:uT.text.primary}const p=({color:y,name:S,mainShade:x=500,lightShade:m=300,darkShade:b=700})=>{if(y=T({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(No(11,S?` (${S})`:"",x));if(typeof y.main!="string")throw new Error(No(12,S?` (${S})`:"",JSON.stringify(y.main)));return cT(y,"light",m,n),cT(y,"dark",b,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:t0,light:uT};return Rr(T({common:T({},Sf),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:loe,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),a)}const Qle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xle(e){return Math.round(e*1e5)/1e5}const dT={textTransform:"uppercase"},fT='"Roboto", "Helvetica", "Arial", sans-serif';function Yle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=fT,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=Pe(r,Qle),v=a/14,g=f||(x=>`${x/l*v}rem`),y=(x,m,b,h,_)=>T({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:b},n===fT?{letterSpacing:`${Xle(h/m)}em`}:{},_,c),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,dT),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,dT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr(T({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},S),p,{clone:!1})}const Jle=.2,Zle=.14,eue=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Jle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eue})`].join(",")}const tue=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],rue=tue,nue=["duration","easing","delay"],aue={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pT(e){return`${Math.round(e)}ms`}function iue(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sue(e){const t=T({},aue,e.easing),r=T({},oue,e.duration);return T({getAutoHeightDuration:iue,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Pe(o,nue),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:pT(i)} ${s} ${typeof u=="string"?u:pT(u)}`).join(",")}},e,{easing:t,duration:r})}const lue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uue=lue,cue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cg(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Pe(e,cue);if(e.vars)throw new Error(No(18));const s=Gle(n),u=pp(e);let l=Rr(u,{mixins:Ole(u.breakpoints,r),palette:s,shadows:rue.slice(),typography:Yle(s,o),transitions:sue(a),zIndex:T({},uue)});return l=Rr(l,i),l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const due=cg(),Ey=due;function fo(){const e=wy(Ey);return e[Js]||e}function fue({props:e,name:t}){return FF({props:e,name:t,defaultTheme:Ey,themeId:Js})}var vp={},r0={exports:{}},hT;function pue(){return hT||(hT=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(r0)),r0.exports}const r4=Do(gie),hue=Do(mie),vue=Do(Cie),gue=Do(Ose),mue=Do(fse),yue=Do(yse);var $c=it;Object.defineProperty(vp,"__esModule",{value:!0});var bue=vp.default=jue;vp.shouldForwardProp=qh;vp.systemDefaultTheme=void 0;var ea=$c(wF()),gx=$c(pue()),vT=Oue(r4),xue=hue;$c(vue);$c(gue);var wue=$c(mue),Sue=$c(yue);const _ue=["ownerState"],Cue=["variants"],Eue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function n4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(n4=function(n){return n?r:t})(e)}function Oue(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=n4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Pue(e){return Object.keys(e).length===0}function Rue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tue=vp.systemDefaultTheme=(0,wue.default)(),$ue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ah({defaultTheme:e,theme:t,themeId:r}){return Pue(t)?e:t[r]||t}function kue(e){return e?(t,r)=>r[e]:null}function Kh(e,t){let{ownerState:r}=t,n=(0,gx.default)(t,_ue);const a=typeof e=="function"?e((0,ea.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Kh(o,(0,ea.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,gx.default)(a,Cue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,ea.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,ea.default)({ownerState:r},n,r)):u.style))}),s}return a}function jue(e={}){const{themeId:t,defaultTheme:r=Tue,rootShouldForwardProp:n=qh,slotShouldForwardProp:a=qh}=e,o=i=>(0,Sue.default)((0,ea.default)({},i,{theme:ah((0,ea.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,vT.internal_processStyles)(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=kue($ue(l))}=s,v=(0,gx.default)(s,Eue),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=qh;l==="Root"||l==="root"?x=n:l?x=a:Rue(i)&&(x=void 0);const m=(0,vT.default)(i,(0,ea.default)({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||(0,xue.isPlainObject)(_)?C=>Kh(_,(0,ea.default)({},C,{theme:ah({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Kh(M,(0,ea.default)({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Kh({variants:F},(0,ea.default)({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}function a4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iue=e=>a4(e)&&e!=="classes",Wr=Iue,Aue=bue({themeId:Js,defaultTheme:Ey,rootShouldForwardProp:Wr}),ne=Aue,Mue=["theme"];function Fue(e){let{theme:t}=e,r=Pe(e,Mue);const n=t[Js];return R.jsx(vle,T({},r,{themeId:n?Js:void 0,theme:n||t}))}const Nue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gT=Nue;function Ke(e){return hle(e)}function Lue(e){return Ue("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Due=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bue=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(r)}`]};return qe(a,Lue,n)},zue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ge(r.color)}`],t[`fontSize${ge(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),o4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Pe(n,Due),g=d.isValidElement(a)&&a.type==="svg",y=T({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),S={};c||(S.viewBox=p);const x=Bue(y);return R.jsxs(zue,T({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},S,v,g&&a.props,{ownerState:y,children:[g?a.props.children:a,f?R.jsx("title",{children:f}):null]}))});o4.muiName="SvgIcon";const mT=o4;function An(e,t){function r(n,a){return R.jsx(mT,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=mT.muiName,d.memo(d.forwardRef(r))}const Vue={configure:e=>{lC.configure(e)}},Uue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ge,createChainedFunction:hx,createSvgIcon:An,debounce:Rc,deprecatedPropType:Wse,isMuiElement:Hh,ownerDocument:wr,ownerWindow:da,requirePropFactory:Hse,setRef:sg,unstable_ClassNameGenerator:Vue,unstable_useEnhancedEffect:qn,unstable_useId:el,unsupportedProp:Kse,useControlled:Yu,useEventCallback:fn,useForkRef:Jt,useIsFocusVisible:Cy},Symbol.toStringTag,{value:"Module"}));function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},mx(e,t)}function Oy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mx(e,t)}const yT={disabled:!1},dg=ke.createContext(null);var Wue=function(t){return t.scrollTop},fd="unmounted",os="exited",is="entering",$l="entered",yx="exiting",Ho=function(e){Oy(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=os,o.appearStatus=is):u=$l:n.unmountOnExit||n.mountOnEnter?u=fd:u=os,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fd?{status:os}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==is&&i!==$l&&(o=is):(i===is||i===$l)&&(o=yx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===is){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this);i&&Wue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:fd})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[ld.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!a&&!i||yT.disabled){this.safeSetState({status:$l},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:is},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:$l},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ld.findDOMNode(this);if(!o||yT.disabled){this.safeSetState({status:os},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:yx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:os},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fd)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Pe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(dg.Provider,{value:null},typeof i=="function"?i(a,s):ke.cloneElement(ke.Children.only(i),s))},t}(ke.Component);Ho.contextType=dg;Ho.propTypes={};function Cl(){}Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cl,onEntering:Cl,onEntered:Cl,onExit:Cl,onExiting:Cl,onExited:Cl};Ho.UNMOUNTED=fd;Ho.EXITED=os;Ho.ENTERING=is;Ho.ENTERED=$l;Ho.EXITING=yx;const gC=Ho;function bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(e,t){var r=function(o){return t&&d.isValidElement(o)?t(o):o},n=Object.create(null);return e&&d.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Hue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Ju(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function Yue(e){return Ue("MuiPaper",e)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jue=["className","component","elevation","square","variant"],Zue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qe(o,Yue,a)},ece=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",gT(t.elevation))}, ${gt("#fff",gT(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Pe(n,Jue),c=T({},n,{component:o,elevation:i,square:s,variant:u}),f=Zue(c);return R.jsx(ece,T({as:o,ownerState:c,className:ue(f.root,a),ref:r},l))}),Yi=tce,rce=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],nce=["component","slots","slotProps"],ace=["component"];function oce(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Pe(t,rce),{component:l,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=o,p=Pe(o,nce),v=c[e]||n,g=WF(f[e],a),y=UF(T({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:S},internalRef:x}=y,m=Pe(y.props,ace),b=Jt(x,g==null?void 0:g.ref,t.ref),h=i?i(m):{},_=T({},a,h),C=e==="root"?S||l:S,E=Jl(v,T({},e==="root"&&!l&&!c[e]&&s,e!=="root"&&!c[e]&&s,m,C&&{as:C},{ref:b}),_);return Object.keys(h).forEach(w=>{delete E[w]}),[v,E]}function ice(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},g=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),R.jsx("span",{className:p,style:v,children:R.jsx("span",{className:g})})}const sce=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ra=sce,lce=["center","classes","className"];let Py=e=>e,bT,xT,wT,ST;const xx=550,uce=80,cce=Pc(bT||(bT=Py` 0% { transform: scale(0); opacity: 0.1; @@ -115,7 +115,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu transform: scale(1); opacity: 0.3; } -`)),dce=Pc(xT||(xT=Ry` +`)),dce=Pc(xT||(xT=Py` 0% { opacity: 1; } @@ -123,7 +123,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { opacity: 0; } -`)),fce=Pc(wT||(wT=Ry` +`)),fce=Pc(wT||(wT=Py` 0% { transform: scale(1); } @@ -135,7 +135,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { transform: scale(1); } -`)),pce=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hce=ne(ice,{name:"MuiTouchRipple",slot:"Ripple"})(ST||(ST=Ry` +`)),pce=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hce=ne(ice,{name:"MuiTouchRipple",slot:"Ripple"})(ST||(ST=Py` opacity: 0; position: absolute; @@ -178,8 +178,8 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu animation-iteration-count: infinite; animation-delay: 200ms; } -`),ra.rippleVisible,cce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ra.child,ra.childLeaving,dce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.childPulsate,fce,({theme:e})=>e.transitions.easing.easeInOut),vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Pe(n,lce),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),v=Ss(),g=d.useRef(null),y=d.useRef(null),S=d.useCallback(h=>{const{pulsate:_,rippleX:C,rippleY:E,rippleSize:w,cb:O}=h;l(P=>[...P,R.jsx(hce,{classes:{ripple:ue(o.ripple,ra.ripple),rippleVisible:ue(o.rippleVisible,ra.rippleVisible),ripplePulsate:ue(o.ripplePulsate,ra.ripplePulsate),child:ue(o.child,ra.child),childLeaving:ue(o.childLeaving,ra.childLeaving),childPulsate:ue(o.childPulsate,ra.childPulsate)},timeout:xx,pulsate:_,rippleX:C,rippleY:E,rippleSize:w},c.current)]),c.current+=1,f.current=O},[o]),x=d.useCallback((h={},_={},C=()=>{})=>{const{pulsate:E=!1,center:w=a||_.pulsate,fakeElement:O=!1}=_;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const P=O?null:y.current,k=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,$,F;if(w||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)j=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:z,clientY:M}=h.touches&&h.touches.length>0?h.touches[0]:h;j=Math.round(z-k.left),$=Math.round(M-k.top)}if(w)F=Math.sqrt((2*k.width**2+k.height**2)/3),F%2===0&&(F+=1);else{const z=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,M=Math.max(Math.abs((P?P.clientHeight:0)-$),$)*2+2;F=Math.sqrt(z**2+M**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},v.start(uce,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},[a,S,v]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),b=d.useCallback((h,_)=>{if(v.clear(),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(h,_)});return}g.current=null,l(C=>C.length>0?C.slice(1):C),f.current=_},[v]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:b}),[m,x,b]),R.jsx(pce,T({className:ue(ra.root,o.root,i),ref:y},s,{children:R.jsx(Xue,{component:null,exit:!0,children:u})}))}),gce=vce;function mce(e){return Ue("MuiButtonBase",e)}const yce=We("MuiButtonBase",["root","disabled","focusVisible"]),bce=yce,xce=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],wce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=qe({root:["root",t&&"disabled",r&&"focusVisible"]},mce,a);return r&&n&&(i.root+=` ${n}`),i},Sce=ne("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:S,onDragLeave:x,onFocus:m,onFocusVisible:b,onKeyDown:h,onKeyUp:_,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:O,onTouchMove:P,onTouchStart:k,tabIndex:j=0,TouchRippleProps:$,touchRippleRef:F,type:z}=n,M=Pe(n,xce),W=d.useRef(null),B=d.useRef(null),U=Jt(B,F),{isFocusVisibleRef:q,onFocus:ie,onBlur:oe,ref:Ee}=Ey(),[pe,Te]=d.useState(!1);l&&pe&&Te(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{Te(!0),W.current.focus()}}),[]);const[ye,be]=d.useState(!1);d.useEffect(()=>{be(!0)},[]);const we=ye&&!c&&!l;d.useEffect(()=>{pe&&p&&!c&&ye&&B.current.pulsate()},[c,p,pe,ye]);function ve(he,Re,Be=f){return fn(Ye=>(Re&&Re(Ye),!Be&&B.current&&B.current[he](Ye),!0))}const De=ve("start",C),Me=ve("stop",S),Qe=ve("stop",x),Ne=ve("stop",w),Ae=ve("stop",he=>{pe&&he.preventDefault(),E&&E(he)}),He=ve("start",k),ht=ve("stop",O),ut=ve("stop",P),V=ve("stop",he=>{oe(he),q.current===!1&&Te(!1),g&&g(he)},!1),K=fn(he=>{W.current||(W.current=he.currentTarget),ie(he),q.current===!0&&(Te(!0),b&&b(he)),m&&m(he)}),te=()=>{const he=W.current;return u&&u!=="button"&&!(he.tagName==="A"&&he.href)},se=d.useRef(!1),de=fn(he=>{p&&!se.current&&pe&&B.current&&he.key===" "&&(se.current=!0,B.current.stop(he,()=>{B.current.start(he)})),he.target===he.currentTarget&&te()&&he.key===" "&&he.preventDefault(),h&&h(he),he.target===he.currentTarget&&te()&&he.key==="Enter"&&!l&&(he.preventDefault(),y&&y(he))}),fe=fn(he=>{p&&he.key===" "&&B.current&&pe&&!he.defaultPrevented&&(se.current=!1,B.current.stop(he,()=>{B.current.pulsate(he)})),_&&_(he),y&&he.target===he.currentTarget&&te()&&he.key===" "&&!he.defaultPrevented&&y(he)});let Oe=u;Oe==="button"&&(M.href||M.to)&&(Oe=v);const ae={};Oe==="button"?(ae.type=z===void 0?"button":z,ae.disabled=l):(!M.href&&!M.to&&(ae.role="button"),l&&(ae["aria-disabled"]=l));const Z=Jt(r,Ee,W),G=T({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:pe}),le=wce(G);return R.jsxs(Sce,T({as:Oe,className:ue(le.root,s),ownerState:G,onBlur:V,onClick:y,onContextMenu:Me,onFocus:K,onKeyDown:de,onKeyUp:fe,onMouseDown:De,onMouseLeave:Ae,onMouseUp:Ne,onDragLeave:Qe,onTouchEnd:ht,onTouchMove:ut,onTouchStart:He,ref:Z,tabIndex:l?-1:j,type:z},ae,M,{children:[i,we?R.jsx(gce,T({ref:U,center:o},$)):null]}))}),Ma=_ce;function Cce(e){return Ue("MuiIconButton",e)}const Ece=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oce=Ece,Pce=["edge","children","className","color","disabled","disableFocusRipple","size"],Rce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ge(n)}`,a&&`edge${ge(a)}`,`size${ge(o)}`]};return qe(i,Cce,t)},Tce=ne(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ge(r.color)}`],r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":T({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Oce.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=Pe(n,Pce),p=T({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),v=Rce(p);return R.jsx(Tce,T({className:ue(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:o}))}),Pr=$ce;function kce(e){return Ue("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ice=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${ge(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return qe(s,kce,i)},Ace=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),_T={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mce={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Fce=e=>Mce[e]||e,Nce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTypography"}),a=Fce(n.color),o=_y(T({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=_T}=o,g=Pe(o,jce),y=T({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:v}),S=u||(f?"p":v[p]||_T[p])||"span",x=Ice(y);return R.jsx(Ace,T({as:S,ref:r,ownerState:y,className:ue(x.root,s)},g))}),_t=Nce;function Lce(e){return Ue("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Dce=["className","color","enableColorOnDark","position"],Bce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${ge(t)}`,`position${ge(r)}`]};return qe(a,Lce,n)},oh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,zce=ne(Yi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:oh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:oh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:oh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:oh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Pe(n,Dce),l=T({},n,{color:o,position:s,enableColorOnDark:i}),c=Bce(l);return R.jsx(zce,T({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),Uce=Vce;var xC={};Object.defineProperty(xC,"__esModule",{value:!0});var o4=xC.default=void 0,Wce=qce(d),Hce=t4;function i4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(i4=function(n){return n?r:t})(e)}function qce(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=i4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Kce(e){return Object.keys(e).length===0}function Gce(e=null){const t=Wce.useContext(Hce.ThemeContext);return!t||Kce(t)?e:t}o4=xC.default=Gce;var Tn="top",ha="bottom",va="right",$n="left",wC="auto",gp=[Tn,ha,va,$n],Zu="start",$f="end",Qce="clippingParents",s4="viewport",Qc="popper",Xce="reference",CT=gp.reduce(function(e,t){return e.concat([t+"-"+Zu,t+"-"+$f])},[]),l4=[].concat(gp,[wC]).reduce(function(e,t){return e.concat([t,t+"-"+Zu,t+"-"+$f])},[]),Yce="beforeRead",Jce="read",Zce="afterRead",ede="beforeMain",tde="main",rde="afterMain",nde="beforeWrite",ade="write",ode="afterWrite",ide=[Yce,Jce,Zce,ede,tde,rde,nde,ade,ode];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function la(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SC(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sde(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!la(o)||!ao(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function lde(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!la(a)||!ao(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const ude={name:"applyStyles",enabled:!0,phase:"write",fn:sde,effect:lde,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ls=Math.max,pg=Math.min,ec=Math.round;function wx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function u4(){return!/^((?!chrome|android).)*safari/i.test(wx())}function tc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&la(e)&&(a=e.offsetWidth>0&&ec(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ec(n.height)/e.offsetHeight||1);var i=tl(e)?Kn(e):window,s=i.visualViewport,u=!u4()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function _C(e){var t=tc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function c4(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SC(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Lo(e){return Kn(e).getComputedStyle(e)}function cde(e){return["table","td","th"].indexOf(ao(e))>=0}function Ji(e){return((tl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ty(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(SC(e)?e.host:null)||Ji(e)}function ET(e){return!la(e)||Lo(e).position==="fixed"?null:e.offsetParent}function dde(e){var t=/firefox/i.test(wx()),r=/Trident/i.test(wx());if(r&&la(e)){var n=Lo(e);if(n.position==="fixed")return null}var a=Ty(e);for(SC(a)&&(a=a.host);la(a)&&["html","body"].indexOf(ao(a))<0;){var o=Lo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function mp(e){for(var t=Kn(e),r=ET(e);r&&cde(r)&&Lo(r).position==="static";)r=ET(r);return r&&(ao(r)==="html"||ao(r)==="body"&&Lo(r).position==="static")?t:r||dde(e)||t}function CC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Md(e,t,r){return Ls(e,pg(t,r))}function fde(e,t,r){var n=Md(e,t,r);return n>r?r:n}function d4(){return{top:0,right:0,bottom:0,left:0}}function f4(e){return Object.assign({},d4(),e)}function p4(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var pde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,f4(typeof t!="number"?t:p4(t,gp))};function hde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=ro(r.placement),u=CC(s),l=[$n,va].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var f=pde(a.padding,r),p=_C(o),v=u==="y"?Tn:$n,g=u==="y"?ha:va,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],S=i[u]-r.rects.reference[u],x=mp(o),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-S/2,h=f[v],_=m-p[c]-f[g],C=m/2-p[c]/2+b,E=Md(h,C,_),w=u;r.modifiersData[n]=(t={},t[w]=E,t.centerOffset=E-C,t)}}function vde(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||c4(t.elements.popper,a)&&(t.elements.arrow=a))}const gde={name:"arrow",enabled:!0,phase:"main",fn:hde,effect:vde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rc(e){return e.split("-")[1]}var mde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ec(r*a)/a||0,y:ec(n*a)/a||0}}function OT(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,g=i.y,y=g===void 0?0:g,S=typeof c=="function"?c({x:v,y}):{x:v,y};v=S.x,y=S.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=$n,h=Tn,_=window;if(l){var C=mp(r),E="clientHeight",w="clientWidth";if(C===Kn(r)&&(C=Ji(r),Lo(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",w="scrollWidth")),C=C,a===Tn||(a===$n||a===va)&&o===$f){h=ha;var O=f&&C===_&&_.visualViewport?_.visualViewport.height:C[E];y-=O-n.height,y*=u?1:-1}if(a===$n||(a===Tn||a===ha)&&o===$f){b=va;var P=f&&C===_&&_.visualViewport?_.visualViewport.width:C[w];v-=P-n.width,v*=u?1:-1}}var k=Object.assign({position:s},l&&mde),j=c===!0?yde({x:v,y},Kn(r)):{x:v,y};if(v=j.x,y=j.y,u){var $;return Object.assign({},k,($={},$[h]=m?"0":"",$[b]=x?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",$))}return Object.assign({},k,(t={},t[h]=m?y+"px":"",t[b]=x?v+"px":"",t.transform="",t))}function bde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:ro(t.placement),variation:rc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OT(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OT(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bde,data:{}};var ih={passive:!0};function wde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Kn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,ih)}),s&&u.addEventListener("resize",r.update,ih),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,ih)}),s&&u.removeEventListener("resize",r.update,ih)}}const Sde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wde,data:{}};var _de={left:"right",right:"left",bottom:"top",top:"bottom"};function Gh(e){return e.replace(/left|right|bottom|top/g,function(t){return _de[t]})}var Cde={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,function(t){return Cde[t]})}function EC(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function OC(e){return tc(Ji(e)).left+EC(e).scrollLeft}function Ede(e,t){var r=Kn(e),n=Ji(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=u4();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+OC(e),y:u}}function Ode(e){var t,r=Ji(e),n=EC(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Ls(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ls(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+OC(e),u=-n.scrollTop;return Lo(a||r).direction==="rtl"&&(s+=Ls(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function PC(e){var t=Lo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function h4(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:la(e)&&PC(e)?e:h4(Ty(e))}function Fd(e,t){var r;t===void 0&&(t=[]);var n=h4(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),i=a?[o].concat(o.visualViewport||[],PC(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Fd(Ty(i)))}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pde(e,t){var r=tc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function RT(e,t,r){return t===s4?Sx(Ede(e,r)):tl(t)?Pde(t,r):Sx(Ode(Ji(e)))}function Rde(e){var t=Fd(Ty(e)),r=["absolute","fixed"].indexOf(Lo(e).position)>=0,n=r&&la(e)?mp(e):e;return tl(n)?t.filter(function(a){return tl(a)&&c4(a,n)&&ao(a)!=="body"}):[]}function Tde(e,t,r,n){var a=t==="clippingParents"?Rde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=RT(e,l,n);return u.top=Ls(c.top,u.top),u.right=pg(c.right,u.right),u.bottom=pg(c.bottom,u.bottom),u.left=Ls(c.left,u.left),u},RT(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function v4(e){var t=e.reference,r=e.element,n=e.placement,a=n?ro(n):null,o=n?rc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ha:u={x:i,y:t.y+t.height};break;case va:u={x:t.x+t.width,y:s};break;case $n:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CC(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Zu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case $f:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function kf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?Qce:s,l=r.rootBoundary,c=l===void 0?s4:l,f=r.elementContext,p=f===void 0?Qc:f,v=r.altBoundary,g=v===void 0?!1:v,y=r.padding,S=y===void 0?0:y,x=f4(typeof S!="number"?S:p4(S,gp)),m=p===Qc?Xce:Qc,b=e.rects.popper,h=e.elements[g?m:p],_=Tde(tl(h)?h:h.contextElement||Ji(e.elements.popper),u,c,i),C=tc(e.elements.reference),E=v4({reference:C,element:b,strategy:"absolute",placement:a}),w=Sx(Object.assign({},b,E)),O=p===Qc?w:C,P={top:_.top-O.top+x.top,bottom:O.bottom-_.bottom+x.bottom,left:_.left-O.left+x.left,right:O.right-_.right+x.right},k=e.modifiersData.offset;if(p===Qc&&k){var j=k[a];Object.keys(P).forEach(function($){var F=[va,ha].indexOf($)>=0?1:-1,z=[Tn,ha].indexOf($)>=0?"y":"x";P[$]+=j[z]*F})}return P}function $de(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?l4:u,c=rc(n),f=c?s?CT:CT.filter(function(g){return rc(g)===c}):gp,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var v=p.reduce(function(g,y){return g[y]=kf(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ro(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function kde(e){if(ro(e)===wC)return[];var t=Gh(e);return[PT(e),t,PT(t)]}function jde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,y=r.allowedAutoPlacements,S=t.options.placement,x=ro(S),m=x===S,b=u||(m||!g?[Gh(S)]:kde(S)),h=[S].concat(b).reduce(function(pe,Te){return pe.concat(ro(Te)===wC?$de(t,{placement:Te,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:y}):Te)},[]),_=t.rects.reference,C=t.rects.popper,E=new Map,w=!0,O=h[0],P=0;P=0,z=F?"width":"height",M=kf(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),W=F?$?va:$n:$?ha:Tn;_[z]>C[z]&&(W=Gh(W));var B=Gh(W),U=[];if(o&&U.push(M[j]<=0),s&&U.push(M[W]<=0,M[B]<=0),U.every(function(pe){return pe})){O=k,w=!1;break}E.set(k,U)}if(w)for(var q=g?3:1,ie=function(Te){var ye=h.find(function(be){var we=E.get(be);if(we)return we.slice(0,Te).every(function(ve){return ve})});if(ye)return O=ye,"break"},oe=q;oe>0;oe--){var Ee=ie(oe);if(Ee==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const Ide={name:"flip",enabled:!0,phase:"main",fn:jde,requiresIfExists:["offset"],data:{_skip:!1}};function TT(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $T(e){return[Tn,va,ha,$n].some(function(t){return e[t]>=0})}function Ade(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kf(t,{elementContext:"reference"}),s=kf(t,{altBoundary:!0}),u=TT(i,n),l=TT(s,a,o),c=$T(u),f=$T(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Mde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ade};function Fde(e,t,r){var n=ro(e),a=[$n,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[$n,va].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Nde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=l4.reduce(function(c,f){return c[f]=Fde(f,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Lde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nde};function Dde(e){var t=e.state,r=e.name;t.modifiersData[r]=v4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bde={name:"popperOffsets",enabled:!0,phase:"read",fn:Dde,data:{}};function zde(e){return e==="x"?"y":"x"}function Vde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,g=r.tetherOffset,y=g===void 0?0:g,S=kf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=ro(t.placement),m=rc(t.placement),b=!m,h=CC(x),_=zde(h),C=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(o){var $,F=h==="y"?Tn:$n,z=h==="y"?ha:va,M=h==="y"?"height":"width",W=C[h],B=W+S[F],U=W-S[z],q=v?-w[M]/2:0,ie=m===Zu?E[M]:w[M],oe=m===Zu?-w[M]:-E[M],Ee=t.elements.arrow,pe=v&&Ee?_C(Ee):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:d4(),ye=Te[F],be=Te[z],we=Md(0,E[M],pe[M]),ve=b?E[M]/2-q-we-ye-P.mainAxis:ie-we-ye-P.mainAxis,De=b?-E[M]/2+q+we+be+P.mainAxis:oe+we+be+P.mainAxis,Me=t.elements.arrow&&mp(t.elements.arrow),Qe=Me?h==="y"?Me.clientTop||0:Me.clientLeft||0:0,Ne=($=k==null?void 0:k[h])!=null?$:0,Ae=W+ve-Ne-Qe,He=W+De-Ne,ht=Md(v?pg(B,Ae):B,W,v?Ls(U,He):U);C[h]=ht,j[h]=ht-W}if(s){var ut,V=h==="x"?Tn:$n,K=h==="x"?ha:va,te=C[_],se=_==="y"?"height":"width",de=te+S[V],fe=te-S[K],Oe=[Tn,$n].indexOf(x)!==-1,ae=(ut=k==null?void 0:k[_])!=null?ut:0,Z=Oe?de:te-E[se]-w[se]-ae+P.altAxis,G=Oe?te+E[se]+w[se]-ae-P.altAxis:fe,le=v&&Oe?fde(Z,te,G):Md(v?Z:de,te,v?G:fe);C[_]=le,j[_]=le-te}t.modifiersData[n]=j}}const Ude={name:"preventOverflow",enabled:!0,phase:"main",fn:Vde,requiresIfExists:["offset"]};function Wde(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hde(e){return e===Kn(e)||!la(e)?EC(e):Wde(e)}function qde(e){var t=e.getBoundingClientRect(),r=ec(t.width)/e.offsetWidth||1,n=ec(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Kde(e,t,r){r===void 0&&(r=!1);var n=la(t),a=la(t)&&qde(t),o=Ji(t),i=tc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ao(t)!=="body"||PC(o))&&(s=Hde(t)),la(t)?(u=tc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=OC(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Gde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Qde(e){var t=Gde(e);return ide.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Xde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yde(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var kT={placement:"bottom",modifiers:[],strategy:"absolute"};function jT(){for(var e=arguments.length,t=new Array(e),r=0;r{o||s(tfe(a)||document.body)},[a,o]),qn(()=>{if(i&&!o)return lg(r,i),()=>{lg(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return R.jsx(d.Fragment,{children:n})}return R.jsx(d.Fragment,{children:i&&tp.createPortal(n,i)})}),g4=rfe;function nfe(e){return Ue("MuiPopper",e)}We("MuiPopper",["root"]);const afe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ofe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ife(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function _x(e){return typeof e=="function"?e():e}function sfe(e){return e.nodeType!==void 0}const lfe=e=>{const{classes:t}=e;return qe({root:["root"]},nfe,t)},ufe={},cfe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:v={},slots:g={},TransitionProps:y}=t,S=Pe(t,afe),x=d.useRef(null),m=Jt(x,r),b=d.useRef(null),h=Jt(b,p),_=d.useRef(h);qn(()=>{_.current=h},[h]),d.useImperativeHandle(p,()=>b.current,[]);const C=ife(c,i),[E,w]=d.useState(C),[O,P]=d.useState(_x(a));d.useEffect(()=>{b.current&&b.current.forceUpdate()}),d.useEffect(()=>{a&&P(_x(a))},[a]),qn(()=>{if(!O||!l)return;const z=B=>{w(B.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{z(B)}}];u!=null&&(M=M.concat(u)),f&&f.modifiers!=null&&(M=M.concat(f.modifiers));const W=efe(O,x.current,T({placement:C},f,{modifiers:M}));return _.current(W),()=>{W.destroy(),_.current(null)}},[O,s,u,l,f,C]);const k={placement:E};y!==null&&(k.TransitionProps=y);const j=lfe(t),$=(n=g.root)!=null?n:"div",F=fa({elementType:$,externalSlotProps:v.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:j.root});return R.jsx($,T({},F,{children:typeof o=="function"?o(k):o}))}),dfe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=ufe,popperRef:v,style:g,transition:y=!1,slotProps:S={},slots:x={}}=t,m=Pe(t,ofe),[b,h]=d.useState(!0),_=()=>{h(!1)},C=()=>{h(!0)};if(!u&&!c&&(!y||b))return null;let E;if(o)E=o;else if(n){const P=_x(n);E=P&&sfe(P)?wr(P).body:wr(null).body}const w=!c&&u&&(!y||b)?"none":void 0,O=y?{in:c,onEnter:_,onExited:C}:void 0;return R.jsx(g4,{disablePortal:s,container:E,children:R.jsx(cfe,T({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!b:c,placement:f,popperOptions:p,popperRef:v,slotProps:S,slots:x},m,{style:T({position:"fixed",top:0,left:0,display:w},g),TransitionProps:O,children:a}))})}),ffe=dfe,pfe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hfe=ne(ffe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vfe=d.forwardRef(function(t,r){var n;const a=o4(),o=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m,slots:b,slotProps:h}=o,_=Pe(o,pfe),C=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,E=T({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m},_);return R.jsx(hfe,T({as:s,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:h??l},E,{ref:r}))}),m4=vfe,gfe=An(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function mfe(e){return Ue("MuiChip",e)}const yfe=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Et=yfe,bfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xfe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ge(n)}`,`color${ge(a)}`,s&&"clickable",s&&`clickableColor${ge(a)}`,i&&"deletable",i&&`deletableColor${ge(a)}`,`${u}${ge(a)}`],label:["label",`label${ge(n)}`],avatar:["avatar",`avatar${ge(n)}`,`avatarColor${ge(a)}`],icon:["icon",`icon${ge(n)}`,`iconColor${ge(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ge(n)}`,`deleteIconColor${ge(a)}`,`deleteIcon${ge(u)}Color${ge(a)}`]};return qe(l,mfe,t)},wfe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${ge(s)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${ge(n)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${ge(s)}`]},{[`& .${Et.icon}`]:t[`iconColor${ge(a)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(s)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${ge(n)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(u)}Color${ge(n)}`]},t.root,t[`size${ge(s)}`],t[`color${ge(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ge(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ge(n)}`],t[u],t[`${u}${ge(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Et.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:gt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Et.avatar}`]:{marginLeft:4},[`& .${Et.avatarSmall}`]:{marginLeft:2},[`& .${Et.icon}`]:{marginLeft:4},[`& .${Et.iconSmall}`]:{marginLeft:2},[`& .${Et.deleteIcon}`]:{marginRight:5},[`& .${Et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Sfe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ge(n)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function IT(e){return e.key==="Backspace"||e.key==="Delete"}const _fe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:S,size:x="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:h=!1}=n,_=Pe(n,bfe),C=d.useRef(null),E=Jt(C,r),w=U=>{U.stopPropagation(),g&&g(U)},O=U=>{U.currentTarget===U.target&&IT(U)&&U.preventDefault(),y&&y(U)},P=U=>{U.currentTarget===U.target&&(g&&IT(U)?g(U):U.key==="Escape"&&C.current&&C.current.blur()),S&&S(U)},k=i!==!1&&v?!0:i,j=k||g?Ma:u||"div",$=T({},n,{component:j,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:k,variant:m}),F=xfe($),z=j===Ma?T({component:u||"div",focusVisibleClassName:F.focusVisible},g&&{disableRipple:!0}):{};let M=null;g&&(M=l&&d.isValidElement(l)?d.cloneElement(l,{className:ue(l.props.className,F.deleteIcon),onClick:w}):R.jsx(gfe,{className:ue(F.deleteIcon),onClick:w}));let W=null;a&&d.isValidElement(a)&&(W=d.cloneElement(a,{className:ue(F.avatar,a.props.className)}));let B=null;return f&&d.isValidElement(f)&&(B=d.cloneElement(f,{className:ue(F.icon,f.props.className)})),R.jsxs(wfe,T({as:j,className:ue(F.root,o),disabled:k&&c?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:P,ref:E,tabIndex:h&&c?-1:b,ownerState:$},z,_,{children:[W||B,R.jsx(Sfe,{className:ue(F.label),ownerState:$,children:p}),M]}))}),Cfe=_fe,Efe=["onChange","maxRows","minRows","style","value"];function sh(e){return parseInt(e,10)||0}const Ofe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Pfe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Rfe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Pe(t,Efe),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=Jt(r,c),p=d.useRef(null),v=d.useRef(null),g=d.useCallback(()=>{const x=c.current,b=da(x).getComputedStyle(x);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=v.current;h.style.width=b.width,h.value=x.value||t.placeholder||"x",h.value.slice(-1)===` -`&&(h.value+=" ");const _=b.boxSizing,C=sh(b.paddingBottom)+sh(b.paddingTop),E=sh(b.borderBottomWidth)+sh(b.borderTopWidth),w=h.scrollHeight;h.value="x";const O=h.scrollHeight;let P=w;o&&(P=Math.max(Number(o)*O,P)),a&&(P=Math.min(Number(a)*O,P)),P=Math.max(P,O);const k=P+(_==="border-box"?C+E:0),j=Math.abs(P-w)<=1;return{outerHeightStyle:k,overflowing:j}},[a,o,t.placeholder]),y=d.useCallback(()=>{const x=g();if(Pfe(x))return;const m=x.outerHeightStyle,b=c.current;p.current!==m&&(p.current=m,b.style.height=`${m}px`),b.style.overflow=x.overflowing?"hidden":""},[g]);qn(()=>{const x=()=>{y()};let m;const b=Rc(x),h=c.current,_=da(h);_.addEventListener("resize",b);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(h)),()=>{b.clear(),cancelAnimationFrame(m),_.removeEventListener("resize",b),C&&C.disconnect()}},[g,y]),qn(()=>{y()});const S=x=>{l||y(),n&&n(x)};return R.jsxs(d.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:S,ref:f,rows:o,style:i},u)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:T({},Ofe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),Tfe=Rfe;function Zi({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const $fe=d.createContext(void 0),$y=$fe;function po(){return d.useContext($y)}function y4(e){return R.jsx(vse,T({},e,{defaultTheme:Oy,themeId:Js}))}function AT(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hg(e,t=!1){return e&&(AT(e.value)&&e.value!==""||t&&AT(e.defaultValue)&&e.defaultValue!=="")}function kfe(e){return e.startAdornment}function jfe(e){return Ue("MuiInputBase",e)}const Ife=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nc=Ife,Afe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ky=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ge(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jy=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Mfe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:v,type:g}=e,y={root:["root",`color${ge(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ge(p)}`,c&&"multiline",v&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return qe(y,jfe,t)},Iy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ky})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ay=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${nc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Ffe=R.jsx(y4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nfe=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:S,inputComponent:x="input",inputProps:m={},inputRef:b,maxRows:h,minRows:_,multiline:C=!1,name:E,onBlur:w,onChange:O,onClick:P,onFocus:k,onKeyDown:j,onKeyUp:$,placeholder:F,readOnly:z,renderSuffix:M,rows:W,slotProps:B={},slots:U={},startAdornment:q,type:ie="text",value:oe}=a,Ee=Pe(a,Afe),pe=m.value!=null?m.value:oe,{current:Te}=d.useRef(pe!=null),ye=d.useRef(),be=d.useCallback(le=>{},[]),we=Jt(ye,b,m.ref,be),[ve,De]=d.useState(!1),Me=po(),Qe=Zi({props:a,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Me?Me.focused:ve,d.useEffect(()=>{!Me&&p&&ve&&(De(!1),w&&w())},[Me,p,ve,w]);const Ne=Me&&Me.onFilled,Ae=Me&&Me.onEmpty,He=d.useCallback(le=>{hg(le)?Ne&&Ne():Ae&&Ae()},[Ne,Ae]);qn(()=>{Te&&He({value:pe})},[pe,He,Te]);const ht=le=>{if(Qe.disabled){le.stopPropagation();return}k&&k(le),m.onFocus&&m.onFocus(le),Me&&Me.onFocus?Me.onFocus(le):De(!0)},ut=le=>{w&&w(le),m.onBlur&&m.onBlur(le),Me&&Me.onBlur?Me.onBlur(le):De(!1)},V=(le,...he)=>{if(!Te){const Re=le.target||ye.current;if(Re==null)throw new Error(No(1));He({value:Re.value})}m.onChange&&m.onChange(le,...he),O&&O(le,...he)};d.useEffect(()=>{He(ye.current)},[]);const K=le=>{ye.current&&le.currentTarget===le.target&&ye.current.focus(),P&&P(le)};let te=x,se=m;C&&te==="input"&&(W?se=T({type:void 0,minRows:W,maxRows:W},se):se=T({type:void 0,maxRows:h,minRows:_},se),te=Tfe);const de=le=>{He(le.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};d.useEffect(()=>{Me&&Me.setAdornedStart(!!q)},[Me,q]);const fe=T({},a,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:g,error:Qe.error,focused:Qe.focused,formControl:Me,fullWidth:y,hiddenLabel:Qe.hiddenLabel,multiline:C,size:Qe.size,startAdornment:q,type:ie}),Oe=Mfe(fe),ae=U.root||l.Root||Iy,Z=B.root||c.root||{},G=U.input||l.Input||Ay;return se=T({},se,(n=B.input)!=null?n:c.input),R.jsxs(d.Fragment,{children:[!v&&Ffe,R.jsxs(ae,T({},Z,!Rf(ae)&&{ownerState:T({},fe,Z.ownerState)},{ref:r,onClick:K},Ee,{className:ue(Oe.root,Z.className,u,z&&"MuiInputBase-readOnly"),children:[q,R.jsx($y.Provider,{value:null,children:R.jsx(G,T({ownerState:fe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Qe.disabled,id:S,onAnimationStart:de,name:E,placeholder:F,readOnly:z,required:Qe.required,rows:W,value:pe,onKeyDown:j,onKeyUp:$,type:ie},se,!Rf(G)&&{as:te,ownerState:T({},fe,se.ownerState)},{ref:we,className:ue(Oe.input,se.className,z&&"MuiInputBase-readOnly"),onBlur:ut,onChange:V,onFocus:ht}))}),g,M?M(T({},Qe,{startAdornment:q})):null]}))]})}),My=Nfe;function Lfe(e){return Ue("MuiInput",e)}const Dfe=T({},nc,We("MuiInput",["root","underline","input"])),Xc=Dfe;function Bfe(e){return Ue("MuiOutlinedInput",e)}const zfe=T({},nc,We("MuiOutlinedInput",["root","notchedOutline","input"])),Yo=zfe;function Vfe(e){return Ue("MuiFilledInput",e)}const Ufe=T({},nc,We("MuiFilledInput",["root","underline","input"])),es=Ufe,Wfe=An(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Hfe=An(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function qfe(e){return Ue("MuiAvatar",e)}We("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Kfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Gfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return qe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},qfe,t)},Qfe=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:T({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Xfe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Yfe=ne(Hfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Jfe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const Zfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:f,src:p,srcSet:v,variant:g="circular"}=n,y=Pe(n,Kfe);let S=null;const x=Jfe(T({},c,{src:p,srcSet:v})),m=p||v,b=m&&x!=="error",h=T({},n,{colorDefault:!b,component:s,variant:g}),_=Gfe(h),[C,E]=oce("img",{className:_.img,elementType:Xfe,externalForwardedProps:{slots:u,slotProps:{img:T({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:v,sizes:f},ownerState:h});return b?S=R.jsx(C,T({},E)):o||o===0?S=o:m&&a?S=a[0]:S=R.jsx(Yfe,{ownerState:h,className:_.fallback}),R.jsx(Qfe,T({as:s,ownerState:h,className:ue(_.root,i),ref:r},y,{children:S}))}),vg=Zfe,epe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tpe={entering:{opacity:1},entered:{opacity:1}},rpe=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:g,onExiting:y,style:S,timeout:x=a,TransitionComponent:m=gC}=t,b=Pe(t,epe),h=d.useRef(null),_=Jt(h,s.ref,r),C=F=>z=>{if(F){const M=h.current;z===void 0?F(M):F(M,z)}},E=C(p),w=C((F,z)=>{bC(F);const M=Ju({style:S,timeout:x,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",M),F.style.transition=n.transitions.create("opacity",M),c&&c(F,z)}),O=C(f),P=C(y),k=C(F=>{const z=Ju({style:S,timeout:x,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",z),F.style.transition=n.transitions.create("opacity",z),v&&v(F)}),j=C(g),$=F=>{o&&o(h.current,F)};return R.jsx(m,T({appear:i,in:l,nodeRef:h,onEnter:w,onEntered:O,onEntering:E,onExit:k,onExited:j,onExiting:P,addEndListener:$,timeout:x},b,{children:(F,z)=>d.cloneElement(s,T({style:T({opacity:0,visibility:F==="exited"&&!l?"hidden":void 0},tpe[F],S,s.props.style),ref:_},z))}))}),b4=rpe;function npe(e){return Ue("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const ape=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ope=e=>{const{classes:t,invisible:r}=e;return qe({root:["root",r&&"invisible"]},npe,t)},ipe=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),spe=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:S=b4,transitionDuration:x}=i,m=Pe(i,ape),b=T({},i,{component:l,invisible:p}),h=ope(b),_=(n=g.root)!=null?n:f.root;return R.jsx(S,T({in:v,timeout:x},m,{children:R.jsx(ipe,T({"aria-hidden":!0},_,{as:(a=(o=y.root)!=null?o:c.Root)!=null?a:l,className:ue(h.root,u,_==null?void 0:_.className),ownerState:T({},b,_==null?void 0:_.ownerState),classes:h,ref:r,children:s}))}))}),x4=spe,lpe=We("MuiBox",["root"]),upe=lpe,cpe=dg(),dpe=Sse({themeId:Js,defaultTheme:cpe,defaultClassName:upe.root,generateClassName:lC.generate}),Qh=dpe;function fpe(e){return Ue("MuiButton",e)}const ppe=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),lh=ppe,hpe=d.createContext({}),vpe=hpe,gpe=d.createContext(void 0),mpe=gpe,ype=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bpe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${ge(t)}`,`size${ge(a)}`,`${o}Size${ge(a)}`,`color${ge(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ge(a)}`],endIcon:["icon","endIcon",`iconSize${ge(a)}`]},u=qe(s,fpe,i);return T({},i,u)},w4=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),xpe=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ge(r.color)}`],t[`size${ge(r.size)}`],t[`${r.variant}Size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${lh.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lh.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lh.disabled}`]:{boxShadow:"none"}}),wpe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},w4(e))),Spe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},w4(e))),_pe=d.forwardRef(function(t,r){const n=d.useContext(vpe),a=d.useContext(mpe),o=Of(n,t),i=Ke({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:S=!1,size:x="medium",startIcon:m,type:b,variant:h="text"}=i,_=Pe(i,ype),C=T({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:S,size:x,type:b,variant:h}),E=bpe(C),w=m&&R.jsx(wpe,{className:E.startIcon,ownerState:C,children:m}),O=g&&R.jsx(Spe,{className:E.endIcon,ownerState:C,children:g}),P=a||"";return R.jsxs(xpe,T({ownerState:C,className:ue(n.className,E.root,c,P),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ue(E.focusVisible,y),ref:r,type:b},_,{classes:E,children:[w,s,O]}))}),hn=_pe;function Cpe(e){return Ue("MuiCard",e)}We("MuiCard",["root"]);const Epe=["className","raised"],Ope=e=>{const{classes:t}=e;return qe({root:["root"]},Cpe,t)},Ppe=ne(Yi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Rpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Pe(n,Epe),s=T({},n,{raised:o}),u=Ope(s);return R.jsx(Ppe,T({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))}),oo=Rpe;function Tpe(e){return Ue("MuiCardContent",e)}We("MuiCardContent",["root"]);const $pe=["className","component"],kpe=e=>{const{classes:t}=e;return qe({root:["root"]},Tpe,t)},jpe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ipe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Pe(n,$pe),s=T({},n,{component:o}),u=kpe(s);return R.jsx(jpe,T({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))}),Di=Ipe;function Ape(e){return Ue("MuiCardHeader",e)}const Mpe=We("MuiCardHeader",["root","avatar","action","content","title","subheader"]),MT=Mpe,Fpe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Npe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ape,t)},Lpe=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${MT.title}`]:t.title,[`& .${MT.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Dpe=ne("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Bpe=ne("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),zpe=ne("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Vpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=n,v=Pe(n,Fpe),g=T({},n,{component:s,disableTypography:u}),y=Npe(g);let S=f;S!=null&&S.type!==_t&&!u&&(S=R.jsx(_t,T({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},p,{children:S})));let x=l;return x!=null&&x.type!==_t&&!u&&(x=R.jsx(_t,T({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),R.jsxs(Lpe,T({className:ue(y.root,i),as:s,ref:r,ownerState:g},v,{children:[o&&R.jsx(Dpe,{className:y.avatar,ownerState:g,children:o}),R.jsxs(zpe,{className:y.content,ownerState:g,children:[S,x]}),a&&R.jsx(Bpe,{className:y.action,ownerState:g,children:a})]}))}),FT=Vpe;function Upe(e){return Ue("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Wpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Hpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${ge(a)}`],input:["input"]};return qe(o,Upe,t)},qpe=ne(Ma)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Kpe=ne("input",{shouldForwardProp:Wr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Gpe=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:v,inputRef:g,name:y,onBlur:S,onChange:x,onFocus:m,readOnly:b,required:h=!1,tabIndex:_,type:C,value:E}=t,w=Pe(t,Wpe),[O,P]=Yu({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),k=po(),j=U=>{m&&m(U),k&&k.onFocus&&k.onFocus(U)},$=U=>{S&&S(U),k&&k.onBlur&&k.onBlur(U)},F=U=>{if(U.nativeEvent.defaultPrevented)return;const q=U.target.checked;P(q),x&&x(U,q)};let z=u;k&&typeof z>"u"&&(z=k.disabled);const M=C==="checkbox"||C==="radio",W=T({},t,{checked:O,disabled:z,disableFocusRipple:l,edge:c}),B=Hpe(W);return R.jsxs(qpe,T({component:"span",className:ue(B.root,i),centerRipple:!0,focusRipple:!l,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:$,ownerState:W,ref:r},w,{children:[R.jsx(Kpe,T({autoFocus:n,checked:a,defaultChecked:s,className:B.input,disabled:z,id:M?p:void 0,name:y,onChange:F,readOnly:b,ref:g,required:h,ownerState:W,tabIndex:_,type:C},C==="checkbox"&&E===void 0?{}:{value:E},v)),O?o:f]}))}),S4=Gpe,Qpe=An(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Xpe=An(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ype=An(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Jpe(e){return Ue("MuiCheckbox",e)}const Zpe=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),a0=Zpe,ehe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],the=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(a)}`]},i=qe(o,Jpe,t);return T({},t,i)},rhe=ne(S4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ge(r.size)}`],r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a0.checked}, &.${a0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${a0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nhe=R.jsx(Xpe,{}),ahe=R.jsx(Qpe,{}),ohe=R.jsx(Ype,{}),ihe=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=nhe,color:s="primary",icon:u=ahe,indeterminate:l=!1,indeterminateIcon:c=ohe,inputProps:f,size:p="medium",className:v}=o,g=Pe(o,ehe),y=l?c:u,S=l?c:i,x=T({},o,{color:s,indeterminate:l,size:p}),m=the(x);return R.jsx(rhe,T({type:"checkbox",inputProps:T({"data-indeterminate":l},f),icon:d.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(m.root,v)},g,{classes:m}))}),gg=ihe;function she(e){return Ue("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lhe=["className","color","disableShrink","size","style","thickness","value","variant"];let Fy=e=>e,NT,LT,DT,BT;const Jo=44,uhe=Pc(NT||(NT=Fy` +`),ra.rippleVisible,cce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ra.child,ra.childLeaving,dce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.childPulsate,fce,({theme:e})=>e.transitions.easing.easeInOut),vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Pe(n,lce),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),v=Ss(),g=d.useRef(null),y=d.useRef(null),S=d.useCallback(h=>{const{pulsate:_,rippleX:C,rippleY:E,rippleSize:w,cb:O}=h;l(P=>[...P,R.jsx(hce,{classes:{ripple:ue(o.ripple,ra.ripple),rippleVisible:ue(o.rippleVisible,ra.rippleVisible),ripplePulsate:ue(o.ripplePulsate,ra.ripplePulsate),child:ue(o.child,ra.child),childLeaving:ue(o.childLeaving,ra.childLeaving),childPulsate:ue(o.childPulsate,ra.childPulsate)},timeout:xx,pulsate:_,rippleX:C,rippleY:E,rippleSize:w},c.current)]),c.current+=1,f.current=O},[o]),x=d.useCallback((h={},_={},C=()=>{})=>{const{pulsate:E=!1,center:w=a||_.pulsate,fakeElement:O=!1}=_;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const P=O?null:y.current,k=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,$,F;if(w||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)j=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:z,clientY:M}=h.touches&&h.touches.length>0?h.touches[0]:h;j=Math.round(z-k.left),$=Math.round(M-k.top)}if(w)F=Math.sqrt((2*k.width**2+k.height**2)/3),F%2===0&&(F+=1);else{const z=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,M=Math.max(Math.abs((P?P.clientHeight:0)-$),$)*2+2;F=Math.sqrt(z**2+M**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},v.start(uce,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},[a,S,v]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),b=d.useCallback((h,_)=>{if(v.clear(),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(h,_)});return}g.current=null,l(C=>C.length>0?C.slice(1):C),f.current=_},[v]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:b}),[m,x,b]),R.jsx(pce,T({className:ue(ra.root,o.root,i),ref:y},s,{children:R.jsx(Xue,{component:null,exit:!0,children:u})}))}),gce=vce;function mce(e){return Ue("MuiButtonBase",e)}const yce=We("MuiButtonBase",["root","disabled","focusVisible"]),bce=yce,xce=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],wce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=qe({root:["root",t&&"disabled",r&&"focusVisible"]},mce,a);return r&&n&&(i.root+=` ${n}`),i},Sce=ne("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:S,onDragLeave:x,onFocus:m,onFocusVisible:b,onKeyDown:h,onKeyUp:_,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:O,onTouchMove:P,onTouchStart:k,tabIndex:j=0,TouchRippleProps:$,touchRippleRef:F,type:z}=n,M=Pe(n,xce),W=d.useRef(null),B=d.useRef(null),U=Jt(B,F),{isFocusVisibleRef:q,onFocus:ie,onBlur:oe,ref:Ee}=Cy(),[pe,Te]=d.useState(!1);l&&pe&&Te(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{Te(!0),W.current.focus()}}),[]);const[ye,be]=d.useState(!1);d.useEffect(()=>{be(!0)},[]);const we=ye&&!c&&!l;d.useEffect(()=>{pe&&p&&!c&&ye&&B.current.pulsate()},[c,p,pe,ye]);function ve(he,Re,Be=f){return fn(Ye=>(Re&&Re(Ye),!Be&&B.current&&B.current[he](Ye),!0))}const De=ve("start",C),Me=ve("stop",S),Qe=ve("stop",x),Ne=ve("stop",w),Ae=ve("stop",he=>{pe&&he.preventDefault(),E&&E(he)}),He=ve("start",k),ht=ve("stop",O),ut=ve("stop",P),V=ve("stop",he=>{oe(he),q.current===!1&&Te(!1),g&&g(he)},!1),K=fn(he=>{W.current||(W.current=he.currentTarget),ie(he),q.current===!0&&(Te(!0),b&&b(he)),m&&m(he)}),te=()=>{const he=W.current;return u&&u!=="button"&&!(he.tagName==="A"&&he.href)},se=d.useRef(!1),de=fn(he=>{p&&!se.current&&pe&&B.current&&he.key===" "&&(se.current=!0,B.current.stop(he,()=>{B.current.start(he)})),he.target===he.currentTarget&&te()&&he.key===" "&&he.preventDefault(),h&&h(he),he.target===he.currentTarget&&te()&&he.key==="Enter"&&!l&&(he.preventDefault(),y&&y(he))}),fe=fn(he=>{p&&he.key===" "&&B.current&&pe&&!he.defaultPrevented&&(se.current=!1,B.current.stop(he,()=>{B.current.pulsate(he)})),_&&_(he),y&&he.target===he.currentTarget&&te()&&he.key===" "&&!he.defaultPrevented&&y(he)});let Oe=u;Oe==="button"&&(M.href||M.to)&&(Oe=v);const ae={};Oe==="button"?(ae.type=z===void 0?"button":z,ae.disabled=l):(!M.href&&!M.to&&(ae.role="button"),l&&(ae["aria-disabled"]=l));const Z=Jt(r,Ee,W),G=T({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:pe}),le=wce(G);return R.jsxs(Sce,T({as:Oe,className:ue(le.root,s),ownerState:G,onBlur:V,onClick:y,onContextMenu:Me,onFocus:K,onKeyDown:de,onKeyUp:fe,onMouseDown:De,onMouseLeave:Ae,onMouseUp:Ne,onDragLeave:Qe,onTouchEnd:ht,onTouchMove:ut,onTouchStart:He,ref:Z,tabIndex:l?-1:j,type:z},ae,M,{children:[i,we?R.jsx(gce,T({ref:U,center:o},$)):null]}))}),Ma=_ce;function Cce(e){return Ue("MuiIconButton",e)}const Ece=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oce=Ece,Pce=["edge","children","className","color","disabled","disableFocusRipple","size"],Rce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ge(n)}`,a&&`edge${ge(a)}`,`size${ge(o)}`]};return qe(i,Cce,t)},Tce=ne(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ge(r.color)}`],r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":T({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Oce.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=Pe(n,Pce),p=T({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),v=Rce(p);return R.jsx(Tce,T({className:ue(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:o}))}),Pr=$ce;function kce(e){return Ue("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ice=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${ge(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return qe(s,kce,i)},Ace=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),_T={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mce={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Fce=e=>Mce[e]||e,Nce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTypography"}),a=Fce(n.color),o=Sy(T({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=_T}=o,g=Pe(o,jce),y=T({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:v}),S=u||(f?"p":v[p]||_T[p])||"span",x=Ice(y);return R.jsx(Ace,T({as:S,ref:r,ownerState:y,className:ue(x.root,s)},g))}),_t=Nce;function Lce(e){return Ue("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Dce=["className","color","enableColorOnDark","position"],Bce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${ge(t)}`,`position${ge(r)}`]};return qe(a,Lce,n)},oh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,zce=ne(Yi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:oh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:oh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:oh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:oh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Pe(n,Dce),l=T({},n,{color:o,position:s,enableColorOnDark:i}),c=Bce(l);return R.jsx(zce,T({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),Uce=Vce;var xC={};Object.defineProperty(xC,"__esModule",{value:!0});var i4=xC.default=void 0,Wce=qce(d),Hce=r4;function s4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(s4=function(n){return n?r:t})(e)}function qce(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=s4(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Kce(e){return Object.keys(e).length===0}function Gce(e=null){const t=Wce.useContext(Hce.ThemeContext);return!t||Kce(t)?e:t}i4=xC.default=Gce;var Tn="top",ha="bottom",va="right",$n="left",wC="auto",gp=[Tn,ha,va,$n],Zu="start",$f="end",Qce="clippingParents",l4="viewport",Qc="popper",Xce="reference",CT=gp.reduce(function(e,t){return e.concat([t+"-"+Zu,t+"-"+$f])},[]),u4=[].concat(gp,[wC]).reduce(function(e,t){return e.concat([t,t+"-"+Zu,t+"-"+$f])},[]),Yce="beforeRead",Jce="read",Zce="afterRead",ede="beforeMain",tde="main",rde="afterMain",nde="beforeWrite",ade="write",ode="afterWrite",ide=[Yce,Jce,Zce,ede,tde,rde,nde,ade,ode];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function la(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SC(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sde(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!la(o)||!ao(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function lde(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!la(a)||!ao(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const ude={name:"applyStyles",enabled:!0,phase:"write",fn:sde,effect:lde,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ls=Math.max,fg=Math.min,ec=Math.round;function wx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function c4(){return!/^((?!chrome|android).)*safari/i.test(wx())}function tc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&la(e)&&(a=e.offsetWidth>0&&ec(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ec(n.height)/e.offsetHeight||1);var i=tl(e)?Kn(e):window,s=i.visualViewport,u=!c4()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function _C(e){var t=tc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function d4(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SC(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Lo(e){return Kn(e).getComputedStyle(e)}function cde(e){return["table","td","th"].indexOf(ao(e))>=0}function Ji(e){return((tl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ry(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(SC(e)?e.host:null)||Ji(e)}function ET(e){return!la(e)||Lo(e).position==="fixed"?null:e.offsetParent}function dde(e){var t=/firefox/i.test(wx()),r=/Trident/i.test(wx());if(r&&la(e)){var n=Lo(e);if(n.position==="fixed")return null}var a=Ry(e);for(SC(a)&&(a=a.host);la(a)&&["html","body"].indexOf(ao(a))<0;){var o=Lo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function mp(e){for(var t=Kn(e),r=ET(e);r&&cde(r)&&Lo(r).position==="static";)r=ET(r);return r&&(ao(r)==="html"||ao(r)==="body"&&Lo(r).position==="static")?t:r||dde(e)||t}function CC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Md(e,t,r){return Ls(e,fg(t,r))}function fde(e,t,r){var n=Md(e,t,r);return n>r?r:n}function f4(){return{top:0,right:0,bottom:0,left:0}}function p4(e){return Object.assign({},f4(),e)}function h4(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var pde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,p4(typeof t!="number"?t:h4(t,gp))};function hde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=ro(r.placement),u=CC(s),l=[$n,va].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var f=pde(a.padding,r),p=_C(o),v=u==="y"?Tn:$n,g=u==="y"?ha:va,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],S=i[u]-r.rects.reference[u],x=mp(o),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-S/2,h=f[v],_=m-p[c]-f[g],C=m/2-p[c]/2+b,E=Md(h,C,_),w=u;r.modifiersData[n]=(t={},t[w]=E,t.centerOffset=E-C,t)}}function vde(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||d4(t.elements.popper,a)&&(t.elements.arrow=a))}const gde={name:"arrow",enabled:!0,phase:"main",fn:hde,effect:vde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rc(e){return e.split("-")[1]}var mde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ec(r*a)/a||0,y:ec(n*a)/a||0}}function OT(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,g=i.y,y=g===void 0?0:g,S=typeof c=="function"?c({x:v,y}):{x:v,y};v=S.x,y=S.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=$n,h=Tn,_=window;if(l){var C=mp(r),E="clientHeight",w="clientWidth";if(C===Kn(r)&&(C=Ji(r),Lo(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",w="scrollWidth")),C=C,a===Tn||(a===$n||a===va)&&o===$f){h=ha;var O=f&&C===_&&_.visualViewport?_.visualViewport.height:C[E];y-=O-n.height,y*=u?1:-1}if(a===$n||(a===Tn||a===ha)&&o===$f){b=va;var P=f&&C===_&&_.visualViewport?_.visualViewport.width:C[w];v-=P-n.width,v*=u?1:-1}}var k=Object.assign({position:s},l&&mde),j=c===!0?yde({x:v,y},Kn(r)):{x:v,y};if(v=j.x,y=j.y,u){var $;return Object.assign({},k,($={},$[h]=m?"0":"",$[b]=x?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",$))}return Object.assign({},k,(t={},t[h]=m?y+"px":"",t[b]=x?v+"px":"",t.transform="",t))}function bde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:ro(t.placement),variation:rc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OT(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OT(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bde,data:{}};var ih={passive:!0};function wde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Kn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,ih)}),s&&u.addEventListener("resize",r.update,ih),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,ih)}),s&&u.removeEventListener("resize",r.update,ih)}}const Sde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wde,data:{}};var _de={left:"right",right:"left",bottom:"top",top:"bottom"};function Gh(e){return e.replace(/left|right|bottom|top/g,function(t){return _de[t]})}var Cde={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,function(t){return Cde[t]})}function EC(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function OC(e){return tc(Ji(e)).left+EC(e).scrollLeft}function Ede(e,t){var r=Kn(e),n=Ji(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=c4();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+OC(e),y:u}}function Ode(e){var t,r=Ji(e),n=EC(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Ls(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ls(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+OC(e),u=-n.scrollTop;return Lo(a||r).direction==="rtl"&&(s+=Ls(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function PC(e){var t=Lo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function v4(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:la(e)&&PC(e)?e:v4(Ry(e))}function Fd(e,t){var r;t===void 0&&(t=[]);var n=v4(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),i=a?[o].concat(o.visualViewport||[],PC(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Fd(Ry(i)))}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pde(e,t){var r=tc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function RT(e,t,r){return t===l4?Sx(Ede(e,r)):tl(t)?Pde(t,r):Sx(Ode(Ji(e)))}function Rde(e){var t=Fd(Ry(e)),r=["absolute","fixed"].indexOf(Lo(e).position)>=0,n=r&&la(e)?mp(e):e;return tl(n)?t.filter(function(a){return tl(a)&&d4(a,n)&&ao(a)!=="body"}):[]}function Tde(e,t,r,n){var a=t==="clippingParents"?Rde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=RT(e,l,n);return u.top=Ls(c.top,u.top),u.right=fg(c.right,u.right),u.bottom=fg(c.bottom,u.bottom),u.left=Ls(c.left,u.left),u},RT(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function g4(e){var t=e.reference,r=e.element,n=e.placement,a=n?ro(n):null,o=n?rc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ha:u={x:i,y:t.y+t.height};break;case va:u={x:t.x+t.width,y:s};break;case $n:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CC(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Zu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case $f:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function kf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?Qce:s,l=r.rootBoundary,c=l===void 0?l4:l,f=r.elementContext,p=f===void 0?Qc:f,v=r.altBoundary,g=v===void 0?!1:v,y=r.padding,S=y===void 0?0:y,x=p4(typeof S!="number"?S:h4(S,gp)),m=p===Qc?Xce:Qc,b=e.rects.popper,h=e.elements[g?m:p],_=Tde(tl(h)?h:h.contextElement||Ji(e.elements.popper),u,c,i),C=tc(e.elements.reference),E=g4({reference:C,element:b,strategy:"absolute",placement:a}),w=Sx(Object.assign({},b,E)),O=p===Qc?w:C,P={top:_.top-O.top+x.top,bottom:O.bottom-_.bottom+x.bottom,left:_.left-O.left+x.left,right:O.right-_.right+x.right},k=e.modifiersData.offset;if(p===Qc&&k){var j=k[a];Object.keys(P).forEach(function($){var F=[va,ha].indexOf($)>=0?1:-1,z=[Tn,ha].indexOf($)>=0?"y":"x";P[$]+=j[z]*F})}return P}function $de(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?u4:u,c=rc(n),f=c?s?CT:CT.filter(function(g){return rc(g)===c}):gp,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var v=p.reduce(function(g,y){return g[y]=kf(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ro(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function kde(e){if(ro(e)===wC)return[];var t=Gh(e);return[PT(e),t,PT(t)]}function jde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,y=r.allowedAutoPlacements,S=t.options.placement,x=ro(S),m=x===S,b=u||(m||!g?[Gh(S)]:kde(S)),h=[S].concat(b).reduce(function(pe,Te){return pe.concat(ro(Te)===wC?$de(t,{placement:Te,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:y}):Te)},[]),_=t.rects.reference,C=t.rects.popper,E=new Map,w=!0,O=h[0],P=0;P=0,z=F?"width":"height",M=kf(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),W=F?$?va:$n:$?ha:Tn;_[z]>C[z]&&(W=Gh(W));var B=Gh(W),U=[];if(o&&U.push(M[j]<=0),s&&U.push(M[W]<=0,M[B]<=0),U.every(function(pe){return pe})){O=k,w=!1;break}E.set(k,U)}if(w)for(var q=g?3:1,ie=function(Te){var ye=h.find(function(be){var we=E.get(be);if(we)return we.slice(0,Te).every(function(ve){return ve})});if(ye)return O=ye,"break"},oe=q;oe>0;oe--){var Ee=ie(oe);if(Ee==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const Ide={name:"flip",enabled:!0,phase:"main",fn:jde,requiresIfExists:["offset"],data:{_skip:!1}};function TT(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $T(e){return[Tn,va,ha,$n].some(function(t){return e[t]>=0})}function Ade(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kf(t,{elementContext:"reference"}),s=kf(t,{altBoundary:!0}),u=TT(i,n),l=TT(s,a,o),c=$T(u),f=$T(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Mde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ade};function Fde(e,t,r){var n=ro(e),a=[$n,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[$n,va].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Nde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=u4.reduce(function(c,f){return c[f]=Fde(f,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Lde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nde};function Dde(e){var t=e.state,r=e.name;t.modifiersData[r]=g4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bde={name:"popperOffsets",enabled:!0,phase:"read",fn:Dde,data:{}};function zde(e){return e==="x"?"y":"x"}function Vde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,g=r.tetherOffset,y=g===void 0?0:g,S=kf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=ro(t.placement),m=rc(t.placement),b=!m,h=CC(x),_=zde(h),C=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(o){var $,F=h==="y"?Tn:$n,z=h==="y"?ha:va,M=h==="y"?"height":"width",W=C[h],B=W+S[F],U=W-S[z],q=v?-w[M]/2:0,ie=m===Zu?E[M]:w[M],oe=m===Zu?-w[M]:-E[M],Ee=t.elements.arrow,pe=v&&Ee?_C(Ee):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:f4(),ye=Te[F],be=Te[z],we=Md(0,E[M],pe[M]),ve=b?E[M]/2-q-we-ye-P.mainAxis:ie-we-ye-P.mainAxis,De=b?-E[M]/2+q+we+be+P.mainAxis:oe+we+be+P.mainAxis,Me=t.elements.arrow&&mp(t.elements.arrow),Qe=Me?h==="y"?Me.clientTop||0:Me.clientLeft||0:0,Ne=($=k==null?void 0:k[h])!=null?$:0,Ae=W+ve-Ne-Qe,He=W+De-Ne,ht=Md(v?fg(B,Ae):B,W,v?Ls(U,He):U);C[h]=ht,j[h]=ht-W}if(s){var ut,V=h==="x"?Tn:$n,K=h==="x"?ha:va,te=C[_],se=_==="y"?"height":"width",de=te+S[V],fe=te-S[K],Oe=[Tn,$n].indexOf(x)!==-1,ae=(ut=k==null?void 0:k[_])!=null?ut:0,Z=Oe?de:te-E[se]-w[se]-ae+P.altAxis,G=Oe?te+E[se]+w[se]-ae-P.altAxis:fe,le=v&&Oe?fde(Z,te,G):Md(v?Z:de,te,v?G:fe);C[_]=le,j[_]=le-te}t.modifiersData[n]=j}}const Ude={name:"preventOverflow",enabled:!0,phase:"main",fn:Vde,requiresIfExists:["offset"]};function Wde(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hde(e){return e===Kn(e)||!la(e)?EC(e):Wde(e)}function qde(e){var t=e.getBoundingClientRect(),r=ec(t.width)/e.offsetWidth||1,n=ec(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Kde(e,t,r){r===void 0&&(r=!1);var n=la(t),a=la(t)&&qde(t),o=Ji(t),i=tc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ao(t)!=="body"||PC(o))&&(s=Hde(t)),la(t)?(u=tc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=OC(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Gde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Qde(e){var t=Gde(e);return ide.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Xde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yde(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var kT={placement:"bottom",modifiers:[],strategy:"absolute"};function jT(){for(var e=arguments.length,t=new Array(e),r=0;r{o||s(tfe(a)||document.body)},[a,o]),qn(()=>{if(i&&!o)return sg(r,i),()=>{sg(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return R.jsx(d.Fragment,{children:n})}return R.jsx(d.Fragment,{children:i&&tp.createPortal(n,i)})}),m4=rfe;function nfe(e){return Ue("MuiPopper",e)}We("MuiPopper",["root"]);const afe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ofe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ife(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function _x(e){return typeof e=="function"?e():e}function sfe(e){return e.nodeType!==void 0}const lfe=e=>{const{classes:t}=e;return qe({root:["root"]},nfe,t)},ufe={},cfe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:v={},slots:g={},TransitionProps:y}=t,S=Pe(t,afe),x=d.useRef(null),m=Jt(x,r),b=d.useRef(null),h=Jt(b,p),_=d.useRef(h);qn(()=>{_.current=h},[h]),d.useImperativeHandle(p,()=>b.current,[]);const C=ife(c,i),[E,w]=d.useState(C),[O,P]=d.useState(_x(a));d.useEffect(()=>{b.current&&b.current.forceUpdate()}),d.useEffect(()=>{a&&P(_x(a))},[a]),qn(()=>{if(!O||!l)return;const z=B=>{w(B.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{z(B)}}];u!=null&&(M=M.concat(u)),f&&f.modifiers!=null&&(M=M.concat(f.modifiers));const W=efe(O,x.current,T({placement:C},f,{modifiers:M}));return _.current(W),()=>{W.destroy(),_.current(null)}},[O,s,u,l,f,C]);const k={placement:E};y!==null&&(k.TransitionProps=y);const j=lfe(t),$=(n=g.root)!=null?n:"div",F=fa({elementType:$,externalSlotProps:v.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:j.root});return R.jsx($,T({},F,{children:typeof o=="function"?o(k):o}))}),dfe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=ufe,popperRef:v,style:g,transition:y=!1,slotProps:S={},slots:x={}}=t,m=Pe(t,ofe),[b,h]=d.useState(!0),_=()=>{h(!1)},C=()=>{h(!0)};if(!u&&!c&&(!y||b))return null;let E;if(o)E=o;else if(n){const P=_x(n);E=P&&sfe(P)?wr(P).body:wr(null).body}const w=!c&&u&&(!y||b)?"none":void 0,O=y?{in:c,onEnter:_,onExited:C}:void 0;return R.jsx(m4,{disablePortal:s,container:E,children:R.jsx(cfe,T({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!b:c,placement:f,popperOptions:p,popperRef:v,slotProps:S,slots:x},m,{style:T({position:"fixed",top:0,left:0,display:w},g),TransitionProps:O,children:a}))})}),ffe=dfe,pfe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hfe=ne(ffe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vfe=d.forwardRef(function(t,r){var n;const a=i4(),o=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m,slots:b,slotProps:h}=o,_=Pe(o,pfe),C=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,E=T({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m},_);return R.jsx(hfe,T({as:s,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:h??l},E,{ref:r}))}),y4=vfe,gfe=An(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function mfe(e){return Ue("MuiChip",e)}const yfe=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Et=yfe,bfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xfe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ge(n)}`,`color${ge(a)}`,s&&"clickable",s&&`clickableColor${ge(a)}`,i&&"deletable",i&&`deletableColor${ge(a)}`,`${u}${ge(a)}`],label:["label",`label${ge(n)}`],avatar:["avatar",`avatar${ge(n)}`,`avatarColor${ge(a)}`],icon:["icon",`icon${ge(n)}`,`iconColor${ge(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ge(n)}`,`deleteIconColor${ge(a)}`,`deleteIcon${ge(u)}Color${ge(a)}`]};return qe(l,mfe,t)},wfe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${ge(s)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${ge(n)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${ge(s)}`]},{[`& .${Et.icon}`]:t[`iconColor${ge(a)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(s)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${ge(n)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(u)}Color${ge(n)}`]},t.root,t[`size${ge(s)}`],t[`color${ge(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ge(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ge(n)}`],t[u],t[`${u}${ge(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Et.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:gt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Et.avatar}`]:{marginLeft:4},[`& .${Et.avatarSmall}`]:{marginLeft:2},[`& .${Et.icon}`]:{marginLeft:4},[`& .${Et.iconSmall}`]:{marginLeft:2},[`& .${Et.deleteIcon}`]:{marginRight:5},[`& .${Et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Sfe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ge(n)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function IT(e){return e.key==="Backspace"||e.key==="Delete"}const _fe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:S,size:x="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:h=!1}=n,_=Pe(n,bfe),C=d.useRef(null),E=Jt(C,r),w=U=>{U.stopPropagation(),g&&g(U)},O=U=>{U.currentTarget===U.target&&IT(U)&&U.preventDefault(),y&&y(U)},P=U=>{U.currentTarget===U.target&&(g&&IT(U)?g(U):U.key==="Escape"&&C.current&&C.current.blur()),S&&S(U)},k=i!==!1&&v?!0:i,j=k||g?Ma:u||"div",$=T({},n,{component:j,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:k,variant:m}),F=xfe($),z=j===Ma?T({component:u||"div",focusVisibleClassName:F.focusVisible},g&&{disableRipple:!0}):{};let M=null;g&&(M=l&&d.isValidElement(l)?d.cloneElement(l,{className:ue(l.props.className,F.deleteIcon),onClick:w}):R.jsx(gfe,{className:ue(F.deleteIcon),onClick:w}));let W=null;a&&d.isValidElement(a)&&(W=d.cloneElement(a,{className:ue(F.avatar,a.props.className)}));let B=null;return f&&d.isValidElement(f)&&(B=d.cloneElement(f,{className:ue(F.icon,f.props.className)})),R.jsxs(wfe,T({as:j,className:ue(F.root,o),disabled:k&&c?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:P,ref:E,tabIndex:h&&c?-1:b,ownerState:$},z,_,{children:[W||B,R.jsx(Sfe,{className:ue(F.label),ownerState:$,children:p}),M]}))}),Cfe=_fe,Efe=["onChange","maxRows","minRows","style","value"];function sh(e){return parseInt(e,10)||0}const Ofe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Pfe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Rfe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Pe(t,Efe),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=Jt(r,c),p=d.useRef(null),v=d.useRef(null),g=d.useCallback(()=>{const x=c.current,b=da(x).getComputedStyle(x);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=v.current;h.style.width=b.width,h.value=x.value||t.placeholder||"x",h.value.slice(-1)===` +`&&(h.value+=" ");const _=b.boxSizing,C=sh(b.paddingBottom)+sh(b.paddingTop),E=sh(b.borderBottomWidth)+sh(b.borderTopWidth),w=h.scrollHeight;h.value="x";const O=h.scrollHeight;let P=w;o&&(P=Math.max(Number(o)*O,P)),a&&(P=Math.min(Number(a)*O,P)),P=Math.max(P,O);const k=P+(_==="border-box"?C+E:0),j=Math.abs(P-w)<=1;return{outerHeightStyle:k,overflowing:j}},[a,o,t.placeholder]),y=d.useCallback(()=>{const x=g();if(Pfe(x))return;const m=x.outerHeightStyle,b=c.current;p.current!==m&&(p.current=m,b.style.height=`${m}px`),b.style.overflow=x.overflowing?"hidden":""},[g]);qn(()=>{const x=()=>{y()};let m;const b=Rc(x),h=c.current,_=da(h);_.addEventListener("resize",b);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(h)),()=>{b.clear(),cancelAnimationFrame(m),_.removeEventListener("resize",b),C&&C.disconnect()}},[g,y]),qn(()=>{y()});const S=x=>{l||y(),n&&n(x)};return R.jsxs(d.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:S,ref:f,rows:o,style:i},u)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:T({},Ofe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),Tfe=Rfe;function Zi({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const $fe=d.createContext(void 0),Ty=$fe;function po(){return d.useContext(Ty)}function b4(e){return R.jsx(vse,T({},e,{defaultTheme:Ey,themeId:Js}))}function AT(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pg(e,t=!1){return e&&(AT(e.value)&&e.value!==""||t&&AT(e.defaultValue)&&e.defaultValue!=="")}function kfe(e){return e.startAdornment}function jfe(e){return Ue("MuiInputBase",e)}const Ife=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nc=Ife,Afe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],$y=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ge(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ky=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Mfe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:v,type:g}=e,y={root:["root",`color${ge(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ge(p)}`,c&&"multiline",v&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return qe(y,jfe,t)},jy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$y})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Iy=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ky})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${nc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Ffe=R.jsx(b4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nfe=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:S,inputComponent:x="input",inputProps:m={},inputRef:b,maxRows:h,minRows:_,multiline:C=!1,name:E,onBlur:w,onChange:O,onClick:P,onFocus:k,onKeyDown:j,onKeyUp:$,placeholder:F,readOnly:z,renderSuffix:M,rows:W,slotProps:B={},slots:U={},startAdornment:q,type:ie="text",value:oe}=a,Ee=Pe(a,Afe),pe=m.value!=null?m.value:oe,{current:Te}=d.useRef(pe!=null),ye=d.useRef(),be=d.useCallback(le=>{},[]),we=Jt(ye,b,m.ref,be),[ve,De]=d.useState(!1),Me=po(),Qe=Zi({props:a,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Me?Me.focused:ve,d.useEffect(()=>{!Me&&p&&ve&&(De(!1),w&&w())},[Me,p,ve,w]);const Ne=Me&&Me.onFilled,Ae=Me&&Me.onEmpty,He=d.useCallback(le=>{pg(le)?Ne&&Ne():Ae&&Ae()},[Ne,Ae]);qn(()=>{Te&&He({value:pe})},[pe,He,Te]);const ht=le=>{if(Qe.disabled){le.stopPropagation();return}k&&k(le),m.onFocus&&m.onFocus(le),Me&&Me.onFocus?Me.onFocus(le):De(!0)},ut=le=>{w&&w(le),m.onBlur&&m.onBlur(le),Me&&Me.onBlur?Me.onBlur(le):De(!1)},V=(le,...he)=>{if(!Te){const Re=le.target||ye.current;if(Re==null)throw new Error(No(1));He({value:Re.value})}m.onChange&&m.onChange(le,...he),O&&O(le,...he)};d.useEffect(()=>{He(ye.current)},[]);const K=le=>{ye.current&&le.currentTarget===le.target&&ye.current.focus(),P&&P(le)};let te=x,se=m;C&&te==="input"&&(W?se=T({type:void 0,minRows:W,maxRows:W},se):se=T({type:void 0,maxRows:h,minRows:_},se),te=Tfe);const de=le=>{He(le.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};d.useEffect(()=>{Me&&Me.setAdornedStart(!!q)},[Me,q]);const fe=T({},a,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:g,error:Qe.error,focused:Qe.focused,formControl:Me,fullWidth:y,hiddenLabel:Qe.hiddenLabel,multiline:C,size:Qe.size,startAdornment:q,type:ie}),Oe=Mfe(fe),ae=U.root||l.Root||jy,Z=B.root||c.root||{},G=U.input||l.Input||Iy;return se=T({},se,(n=B.input)!=null?n:c.input),R.jsxs(d.Fragment,{children:[!v&&Ffe,R.jsxs(ae,T({},Z,!Rf(ae)&&{ownerState:T({},fe,Z.ownerState)},{ref:r,onClick:K},Ee,{className:ue(Oe.root,Z.className,u,z&&"MuiInputBase-readOnly"),children:[q,R.jsx(Ty.Provider,{value:null,children:R.jsx(G,T({ownerState:fe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Qe.disabled,id:S,onAnimationStart:de,name:E,placeholder:F,readOnly:z,required:Qe.required,rows:W,value:pe,onKeyDown:j,onKeyUp:$,type:ie},se,!Rf(G)&&{as:te,ownerState:T({},fe,se.ownerState)},{ref:we,className:ue(Oe.input,se.className,z&&"MuiInputBase-readOnly"),onBlur:ut,onChange:V,onFocus:ht}))}),g,M?M(T({},Qe,{startAdornment:q})):null]}))]})}),Ay=Nfe;function Lfe(e){return Ue("MuiInput",e)}const Dfe=T({},nc,We("MuiInput",["root","underline","input"])),Xc=Dfe;function Bfe(e){return Ue("MuiOutlinedInput",e)}const zfe=T({},nc,We("MuiOutlinedInput",["root","notchedOutline","input"])),Yo=zfe;function Vfe(e){return Ue("MuiFilledInput",e)}const Ufe=T({},nc,We("MuiFilledInput",["root","underline","input"])),es=Ufe,Wfe=An(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Hfe=An(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function qfe(e){return Ue("MuiAvatar",e)}We("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Kfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Gfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return qe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},qfe,t)},Qfe=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:T({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Xfe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Yfe=ne(Hfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Jfe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const Zfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:f,src:p,srcSet:v,variant:g="circular"}=n,y=Pe(n,Kfe);let S=null;const x=Jfe(T({},c,{src:p,srcSet:v})),m=p||v,b=m&&x!=="error",h=T({},n,{colorDefault:!b,component:s,variant:g}),_=Gfe(h),[C,E]=oce("img",{className:_.img,elementType:Xfe,externalForwardedProps:{slots:u,slotProps:{img:T({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:v,sizes:f},ownerState:h});return b?S=R.jsx(C,T({},E)):o||o===0?S=o:m&&a?S=a[0]:S=R.jsx(Yfe,{ownerState:h,className:_.fallback}),R.jsx(Qfe,T({as:s,ownerState:h,className:ue(_.root,i),ref:r},y,{children:S}))}),hg=Zfe,epe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tpe={entering:{opacity:1},entered:{opacity:1}},rpe=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:g,onExiting:y,style:S,timeout:x=a,TransitionComponent:m=gC}=t,b=Pe(t,epe),h=d.useRef(null),_=Jt(h,s.ref,r),C=F=>z=>{if(F){const M=h.current;z===void 0?F(M):F(M,z)}},E=C(p),w=C((F,z)=>{bC(F);const M=Ju({style:S,timeout:x,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",M),F.style.transition=n.transitions.create("opacity",M),c&&c(F,z)}),O=C(f),P=C(y),k=C(F=>{const z=Ju({style:S,timeout:x,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",z),F.style.transition=n.transitions.create("opacity",z),v&&v(F)}),j=C(g),$=F=>{o&&o(h.current,F)};return R.jsx(m,T({appear:i,in:l,nodeRef:h,onEnter:w,onEntered:O,onEntering:E,onExit:k,onExited:j,onExiting:P,addEndListener:$,timeout:x},b,{children:(F,z)=>d.cloneElement(s,T({style:T({opacity:0,visibility:F==="exited"&&!l?"hidden":void 0},tpe[F],S,s.props.style),ref:_},z))}))}),x4=rpe;function npe(e){return Ue("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const ape=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ope=e=>{const{classes:t,invisible:r}=e;return qe({root:["root",r&&"invisible"]},npe,t)},ipe=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),spe=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:S=x4,transitionDuration:x}=i,m=Pe(i,ape),b=T({},i,{component:l,invisible:p}),h=ope(b),_=(n=g.root)!=null?n:f.root;return R.jsx(S,T({in:v,timeout:x},m,{children:R.jsx(ipe,T({"aria-hidden":!0},_,{as:(a=(o=y.root)!=null?o:c.Root)!=null?a:l,className:ue(h.root,u,_==null?void 0:_.className),ownerState:T({},b,_==null?void 0:_.ownerState),classes:h,ref:r,children:s}))}))}),w4=spe,lpe=We("MuiBox",["root"]),upe=lpe,cpe=cg(),dpe=Sse({themeId:Js,defaultTheme:cpe,defaultClassName:upe.root,generateClassName:lC.generate}),Qh=dpe;function fpe(e){return Ue("MuiButton",e)}const ppe=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),lh=ppe,hpe=d.createContext({}),vpe=hpe,gpe=d.createContext(void 0),mpe=gpe,ype=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bpe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${ge(t)}`,`size${ge(a)}`,`${o}Size${ge(a)}`,`color${ge(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ge(a)}`],endIcon:["icon","endIcon",`iconSize${ge(a)}`]},u=qe(s,fpe,i);return T({},i,u)},S4=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),xpe=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ge(r.color)}`],t[`size${ge(r.size)}`],t[`${r.variant}Size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${lh.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lh.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lh.disabled}`]:{boxShadow:"none"}}),wpe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},S4(e))),Spe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},S4(e))),_pe=d.forwardRef(function(t,r){const n=d.useContext(vpe),a=d.useContext(mpe),o=Of(n,t),i=Ke({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:S=!1,size:x="medium",startIcon:m,type:b,variant:h="text"}=i,_=Pe(i,ype),C=T({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:S,size:x,type:b,variant:h}),E=bpe(C),w=m&&R.jsx(wpe,{className:E.startIcon,ownerState:C,children:m}),O=g&&R.jsx(Spe,{className:E.endIcon,ownerState:C,children:g}),P=a||"";return R.jsxs(xpe,T({ownerState:C,className:ue(n.className,E.root,c,P),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ue(E.focusVisible,y),ref:r,type:b},_,{classes:E,children:[w,s,O]}))}),hn=_pe;function Cpe(e){return Ue("MuiCard",e)}We("MuiCard",["root"]);const Epe=["className","raised"],Ope=e=>{const{classes:t}=e;return qe({root:["root"]},Cpe,t)},Ppe=ne(Yi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Rpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Pe(n,Epe),s=T({},n,{raised:o}),u=Ope(s);return R.jsx(Ppe,T({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))}),oo=Rpe;function Tpe(e){return Ue("MuiCardContent",e)}We("MuiCardContent",["root"]);const $pe=["className","component"],kpe=e=>{const{classes:t}=e;return qe({root:["root"]},Tpe,t)},jpe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ipe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Pe(n,$pe),s=T({},n,{component:o}),u=kpe(s);return R.jsx(jpe,T({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))}),Di=Ipe;function Ape(e){return Ue("MuiCardHeader",e)}const Mpe=We("MuiCardHeader",["root","avatar","action","content","title","subheader"]),MT=Mpe,Fpe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Npe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ape,t)},Lpe=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${MT.title}`]:t.title,[`& .${MT.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Dpe=ne("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Bpe=ne("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),zpe=ne("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Vpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=n,v=Pe(n,Fpe),g=T({},n,{component:s,disableTypography:u}),y=Npe(g);let S=f;S!=null&&S.type!==_t&&!u&&(S=R.jsx(_t,T({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},p,{children:S})));let x=l;return x!=null&&x.type!==_t&&!u&&(x=R.jsx(_t,T({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),R.jsxs(Lpe,T({className:ue(y.root,i),as:s,ref:r,ownerState:g},v,{children:[o&&R.jsx(Dpe,{className:y.avatar,ownerState:g,children:o}),R.jsxs(zpe,{className:y.content,ownerState:g,children:[S,x]}),a&&R.jsx(Bpe,{className:y.action,ownerState:g,children:a})]}))}),FT=Vpe;function Upe(e){return Ue("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Wpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Hpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${ge(a)}`],input:["input"]};return qe(o,Upe,t)},qpe=ne(Ma)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Kpe=ne("input",{shouldForwardProp:Wr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Gpe=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:v,inputRef:g,name:y,onBlur:S,onChange:x,onFocus:m,readOnly:b,required:h=!1,tabIndex:_,type:C,value:E}=t,w=Pe(t,Wpe),[O,P]=Yu({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),k=po(),j=U=>{m&&m(U),k&&k.onFocus&&k.onFocus(U)},$=U=>{S&&S(U),k&&k.onBlur&&k.onBlur(U)},F=U=>{if(U.nativeEvent.defaultPrevented)return;const q=U.target.checked;P(q),x&&x(U,q)};let z=u;k&&typeof z>"u"&&(z=k.disabled);const M=C==="checkbox"||C==="radio",W=T({},t,{checked:O,disabled:z,disableFocusRipple:l,edge:c}),B=Hpe(W);return R.jsxs(qpe,T({component:"span",className:ue(B.root,i),centerRipple:!0,focusRipple:!l,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:$,ownerState:W,ref:r},w,{children:[R.jsx(Kpe,T({autoFocus:n,checked:a,defaultChecked:s,className:B.input,disabled:z,id:M?p:void 0,name:y,onChange:F,readOnly:b,ref:g,required:h,ownerState:W,tabIndex:_,type:C},C==="checkbox"&&E===void 0?{}:{value:E},v)),O?o:f]}))}),_4=Gpe,Qpe=An(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Xpe=An(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ype=An(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Jpe(e){return Ue("MuiCheckbox",e)}const Zpe=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),n0=Zpe,ehe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],the=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(a)}`]},i=qe(o,Jpe,t);return T({},t,i)},rhe=ne(_4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ge(r.size)}`],r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${n0.checked}, &.${n0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${n0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nhe=R.jsx(Xpe,{}),ahe=R.jsx(Qpe,{}),ohe=R.jsx(Ype,{}),ihe=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=nhe,color:s="primary",icon:u=ahe,indeterminate:l=!1,indeterminateIcon:c=ohe,inputProps:f,size:p="medium",className:v}=o,g=Pe(o,ehe),y=l?c:u,S=l?c:i,x=T({},o,{color:s,indeterminate:l,size:p}),m=the(x);return R.jsx(rhe,T({type:"checkbox",inputProps:T({"data-indeterminate":l},f),icon:d.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(m.root,v)},g,{classes:m}))}),vg=ihe;function she(e){return Ue("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lhe=["className","color","disableShrink","size","style","thickness","value","variant"];let My=e=>e,NT,LT,DT,BT;const Jo=44,uhe=Pc(NT||(NT=My` 0% { transform: rotate(0deg); } @@ -187,7 +187,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { transform: rotate(360deg); } -`)),che=Pc(LT||(LT=Fy` +`)),che=Pc(LT||(LT=My` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -202,25 +202,25 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),dhe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${ge(n)}`],svg:["svg"],circle:["circle",`circle${ge(r)}`,a&&"circleDisableShrink"]};return qe(o,she,t)},fhe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ge(r.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&gy(DT||(DT=Fy` +`)),dhe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${ge(n)}`],svg:["svg"],circle:["circle",`circle${ge(r)}`,a&&"circleDisableShrink"]};return qe(o,she,t)},fhe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ge(r.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&vy(DT||(DT=My` animation: ${0} 1.4s linear infinite; - `),uhe)),phe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),hhe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ge(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&gy(BT||(BT=Fy` + `),uhe)),phe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),hhe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ge(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&vy(BT||(BT=My` animation: ${0} 1.4s ease-in-out infinite; - `),che)),vhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=Pe(n,lhe),v=T({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=dhe(v),y={},S={},x={};if(f==="determinate"){const m=2*Math.PI*((Jo-l)/2);y.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(fhe,T({className:ue(g.root,a),style:T({width:s,height:s},S,u),ownerState:v,ref:r,role:"progressbar"},x,p,{children:R.jsx(phe,{className:g.svg,ownerState:v,viewBox:`${Jo/2} ${Jo/2} ${Jo} ${Jo}`,children:R.jsx(hhe,{className:g.circle,style:y,ownerState:v,cx:Jo,cy:Jo,r:(Jo-l)/2,fill:"none",strokeWidth:l})})}))}),kc=vhe;function zT(e){return e.substring(2).toLowerCase()}function ghe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Jt(t.ref,s),f=fn(g=>{const y=l.current;l.current=!1;const S=wr(s.current);if(!u.current||!s.current||"clientX"in g&&ghe(g,S))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!S.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!y)&&a(g)}),p=g=>y=>{l.current=!0;const S=t.props[g];S&&S(y)},v={ref:c};return o!==!1&&(v[o]=p(o)),d.useEffect(()=>{if(o!==!1){const g=zT(o),y=wr(s.current),S=()=>{i.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",S),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",S)}}},[f,o]),n!==!1&&(v[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=zT(n),y=wr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,n]),R.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const yhe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),bhe=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),xhe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,s])=>{var u;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let a=T({html:yhe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},bhe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function whe(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return R.jsxs(d.Fragment,{children:[R.jsx(y4,{styles:a=>xhe(a,n)}),r]})}function She(e){const t=wr(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VT(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function _he(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function UT(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!_he(i);s&&u&&Nd(i,a)})}function o0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Che(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(She(n)){const i=BF(wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${VT(n)+i}px`;const s=wr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${VT(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=wr(n).body;else{const i=n.parentElement,s=da(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Ehe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ohe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Nd(t.modalRef,!1);const a=Ehe(r);UT(r,t.mount,t.modalRef,a,!0);const o=o0(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=o0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Che(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=o0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Nd(t.modalRef,r),UT(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Nd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Phe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rhe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function The(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function $he(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||The(e))}function khe(e){const t=[],r=[];return Array.from(e.querySelectorAll(Phe)).forEach((n,a)=>{const o=Rhe(n);o===-1||!$he(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function jhe(){return!0}function Ihe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=khe,isEnabled:i=jhe,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),y=Jt(t.ref,g),S=d.useRef(null);d.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{a||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current),h=E=>{S.current=E,!(n||!i()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(u.current=!0,c.current&&c.current.focus())},_=()=>{const E=g.current;if(E===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let w=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(w=o(g.current)),w.length>0){var O,P;const k=!!((O=S.current)!=null&&O.shiftKey&&((P=S.current)==null?void 0:P.key)==="Tab"),j=w[0],$=w[w.length-1];typeof j!="string"&&typeof $!="string"&&(k?$.focus():j.focus())}else E.focus()};b.addEventListener("focusin",_),b.addEventListener("keydown",h,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",_),b.removeEventListener("keydown",h,!0)}},[r,n,a,i,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0,p.current=b.target;const h=t.props.onFocus;h&&h(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0};return R.jsxs(d.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:y,onFocus:x}),R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function Ahe(e){return typeof e=="function"?e():e}function Mhe(e){return e?e.props.hasOwnProperty("in"):!1}const Fhe=new Ohe;function Nhe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Fhe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),y=Jt(g,f),[S,x]=d.useState(!c),m=Mhe(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const h=()=>wr(v.current),_=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),C=()=>{a.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=fn(()=>{const M=Ahe(t)||h().body;a.add(_(),M),g.current&&C()}),w=d.useCallback(()=>a.isTopModal(_()),[a]),O=fn(M=>{v.current=M,M&&(c&&w()?C():g.current&&Nd(g.current,b))}),P=d.useCallback(()=>{a.remove(_(),b)},[b,a]);d.useEffect(()=>()=>{P()},[P]),d.useEffect(()=>{c?E():(!m||!o)&&P()},[c,P,m,o,E]);const k=M=>W=>{var B;(B=M.onKeyDown)==null||B.call(M,W),!(W.key!=="Escape"||W.which===229||!w())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},j=M=>W=>{var B;(B=M.onClick)==null||B.call(M,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(M={})=>{const W=ug(e);delete W.onTransitionEnter,delete W.onTransitionExited;const B=T({},W,M);return T({role:"presentation"},B,{onKeyDown:k(B),ref:y})},getBackdropProps:(M={})=>{const W=M;return T({"aria-hidden":!0},W,{onClick:j(W),open:c})},getTransitionProps:()=>{const M=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:hx(M,u==null?void 0:u.props.onEnter),onExited:hx(W,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:O,isTopModal:w,exited:S,hasTransition:m}}function Lhe(e){return Ue("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Dhe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Bhe=e=>{const{open:t,exited:r,classes:n}=e;return qe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Lhe,n)},zhe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vhe=ne(x4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Uhe=d.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Ke({name:"MuiModal",props:t}),{BackdropComponent:c=Vhe,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:y,component:S,components:x={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:_=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:O=!1,keepMounted:P=!1,onBackdropClick:k,open:j,slotProps:$,slots:F}=l,z=Pe(l,Dhe),M=T({},l,{closeAfterTransition:v,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:_,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:O,keepMounted:P}),{getRootProps:W,getBackdropProps:B,getTransitionProps:U,portalRef:q,isTopModal:ie,exited:oe,hasTransition:Ee}=Nhe(T({},M,{rootRef:r})),pe=T({},M,{exited:oe}),Te=Bhe(pe),ye={};if(g.props.tabIndex===void 0&&(ye.tabIndex="-1"),Ee){const{onEnter:Ne,onExited:Ae}=U();ye.onEnter=Ne,ye.onExited=Ae}const be=(n=(a=F==null?void 0:F.root)!=null?a:x.Root)!=null?n:zhe,we=(o=(i=F==null?void 0:F.backdrop)!=null?i:x.Backdrop)!=null?o:c,ve=(s=$==null?void 0:$.root)!=null?s:m.root,De=(u=$==null?void 0:$.backdrop)!=null?u:m.backdrop,Me=fa({elementType:be,externalSlotProps:ve,externalForwardedProps:z,getSlotProps:W,additionalProps:{ref:r,as:S},ownerState:pe,className:ue(p,ve==null?void 0:ve.className,Te==null?void 0:Te.root,!pe.open&&pe.exited&&(Te==null?void 0:Te.hidden))}),Qe=fa({elementType:we,externalSlotProps:De,additionalProps:f,getSlotProps:Ne=>B(T({},Ne,{onClick:Ae=>{k&&k(Ae),Ne!=null&&Ne.onClick&&Ne.onClick(Ae)}})),className:ue(De==null?void 0:De.className,f==null?void 0:f.className,Te==null?void 0:Te.backdrop),ownerState:pe});return!P&&!j&&(!Ee||oe)?null:R.jsx(g4,{ref:q,container:y,disablePortal:C,children:R.jsxs(be,T({},Me,{children:[!O&&c?R.jsx(we,T({},Qe)):null,R.jsx(Ihe,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:ie,open:j,children:d.cloneElement(g,ye)})]}))})}),RC=Uhe;function Whe(e){return Ue("MuiDialog",e)}const Hhe=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),i0=Hhe,qhe=d.createContext({}),_4=qhe,Khe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ghe=ne(x4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qhe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return qe(i,Whe,t)},Xhe=ne(RC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Yhe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ge(r.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Jhe=ne(Yi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ge(r.scroll)}`],t[`paperWidth${ge(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${i0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${i0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${i0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Zhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialog"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:S,onClick:x,onClose:m,open:b,PaperComponent:h=Yi,PaperProps:_={},scroll:C="paper",TransitionComponent:E=b4,transitionDuration:w=o,TransitionProps:O}=n,P=Pe(n,Khe),k=T({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:y,scroll:C}),j=Qhe(k),$=d.useRef(),F=B=>{$.current=B.target===B.currentTarget},z=B=>{x&&x(B),$.current&&($.current=null,S&&S(B),m&&m(B,"backdropClick"))},M=el(s),W=d.useMemo(()=>({titleId:M}),[M]);return R.jsx(Xhe,T({className:ue(j.root,f),closeAfterTransition:!0,components:{Backdrop:Ghe},componentsProps:{backdrop:T({transitionDuration:w,as:u},l)},disableEscapeKeyDown:p,onClose:m,open:b,ref:r,onClick:z,ownerState:k},P,{children:R.jsx(E,T({appear:!0,in:b,timeout:w,role:"presentation"},O,{children:R.jsx(Yhe,{className:ue(j.container),onMouseDown:F,ownerState:k,children:R.jsx(Jhe,T({as:h,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":M},_,{className:ue(j.paper,_.className),ownerState:k,children:R.jsx(_4.Provider,{value:W,children:c})}))})}))}))}),TC=Zhe;function eve(e){return Ue("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const tve=["className","disableSpacing"],rve=e=>{const{classes:t,disableSpacing:r}=e;return qe({root:["root",!r&&"spacing"]},eve,t)},nve=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ave=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Pe(n,tve),s=T({},n,{disableSpacing:o}),u=rve(s);return R.jsx(nve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),$C=ave;function ove(e){return Ue("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function ive(e){return Ue("MuiDialogTitle",e)}const sve=We("MuiDialogTitle",["root"]),lve=sve,uve=["className","dividers"],cve=e=>{const{classes:t,dividers:r}=e;return qe({root:["root",r&&"dividers"]},ove,t)},dve=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${lve.root} + &`]:{paddingTop:0}})),fve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Pe(n,uve),s=T({},n,{dividers:o}),u=cve(s);return R.jsx(dve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),kC=fve;function pve(e){return Ue("MuiDialogContentText",e)}We("MuiDialogContentText",["root"]);const hve=["children","className"],vve=e=>{const{classes:t}=e,n=qe({root:["root"]},pve,t);return T({},t,n)},gve=ne(_t,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Pe(n,hve),i=vve(o);return R.jsx(gve,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),C4=mve,yve=["className","id"],bve=e=>{const{classes:t}=e;return qe({root:["root"]},ive,t)},xve=ne(_t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),wve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Pe(n,yve),s=n,u=bve(s),{titleId:l=o}=d.useContext(_4);return R.jsx(xve,T({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),jC=wve;function Sve(e){return Ue("MuiDivider",e)}const _ve=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WT=_ve,Cve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Eve=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:s,variant:u}=e;return qe({root:["root",t&&"absolute",u,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Sve,n)},Ove=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Pve=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),E4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:s=o?"div":"hr",flexItem:u=!1,light:l=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=Pe(n,Cve),y=T({},n,{absolute:a,component:s,flexItem:u,light:l,orientation:c,role:f,textAlign:p,variant:v}),S=Eve(y);return R.jsx(Ove,T({as:s,className:ue(S.root,i),role:f,ref:r,ownerState:y},g,{children:o?R.jsx(Pve,{className:S.wrapper,ownerState:y,children:o}):null}))});E4.muiSkipListHighlight=!0;const mg=E4,Rve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function $ve(e){return typeof e=="function"?e():e}function uh(e,t,r){const n=$ve(r),a=Tve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const kve=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=a,in:p,onEnter:v,onEntered:g,onEntering:y,onExit:S,onExited:x,onExiting:m,style:b,timeout:h=o,TransitionComponent:_=gC}=t,C=Pe(t,Rve),E=d.useRef(null),w=Jt(u.ref,E,r),O=B=>U=>{B&&(U===void 0?B(E.current):B(E.current,U))},P=O((B,U)=>{uh(c,B,l),bC(B),v&&v(B,U)}),k=O((B,U)=>{const q=Ju({timeout:h,style:b,easing:f},{mode:"enter"});B.style.webkitTransition=n.transitions.create("-webkit-transform",T({},q)),B.style.transition=n.transitions.create("transform",T({},q)),B.style.webkitTransform="none",B.style.transform="none",y&&y(B,U)}),j=O(g),$=O(m),F=O(B=>{const U=Ju({timeout:h,style:b,easing:f},{mode:"exit"});B.style.webkitTransition=n.transitions.create("-webkit-transform",U),B.style.transition=n.transitions.create("transform",U),uh(c,B,l),S&&S(B)}),z=O(B=>{B.style.webkitTransition="",B.style.transition="",x&&x(B)}),M=B=>{i&&i(E.current,B)},W=d.useCallback(()=>{E.current&&uh(c,E.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const B=Rc(()=>{E.current&&uh(c,E.current,l)}),U=da(E.current);return U.addEventListener("resize",B),()=>{B.clear(),U.removeEventListener("resize",B)}},[c,p,l]),d.useEffect(()=>{p||W()},[p,W]),R.jsx(_,T({nodeRef:E,onEnter:P,onEntered:j,onEntering:k,onExit:F,onExited:z,onExiting:$,addEndListener:M,appear:s,in:p,timeout:h},C,{children:(B,U)=>d.cloneElement(u,T({ref:w,style:T({visibility:B==="exited"&&!p?"hidden":void 0},b,u.props.style)},U))}))}),O4=kve;function jve(e){return Ue("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Ive=["BackdropProps"],Ave=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],P4=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Mve=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ge(r)}`,n!=="temporary"&&`paperAnchorDocked${ge(r)}`]};return qe(a,jve,t)},Fve=ne(RC,{name:"MuiDrawer",slot:"Root",overridesResolver:P4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),HT=ne("div",{shouldForwardProp:Wr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:P4})({flex:"0 0 auto"}),Nve=ne(Yi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ge(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ge(r.anchor)}`]]}})(({theme:e,ownerState:t})=>T({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),R4={left:"right",right:"left",top:"down",bottom:"up"};function Lve(e){return["left","right"].indexOf(e)!==-1}function Dve({direction:e},t){return e==="rtl"&&Lve(t)?R4[t]:t}const Bve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),a=fo(),o=cl(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:g,open:y=!1,PaperProps:S={},SlideProps:x,TransitionComponent:m=O4,transitionDuration:b=i,variant:h="temporary"}=n,_=Pe(n.ModalProps,Ive),C=Pe(n,Ave),E=d.useRef(!1);d.useEffect(()=>{E.current=!0},[]);const w=Dve({direction:o?"rtl":"ltr"},s),P=T({},n,{anchor:s,elevation:f,open:y,variant:h},C),k=Mve(P),j=R.jsx(Nve,T({elevation:h==="temporary"?f:0,square:!0},S,{className:ue(k.paper,S.className),ownerState:P,children:l}));if(h==="permanent")return R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:j}));const $=R.jsx(m,T({in:y,direction:R4[w],timeout:b,appear:E.current},x,{children:j}));return h==="persistent"?R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:$})):R.jsx(Fve,T({BackdropProps:T({},u,v,{transitionDuration:b}),className:ue(k.root,k.modal,c),open:y,ownerState:P,onClose:g,hideBackdrop:p,ref:r},C,_,{children:$}))}),zve=Bve;function Vve(e){return Ue("MuiFab",e)}const Uve=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),qT=Uve,Wve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Hve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${ge(a)}`,t==="inherit"?"colorInherit":t]},i=qe(o,Vve,n);return T({},n,i)},qve=ne(Ma,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Wr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ge(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return T({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${qT.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>T({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${qT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Kve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,v=Pe(n,Wve),g=T({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),y=Hve(g);return R.jsx(qve,T({className:ue(y.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(y.focusVisible,c),ownerState:g,ref:r},v,{classes:y,children:a}))}),Gve=Kve,Qve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Xve=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Vfe,t);return T({},t,a)},Yve=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Jve=ne(Ay,{name:"MuiFilledInput",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),T4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,S=Pe(s,Qve),x=T({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),m=Xve(s),b={root:{ownerState:x},input:{ownerState:x}},h=v??l?Rr(b,v??l):b,_=(n=(a=g.root)!=null?a:u.Root)!=null?n:Yve,C=(o=(i=g.input)!=null?i:u.Input)!=null?o:Jve;return R.jsx(My,T({slots:{root:_,input:C},componentsProps:h,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},S,{classes:m}))});T4.muiName="Input";const $4=T4;function Zve(e){return Ue("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ege=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],tge=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return qe(a,Zve,t)},rge=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${ge(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),nge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:y="medium",variant:S="outlined"}=n,x=Pe(n,ege),m=T({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:y,variant:S}),b=tge(m),[h,_]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{if(!Hh(F,["Input","Select"]))return;const z=Hh(F,["Select"])?F.props.input:F;z&&kfe(z.props)&&($=!0)}),$}),[C,E]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{Hh(F,["Input","Select"])&&(hg(F.props,!0)||hg(F.props.inputProps,!0))&&($=!0)}),$}),[w,O]=d.useState(!1);u&&w&&O(!1);const P=c!==void 0&&!u?c:w;let k;const j=d.useMemo(()=>({adornedStart:h,setAdornedStart:_,color:i,disabled:u,error:l,filled:C,focused:P,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{O(!0)},registerEffect:k,required:g,variant:S}),[h,i,u,l,C,P,f,p,k,g,y,S]);return R.jsx($y.Provider,{value:j,children:R.jsx(rge,T({as:s,ownerState:m,className:ue(b.root,o),ref:r},x,{children:a}))})}),age=nge,oge=Ele({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),Ny=oge;function ige(e){return Ue("MuiFormControlLabel",e)}const sge=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pd=sge,lge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],uge=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return qe(i,ige,t)},cge=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pd.label}`]:t.label},t.root,t[`labelPlacement${ge(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pd.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${pd.label}`]:{[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),dge=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),fge=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=o,y=Pe(o,lge),S=po(),x=(n=l??u.props.disabled)!=null?n:S==null?void 0:S.disabled,m=v??u.props.required,b={disabled:x,required:m};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof o[O]<"u"&&(b[O]=o[O])});const h=Zi({props:o,muiFormControl:S,states:["error"]}),_=T({},o,{disabled:x,labelPlacement:p,required:m,error:h.error}),C=uge(_),E=(a=g.typography)!=null?a:s.typography;let w=f;return w!=null&&w.type!==_t&&!c&&(w=R.jsx(_t,T({component:"span"},E,{className:ue(C.label,E==null?void 0:E.className),children:w}))),R.jsxs(cge,T({className:ue(C.root,i),ownerState:_,ref:r},y,{children:[d.cloneElement(u,b),m?R.jsxs(Ny,{display:"block",children:[w,R.jsxs(dge,{ownerState:_,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):w]}))}),pge=fge;function hge(e){return Ue("MuiFormGroup",e)}We("MuiFormGroup",["root","row","error"]);const vge=["className","row"],gge=e=>{const{classes:t,row:r,error:n}=e;return qe({root:["root",r&&"row",n&&"error"]},hge,t)},mge=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),yge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Pe(n,vge),s=po(),u=Zi({props:n,muiFormControl:s,states:["error"]}),l=T({},n,{row:o,error:u.error}),c=gge(l);return R.jsx(mge,T({className:ue(c.root,a),ownerState:l,ref:r},i))}),bge=yge;function xge(e){return Ue("MuiFormHelperText",e)}const wge=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KT=wge;var GT;const Sge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_ge=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${ge(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return qe(l,xge,t)},Cge=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ge(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KT.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KT.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ege=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Pe(n,Sge),u=po(),l=Zi({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=T({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=_ge(c);return R.jsx(Cge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:a===" "?GT||(GT=R.jsx("span",{className:"notranslate",children:"​"})):a}))}),IC=Ege;function Oge(e){return Ue("MuiFormLabel",e)}const Pge=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ld=Pge,Rge=["children","className","color","component","disabled","error","filled","focused","required"],Tge=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${ge(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return qe(u,Oge,t)},$ge=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ld.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),kge=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),jge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Pe(n,Rge),u=po(),l=Zi({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=T({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Tge(c);return R.jsxs($ge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:[a,l.required&&R.jsxs(kge,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Ige=jge,Age=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cx(e){return`scale(${e}, ${e**2})`}const Mge={entering:{opacity:1,transform:Cx(1)},entered:{opacity:1,transform:"none"}},s0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k4=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:y="auto",TransitionComponent:S=gC}=t,x=Pe(t,Age),m=Ss(),b=d.useRef(),h=fo(),_=d.useRef(null),C=Jt(_,o.ref,r),E=z=>M=>{if(z){const W=_.current;M===void 0?z(W):z(W,M)}},w=E(c),O=E((z,M)=>{bC(z);const{duration:W,delay:B,easing:U}=Ju({style:g,timeout:y,easing:i},{mode:"enter"});let q;y==="auto"?(q=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=q):q=W,z.style.transition=[h.transitions.create("opacity",{duration:q,delay:B}),h.transitions.create("transform",{duration:s0?q:q*.666,delay:B,easing:U})].join(","),u&&u(z,M)}),P=E(l),k=E(v),j=E(z=>{const{duration:M,delay:W,easing:B}=Ju({style:g,timeout:y,easing:i},{mode:"exit"});let U;y==="auto"?(U=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=U):U=M,z.style.transition=[h.transitions.create("opacity",{duration:U,delay:W}),h.transitions.create("transform",{duration:s0?U:U*.666,delay:s0?W:W||U*.333,easing:B})].join(","),z.style.opacity=0,z.style.transform=Cx(.75),f&&f(z)}),$=E(p),F=z=>{y==="auto"&&m.start(b.current||0,z),n&&n(_.current,z)};return R.jsx(S,T({appear:a,in:s,nodeRef:_,onEnter:O,onEntered:P,onEntering:w,onExit:j,onExited:$,onExiting:k,addEndListener:F,timeout:y==="auto"?null:y},x,{children:(z,M)=>d.cloneElement(o,T({style:T({opacity:0,transform:Cx(.75),visibility:z==="exited"&&!s?"hidden":void 0},Mge[z],g,o.props.style),ref:C},M))}))});k4.muiSupportAuto=!0;const yg=k4,Fge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Nge=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Lfe,t);return T({},t,a)},Lge=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Dge=ne(Ay,{name:"MuiInput",slot:"Input",overridesResolver:jy})({}),j4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:y={},type:S="text"}=s,x=Pe(s,Fge),m=Nge(s),h={root:{ownerState:{disableUnderline:u}}},_=g??c?Rr(g??c,h):h,C=(n=(a=y.root)!=null?a:l.Root)!=null?n:Lge,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:Dge;return R.jsx(My,T({slots:{root:C,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:S},x,{classes:m}))});j4.muiName="Input";const I4=j4;function Bge(e){return Ue("MuiInputAdornment",e)}const zge=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),QT=zge;var XT;const Vge=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Uge=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Wge=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${ge(a)}`,i,n&&"hiddenLabel",o&&`size${ge(o)}`]};return qe(s,Bge,t)},Hge=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Uge})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${QT.positionStart}&:not(.${QT.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),qge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=Pe(n,Vge),p=po()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=T({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),y=Wge(g);return R.jsx($y.Provider,{value:null,children:R.jsx(Hge,T({as:i,ownerState:g,className:ue(y.root,o),ref:r},f,{children:typeof a=="string"&&!u?R.jsx(_t,{color:"text.secondary",children:a}):R.jsxs(d.Fragment,{children:[l==="start"?XT||(XT=R.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})}),Xh=qge;function Kge(e){return Ue("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gge=["disableAnimation","margin","shrink","variant","className"],Qge=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ge(n)}`,i],asterisk:[s&&"asterisk"]},l=qe(u,Kge,t);return T({},t,l)},Xge=ne(Ige,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ld.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yge=d.forwardRef(function(t,r){const n=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Pe(n,Gge),u=po();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Zi({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=T({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Qge(f);return R.jsx(Xge,T({"data-shrink":l,ownerState:f,ref:r,className:ue(p.root,i)},s,{classes:p}))}),Jge=Yge;function Zge(e){return Ue("MuiLink",e)}const eme=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tme=eme,A4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rme=e=>A4[e]||e,nme=({theme:e,ownerState:t})=>{const r=rme(t.color),n=Xu(e,`palette.${r}`,!1)||t.color,a=Xu(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},ame=nme,ome=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ime=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${ge(a)}`,r==="button"&&"button",n&&"focusVisible"]};return qe(o,Zge,t)},sme=ne(_t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ge(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:ame({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tme.focusVisible}`]:{outline:"auto"}})),lme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,v=Pe(n,ome),{isFocusVisibleRef:g,onBlur:y,onFocus:S,ref:x}=Ey(),[m,b]=d.useState(!1),h=Jt(r,x),_=O=>{y(O),g.current===!1&&b(!1),s&&s(O)},C=O=>{S(O),g.current===!0&&b(!0),u&&u(O)},E=T({},n,{color:o,component:i,focusVisible:m,underline:c,variant:f}),w=ime(E);return R.jsx(sme,T({color:o,className:ue(w.root,a),classes:l,component:i,onBlur:_,onFocus:C,ref:h,ownerState:E,variant:f,sx:[...Object.keys(A4).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},v))}),ume=lme,cme=d.createContext({}),jf=cme;function dme(e){return Ue("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const fme=["children","className","component","dense","disablePadding","subheader"],pme=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return qe({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},dme,t)},hme=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),vme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Pe(n,fme),f=d.useMemo(()=>({dense:s}),[s]),p=T({},n,{component:i,dense:s,disablePadding:u}),v=pme(p);return R.jsx(jf.Provider,{value:f,children:R.jsxs(hme,T({as:i,className:ue(v.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})}),gme=vme;function mme(e){return Ue("MuiListItemIcon",e)}const yme=We("MuiListItemIcon",["root","alignItemsFlexStart"]),YT=yme,bme=["className"],xme=e=>{const{alignItems:t,classes:r}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},mme,r)},wme=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>T({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Sme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Pe(n,bme),i=d.useContext(jf),s=T({},n,{alignItems:i.alignItems}),u=xme(s);return R.jsx(wme,T({className:ue(u.root,a),ownerState:s,ref:r},o))}),Cs=Sme;function _me(e){return Ue("MuiListItemText",e)}const Cme=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bg=Cme,Eme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ome=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return qe({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},_me,t)},Pme=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bg.primary}`]:t.primary},{[`& .${bg.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Rme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=Pe(n,Eme),{dense:v}=d.useContext(jf);let g=u??a,y=c;const S=T({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!y,dense:v}),x=Ome(S);return g!=null&&g.type!==_t&&!i&&(g=R.jsx(_t,T({variant:v?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),y!=null&&y.type!==_t&&!i&&(y=R.jsx(_t,T({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),R.jsxs(Pme,T({className:ue(x.root,o),ownerState:S,ref:r},p,{children:[g,y]}))}),Zl=Rme,Tme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JT(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function M4(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Yc(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!M4(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const $me=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=Pe(t,Tme),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{a&&v.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:h})=>{const _=!v.current.style.width;if(b.clientHeight{const h=v.current,_=b.key,C=wr(h).activeElement;if(_==="ArrowDown")b.preventDefault(),Yc(h,C,l,u,l0);else if(_==="ArrowUp")b.preventDefault(),Yc(h,C,l,u,JT);else if(_==="Home")b.preventDefault(),Yc(h,null,l,u,l0);else if(_==="End")b.preventDefault(),Yc(h,null,l,u,JT);else if(_.length===1){const E=g.current,w=_.toLowerCase(),O=performance.now();E.keys.length>0&&(O-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&w!==E.keys[0]&&(E.repeating=!1)),E.lastTime=O,E.keys.push(w);const P=C&&!E.repeating&&M4(C,E);E.previousKeyMatched&&(P||Yc(h,C,!1,u,l0,E))?b.preventDefault():E.previousKeyMatched=!1}c&&c(b)},S=Jt(v,r);let x=-1;d.Children.forEach(i,(b,h)=>{if(!d.isValidElement(b)){x===h&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=h),x===h&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(b,h)=>{if(h===x){const _={};return o&&(_.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),d.cloneElement(b,_)}return b});return R.jsx(gme,T({role:"menu",ref:S,className:s,onKeyDown:y,tabIndex:a?0:-1},p,{children:m}))}),F4=$me;function kme(e){return Ue("MuiPopover",e)}We("MuiPopover",["root","paper"]);const jme=["onEntering"],Ime=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ame=["slotProps"];function ZT(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function e$(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function t$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function u0(e){return typeof e=="function"?e():e}const Mme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},kme,t)},Fme=ne(RC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4=ne(Yi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nme=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:y=8,marginThreshold:S=16,open:x,PaperProps:m={},slots:b,slotProps:h,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:C=yg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:O=!1}=i,P=Pe(i.TransitionProps,jme),k=Pe(i,Ime),j=(n=h==null?void 0:h.paper)!=null?n:m,$=d.useRef(),F=Jt($,j.ref),z=T({},i,{anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:_,TransitionComponent:C,transitionDuration:E,TransitionProps:P}),M=Mme(z),W=d.useCallback(()=>{if(f==="anchorPosition")return c;const Ne=u0(u),He=(Ne&&Ne.nodeType===1?Ne:wr($.current).body).getBoundingClientRect();return{top:He.top+ZT(He,l.vertical),left:He.left+e$(He,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),B=d.useCallback(Ne=>({vertical:ZT(Ne,_.vertical),horizontal:e$(Ne,_.horizontal)}),[_.horizontal,_.vertical]),U=d.useCallback(Ne=>{const Ae={width:Ne.offsetWidth,height:Ne.offsetHeight},He=B(Ae);if(f==="none")return{top:null,left:null,transformOrigin:t$(He)};const ht=W();let ut=ht.top-He.vertical,V=ht.left-He.horizontal;const K=ut+Ae.height,te=V+Ae.width,se=da(u0(u)),de=se.innerHeight-S,fe=se.innerWidth-S;if(S!==null&&utde){const Oe=K-de;ut-=Oe,He.vertical+=Oe}if(S!==null&&Vfe){const Oe=te-fe;V-=Oe,He.horizontal+=Oe}return{top:`${Math.round(ut)}px`,left:`${Math.round(V)}px`,transformOrigin:t$(He)}},[u,f,W,B,S]),[q,ie]=d.useState(x),oe=d.useCallback(()=>{const Ne=$.current;if(!Ne)return;const Ae=U(Ne);Ae.top!==null&&(Ne.style.top=Ae.top),Ae.left!==null&&(Ne.style.left=Ae.left),Ne.style.transformOrigin=Ae.transformOrigin,ie(!0)},[U]);d.useEffect(()=>(O&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,O,oe]);const Ee=(Ne,Ae)=>{w&&w(Ne,Ae),oe()},pe=()=>{ie(!1)};d.useEffect(()=>{x&&oe()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),d.useEffect(()=>{if(!x)return;const Ne=Rc(()=>{oe()}),Ae=da(u);return Ae.addEventListener("resize",Ne),()=>{Ne.clear(),Ae.removeEventListener("resize",Ne)}},[u,x,oe]);let Te=E;E==="auto"&&!C.muiSupportAuto&&(Te=void 0);const ye=g||(u?wr(u0(u)).body:void 0),be=(a=b==null?void 0:b.root)!=null?a:Fme,we=(o=b==null?void 0:b.paper)!=null?o:N4,ve=fa({elementType:we,externalSlotProps:T({},j,{style:q?j.style:T({},j.style,{opacity:0})}),additionalProps:{elevation:y,ref:F},ownerState:z,className:ue(M.paper,j==null?void 0:j.className)}),De=fa({elementType:be,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ye,open:x},ownerState:z,className:ue(M.root,v)}),{slotProps:Me}=De,Qe=Pe(De,Ame);return R.jsx(be,T({},Qe,!Rf(be)&&{slotProps:Me,disableScrollLock:O},{children:R.jsx(C,T({appear:!0,in:x,onEntering:Ee,onExited:pe,timeout:Te},P,{children:R.jsx(we,T({},ve,{children:p}))}))}))}),L4=Nme;function Lme(e){return Ue("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Dme=["onEntering"],Bme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],zme={vertical:"top",horizontal:"right"},Vme={vertical:"top",horizontal:"left"},Ume=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Lme,t)},Wme=ne(L4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hme=ne(N4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qme=ne(F4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Kme=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:x="selectedMenu",slots:m={},slotProps:b={}}=o,h=Pe(o.TransitionProps,Dme),_=Pe(o,Bme),C=cl(),E=T({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:v,transitionDuration:y,TransitionProps:h,variant:x}),w=Ume(E),O=i&&!l&&p,P=d.useRef(null),k=(B,U)=>{P.current&&P.current.adjustStyleForScrollbar(B,{direction:C?"rtl":"ltr"}),S&&S(B,U)},j=B=>{B.key==="Tab"&&(B.preventDefault(),f&&f(B,"tabKeyDown"))};let $=-1;d.Children.map(s,(B,U)=>{d.isValidElement(B)&&(B.props.disabled||(x==="selectedMenu"&&B.props.selected||$===-1)&&($=U))});const F=(n=m.paper)!=null?n:Hme,z=(a=b.paper)!=null?a:v,M=fa({elementType:m.root,externalSlotProps:b.root,ownerState:E,className:[w.root,u]}),W=fa({elementType:F,externalSlotProps:z,ownerState:E,className:w.paper});return R.jsx(Wme,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?zme:Vme,slots:{paper:F,root:m.root},slotProps:{root:M,paper:W},open:p,ref:r,transitionDuration:y,TransitionProps:T({onEntering:k},h),ownerState:E},_,{classes:g,children:R.jsx(qme,T({onKeyDown:j,actions:P,autoFocus:i&&($===-1||l),autoFocusItem:O,variant:x},c,{className:ue(w.list,c.className),children:s}))}))}),Ly=Kme;function Gme(e){return Ue("MuiMenuItem",e)}const Qme=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jc=Qme,Xme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Jme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=qe({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Gme,i);return T({},i,u)},Zme=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Yme})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Jc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Jc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WT.inset}`]:{marginLeft:52},[`& .${bg.root}`]:{marginTop:0,marginBottom:0},[`& .${bg.inset}`]:{paddingLeft:36},[`& .${YT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${YT.root} svg`]:{fontSize:"1.25rem"}}))),eye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,v=Pe(n,Xme),g=d.useContext(jf),y=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),S=d.useRef(null);qn(()=>{a&&S.current&&S.current.focus()},[a]);const x=T({},n,{dense:y.dense,divider:s,disableGutters:u}),m=Jme(n),b=Jt(S,r);let h;return n.disabled||(h=f!==void 0?f:-1),R.jsx(jf.Provider,{value:y,children:R.jsx(Zme,T({ref:b,role:c,tabIndex:h,component:o,focusVisibleClassName:ue(m.focusVisible,l),className:ue(m.root,p)},v,{ownerState:x,classes:m}))})}),Ta=eye;function tye(e){return Ue("MuiNativeSelect",e)}const rye=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AC=rye,nye=["className","disabled","error","IconComponent","inputRef","variant"],aye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"]};return qe(s,tye,t)},D4=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${AC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),oye=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${AC.multiple}`]:t.multiple}]}})(D4),B4=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),iye=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),sye=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Pe(t,nye),c=T({},t,{disabled:a,variant:u,error:o}),f=aye(c);return R.jsxs(d.Fragment,{children:[R.jsx(oye,T({ownerState:c,className:ue(f.select,n),disabled:a,ref:s||r},l)),t.multiple?null:R.jsx(iye,{as:i,ownerState:c,className:f.icon})]})}),lye=sye;var r$;const uye=["children","classes","className","label","notched"],cye=ne("fieldset",{shouldForwardProp:Wr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dye=ne("legend",{shouldForwardProp:Wr})(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function fye(e){const{className:t,label:r,notched:n}=e,a=Pe(e,uye),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return R.jsx(cye,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:R.jsx(dye,{ownerState:i,children:o?R.jsx("span",{children:r}):r$||(r$=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const pye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hye=e=>{const{classes:t}=e,n=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bfe,t);return T({},t,n)},vye=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ky})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yo.focused} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yo.error} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yo.disabled} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),gye=ne(fye,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),mye=ne(Ay,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jy})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),z4=d.forwardRef(function(t,r){var n,a,o,i,s;const u=Ke({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:y={},type:S="text"}=u,x=Pe(u,pye),m=hye(u),b=po(),h=Zi({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:b,fullWidth:c,hiddenLabel:h.hiddenLabel,multiline:v,size:h.size,type:S}),C=(n=(a=y.root)!=null?a:l.Root)!=null?n:vye,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:mye;return R.jsx(My,T({slots:{root:C,input:E},renderSuffix:w=>R.jsx(gye,{ownerState:_,className:m.notchedOutline,label:p!=null&&p!==""&&h.required?s||(s=R.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:r,type:S},x,{classes:T({},m,{notchedOutline:null})}))});z4.muiName="Input";const V4=z4;function yye(e){return Ue("MuiPagination",e)}We("MuiPagination",["root","ul","outlined","text"]);const bye=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function xye(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=Pe(e,bye),[g,y]=Yu({controlled:l,default:a,name:r,state:"page"}),S=(O,P)=>{l||y(P),u&&u(O,P)},x=(O,P)=>{const k=P-O+1;return Array.from({length:k},(j,$)=>O+$)},m=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),h=Math.max(Math.min(g-p,n-t-p*2-1),t+2),_=Math.min(Math.max(g+p,t+p*2+2),b.length>0?b[0]-2:n-1),C=[...c?["first"]:[],...s?[]:["previous"],...m,...h>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...f?["last"]:[]],E=O=>{switch(O){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},w=C.map(O=>typeof O=="number"?{onClick:P=>{S(P,O)},type:"page",page:O,selected:O===g,disabled:o,"aria-current":O===g?"true":void 0}:{onClick:P=>{S(P,E(O))},type:O,page:E(O),selected:!1,disabled:o||O.indexOf("ellipsis")===-1&&(O==="next"||O==="last"?g>=n:g<=1)});return T({items:w},v)}function wye(e){return Ue("MuiPaginationItem",e)}const Sye=We("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Yn=Sye,Ex=An(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ox=An(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),n$=An(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),a$=An(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),_ye=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],U4=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.variant==="text"&&t[`text${ge(r.color)}`],r.variant==="outlined"&&t[`outlined${ge(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Cye=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${ge(o)}`,u,i,r!=="standard"&&`color${ge(r)}`,r!=="standard"&&`${u}${ge(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return qe(l,wye,t)},Eye=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Oye=ne(Ma,{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Yn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>T({},t.variant==="text"&&{[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Yn.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Yn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Pye=ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>T({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Rye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:v={},type:g="page",variant:y="text"}=n,S=Pe(n,_ye),x=T({},n,{color:o,disabled:u,selected:c,shape:f,size:p,type:g,variant:y}),m=cl(),b=Cye(x),_=(m?{previous:v.next||s.next||a$,next:v.previous||s.previous||n$,last:v.first||s.first||Ex,first:v.last||s.last||Ox}:{previous:v.previous||s.previous||n$,next:v.next||s.next||a$,first:v.first||s.first||Ex,last:v.last||s.last||Ox})[g];return g==="start-ellipsis"||g==="end-ellipsis"?R.jsx(Eye,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):R.jsxs(Oye,T({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},S,{children:[g==="page"&&l,_?R.jsx(Pye,{as:_,ownerState:x,className:b.icon}):null]}))}),Tye=Rye,$ye=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],kye=e=>{const{classes:t,variant:r}=e;return qe({root:["root",r],ul:["ul"]},yye,t)},jye=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Iye=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Aye(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Mye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Aye,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=w=>R.jsx(Tye,T({},w)),shape:g="circular",showFirstButton:y=!1,showLastButton:S=!1,siblingCount:x=1,size:m="medium",variant:b="text"}=n,h=Pe(n,$ye),{items:_}=xye(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:g,showFirstButton:y,showLastButton:S,siblingCount:x,size:m,variant:b}),E=kye(C);return R.jsx(jye,T({"aria-label":"pagination navigation",className:ue(E.root,o),ownerState:C,ref:r},h,{children:R.jsx(Iye,{className:E.ul,ownerState:C,children:_.map((w,O)=>R.jsx("li",{children:v(T({},w,{color:i,"aria-label":c(w.type,w.page,w.selected),shape:g,size:m,variant:b}))},O))})}))}),Fye=Mye;function Nye(e){return Ue("MuiSelect",e)}const Lye=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zc=Lye;var o$;const Dye=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Bye=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Zc.select}`]:t.select},{[`&.${Zc.select}`]:t[r.variant]},{[`&.${Zc.error}`]:t.error},{[`&.${Zc.multiple}`]:t.multiple}]}})(D4,{[`&.${Zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zye=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),Vye=ne("input",{shouldForwardProp:e=>n4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function i$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Uye(e){return e==null||typeof e=="string"&&!e.trim()}const Wye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return qe(s,Nye,t)},Hye=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:S,labelId:x,MenuProps:m={},multiple:b,name:h,onBlur:_,onChange:C,onClose:E,onFocus:w,onOpen:O,open:P,readOnly:k,renderValue:j,SelectDisplayProps:$={},tabIndex:F,value:z,variant:M="standard"}=t,W=Pe(t,Dye),[B,U]=Yu({controlled:z,default:f,name:"Select"}),[q,ie]=Yu({controlled:P,default:c,name:"Select"}),oe=d.useRef(null),Ee=d.useRef(null),[pe,Te]=d.useState(null),{current:ye}=d.useRef(P!=null),[be,we]=d.useState(),ve=Jt(r,S),De=d.useCallback(je=>{Ee.current=je,je&&Te(je)},[]),Me=pe==null?void 0:pe.parentNode;d.useImperativeHandle(ve,()=>({focus:()=>{Ee.current.focus()},node:oe.current,value:B}),[B]),d.useEffect(()=>{c&&q&&pe&&!ye&&(we(s?null:Me.clientWidth),Ee.current.focus())},[pe,s]),d.useEffect(()=>{i&&Ee.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const je=wr(Ee.current).getElementById(x);if(je){const Je=()=>{getSelection().isCollapsed&&Ee.current.focus()};return je.addEventListener("click",Je),()=>{je.removeEventListener("click",Je)}}},[x]);const Qe=(je,Je)=>{je?O&&O(Je):E&&E(Je),ye||(we(s?null:Me.clientWidth),ie(je))},Ne=je=>{je.button===0&&(je.preventDefault(),Ee.current.focus(),Qe(!0,je))},Ae=je=>{Qe(!1,je)},He=d.Children.toArray(u),ht=je=>{const Je=He.find(_e=>_e.props.value===je.target.value);Je!==void 0&&(U(Je.props.value),C&&C(je,Je))},ut=je=>Je=>{let _e;if(Je.currentTarget.hasAttribute("tabindex")){if(b){_e=Array.isArray(B)?B.slice():[];const Fe=B.indexOf(je.props.value);Fe===-1?_e.push(je.props.value):_e.splice(Fe,1)}else _e=je.props.value;if(je.props.onClick&&je.props.onClick(Je),B!==_e&&(U(_e),C)){const Fe=Je.nativeEvent||Je,Ge=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ge,"target",{writable:!0,value:{value:_e,name:h}}),C(Ge,je)}b||Qe(!1,Je)}},V=je=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),Qe(!0,je))},K=pe!==null&&q,te=je=>{!K&&_&&(Object.defineProperty(je,"target",{writable:!0,value:{value:B,name:h}}),_(je))};delete W["aria-invalid"];let se,de;const fe=[];let Oe=!1;(hg({value:B})||v)&&(j?se=j(B):Oe=!0);const ae=He.map(je=>{if(!d.isValidElement(je))return null;let Je;if(b){if(!Array.isArray(B))throw new Error(No(2));Je=B.some(_e=>i$(_e,je.props.value)),Je&&Oe&&fe.push(je.props.children)}else Je=i$(B,je.props.value),Je&&Oe&&(de=je.props.children);return d.cloneElement(je,{"aria-selected":Je?"true":"false",onClick:ut(je),onKeyUp:_e=>{_e.key===" "&&_e.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(_e)},role:"option",selected:Je,value:void 0,"data-value":je.props.value})});Oe&&(b?fe.length===0?se=null:se=fe.reduce((je,Je,_e)=>(je.push(Je),_e{const{classes:t}=e;return t},MC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wr(e)&&e!=="variant",slot:"Root"},Xye=ne(I4,MC)(""),Yye=ne(V4,MC)(""),Jye=ne($4,MC)(""),W4=d.forwardRef(function(t,r){const n=Ke({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Wfe,id:f,input:p,inputProps:v,label:g,labelId:y,MenuProps:S,multiple:x=!1,native:m=!1,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=n,O=Pe(n,Kye),P=m?lye:qye,k=po(),j=Zi({props:n,muiFormControl:k,states:["variant","error"]}),$=j.variant||w,F=T({},n,{variant:$,classes:i}),z=Qye(F),M=Pe(z,Gye),W=p||{standard:R.jsx(Xye,{ownerState:F}),outlined:R.jsx(Yye,{label:g,ownerState:F}),filled:R.jsx(Jye,{ownerState:F})}[$],B=Jt(r,W.ref);return R.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:P,inputProps:T({children:o,error:j.error,IconComponent:c,variant:$,type:void 0,multiple:x},m?{id:f}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:T({id:f},E)},v,{classes:v?Rr(M,v.classes):M},p?p.props.inputProps:{})},(x&&m||l)&&$==="outlined"?{notched:!0}:{},{ref:B,className:ue(W.props.className,s,z.root)},!p&&{variant:$},O))})});W4.muiName="Select";const H4=W4;function Zye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Ss();d.useEffect(()=>{if(!a)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=fn((x,m)=>{n==null||n(x,m)}),u=fn(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});d.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,f=d.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>m=>{const b=x.onBlur;b==null||b(m),f()},v=x=>m=>{const b=x.onFocus;b==null||b(m),c()},g=x=>m=>{const b=x.onMouseEnter;b==null||b(m),c()},y=x=>m=>{const b=x.onMouseLeave;b==null||b(m),f()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,a,f,c]),{getRootProps:(x={})=>{const m=T({},ug(e),ug(x));return T({role:"presentation"},x,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:g(m),onMouseLeave:y(m)})},onClickAway:l}}function ebe(e){return Ue("MuiSnackbarContent",e)}We("MuiSnackbarContent",["root","message","action"]);const tbe=["action","className","message","role"],rbe=e=>{const{classes:t}=e;return qe({root:["root"],action:["action"],message:["message"]},ebe,t)},nbe=ne(Yi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Tle(e.palette.background.default,t);return T({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),abe=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),obe=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),ibe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Pe(n,tbe),l=n,c=rbe(l);return R.jsxs(nbe,T({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[R.jsx(abe,{className:c.message,ownerState:l,children:i}),a?R.jsx(obe,{className:c.action,ownerState:l,children:a}):null]}))}),sbe=ibe;function lbe(e){return Ue("MuiSnackbar",e)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ube=["onEnter","onExited"],cbe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],dbe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ge(r.vertical)}${ge(r.horizontal)}`]};return qe(n,lbe,t)},s$=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ge(r.anchorOrigin.vertical)}${ge(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return T({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:T({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),fbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbar"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:g=!1,message:y,open:S,TransitionComponent:x=yg,transitionDuration:m=o,TransitionProps:{onEnter:b,onExited:h}={}}=n,_=Pe(n.TransitionProps,ube),C=Pe(n,cbe),E=T({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),w=dbe(E),{getRootProps:O,onClickAway:P}=Zye(T({},E)),[k,j]=d.useState(!0),$=fa({elementType:s$,getSlotProps:O,externalForwardedProps:C,ownerState:E,additionalProps:{ref:r},className:[w.root,f]}),F=M=>{j(!0),h&&h(M)},z=(M,W)=>{j(!1),b&&b(M,W)};return!S&&k?null:R.jsx(mhe,T({onClickAway:P},p,{children:R.jsx(s$,T({},$,{children:R.jsx(x,T({appear:!0,in:S,timeout:m,direction:s==="top"?"down":"up",onEnter:z,onExited:F},_,{children:c||R.jsx(sbe,T({message:y,action:i},v))}))}))}))}),pbe=fbe;function hbe(e){return Ue("MuiTooltip",e)}const vbe=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_i=vbe,gbe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function mbe(e){return Math.round(e*1e5)/1e5}const ybe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${ge(o.split("-")[0])}`],arrow:["arrow"]};return qe(i,hbe,t)},bbe=ne(m4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_i.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_i.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_i.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${_i.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xbe=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ge(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${mbe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_i.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_i.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_i.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_i.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wbe=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ch=!1;const l$=new hp;let ed={x:0,y:0};function dh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Sbe=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_;const C=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:w,components:O={},componentsProps:P={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:$=!1,disableInteractive:F=!1,disableTouchListener:z=!1,enterDelay:M=100,enterNextDelay:W=0,enterTouchDelay:B=700,followCursor:U=!1,id:q,leaveDelay:ie=0,leaveTouchDelay:oe=1500,onClose:Ee,onOpen:pe,open:Te,placement:ye="bottom",PopperComponent:be,PopperProps:we={},slotProps:ve={},slots:De={},title:Me,TransitionComponent:Qe=yg,TransitionProps:Ne}=C,Ae=Pe(C,gbe),He=d.isValidElement(w)?w:R.jsx("span",{children:w}),ht=fo(),ut=cl(),[V,K]=d.useState(),[te,se]=d.useState(null),de=d.useRef(!1),fe=F||U,Oe=Ss(),ae=Ss(),Z=Ss(),G=Ss(),[le,he]=Yu({controlled:Te,default:!1,name:"Tooltip",state:"open"});let Re=le;const Be=el(q),Ye=d.useRef(),je=fn(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),G.clear()});d.useEffect(()=>je,[je]);const Je=Y=>{l$.clear(),ch=!0,he(!0),pe&&!Re&&pe(Y)},_e=fn(Y=>{l$.start(800+ie,()=>{ch=!1}),he(!1),Ee&&Re&&Ee(Y),Oe.start(ht.transitions.duration.shortest,()=>{de.current=!1})}),Fe=Y=>{de.current&&Y.type!=="touchstart"||(V&&V.removeAttribute("title"),ae.clear(),Z.clear(),M||ch&&W?ae.start(ch?W:M,()=>{Je(Y)}):Je(Y))},Ge=Y=>{ae.clear(),Z.start(ie,()=>{_e(Y)})},{isFocusVisibleRef:nt,onBlur:mt,onFocus:Ot,ref:kt}=Ey(),[,Pt]=d.useState(!1),at=Y=>{mt(Y),nt.current===!1&&(Pt(!1),Ge(Y))},It=Y=>{V||K(Y.currentTarget),Ot(Y),nt.current===!0&&(Pt(!0),Fe(Y))},nr=Y=>{de.current=!0;const Q=He.props;Q.onTouchStart&&Q.onTouchStart(Y)},mn=Y=>{nr(Y),Z.clear(),Oe.clear(),je(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(B,()=>{document.body.style.WebkitUserSelect=Ye.current,Fe(Y)})},qr=Y=>{He.props.onTouchEnd&&He.props.onTouchEnd(Y),je(),Z.start(oe,()=>{_e(Y)})};d.useEffect(()=>{if(!Re)return;function Y(Q){(Q.key==="Escape"||Q.key==="Esc")&&_e(Q)}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[_e,Re]);const Nr=Jt(He.ref,kt,K,r);!Me&&Me!==0&&(Re=!1);const Tr=d.useRef(),Mn=Y=>{const Q=He.props;Q.onMouseMove&&Q.onMouseMove(Y),ed={x:Y.clientX,y:Y.clientY},Tr.current&&Tr.current.update()},Kr={},Ko=typeof Me=="string";k?(Kr.title=!Re&&Ko&&!$?Me:null,Kr["aria-describedby"]=Re?Be:null):(Kr["aria-label"]=Ko?Me:null,Kr["aria-labelledby"]=Re&&!Ko?Be:null);const $r=T({},Kr,Ae,He.props,{className:ue(Ae.className,He.props.className),onTouchStart:nr,ref:Nr},U?{onMouseMove:Mn}:{}),ho={};z||($r.onTouchStart=mn,$r.onTouchEnd=qr),$||($r.onMouseOver=dh(Fe,$r.onMouseOver),$r.onMouseLeave=dh(Ge,$r.onMouseLeave),fe||(ho.onMouseOver=Fe,ho.onMouseLeave=Ge)),j||($r.onFocus=dh(It,$r.onFocus),$r.onBlur=dh(at,$r.onBlur),fe||(ho.onFocus=It,ho.onBlur=at));const X=d.useMemo(()=>{var Y;let Q=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Y=we.popperOptions)!=null&&Y.modifiers&&(Q=Q.concat(we.popperOptions.modifiers)),T({},we.popperOptions,{modifiers:Q})},[te,we]),ee=T({},C,{isRtl:ut,arrow:E,disableInteractive:fe,placement:ye,PopperComponentProp:be,touch:de.current}),ce=ybe(ee),Ce=(n=(a=De.popper)!=null?a:O.Popper)!=null?n:bbe,N=(o=(i=(s=De.transition)!=null?s:O.Transition)!=null?i:Qe)!=null?o:yg,D=(u=(l=De.tooltip)!=null?l:O.Tooltip)!=null?u:xbe,I=(c=(f=De.arrow)!=null?f:O.Arrow)!=null?c:wbe,A=Jl(Ce,T({},we,(p=ve.popper)!=null?p:P.popper,{className:ue(ce.popper,we==null?void 0:we.className,(v=(g=ve.popper)!=null?g:P.popper)==null?void 0:v.className)}),ee),L=Jl(N,T({},Ne,(y=ve.transition)!=null?y:P.transition),ee),H=Jl(D,T({},(S=ve.tooltip)!=null?S:P.tooltip,{className:ue(ce.tooltip,(x=(m=ve.tooltip)!=null?m:P.tooltip)==null?void 0:x.className)}),ee),re=Jl(I,T({},(b=ve.arrow)!=null?b:P.arrow,{className:ue(ce.arrow,(h=(_=ve.arrow)!=null?_:P.arrow)==null?void 0:h.className)}),ee);return R.jsxs(d.Fragment,{children:[d.cloneElement(He,$r),R.jsx(Ce,T({as:be??m4,placement:ye,anchorEl:U?{getBoundingClientRect:()=>({top:ed.y,left:ed.x,right:ed.x,bottom:ed.y,width:0,height:0})}:V,popperRef:Tr,open:V?Re:!1,id:Be,transition:!0},ho,A,{popperOptions:X,children:({TransitionProps:Y})=>R.jsx(N,T({timeout:ht.transitions.duration.shorter},Y,L,{children:R.jsxs(D,T({},H,{children:[Me,E?R.jsx(I,T({},re,{ref:se})):null]}))}))}))]})}),kn=Sbe;function _be(e){return Ue("MuiSwitch",e)}const Cbe=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),on=Cbe,Ebe=["className","color","edge","size","sx"],Obe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,s={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qe(s,_be,t);return T({},t,u)},Pbe=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),Rbe=ne(S4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fC(e.palette[t].main,.62):dC(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Tbe=ne("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),$be=ne("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),kbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:s="medium",sx:u}=n,l=Pe(n,Ebe),c=T({},n,{color:o,edge:i,size:s}),f=Obe(c),p=R.jsx($be,{className:f.thumb,ownerState:c});return R.jsxs(Pbe,{className:ue(f.root,a),sx:u,ownerState:c,children:[R.jsx(Rbe,T({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:c},l,{classes:T({},f,{root:f.switchBase})})),R.jsx(Tbe,{className:f.track,ownerState:c})]})}),jbe=kbe;function Ibe(e){return Ue("MuiTab",e)}const Abe=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Zo=Abe,Mbe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Fbe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:s,disabled:u}=e,l={root:["root",o&&i&&"labelIcon",`textColor${ge(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return qe(l,Ibe,t)},Nbe=ne(Ma,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ge(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Zo.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Zo.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Zo.selected}`]:{opacity:1},[`&.${Zo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Lbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:y,selectionFollowsFocus:S,textColor:x="inherit",value:m,wrapped:b=!1}=n,h=Pe(n,Mbe),_=T({},n,{disabled:o,disableFocusRipple:i,selected:y,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=Fbe(_),E=u&&f&&d.isValidElement(u)?d.cloneElement(u,{className:ue(C.iconWrapper,u.props.className)}):u,w=P=>{!y&&p&&p(P,m),v&&v(P)},O=P=>{S&&!y&&p&&p(P,m),g&&g(P)};return R.jsxs(Nbe,T({focusRipple:!i,className:ue(C.root,a),ref:r,role:"tab","aria-selected":y,disabled:o,onClick:w,onFocus:O,ownerState:_,tabIndex:y?0:-1},h,{children:[l==="top"||l==="start"?R.jsxs(d.Fragment,{children:[E,f]}):R.jsxs(d.Fragment,{children:[f,E]}),c]}))}),Dbe=Lbe,Bbe=d.createContext(),q4=Bbe;function zbe(e){return Ue("MuiTable",e)}We("MuiTable",["root","stickyHeader"]);const Vbe=["className","component","padding","size","stickyHeader"],Ube=e=>{const{classes:t,stickyHeader:r}=e;return qe({root:["root",r&&"stickyHeader"]},zbe,t)},Wbe=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),u$="table",Hbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTable"}),{className:a,component:o=u$,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Pe(n,Vbe),c=T({},n,{component:o,padding:i,size:s,stickyHeader:u}),f=Ube(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return R.jsx(q4.Provider,{value:p,children:R.jsx(Wbe,T({as:o,role:o===u$?null:"table",ref:r,className:ue(f.root,a),ownerState:c},l))})}),K4=Hbe,qbe=d.createContext(),Dy=qbe;function Kbe(e){return Ue("MuiTableBody",e)}We("MuiTableBody",["root"]);const Gbe=["className","component"],Qbe=e=>{const{classes:t}=e;return qe({root:["root"]},Kbe,t)},Xbe=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ybe={variant:"body"},c$="tbody",Jbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableBody"}),{className:a,component:o=c$}=n,i=Pe(n,Gbe),s=T({},n,{component:o}),u=Qbe(s);return R.jsx(Dy.Provider,{value:Ybe,children:R.jsx(Xbe,T({className:ue(u.root,a),as:o,ref:r,role:o===c$?null:"rowgroup",ownerState:s},i))})}),G4=Jbe;function Zbe(e){return Ue("MuiTableCell",e)}const e0e=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),t0e=e0e,r0e=["align","className","component","padding","scope","size","sortDirection","variant"],n0e=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,a!=="normal"&&`padding${ge(a)}`,`size${ge(o)}`]};return qe(s,Zbe,t)},a0e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.padding!=="normal"&&t[`padding${ge(r.padding)}`],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?fC(gt(e.palette.divider,1),.88):dC(gt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${t0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),o0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=Pe(n,r0e),v=d.useContext(q4),g=d.useContext(Dy),y=g&&g.variant==="head";let S;i?S=i:S=y?"th":"td";let x=u;S==="td"?x=void 0:!x&&y&&(x="col");const m=f||g&&g.variant,b=T({},n,{align:a,component:S,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),h=n0e(b);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),R.jsx(a0e,T({as:S,ref:r,className:ue(h.root,o),"aria-sort":_,scope:x,ownerState:b},p))}),en=o0e;function i0e(e){return Ue("MuiTableHead",e)}We("MuiTableHead",["root"]);const s0e=["className","component"],l0e=e=>{const{classes:t}=e;return qe({root:["root"]},i0e,t)},u0e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),c0e={variant:"head"},d$="thead",d0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableHead"}),{className:a,component:o=d$}=n,i=Pe(n,s0e),s=T({},n,{component:o}),u=l0e(s);return R.jsx(Dy.Provider,{value:c0e,children:R.jsx(u0e,T({as:o,className:ue(u.root,a),ref:r,role:o===d$?null:"rowgroup",ownerState:s},i))})}),Q4=d0e;function f0e(e){return Ue("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const p0e=["className","component","disableGutters","variant"],h0e=e=>{const{classes:t,disableGutters:r,variant:n}=e;return qe({root:["root",!r&&"gutters",n]},f0e,t)},v0e=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),g0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Pe(n,p0e),l=T({},n,{component:o,disableGutters:i,variant:s}),c=h0e(l);return R.jsx(v0e,T({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),jc=g0e,X4=An(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Y4=An(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),m0e=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],y0e=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:S,page:x,rowsPerPage:m,showFirstButton:b,showLastButton:h,slots:_={},slotProps:C={}}=t,E=Pe(t,m0e),w=cl(),O=ve=>{S(ve,0)},P=ve=>{S(ve,x-1)},k=ve=>{S(ve,x+1)},j=ve=>{S(ve,Math.max(0,Math.ceil(p/m)-1))},$=(n=_.firstButton)!=null?n:Pr,F=(a=_.lastButton)!=null?a:Pr,z=(o=_.nextButton)!=null?o:Pr,M=(i=_.previousButton)!=null?i:Pr,W=(s=_.firstButtonIcon)!=null?s:Ex,B=(u=_.lastButtonIcon)!=null?u:Ox,U=(l=_.nextButtonIcon)!=null?l:Y4,q=(c=_.previousButtonIcon)!=null?c:X4,ie=w?F:$,oe=w?z:M,Ee=w?M:z,pe=w?$:F,Te=w?C.lastButton:C.firstButton,ye=w?C.nextButton:C.previousButton,be=w?C.previousButton:C.nextButton,we=w?C.firstButton:C.lastButton;return R.jsxs("div",T({ref:r},E,{children:[b&&R.jsx(ie,T({onClick:O,disabled:v||x===0,"aria-label":g("first",x),title:g("first",x)},Te,{children:w?R.jsx(B,T({},C.lastButtonIcon)):R.jsx(W,T({},C.firstButtonIcon))})),R.jsx(oe,T({onClick:P,disabled:v||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},ye??f,{children:w?R.jsx(U,T({},C.nextButtonIcon)):R.jsx(q,T({},C.previousButtonIcon))})),R.jsx(Ee,T({onClick:k,disabled:v||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},be??y,{children:w?R.jsx(q,T({},C.previousButtonIcon)):R.jsx(U,T({},C.nextButtonIcon))})),h&&R.jsx(pe,T({onClick:j,disabled:v||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},we,{children:w?R.jsx(W,T({},C.firstButtonIcon)):R.jsx(B,T({},C.lastButtonIcon))}))]}))}),b0e=y0e;function x0e(e){return Ue("MuiTablePagination",e)}const w0e=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Dd=w0e;var f$;const S0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_0e=ne(en,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),C0e=ne(jc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Dd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Dd.actions}`]:{flexShrink:0,marginLeft:20}})),E0e=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),O0e=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),P0e=ne(H4,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Dd.selectIcon}`]:t.selectIcon,[`& .${Dd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Dd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),R0e=ne(Ta,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),T0e=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function $0e({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function k0e(e){return`Go to ${e} page`}const j0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},x0e,t)},I0e=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=b0e,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:f=!1,getItemAriaLabel:p=k0e,labelDisplayedRows:v=$0e,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:S,onRowsPerPageChange:x,page:m,rowsPerPage:b,rowsPerPageOptions:h=[10,25,50,100],SelectProps:_={},showFirstButton:C=!1,showLastButton:E=!1,slotProps:w={},slots:O={}}=a,P=Pe(a,S0e),k=a,j=j0e(k),$=(n=w==null?void 0:w.select)!=null?n:_,F=$.native?"option":R0e;let z;(l===en||l==="td")&&(z=u||1e3);const M=el($.id),W=el($.labelId),B=()=>c===-1?(m+1)*b:b===-1?c:Math.min(c,(m+1)*b);return R.jsx(_0e,T({colSpan:z,ref:r,as:l,ownerState:k,className:ue(j.root,s)},P,{children:R.jsxs(C0e,{className:j.toolbar,children:[R.jsx(E0e,{className:j.spacer}),h.length>1&&R.jsx(O0e,{className:j.selectLabel,id:W,children:g}),h.length>1&&R.jsx(P0e,T({variant:"standard"},!$.variant&&{input:f$||(f$=R.jsx(My,{}))},{value:b,onChange:x,id:M,labelId:W},$,{classes:T({},$.classes,{root:ue(j.input,j.selectRoot,($.classes||{}).root),select:ue(j.select,($.classes||{}).select),icon:ue(j.selectIcon,($.classes||{}).icon)}),disabled:f,children:h.map(U=>d.createElement(F,T({},!Rf(F)&&{ownerState:k},{className:j.menuItem,key:U.label?U.label:U,value:U.value?U.value:U}),U.label?U.label:U))})),R.jsx(T0e,{className:j.displayedRows,children:v({from:c===0?0:m*b+1,to:B(),count:c===-1?-1:c,page:m})}),R.jsx(o,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:S,page:m,rowsPerPage:b,showFirstButton:C,showLastButton:E,slotProps:w.actions,slots:O.actions,getItemAriaLabel:p,disabled:f})]})}))}),p$=I0e;function A0e(e){return Ue("MuiTableRow",e)}const M0e=We("MuiTableRow",["root","selected","hover","head","footer"]),h$=M0e,F0e=["className","component","hover","selected"],N0e=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return qe({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},A0e,t)},L0e=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h$.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),v$="tr",D0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableRow"}),{className:a,component:o=v$,hover:i=!1,selected:s=!1}=n,u=Pe(n,F0e),l=d.useContext(Dy),c=T({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=N0e(c);return R.jsx(L0e,T({as:o,ref:r,className:ue(f.root,a),role:o===v$?null:"row",ownerState:c},u))}),If=D0e,B0e=An(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function z0e(e){return Ue("MuiTableSortLabel",e)}const V0e=We("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),c0=V0e,U0e=["active","children","className","direction","hideSortIcon","IconComponent"],W0e=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${ge(r)}`]};return qe(a,z0e,t)},H0e=ne(Ma,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${c0.icon}`]:{opacity:.5}},[`&.${c0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${c0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),q0e=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ge(r.direction)}`]]}})(({theme:e,ownerState:t})=>T({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),K0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=B0e}=n,c=Pe(n,U0e),f=T({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=W0e(f);return R.jsxs(H0e,T({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[o,u&&!a?null:R.jsx(q0e,{as:l,className:ue(p.icon),ownerState:f})]}))}),G0e=K0e;function Q0e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function X0e(e,t,r,n={},a=()=>{}){const{ease:o=Q0e,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const c=()=>{l=!0},f=p=>{if(l){a(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=o(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(f)};return u===r?(a(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Y0e=["onChange"],J0e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Z0e(e){const{onChange:t}=e,r=Pe(e,Y0e),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qn(()=>{const i=Rc(()=>{const u=n.current;o(),u!==n.current&&t(n.current)}),s=da(a.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),R.jsx("div",T({style:J0e,ref:a},r))}function e1e(e){return Ue("MuiTabScrollButton",e)}const t1e=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),r1e=t1e,n1e=["className","slots","slotProps","direction","orientation","disabled"],a1e=e=>{const{classes:t,orientation:r,disabled:n}=e;return qe({root:["root",r,n&&"disabled"]},e1e,t)},o1e=ne(Ma,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${r1e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),i1e=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=o,c=Pe(o,n1e),f=cl(),p=T({isRtl:f},o),v=a1e(p),g=(n=s.StartScrollButtonIcon)!=null?n:X4,y=(a=s.EndScrollButtonIcon)!=null?a:Y4,S=fa({elementType:g,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),x=fa({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return R.jsx(o1e,T({component:"div",className:ue(v.root,i),ref:r,role:null,ownerState:p,tabIndex:null},c,{children:l==="left"?R.jsx(g,T({},S)):R.jsx(y,T({},x))}))}),s1e=i1e;function l1e(e){return Ue("MuiTabs",e)}const u1e=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),d0=u1e,c1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],g$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,m$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fh=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},d1e=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},l1e,u)},f1e=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${d0.scrollButtons}`]:t.scrollButtons},{[`& .${d0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${d0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),p1e=ne("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),h1e=ne("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),v1e=ne("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),g1e=ne(Z0e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),y$={},m1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTabs"}),a=fo(),o=cl(),{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:x=s1e,scrollButtons:m="auto",selectionFollowsFocus:b,slots:h={},slotProps:_={},TabIndicatorProps:C={},TabScrollButtonProps:E={},textColor:w="primary",value:O,variant:P="standard",visibleScrollbar:k=!1}=n,j=Pe(n,c1e),$=P==="scrollable",F=S==="vertical",z=F?"scrollTop":"scrollLeft",M=F?"top":"left",W=F?"bottom":"right",B=F?"clientHeight":"clientWidth",U=F?"height":"width",q=T({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:S,vertical:F,scrollButtons:m,textColor:w,variant:P,visibleScrollbar:k,fixed:!$,hideScrollbar:$&&!k,scrollableX:$&&!F,scrollableY:$&&F,centered:l&&!$,scrollButtonsHideMobile:!v}),ie=d1e(q),oe=fa({elementType:h.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:q}),Ee=fa({elementType:h.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:q}),[pe,Te]=d.useState(!1),[ye,be]=d.useState(y$),[we,ve]=d.useState(!1),[De,Me]=d.useState(!1),[Qe,Ne]=d.useState(!1),[Ae,He]=d.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ut=d.useRef(null),V=d.useRef(null),K=()=>{const _e=ut.current;let Fe;if(_e){const nt=_e.getBoundingClientRect();Fe={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollLeftNormalized:ale(_e,o?"rtl":"ltr"),scrollWidth:_e.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let Ge;if(_e&&O!==!1){const nt=V.current.children;if(nt.length>0){const mt=nt[ht.get(O)];Ge=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ge}},te=fn(()=>{const{tabsMeta:_e,tabMeta:Fe}=K();let Ge=0,nt;if(F)nt="top",Fe&&_e&&(Ge=Fe.top-_e.top+_e.scrollTop);else if(nt=o?"right":"left",Fe&&_e){const Ot=o?_e.scrollLeftNormalized+_e.clientWidth-_e.scrollWidth:_e.scrollLeft;Ge=(o?-1:1)*(Fe[nt]-_e[nt]+Ot)}const mt={[nt]:Ge,[U]:Fe?Fe[U]:0};if(isNaN(ye[nt])||isNaN(ye[U]))be(mt);else{const Ot=Math.abs(ye[nt]-mt[nt]),kt=Math.abs(ye[U]-mt[U]);(Ot>=1||kt>=1)&&be(mt)}}),se=(_e,{animation:Fe=!0}={})=>{Fe?X0e(z,ut.current,_e,{duration:a.transitions.duration.standard}):ut.current[z]=_e},de=_e=>{let Fe=ut.current[z];F?Fe+=_e:(Fe+=_e*(o?-1:1),Fe*=o&&zF()==="reverse"?-1:1),se(Fe)},fe=()=>{const _e=ut.current[B];let Fe=0;const Ge=Array.from(V.current.children);for(let nt=0;nt_e){nt===0&&(Fe=_e);break}Fe+=mt[B]}return Fe},Oe=()=>{de(-1*fe())},ae=()=>{de(fe())},Z=d.useCallback(_e=>{He({overflow:null,scrollbarWidth:_e})},[]),G=()=>{const _e={};_e.scrollbarSizeListener=$?R.jsx(g1e,{onChange:Z,className:ue(ie.scrollableX,ie.hideScrollbar)}):null;const Ge=$&&(m==="auto"&&(we||De)||m===!0);return _e.scrollButtonStart=Ge?R.jsx(x,T({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:S,direction:o?"right":"left",onClick:Oe,disabled:!we},E,{className:ue(ie.scrollButtons,E.className)})):null,_e.scrollButtonEnd=Ge?R.jsx(x,T({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:S,direction:o?"left":"right",onClick:ae,disabled:!De},E,{className:ue(ie.scrollButtons,E.className)})):null,_e},le=fn(_e=>{const{tabsMeta:Fe,tabMeta:Ge}=K();if(!(!Ge||!Fe)){if(Ge[M]Fe[W]){const nt=Fe[z]+(Ge[W]-Fe[W]);se(nt,{animation:_e})}}}),he=fn(()=>{$&&m!==!1&&Ne(!Qe)});d.useEffect(()=>{const _e=Rc(()=>{ut.current&&te()});let Fe;const Ge=Ot=>{Ot.forEach(kt=>{kt.removedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.unobserve(Pt)}),kt.addedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.observe(Pt)})}),_e(),he()},nt=da(ut.current);nt.addEventListener("resize",_e);let mt;return typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(_e),Array.from(V.current.children).forEach(Ot=>{Fe.observe(Ot)})),typeof MutationObserver<"u"&&(mt=new MutationObserver(Ge),mt.observe(V.current,{childList:!0})),()=>{var Ot,kt;_e.clear(),nt.removeEventListener("resize",_e),(Ot=mt)==null||Ot.disconnect(),(kt=Fe)==null||kt.disconnect()}},[te,he]),d.useEffect(()=>{const _e=Array.from(V.current.children),Fe=_e.length;if(typeof IntersectionObserver<"u"&&Fe>0&&$&&m!==!1){const Ge=_e[0],nt=_e[Fe-1],mt={root:ut.current,threshold:.99},Ot=It=>{ve(!It[0].isIntersecting)},kt=new IntersectionObserver(Ot,mt);kt.observe(Ge);const Pt=It=>{Me(!It[0].isIntersecting)},at=new IntersectionObserver(Pt,mt);return at.observe(nt),()=>{kt.disconnect(),at.disconnect()}}},[$,m,Qe,c==null?void 0:c.length]),d.useEffect(()=>{Te(!0)},[]),d.useEffect(()=>{te()}),d.useEffect(()=>{le(y$!==ye)},[le,ye]),d.useImperativeHandle(u,()=>({updateIndicator:te,updateScrollButtons:he}),[te,he]);const Re=R.jsx(v1e,T({},C,{className:ue(ie.indicator,C.className),ownerState:q,style:T({},ye,C.style)}));let Be=0;const Ye=d.Children.map(c,_e=>{if(!d.isValidElement(_e))return null;const Fe=_e.props.value===void 0?Be:_e.props.value;ht.set(Fe,Be);const Ge=Fe===O;return Be+=1,d.cloneElement(_e,T({fullWidth:P==="fullWidth",indicator:Ge&&!pe&&Re,selected:Ge,selectionFollowsFocus:b,onChange:y,textColor:w,value:Fe},Be===1&&O===!1&&!_e.props.tabIndex?{tabIndex:0}:{}))}),je=_e=>{const Fe=V.current,Ge=wr(Fe).activeElement;if(Ge.getAttribute("role")!=="tab")return;let mt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(mt="ArrowRight",Ot="ArrowLeft"),_e.key){case mt:_e.preventDefault(),fh(Fe,Ge,m$);break;case Ot:_e.preventDefault(),fh(Fe,Ge,g$);break;case"Home":_e.preventDefault(),fh(Fe,null,g$);break;case"End":_e.preventDefault(),fh(Fe,null,m$);break}},Je=G();return R.jsxs(f1e,T({className:ue(ie.root,f),ownerState:q,ref:r,as:p},j,{children:[Je.scrollButtonStart,Je.scrollbarSizeListener,R.jsxs(p1e,{className:ie.scroller,ownerState:q,style:{overflow:Ae.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:k?void 0:-Ae.scrollbarWidth},ref:ut,children:[R.jsx(h1e,{"aria-label":i,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,className:ie.flexContainer,ownerState:q,onKeyDown:je,ref:V,role:"tablist",children:Ye}),pe&&Re]}),Je.scrollButtonEnd]}))}),y1e=m1e;function b1e(e){return Ue("MuiTextField",e)}We("MuiTextField",["root"]);const x1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],w1e={standard:I4,filled:$4,outlined:V4},S1e=e=>{const{classes:t}=e;return qe({root:["root"]},b1e,t)},_1e=ne(age,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:S,inputProps:x,InputProps:m,inputRef:b,label:h,maxRows:_,minRows:C,multiline:E=!1,name:w,onBlur:O,onChange:P,onFocus:k,placeholder:j,required:$=!1,rows:F,select:z=!1,SelectProps:M,type:W,value:B,variant:U="outlined"}=n,q=Pe(n,x1e),ie=T({},n,{autoFocus:o,color:u,disabled:c,error:f,fullWidth:v,multiline:E,required:$,select:z,variant:U}),oe=S1e(ie),Ee={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(Ee.notched=S.shrink),Ee.label=h),z&&((!M||!M.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const pe=el(y),Te=g&&pe?`${pe}-helper-text`:void 0,ye=h&&pe?`${pe}-label`:void 0,be=w1e[U],we=R.jsx(be,T({"aria-describedby":Te,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:v,multiline:E,name:w,rows:F,maxRows:_,minRows:C,type:W,value:B,id:pe,inputRef:b,onBlur:O,onChange:P,onFocus:k,placeholder:j,inputProps:x},Ee,m));return R.jsxs(_1e,T({className:ue(oe.root,s),disabled:c,error:f,fullWidth:v,ref:r,required:$,color:u,variant:U,ownerState:ie},q,{children:[h!=null&&h!==""&&R.jsx(Jge,T({htmlFor:pe,id:ye},S,{children:h})),z?R.jsx(H4,T({"aria-describedby":Te,id:pe,labelId:ye,value:B,input:we},M,{children:i})):we,g&&R.jsx(IC,T({id:Te},p,{children:g}))]}))}),yp=C1e,E1e=["getTrigger","target"];function O1e(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const P1e=typeof window<"u"?window:null;function J4(e={}){const{getTrigger:t=O1e,target:r=P1e}=e,n=Pe(e,E1e),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const s=()=>{i(t(a,T({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var FC={},f0={};const R1e=Do(Uue);var b$;function ct(){return b$||(b$=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=R1e}(f0)),f0}var T1e=it;Object.defineProperty(FC,"__esModule",{value:!0});var By=FC.default=void 0,$1e=T1e(ct()),k1e=R;By=FC.default=(0,$1e.default)((0,k1e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Bd=globalThis&&globalThis.__assign||function(){return Bd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(HSe,null):null,t&&d.createElement(Nxe,null),d.createElement(uxe,null))},Bxe=d.createElement(Dxe,null),zxe=d.createElement(UC,null),ss="RaAppBar",Es={appBar:"".concat(ss,"-appBar"),toolbar:"".concat(ss,"-toolbar"),menuButton:"".concat(ss,"-menuButton"),menuButtonIconClosed:"".concat(ss,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ss,"-menuButtonIconOpen"),title:"".concat(ss,"-title")},Vxe=ne(Uce,{name:ss,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Es.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Es.menuButton)]={marginRight:"0.2em"},t["& .".concat(Es.title)]={},t}),qC={},Uxe=it;Object.defineProperty(qC,"__esModule",{value:!0});var Uy=qC.default=void 0,Wxe=Uxe(ct()),Hxe=R;Uy=qC.default=(0,Wxe.default)((0,Hxe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var KC={},qxe=it;Object.defineProperty(KC,"__esModule",{value:!0});var v5=KC.default=void 0,Kxe=qxe(ct()),Gxe=R;v5=KC.default=(0,Kxe.default)((0,Gxe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Vd=globalThis&&globalThis.__assign||function(){return Vd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?d.createElement(x5,Og({title:r,defaultTitle:t},a)):d.createElement(Rwe,Og({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,tp.createPortal(u,i))},Lx=globalThis&&globalThis.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=c_e(S===!1||S===void 0?void 0:!S,l||!O||E||w);q_(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var k=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){var z;return C$(this,function(M){switch(M.label){case 0:return h!=null&&h.save?[4,h.save(F,Hd(Hd({},u),{transform:p}))]:[3,2];case 1:z=M.sent(),M.label=2;case 2:return z!=null&&m3(z,b.setError),[2]}})})},[b.setError,h,u,p]),j=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){return C$(this,function(z){switch(z.label){case 0:return s&&s(F),F.defaultPrevented?[2]:f!=="button"?[3,2]:(F.stopPropagation(),[4,b.handleSubmit(k)(F)]);case 1:z.sent(),z.label=2;case 2:return[2]}})})},[s,f,b,k]),$=i&&m(i,{_:i});return d.createElement(u_e,Hd({variant:g,type:f,color:r,"aria-label":$,disabled:P,onClick:j},x),w?d.createElement(kc,{sx:i_e,size:14,thickness:3,color:"inherit"}):a,$)},i_e={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},s_e=d.createElement(U5,null),l_e="RaSaveButton",u_e=ne(hn,{name:l_e,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),c_e=function(e,t){return typeof e>"u"?t:e},d_e=function(){return ke.createElement(p_e,{onClick:h_e,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},f_e="RaSkipNavigationButton",p_e=ne(Hr,{name:f_e,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),h_e=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jx=globalThis&&globalThis.__assign||function(){return Jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var h=Q5(),_=et(),C=_r(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var E=Nt(e),w=Wo(e),O=w.hasShow||w.hasEdit;if(!E)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var P=(!h||!h.isRowExpandable||h.isRowExpandable(C))&&i,k=Jte(E,f,h&&h.expandSingle),j=k[0],$=k[1],F=d.useState(function(){return E$(P,a,u)}),z=F[0],M=F[1];d.useEffect(function(){var oe=E$(P,a,u);oe!==z&&M(oe)},[P,z,a,u]);var W=lo(),B=d.useCallback(function(oe){$(),oe.stopPropagation()},[$]),U=d.useCallback(function(oe){!m||!p||(p(f,oe),oe.stopPropagation())},[f,p,m]),q=Ene(),ie=d.useCallback(function(oe){return B_e(void 0,void 0,void 0,function(){var Ee;return z_e(this,function(pe){switch(pe.label){case 0:return oe.persist(),[4,q({record:C,resource:E,link:typeof v=="function"?function(Te,ye){return v(Te.id,ye,Te)}:v})];case 1:return Ee=pe.sent(),v==="expand"?(B(oe),[2]):v==="toggleSelection"?(U(oe),[2]):Ee===!1||Ee==null?[2]:(W(Ee,{state:{_scrollToTop:!0}}),[2])}})})},[C,E,v,W,B,U,q]);return ke.createElement(ke.Fragment,null,ke.createElement(If,ow({ref:t,className:ue(o,(r={},r[rt.expandable]=P,r[rt.selectable]=m,r[rt.clickableRow]=v??O,r)),key:f,style:S,hover:c,onClick:ie},b),i&&ke.createElement(en,{padding:"none",className:rt.expandIconCell},P&&ke.createElement(D_e,{className:ue(rt.expandIcon,(n={},n[rt.expanded]=j,n)),expanded:j,onClick:B,expandContentId:"".concat(f,"-expand")})),u&&ke.createElement(en,{padding:"checkbox"},ke.createElement(gg,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(rt.checkbox),checked:m&&y,onClick:U,disabled:!m})),ke.Children.map(a,function(oe,Ee){return d.isValidElement(oe)?ke.createElement(F_e,{key:"".concat(f,"-").concat(oe.props.source||Ee),className:ue("column-".concat(oe.props.source),rt.rowCell),record:C,field:oe,resource:E}):null})),P&&j&&ke.createElement(If,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:rt.expandedPanel},ke.createElement(en,{colSpan:z},d.isValidElement(i)?i:d.createElement(i))))}),V_e=function(e,t){e.children,e.expand;var r=iw(e,["children","expand"]);t.children,t.expand;var n=iw(t,["children","expand"]);return vM(r,n)},Y5=d.memo(X5,V_e);Y5.displayName="PureDatagridRow";const U_e=X5;var Ng=globalThis&&globalThis.__assign||function(){return Ng=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=uCe&&(o=lCe,i=!1,t=new nCe(t));e:for(;++a0&&b.length>0&&b.every(function(h){return v.includes(h)}),onChange:m,onClick:function(h){return h.stopPropagation()}})),d.Children.map(t,function(h,_){return d.isValidElement(h)?d.createElement(X_e,{className:ue(rt.headerCell,"column-".concat(h.props.source)),sort:c,field:h,isSorting:(c==null?void 0:c.field)===(h.props.sortBy||h.props.source),key:h.props.source||_,updateSort:x||void 0}):null})))};eN.displayName="DatagridHeader";var xCe=function(e){var t=e.children,r=e.value;return ke.createElement(G5.Provider,{value:r},t)};const wCe=xCe;var gE={},SCe=it;Object.defineProperty(gE,"__esModule",{value:!0});var tN=gE.default=void 0,_Ce=SCe(ct()),CCe=R;tN=gE.default=(0,_Ce.default)((0,CCe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var lw=globalThis&&globalThis.__assign||function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?d.createElement(d.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",d.createElement(Hr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Mf=globalThis&&globalThis.__assign||function(){return Mf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var v=o.getValues();return r.filter(function(g){var y=qt(v,g.props.source);return g.props.alwaysOn||u[g.props.source]||!aN(y)})},f=d.useCallback(function(v){return l(v.currentTarget.dataset.key)},[l]),p=d.useMemo(function(){return{getSource:function(v){return v},getLabel:function(v){return"resources.".concat(a,".fields.").concat(v)}}},[a]);return d.createElement(k3,{value:p},d.createElement(UCe,Ai({className:t},BCe(n),{onSubmit:DCe}),c().map(function(v){return d.createElement(ICe,{key:v.key||v.props.source,filterElement:v,handleHide:f,resource:a,className:Dg.filterFormInput})}),d.createElement("div",{className:Dg.clearFix})))},DCe=function(e){return e.preventDefault(),!1},BCe=function(e){e.hasCreate,e.resource;var t=mE(e,["hasCreate","resource"]);return t},zCe=function(e,t){return Ai(Ai({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return km(Ai({},r),n.props.source,n.props.defaultValue)},{})),e)},VCe=function(e){return e.preventDefault(),e.stopPropagation(),!1},cw="RaFilterForm",Dg={clearFix:"".concat(cw,"-clearFix"),filterFormInput:"".concat(cw,"-filterFormInput")},UCe=ne("form",{name:cw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Dg.clearFix)]={clear:"right"},t["& .".concat(Dg.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),WCe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=nN(e,a,t),n},(r=pM(t))!==null&&r!==void 0?r:{})},nN=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return qt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,s=nN(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},aN=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return aN(e[t])}):!1},yE={},HCe=it;Object.defineProperty(yE,"__esModule",{value:!0});var Ff=yE.default=void 0,qCe=HCe(ct()),KCe=R;Ff=yE.default=(0,qCe.default)((0,KCe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var bE={},GCe=it;Object.defineProperty(bE,"__esModule",{value:!0});var oN=bE.default=void 0,QCe=GCe(ct()),XCe=R;oN=bE.default=(0,QCe.default)((0,XCe.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var xE={},YCe=it;Object.defineProperty(xE,"__esModule",{value:!0});var iN=xE.default=void 0,JCe=YCe(ct()),ZCe=R;iN=xE.default=(0,JCe.default)((0,ZCe.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var wE={},eEe=it;Object.defineProperty(wE,"__esModule",{value:!0});var sN=wE.default=void 0,tEe=eEe(ct()),rEe=R;sN=wE.default=(0,tEe.default)((0,rEe.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var SE={},nEe=it;Object.defineProperty(SE,"__esModule",{value:!0});var lN=SE.default=void 0,aEe=nEe(ct()),oEe=R;lN=SE.default=(0,aEe.default)((0,oEe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var _E={},iEe=it;Object.defineProperty(_E,"__esModule",{value:!0});var uN=_E.default=void 0,sEe=iEe(ct()),lEe=R;uN=_E.default=(0,sEe.default)((0,lEe.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var CE={},uEe=it;Object.defineProperty(CE,"__esModule",{value:!0});var cN=CE.default=void 0,cEe=uEe(ct()),dEe=R;cN=CE.default=(0,cEe.default)((0,dEe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var fEe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,s=Nt(e),u=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(Ta,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?l:u,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Cs,null,i?d.createElement(cN,{fontSize:"small"}):d.createElement(uN,{fontSize:"small"})),d.createElement(Zl,null,d.createElement(no,{label:r.props.label,source:r.props.source,resource:s})))}),EE=function(e){return ya("".concat(e,".savedQueries"),[])},OE=function(e){return Array.isArray(e)?e.filter(function(t){return pEe(t)}):[]},pEe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},hEe=function(e){var t=e.open,r=e.onClose,n=et(),a=ga(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=EE(o),f=c[0],p=c[1],v=d.useState(""),g=v[0],y=v[1],S=function(b){y(b.target.value)},x=function(b){b.preventDefault(),m()},m=function(){var b={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},h=OE(f);p(h.concat(b)),y(""),r()};return d.createElement(TC,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(jC,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(kC,null,d.createElement("form",{onSubmit:x},d.createElement(yp,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:S}))),d.createElement($C,null,d.createElement(hn,{onClick:r},n("ra.action.cancel")),d.createElement(hn,{onClick:m,color:"primary"},n("ra.action.save"))))},$$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=EE(u||"")[0],f=lo(),p=ga(),v=p.displayedFilters,g=v===void 0?{}:v,y=p.filterValues,S=p.perPage,x=p.setFilters,m=p.showFilter,b=p.hideFilter,h=p.sort,_=!ja(y,{}),C=OE(c),E=C.some(function(be){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})}),w=d.useState(!1),O=w[0],P=w[1],k=d.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var j=s.filter(function(be){return!be.props.alwaysOn}),$=d.useCallback(function(be){be.preventDefault(),P(!0),k.current=be.currentTarget},[k,P]),F=d.useCallback(function(){P(!1)},[P]),z=d.useCallback(function(be){var we=be.source,ve=be.defaultValue;m(we,ve===""?void 0:ve),setTimeout(function(){var De=document.querySelector("input[name='".concat(we,"']"));De&&De.focus()},50),P(!1)},[m,P]),M=d.useCallback(function(be){var we=be.source;b(we),P(!1)},[b,P]),W=d.useState(!1),B=W[0],U=W[1],q=function(){U(!1)},ie=function(){P(!1),U(!0)},oe=d.useState(!1),Ee=oe[0],pe=oe[1],Te=function(){pe(!1)},ye=function(){P(!1),pe(!0)};return j.length===0&&C.length===0&&!_?null:d.createElement(yEe,dw({className:r},gEe(i)),d.createElement(Hr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:$,variant:o,size:a},d.createElement(lN,null)),d.createElement(Ly,{open:O,anchorEl:k.current,onClose:F},j.map(function(be,we){return d.createElement(fEe,{key:be.props.source,filter:be,displayed:!!g[be.props.source],resource:u,onShow:z,onHide:M,autoFocus:we===0})}),(_||C.length>0)&&d.createElement(mg,null),C.map(function(be,we){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})?d.createElement(Ta,{onClick:ye,key:we},d.createElement(Cs,null,d.createElement(iN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:be.label}))):d.createElement(Ta,{onClick:function(){var ve,De;f({search:ko.stringify({filter:JSON.stringify(be.value.filter),sort:(ve=be.value.sort)===null||ve===void 0?void 0:ve.field,order:(De=be.value.sort)===null||De===void 0?void 0:De.order,page:1,perPage:be.value.perPage,displayedFilters:JSON.stringify(be.value.displayedFilters)})}),P(!1)},key:we},d.createElement(Cs,null,d.createElement(sN,{fontSize:"small"})),d.createElement(Zl,null,be.label))}),_&&!E&&!n&&d.createElement(Ta,{onClick:ie},d.createElement(Cs,null,d.createElement(oN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&d.createElement(Ta,{onClick:function(){x({},{}),P(!1)}},d.createElement(Cs,null,d.createElement(Ff,{fontSize:"small"})),d.createElement(Zl,null,l("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(hEe,{open:B,onClose:q}),d.createElement(vEe,{open:Ee,onClose:Te})))},gEe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=dN(e,["displayedFilters","filterValues","showFilter"]);return t},mEe="RaFilterButton",yEe=ne("div",{name:mEe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),bEe=function(e){var t=e.children,r=function(){return d.createElement(fN,{className:j$.button})},n=function(){return d.createElement(rN,{className:j$.form})};return d.createElement(Ep.Provider,{value:d.Children.toArray(t)},e.context==="button"?r():n())},k$="RaFilter",j$={button:"".concat(k$,"-button"),form:"".concat(k$,"-form")},fw=globalThis&&globalThis.__assign||function(){return fw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:w+1}));v(w+1)},[x,v,y]),b=d.useCallback(function(E){g(E.target.value)},[g]),h=d.useCallback(function(E){var w=E.from,O=E.to,P=E.count;return P===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:w,offsetEnd:O,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:w,offsetEnd:O,total:P===-1?O:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),_=d.useCallback(function(E){return y("ra.navigation.".concat(E),{_:"Go to ".concat(E," page")})},[y]);if(u)return d.createElement(jc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(S)return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:EEe,component:"span",labelDisplayedRows:h},wf(i)));var C=n||(!u&&p!=null?xEe:void 0);return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:b,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:_,rowsPerPageOptions:r},wf(i)))}),CEe=[5,10,25,50],EEe=[],zg=globalThis&&globalThis.__assign||function(){return zg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ye.target.value>"u")){var be=ye.target,we=be.valueAsDate!==void 0&&be.valueAsDate!==null&&!isNaN(new Date(be.valueAsDate).getTime())?g?g(be.valueAsDate):be.valueAsDate:g?g(be.value):mh(be.value);we!==""&&we!=null&&(_.onChange(we),j.current=!0)}},B=function(ye){c&&c(ye),M.current=!0},U=function(){if(M.current=!1,!!$.current){var ye=$.current.valueAsDate!==void 0&&$.current.valueAsDate!==null&&!isNaN(new Date($.current.valueAsDate).getTime())?g?g($.current.valueAsDate):mh($.current.valueAsDate):g?g($.current.value):mh($.current.value);ye!==_.value&&_.onChange(ye??""),z&&z()}},q=C.error,ie=C.invalid,oe=i!==!1||ie,Ee=_.ref,pe=_.name,Te=fae([Ee,$]);return d.createElement(yp,zg({id:E,inputRef:Te,name:pe,defaultValue:a(F.current),key:P,type:"datetime-local",onChange:W,onFocus:B,onBlur:U,className:ue("ra-input","ra-input-".concat(f),t),size:"small",variant:S,margin:s,error:ie,disabled:x||m,readOnly:m,helperText:oe?d.createElement(rl,{error:q==null?void 0:q.message,helperText:i}):null,label:d.createElement(no,{label:o,source:f,resource:p,isRequired:w}),InputLabelProps:kEe},_p(b)))},vN=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},TEe=vN(4),gh=vN(2),A$=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=TEe(e.getFullYear()),r=gh(e.getMonth()+1),n=gh(e.getDate()),a=gh(e.getHours()),o=gh(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},$Ee=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,kEe={shrink:!0},mh=function(e){return e==null||e===""?"":e instanceof Date?A$(e):$Ee.test(e)?e:A$(new Date(e))},Vg=globalThis&&globalThis.__assign||function(){return Vg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof we.target.value>"u")){var ve=we.target;q(ve.value);var De=ve.valueAsNumber!==void 0&&ve.valueAsNumber!==null&&!isNaN(ve.valueAsNumber)?p?p(ve.valueAsNumber):ve.valueAsNumber:p?p(ve.value):LEe(ve.value);P.onChange(De)}},Ee=function(we){f&&f(we),ie.current=!0},pe=function(){M&&M(),ie.current=!1;var we=o(P.value);q(function(ve){return ve!==we?we:ve})},Te=i!==!1||$,ye=P.ref,be=F$(P,["ref"]);return d.createElement(yp,ii({id:F},be,{inputRef:ye,value:U,onChange:oe,onFocus:Ee,onBlur:pe,className:ue("ra-input","ra-input-".concat(g),t),type:"number",size:"small",variant:h,error:$,disabled:C||E,readOnly:E,helperText:Te?d.createElement(rl,{error:j==null?void 0:j.message,helperText:i}):null,label:d.createElement(no,{label:s,source:g,resource:v,isRequired:z}),margin:u,inputProps:ii(ii({},W),{readOnly:E})},_p(w)))},LEe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},DEe=function(e){return e==null||isNaN(e)?"":e.toString()},Ug=globalThis&&globalThis.__assign||function(){return Ug=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(KEe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Di,{className:vu.content},d.createElement(Nn,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Xl()}),d.createElement(Nn,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Xl()}),d.createElement(hn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:vu.button},a?d.createElement(kc,{className:vu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},nv="RaLoginForm",vu={content:"".concat(nv,"-content"),button:"".concat(nv,"-button"),icon:"".concat(nv,"-icon")},KEe=ne(M_,{name:nv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(vu.content)]={width:300},t["& .".concat(vu.button)]={marginTop:r.spacing(2)},t["& .".concat(vu.icon)]={margin:r.spacing(.3)},t}),pw=globalThis&&globalThis.__assign||function(){return pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?lOe:r;return a?d.createElement(cOe,mw({className:ue("edit-page",o)},l),u!==!1&&d.createElement(dl,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),y,d.createElement("div",{className:ue(yu.main,(t={},t[yu.noActions]=!y,t))},d.createElement(s,{className:yu.card},g?a:d.createElement(Di,null," ")),n)):null},iv="RaEdit",yu={main:"".concat(iv,"-main"),noActions:"".concat(iv,"-noActions"),card:"".concat(iv,"-card")},cOe=ne("div",{name:iv,overridesResolver:function(e,t){return t.root}})((td={},td["& .".concat(yu.main)]={display:"flex",alignItems:"flex-start"},td["& .".concat(yu.noActions)]={marginTop:"1em"},td["& .".concat(yu.card)]={flex:"1 1 auto"},td)),yw=globalThis&&globalThis.__assign||function(){return yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&S?EOe:r;return!a||!y&&l?null:d.createElement(POe,ww({className:ue("show-page",o)},f),c!==!1&&d.createElement(dl,{title:c,defaultTitle:g,preferenceKey:"".concat(v,".show.title")}),x!==!1&&x,d.createElement("div",{className:ue(xu.main,(t={},t[xu.noActions]=!x,t))},d.createElement(s,{className:xu.card},a),n))},lv="RaShow",xu={main:"".concat(lv,"-main"),noActions:"".concat(lv,"-noActions"),card:"".concat(lv,"-card")},POe=ne("div",{name:lv,overridesResolver:function(e,t){return t.root}})((rd={},rd["& .".concat(xu.main)]={display:"flex"},rd["& .".concat(xu.noActions)]={marginTop:"1em"},rd["& .".concat(xu.card)]={flex:"1 1 auto"},rd)),Sw=globalThis&&globalThis.__assign||function(){return Sw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var v=ry(e);if(v==null||v==="")return r?d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),r&&p(r,{_:r})):null;var g=c(v),y="";if(g)if(i&&u)y=g0?g.toLocaleString(n,a):g.toLocaleString();else if(u){var S=a??(typeof v=="string"&&v.length<=10?{timeZone:"UTC"}:void 0);y=g0?g.toLocaleDateString(n,S):g.toLocaleDateString()}else i&&(y=g0?g.toLocaleTimeString(n,a):g.toLocaleTimeString());return d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),y)};_N.displayName="DateFieldImpl";var Ya=Ky(_N),NOe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},g0=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Gg=globalThis&&globalThis.__assign||function(){return Gg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},Kd=globalThis&&globalThis.__assign||function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&D$.call(t.callee)==="[object Function]"),n},m0,B$;function OPe(){if(B$)return m0;B$=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=AN,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",S=n(v),x=g&&r.call(v)==="[object String]",m=[];if(!g&&!y&&!S)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(x&&v.length>0&&!t.call(v,0))for(var h=0;h0)for(var _=0;_"u"||!jr?bt:jr(Uint8Array),Bs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":El&&jr?jr([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":YPe,"%eval%":eval,"%EvalError%":JPe,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":NN,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":El&&jr?jr(jr([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!El||!jr?bt:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":ZPe,"%ReferenceError%":e2e,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!El||!jr?bt:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":El&&jr?jr(""[Symbol.iterator]()):bt,"%Symbol%":El?Symbol:bt,"%SyntaxError%":oc,"%ThrowTypeError%":r2e,"%TypedArray%":a2e,"%TypeError%":Su,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":t2e,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet};if(jr)try{null.error}catch(e){var o2e=jr(jr(e));Bs["%Error.prototype%"]=o2e}var i2e=function e(t){var r;if(t==="%AsyncFunction%")r=b0("async function () {}");else if(t==="%GeneratorFunction%")r=b0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=b0("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&jr&&(r=jr(a.prototype))}return Bs[t]=r,r},H$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pp=$E,Qg=FN,s2e=Pp.call(Function.call,Array.prototype.concat),l2e=Pp.call(Function.apply,Array.prototype.splice),q$=Pp.call(Function.call,String.prototype.replace),Xg=Pp.call(Function.call,String.prototype.slice),u2e=Pp.call(Function.call,RegExp.prototype.exec),c2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d2e=/\\(\\)?/g,f2e=function(t){var r=Xg(t,0,1),n=Xg(t,-1);if(r==="%"&&n!=="%")throw new oc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new oc("invalid intrinsic syntax, expected opening `%`");var a=[];return q$(t,c2e,function(o,i,s,u){a[a.length]=s?q$(u,d2e,"$1"):i||o}),a},p2e=function(t,r){var n=t,a;if(Qg(H$,n)&&(a=H$[n],n="%"+a[0]+"%"),Qg(Bs,n)){var o=Bs[n];if(o===Il&&(o=i2e(n)),typeof o>"u"&&!r)throw new Su("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new oc("intrinsic "+t+" does not exist!")},Rp=function(t,r){if(typeof t!="string"||t.length===0)throw new Su("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Su('"allowMissing" argument must be a boolean');if(u2e(/^%?[^%]*%?$/,t)===null)throw new oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=f2e(t),a=n.length>0?n[0]:"",o=p2e("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],l2e(n,s2e([0,1],l)));for(var c=1,f=!0;c=n.length){var y=Ds(s,p);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else f=Qg(s,p),s=s[p];f&&!u&&(Bs[i]=s)}}return s},h2e=Rp,dv=h2e("%Object.defineProperty%",!0)||!1;if(dv)try{dv({},"a",{value:1})}catch{dv=!1}var kE=dv,v2e=Rp,fv=v2e("%Object.getOwnPropertyDescriptor%",!0);if(fv)try{fv([],"length")}catch{fv=null}var LN=fv,K$=kE,g2e=MN,Ol=Op,G$=LN,DN=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ol("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ol("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ol("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ol("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ol("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ol("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!G$&&G$(t,r);if(K$)K$(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new g2e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mw=kE,BN=function(){return!!Mw};BN.hasArrayLengthDefineBug=function(){if(!Mw)return null;try{return Mw([],"length",{value:1}).length!==1}catch{return!0}};var zN=BN,m2e=TPe,y2e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",b2e=Object.prototype.toString,x2e=Array.prototype.concat,Q$=DN,w2e=function(e){return typeof e=="function"&&b2e.call(e)==="[object Function]"},VN=zN(),S2e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!w2e(n)||!n())return}VN?Q$(e,t,r,!0):Q$(e,t,r)},UN=function(e,t){var r=arguments.length>2?arguments[2]:{},n=m2e(t);y2e&&(n=x2e.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||E2e(r)!==r)throw new J$("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Y$){var i=Y$(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(C2e?X$(t,"length",r,!0,!0):X$(t,"length",r)),t};(function(e){var t=$E,r=Rp,n=O2e,a=Op,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=kE,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var v=s(t,i,arguments);return n(v,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(HN);var qN=HN.exports,P2e=Op,R2e=function(t){if(t==null)throw new P2e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},KN=Rp,GN=qN,T2e=GN(KN("String.prototype.indexOf")),$2e=function(t,r){var n=KN(t,!!r);return typeof n=="function"&&T2e(t,".prototype.")>-1?GN(n):n},k2e=R2e,QN=$2e,j2e=QN("Object.prototype.propertyIsEnumerable"),I2e=QN("Array.prototype.push"),XN=function(t){var r=k2e(t),n=[];for(var a in r)j2e(r,a)&&I2e(n,[a,r[a]]);return n},A2e=XN,YN=function(){return typeof Object.entries=="function"?Object.entries:A2e},M2e=YN,F2e=WN,N2e=function(){var t=M2e();return F2e(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},L2e=WN,D2e=qN,B2e=XN,JN=YN,z2e=N2e,ZN=D2e(JN(),Object);L2e(ZN,{getPolyfill:JN,implementation:B2e,shim:z2e});var V2e=ZN,jE=V2e,eL=FN,U2e=function(t){},Fw=String.prototype.replace,tL=String.prototype.split,pv="||||",bh=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},rL={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:bh,chinese:function(){return 0},croatian:bh,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bh,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:bh},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function W2e(e){for(var t={},r=jE(e),n=0;n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var uRe=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),cRe=function(e){uRe(t,e);function t(r,n,a){a===void 0&&(a=null);var o=e.call(this,r)||this;return o.message=r,o.status=n,o.body=a,Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(o,o.constructor):o.stack=new Error(r).stack,o.stack=new Error().stack,o}return t}(Error);const dRe=cRe;var Yg=globalThis&&globalThis.__assign||function(){return Yg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new dRe(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},pRe=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},Jg=function(e,t){var r;return t===void 0&&(t=[]),pRe(e)?Object.assign.apply(Object,fRe([{}],Object.keys(e).map(function(n){return Jg(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e};function Nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{t.headers||(t.headers=aL(t));const r=localStorage.getItem("token");return r&&t.headers.set("Authorization",`Bearer ${r}`),ME(e,t)},mRe=vRe(fl,gRe),yRe={...mRe,getManyReference:(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={...Jg(t.filter),[t.target]:t.id,_sort:a,_order:o,_start:(r-1)*n,_end:r*n,output_size_limit:200},s=`${fl}/${t.target}/${t.id}/${e}?${ko.stringify(i)}`;return ME(s).then(({headers:u,json:l})=>{if(!u.has("x-total-count"))throw new Error("The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?");return{data:l,total:parseInt(u.get("x-total-count").split("/").pop()||"",10)}})}};var FE={},bRe=it;Object.defineProperty(FE,"__esModule",{value:!0});var Gy=FE.default=void 0,xRe=bRe(ct()),wRe=R;Gy=FE.default=(0,xRe.default)((0,wRe.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");const SRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}`,{method:"POST"}).then(()=>{t("Success running job")}).catch(u=>{t("Error on running job",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Run",onClick:i,disabled:a,children:R.jsx(Gy,{})})},_Re=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}/toggle`,{method:"POST"}).then(()=>{t("Job toggled")}).catch(u=>{t("Error on job toggle",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Toggle",title:"Enable/disable execution of selected jobs",onClick:i,disabled:a,children:R.jsx(Gy,{})})};var NE={},CRe=it;Object.defineProperty(NE,"__esModule",{value:!0});var LE=NE.default=void 0,ERe=CRe(ct()),ORe=R;LE=NE.default=(0,ERe.default)((0,ORe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var DE={},PRe=it;Object.defineProperty(DE,"__esModule",{value:!0});var iL=DE.default=void 0,RRe=PRe(ct()),TRe=R;iL=DE.default=(0,RRe.default)((0,TRe.jsx)("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer");const $Re=()=>{const e=_r();return e.status==="success"?R.jsx(kn,{title:"Success",children:R.jsx(Uy,{htmlColor:"green"})}):e.status==="failed"?R.jsx(kn,{title:"Error",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Waiting to Run",children:R.jsx(iL,{htmlColor:"blue"})})},kRe=()=>_r().disabled?R.jsx(kn,{title:"Disabled",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Enabled",children:R.jsx(Uy,{htmlColor:"green"})}),jRe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function IRe(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let o=0;const i=()=>(o+=1,o);return(s,u)=>{const l=u.options.name;if(l&&l.indexOf("Mui")===0&&!u.options.link&&!t){if(jRe.indexOf(s.key)!==-1)return`Mui-${s.key}`;const c=`${a}${l}-${s.key}`;return!u.options.theme[HF]||n!==""?c:`${c}-${i()}`}return`${a}${r}${i()}`}}var sk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tp=(typeof window>"u"?"undefined":sk(window))==="object"&&(typeof document>"u"?"undefined":sk(document))==="object"&&document.nodeType===9,ARe={}.constructor;function Lw(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Lw);if(e.constructor!==ARe)return e;var t={};for(var r in e)t[r]=Lw(e[r]);return t}function BE(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,a=Lw(t),o=n.plugins.onCreateRule(e,a,r);return o||(e[0],null)}var lk=function(t,r){for(var n="",a=0;a<+~=|^:(),"'`\s])/g,uk=typeof CSS<"u"&&CSS.escape,zE=function(e){return uk?uk(e):e.replace(MRe,"\\$1")},sL=function(){function e(r,n,a){this.type="style",this.isProcessed=!1;var o=a.sheet,i=a.Renderer;this.key=r,this.options=a,this.style=n,o?this.renderer=o.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,a,o){if(a===void 0)return this.style[n];var i=o?o.force:!1;if(!i&&this.style[n]===a)return this;var s=a;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(a,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),Dw=function(e){Py(t,e);function t(n,a,o){var i;i=e.call(this,n,a,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,c=o.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(bx(bx(i)),l),i.selectorText="."+zE(i.id)),i}var r=t.prototype;return r.applyTo=function(a){var o=this.renderer;if(o){var i=this.toJSON();for(var s in i)o.setProperty(a,s,i[s])}return this},r.toJSON=function(){var a={};for(var o in this.style){var i=this.style[o];typeof i!="object"?a[o]=i:Array.isArray(i)&&(a[o]=zs(i))}return a},r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.selectorText,this.style,s)},oL(t,[{key:"selector",set:function(a){if(a!==this.selectorText){this.selectorText=a;var o=this.renderer,i=this.renderable;if(!(!i||!o)){var s=o.setSelector(i,a);s||o.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(sL),FRe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new Dw(t,r,n)}},S0={indent:1,children:!0},NRe=/@([\w-]+)/,LRe=function(){function e(r,n,a){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(NRe);this.at=o?o[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new Qy(T({},a,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=S0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=S0.indent),n.children==null&&(n.children=S0.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+o+i+o+"}":""},e}(),DRe=/@container|@media|@supports\s+/,BRe={onCreateRule:function(t,r,n){return DRe.test(t)?new LRe(t,r,n):null}},_0={indent:1,children:!0},zRe=/@keyframes\s+([\w-]+)/,Bw=function(){function e(r,n,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(zRe);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var i=a.scoped,s=a.sheet,u=a.generateId;this.id=i===!1?this.name:zE(u(this,s)),this.rules=new Qy(T({},a,{parent:this}));for(var l in n)this.rules.add(l,n[l],T({},a,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=_0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=_0.indent),n.children==null&&(n.children=_0.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+o+i+o),this.at+" "+this.id+" {"+i+"}"},e}(),VRe=/@keyframes\s+/,URe=/\$([\w-]+)/g,zw=function(t,r){return typeof t=="string"?t.replace(URe,function(n,a){return a in r?r[a]:n}):t},ck=function(t,r,n){var a=t[r],o=zw(a,n);o!==a&&(t[r]=o)},WRe={onCreateRule:function(t,r,n){return typeof t=="string"&&VRe.test(t)?new Bw(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&ck(t,"animation-name",n.keyframes),"animation"in t&&ck(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var a=n.options.sheet;if(!a)return t;switch(r){case"animation":return zw(t,a.keyframes);case"animation-name":return zw(t,a.keyframes);default:return t}}},HRe=function(e){Py(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.key,this.style,s)},t}(sL),qRe={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new HRe(t,r,n):null}},KRe=function(){function e(r,n,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=a}var t=e.prototype;return t.toString=function(n){var a=Ic(n),o=a.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){a.push(n);return}for(var i=0;io){a.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var a=this.registry.indexOf(n);this.registry.splice(a,1)},t.toString=function(n){for(var a=n===void 0?{}:n,o=a.attached,i=Pe(a,["attached"]),s=Ic(i),u=s.linebreak,l="",c=0;c-1?a.substr(0,o-1):a;t.style.setProperty(r,i,o>-1?"important":"")}}catch{return!1}return!0},iTe=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},sTe=function(t,r){return t.selectorText=r,t.selectorText===r},cL=uL(function(){return document.querySelector("head")});function lTe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function uTe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function cTe(e){for(var t=cL(),r=0;r0){var r=lTe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=uTe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var a=cTe(n);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}function fTe(e,t){var r=t.insertionPoint,n=dTe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var a=r,o=a.parentNode;o&&o.insertBefore(e,a.nextSibling);return}cL().appendChild(e)}var pTe=uL(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),vk=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},gk=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},hTe=function(){var t=document.createElement("style");return t.textContent=` -`,t},vTe=function(){function e(r){this.getPropertyValue=aTe,this.setProperty=oTe,this.removeProperty=iTe,this.setSelector=sTe,this.hasInsertedRules=!1,this.cssRules=[],r&&Gd.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},a=n.media,o=n.meta,i=n.element;this.element=i||hTe(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),o&&this.element.setAttribute("data-meta",o);var s=pTe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){fTe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` + `),che)),vhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=Pe(n,lhe),v=T({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=dhe(v),y={},S={},x={};if(f==="determinate"){const m=2*Math.PI*((Jo-l)/2);y.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(fhe,T({className:ue(g.root,a),style:T({width:s,height:s},S,u),ownerState:v,ref:r,role:"progressbar"},x,p,{children:R.jsx(phe,{className:g.svg,ownerState:v,viewBox:`${Jo/2} ${Jo/2} ${Jo} ${Jo}`,children:R.jsx(hhe,{className:g.circle,style:y,ownerState:v,cx:Jo,cy:Jo,r:(Jo-l)/2,fill:"none",strokeWidth:l})})}))}),kc=vhe;function zT(e){return e.substring(2).toLowerCase()}function ghe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Jt(t.ref,s),f=fn(g=>{const y=l.current;l.current=!1;const S=wr(s.current);if(!u.current||!s.current||"clientX"in g&&ghe(g,S))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!S.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!y)&&a(g)}),p=g=>y=>{l.current=!0;const S=t.props[g];S&&S(y)},v={ref:c};return o!==!1&&(v[o]=p(o)),d.useEffect(()=>{if(o!==!1){const g=zT(o),y=wr(s.current),S=()=>{i.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",S),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",S)}}},[f,o]),n!==!1&&(v[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=zT(n),y=wr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,n]),R.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const yhe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),bhe=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),xhe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,s])=>{var u;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let a=T({html:yhe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},bhe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function whe(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return R.jsxs(d.Fragment,{children:[R.jsx(b4,{styles:a=>xhe(a,n)}),r]})}function She(e){const t=wr(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VT(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function _he(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function UT(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!_he(i);s&&u&&Nd(i,a)})}function a0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Che(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(She(n)){const i=zF(wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${VT(n)+i}px`;const s=wr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${VT(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=wr(n).body;else{const i=n.parentElement,s=da(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Ehe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ohe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Nd(t.modalRef,!1);const a=Ehe(r);UT(r,t.mount,t.modalRef,a,!0);const o=a0(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=a0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Che(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=a0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Nd(t.modalRef,r),UT(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Nd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Phe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rhe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function The(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function $he(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||The(e))}function khe(e){const t=[],r=[];return Array.from(e.querySelectorAll(Phe)).forEach((n,a)=>{const o=Rhe(n);o===-1||!$he(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function jhe(){return!0}function Ihe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=khe,isEnabled:i=jhe,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),y=Jt(t.ref,g),S=d.useRef(null);d.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{a||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current),h=E=>{S.current=E,!(n||!i()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(u.current=!0,c.current&&c.current.focus())},_=()=>{const E=g.current;if(E===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let w=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(w=o(g.current)),w.length>0){var O,P;const k=!!((O=S.current)!=null&&O.shiftKey&&((P=S.current)==null?void 0:P.key)==="Tab"),j=w[0],$=w[w.length-1];typeof j!="string"&&typeof $!="string"&&(k?$.focus():j.focus())}else E.focus()};b.addEventListener("focusin",_),b.addEventListener("keydown",h,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",_),b.removeEventListener("keydown",h,!0)}},[r,n,a,i,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0,p.current=b.target;const h=t.props.onFocus;h&&h(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0};return R.jsxs(d.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:y,onFocus:x}),R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function Ahe(e){return typeof e=="function"?e():e}function Mhe(e){return e?e.props.hasOwnProperty("in"):!1}const Fhe=new Ohe;function Nhe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Fhe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),y=Jt(g,f),[S,x]=d.useState(!c),m=Mhe(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const h=()=>wr(v.current),_=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),C=()=>{a.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=fn(()=>{const M=Ahe(t)||h().body;a.add(_(),M),g.current&&C()}),w=d.useCallback(()=>a.isTopModal(_()),[a]),O=fn(M=>{v.current=M,M&&(c&&w()?C():g.current&&Nd(g.current,b))}),P=d.useCallback(()=>{a.remove(_(),b)},[b,a]);d.useEffect(()=>()=>{P()},[P]),d.useEffect(()=>{c?E():(!m||!o)&&P()},[c,P,m,o,E]);const k=M=>W=>{var B;(B=M.onKeyDown)==null||B.call(M,W),!(W.key!=="Escape"||W.which===229||!w())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},j=M=>W=>{var B;(B=M.onClick)==null||B.call(M,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(M={})=>{const W=lg(e);delete W.onTransitionEnter,delete W.onTransitionExited;const B=T({},W,M);return T({role:"presentation"},B,{onKeyDown:k(B),ref:y})},getBackdropProps:(M={})=>{const W=M;return T({"aria-hidden":!0},W,{onClick:j(W),open:c})},getTransitionProps:()=>{const M=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:hx(M,u==null?void 0:u.props.onEnter),onExited:hx(W,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:O,isTopModal:w,exited:S,hasTransition:m}}function Lhe(e){return Ue("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Dhe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Bhe=e=>{const{open:t,exited:r,classes:n}=e;return qe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Lhe,n)},zhe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vhe=ne(w4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Uhe=d.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Ke({name:"MuiModal",props:t}),{BackdropComponent:c=Vhe,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:y,component:S,components:x={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:_=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:O=!1,keepMounted:P=!1,onBackdropClick:k,open:j,slotProps:$,slots:F}=l,z=Pe(l,Dhe),M=T({},l,{closeAfterTransition:v,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:_,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:O,keepMounted:P}),{getRootProps:W,getBackdropProps:B,getTransitionProps:U,portalRef:q,isTopModal:ie,exited:oe,hasTransition:Ee}=Nhe(T({},M,{rootRef:r})),pe=T({},M,{exited:oe}),Te=Bhe(pe),ye={};if(g.props.tabIndex===void 0&&(ye.tabIndex="-1"),Ee){const{onEnter:Ne,onExited:Ae}=U();ye.onEnter=Ne,ye.onExited=Ae}const be=(n=(a=F==null?void 0:F.root)!=null?a:x.Root)!=null?n:zhe,we=(o=(i=F==null?void 0:F.backdrop)!=null?i:x.Backdrop)!=null?o:c,ve=(s=$==null?void 0:$.root)!=null?s:m.root,De=(u=$==null?void 0:$.backdrop)!=null?u:m.backdrop,Me=fa({elementType:be,externalSlotProps:ve,externalForwardedProps:z,getSlotProps:W,additionalProps:{ref:r,as:S},ownerState:pe,className:ue(p,ve==null?void 0:ve.className,Te==null?void 0:Te.root,!pe.open&&pe.exited&&(Te==null?void 0:Te.hidden))}),Qe=fa({elementType:we,externalSlotProps:De,additionalProps:f,getSlotProps:Ne=>B(T({},Ne,{onClick:Ae=>{k&&k(Ae),Ne!=null&&Ne.onClick&&Ne.onClick(Ae)}})),className:ue(De==null?void 0:De.className,f==null?void 0:f.className,Te==null?void 0:Te.backdrop),ownerState:pe});return!P&&!j&&(!Ee||oe)?null:R.jsx(m4,{ref:q,container:y,disablePortal:C,children:R.jsxs(be,T({},Me,{children:[!O&&c?R.jsx(we,T({},Qe)):null,R.jsx(Ihe,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:ie,open:j,children:d.cloneElement(g,ye)})]}))})}),RC=Uhe;function Whe(e){return Ue("MuiDialog",e)}const Hhe=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),o0=Hhe,qhe=d.createContext({}),C4=qhe,Khe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ghe=ne(w4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qhe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return qe(i,Whe,t)},Xhe=ne(RC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Yhe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ge(r.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Jhe=ne(Yi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ge(r.scroll)}`],t[`paperWidth${ge(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${o0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${o0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${o0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Zhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialog"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:S,onClick:x,onClose:m,open:b,PaperComponent:h=Yi,PaperProps:_={},scroll:C="paper",TransitionComponent:E=x4,transitionDuration:w=o,TransitionProps:O}=n,P=Pe(n,Khe),k=T({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:y,scroll:C}),j=Qhe(k),$=d.useRef(),F=B=>{$.current=B.target===B.currentTarget},z=B=>{x&&x(B),$.current&&($.current=null,S&&S(B),m&&m(B,"backdropClick"))},M=el(s),W=d.useMemo(()=>({titleId:M}),[M]);return R.jsx(Xhe,T({className:ue(j.root,f),closeAfterTransition:!0,components:{Backdrop:Ghe},componentsProps:{backdrop:T({transitionDuration:w,as:u},l)},disableEscapeKeyDown:p,onClose:m,open:b,ref:r,onClick:z,ownerState:k},P,{children:R.jsx(E,T({appear:!0,in:b,timeout:w,role:"presentation"},O,{children:R.jsx(Yhe,{className:ue(j.container),onMouseDown:F,ownerState:k,children:R.jsx(Jhe,T({as:h,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":M},_,{className:ue(j.paper,_.className),ownerState:k,children:R.jsx(C4.Provider,{value:W,children:c})}))})}))}))}),TC=Zhe;function eve(e){return Ue("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const tve=["className","disableSpacing"],rve=e=>{const{classes:t,disableSpacing:r}=e;return qe({root:["root",!r&&"spacing"]},eve,t)},nve=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ave=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Pe(n,tve),s=T({},n,{disableSpacing:o}),u=rve(s);return R.jsx(nve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),$C=ave;function ove(e){return Ue("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function ive(e){return Ue("MuiDialogTitle",e)}const sve=We("MuiDialogTitle",["root"]),lve=sve,uve=["className","dividers"],cve=e=>{const{classes:t,dividers:r}=e;return qe({root:["root",r&&"dividers"]},ove,t)},dve=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${lve.root} + &`]:{paddingTop:0}})),fve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Pe(n,uve),s=T({},n,{dividers:o}),u=cve(s);return R.jsx(dve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),kC=fve;function pve(e){return Ue("MuiDialogContentText",e)}We("MuiDialogContentText",["root"]);const hve=["children","className"],vve=e=>{const{classes:t}=e,n=qe({root:["root"]},pve,t);return T({},t,n)},gve=ne(_t,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Pe(n,hve),i=vve(o);return R.jsx(gve,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),E4=mve,yve=["className","id"],bve=e=>{const{classes:t}=e;return qe({root:["root"]},ive,t)},xve=ne(_t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),wve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Pe(n,yve),s=n,u=bve(s),{titleId:l=o}=d.useContext(C4);return R.jsx(xve,T({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),jC=wve;function Sve(e){return Ue("MuiDivider",e)}const _ve=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WT=_ve,Cve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Eve=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:s,variant:u}=e;return qe({root:["root",t&&"absolute",u,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Sve,n)},Ove=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Pve=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),O4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:s=o?"div":"hr",flexItem:u=!1,light:l=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=Pe(n,Cve),y=T({},n,{absolute:a,component:s,flexItem:u,light:l,orientation:c,role:f,textAlign:p,variant:v}),S=Eve(y);return R.jsx(Ove,T({as:s,className:ue(S.root,i),role:f,ref:r,ownerState:y},g,{children:o?R.jsx(Pve,{className:S.wrapper,ownerState:y,children:o}):null}))});O4.muiSkipListHighlight=!0;const gg=O4,Rve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function $ve(e){return typeof e=="function"?e():e}function uh(e,t,r){const n=$ve(r),a=Tve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const kve=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=a,in:p,onEnter:v,onEntered:g,onEntering:y,onExit:S,onExited:x,onExiting:m,style:b,timeout:h=o,TransitionComponent:_=gC}=t,C=Pe(t,Rve),E=d.useRef(null),w=Jt(u.ref,E,r),O=B=>U=>{B&&(U===void 0?B(E.current):B(E.current,U))},P=O((B,U)=>{uh(c,B,l),bC(B),v&&v(B,U)}),k=O((B,U)=>{const q=Ju({timeout:h,style:b,easing:f},{mode:"enter"});B.style.webkitTransition=n.transitions.create("-webkit-transform",T({},q)),B.style.transition=n.transitions.create("transform",T({},q)),B.style.webkitTransform="none",B.style.transform="none",y&&y(B,U)}),j=O(g),$=O(m),F=O(B=>{const U=Ju({timeout:h,style:b,easing:f},{mode:"exit"});B.style.webkitTransition=n.transitions.create("-webkit-transform",U),B.style.transition=n.transitions.create("transform",U),uh(c,B,l),S&&S(B)}),z=O(B=>{B.style.webkitTransition="",B.style.transition="",x&&x(B)}),M=B=>{i&&i(E.current,B)},W=d.useCallback(()=>{E.current&&uh(c,E.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const B=Rc(()=>{E.current&&uh(c,E.current,l)}),U=da(E.current);return U.addEventListener("resize",B),()=>{B.clear(),U.removeEventListener("resize",B)}},[c,p,l]),d.useEffect(()=>{p||W()},[p,W]),R.jsx(_,T({nodeRef:E,onEnter:P,onEntered:j,onEntering:k,onExit:F,onExited:z,onExiting:$,addEndListener:M,appear:s,in:p,timeout:h},C,{children:(B,U)=>d.cloneElement(u,T({ref:w,style:T({visibility:B==="exited"&&!p?"hidden":void 0},b,u.props.style)},U))}))}),P4=kve;function jve(e){return Ue("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Ive=["BackdropProps"],Ave=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],R4=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Mve=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ge(r)}`,n!=="temporary"&&`paperAnchorDocked${ge(r)}`]};return qe(a,jve,t)},Fve=ne(RC,{name:"MuiDrawer",slot:"Root",overridesResolver:R4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),HT=ne("div",{shouldForwardProp:Wr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:R4})({flex:"0 0 auto"}),Nve=ne(Yi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ge(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ge(r.anchor)}`]]}})(({theme:e,ownerState:t})=>T({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),T4={left:"right",right:"left",top:"down",bottom:"up"};function Lve(e){return["left","right"].indexOf(e)!==-1}function Dve({direction:e},t){return e==="rtl"&&Lve(t)?T4[t]:t}const Bve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),a=fo(),o=cl(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:g,open:y=!1,PaperProps:S={},SlideProps:x,TransitionComponent:m=P4,transitionDuration:b=i,variant:h="temporary"}=n,_=Pe(n.ModalProps,Ive),C=Pe(n,Ave),E=d.useRef(!1);d.useEffect(()=>{E.current=!0},[]);const w=Dve({direction:o?"rtl":"ltr"},s),P=T({},n,{anchor:s,elevation:f,open:y,variant:h},C),k=Mve(P),j=R.jsx(Nve,T({elevation:h==="temporary"?f:0,square:!0},S,{className:ue(k.paper,S.className),ownerState:P,children:l}));if(h==="permanent")return R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:j}));const $=R.jsx(m,T({in:y,direction:T4[w],timeout:b,appear:E.current},x,{children:j}));return h==="persistent"?R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:$})):R.jsx(Fve,T({BackdropProps:T({},u,v,{transitionDuration:b}),className:ue(k.root,k.modal,c),open:y,ownerState:P,onClose:g,hideBackdrop:p,ref:r},C,_,{children:$}))}),zve=Bve;function Vve(e){return Ue("MuiFab",e)}const Uve=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),qT=Uve,Wve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Hve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${ge(a)}`,t==="inherit"?"colorInherit":t]},i=qe(o,Vve,n);return T({},n,i)},qve=ne(Ma,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Wr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ge(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return T({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${qT.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>T({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${qT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Kve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,v=Pe(n,Wve),g=T({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),y=Hve(g);return R.jsx(qve,T({className:ue(y.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(y.focusVisible,c),ownerState:g,ref:r},v,{classes:y,children:a}))}),Gve=Kve,Qve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Xve=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Vfe,t);return T({},t,a)},Yve=ne(jy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$y(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Jve=ne(Iy,{name:"MuiFilledInput",slot:"Input",overridesResolver:ky})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),$4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,S=Pe(s,Qve),x=T({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),m=Xve(s),b={root:{ownerState:x},input:{ownerState:x}},h=v??l?Rr(b,v??l):b,_=(n=(a=g.root)!=null?a:u.Root)!=null?n:Yve,C=(o=(i=g.input)!=null?i:u.Input)!=null?o:Jve;return R.jsx(Ay,T({slots:{root:_,input:C},componentsProps:h,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},S,{classes:m}))});$4.muiName="Input";const k4=$4;function Zve(e){return Ue("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ege=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],tge=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return qe(a,Zve,t)},rge=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${ge(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),nge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:y="medium",variant:S="outlined"}=n,x=Pe(n,ege),m=T({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:y,variant:S}),b=tge(m),[h,_]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{if(!Hh(F,["Input","Select"]))return;const z=Hh(F,["Select"])?F.props.input:F;z&&kfe(z.props)&&($=!0)}),$}),[C,E]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{Hh(F,["Input","Select"])&&(pg(F.props,!0)||pg(F.props.inputProps,!0))&&($=!0)}),$}),[w,O]=d.useState(!1);u&&w&&O(!1);const P=c!==void 0&&!u?c:w;let k;const j=d.useMemo(()=>({adornedStart:h,setAdornedStart:_,color:i,disabled:u,error:l,filled:C,focused:P,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{O(!0)},registerEffect:k,required:g,variant:S}),[h,i,u,l,C,P,f,p,k,g,y,S]);return R.jsx(Ty.Provider,{value:j,children:R.jsx(rge,T({as:s,ownerState:m,className:ue(b.root,o),ref:r},x,{children:a}))})}),age=nge,oge=Ele({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),Fy=oge;function ige(e){return Ue("MuiFormControlLabel",e)}const sge=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pd=sge,lge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],uge=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return qe(i,ige,t)},cge=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pd.label}`]:t.label},t.root,t[`labelPlacement${ge(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pd.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${pd.label}`]:{[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),dge=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),fge=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=o,y=Pe(o,lge),S=po(),x=(n=l??u.props.disabled)!=null?n:S==null?void 0:S.disabled,m=v??u.props.required,b={disabled:x,required:m};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof o[O]<"u"&&(b[O]=o[O])});const h=Zi({props:o,muiFormControl:S,states:["error"]}),_=T({},o,{disabled:x,labelPlacement:p,required:m,error:h.error}),C=uge(_),E=(a=g.typography)!=null?a:s.typography;let w=f;return w!=null&&w.type!==_t&&!c&&(w=R.jsx(_t,T({component:"span"},E,{className:ue(C.label,E==null?void 0:E.className),children:w}))),R.jsxs(cge,T({className:ue(C.root,i),ownerState:_,ref:r},y,{children:[d.cloneElement(u,b),m?R.jsxs(Fy,{display:"block",children:[w,R.jsxs(dge,{ownerState:_,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):w]}))}),pge=fge;function hge(e){return Ue("MuiFormGroup",e)}We("MuiFormGroup",["root","row","error"]);const vge=["className","row"],gge=e=>{const{classes:t,row:r,error:n}=e;return qe({root:["root",r&&"row",n&&"error"]},hge,t)},mge=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),yge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Pe(n,vge),s=po(),u=Zi({props:n,muiFormControl:s,states:["error"]}),l=T({},n,{row:o,error:u.error}),c=gge(l);return R.jsx(mge,T({className:ue(c.root,a),ownerState:l,ref:r},i))}),bge=yge;function xge(e){return Ue("MuiFormHelperText",e)}const wge=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KT=wge;var GT;const Sge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_ge=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${ge(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return qe(l,xge,t)},Cge=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ge(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KT.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KT.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ege=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Pe(n,Sge),u=po(),l=Zi({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=T({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=_ge(c);return R.jsx(Cge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:a===" "?GT||(GT=R.jsx("span",{className:"notranslate",children:"​"})):a}))}),IC=Ege;function Oge(e){return Ue("MuiFormLabel",e)}const Pge=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ld=Pge,Rge=["children","className","color","component","disabled","error","filled","focused","required"],Tge=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${ge(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return qe(u,Oge,t)},$ge=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ld.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),kge=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),jge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Pe(n,Rge),u=po(),l=Zi({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=T({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Tge(c);return R.jsxs($ge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:[a,l.required&&R.jsxs(kge,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Ige=jge,Age=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cx(e){return`scale(${e}, ${e**2})`}const Mge={entering:{opacity:1,transform:Cx(1)},entered:{opacity:1,transform:"none"}},i0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),j4=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:y="auto",TransitionComponent:S=gC}=t,x=Pe(t,Age),m=Ss(),b=d.useRef(),h=fo(),_=d.useRef(null),C=Jt(_,o.ref,r),E=z=>M=>{if(z){const W=_.current;M===void 0?z(W):z(W,M)}},w=E(c),O=E((z,M)=>{bC(z);const{duration:W,delay:B,easing:U}=Ju({style:g,timeout:y,easing:i},{mode:"enter"});let q;y==="auto"?(q=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=q):q=W,z.style.transition=[h.transitions.create("opacity",{duration:q,delay:B}),h.transitions.create("transform",{duration:i0?q:q*.666,delay:B,easing:U})].join(","),u&&u(z,M)}),P=E(l),k=E(v),j=E(z=>{const{duration:M,delay:W,easing:B}=Ju({style:g,timeout:y,easing:i},{mode:"exit"});let U;y==="auto"?(U=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=U):U=M,z.style.transition=[h.transitions.create("opacity",{duration:U,delay:W}),h.transitions.create("transform",{duration:i0?U:U*.666,delay:i0?W:W||U*.333,easing:B})].join(","),z.style.opacity=0,z.style.transform=Cx(.75),f&&f(z)}),$=E(p),F=z=>{y==="auto"&&m.start(b.current||0,z),n&&n(_.current,z)};return R.jsx(S,T({appear:a,in:s,nodeRef:_,onEnter:O,onEntered:P,onEntering:w,onExit:j,onExited:$,onExiting:k,addEndListener:F,timeout:y==="auto"?null:y},x,{children:(z,M)=>d.cloneElement(o,T({style:T({opacity:0,transform:Cx(.75),visibility:z==="exited"&&!s?"hidden":void 0},Mge[z],g,o.props.style),ref:C},M))}))});j4.muiSupportAuto=!0;const mg=j4,Fge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Nge=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Lfe,t);return T({},t,a)},Lge=ne(jy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$y(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Dge=ne(Iy,{name:"MuiInput",slot:"Input",overridesResolver:ky})({}),I4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:y={},type:S="text"}=s,x=Pe(s,Fge),m=Nge(s),h={root:{ownerState:{disableUnderline:u}}},_=g??c?Rr(g??c,h):h,C=(n=(a=y.root)!=null?a:l.Root)!=null?n:Lge,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:Dge;return R.jsx(Ay,T({slots:{root:C,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:S},x,{classes:m}))});I4.muiName="Input";const A4=I4;function Bge(e){return Ue("MuiInputAdornment",e)}const zge=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),QT=zge;var XT;const Vge=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Uge=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Wge=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${ge(a)}`,i,n&&"hiddenLabel",o&&`size${ge(o)}`]};return qe(s,Bge,t)},Hge=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Uge})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${QT.positionStart}&:not(.${QT.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),qge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=Pe(n,Vge),p=po()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=T({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),y=Wge(g);return R.jsx(Ty.Provider,{value:null,children:R.jsx(Hge,T({as:i,ownerState:g,className:ue(y.root,o),ref:r},f,{children:typeof a=="string"&&!u?R.jsx(_t,{color:"text.secondary",children:a}):R.jsxs(d.Fragment,{children:[l==="start"?XT||(XT=R.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})}),Xh=qge;function Kge(e){return Ue("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gge=["disableAnimation","margin","shrink","variant","className"],Qge=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ge(n)}`,i],asterisk:[s&&"asterisk"]},l=qe(u,Kge,t);return T({},t,l)},Xge=ne(Ige,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ld.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yge=d.forwardRef(function(t,r){const n=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Pe(n,Gge),u=po();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Zi({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=T({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Qge(f);return R.jsx(Xge,T({"data-shrink":l,ownerState:f,ref:r,className:ue(p.root,i)},s,{classes:p}))}),Jge=Yge;function Zge(e){return Ue("MuiLink",e)}const eme=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tme=eme,M4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rme=e=>M4[e]||e,nme=({theme:e,ownerState:t})=>{const r=rme(t.color),n=Xu(e,`palette.${r}`,!1)||t.color,a=Xu(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},ame=nme,ome=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ime=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${ge(a)}`,r==="button"&&"button",n&&"focusVisible"]};return qe(o,Zge,t)},sme=ne(_t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ge(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:ame({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tme.focusVisible}`]:{outline:"auto"}})),lme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,v=Pe(n,ome),{isFocusVisibleRef:g,onBlur:y,onFocus:S,ref:x}=Cy(),[m,b]=d.useState(!1),h=Jt(r,x),_=O=>{y(O),g.current===!1&&b(!1),s&&s(O)},C=O=>{S(O),g.current===!0&&b(!0),u&&u(O)},E=T({},n,{color:o,component:i,focusVisible:m,underline:c,variant:f}),w=ime(E);return R.jsx(sme,T({color:o,className:ue(w.root,a),classes:l,component:i,onBlur:_,onFocus:C,ref:h,ownerState:E,variant:f,sx:[...Object.keys(M4).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},v))}),ume=lme,cme=d.createContext({}),jf=cme;function dme(e){return Ue("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const fme=["children","className","component","dense","disablePadding","subheader"],pme=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return qe({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},dme,t)},hme=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),vme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Pe(n,fme),f=d.useMemo(()=>({dense:s}),[s]),p=T({},n,{component:i,dense:s,disablePadding:u}),v=pme(p);return R.jsx(jf.Provider,{value:f,children:R.jsxs(hme,T({as:i,className:ue(v.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})}),gme=vme;function mme(e){return Ue("MuiListItemIcon",e)}const yme=We("MuiListItemIcon",["root","alignItemsFlexStart"]),YT=yme,bme=["className"],xme=e=>{const{alignItems:t,classes:r}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},mme,r)},wme=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>T({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Sme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Pe(n,bme),i=d.useContext(jf),s=T({},n,{alignItems:i.alignItems}),u=xme(s);return R.jsx(wme,T({className:ue(u.root,a),ownerState:s,ref:r},o))}),Cs=Sme;function _me(e){return Ue("MuiListItemText",e)}const Cme=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yg=Cme,Eme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ome=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return qe({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},_me,t)},Pme=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${yg.primary}`]:t.primary},{[`& .${yg.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Rme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=Pe(n,Eme),{dense:v}=d.useContext(jf);let g=u??a,y=c;const S=T({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!y,dense:v}),x=Ome(S);return g!=null&&g.type!==_t&&!i&&(g=R.jsx(_t,T({variant:v?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),y!=null&&y.type!==_t&&!i&&(y=R.jsx(_t,T({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),R.jsxs(Pme,T({className:ue(x.root,o),ownerState:S,ref:r},p,{children:[g,y]}))}),Zl=Rme,Tme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function s0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JT(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function F4(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Yc(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!F4(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const $me=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=Pe(t,Tme),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{a&&v.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:h})=>{const _=!v.current.style.width;if(b.clientHeight{const h=v.current,_=b.key,C=wr(h).activeElement;if(_==="ArrowDown")b.preventDefault(),Yc(h,C,l,u,s0);else if(_==="ArrowUp")b.preventDefault(),Yc(h,C,l,u,JT);else if(_==="Home")b.preventDefault(),Yc(h,null,l,u,s0);else if(_==="End")b.preventDefault(),Yc(h,null,l,u,JT);else if(_.length===1){const E=g.current,w=_.toLowerCase(),O=performance.now();E.keys.length>0&&(O-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&w!==E.keys[0]&&(E.repeating=!1)),E.lastTime=O,E.keys.push(w);const P=C&&!E.repeating&&F4(C,E);E.previousKeyMatched&&(P||Yc(h,C,!1,u,s0,E))?b.preventDefault():E.previousKeyMatched=!1}c&&c(b)},S=Jt(v,r);let x=-1;d.Children.forEach(i,(b,h)=>{if(!d.isValidElement(b)){x===h&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=h),x===h&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(b,h)=>{if(h===x){const _={};return o&&(_.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),d.cloneElement(b,_)}return b});return R.jsx(gme,T({role:"menu",ref:S,className:s,onKeyDown:y,tabIndex:a?0:-1},p,{children:m}))}),N4=$me;function kme(e){return Ue("MuiPopover",e)}We("MuiPopover",["root","paper"]);const jme=["onEntering"],Ime=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ame=["slotProps"];function ZT(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function e$(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function t$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function l0(e){return typeof e=="function"?e():e}const Mme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},kme,t)},Fme=ne(RC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L4=ne(Yi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nme=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:y=8,marginThreshold:S=16,open:x,PaperProps:m={},slots:b,slotProps:h,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:C=mg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:O=!1}=i,P=Pe(i.TransitionProps,jme),k=Pe(i,Ime),j=(n=h==null?void 0:h.paper)!=null?n:m,$=d.useRef(),F=Jt($,j.ref),z=T({},i,{anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:_,TransitionComponent:C,transitionDuration:E,TransitionProps:P}),M=Mme(z),W=d.useCallback(()=>{if(f==="anchorPosition")return c;const Ne=l0(u),He=(Ne&&Ne.nodeType===1?Ne:wr($.current).body).getBoundingClientRect();return{top:He.top+ZT(He,l.vertical),left:He.left+e$(He,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),B=d.useCallback(Ne=>({vertical:ZT(Ne,_.vertical),horizontal:e$(Ne,_.horizontal)}),[_.horizontal,_.vertical]),U=d.useCallback(Ne=>{const Ae={width:Ne.offsetWidth,height:Ne.offsetHeight},He=B(Ae);if(f==="none")return{top:null,left:null,transformOrigin:t$(He)};const ht=W();let ut=ht.top-He.vertical,V=ht.left-He.horizontal;const K=ut+Ae.height,te=V+Ae.width,se=da(l0(u)),de=se.innerHeight-S,fe=se.innerWidth-S;if(S!==null&&utde){const Oe=K-de;ut-=Oe,He.vertical+=Oe}if(S!==null&&Vfe){const Oe=te-fe;V-=Oe,He.horizontal+=Oe}return{top:`${Math.round(ut)}px`,left:`${Math.round(V)}px`,transformOrigin:t$(He)}},[u,f,W,B,S]),[q,ie]=d.useState(x),oe=d.useCallback(()=>{const Ne=$.current;if(!Ne)return;const Ae=U(Ne);Ae.top!==null&&(Ne.style.top=Ae.top),Ae.left!==null&&(Ne.style.left=Ae.left),Ne.style.transformOrigin=Ae.transformOrigin,ie(!0)},[U]);d.useEffect(()=>(O&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,O,oe]);const Ee=(Ne,Ae)=>{w&&w(Ne,Ae),oe()},pe=()=>{ie(!1)};d.useEffect(()=>{x&&oe()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),d.useEffect(()=>{if(!x)return;const Ne=Rc(()=>{oe()}),Ae=da(u);return Ae.addEventListener("resize",Ne),()=>{Ne.clear(),Ae.removeEventListener("resize",Ne)}},[u,x,oe]);let Te=E;E==="auto"&&!C.muiSupportAuto&&(Te=void 0);const ye=g||(u?wr(l0(u)).body:void 0),be=(a=b==null?void 0:b.root)!=null?a:Fme,we=(o=b==null?void 0:b.paper)!=null?o:L4,ve=fa({elementType:we,externalSlotProps:T({},j,{style:q?j.style:T({},j.style,{opacity:0})}),additionalProps:{elevation:y,ref:F},ownerState:z,className:ue(M.paper,j==null?void 0:j.className)}),De=fa({elementType:be,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ye,open:x},ownerState:z,className:ue(M.root,v)}),{slotProps:Me}=De,Qe=Pe(De,Ame);return R.jsx(be,T({},Qe,!Rf(be)&&{slotProps:Me,disableScrollLock:O},{children:R.jsx(C,T({appear:!0,in:x,onEntering:Ee,onExited:pe,timeout:Te},P,{children:R.jsx(we,T({},ve,{children:p}))}))}))}),D4=Nme;function Lme(e){return Ue("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Dme=["onEntering"],Bme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],zme={vertical:"top",horizontal:"right"},Vme={vertical:"top",horizontal:"left"},Ume=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Lme,t)},Wme=ne(D4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hme=ne(L4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qme=ne(N4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Kme=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:x="selectedMenu",slots:m={},slotProps:b={}}=o,h=Pe(o.TransitionProps,Dme),_=Pe(o,Bme),C=cl(),E=T({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:v,transitionDuration:y,TransitionProps:h,variant:x}),w=Ume(E),O=i&&!l&&p,P=d.useRef(null),k=(B,U)=>{P.current&&P.current.adjustStyleForScrollbar(B,{direction:C?"rtl":"ltr"}),S&&S(B,U)},j=B=>{B.key==="Tab"&&(B.preventDefault(),f&&f(B,"tabKeyDown"))};let $=-1;d.Children.map(s,(B,U)=>{d.isValidElement(B)&&(B.props.disabled||(x==="selectedMenu"&&B.props.selected||$===-1)&&($=U))});const F=(n=m.paper)!=null?n:Hme,z=(a=b.paper)!=null?a:v,M=fa({elementType:m.root,externalSlotProps:b.root,ownerState:E,className:[w.root,u]}),W=fa({elementType:F,externalSlotProps:z,ownerState:E,className:w.paper});return R.jsx(Wme,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?zme:Vme,slots:{paper:F,root:m.root},slotProps:{root:M,paper:W},open:p,ref:r,transitionDuration:y,TransitionProps:T({onEntering:k},h),ownerState:E},_,{classes:g,children:R.jsx(qme,T({onKeyDown:j,actions:P,autoFocus:i&&($===-1||l),autoFocusItem:O,variant:x},c,{className:ue(w.list,c.className),children:s}))}))}),Ny=Kme;function Gme(e){return Ue("MuiMenuItem",e)}const Qme=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jc=Qme,Xme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Jme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=qe({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Gme,i);return T({},i,u)},Zme=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Yme})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Jc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Jc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WT.inset}`]:{marginLeft:52},[`& .${yg.root}`]:{marginTop:0,marginBottom:0},[`& .${yg.inset}`]:{paddingLeft:36},[`& .${YT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${YT.root} svg`]:{fontSize:"1.25rem"}}))),eye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,v=Pe(n,Xme),g=d.useContext(jf),y=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),S=d.useRef(null);qn(()=>{a&&S.current&&S.current.focus()},[a]);const x=T({},n,{dense:y.dense,divider:s,disableGutters:u}),m=Jme(n),b=Jt(S,r);let h;return n.disabled||(h=f!==void 0?f:-1),R.jsx(jf.Provider,{value:y,children:R.jsx(Zme,T({ref:b,role:c,tabIndex:h,component:o,focusVisibleClassName:ue(m.focusVisible,l),className:ue(m.root,p)},v,{ownerState:x,classes:m}))})}),Ta=eye;function tye(e){return Ue("MuiNativeSelect",e)}const rye=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AC=rye,nye=["className","disabled","error","IconComponent","inputRef","variant"],aye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"]};return qe(s,tye,t)},B4=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${AC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),oye=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${AC.multiple}`]:t.multiple}]}})(B4),z4=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),iye=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(z4),sye=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Pe(t,nye),c=T({},t,{disabled:a,variant:u,error:o}),f=aye(c);return R.jsxs(d.Fragment,{children:[R.jsx(oye,T({ownerState:c,className:ue(f.select,n),disabled:a,ref:s||r},l)),t.multiple?null:R.jsx(iye,{as:i,ownerState:c,className:f.icon})]})}),lye=sye;var r$;const uye=["children","classes","className","label","notched"],cye=ne("fieldset",{shouldForwardProp:Wr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dye=ne("legend",{shouldForwardProp:Wr})(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function fye(e){const{className:t,label:r,notched:n}=e,a=Pe(e,uye),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return R.jsx(cye,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:R.jsx(dye,{ownerState:i,children:o?R.jsx("span",{children:r}):r$||(r$=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const pye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hye=e=>{const{classes:t}=e,n=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bfe,t);return T({},t,n)},vye=ne(jy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$y})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yo.focused} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yo.error} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yo.disabled} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),gye=ne(fye,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),mye=ne(Iy,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ky})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),V4=d.forwardRef(function(t,r){var n,a,o,i,s;const u=Ke({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:y={},type:S="text"}=u,x=Pe(u,pye),m=hye(u),b=po(),h=Zi({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:b,fullWidth:c,hiddenLabel:h.hiddenLabel,multiline:v,size:h.size,type:S}),C=(n=(a=y.root)!=null?a:l.Root)!=null?n:vye,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:mye;return R.jsx(Ay,T({slots:{root:C,input:E},renderSuffix:w=>R.jsx(gye,{ownerState:_,className:m.notchedOutline,label:p!=null&&p!==""&&h.required?s||(s=R.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:r,type:S},x,{classes:T({},m,{notchedOutline:null})}))});V4.muiName="Input";const U4=V4;function yye(e){return Ue("MuiPagination",e)}We("MuiPagination",["root","ul","outlined","text"]);const bye=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function xye(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=Pe(e,bye),[g,y]=Yu({controlled:l,default:a,name:r,state:"page"}),S=(O,P)=>{l||y(P),u&&u(O,P)},x=(O,P)=>{const k=P-O+1;return Array.from({length:k},(j,$)=>O+$)},m=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),h=Math.max(Math.min(g-p,n-t-p*2-1),t+2),_=Math.min(Math.max(g+p,t+p*2+2),b.length>0?b[0]-2:n-1),C=[...c?["first"]:[],...s?[]:["previous"],...m,...h>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...f?["last"]:[]],E=O=>{switch(O){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},w=C.map(O=>typeof O=="number"?{onClick:P=>{S(P,O)},type:"page",page:O,selected:O===g,disabled:o,"aria-current":O===g?"true":void 0}:{onClick:P=>{S(P,E(O))},type:O,page:E(O),selected:!1,disabled:o||O.indexOf("ellipsis")===-1&&(O==="next"||O==="last"?g>=n:g<=1)});return T({items:w},v)}function wye(e){return Ue("MuiPaginationItem",e)}const Sye=We("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Yn=Sye,Ex=An(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ox=An(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),n$=An(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),a$=An(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),_ye=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],W4=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.variant==="text"&&t[`text${ge(r.color)}`],r.variant==="outlined"&&t[`outlined${ge(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Cye=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${ge(o)}`,u,i,r!=="standard"&&`color${ge(r)}`,r!=="standard"&&`${u}${ge(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return qe(l,wye,t)},Eye=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:W4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Oye=ne(Ma,{name:"MuiPaginationItem",slot:"Root",overridesResolver:W4})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Yn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>T({},t.variant==="text"&&{[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Yn.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Yn.selected}`]:T({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Yn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Pye=ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>T({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Rye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:v={},type:g="page",variant:y="text"}=n,S=Pe(n,_ye),x=T({},n,{color:o,disabled:u,selected:c,shape:f,size:p,type:g,variant:y}),m=cl(),b=Cye(x),_=(m?{previous:v.next||s.next||a$,next:v.previous||s.previous||n$,last:v.first||s.first||Ex,first:v.last||s.last||Ox}:{previous:v.previous||s.previous||n$,next:v.next||s.next||a$,first:v.first||s.first||Ex,last:v.last||s.last||Ox})[g];return g==="start-ellipsis"||g==="end-ellipsis"?R.jsx(Eye,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):R.jsxs(Oye,T({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},S,{children:[g==="page"&&l,_?R.jsx(Pye,{as:_,ownerState:x,className:b.icon}):null]}))}),Tye=Rye,$ye=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],kye=e=>{const{classes:t,variant:r}=e;return qe({root:["root",r],ul:["ul"]},yye,t)},jye=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Iye=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Aye(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Mye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Aye,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=w=>R.jsx(Tye,T({},w)),shape:g="circular",showFirstButton:y=!1,showLastButton:S=!1,siblingCount:x=1,size:m="medium",variant:b="text"}=n,h=Pe(n,$ye),{items:_}=xye(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:g,showFirstButton:y,showLastButton:S,siblingCount:x,size:m,variant:b}),E=kye(C);return R.jsx(jye,T({"aria-label":"pagination navigation",className:ue(E.root,o),ownerState:C,ref:r},h,{children:R.jsx(Iye,{className:E.ul,ownerState:C,children:_.map((w,O)=>R.jsx("li",{children:v(T({},w,{color:i,"aria-label":c(w.type,w.page,w.selected),shape:g,size:m,variant:b}))},O))})}))}),Fye=Mye;function Nye(e){return Ue("MuiSelect",e)}const Lye=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zc=Lye;var o$;const Dye=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Bye=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Zc.select}`]:t.select},{[`&.${Zc.select}`]:t[r.variant]},{[`&.${Zc.error}`]:t.error},{[`&.${Zc.multiple}`]:t.multiple}]}})(B4,{[`&.${Zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zye=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(z4),Vye=ne("input",{shouldForwardProp:e=>a4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function i$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Uye(e){return e==null||typeof e=="string"&&!e.trim()}const Wye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return qe(s,Nye,t)},Hye=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:S,labelId:x,MenuProps:m={},multiple:b,name:h,onBlur:_,onChange:C,onClose:E,onFocus:w,onOpen:O,open:P,readOnly:k,renderValue:j,SelectDisplayProps:$={},tabIndex:F,value:z,variant:M="standard"}=t,W=Pe(t,Dye),[B,U]=Yu({controlled:z,default:f,name:"Select"}),[q,ie]=Yu({controlled:P,default:c,name:"Select"}),oe=d.useRef(null),Ee=d.useRef(null),[pe,Te]=d.useState(null),{current:ye}=d.useRef(P!=null),[be,we]=d.useState(),ve=Jt(r,S),De=d.useCallback(je=>{Ee.current=je,je&&Te(je)},[]),Me=pe==null?void 0:pe.parentNode;d.useImperativeHandle(ve,()=>({focus:()=>{Ee.current.focus()},node:oe.current,value:B}),[B]),d.useEffect(()=>{c&&q&&pe&&!ye&&(we(s?null:Me.clientWidth),Ee.current.focus())},[pe,s]),d.useEffect(()=>{i&&Ee.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const je=wr(Ee.current).getElementById(x);if(je){const Je=()=>{getSelection().isCollapsed&&Ee.current.focus()};return je.addEventListener("click",Je),()=>{je.removeEventListener("click",Je)}}},[x]);const Qe=(je,Je)=>{je?O&&O(Je):E&&E(Je),ye||(we(s?null:Me.clientWidth),ie(je))},Ne=je=>{je.button===0&&(je.preventDefault(),Ee.current.focus(),Qe(!0,je))},Ae=je=>{Qe(!1,je)},He=d.Children.toArray(u),ht=je=>{const Je=He.find(_e=>_e.props.value===je.target.value);Je!==void 0&&(U(Je.props.value),C&&C(je,Je))},ut=je=>Je=>{let _e;if(Je.currentTarget.hasAttribute("tabindex")){if(b){_e=Array.isArray(B)?B.slice():[];const Fe=B.indexOf(je.props.value);Fe===-1?_e.push(je.props.value):_e.splice(Fe,1)}else _e=je.props.value;if(je.props.onClick&&je.props.onClick(Je),B!==_e&&(U(_e),C)){const Fe=Je.nativeEvent||Je,Ge=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ge,"target",{writable:!0,value:{value:_e,name:h}}),C(Ge,je)}b||Qe(!1,Je)}},V=je=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),Qe(!0,je))},K=pe!==null&&q,te=je=>{!K&&_&&(Object.defineProperty(je,"target",{writable:!0,value:{value:B,name:h}}),_(je))};delete W["aria-invalid"];let se,de;const fe=[];let Oe=!1;(pg({value:B})||v)&&(j?se=j(B):Oe=!0);const ae=He.map(je=>{if(!d.isValidElement(je))return null;let Je;if(b){if(!Array.isArray(B))throw new Error(No(2));Je=B.some(_e=>i$(_e,je.props.value)),Je&&Oe&&fe.push(je.props.children)}else Je=i$(B,je.props.value),Je&&Oe&&(de=je.props.children);return d.cloneElement(je,{"aria-selected":Je?"true":"false",onClick:ut(je),onKeyUp:_e=>{_e.key===" "&&_e.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(_e)},role:"option",selected:Je,value:void 0,"data-value":je.props.value})});Oe&&(b?fe.length===0?se=null:se=fe.reduce((je,Je,_e)=>(je.push(Je),_e{const{classes:t}=e;return t},MC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wr(e)&&e!=="variant",slot:"Root"},Xye=ne(A4,MC)(""),Yye=ne(U4,MC)(""),Jye=ne(k4,MC)(""),H4=d.forwardRef(function(t,r){const n=Ke({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Wfe,id:f,input:p,inputProps:v,label:g,labelId:y,MenuProps:S,multiple:x=!1,native:m=!1,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=n,O=Pe(n,Kye),P=m?lye:qye,k=po(),j=Zi({props:n,muiFormControl:k,states:["variant","error"]}),$=j.variant||w,F=T({},n,{variant:$,classes:i}),z=Qye(F),M=Pe(z,Gye),W=p||{standard:R.jsx(Xye,{ownerState:F}),outlined:R.jsx(Yye,{label:g,ownerState:F}),filled:R.jsx(Jye,{ownerState:F})}[$],B=Jt(r,W.ref);return R.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:P,inputProps:T({children:o,error:j.error,IconComponent:c,variant:$,type:void 0,multiple:x},m?{id:f}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:T({id:f},E)},v,{classes:v?Rr(M,v.classes):M},p?p.props.inputProps:{})},(x&&m||l)&&$==="outlined"?{notched:!0}:{},{ref:B,className:ue(W.props.className,s,z.root)},!p&&{variant:$},O))})});H4.muiName="Select";const q4=H4;function Zye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Ss();d.useEffect(()=>{if(!a)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=fn((x,m)=>{n==null||n(x,m)}),u=fn(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});d.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,f=d.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>m=>{const b=x.onBlur;b==null||b(m),f()},v=x=>m=>{const b=x.onFocus;b==null||b(m),c()},g=x=>m=>{const b=x.onMouseEnter;b==null||b(m),c()},y=x=>m=>{const b=x.onMouseLeave;b==null||b(m),f()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,a,f,c]),{getRootProps:(x={})=>{const m=T({},lg(e),lg(x));return T({role:"presentation"},x,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:g(m),onMouseLeave:y(m)})},onClickAway:l}}function ebe(e){return Ue("MuiSnackbarContent",e)}We("MuiSnackbarContent",["root","message","action"]);const tbe=["action","className","message","role"],rbe=e=>{const{classes:t}=e;return qe({root:["root"],action:["action"],message:["message"]},ebe,t)},nbe=ne(Yi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Tle(e.palette.background.default,t);return T({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),abe=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),obe=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),ibe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Pe(n,tbe),l=n,c=rbe(l);return R.jsxs(nbe,T({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[R.jsx(abe,{className:c.message,ownerState:l,children:i}),a?R.jsx(obe,{className:c.action,ownerState:l,children:a}):null]}))}),sbe=ibe;function lbe(e){return Ue("MuiSnackbar",e)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ube=["onEnter","onExited"],cbe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],dbe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ge(r.vertical)}${ge(r.horizontal)}`]};return qe(n,lbe,t)},s$=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ge(r.anchorOrigin.vertical)}${ge(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return T({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:T({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),fbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbar"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:g=!1,message:y,open:S,TransitionComponent:x=mg,transitionDuration:m=o,TransitionProps:{onEnter:b,onExited:h}={}}=n,_=Pe(n.TransitionProps,ube),C=Pe(n,cbe),E=T({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),w=dbe(E),{getRootProps:O,onClickAway:P}=Zye(T({},E)),[k,j]=d.useState(!0),$=fa({elementType:s$,getSlotProps:O,externalForwardedProps:C,ownerState:E,additionalProps:{ref:r},className:[w.root,f]}),F=M=>{j(!0),h&&h(M)},z=(M,W)=>{j(!1),b&&b(M,W)};return!S&&k?null:R.jsx(mhe,T({onClickAway:P},p,{children:R.jsx(s$,T({},$,{children:R.jsx(x,T({appear:!0,in:S,timeout:m,direction:s==="top"?"down":"up",onEnter:z,onExited:F},_,{children:c||R.jsx(sbe,T({message:y,action:i},v))}))}))}))}),pbe=fbe;function hbe(e){return Ue("MuiTooltip",e)}const vbe=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_i=vbe,gbe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function mbe(e){return Math.round(e*1e5)/1e5}const ybe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${ge(o.split("-")[0])}`],arrow:["arrow"]};return qe(i,hbe,t)},bbe=ne(y4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_i.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_i.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_i.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${_i.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xbe=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ge(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${mbe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_i.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_i.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_i.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_i.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wbe=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ch=!1;const l$=new hp;let ed={x:0,y:0};function dh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Sbe=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_;const C=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:w,components:O={},componentsProps:P={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:$=!1,disableInteractive:F=!1,disableTouchListener:z=!1,enterDelay:M=100,enterNextDelay:W=0,enterTouchDelay:B=700,followCursor:U=!1,id:q,leaveDelay:ie=0,leaveTouchDelay:oe=1500,onClose:Ee,onOpen:pe,open:Te,placement:ye="bottom",PopperComponent:be,PopperProps:we={},slotProps:ve={},slots:De={},title:Me,TransitionComponent:Qe=mg,TransitionProps:Ne}=C,Ae=Pe(C,gbe),He=d.isValidElement(w)?w:R.jsx("span",{children:w}),ht=fo(),ut=cl(),[V,K]=d.useState(),[te,se]=d.useState(null),de=d.useRef(!1),fe=F||U,Oe=Ss(),ae=Ss(),Z=Ss(),G=Ss(),[le,he]=Yu({controlled:Te,default:!1,name:"Tooltip",state:"open"});let Re=le;const Be=el(q),Ye=d.useRef(),je=fn(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),G.clear()});d.useEffect(()=>je,[je]);const Je=Y=>{l$.clear(),ch=!0,he(!0),pe&&!Re&&pe(Y)},_e=fn(Y=>{l$.start(800+ie,()=>{ch=!1}),he(!1),Ee&&Re&&Ee(Y),Oe.start(ht.transitions.duration.shortest,()=>{de.current=!1})}),Fe=Y=>{de.current&&Y.type!=="touchstart"||(V&&V.removeAttribute("title"),ae.clear(),Z.clear(),M||ch&&W?ae.start(ch?W:M,()=>{Je(Y)}):Je(Y))},Ge=Y=>{ae.clear(),Z.start(ie,()=>{_e(Y)})},{isFocusVisibleRef:nt,onBlur:mt,onFocus:Ot,ref:kt}=Cy(),[,Pt]=d.useState(!1),at=Y=>{mt(Y),nt.current===!1&&(Pt(!1),Ge(Y))},It=Y=>{V||K(Y.currentTarget),Ot(Y),nt.current===!0&&(Pt(!0),Fe(Y))},nr=Y=>{de.current=!0;const Q=He.props;Q.onTouchStart&&Q.onTouchStart(Y)},mn=Y=>{nr(Y),Z.clear(),Oe.clear(),je(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(B,()=>{document.body.style.WebkitUserSelect=Ye.current,Fe(Y)})},qr=Y=>{He.props.onTouchEnd&&He.props.onTouchEnd(Y),je(),Z.start(oe,()=>{_e(Y)})};d.useEffect(()=>{if(!Re)return;function Y(Q){(Q.key==="Escape"||Q.key==="Esc")&&_e(Q)}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[_e,Re]);const Nr=Jt(He.ref,kt,K,r);!Me&&Me!==0&&(Re=!1);const Tr=d.useRef(),Mn=Y=>{const Q=He.props;Q.onMouseMove&&Q.onMouseMove(Y),ed={x:Y.clientX,y:Y.clientY},Tr.current&&Tr.current.update()},Kr={},Ko=typeof Me=="string";k?(Kr.title=!Re&&Ko&&!$?Me:null,Kr["aria-describedby"]=Re?Be:null):(Kr["aria-label"]=Ko?Me:null,Kr["aria-labelledby"]=Re&&!Ko?Be:null);const $r=T({},Kr,Ae,He.props,{className:ue(Ae.className,He.props.className),onTouchStart:nr,ref:Nr},U?{onMouseMove:Mn}:{}),ho={};z||($r.onTouchStart=mn,$r.onTouchEnd=qr),$||($r.onMouseOver=dh(Fe,$r.onMouseOver),$r.onMouseLeave=dh(Ge,$r.onMouseLeave),fe||(ho.onMouseOver=Fe,ho.onMouseLeave=Ge)),j||($r.onFocus=dh(It,$r.onFocus),$r.onBlur=dh(at,$r.onBlur),fe||(ho.onFocus=It,ho.onBlur=at));const X=d.useMemo(()=>{var Y;let Q=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Y=we.popperOptions)!=null&&Y.modifiers&&(Q=Q.concat(we.popperOptions.modifiers)),T({},we.popperOptions,{modifiers:Q})},[te,we]),ee=T({},C,{isRtl:ut,arrow:E,disableInteractive:fe,placement:ye,PopperComponentProp:be,touch:de.current}),ce=ybe(ee),Ce=(n=(a=De.popper)!=null?a:O.Popper)!=null?n:bbe,N=(o=(i=(s=De.transition)!=null?s:O.Transition)!=null?i:Qe)!=null?o:mg,D=(u=(l=De.tooltip)!=null?l:O.Tooltip)!=null?u:xbe,I=(c=(f=De.arrow)!=null?f:O.Arrow)!=null?c:wbe,A=Jl(Ce,T({},we,(p=ve.popper)!=null?p:P.popper,{className:ue(ce.popper,we==null?void 0:we.className,(v=(g=ve.popper)!=null?g:P.popper)==null?void 0:v.className)}),ee),L=Jl(N,T({},Ne,(y=ve.transition)!=null?y:P.transition),ee),H=Jl(D,T({},(S=ve.tooltip)!=null?S:P.tooltip,{className:ue(ce.tooltip,(x=(m=ve.tooltip)!=null?m:P.tooltip)==null?void 0:x.className)}),ee),re=Jl(I,T({},(b=ve.arrow)!=null?b:P.arrow,{className:ue(ce.arrow,(h=(_=ve.arrow)!=null?_:P.arrow)==null?void 0:h.className)}),ee);return R.jsxs(d.Fragment,{children:[d.cloneElement(He,$r),R.jsx(Ce,T({as:be??y4,placement:ye,anchorEl:U?{getBoundingClientRect:()=>({top:ed.y,left:ed.x,right:ed.x,bottom:ed.y,width:0,height:0})}:V,popperRef:Tr,open:V?Re:!1,id:Be,transition:!0},ho,A,{popperOptions:X,children:({TransitionProps:Y})=>R.jsx(N,T({timeout:ht.transitions.duration.shorter},Y,L,{children:R.jsxs(D,T({},H,{children:[Me,E?R.jsx(I,T({},re,{ref:se})):null]}))}))}))]})}),kn=Sbe;function _be(e){return Ue("MuiSwitch",e)}const Cbe=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),on=Cbe,Ebe=["className","color","edge","size","sx"],Obe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,s={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qe(s,_be,t);return T({},t,u)},Pbe=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),Rbe=ne(_4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fC(e.palette[t].main,.62):dC(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Tbe=ne("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),$be=ne("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),kbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:s="medium",sx:u}=n,l=Pe(n,Ebe),c=T({},n,{color:o,edge:i,size:s}),f=Obe(c),p=R.jsx($be,{className:f.thumb,ownerState:c});return R.jsxs(Pbe,{className:ue(f.root,a),sx:u,ownerState:c,children:[R.jsx(Rbe,T({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:c},l,{classes:T({},f,{root:f.switchBase})})),R.jsx(Tbe,{className:f.track,ownerState:c})]})}),jbe=kbe;function Ibe(e){return Ue("MuiTab",e)}const Abe=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Zo=Abe,Mbe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Fbe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:s,disabled:u}=e,l={root:["root",o&&i&&"labelIcon",`textColor${ge(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return qe(l,Ibe,t)},Nbe=ne(Ma,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ge(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Zo.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Zo.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Zo.selected}`]:{opacity:1},[`&.${Zo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Lbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:y,selectionFollowsFocus:S,textColor:x="inherit",value:m,wrapped:b=!1}=n,h=Pe(n,Mbe),_=T({},n,{disabled:o,disableFocusRipple:i,selected:y,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=Fbe(_),E=u&&f&&d.isValidElement(u)?d.cloneElement(u,{className:ue(C.iconWrapper,u.props.className)}):u,w=P=>{!y&&p&&p(P,m),v&&v(P)},O=P=>{S&&!y&&p&&p(P,m),g&&g(P)};return R.jsxs(Nbe,T({focusRipple:!i,className:ue(C.root,a),ref:r,role:"tab","aria-selected":y,disabled:o,onClick:w,onFocus:O,ownerState:_,tabIndex:y?0:-1},h,{children:[l==="top"||l==="start"?R.jsxs(d.Fragment,{children:[E,f]}):R.jsxs(d.Fragment,{children:[f,E]}),c]}))}),Dbe=Lbe,Bbe=d.createContext(),K4=Bbe;function zbe(e){return Ue("MuiTable",e)}We("MuiTable",["root","stickyHeader"]);const Vbe=["className","component","padding","size","stickyHeader"],Ube=e=>{const{classes:t,stickyHeader:r}=e;return qe({root:["root",r&&"stickyHeader"]},zbe,t)},Wbe=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),u$="table",Hbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTable"}),{className:a,component:o=u$,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Pe(n,Vbe),c=T({},n,{component:o,padding:i,size:s,stickyHeader:u}),f=Ube(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return R.jsx(K4.Provider,{value:p,children:R.jsx(Wbe,T({as:o,role:o===u$?null:"table",ref:r,className:ue(f.root,a),ownerState:c},l))})}),G4=Hbe,qbe=d.createContext(),Ly=qbe;function Kbe(e){return Ue("MuiTableBody",e)}We("MuiTableBody",["root"]);const Gbe=["className","component"],Qbe=e=>{const{classes:t}=e;return qe({root:["root"]},Kbe,t)},Xbe=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ybe={variant:"body"},c$="tbody",Jbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableBody"}),{className:a,component:o=c$}=n,i=Pe(n,Gbe),s=T({},n,{component:o}),u=Qbe(s);return R.jsx(Ly.Provider,{value:Ybe,children:R.jsx(Xbe,T({className:ue(u.root,a),as:o,ref:r,role:o===c$?null:"rowgroup",ownerState:s},i))})}),Q4=Jbe;function Zbe(e){return Ue("MuiTableCell",e)}const e0e=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),t0e=e0e,r0e=["align","className","component","padding","scope","size","sortDirection","variant"],n0e=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,a!=="normal"&&`padding${ge(a)}`,`size${ge(o)}`]};return qe(s,Zbe,t)},a0e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.padding!=="normal"&&t[`padding${ge(r.padding)}`],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?fC(gt(e.palette.divider,1),.88):dC(gt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${t0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),o0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=Pe(n,r0e),v=d.useContext(K4),g=d.useContext(Ly),y=g&&g.variant==="head";let S;i?S=i:S=y?"th":"td";let x=u;S==="td"?x=void 0:!x&&y&&(x="col");const m=f||g&&g.variant,b=T({},n,{align:a,component:S,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),h=n0e(b);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),R.jsx(a0e,T({as:S,ref:r,className:ue(h.root,o),"aria-sort":_,scope:x,ownerState:b},p))}),en=o0e;function i0e(e){return Ue("MuiTableHead",e)}We("MuiTableHead",["root"]);const s0e=["className","component"],l0e=e=>{const{classes:t}=e;return qe({root:["root"]},i0e,t)},u0e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),c0e={variant:"head"},d$="thead",d0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableHead"}),{className:a,component:o=d$}=n,i=Pe(n,s0e),s=T({},n,{component:o}),u=l0e(s);return R.jsx(Ly.Provider,{value:c0e,children:R.jsx(u0e,T({as:o,className:ue(u.root,a),ref:r,role:o===d$?null:"rowgroup",ownerState:s},i))})}),X4=d0e;function f0e(e){return Ue("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const p0e=["className","component","disableGutters","variant"],h0e=e=>{const{classes:t,disableGutters:r,variant:n}=e;return qe({root:["root",!r&&"gutters",n]},f0e,t)},v0e=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),g0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Pe(n,p0e),l=T({},n,{component:o,disableGutters:i,variant:s}),c=h0e(l);return R.jsx(v0e,T({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),jc=g0e,Y4=An(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),J4=An(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),m0e=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],y0e=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:S,page:x,rowsPerPage:m,showFirstButton:b,showLastButton:h,slots:_={},slotProps:C={}}=t,E=Pe(t,m0e),w=cl(),O=ve=>{S(ve,0)},P=ve=>{S(ve,x-1)},k=ve=>{S(ve,x+1)},j=ve=>{S(ve,Math.max(0,Math.ceil(p/m)-1))},$=(n=_.firstButton)!=null?n:Pr,F=(a=_.lastButton)!=null?a:Pr,z=(o=_.nextButton)!=null?o:Pr,M=(i=_.previousButton)!=null?i:Pr,W=(s=_.firstButtonIcon)!=null?s:Ex,B=(u=_.lastButtonIcon)!=null?u:Ox,U=(l=_.nextButtonIcon)!=null?l:J4,q=(c=_.previousButtonIcon)!=null?c:Y4,ie=w?F:$,oe=w?z:M,Ee=w?M:z,pe=w?$:F,Te=w?C.lastButton:C.firstButton,ye=w?C.nextButton:C.previousButton,be=w?C.previousButton:C.nextButton,we=w?C.firstButton:C.lastButton;return R.jsxs("div",T({ref:r},E,{children:[b&&R.jsx(ie,T({onClick:O,disabled:v||x===0,"aria-label":g("first",x),title:g("first",x)},Te,{children:w?R.jsx(B,T({},C.lastButtonIcon)):R.jsx(W,T({},C.firstButtonIcon))})),R.jsx(oe,T({onClick:P,disabled:v||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},ye??f,{children:w?R.jsx(U,T({},C.nextButtonIcon)):R.jsx(q,T({},C.previousButtonIcon))})),R.jsx(Ee,T({onClick:k,disabled:v||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},be??y,{children:w?R.jsx(q,T({},C.previousButtonIcon)):R.jsx(U,T({},C.nextButtonIcon))})),h&&R.jsx(pe,T({onClick:j,disabled:v||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},we,{children:w?R.jsx(W,T({},C.firstButtonIcon)):R.jsx(B,T({},C.lastButtonIcon))}))]}))}),b0e=y0e;function x0e(e){return Ue("MuiTablePagination",e)}const w0e=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Dd=w0e;var f$;const S0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_0e=ne(en,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),C0e=ne(jc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Dd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Dd.actions}`]:{flexShrink:0,marginLeft:20}})),E0e=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),O0e=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),P0e=ne(q4,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Dd.selectIcon}`]:t.selectIcon,[`& .${Dd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Dd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),R0e=ne(Ta,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),T0e=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function $0e({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function k0e(e){return`Go to ${e} page`}const j0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},x0e,t)},I0e=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=b0e,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:f=!1,getItemAriaLabel:p=k0e,labelDisplayedRows:v=$0e,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:S,onRowsPerPageChange:x,page:m,rowsPerPage:b,rowsPerPageOptions:h=[10,25,50,100],SelectProps:_={},showFirstButton:C=!1,showLastButton:E=!1,slotProps:w={},slots:O={}}=a,P=Pe(a,S0e),k=a,j=j0e(k),$=(n=w==null?void 0:w.select)!=null?n:_,F=$.native?"option":R0e;let z;(l===en||l==="td")&&(z=u||1e3);const M=el($.id),W=el($.labelId),B=()=>c===-1?(m+1)*b:b===-1?c:Math.min(c,(m+1)*b);return R.jsx(_0e,T({colSpan:z,ref:r,as:l,ownerState:k,className:ue(j.root,s)},P,{children:R.jsxs(C0e,{className:j.toolbar,children:[R.jsx(E0e,{className:j.spacer}),h.length>1&&R.jsx(O0e,{className:j.selectLabel,id:W,children:g}),h.length>1&&R.jsx(P0e,T({variant:"standard"},!$.variant&&{input:f$||(f$=R.jsx(Ay,{}))},{value:b,onChange:x,id:M,labelId:W},$,{classes:T({},$.classes,{root:ue(j.input,j.selectRoot,($.classes||{}).root),select:ue(j.select,($.classes||{}).select),icon:ue(j.selectIcon,($.classes||{}).icon)}),disabled:f,children:h.map(U=>d.createElement(F,T({},!Rf(F)&&{ownerState:k},{className:j.menuItem,key:U.label?U.label:U,value:U.value?U.value:U}),U.label?U.label:U))})),R.jsx(T0e,{className:j.displayedRows,children:v({from:c===0?0:m*b+1,to:B(),count:c===-1?-1:c,page:m})}),R.jsx(o,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:S,page:m,rowsPerPage:b,showFirstButton:C,showLastButton:E,slotProps:w.actions,slots:O.actions,getItemAriaLabel:p,disabled:f})]})}))}),p$=I0e;function A0e(e){return Ue("MuiTableRow",e)}const M0e=We("MuiTableRow",["root","selected","hover","head","footer"]),h$=M0e,F0e=["className","component","hover","selected"],N0e=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return qe({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},A0e,t)},L0e=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h$.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),v$="tr",D0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableRow"}),{className:a,component:o=v$,hover:i=!1,selected:s=!1}=n,u=Pe(n,F0e),l=d.useContext(Ly),c=T({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=N0e(c);return R.jsx(L0e,T({as:o,ref:r,className:ue(f.root,a),role:o===v$?null:"row",ownerState:c},u))}),If=D0e,B0e=An(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function z0e(e){return Ue("MuiTableSortLabel",e)}const V0e=We("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),u0=V0e,U0e=["active","children","className","direction","hideSortIcon","IconComponent"],W0e=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${ge(r)}`]};return qe(a,z0e,t)},H0e=ne(Ma,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${u0.icon}`]:{opacity:.5}},[`&.${u0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${u0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),q0e=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ge(r.direction)}`]]}})(({theme:e,ownerState:t})=>T({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),K0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=B0e}=n,c=Pe(n,U0e),f=T({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=W0e(f);return R.jsxs(H0e,T({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[o,u&&!a?null:R.jsx(q0e,{as:l,className:ue(p.icon),ownerState:f})]}))}),G0e=K0e;function Q0e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function X0e(e,t,r,n={},a=()=>{}){const{ease:o=Q0e,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const c=()=>{l=!0},f=p=>{if(l){a(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=o(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(f)};return u===r?(a(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Y0e=["onChange"],J0e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Z0e(e){const{onChange:t}=e,r=Pe(e,Y0e),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qn(()=>{const i=Rc(()=>{const u=n.current;o(),u!==n.current&&t(n.current)}),s=da(a.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),R.jsx("div",T({style:J0e,ref:a},r))}function e1e(e){return Ue("MuiTabScrollButton",e)}const t1e=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),r1e=t1e,n1e=["className","slots","slotProps","direction","orientation","disabled"],a1e=e=>{const{classes:t,orientation:r,disabled:n}=e;return qe({root:["root",r,n&&"disabled"]},e1e,t)},o1e=ne(Ma,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${r1e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),i1e=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=o,c=Pe(o,n1e),f=cl(),p=T({isRtl:f},o),v=a1e(p),g=(n=s.StartScrollButtonIcon)!=null?n:Y4,y=(a=s.EndScrollButtonIcon)!=null?a:J4,S=fa({elementType:g,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),x=fa({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return R.jsx(o1e,T({component:"div",className:ue(v.root,i),ref:r,role:null,ownerState:p,tabIndex:null},c,{children:l==="left"?R.jsx(g,T({},S)):R.jsx(y,T({},x))}))}),s1e=i1e;function l1e(e){return Ue("MuiTabs",e)}const u1e=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),c0=u1e,c1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],g$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,m$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fh=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},d1e=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},l1e,u)},f1e=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${c0.scrollButtons}`]:t.scrollButtons},{[`& .${c0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${c0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),p1e=ne("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),h1e=ne("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),v1e=ne("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),g1e=ne(Z0e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),y$={},m1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTabs"}),a=fo(),o=cl(),{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:x=s1e,scrollButtons:m="auto",selectionFollowsFocus:b,slots:h={},slotProps:_={},TabIndicatorProps:C={},TabScrollButtonProps:E={},textColor:w="primary",value:O,variant:P="standard",visibleScrollbar:k=!1}=n,j=Pe(n,c1e),$=P==="scrollable",F=S==="vertical",z=F?"scrollTop":"scrollLeft",M=F?"top":"left",W=F?"bottom":"right",B=F?"clientHeight":"clientWidth",U=F?"height":"width",q=T({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:S,vertical:F,scrollButtons:m,textColor:w,variant:P,visibleScrollbar:k,fixed:!$,hideScrollbar:$&&!k,scrollableX:$&&!F,scrollableY:$&&F,centered:l&&!$,scrollButtonsHideMobile:!v}),ie=d1e(q),oe=fa({elementType:h.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:q}),Ee=fa({elementType:h.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:q}),[pe,Te]=d.useState(!1),[ye,be]=d.useState(y$),[we,ve]=d.useState(!1),[De,Me]=d.useState(!1),[Qe,Ne]=d.useState(!1),[Ae,He]=d.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ut=d.useRef(null),V=d.useRef(null),K=()=>{const _e=ut.current;let Fe;if(_e){const nt=_e.getBoundingClientRect();Fe={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollLeftNormalized:ale(_e,o?"rtl":"ltr"),scrollWidth:_e.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let Ge;if(_e&&O!==!1){const nt=V.current.children;if(nt.length>0){const mt=nt[ht.get(O)];Ge=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ge}},te=fn(()=>{const{tabsMeta:_e,tabMeta:Fe}=K();let Ge=0,nt;if(F)nt="top",Fe&&_e&&(Ge=Fe.top-_e.top+_e.scrollTop);else if(nt=o?"right":"left",Fe&&_e){const Ot=o?_e.scrollLeftNormalized+_e.clientWidth-_e.scrollWidth:_e.scrollLeft;Ge=(o?-1:1)*(Fe[nt]-_e[nt]+Ot)}const mt={[nt]:Ge,[U]:Fe?Fe[U]:0};if(isNaN(ye[nt])||isNaN(ye[U]))be(mt);else{const Ot=Math.abs(ye[nt]-mt[nt]),kt=Math.abs(ye[U]-mt[U]);(Ot>=1||kt>=1)&&be(mt)}}),se=(_e,{animation:Fe=!0}={})=>{Fe?X0e(z,ut.current,_e,{duration:a.transitions.duration.standard}):ut.current[z]=_e},de=_e=>{let Fe=ut.current[z];F?Fe+=_e:(Fe+=_e*(o?-1:1),Fe*=o&&VF()==="reverse"?-1:1),se(Fe)},fe=()=>{const _e=ut.current[B];let Fe=0;const Ge=Array.from(V.current.children);for(let nt=0;nt_e){nt===0&&(Fe=_e);break}Fe+=mt[B]}return Fe},Oe=()=>{de(-1*fe())},ae=()=>{de(fe())},Z=d.useCallback(_e=>{He({overflow:null,scrollbarWidth:_e})},[]),G=()=>{const _e={};_e.scrollbarSizeListener=$?R.jsx(g1e,{onChange:Z,className:ue(ie.scrollableX,ie.hideScrollbar)}):null;const Ge=$&&(m==="auto"&&(we||De)||m===!0);return _e.scrollButtonStart=Ge?R.jsx(x,T({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:S,direction:o?"right":"left",onClick:Oe,disabled:!we},E,{className:ue(ie.scrollButtons,E.className)})):null,_e.scrollButtonEnd=Ge?R.jsx(x,T({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:S,direction:o?"left":"right",onClick:ae,disabled:!De},E,{className:ue(ie.scrollButtons,E.className)})):null,_e},le=fn(_e=>{const{tabsMeta:Fe,tabMeta:Ge}=K();if(!(!Ge||!Fe)){if(Ge[M]Fe[W]){const nt=Fe[z]+(Ge[W]-Fe[W]);se(nt,{animation:_e})}}}),he=fn(()=>{$&&m!==!1&&Ne(!Qe)});d.useEffect(()=>{const _e=Rc(()=>{ut.current&&te()});let Fe;const Ge=Ot=>{Ot.forEach(kt=>{kt.removedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.unobserve(Pt)}),kt.addedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.observe(Pt)})}),_e(),he()},nt=da(ut.current);nt.addEventListener("resize",_e);let mt;return typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(_e),Array.from(V.current.children).forEach(Ot=>{Fe.observe(Ot)})),typeof MutationObserver<"u"&&(mt=new MutationObserver(Ge),mt.observe(V.current,{childList:!0})),()=>{var Ot,kt;_e.clear(),nt.removeEventListener("resize",_e),(Ot=mt)==null||Ot.disconnect(),(kt=Fe)==null||kt.disconnect()}},[te,he]),d.useEffect(()=>{const _e=Array.from(V.current.children),Fe=_e.length;if(typeof IntersectionObserver<"u"&&Fe>0&&$&&m!==!1){const Ge=_e[0],nt=_e[Fe-1],mt={root:ut.current,threshold:.99},Ot=It=>{ve(!It[0].isIntersecting)},kt=new IntersectionObserver(Ot,mt);kt.observe(Ge);const Pt=It=>{Me(!It[0].isIntersecting)},at=new IntersectionObserver(Pt,mt);return at.observe(nt),()=>{kt.disconnect(),at.disconnect()}}},[$,m,Qe,c==null?void 0:c.length]),d.useEffect(()=>{Te(!0)},[]),d.useEffect(()=>{te()}),d.useEffect(()=>{le(y$!==ye)},[le,ye]),d.useImperativeHandle(u,()=>({updateIndicator:te,updateScrollButtons:he}),[te,he]);const Re=R.jsx(v1e,T({},C,{className:ue(ie.indicator,C.className),ownerState:q,style:T({},ye,C.style)}));let Be=0;const Ye=d.Children.map(c,_e=>{if(!d.isValidElement(_e))return null;const Fe=_e.props.value===void 0?Be:_e.props.value;ht.set(Fe,Be);const Ge=Fe===O;return Be+=1,d.cloneElement(_e,T({fullWidth:P==="fullWidth",indicator:Ge&&!pe&&Re,selected:Ge,selectionFollowsFocus:b,onChange:y,textColor:w,value:Fe},Be===1&&O===!1&&!_e.props.tabIndex?{tabIndex:0}:{}))}),je=_e=>{const Fe=V.current,Ge=wr(Fe).activeElement;if(Ge.getAttribute("role")!=="tab")return;let mt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(mt="ArrowRight",Ot="ArrowLeft"),_e.key){case mt:_e.preventDefault(),fh(Fe,Ge,m$);break;case Ot:_e.preventDefault(),fh(Fe,Ge,g$);break;case"Home":_e.preventDefault(),fh(Fe,null,g$);break;case"End":_e.preventDefault(),fh(Fe,null,m$);break}},Je=G();return R.jsxs(f1e,T({className:ue(ie.root,f),ownerState:q,ref:r,as:p},j,{children:[Je.scrollButtonStart,Je.scrollbarSizeListener,R.jsxs(p1e,{className:ie.scroller,ownerState:q,style:{overflow:Ae.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:k?void 0:-Ae.scrollbarWidth},ref:ut,children:[R.jsx(h1e,{"aria-label":i,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,className:ie.flexContainer,ownerState:q,onKeyDown:je,ref:V,role:"tablist",children:Ye}),pe&&Re]}),Je.scrollButtonEnd]}))}),y1e=m1e;function b1e(e){return Ue("MuiTextField",e)}We("MuiTextField",["root"]);const x1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],w1e={standard:A4,filled:k4,outlined:U4},S1e=e=>{const{classes:t}=e;return qe({root:["root"]},b1e,t)},_1e=ne(age,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:S,inputProps:x,InputProps:m,inputRef:b,label:h,maxRows:_,minRows:C,multiline:E=!1,name:w,onBlur:O,onChange:P,onFocus:k,placeholder:j,required:$=!1,rows:F,select:z=!1,SelectProps:M,type:W,value:B,variant:U="outlined"}=n,q=Pe(n,x1e),ie=T({},n,{autoFocus:o,color:u,disabled:c,error:f,fullWidth:v,multiline:E,required:$,select:z,variant:U}),oe=S1e(ie),Ee={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(Ee.notched=S.shrink),Ee.label=h),z&&((!M||!M.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const pe=el(y),Te=g&&pe?`${pe}-helper-text`:void 0,ye=h&&pe?`${pe}-label`:void 0,be=w1e[U],we=R.jsx(be,T({"aria-describedby":Te,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:v,multiline:E,name:w,rows:F,maxRows:_,minRows:C,type:W,value:B,id:pe,inputRef:b,onBlur:O,onChange:P,onFocus:k,placeholder:j,inputProps:x},Ee,m));return R.jsxs(_1e,T({className:ue(oe.root,s),disabled:c,error:f,fullWidth:v,ref:r,required:$,color:u,variant:U,ownerState:ie},q,{children:[h!=null&&h!==""&&R.jsx(Jge,T({htmlFor:pe,id:ye},S,{children:h})),z?R.jsx(q4,T({"aria-describedby":Te,id:pe,labelId:ye,value:B,input:we},M,{children:i})):we,g&&R.jsx(IC,T({id:Te},p,{children:g}))]}))}),yp=C1e,E1e=["getTrigger","target"];function O1e(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const P1e=typeof window<"u"?window:null;function Z4(e={}){const{getTrigger:t=O1e,target:r=P1e}=e,n=Pe(e,E1e),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const s=()=>{i(t(a,T({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var FC={},d0={};const R1e=Do(Uue);var b$;function ct(){return b$||(b$=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=R1e}(d0)),d0}var T1e=it;Object.defineProperty(FC,"__esModule",{value:!0});var Dy=FC.default=void 0,$1e=T1e(ct()),k1e=R;Dy=FC.default=(0,$1e.default)((0,k1e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Bd=globalThis&&globalThis.__assign||function(){return Bd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(HSe,null):null,t&&d.createElement(Nxe,null),d.createElement(uxe,null))},Bxe=d.createElement(Dxe,null),zxe=d.createElement(UC,null),ss="RaAppBar",Es={appBar:"".concat(ss,"-appBar"),toolbar:"".concat(ss,"-toolbar"),menuButton:"".concat(ss,"-menuButton"),menuButtonIconClosed:"".concat(ss,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ss,"-menuButtonIconOpen"),title:"".concat(ss,"-title")},Vxe=ne(Uce,{name:ss,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Es.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Es.menuButton)]={marginRight:"0.2em"},t["& .".concat(Es.title)]={},t}),qC={},Uxe=it;Object.defineProperty(qC,"__esModule",{value:!0});var Vy=qC.default=void 0,Wxe=Uxe(ct()),Hxe=R;Vy=qC.default=(0,Wxe.default)((0,Hxe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var KC={},qxe=it;Object.defineProperty(KC,"__esModule",{value:!0});var g5=KC.default=void 0,Kxe=qxe(ct()),Gxe=R;g5=KC.default=(0,Kxe.default)((0,Gxe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Vd=globalThis&&globalThis.__assign||function(){return Vd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?d.createElement(w5,Eg({title:r,defaultTitle:t},a)):d.createElement(Rwe,Eg({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,tp.createPortal(u,i))},Lx=globalThis&&globalThis.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=c_e(S===!1||S===void 0?void 0:!S,l||!O||E||w);q_(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var k=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){var z;return C$(this,function(M){switch(M.label){case 0:return h!=null&&h.save?[4,h.save(F,Hd(Hd({},u),{transform:p}))]:[3,2];case 1:z=M.sent(),M.label=2;case 2:return z!=null&&y3(z,b.setError),[2]}})})},[b.setError,h,u,p]),j=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){return C$(this,function(z){switch(z.label){case 0:return s&&s(F),F.defaultPrevented?[2]:f!=="button"?[3,2]:(F.stopPropagation(),[4,b.handleSubmit(k)(F)]);case 1:z.sent(),z.label=2;case 2:return[2]}})})},[s,f,b,k]),$=i&&m(i,{_:i});return d.createElement(u_e,Hd({variant:g,type:f,color:r,"aria-label":$,disabled:P,onClick:j},x),w?d.createElement(kc,{sx:i_e,size:14,thickness:3,color:"inherit"}):a,$)},i_e={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},s_e=d.createElement(W5,null),l_e="RaSaveButton",u_e=ne(hn,{name:l_e,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),c_e=function(e,t){return typeof e>"u"?t:e},d_e=function(){return ke.createElement(p_e,{onClick:h_e,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},f_e="RaSkipNavigationButton",p_e=ne(Hr,{name:f_e,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),h_e=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jx=globalThis&&globalThis.__assign||function(){return Jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var h=X5(),_=et(),C=_r(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var E=Nt(e),w=Wo(e),O=w.hasShow||w.hasEdit;if(!E)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var P=(!h||!h.isRowExpandable||h.isRowExpandable(C))&&i,k=Jte(E,f,h&&h.expandSingle),j=k[0],$=k[1],F=d.useState(function(){return E$(P,a,u)}),z=F[0],M=F[1];d.useEffect(function(){var oe=E$(P,a,u);oe!==z&&M(oe)},[P,z,a,u]);var W=lo(),B=d.useCallback(function(oe){$(),oe.stopPropagation()},[$]),U=d.useCallback(function(oe){!m||!p||(p(f,oe),oe.stopPropagation())},[f,p,m]),q=Ene(),ie=d.useCallback(function(oe){return B_e(void 0,void 0,void 0,function(){var Ee;return z_e(this,function(pe){switch(pe.label){case 0:return oe.persist(),[4,q({record:C,resource:E,link:typeof v=="function"?function(Te,ye){return v(Te.id,ye,Te)}:v})];case 1:return Ee=pe.sent(),v==="expand"?(B(oe),[2]):v==="toggleSelection"?(U(oe),[2]):Ee===!1||Ee==null?[2]:(W(Ee,{state:{_scrollToTop:!0}}),[2])}})})},[C,E,v,W,B,U,q]);return ke.createElement(ke.Fragment,null,ke.createElement(If,ow({ref:t,className:ue(o,(r={},r[rt.expandable]=P,r[rt.selectable]=m,r[rt.clickableRow]=v??O,r)),key:f,style:S,hover:c,onClick:ie},b),i&&ke.createElement(en,{padding:"none",className:rt.expandIconCell},P&&ke.createElement(D_e,{className:ue(rt.expandIcon,(n={},n[rt.expanded]=j,n)),expanded:j,onClick:B,expandContentId:"".concat(f,"-expand")})),u&&ke.createElement(en,{padding:"checkbox"},ke.createElement(vg,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(rt.checkbox),checked:m&&y,onClick:U,disabled:!m})),ke.Children.map(a,function(oe,Ee){return d.isValidElement(oe)?ke.createElement(F_e,{key:"".concat(f,"-").concat(oe.props.source||Ee),className:ue("column-".concat(oe.props.source),rt.rowCell),record:C,field:oe,resource:E}):null})),P&&j&&ke.createElement(If,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:rt.expandedPanel},ke.createElement(en,{colSpan:z},d.isValidElement(i)?i:d.createElement(i))))}),V_e=function(e,t){e.children,e.expand;var r=iw(e,["children","expand"]);t.children,t.expand;var n=iw(t,["children","expand"]);return gM(r,n)},J5=d.memo(Y5,V_e);J5.displayName="PureDatagridRow";const U_e=Y5;var Fg=globalThis&&globalThis.__assign||function(){return Fg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=uCe&&(o=lCe,i=!1,t=new nCe(t));e:for(;++a0&&b.length>0&&b.every(function(h){return v.includes(h)}),onChange:m,onClick:function(h){return h.stopPropagation()}})),d.Children.map(t,function(h,_){return d.isValidElement(h)?d.createElement(X_e,{className:ue(rt.headerCell,"column-".concat(h.props.source)),sort:c,field:h,isSorting:(c==null?void 0:c.field)===(h.props.sortBy||h.props.source),key:h.props.source||_,updateSort:x||void 0}):null})))};tN.displayName="DatagridHeader";var xCe=function(e){var t=e.children,r=e.value;return ke.createElement(Q5.Provider,{value:r},t)};const wCe=xCe;var gE={},SCe=it;Object.defineProperty(gE,"__esModule",{value:!0});var rN=gE.default=void 0,_Ce=SCe(ct()),CCe=R;rN=gE.default=(0,_Ce.default)((0,CCe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var lw=globalThis&&globalThis.__assign||function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?d.createElement(d.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",d.createElement(Hr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Mf=globalThis&&globalThis.__assign||function(){return Mf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var v=o.getValues();return r.filter(function(g){var y=qt(v,g.props.source);return g.props.alwaysOn||u[g.props.source]||!oN(y)})},f=d.useCallback(function(v){return l(v.currentTarget.dataset.key)},[l]),p=d.useMemo(function(){return{getSource:function(v){return v},getLabel:function(v){return"resources.".concat(a,".fields.").concat(v)}}},[a]);return d.createElement(j3,{value:p},d.createElement(UCe,Ai({className:t},BCe(n),{onSubmit:DCe}),c().map(function(v){return d.createElement(ICe,{key:v.key||v.props.source,filterElement:v,handleHide:f,resource:a,className:Lg.filterFormInput})}),d.createElement("div",{className:Lg.clearFix})))},DCe=function(e){return e.preventDefault(),!1},BCe=function(e){e.hasCreate,e.resource;var t=mE(e,["hasCreate","resource"]);return t},zCe=function(e,t){return Ai(Ai({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return $m(Ai({},r),n.props.source,n.props.defaultValue)},{})),e)},VCe=function(e){return e.preventDefault(),e.stopPropagation(),!1},cw="RaFilterForm",Lg={clearFix:"".concat(cw,"-clearFix"),filterFormInput:"".concat(cw,"-filterFormInput")},UCe=ne("form",{name:cw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Lg.clearFix)]={clear:"right"},t["& .".concat(Lg.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),WCe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=aN(e,a,t),n},(r=hM(t))!==null&&r!==void 0?r:{})},aN=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return qt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,s=aN(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},oN=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return oN(e[t])}):!1},yE={},HCe=it;Object.defineProperty(yE,"__esModule",{value:!0});var Ff=yE.default=void 0,qCe=HCe(ct()),KCe=R;Ff=yE.default=(0,qCe.default)((0,KCe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var bE={},GCe=it;Object.defineProperty(bE,"__esModule",{value:!0});var iN=bE.default=void 0,QCe=GCe(ct()),XCe=R;iN=bE.default=(0,QCe.default)((0,XCe.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var xE={},YCe=it;Object.defineProperty(xE,"__esModule",{value:!0});var sN=xE.default=void 0,JCe=YCe(ct()),ZCe=R;sN=xE.default=(0,JCe.default)((0,ZCe.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var wE={},eEe=it;Object.defineProperty(wE,"__esModule",{value:!0});var lN=wE.default=void 0,tEe=eEe(ct()),rEe=R;lN=wE.default=(0,tEe.default)((0,rEe.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var SE={},nEe=it;Object.defineProperty(SE,"__esModule",{value:!0});var uN=SE.default=void 0,aEe=nEe(ct()),oEe=R;uN=SE.default=(0,aEe.default)((0,oEe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var _E={},iEe=it;Object.defineProperty(_E,"__esModule",{value:!0});var cN=_E.default=void 0,sEe=iEe(ct()),lEe=R;cN=_E.default=(0,sEe.default)((0,lEe.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var CE={},uEe=it;Object.defineProperty(CE,"__esModule",{value:!0});var dN=CE.default=void 0,cEe=uEe(ct()),dEe=R;dN=CE.default=(0,cEe.default)((0,dEe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var fEe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,s=Nt(e),u=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(Ta,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?l:u,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Cs,null,i?d.createElement(dN,{fontSize:"small"}):d.createElement(cN,{fontSize:"small"})),d.createElement(Zl,null,d.createElement(no,{label:r.props.label,source:r.props.source,resource:s})))}),EE=function(e){return ya("".concat(e,".savedQueries"),[])},OE=function(e){return Array.isArray(e)?e.filter(function(t){return pEe(t)}):[]},pEe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},hEe=function(e){var t=e.open,r=e.onClose,n=et(),a=ga(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=EE(o),f=c[0],p=c[1],v=d.useState(""),g=v[0],y=v[1],S=function(b){y(b.target.value)},x=function(b){b.preventDefault(),m()},m=function(){var b={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},h=OE(f);p(h.concat(b)),y(""),r()};return d.createElement(TC,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(jC,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(kC,null,d.createElement("form",{onSubmit:x},d.createElement(yp,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:S}))),d.createElement($C,null,d.createElement(hn,{onClick:r},n("ra.action.cancel")),d.createElement(hn,{onClick:m,color:"primary"},n("ra.action.save"))))},$$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=EE(u||"")[0],f=lo(),p=ga(),v=p.displayedFilters,g=v===void 0?{}:v,y=p.filterValues,S=p.perPage,x=p.setFilters,m=p.showFilter,b=p.hideFilter,h=p.sort,_=!ja(y,{}),C=OE(c),E=C.some(function(be){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})}),w=d.useState(!1),O=w[0],P=w[1],k=d.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var j=s.filter(function(be){return!be.props.alwaysOn}),$=d.useCallback(function(be){be.preventDefault(),P(!0),k.current=be.currentTarget},[k,P]),F=d.useCallback(function(){P(!1)},[P]),z=d.useCallback(function(be){var we=be.source,ve=be.defaultValue;m(we,ve===""?void 0:ve),setTimeout(function(){var De=document.querySelector("input[name='".concat(we,"']"));De&&De.focus()},50),P(!1)},[m,P]),M=d.useCallback(function(be){var we=be.source;b(we),P(!1)},[b,P]),W=d.useState(!1),B=W[0],U=W[1],q=function(){U(!1)},ie=function(){P(!1),U(!0)},oe=d.useState(!1),Ee=oe[0],pe=oe[1],Te=function(){pe(!1)},ye=function(){P(!1),pe(!0)};return j.length===0&&C.length===0&&!_?null:d.createElement(yEe,dw({className:r},gEe(i)),d.createElement(Hr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:$,variant:o,size:a},d.createElement(uN,null)),d.createElement(Ny,{open:O,anchorEl:k.current,onClose:F},j.map(function(be,we){return d.createElement(fEe,{key:be.props.source,filter:be,displayed:!!g[be.props.source],resource:u,onShow:z,onHide:M,autoFocus:we===0})}),(_||C.length>0)&&d.createElement(gg,null),C.map(function(be,we){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})?d.createElement(Ta,{onClick:ye,key:we},d.createElement(Cs,null,d.createElement(sN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:be.label}))):d.createElement(Ta,{onClick:function(){var ve,De;f({search:ko.stringify({filter:JSON.stringify(be.value.filter),sort:(ve=be.value.sort)===null||ve===void 0?void 0:ve.field,order:(De=be.value.sort)===null||De===void 0?void 0:De.order,page:1,perPage:be.value.perPage,displayedFilters:JSON.stringify(be.value.displayedFilters)})}),P(!1)},key:we},d.createElement(Cs,null,d.createElement(lN,{fontSize:"small"})),d.createElement(Zl,null,be.label))}),_&&!E&&!n&&d.createElement(Ta,{onClick:ie},d.createElement(Cs,null,d.createElement(iN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&d.createElement(Ta,{onClick:function(){x({},{}),P(!1)}},d.createElement(Cs,null,d.createElement(Ff,{fontSize:"small"})),d.createElement(Zl,null,l("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(hEe,{open:B,onClose:q}),d.createElement(vEe,{open:Ee,onClose:Te})))},gEe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=fN(e,["displayedFilters","filterValues","showFilter"]);return t},mEe="RaFilterButton",yEe=ne("div",{name:mEe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),bEe=function(e){var t=e.children,r=function(){return d.createElement(pN,{className:j$.button})},n=function(){return d.createElement(nN,{className:j$.form})};return d.createElement(Ep.Provider,{value:d.Children.toArray(t)},e.context==="button"?r():n())},k$="RaFilter",j$={button:"".concat(k$,"-button"),form:"".concat(k$,"-form")},fw=globalThis&&globalThis.__assign||function(){return fw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:w+1}));v(w+1)},[x,v,y]),b=d.useCallback(function(E){g(E.target.value)},[g]),h=d.useCallback(function(E){var w=E.from,O=E.to,P=E.count;return P===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:w,offsetEnd:O,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:w,offsetEnd:O,total:P===-1?O:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),_=d.useCallback(function(E){return y("ra.navigation.".concat(E),{_:"Go to ".concat(E," page")})},[y]);if(u)return d.createElement(jc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(S)return d.createElement(p$,Dg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:EEe,component:"span",labelDisplayedRows:h},wf(i)));var C=n||(!u&&p!=null?xEe:void 0);return d.createElement(p$,Dg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:b,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:_,rowsPerPageOptions:r},wf(i)))}),CEe=[5,10,25,50],EEe=[],Bg=globalThis&&globalThis.__assign||function(){return Bg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ye.target.value>"u")){var be=ye.target,we=be.valueAsDate!==void 0&&be.valueAsDate!==null&&!isNaN(new Date(be.valueAsDate).getTime())?g?g(be.valueAsDate):be.valueAsDate:g?g(be.value):mh(be.value);we!==""&&we!=null&&(_.onChange(we),j.current=!0)}},B=function(ye){c&&c(ye),M.current=!0},U=function(){if(M.current=!1,!!$.current){var ye=$.current.valueAsDate!==void 0&&$.current.valueAsDate!==null&&!isNaN(new Date($.current.valueAsDate).getTime())?g?g($.current.valueAsDate):mh($.current.valueAsDate):g?g($.current.value):mh($.current.value);ye!==_.value&&_.onChange(ye??""),z&&z()}},q=C.error,ie=C.invalid,oe=i!==!1||ie,Ee=_.ref,pe=_.name,Te=fae([Ee,$]);return d.createElement(yp,Bg({id:E,inputRef:Te,name:pe,defaultValue:a(F.current),key:P,type:"datetime-local",onChange:W,onFocus:B,onBlur:U,className:ue("ra-input","ra-input-".concat(f),t),size:"small",variant:S,margin:s,error:ie,disabled:x||m,readOnly:m,helperText:oe?d.createElement(rl,{error:q==null?void 0:q.message,helperText:i}):null,label:d.createElement(no,{label:o,source:f,resource:p,isRequired:w}),InputLabelProps:kEe},_p(b)))},gN=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},TEe=gN(4),gh=gN(2),A$=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=TEe(e.getFullYear()),r=gh(e.getMonth()+1),n=gh(e.getDate()),a=gh(e.getHours()),o=gh(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},$Ee=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,kEe={shrink:!0},mh=function(e){return e==null||e===""?"":e instanceof Date?A$(e):$Ee.test(e)?e:A$(new Date(e))},zg=globalThis&&globalThis.__assign||function(){return zg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof we.target.value>"u")){var ve=we.target;q(ve.value);var De=ve.valueAsNumber!==void 0&&ve.valueAsNumber!==null&&!isNaN(ve.valueAsNumber)?p?p(ve.valueAsNumber):ve.valueAsNumber:p?p(ve.value):LEe(ve.value);P.onChange(De)}},Ee=function(we){f&&f(we),ie.current=!0},pe=function(){M&&M(),ie.current=!1;var we=o(P.value);q(function(ve){return ve!==we?we:ve})},Te=i!==!1||$,ye=P.ref,be=F$(P,["ref"]);return d.createElement(yp,ii({id:F},be,{inputRef:ye,value:U,onChange:oe,onFocus:Ee,onBlur:pe,className:ue("ra-input","ra-input-".concat(g),t),type:"number",size:"small",variant:h,error:$,disabled:C||E,readOnly:E,helperText:Te?d.createElement(rl,{error:j==null?void 0:j.message,helperText:i}):null,label:d.createElement(no,{label:s,source:g,resource:v,isRequired:z}),margin:u,inputProps:ii(ii({},W),{readOnly:E})},_p(w)))},LEe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},DEe=function(e){return e==null||isNaN(e)?"":e.toString()},Vg=globalThis&&globalThis.__assign||function(){return Vg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(KEe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Di,{className:vu.content},d.createElement(Nn,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Xl()}),d.createElement(Nn,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Xl()}),d.createElement(hn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:vu.button},a?d.createElement(kc,{className:vu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},nv="RaLoginForm",vu={content:"".concat(nv,"-content"),button:"".concat(nv,"-button"),icon:"".concat(nv,"-icon")},KEe=ne(M_,{name:nv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(vu.content)]={width:300},t["& .".concat(vu.button)]={marginTop:r.spacing(2)},t["& .".concat(vu.icon)]={margin:r.spacing(.3)},t}),pw=globalThis&&globalThis.__assign||function(){return pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?lOe:r;return a?d.createElement(cOe,mw({className:ue("edit-page",o)},l),u!==!1&&d.createElement(dl,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),y,d.createElement("div",{className:ue(yu.main,(t={},t[yu.noActions]=!y,t))},d.createElement(s,{className:yu.card},g?a:d.createElement(Di,null," ")),n)):null},iv="RaEdit",yu={main:"".concat(iv,"-main"),noActions:"".concat(iv,"-noActions"),card:"".concat(iv,"-card")},cOe=ne("div",{name:iv,overridesResolver:function(e,t){return t.root}})((td={},td["& .".concat(yu.main)]={display:"flex",alignItems:"flex-start"},td["& .".concat(yu.noActions)]={marginTop:"1em"},td["& .".concat(yu.card)]={flex:"1 1 auto"},td)),yw=globalThis&&globalThis.__assign||function(){return yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&S?EOe:r;return!a||!y&&l?null:d.createElement(POe,ww({className:ue("show-page",o)},f),c!==!1&&d.createElement(dl,{title:c,defaultTitle:g,preferenceKey:"".concat(v,".show.title")}),x!==!1&&x,d.createElement("div",{className:ue(xu.main,(t={},t[xu.noActions]=!x,t))},d.createElement(s,{className:xu.card},a),n))},lv="RaShow",xu={main:"".concat(lv,"-main"),noActions:"".concat(lv,"-noActions"),card:"".concat(lv,"-card")},POe=ne("div",{name:lv,overridesResolver:function(e,t){return t.root}})((rd={},rd["& .".concat(xu.main)]={display:"flex"},rd["& .".concat(xu.noActions)]={marginTop:"1em"},rd["& .".concat(xu.card)]={flex:"1 1 auto"},rd)),Sw=globalThis&&globalThis.__assign||function(){return Sw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var v=ty(e);if(v==null||v==="")return r?d.createElement(_t,qg({component:"span",variant:"body2",className:t},nl(f)),r&&p(r,{_:r})):null;var g=c(v),y="";if(g)if(i&&u)y=v0?g.toLocaleString(n,a):g.toLocaleString();else if(u){var S=a??(typeof v=="string"&&v.length<=10?{timeZone:"UTC"}:void 0);y=v0?g.toLocaleDateString(n,S):g.toLocaleDateString()}else i&&(y=v0?g.toLocaleTimeString(n,a):g.toLocaleTimeString());return d.createElement(_t,qg({component:"span",variant:"body2",className:t},nl(f)),y)};CN.displayName="DateFieldImpl";var Ya=qy(CN),NOe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},v0=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Kg=globalThis&&globalThis.__assign||function(){return Kg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},Kd=globalThis&&globalThis.__assign||function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&D$.call(t.callee)==="[object Function]"),n},g0,B$;function OPe(){if(B$)return g0;B$=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=MN,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",S=n(v),x=g&&r.call(v)==="[object String]",m=[];if(!g&&!y&&!S)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(x&&v.length>0&&!t.call(v,0))for(var h=0;h0)for(var _=0;_"u"||!jr?bt:jr(Uint8Array),Bs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":El&&jr?jr([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":YPe,"%eval%":eval,"%EvalError%":JPe,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":LN,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":El&&jr?jr(jr([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!El||!jr?bt:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":ZPe,"%ReferenceError%":e2e,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!El||!jr?bt:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":El&&jr?jr(""[Symbol.iterator]()):bt,"%Symbol%":El?Symbol:bt,"%SyntaxError%":oc,"%ThrowTypeError%":r2e,"%TypedArray%":a2e,"%TypeError%":Su,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":t2e,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet};if(jr)try{null.error}catch(e){var o2e=jr(jr(e));Bs["%Error.prototype%"]=o2e}var i2e=function e(t){var r;if(t==="%AsyncFunction%")r=y0("async function () {}");else if(t==="%GeneratorFunction%")r=y0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=y0("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&jr&&(r=jr(a.prototype))}return Bs[t]=r,r},H$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pp=$E,Gg=NN,s2e=Pp.call(Function.call,Array.prototype.concat),l2e=Pp.call(Function.apply,Array.prototype.splice),q$=Pp.call(Function.call,String.prototype.replace),Qg=Pp.call(Function.call,String.prototype.slice),u2e=Pp.call(Function.call,RegExp.prototype.exec),c2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d2e=/\\(\\)?/g,f2e=function(t){var r=Qg(t,0,1),n=Qg(t,-1);if(r==="%"&&n!=="%")throw new oc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new oc("invalid intrinsic syntax, expected opening `%`");var a=[];return q$(t,c2e,function(o,i,s,u){a[a.length]=s?q$(u,d2e,"$1"):i||o}),a},p2e=function(t,r){var n=t,a;if(Gg(H$,n)&&(a=H$[n],n="%"+a[0]+"%"),Gg(Bs,n)){var o=Bs[n];if(o===Il&&(o=i2e(n)),typeof o>"u"&&!r)throw new Su("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new oc("intrinsic "+t+" does not exist!")},Rp=function(t,r){if(typeof t!="string"||t.length===0)throw new Su("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Su('"allowMissing" argument must be a boolean');if(u2e(/^%?[^%]*%?$/,t)===null)throw new oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=f2e(t),a=n.length>0?n[0]:"",o=p2e("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],l2e(n,s2e([0,1],l)));for(var c=1,f=!0;c=n.length){var y=Ds(s,p);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else f=Gg(s,p),s=s[p];f&&!u&&(Bs[i]=s)}}return s},x0,K$;function kE(){if(K$)return x0;K$=1;var e=Rp,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return x0=t,x0}var h2e=Rp,dv=h2e("%Object.getOwnPropertyDescriptor%",!0);if(dv)try{dv([],"length")}catch{dv=null}var DN=dv,G$=kE(),v2e=FN,Ol=Op,Q$=DN,BN=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ol("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ol("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ol("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ol("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ol("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ol("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!Q$&&Q$(t,r);if(G$)G$(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new v2e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mw=kE(),zN=function(){return!!Mw};zN.hasArrayLengthDefineBug=function(){if(!Mw)return null;try{return Mw([],"length",{value:1}).length!==1}catch{return!0}};var VN=zN,g2e=TPe,m2e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",y2e=Object.prototype.toString,b2e=Array.prototype.concat,X$=BN,x2e=function(e){return typeof e=="function"&&y2e.call(e)==="[object Function]"},UN=VN(),w2e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!x2e(n)||!n())return}UN?X$(e,t,r,!0):X$(e,t,r)},WN=function(e,t){var r=arguments.length>2?arguments[2]:{},n=g2e(t);m2e&&(n=b2e.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||C2e(r)!==r)throw new Z$("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&J$){var i=J$(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(_2e?Y$(t,"length",r,!0,!0):Y$(t,"length",r)),t};(function(e){var t=$E,r=Rp,n=E2e,a=Op,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=kE(),l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var v=s(t,i,arguments);return n(v,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(qN);var KN=qN.exports,O2e=Op,P2e=function(t){if(t==null)throw new O2e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},GN=Rp,QN=KN,R2e=QN(GN("String.prototype.indexOf")),T2e=function(t,r){var n=GN(t,!!r);return typeof n=="function"&&R2e(t,".prototype.")>-1?QN(n):n},$2e=P2e,XN=T2e,k2e=XN("Object.prototype.propertyIsEnumerable"),j2e=XN("Array.prototype.push"),YN=function(t){var r=$2e(t),n=[];for(var a in r)k2e(r,a)&&j2e(n,[a,r[a]]);return n},I2e=YN,JN=function(){return typeof Object.entries=="function"?Object.entries:I2e},A2e=JN,M2e=HN,F2e=function(){var t=A2e();return M2e(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},N2e=HN,L2e=KN,D2e=YN,ZN=JN,B2e=F2e,eL=L2e(ZN(),Object);N2e(eL,{getPolyfill:ZN,implementation:D2e,shim:B2e});var z2e=eL,jE=z2e,tL=NN,V2e=function(t){},Fw=String.prototype.replace,rL=String.prototype.split,fv="||||",bh=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},nL={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:bh,chinese:function(){return 0},croatian:bh,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bh,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:bh},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function U2e(e){for(var t={},r=jE(e),n=0;n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var lRe=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),uRe=function(e){lRe(t,e);function t(r,n,a){a===void 0&&(a=null);var o=e.call(this,r)||this;return o.message=r,o.status=n,o.body=a,Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(o,o.constructor):o.stack=new Error(r).stack,o.stack=new Error().stack,o}return t}(Error);const cRe=uRe;var Xg=globalThis&&globalThis.__assign||function(){return Xg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new cRe(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},fRe=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},Yg=function(e,t){var r;return t===void 0&&(t=[]),fRe(e)?Object.assign.apply(Object,dRe([{}],Object.keys(e).map(function(n){return Yg(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e};function Nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{t.headers||(t.headers=oL(t));const r=localStorage.getItem("token");return r&&t.headers.set("Authorization",`Bearer ${r}`),ME(e,t)},gRe=hRe(fl,vRe),mRe={...gRe,getManyReference:(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={...Yg(t.filter),[t.target]:t.id,_sort:a,_order:o,_start:(r-1)*n,_end:r*n,output_size_limit:200},s=`${fl}/${t.target}/${t.id}/${e}?${ko.stringify(i)}`;return ME(s).then(({headers:u,json:l})=>{if(!u.has("x-total-count"))throw new Error("The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?");return{data:l,total:parseInt(u.get("x-total-count").split("/").pop()||"",10)}})}};var FE={},yRe=it;Object.defineProperty(FE,"__esModule",{value:!0});var Ky=FE.default=void 0,bRe=yRe(ct()),xRe=R;Ky=FE.default=(0,bRe.default)((0,xRe.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");const wRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=YM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}`,{method:"POST"}).then(()=>{t("Success running job")}).catch(u=>{t("Error on running job",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Run",onClick:i,disabled:a,children:R.jsx(Ky,{})})},SRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=YM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}/toggle`,{method:"POST"}).then(()=>{t("Job toggled")}).catch(u=>{t("Error on job toggle",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Toggle",title:"Enable/disable execution of selected jobs",onClick:i,disabled:a,children:R.jsx(Ky,{})})};var NE={},_Re=it;Object.defineProperty(NE,"__esModule",{value:!0});var LE=NE.default=void 0,CRe=_Re(ct()),ERe=R;LE=NE.default=(0,CRe.default)((0,ERe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var DE={},ORe=it;Object.defineProperty(DE,"__esModule",{value:!0});var sL=DE.default=void 0,PRe=ORe(ct()),RRe=R;sL=DE.default=(0,PRe.default)((0,RRe.jsx)("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer");const TRe=()=>{const e=_r();return e.status==="success"?R.jsx(kn,{title:"Success",children:R.jsx(Vy,{htmlColor:"green"})}):e.status==="failed"?R.jsx(kn,{title:"Error",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Waiting to Run",children:R.jsx(sL,{htmlColor:"blue"})})},$Re=()=>_r().disabled?R.jsx(kn,{title:"Disabled",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Enabled",children:R.jsx(Vy,{htmlColor:"green"})}),kRe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function jRe(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let o=0;const i=()=>(o+=1,o);return(s,u)=>{const l=u.options.name;if(l&&l.indexOf("Mui")===0&&!u.options.link&&!t){if(kRe.indexOf(s.key)!==-1)return`Mui-${s.key}`;const c=`${a}${l}-${s.key}`;return!u.options.theme[qF]||n!==""?c:`${c}-${i()}`}return`${a}${r}${i()}`}}var lk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tp=(typeof window>"u"?"undefined":lk(window))==="object"&&(typeof document>"u"?"undefined":lk(document))==="object"&&document.nodeType===9,IRe={}.constructor;function Lw(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Lw);if(e.constructor!==IRe)return e;var t={};for(var r in e)t[r]=Lw(e[r]);return t}function BE(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,a=Lw(t),o=n.plugins.onCreateRule(e,a,r);return o||(e[0],null)}var uk=function(t,r){for(var n="",a=0;a<+~=|^:(),"'`\s])/g,ck=typeof CSS<"u"&&CSS.escape,zE=function(e){return ck?ck(e):e.replace(ARe,"\\$1")},lL=function(){function e(r,n,a){this.type="style",this.isProcessed=!1;var o=a.sheet,i=a.Renderer;this.key=r,this.options=a,this.style=n,o?this.renderer=o.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,a,o){if(a===void 0)return this.style[n];var i=o?o.force:!1;if(!i&&this.style[n]===a)return this;var s=a;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(a,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),Dw=function(e){Oy(t,e);function t(n,a,o){var i;i=e.call(this,n,a,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,c=o.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(bx(bx(i)),l),i.selectorText="."+zE(i.id)),i}var r=t.prototype;return r.applyTo=function(a){var o=this.renderer;if(o){var i=this.toJSON();for(var s in i)o.setProperty(a,s,i[s])}return this},r.toJSON=function(){var a={};for(var o in this.style){var i=this.style[o];typeof i!="object"?a[o]=i:Array.isArray(i)&&(a[o]=zs(i))}return a},r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.selectorText,this.style,s)},iL(t,[{key:"selector",set:function(a){if(a!==this.selectorText){this.selectorText=a;var o=this.renderer,i=this.renderable;if(!(!i||!o)){var s=o.setSelector(i,a);s||o.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(lL),MRe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new Dw(t,r,n)}},S0={indent:1,children:!0},FRe=/@([\w-]+)/,NRe=function(){function e(r,n,a){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(FRe);this.at=o?o[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new Gy(T({},a,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=S0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=S0.indent),n.children==null&&(n.children=S0.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+o+i+o+"}":""},e}(),LRe=/@container|@media|@supports\s+/,DRe={onCreateRule:function(t,r,n){return LRe.test(t)?new NRe(t,r,n):null}},_0={indent:1,children:!0},BRe=/@keyframes\s+([\w-]+)/,Bw=function(){function e(r,n,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(BRe);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var i=a.scoped,s=a.sheet,u=a.generateId;this.id=i===!1?this.name:zE(u(this,s)),this.rules=new Gy(T({},a,{parent:this}));for(var l in n)this.rules.add(l,n[l],T({},a,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=_0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=_0.indent),n.children==null&&(n.children=_0.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+o+i+o),this.at+" "+this.id+" {"+i+"}"},e}(),zRe=/@keyframes\s+/,VRe=/\$([\w-]+)/g,zw=function(t,r){return typeof t=="string"?t.replace(VRe,function(n,a){return a in r?r[a]:n}):t},dk=function(t,r,n){var a=t[r],o=zw(a,n);o!==a&&(t[r]=o)},URe={onCreateRule:function(t,r,n){return typeof t=="string"&&zRe.test(t)?new Bw(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&dk(t,"animation-name",n.keyframes),"animation"in t&&dk(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var a=n.options.sheet;if(!a)return t;switch(r){case"animation":return zw(t,a.keyframes);case"animation-name":return zw(t,a.keyframes);default:return t}}},WRe=function(e){Oy(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.key,this.style,s)},t}(lL),HRe={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new WRe(t,r,n):null}},qRe=function(){function e(r,n,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=a}var t=e.prototype;return t.toString=function(n){var a=Ic(n),o=a.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){a.push(n);return}for(var i=0;io){a.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var a=this.registry.indexOf(n);this.registry.splice(a,1)},t.toString=function(n){for(var a=n===void 0?{}:n,o=a.attached,i=Pe(a,["attached"]),s=Ic(i),u=s.linebreak,l="",c=0;c-1?a.substr(0,o-1):a;t.style.setProperty(r,i,o>-1?"important":"")}}catch{return!1}return!0},oTe=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},iTe=function(t,r){return t.selectorText=r,t.selectorText===r},dL=cL(function(){return document.querySelector("head")});function sTe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function lTe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function uTe(e){for(var t=dL(),r=0;r0){var r=sTe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=lTe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var a=uTe(n);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}function dTe(e,t){var r=t.insertionPoint,n=cTe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var a=r,o=a.parentNode;o&&o.insertBefore(e,a.nextSibling);return}dL().appendChild(e)}var fTe=cL(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),gk=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},mk=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},pTe=function(){var t=document.createElement("style");return t.textContent=` +`,t},hTe=function(){function e(r){this.getPropertyValue=nTe,this.setProperty=aTe,this.removeProperty=oTe,this.setSelector=iTe,this.hasInsertedRules=!1,this.cssRules=[],r&&Gd.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},a=n.media,o=n.meta,i=n.element;this.element=i||pTe(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),o&&this.element.setAttribute("data-meta",o);var s=fTe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){dTe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` `)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` `+n.toString()+` -`}},t.insertRules=function(n,a){for(var o=0;o-1){var o=bL[t];if(!Array.isArray(o))return ft.js+Bi(o)in r?ft.css+o:!1;if(!a)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},o=Object.keys(r).sort(e),i=0;i"u"?null:v$e(),g$e()]}}function wL(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=T({},t);return Object.keys(r).forEach(o=>{r[o]&&(a[o]=`${t[o]} ${r[o]}`)}),a}const y$e={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},ru=y$e;function b$e(){var e;const t=cC();return(e=t==null?void 0:t.$$material)!=null?e:t}const x$e=dL(m$e()),w$e=IRe(),S$e=new Map,_$e={disableGeneration:!1,generateClassName:w$e,jss:x$e,sheetsCache:null,sheetsManager:S$e,sheetsRegistry:null},C$e=d.createContext(_$e);let xk=-1e9;function E$e(){return xk+=1,xk}const O$e=["variant"];function wk(e){return e.length===0}function P$e(e){const{variant:t}=e,r=Pe(e,O$e);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=wk(n)?e[a]:ge(e[a]):n+=`${wk(n)?a:ge(a)}${ge(e[a].toString())}`}),n}const R$e={},T$e=R$e;function $$e(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(u){throw u}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const o=r.components[n].styleOverrides||{},i=r.components[n].variants||[],s=T({},a);return Object.keys(o).forEach(u=>{s[u]=Rr(s[u]||{},o[u])}),i.forEach(u=>{const l=P$e(u.props);s[l]=Rr(s[l]||{},u.style)}),s},options:{}}}const k$e=["name","classNamePrefix","Component","defaultTheme"];function j$e({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=wL({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function I$e({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},o){if(r.disableGeneration)return;let i=ru.get(r.sheetsManager,n,t);i||(i={refs:0,staticSheet:null,dynamicStyles:null},ru.set(r.sheetsManager,n,t,i));const s=T({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=r.sheetsRegistry;if(i.refs===0){let l;r.sheetsCache&&(l=ru.get(r.sheetsCache,n,t));const c=n.create(t,a);l||(l=r.jss.createStyleSheet(c,T({link:!1},s)),l.attach(),r.sheetsCache&&ru.set(r.sheetsCache,n,t,l)),u&&u.add(l),i.staticSheet=l,i.dynamicStyles=fL(c)}if(i.dynamicStyles){const l=r.jss.createStyleSheet(i.dynamicStyles,T({link:!0},s));l.update(o),l.attach(),e.dynamicSheet=l,e.classes=wL({baseClasses:i.staticSheet.classes,newClasses:l.classes}),u&&u.add(l)}else e.classes=i.staticSheet.classes;i.refs+=1}function A$e({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function M$e({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=ru.get(r.sheetsManager,n,t);a.refs-=1;const o=r.sheetsRegistry;a.refs===0&&(ru.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}function F$e(e,t){const r=d.useRef([]);let n;const a=d.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),d.useEffect(()=>()=>{n&&n()},[a])}function SL(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:o=T$e}=t,i=Pe(t,k$e),s=$$e(e),u=r||n||"makeStyles";return s.options={index:E$e(),name:r,meta:u,classNamePrefix:u},(c={})=>{const f=b$e()||o,p=T({},d.useContext(C$e),i),v=d.useRef(),g=d.useRef();return F$e(()=>{const S={name:r,state:{},stylesCreator:s,stylesOptions:p,theme:f};return I$e(S,c),g.current=!1,v.current=S,()=>{M$e(S)}},[f,s]),d.useEffect(()=>{g.current&&A$e(v.current,c),g.current=!0}),j$e(v.current,c.classes,a)}}const N$e=e=>R.jsxs(bEe,{...e,children:[R.jsx(Nn,{label:"Search",source:"q",alwaysOn:!0}),R.jsx(yN,{source:"status",choices:[{id:"success",name:"Success"},{id:"failed",name:"Failed"},{id:"untriggered",name:"Waiting to Run"}]}),R.jsx(rw,{source:"disabled"})]}),L$e=e=>R.jsxs(d.Fragment,{children:[R.jsx(SRe,{...e}),R.jsx(_Re,{...e}),R.jsx(F5,{...e})]}),D$e=e=>R.jsx(hN,{rowsPerPageOptions:[5,10,25,50,100],...e}),B$e=SL(e=>({hiddenOnSmallScreens:{display:"table-cell",[e.breakpoints.down("md")]:{display:"none"}},cell:{padding:"6px 8px 6px 8px"}})),z$e=e=>{const t=B$e();return R.jsx(TE,{...e,filters:R.jsx(N$e,{}),bulkActionButtons:R.jsx(L$e,{}),pagination:R.jsx(D$e,{}),children:R.jsxs(Cp,{rowClick:"show",classes:{rowCell:t.cell},children:[R.jsx(fr,{source:"id",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"displayname",label:"Display name"}),R.jsx(fr,{source:"timezone",sortable:!1,cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"schedule"}),R.jsx(qd,{source:"success_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(qd,{source:"error_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Ya,{source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(kRe,{source:"disabled",label:"Enabled",sortable:!1}),R.jsx(qd,{source:"retries",sortable:!1}),R.jsx($Re,{source:"status",sortable:!1}),R.jsx(Ya,{source:"next",showTime:!0}),R.jsx(uE,{})]})})};var _L={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Al,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),f=function(p,v,g){var y,S,x,m=p&f.F,b=p&f.G,h=p&f.S,_=p&f.P,C=p&f.B,E=p&f.W,w=b?s:s[v]||(s[v]={}),O=w.prototype,P=b?i:h?i[v]:(i[v]||{}).prototype;for(y in b&&(g=v),g)(S=!m&&P&&P[y]!==void 0)&&c(w,y)||(x=S?P[y]:g[y],w[y]=b&&typeof P[y]!="function"?g[y]:C&&S?u(x,i):E&&P[y]==x?function(k){var j=function($,F,z){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k($);case 2:return new k($,F)}return new k($,F,z)}return k.apply(this,arguments)};return j.prototype=k.prototype,j}(x):_&&typeof x=="function"?u(Function.call,x):x,_&&((w.virtual||(w.virtual={}))[y]=x,p&f.R&&O&&!O[y]&&l(O,y,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,v){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),v===void 0?g:s(g,v)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,f){var p,v=s(c),g=0,y=[];for(p in v)p!=l&&i(v,p)&&y.push(p);for(;f.length>g;)i(v,p=f[g++])&&(~u(y,p)||y.push(p));return y}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(v,g){try{return v[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=S(o(49)),s=S(o(76)),u=S(o(81)),l=S(o(89)),c=S(o(93)),f=function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&(P[k]=O[k]);return P.default=O,P}(o(94)),p=S(o(132)),v=S(o(133)),g=S(o(138)),y=o(139);function S(O){return O&&O.__esModule?O:{default:O}}var x=f.default,m=(0,l.default)(x),b=(0,g.default)(v.default,y.rgb2yuv,function(O){var P,k=(0,u.default)(O,3),j=k[0],$=k[1],F=k[2];return[(P=j,P<.25?1:P<.5?.9-P:1.1-P),$,F]},y.yuv2rgb,p.default),h=function(O){return function(P){return{className:[P.className,O.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},O.style||{})}}},_=function(O,P){var k=(0,l.default)(P);for(var j in O)k.indexOf(j)===-1&&k.push(j);return k.reduce(function($,F){return $[F]=function(z,M){if(z===void 0)return M;if(M===void 0)return z;var W=z===void 0?"undefined":(0,i.default)(z),B=M===void 0?"undefined":(0,i.default)(M);switch(W){case"string":switch(B){case"string":return[M,z].filter(Boolean).join(" ");case"object":return h({className:z,style:M});case"function":return function(U){for(var q=arguments.length,ie=Array(q>1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe2?k-2:0),$=2;$3?P-3:0),j=3;j1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=$.defaultBase16,M=z===void 0?x:z,W=$.base16Themes,B=W===void 0?null:W,U=w(F,B);U&&(F=(0,s.default)({},U,F));var q=m.reduce(function(pe,Te){return pe[Te]=F[Te]||M[Te],pe},{}),ie=(0,l.default)(F).reduce(function(pe,Te){return m.indexOf(Te)===-1&&(pe[Te]=F[Te]),pe},{}),oe=O(q),Ee=_(ie,oe);return(0,c.default)(C,2).apply(void 0,[Ee].concat(k))},3),a.getBase16Theme=function(O,P){if(O&&O.extend&&(O=O.extend),typeof O=="string"){var k=O.split(":"),j=(0,u.default)(k,2),$=j[0],F=j[1];O=(P||{})[$]||f[$],F==="inverted"&&(O=E(O))}return O&&O.hasOwnProperty("base00")?O:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(h,_,C){return Function.prototype.apply.call(h,_,C)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var l=Number.isNaN||function(h){return h!=h};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(h,_){return new Promise(function(C,E){function w(){O!==void 0&&h.removeListener("error",O),C([].slice.call(arguments))}var O;_!=="error"&&(O=function(P){h.removeListener(_,w),E(P)},h.once("error",O)),h.once(_,w)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function v(h){return h._maxListeners===void 0?c.defaultMaxListeners:h._maxListeners}function g(h,_,C,E){var w,O,P,k;if(p(C),(O=h._events)===void 0?(O=h._events=Object.create(null),h._eventsCount=0):(O.newListener!==void 0&&(h.emit("newListener",_,C.listener?C.listener:C),O=h._events),P=O[_]),P===void 0)P=O[_]=C,++h._eventsCount;else if(typeof P=="function"?P=O[_]=E?[C,P]:[P,C]:E?P.unshift(C):P.push(C),(w=v(h))>0&&P.length>w&&!P.warned){P.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=h,j.type=_,j.count=P.length,k=j,console&&console.warn&&console.warn(k)}return h}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(h,_,C){var E={fired:!1,wrapFn:void 0,target:h,type:_,listener:C},w=y.bind(E);return w.listener=C,E.wrapFn=w,w}function x(h,_,C){var E=h._events;if(E===void 0)return[];var w=E[_];return w===void 0?[]:typeof w=="function"?C?[w.listener||w]:[w]:C?function(O){for(var P=new Array(O.length),k=0;k0&&(O=_[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var k=w[h];if(k===void 0)return!1;if(typeof k=="function")u(k,this,_);else{var j=k.length,$=b(k,j);for(C=0;C=0;O--)if(C[O]===_||C[O].listener===_){P=C[O].listener,w=O;break}if(w<0)return this;w===0?C.shift():function(k,j){for(;j+1=0;E--)this.removeListener(h,_[E]);return this},c.prototype.listeners=function(h){return x(this,h,!0)},c.prototype.rawListeners=function(h){return x(this,h,!1)},c.listenerCount=function(h,_){return typeof h.listenerCount=="function"?h.listenerCount(_):m.call(h,_)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var f,p,v=String(s(l)),g=i(c),y=v.length;return g<0||g>=y?u?"":void 0:(f=v.charCodeAt(g))<55296||f>56319||g+1===y||(p=v.charCodeAt(g+1))<56320||p>57343?u?v.charAt(g):f:u?v.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),v=p.length,g=0;v>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,f,p){var v,g=i(c),y=s(g.length),S=u(p,y);if(l&&f!=f){for(;y>S;)if((v=g[S++])!=v)return!0}else for(;y>S;S++)if((l||S in g)&&g[S]===f)return l||S||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),f=o(68).KEY,p=o(8),v=o(26),g=o(28),y=o(17),S=o(2),x=o(30),m=o(31),b=o(69),h=o(70),_=o(10),C=o(11),E=o(18),w=o(9),O=o(23),P=o(16),k=o(38),j=o(71),$=o(72),F=o(32),z=o(7),M=o(13),W=$.f,B=z.f,U=j.f,q=i.Symbol,ie=i.JSON,oe=ie&&ie.stringify,Ee=S("_hidden"),pe=S("toPrimitive"),Te={}.propertyIsEnumerable,ye=v("symbol-registry"),be=v("symbols"),we=v("op-symbols"),ve=Object.prototype,De=typeof q=="function"&&!!F.f,Me=i.QObject,Qe=!Me||!Me.prototype||!Me.prototype.findChild,Ne=u&&p(function(){return k(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(G,le,he){var Re=W(ve,le);Re&&delete ve[le],B(G,le,he),Re&&G!==ve&&B(ve,le,Re)}:B,Ae=function(G){var le=be[G]=k(q.prototype);return le._k=G,le},He=De&&typeof q.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof q},ht=function(G,le,he){return G===ve&&ht(we,le,he),_(G),le=O(le,!0),_(he),s(be,le)?(he.enumerable?(s(G,Ee)&&G[Ee][le]&&(G[Ee][le]=!1),he=k(he,{enumerable:P(0,!1)})):(s(G,Ee)||B(G,Ee,P(1,{})),G[Ee][le]=!0),Ne(G,le,he)):B(G,le,he)},ut=function(G,le){_(G);for(var he,Re=b(le=w(le)),Be=0,Ye=Re.length;Ye>Be;)ht(G,he=Re[Be++],le[he]);return G},V=function(G){var le=Te.call(this,G=O(G,!0));return!(this===ve&&s(be,G)&&!s(we,G))&&(!(le||!s(this,G)||!s(be,G)||s(this,Ee)&&this[Ee][G])||le)},K=function(G,le){if(G=w(G),le=O(le,!0),G!==ve||!s(be,le)||s(we,le)){var he=W(G,le);return!he||!s(be,le)||s(G,Ee)&&G[Ee][le]||(he.enumerable=!0),he}},te=function(G){for(var le,he=U(w(G)),Re=[],Be=0;he.length>Be;)s(be,le=he[Be++])||le==Ee||le==f||Re.push(le);return Re},se=function(G){for(var le,he=G===ve,Re=U(he?we:w(G)),Be=[],Ye=0;Re.length>Ye;)!s(be,le=Re[Ye++])||he&&!s(ve,le)||Be.push(be[le]);return Be};De||(c((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var G=y(arguments.length>0?arguments[0]:void 0),le=function(he){this===ve&&le.call(we,he),s(this,Ee)&&s(this[Ee],G)&&(this[Ee][G]=!1),Ne(this,G,P(1,he))};return u&&Qe&&Ne(ve,G,{configurable:!0,set:le}),Ae(G)}).prototype,"toString",function(){return this._k}),$.f=K,z.f=ht,o(41).f=j.f=te,o(19).f=V,F.f=se,u&&!o(14)&&c(ve,"propertyIsEnumerable",V,!0),x.f=function(G){return Ae(S(G))}),l(l.G+l.W+l.F*!De,{Symbol:q});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fe=0;de.length>fe;)S(de[fe++]);for(var Oe=M(S.store),ae=0;Oe.length>ae;)m(Oe[ae++]);l(l.S+l.F*!De,"Symbol",{for:function(G){return s(ye,G+="")?ye[G]:ye[G]=q(G)},keyFor:function(G){if(!He(G))throw TypeError(G+" is not a symbol!");for(var le in ye)if(ye[le]===G)return le},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),l(l.S+l.F*!De,"Object",{create:function(G,le){return le===void 0?k(G):ut(k(G),le)},defineProperty:ht,defineProperties:ut,getOwnPropertyDescriptor:K,getOwnPropertyNames:te,getOwnPropertySymbols:se});var Z=p(function(){F.f(1)});l(l.S+l.F*Z,"Object",{getOwnPropertySymbols:function(G){return F.f(E(G))}}),ie&&l(l.S+l.F*(!De||p(function(){var G=q();return oe([G])!="[null]"||oe({a:G})!="{}"||oe(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var le,he,Re=[G],Be=1;arguments.length>Be;)Re.push(arguments[Be++]);if(he=le=Re[1],(C(le)||G!==void 0)&&!He(G))return h(le)||(le=function(Ye,je){if(typeof he=="function"&&(je=he.call(this,Ye,je)),!He(je))return je}),Re[1]=le,oe.apply(ie,Re)}}),q.prototype[pe]||o(6)(q.prototype,pe,q.prototype.valueOf),g(q,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!o(8)(function(){return f(Object.preventExtensions({}))}),v=function(y){l(y,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(y,S){if(!s(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!u(y,i)){if(!f(y))return"F";if(!S)return"E";v(y)}return y[i].i},getWeak:function(y,S){if(!u(y,i)){if(!f(y))return!0;if(!S)return!1;v(y)}return y[i].w},onFreeze:function(y){return p&&g.NEED&&f(y)&&!u(y,i)&&v(y),y}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,v=f(l),g=u.f,y=0;v.length>y;)g.call(l,p=v[y++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),f=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(v,g){if(v=u(v),g=l(g,!0),f)try{return p(v,g)}catch{}if(c(v,g))return s(!i.f.call(v,g),v[g])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var h,_=f(arguments[x++]),C=m?s(_).concat(m(_)):s(_),E=C.length,w=0;E>w;)h=C[w++],i&&!b.call(_,h)||(y[h]=_[h]);return y}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var v=[],g=!0,y=!1,S=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(v.push(x.value),!p||v.length!==p);g=!0);}catch(b){y=!0,S=b}finally{try{!g&&m.return&&m.return()}finally{if(y)throw S}}return v}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,y=/^0o[0-7]+$/i,S=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,h=m||b||Function("return this")();function _(ae,Z,G){switch(G.length){case 0:return ae.call(Z);case 1:return ae.call(Z,G[0]);case 2:return ae.call(Z,G[0],G[1]);case 3:return ae.call(Z,G[0],G[1],G[2])}return ae.apply(Z,G)}function C(ae,Z){return!!(ae&&ae.length)&&function(G,le,he){if(le!=le)return function(Ye,je,Je,_e){for(var Fe=Ye.length,Ge=Je+(_e?1:-1);_e?Ge--:++Ge-1}function E(ae){return ae!=ae}function w(ae,Z){for(var G=ae.length,le=0;G--;)ae[G]===Z&&le++;return le}function O(ae,Z){for(var G=-1,le=ae.length,he=0,Re=[];++G2?k:void 0);function Te(ae){return de(ae)?ie(ae):{}}function ye(ae){return!(!de(ae)||function(Z){return!!M&&M in Z}(ae))&&(function(Z){var G=de(Z)?U.call(Z):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(ae)||function(Z){var G=!1;if(Z!=null&&typeof Z.toString!="function")try{G=!!(Z+"")}catch{}return G}(ae)?q:g).test(function(Z){if(Z!=null){try{return W.call(Z)}catch{}try{return Z+""}catch{}}return""}(ae))}function be(ae,Z,G,le){for(var he=-1,Re=ae.length,Be=G.length,Ye=-1,je=Z.length,Je=oe(Re-Be,0),_e=Array(je+Je),Fe=!le;++Ye1&&at.reverse(),_e&&je1?"& ":"")+Z[le],Z=Z.join(G>2?", ":" "),ae.replace(l,`{ + */fL();var hL=Date.now(),C0="fnValues"+hL,E0="fnStyle"+ ++hL,mTe=function(){return{onCreateRule:function(r,n,a){if(typeof n!="function")return null;var o=BE(r,{},a);return o[E0]=n,o},onProcessStyle:function(r,n){if(C0 in n||E0 in n)return r;var a={};for(var o in r){var i=r[o];typeof i=="function"&&(delete r[o],a[o]=i)}return n[C0]=a,r},onUpdate:function(r,n,a,o){var i=n,s=i[E0];s&&(i.style=s(r)||{});var u=i[C0];if(u)for(var l in u)i.prop(l,u[l](r),o)}}};const yTe=mTe;var Mi="@global",Ww="@global ",bTe=function(){function e(r,n,a){this.type="global",this.at=Mi,this.isProcessed=!1,this.key=r,this.options=a,this.rules=new Gy(T({},a,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e}(),xTe=function(){function e(r,n,a){this.type="global",this.at=Mi,this.isProcessed=!1,this.key=r,this.options=a;var o=r.substr(Ww.length);this.rule=a.jss.createRule(o,n,T({},a,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e}(),wTe=/\s*,\s*/g;function vL(e,t){for(var r=e.split(wTe),n="",a=0;a-1){var o=xL[t];if(!Array.isArray(o))return ft.js+Bi(o)in r?ft.css+o:!1;if(!a)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},o=Object.keys(r).sort(e),i=0;i"u"?null:h$e(),v$e()]}}function SL(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=T({},t);return Object.keys(r).forEach(o=>{r[o]&&(a[o]=`${t[o]} ${r[o]}`)}),a}const m$e={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},ru=m$e;function y$e(){var e;const t=cC();return(e=t==null?void 0:t.$$material)!=null?e:t}const b$e=fL(g$e()),x$e=jRe(),w$e=new Map,S$e={disableGeneration:!1,generateClassName:x$e,jss:b$e,sheetsCache:null,sheetsManager:w$e,sheetsRegistry:null},_$e=d.createContext(S$e);let wk=-1e9;function C$e(){return wk+=1,wk}const E$e=["variant"];function Sk(e){return e.length===0}function O$e(e){const{variant:t}=e,r=Pe(e,E$e);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=Sk(n)?e[a]:ge(e[a]):n+=`${Sk(n)?a:ge(a)}${ge(e[a].toString())}`}),n}const P$e={},R$e=P$e;function T$e(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(u){throw u}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const o=r.components[n].styleOverrides||{},i=r.components[n].variants||[],s=T({},a);return Object.keys(o).forEach(u=>{s[u]=Rr(s[u]||{},o[u])}),i.forEach(u=>{const l=O$e(u.props);s[l]=Rr(s[l]||{},u.style)}),s},options:{}}}const $$e=["name","classNamePrefix","Component","defaultTheme"];function k$e({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=SL({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function j$e({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},o){if(r.disableGeneration)return;let i=ru.get(r.sheetsManager,n,t);i||(i={refs:0,staticSheet:null,dynamicStyles:null},ru.set(r.sheetsManager,n,t,i));const s=T({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=r.sheetsRegistry;if(i.refs===0){let l;r.sheetsCache&&(l=ru.get(r.sheetsCache,n,t));const c=n.create(t,a);l||(l=r.jss.createStyleSheet(c,T({link:!1},s)),l.attach(),r.sheetsCache&&ru.set(r.sheetsCache,n,t,l)),u&&u.add(l),i.staticSheet=l,i.dynamicStyles=pL(c)}if(i.dynamicStyles){const l=r.jss.createStyleSheet(i.dynamicStyles,T({link:!0},s));l.update(o),l.attach(),e.dynamicSheet=l,e.classes=SL({baseClasses:i.staticSheet.classes,newClasses:l.classes}),u&&u.add(l)}else e.classes=i.staticSheet.classes;i.refs+=1}function I$e({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function A$e({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=ru.get(r.sheetsManager,n,t);a.refs-=1;const o=r.sheetsRegistry;a.refs===0&&(ru.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}function M$e(e,t){const r=d.useRef([]);let n;const a=d.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),d.useEffect(()=>()=>{n&&n()},[a])}function _L(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:o=R$e}=t,i=Pe(t,$$e),s=T$e(e),u=r||n||"makeStyles";return s.options={index:C$e(),name:r,meta:u,classNamePrefix:u},(c={})=>{const f=y$e()||o,p=T({},d.useContext(_$e),i),v=d.useRef(),g=d.useRef();return M$e(()=>{const S={name:r,state:{},stylesCreator:s,stylesOptions:p,theme:f};return j$e(S,c),g.current=!1,v.current=S,()=>{A$e(S)}},[f,s]),d.useEffect(()=>{g.current&&I$e(v.current,c),g.current=!0}),k$e(v.current,c.classes,a)}}const F$e=e=>R.jsxs(bEe,{...e,children:[R.jsx(Nn,{label:"Search",source:"q",alwaysOn:!0}),R.jsx(bN,{source:"status",choices:[{id:"success",name:"Success"},{id:"failed",name:"Failed"},{id:"untriggered",name:"Waiting to Run"}]}),R.jsx(rw,{source:"disabled"})]}),N$e=e=>R.jsxs(d.Fragment,{children:[R.jsx(wRe,{...e}),R.jsx(SRe,{...e}),R.jsx(N5,{...e})]}),L$e=e=>R.jsx(vN,{rowsPerPageOptions:[5,10,25,50,100],...e}),D$e=_L(e=>({hiddenOnSmallScreens:{display:"table-cell",[e.breakpoints.down("md")]:{display:"none"}},cell:{padding:"6px 8px 6px 8px"}})),B$e=e=>{const t=D$e();return R.jsx(TE,{...e,filters:R.jsx(F$e,{}),bulkActionButtons:R.jsx(N$e,{}),pagination:R.jsx(L$e,{}),children:R.jsxs(Cp,{rowClick:"show",classes:{rowCell:t.cell},children:[R.jsx(fr,{source:"id",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"displayname",label:"Display name"}),R.jsx(fr,{source:"timezone",sortable:!1,cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"schedule"}),R.jsx(qd,{source:"success_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(qd,{source:"error_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Ya,{source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx($Re,{source:"disabled",label:"Enabled",sortable:!1}),R.jsx(qd,{source:"retries",sortable:!1}),R.jsx(TRe,{source:"status",sortable:!1}),R.jsx(Ya,{source:"next",showTime:!0}),R.jsx(uE,{})]})})};var CL={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Al,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),f=function(p,v,g){var y,S,x,m=p&f.F,b=p&f.G,h=p&f.S,_=p&f.P,C=p&f.B,E=p&f.W,w=b?s:s[v]||(s[v]={}),O=w.prototype,P=b?i:h?i[v]:(i[v]||{}).prototype;for(y in b&&(g=v),g)(S=!m&&P&&P[y]!==void 0)&&c(w,y)||(x=S?P[y]:g[y],w[y]=b&&typeof P[y]!="function"?g[y]:C&&S?u(x,i):E&&P[y]==x?function(k){var j=function($,F,z){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k($);case 2:return new k($,F)}return new k($,F,z)}return k.apply(this,arguments)};return j.prototype=k.prototype,j}(x):_&&typeof x=="function"?u(Function.call,x):x,_&&((w.virtual||(w.virtual={}))[y]=x,p&f.R&&O&&!O[y]&&l(O,y,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,v){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),v===void 0?g:s(g,v)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,f){var p,v=s(c),g=0,y=[];for(p in v)p!=l&&i(v,p)&&y.push(p);for(;f.length>g;)i(v,p=f[g++])&&(~u(y,p)||y.push(p));return y}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(v,g){try{return v[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=S(o(49)),s=S(o(76)),u=S(o(81)),l=S(o(89)),c=S(o(93)),f=function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&(P[k]=O[k]);return P.default=O,P}(o(94)),p=S(o(132)),v=S(o(133)),g=S(o(138)),y=o(139);function S(O){return O&&O.__esModule?O:{default:O}}var x=f.default,m=(0,l.default)(x),b=(0,g.default)(v.default,y.rgb2yuv,function(O){var P,k=(0,u.default)(O,3),j=k[0],$=k[1],F=k[2];return[(P=j,P<.25?1:P<.5?.9-P:1.1-P),$,F]},y.yuv2rgb,p.default),h=function(O){return function(P){return{className:[P.className,O.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},O.style||{})}}},_=function(O,P){var k=(0,l.default)(P);for(var j in O)k.indexOf(j)===-1&&k.push(j);return k.reduce(function($,F){return $[F]=function(z,M){if(z===void 0)return M;if(M===void 0)return z;var W=z===void 0?"undefined":(0,i.default)(z),B=M===void 0?"undefined":(0,i.default)(M);switch(W){case"string":switch(B){case"string":return[M,z].filter(Boolean).join(" ");case"object":return h({className:z,style:M});case"function":return function(U){for(var q=arguments.length,ie=Array(q>1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe2?k-2:0),$=2;$3?P-3:0),j=3;j1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=$.defaultBase16,M=z===void 0?x:z,W=$.base16Themes,B=W===void 0?null:W,U=w(F,B);U&&(F=(0,s.default)({},U,F));var q=m.reduce(function(pe,Te){return pe[Te]=F[Te]||M[Te],pe},{}),ie=(0,l.default)(F).reduce(function(pe,Te){return m.indexOf(Te)===-1&&(pe[Te]=F[Te]),pe},{}),oe=O(q),Ee=_(ie,oe);return(0,c.default)(C,2).apply(void 0,[Ee].concat(k))},3),a.getBase16Theme=function(O,P){if(O&&O.extend&&(O=O.extend),typeof O=="string"){var k=O.split(":"),j=(0,u.default)(k,2),$=j[0],F=j[1];O=(P||{})[$]||f[$],F==="inverted"&&(O=E(O))}return O&&O.hasOwnProperty("base00")?O:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(h,_,C){return Function.prototype.apply.call(h,_,C)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var l=Number.isNaN||function(h){return h!=h};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(h,_){return new Promise(function(C,E){function w(){O!==void 0&&h.removeListener("error",O),C([].slice.call(arguments))}var O;_!=="error"&&(O=function(P){h.removeListener(_,w),E(P)},h.once("error",O)),h.once(_,w)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function v(h){return h._maxListeners===void 0?c.defaultMaxListeners:h._maxListeners}function g(h,_,C,E){var w,O,P,k;if(p(C),(O=h._events)===void 0?(O=h._events=Object.create(null),h._eventsCount=0):(O.newListener!==void 0&&(h.emit("newListener",_,C.listener?C.listener:C),O=h._events),P=O[_]),P===void 0)P=O[_]=C,++h._eventsCount;else if(typeof P=="function"?P=O[_]=E?[C,P]:[P,C]:E?P.unshift(C):P.push(C),(w=v(h))>0&&P.length>w&&!P.warned){P.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=h,j.type=_,j.count=P.length,k=j,console&&console.warn&&console.warn(k)}return h}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(h,_,C){var E={fired:!1,wrapFn:void 0,target:h,type:_,listener:C},w=y.bind(E);return w.listener=C,E.wrapFn=w,w}function x(h,_,C){var E=h._events;if(E===void 0)return[];var w=E[_];return w===void 0?[]:typeof w=="function"?C?[w.listener||w]:[w]:C?function(O){for(var P=new Array(O.length),k=0;k0&&(O=_[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var k=w[h];if(k===void 0)return!1;if(typeof k=="function")u(k,this,_);else{var j=k.length,$=b(k,j);for(C=0;C=0;O--)if(C[O]===_||C[O].listener===_){P=C[O].listener,w=O;break}if(w<0)return this;w===0?C.shift():function(k,j){for(;j+1=0;E--)this.removeListener(h,_[E]);return this},c.prototype.listeners=function(h){return x(this,h,!0)},c.prototype.rawListeners=function(h){return x(this,h,!1)},c.listenerCount=function(h,_){return typeof h.listenerCount=="function"?h.listenerCount(_):m.call(h,_)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var f,p,v=String(s(l)),g=i(c),y=v.length;return g<0||g>=y?u?"":void 0:(f=v.charCodeAt(g))<55296||f>56319||g+1===y||(p=v.charCodeAt(g+1))<56320||p>57343?u?v.charAt(g):f:u?v.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),v=p.length,g=0;v>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,f,p){var v,g=i(c),y=s(g.length),S=u(p,y);if(l&&f!=f){for(;y>S;)if((v=g[S++])!=v)return!0}else for(;y>S;S++)if((l||S in g)&&g[S]===f)return l||S||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),f=o(68).KEY,p=o(8),v=o(26),g=o(28),y=o(17),S=o(2),x=o(30),m=o(31),b=o(69),h=o(70),_=o(10),C=o(11),E=o(18),w=o(9),O=o(23),P=o(16),k=o(38),j=o(71),$=o(72),F=o(32),z=o(7),M=o(13),W=$.f,B=z.f,U=j.f,q=i.Symbol,ie=i.JSON,oe=ie&&ie.stringify,Ee=S("_hidden"),pe=S("toPrimitive"),Te={}.propertyIsEnumerable,ye=v("symbol-registry"),be=v("symbols"),we=v("op-symbols"),ve=Object.prototype,De=typeof q=="function"&&!!F.f,Me=i.QObject,Qe=!Me||!Me.prototype||!Me.prototype.findChild,Ne=u&&p(function(){return k(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(G,le,he){var Re=W(ve,le);Re&&delete ve[le],B(G,le,he),Re&&G!==ve&&B(ve,le,Re)}:B,Ae=function(G){var le=be[G]=k(q.prototype);return le._k=G,le},He=De&&typeof q.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof q},ht=function(G,le,he){return G===ve&&ht(we,le,he),_(G),le=O(le,!0),_(he),s(be,le)?(he.enumerable?(s(G,Ee)&&G[Ee][le]&&(G[Ee][le]=!1),he=k(he,{enumerable:P(0,!1)})):(s(G,Ee)||B(G,Ee,P(1,{})),G[Ee][le]=!0),Ne(G,le,he)):B(G,le,he)},ut=function(G,le){_(G);for(var he,Re=b(le=w(le)),Be=0,Ye=Re.length;Ye>Be;)ht(G,he=Re[Be++],le[he]);return G},V=function(G){var le=Te.call(this,G=O(G,!0));return!(this===ve&&s(be,G)&&!s(we,G))&&(!(le||!s(this,G)||!s(be,G)||s(this,Ee)&&this[Ee][G])||le)},K=function(G,le){if(G=w(G),le=O(le,!0),G!==ve||!s(be,le)||s(we,le)){var he=W(G,le);return!he||!s(be,le)||s(G,Ee)&&G[Ee][le]||(he.enumerable=!0),he}},te=function(G){for(var le,he=U(w(G)),Re=[],Be=0;he.length>Be;)s(be,le=he[Be++])||le==Ee||le==f||Re.push(le);return Re},se=function(G){for(var le,he=G===ve,Re=U(he?we:w(G)),Be=[],Ye=0;Re.length>Ye;)!s(be,le=Re[Ye++])||he&&!s(ve,le)||Be.push(be[le]);return Be};De||(c((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var G=y(arguments.length>0?arguments[0]:void 0),le=function(he){this===ve&&le.call(we,he),s(this,Ee)&&s(this[Ee],G)&&(this[Ee][G]=!1),Ne(this,G,P(1,he))};return u&&Qe&&Ne(ve,G,{configurable:!0,set:le}),Ae(G)}).prototype,"toString",function(){return this._k}),$.f=K,z.f=ht,o(41).f=j.f=te,o(19).f=V,F.f=se,u&&!o(14)&&c(ve,"propertyIsEnumerable",V,!0),x.f=function(G){return Ae(S(G))}),l(l.G+l.W+l.F*!De,{Symbol:q});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fe=0;de.length>fe;)S(de[fe++]);for(var Oe=M(S.store),ae=0;Oe.length>ae;)m(Oe[ae++]);l(l.S+l.F*!De,"Symbol",{for:function(G){return s(ye,G+="")?ye[G]:ye[G]=q(G)},keyFor:function(G){if(!He(G))throw TypeError(G+" is not a symbol!");for(var le in ye)if(ye[le]===G)return le},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),l(l.S+l.F*!De,"Object",{create:function(G,le){return le===void 0?k(G):ut(k(G),le)},defineProperty:ht,defineProperties:ut,getOwnPropertyDescriptor:K,getOwnPropertyNames:te,getOwnPropertySymbols:se});var Z=p(function(){F.f(1)});l(l.S+l.F*Z,"Object",{getOwnPropertySymbols:function(G){return F.f(E(G))}}),ie&&l(l.S+l.F*(!De||p(function(){var G=q();return oe([G])!="[null]"||oe({a:G})!="{}"||oe(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var le,he,Re=[G],Be=1;arguments.length>Be;)Re.push(arguments[Be++]);if(he=le=Re[1],(C(le)||G!==void 0)&&!He(G))return h(le)||(le=function(Ye,je){if(typeof he=="function"&&(je=he.call(this,Ye,je)),!He(je))return je}),Re[1]=le,oe.apply(ie,Re)}}),q.prototype[pe]||o(6)(q.prototype,pe,q.prototype.valueOf),g(q,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!o(8)(function(){return f(Object.preventExtensions({}))}),v=function(y){l(y,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(y,S){if(!s(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!u(y,i)){if(!f(y))return"F";if(!S)return"E";v(y)}return y[i].i},getWeak:function(y,S){if(!u(y,i)){if(!f(y))return!0;if(!S)return!1;v(y)}return y[i].w},onFreeze:function(y){return p&&g.NEED&&f(y)&&!u(y,i)&&v(y),y}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,v=f(l),g=u.f,y=0;v.length>y;)g.call(l,p=v[y++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),f=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(v,g){if(v=u(v),g=l(g,!0),f)try{return p(v,g)}catch{}if(c(v,g))return s(!i.f.call(v,g),v[g])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var h,_=f(arguments[x++]),C=m?s(_).concat(m(_)):s(_),E=C.length,w=0;E>w;)h=C[w++],i&&!b.call(_,h)||(y[h]=_[h]);return y}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var v=[],g=!0,y=!1,S=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(v.push(x.value),!p||v.length!==p);g=!0);}catch(b){y=!0,S=b}finally{try{!g&&m.return&&m.return()}finally{if(y)throw S}}return v}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,y=/^0o[0-7]+$/i,S=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,h=m||b||Function("return this")();function _(ae,Z,G){switch(G.length){case 0:return ae.call(Z);case 1:return ae.call(Z,G[0]);case 2:return ae.call(Z,G[0],G[1]);case 3:return ae.call(Z,G[0],G[1],G[2])}return ae.apply(Z,G)}function C(ae,Z){return!!(ae&&ae.length)&&function(G,le,he){if(le!=le)return function(Ye,je,Je,_e){for(var Fe=Ye.length,Ge=Je+(_e?1:-1);_e?Ge--:++Ge-1}function E(ae){return ae!=ae}function w(ae,Z){for(var G=ae.length,le=0;G--;)ae[G]===Z&&le++;return le}function O(ae,Z){for(var G=-1,le=ae.length,he=0,Re=[];++G2?k:void 0);function Te(ae){return de(ae)?ie(ae):{}}function ye(ae){return!(!de(ae)||function(Z){return!!M&&M in Z}(ae))&&(function(Z){var G=de(Z)?U.call(Z):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(ae)||function(Z){var G=!1;if(Z!=null&&typeof Z.toString!="function")try{G=!!(Z+"")}catch{}return G}(ae)?q:g).test(function(Z){if(Z!=null){try{return W.call(Z)}catch{}try{return Z+""}catch{}}return""}(ae))}function be(ae,Z,G,le){for(var he=-1,Re=ae.length,Be=G.length,Ye=-1,je=Z.length,Je=oe(Re-Be,0),_e=Array(je+Je),Fe=!le;++Ye1&&at.reverse(),_e&&je1?"& ":"")+Z[le],Z=Z.join(G>2?", ":" "),ae.replace(l,`{ /* [wrapped with `+Z+`] */ `)}function ut(ae,Z){return!!(Z=Z??9007199254740991)&&(typeof ae=="number"||S.test(ae))&&ae>-1&&ae%1==0&&ae1&&u--,c=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,l[g]=255*c;return l}},function(n,a,o){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,l=s||u||Function("return this")();function c(O,P,k){switch(k.length){case 0:return O.call(P);case 1:return O.call(P,k[0]);case 2:return O.call(P,k[0],k[1]);case 3:return O.call(P,k[0],k[1],k[2])}return O.apply(P,k)}function f(O,P){for(var k=-1,j=P.length,$=O.length;++k-1&&$%1==0&&$<=9007199254740991}(j.length)&&!function($){var F=function(z){var M=typeof z;return!!z&&(M=="object"||M=="function")}($)?g.call($):"";return F=="[object Function]"||F=="[object GeneratorFunction]"}(j)}(k)}(P)&&v.call(P,"callee")&&(!S.call(P,"callee")||g.call(P)=="[object Arguments]")}(O)||!!(x&&O&&O[x])}var h=Array.isArray,_,C,E,w=(C=function(O){var P=(O=function j($,F,z,M,W){var B=-1,U=$.length;for(z||(z=b),W||(W=[]);++B0&&z(q)?F>1?j(q,F-1,z,M,W):f(W,q):M||(W[W.length]=q)}return W}(O,1)).length,k=P;for(_;k--;)if(typeof O[k]!="function")throw new TypeError("Expected a function");return function(){for(var j=0,$=P?O[j].apply(this,arguments):arguments[0];++j2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var I,A=g(N);if(D){var L=g(this).constructor;I=Reflect.construct(A,arguments,L)}else I=A.apply(this,arguments);return x(this,I)}}o.r(a);var b=o(0),h=o.n(b);function _(){var N=this.constructor.getDerivedStateFromProps(this.props,this.state);N!=null&&this.setState(N)}function C(N){this.setState((function(D){var I=this.constructor.getDerivedStateFromProps(N,D);return I??null}).bind(this))}function E(N,D){try{var I=this.props,A=this.state;this.props=N,this.state=D,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(I,A)}finally{this.props=I,this.state=A}}function w(N){var D=N.prototype;if(!D||!D.isReactComponent)throw new Error("Can only polyfill class components");if(typeof N.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function")return N;var I=null,A=null,L=null;if(typeof D.componentWillMount=="function"?I="componentWillMount":typeof D.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof D.componentWillReceiveProps=="function"?A="componentWillReceiveProps":typeof D.UNSAFE_componentWillReceiveProps=="function"&&(A="UNSAFE_componentWillReceiveProps"),typeof D.componentWillUpdate=="function"?L="componentWillUpdate":typeof D.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),I!==null||A!==null||L!==null){var H=N.displayName||N.name,re=typeof N.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. @@ -232,4 +232,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof N.getDerivedStateFromProps=="function"&&(D.componentWillMount=_,D.componentWillReceiveProps=C),typeof D.getSnapshotBeforeUpdate=="function"){if(typeof D.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");D.componentWillUpdate=E;var Y=D.componentDidUpdate;D.componentDidUpdate=function(Q,me,$e){var Ze=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:$e;Y.call(this,Q,me,Ze)}}return N}function O(N,D){if(N==null)return{};var I,A,L=function(re,Y){if(re==null)return{};var Q,me,$e={},Ze=Object.keys(re);for(me=0;me=0||($e[Q]=re[Q]);return $e}(N,D);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);for(A=0;A=0||Object.prototype.propertyIsEnumerable.call(N,I)&&(L[I]=N[I])}return L}function P(N){var D=function(I){return{}.toString.call(I).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(N);return D==="number"&&(D=isNaN(N)?"nan":(0|N)!=N?"float":"integer"),D}_.__suppressDeprecationWarning=!0,C.__suppressDeprecationWarning=!0,E.__suppressDeprecationWarning=!0;var k={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},j={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},$={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},F=o(45),z=function(N){var D=function(I){return{backgroundColor:I.base00,ellipsisColor:I.base09,braceColor:I.base07,expandedIcon:I.base0D,collapsedIcon:I.base0E,keyColor:I.base07,arrayKeyColor:I.base0C,objectSize:I.base04,copyToClipboard:I.base0F,copyToClipboardCheck:I.base0D,objectBorder:I.base02,dataTypes:{boolean:I.base0E,date:I.base0D,float:I.base0B,function:I.base0D,integer:I.base0F,string:I.base09,nan:I.base08,null:I.base0A,undefined:I.base05,regexp:I.base0A,background:I.base02},editVariable:{editIcon:I.base0E,cancelIcon:I.base09,removeIcon:I.base09,addIcon:I.base0E,checkIcon:I.base0E,background:I.base01,color:I.base0A,border:I.base07},addKeyModal:{background:I.base05,border:I.base04,color:I.base0A,labelColor:I.base01},validationFailure:{background:I.base09,iconColor:I.base01,fontColor:I.base01}}}(N);return{"app-container":{fontFamily:$.globalFontFamily,cursor:$.globalCursor,backgroundColor:D.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:D.ellipsisColor,fontSize:$.ellipsisFontSize,lineHeight:$.ellipsisLineHeight,cursor:$.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:$.braceCursor,fontWeight:$.braceFontWeight,color:D.braceColor},"expanded-icon":{color:D.expandedIcon},"collapsed-icon":{color:D.collapsedIcon},colon:{display:"inline-block",margin:$.keyMargin,color:D.keyColor,verticalAlign:"top"},objectKeyVal:function(I,A){return{style:u({paddingTop:$.keyValPaddingTop,paddingRight:$.keyValPaddingRight,paddingBottom:$.keyValPaddingBottom,borderLeft:$.keyValBorderLeft+" "+D.objectBorder,":hover":{paddingLeft:A.paddingLeft-1+"px",borderLeft:$.keyValBorderHover+" "+D.objectBorder}},A)}},"object-key-val-no-border":{padding:$.keyValPadding},"pushed-content":{marginLeft:$.pushedContentMarginLeft},variableValue:function(I,A){return{style:u({display:"inline-block",paddingRight:$.variableValuePaddingRight,position:"relative"},A)}},"object-name":{display:"inline-block",color:D.keyColor,letterSpacing:$.keyLetterSpacing,fontStyle:$.keyFontStyle,verticalAlign:$.keyVerticalAlign,opacity:$.keyOpacity,":hover":{opacity:$.keyOpacityHover}},"array-key":{display:"inline-block",color:D.arrayKeyColor,letterSpacing:$.keyLetterSpacing,fontStyle:$.keyFontStyle,verticalAlign:$.keyVerticalAlign,opacity:$.keyOpacity,":hover":{opacity:$.keyOpacityHover}},"object-size":{color:D.objectSize,borderRadius:$.objectSizeBorderRadius,fontStyle:$.objectSizeFontStyle,margin:$.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:$.dataTypeFontSize,marginRight:$.dataTypeMarginRight,opacity:$.datatypeOpacity},boolean:{display:"inline-block",color:D.dataTypes.boolean},date:{display:"inline-block",color:D.dataTypes.date},"date-value":{marginLeft:$.dateValueMarginLeft},float:{display:"inline-block",color:D.dataTypes.float},function:{display:"inline-block",color:D.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:D.dataTypes.integer},string:{display:"inline-block",color:D.dataTypes.string},nan:{display:"inline-block",color:D.dataTypes.nan,fontSize:$.nanFontSize,fontWeight:$.nanFontWeight,backgroundColor:D.dataTypes.background,padding:$.nanPadding,borderRadius:$.nanBorderRadius},null:{display:"inline-block",color:D.dataTypes.null,fontSize:$.nullFontSize,fontWeight:$.nullFontWeight,backgroundColor:D.dataTypes.background,padding:$.nullPadding,borderRadius:$.nullBorderRadius},undefined:{display:"inline-block",color:D.dataTypes.undefined,fontSize:$.undefinedFontSize,padding:$.undefinedPadding,borderRadius:$.undefinedBorderRadius,backgroundColor:D.dataTypes.background},regexp:{display:"inline-block",color:D.dataTypes.regexp},"copy-to-clipboard":{cursor:$.clipboardCursor},"copy-icon":{color:D.copyToClipboard,fontSize:$.iconFontSize,marginRight:$.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:D.copyToClipboardCheck,marginLeft:$.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:$.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:$.metaDataPadding},"icon-container":{display:"inline-block",width:$.iconContainerWidth},tooltip:{padding:$.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.removeIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.addIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.editIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:$.iconCursor,color:D.editVariable.checkIcon,fontSize:$.iconFontSize,paddingRight:$.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:$.iconCursor,color:D.editVariable.cancelIcon,fontSize:$.iconFontSize,paddingRight:$.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:$.editInputMinWidth,borderRadius:$.editInputBorderRadius,backgroundColor:D.editVariable.background,color:D.editVariable.color,padding:$.editInputPadding,marginRight:$.editInputMarginRight,fontFamily:$.editInputFontFamily},"detected-row":{paddingTop:$.detectedRowPaddingTop},"key-modal-request":{position:$.addKeyCoverPosition,top:$.addKeyCoverPositionPx,left:$.addKeyCoverPositionPx,right:$.addKeyCoverPositionPx,bottom:$.addKeyCoverPositionPx,backgroundColor:$.addKeyCoverBackground},"key-modal":{width:$.addKeyModalWidth,backgroundColor:D.addKeyModal.background,marginLeft:$.addKeyModalMargin,marginRight:$.addKeyModalMargin,padding:$.addKeyModalPadding,borderRadius:$.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:D.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:D.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:D.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:D.addKeyModal.labelColor,fontSize:$.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:D.editVariable.addIcon,fontSize:$.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:D.ellipsisColor,fontSize:$.ellipsisFontSize,lineHeight:$.ellipsisLineHeight,cursor:$.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:D.validationFailure.fontColor,backgroundColor:D.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:D.validationFailure.iconColor,fontSize:$.iconFontSize,transform:"rotate(45deg)"}}};function M(N,D,I){return N||console.error("theme has not been set"),function(A){var L=k;return A!==!1&&A!=="none"||(L=j),Object(F.createStyling)(z,{defaultBase16:L})(A)}(N)(D,I)}var W=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=(A.rjvId,A.type_name),H=A.displayDataTypes,re=A.theme;return H?h.a.createElement("span",Object.assign({className:"data-type-label"},M(re,"data-type-label")),L):null}}]),I}(h.a.PureComponent),B=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"boolean"),h.a.createElement(W,Object.assign({type_name:"bool"},A)),A.value?"true":"false")}}]),I}(h.a.PureComponent),U=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"date"),h.a.createElement(W,Object.assign({type_name:"date"},A)),h.a.createElement("span",Object.assign({className:"date-value"},M(A.theme,"date-value")),A.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),I}(h.a.PureComponent),q=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"float"),h.a.createElement(W,Object.assign({type_name:"float"},A)),this.props.value)}}]),I}(h.a.PureComponent);function ie(N,D){(D==null||D>N.length)&&(D=N.length);for(var I=0,A=new Array(D);I"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(I=oe(N))||D&&N&&typeof N.length=="number"){I&&(N=I);var A=0,L=function(){};return{s:L,n:function(){return A>=N.length?{done:!0}:{done:!1,value:N[A++]}},e:function(Q){throw Q},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,re=!0,Y=!1;return{s:function(){I=N[Symbol.iterator]()},n:function(){var Q=I.next();return re=Q.done,Q},e:function(Q){Y=!0,H=Q},f:function(){try{re||I.return==null||I.return()}finally{if(Y)throw H}}}}function pe(N){return function(D){if(Array.isArray(D))return ie(D)}(N)||function(D){if(typeof Symbol<"u"&&Symbol.iterator in Object(D))return Array.from(D)}(N)||oe(N)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),ye=new(o(47)).Dispatcher,be=new(function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reL&&(Y.style.cursor="pointer",this.state.collapsed&&(re=h.a.createElement("span",null,re.substring(0,L),h.a.createElement("span",M(H,"ellipsis")," ...")))),h.a.createElement("div",M(H,"string"),h.a.createElement(W,Object.assign({type_name:"string"},A)),h.a.createElement("span",Object.assign({className:"string-value"},Y,{onClick:this.toggleCollapsed}),'"',re,'"'))}}]),I}(h.a.PureComponent),He=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){return h.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),I}(h.a.PureComponent);function ht(){return(ht=Object.assign||function(N){for(var D=1;D=0||(vo[kr]=lt[kr]);return vo}(N,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),$e,Ze=me.value!==void 0,tt=Object(b.useRef)(null),St=te(tt,D),st=Object(b.useRef)(0),xt=Object(b.useRef)(),jt=function(){var lt=tt.current,Dt=I&&xt.current?xt.current:function(ot){var Vt=window.getComputedStyle(ot);if(Vt===null)return null;var mr,vt=(mr=Vt,ae.reduce(function(Go,Qo){return Go[Qo]=mr[Qo],Go},{})),Gr=vt.boxSizing;return Gr===""?null:(Z&&Gr==="border-box"&&(vt.width=parseFloat(vt.width)+parseFloat(vt.borderRightWidth)+parseFloat(vt.borderLeftWidth)+parseFloat(vt.paddingRight)+parseFloat(vt.paddingLeft)+"px"),{sizingStyle:vt,paddingSize:parseFloat(vt.paddingBottom)+parseFloat(vt.paddingTop),borderSize:parseFloat(vt.borderBottomWidth)+parseFloat(vt.borderTopWidth)})}(lt);if(Dt){xt.current=Dt;var kr=function(ot,Vt,mr,vt){mr===void 0&&(mr=1),vt===void 0&&(vt=1/0),fe||((fe=document.createElement("textarea")).setAttribute("tab-index","-1"),fe.setAttribute("aria-hidden","true"),de(fe)),fe.parentNode===null&&document.body.appendChild(fe);var Gr=ot.paddingSize,Go=ot.borderSize,Qo=ot.sizingStyle,YE=Qo.boxSizing;Object.keys(Qo).forEach(function(Zy){var pl=Zy;fe.style[pl]=Qo[pl]}),de(fe),fe.value=Vt;var kp=function(Zy,pl){var JE=Zy.scrollHeight;return pl.sizingStyle.boxSizing==="border-box"?JE+pl.borderSize:JE-pl.paddingSize}(fe,ot);fe.value="x";var Xy=fe.scrollHeight-Gr,Yy=Xy*mr;YE==="border-box"&&(Yy=Yy+Gr+Go),kp=Math.max(Yy,kp);var Jy=Xy*vt;return YE==="border-box"&&(Jy=Jy+Gr+Go),[kp=Math.min(Jy,kp),Xy]}(Dt,lt.value||lt.placeholder||"x",L,A),yn=kr[0],vo=kr[1];st.current!==yn&&(st.current=yn,lt.style.setProperty("height",yn+"px","important"),Q(yn,{rowHeight:vo}))}};return Object(b.useLayoutEffect)(jt),$e=V(jt),Object(b.useLayoutEffect)(function(){var lt=function(Dt){$e.current(Dt)};return window.addEventListener("resize",lt),function(){window.removeEventListener("resize",lt)}},[]),Object(b.createElement)("textarea",ht({},me,{onChange:function(lt){Ze||jt(),re(lt)},ref:St}))},le=Object(b.forwardRef)(G);function he(N){N=N.trim();try{if((N=JSON.stringify(JSON.parse(N)))[0]==="[")return Re("array",JSON.parse(N));if(N[0]==="{")return Re("object",JSON.parse(N));if(N.match(/\-?\d+\.\d+/)&&N.match(/\-?\d+\.\d+/)[0]===N)return Re("float",parseFloat(N));if(N.match(/\-?\d+e-\d+/)&&N.match(/\-?\d+e-\d+/)[0]===N)return Re("float",Number(N));if(N.match(/\-?\d+/)&&N.match(/\-?\d+/)[0]===N)return Re("integer",parseInt(N));if(N.match(/\-?\d+e\+\d+/)&&N.match(/\-?\d+e\+\d+/)[0]===N)return Re("integer",Number(N))}catch{}switch(N=N.toLowerCase()){case"undefined":return Re("undefined",void 0);case"nan":return Re("nan",NaN);case"null":return Re("null",null);case"true":return Re("boolean",!0);case"false":return Re("boolean",!1);default:if(N=Date.parse(N))return Re("date",new Date(N))}return Re(!1,null)}function Re(N,D){return{type:N,value:D}}var Be=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),I}(h.a.PureComponent),Ye=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),I}(h.a.PureComponent),je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),Je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),_e=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),I}(h.a.PureComponent),Fe=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),I}(h.a.PureComponent),Ge=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),I}(h.a.PureComponent),nt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),mt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),Ot=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),I}(h.a.PureComponent),kt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),I}(h.a.PureComponent),Pt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent);function at(N){return N||(N={}),{style:u(u({verticalAlign:"middle"},N),{},{color:N.color?N.color:"#000000",height:"1em",width:"1em"})}}var It=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).copiedTimer=null,L.handleCopy=function(){var H=document.createElement("textarea"),re=L.props,Y=re.clickCallback,Q=re.src,me=re.namespace;H.innerHTML=JSON.stringify(L.clipboardValue(Q),null," "),document.body.appendChild(H),H.select(),document.execCommand("copy"),document.body.removeChild(H),L.copiedTimer=setTimeout(function(){L.setState({copied:!1})},5500),L.setState({copied:!0},function(){typeof Y=="function"&&Y({src:Q,namespace:me,name:me[me.length-1]})})},L.getClippyIcon=function(){var H=L.props.theme;return L.state.copied?h.a.createElement("span",null,h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon"))),h.a.createElement("span",M(H,"copy-icon-copied"),"✔")):h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon")))},L.clipboardValue=function(H){switch(P(H)){case"function":case"regexp":return H.toString();default:return H}},L.state={copied:!1},L}return f(I,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var A=this.props,L=(A.src,A.theme),H=A.hidden,re=A.rowHovered,Y=M(L,"copy-to-clipboard").style,Q="inline";return H&&(Q="none"),h.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:re?"inline-block":"none"}},h.a.createElement("span",{style:u(u({},Y),{},{display:Q}),onClick:this.handleCopy},this.getClippyIcon()))}}]),I}(h.a.PureComponent),nr=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).getEditIcon=function(){var H=L.props,re=H.variable,Y=H.theme;return h.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(kt,Object.assign({className:"click-to-edit-icon"},M(Y,"editVarIcon"),{onClick:function(){L.prepopInput(re)}})))},L.prepopInput=function(H){if(L.props.onEdit!==!1){var re=function(Q){var me;switch(P(Q)){case"undefined":me="undefined";break;case"nan":me="NaN";break;case"string":me=Q;break;case"date":case"function":case"regexp":me=Q.toString();break;default:try{me=JSON.stringify(Q,null," ")}catch{me=""}}return me}(H.value),Y=he(re);L.setState({editMode:!0,editValue:re,parsedInput:{type:Y.type,value:Y.value}})}},L.getRemoveIcon=function(){var H=L.props,re=H.variable,Y=H.namespace,Q=H.theme,me=H.rjvId;return h.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(Q,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:me,data:{name:re.name,namespace:Y,existing_value:re.value,variable_removed:!0}})}})))},L.getValue=function(H,re){var Y=!re&&H.type,Q=S(L).props;switch(Y){case!1:return L.getEditInput();case"string":return h.a.createElement(Ae,Object.assign({value:H.value},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:H.value},Q));case"float":return h.a.createElement(q,Object.assign({value:H.value},Q));case"boolean":return h.a.createElement(B,Object.assign({value:H.value},Q));case"function":return h.a.createElement(ve,Object.assign({value:H.value},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:H.value},Q));case"regexp":return h.a.createElement(Ne,Object.assign({value:H.value},Q));default:return h.a.createElement("div",{className:"object-value"},JSON.stringify(H.value))}},L.getEditInput=function(){var H=L.props.theme,re=L.state.editValue;return h.a.createElement("div",null,h.a.createElement(le,Object.assign({type:"text",inputRef:function(Y){return Y&&Y.focus()},value:re,className:"variable-editor",onChange:function(Y){var Q=Y.target.value,me=he(Q);L.setState({editValue:Q,parsedInput:{type:me.type,value:me.value}})},onKeyDown:function(Y){switch(Y.key){case"Escape":L.setState({editMode:!1,editValue:""});break;case"Enter":(Y.ctrlKey||Y.metaKey)&&L.submitEdit(!0)}Y.stopPropagation()},placeholder:"update this value",minRows:2},M(H,"edit-input"))),h.a.createElement("div",M(H,"edit-icon-container"),h.a.createElement(nt,Object.assign({className:"edit-cancel"},M(H,"cancel-icon"),{onClick:function(){L.setState({editMode:!1,editValue:""})}})),h.a.createElement(Pt,Object.assign({className:"edit-check string-value"},M(H,"check-icon"),{onClick:function(){L.submitEdit()}})),h.a.createElement("div",null,L.showDetected())))},L.submitEdit=function(H){var re=L.props,Y=re.variable,Q=re.namespace,me=re.rjvId,$e=L.state,Ze=$e.editValue,tt=$e.parsedInput,St=Ze;H&&tt.type&&(St=tt.value),L.setState({editMode:!1}),ye.dispatch({name:"VARIABLE_UPDATED",rjvId:me,data:{name:Y.name,namespace:Q,existing_value:Y.value,new_value:St,variable_removed:!1}})},L.showDetected=function(){var H=L.props,re=H.theme,Y=(H.variable,H.namespace,H.rjvId,L.state.parsedInput),Q=(Y.type,Y.value,L.getDetectedInput());if(Q)return h.a.createElement("div",null,h.a.createElement("div",M(re,"detected-row"),Q,h.a.createElement(Pt,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},M(re,"check-icon").style),onClick:function(){L.submitEdit(!0)}})))},L.getDetectedInput=function(){var H=L.state.parsedInput,re=H.type,Y=H.value,Q=S(L).props,me=Q.theme;if(re!==!1)switch(re.toLowerCase()){case"object":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"{"),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"}"));case"array":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"["),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"]"));case"string":return h.a.createElement(Ae,Object.assign({value:Y},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:Y},Q));case"float":return h.a.createElement(q,Object.assign({value:Y},Q));case"boolean":return h.a.createElement(B,Object.assign({value:Y},Q));case"function":return h.a.createElement(ve,Object.assign({value:Y},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:new Date(Y)},Q))}},L.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.variable,re=L.singleIndent,Y=L.type,Q=L.theme,me=L.namespace,$e=L.indentWidth,Ze=L.enableClipboard,tt=L.onEdit,St=L.onDelete,st=L.onSelect,xt=L.displayArrayKey,jt=L.quotesOnKeys,lt=this.state.editMode;return h.a.createElement("div",Object.assign({},M(Q,"objectKeyVal",{paddingLeft:$e*re}),{onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))},className:"variable-row",key:H.name}),Y=="array"?xt?h.a.createElement("span",Object.assign({},M(Q,"array-key"),{key:H.name+"_"+me}),H.name,h.a.createElement("div",M(Q,"colon"),":")):null:h.a.createElement("span",null,h.a.createElement("span",Object.assign({},M(Q,"object-name"),{className:"object-key",key:H.name+"_"+me}),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",{style:{display:"inline-block"}},H.name),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(Q,"colon"),":")),h.a.createElement("div",Object.assign({className:"variable-value",onClick:st===!1&&tt===!1?null:function(Dt){var kr=pe(me);(Dt.ctrlKey||Dt.metaKey)&&tt!==!1?A.prepopInput(H):st!==!1&&(kr.shift(),st(u(u({},H),{},{namespace:kr})))}},M(Q,"variableValue",{cursor:st===!1?"default":"pointer"})),this.getValue(H,lt)),Ze?h.a.createElement(It,{rowHovered:this.state.hovered,hidden:lt,src:H.value,clickCallback:Ze,theme:Q,namespace:[].concat(pe(me),[H.name])}):null,tt!==!1&<==0?this.getEditIcon():null,St!==!1&<==0?this.getRemoveIcon():null)}}]),I}(h.a.PureComponent),mn=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re0?Ze:null,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!1,key_name:null};P(tt)==="object"?ye.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:St,data:xt}):ye.dispatch({name:"VARIABLE_ADDED",rjvId:St,data:u(u({},xt),{},{new_value:[].concat(pe(tt),[null])})})}})))},A.getRemoveObject=function(Y){var Q=A.props,me=Q.theme,$e=(Q.hover,Q.namespace),Ze=Q.name,tt=Q.src,St=Q.rjvId;if($e.length!==1)return h.a.createElement("span",{className:"click-to-remove",style:{display:Y?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(me,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:St,data:{name:Ze,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!0}})}})))},A.render=function(){var Y=A.props,Q=Y.theme,me=Y.onDelete,$e=Y.onAdd,Ze=Y.enableClipboard,tt=Y.src,St=Y.namespace,st=Y.rowHovered;return h.a.createElement("div",Object.assign({},M(Q,"object-meta-data"),{className:"object-meta-data",onClick:function(xt){xt.stopPropagation()}}),A.getObjectSize(),Ze?h.a.createElement(It,{rowHovered:st,clickCallback:Ze,src:tt,theme:Q,namespace:St}):null,$e!==!1?A.getAddAttribute(st):null,me!==!1?A.getRemoveObject(st):null)},A}return I}(h.a.PureComponent);function qr(N){var D=N.parent_type,I=N.namespace,A=N.quotesOnKeys,L=N.theme,H=N.jsvRoot,re=N.name,Y=N.displayArrayKey,Q=N.name?N.name:"";return!H||re!==!1&&re!==null?D=="array"?Y?h.a.createElement("span",Object.assign({},M(L,"array-key"),{key:I}),h.a.createElement("span",{className:"array-key"},Q),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null):h.a.createElement("span",Object.assign({},M(L,"object-name"),{key:I}),h.a.createElement("span",{className:"object-key"},A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",null,Q),A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null)}function Nr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(Fe,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));case"square":return h.a.createElement(je,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));default:return h.a.createElement(Be,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}))}}function Tr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(_e,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h.a.createElement(Je,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));default:return h.a.createElement(Ye,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}))}}var Mn=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).toggleCollapsed=function(H){var re=[];for(var Y in L.state.expanded)re.push(L.state.expanded[Y]);re[H]=!re[H],L.setState({expanded:re})},L.state={expanded:[]},L}return f(I,[{key:"getExpandedIcon",value:function(A){var L=this.props,H=L.theme,re=L.iconStyle;return this.state.expanded[A]?h.a.createElement(Nr,{theme:H,iconStyle:re}):h.a.createElement(Tr,{theme:H,iconStyle:re})}},{key:"render",value:function(){var A=this,L=this.props,H=L.src,re=L.groupArraysAfterLength,Y=(L.depth,L.name),Q=L.theme,me=L.jsvRoot,$e=L.namespace,Ze=(L.parent_type,O(L,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tt=0,St=5*this.props.indentWidth;me||(tt=5*this.props.indentWidth);var st=re,xt=Math.ceil(H.length/st);return h.a.createElement("div",Object.assign({className:"object-key-val"},M(Q,me?"jsv-root":"objectKeyVal",{paddingLeft:tt})),h.a.createElement(qr,this.props),h.a.createElement("span",null,h.a.createElement(mn,Object.assign({size:H.length},this.props))),pe(Array(xt)).map(function(jt,lt){return h.a.createElement("div",Object.assign({key:lt,className:"object-key-val array-group"},M(Q,"objectKeyVal",{marginLeft:6,paddingLeft:St})),h.a.createElement("span",M(Q,"brace-row"),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container"),{onClick:function(Dt){A.toggleCollapsed(lt)}}),A.getExpandedIcon(lt)),A.state.expanded[lt]?h.a.createElement($r,Object.assign({key:Y+lt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:st,index_offset:lt*st,src:H.slice(lt*st,lt*st+st),namespace:$e,type:"array",parent_type:"array_group",theme:Q},Ze)):h.a.createElement("span",Object.assign({},M(Q,"brace"),{onClick:function(Dt){A.toggleCollapsed(lt)},className:"array-group-brace"}),"[",h.a.createElement("div",Object.assign({},M(Q,"array-group-meta-data"),{className:"array-group-meta-data"}),h.a.createElement("span",Object.assign({className:"object-size"},M(Q,"object-size")),lt*st," - ",lt*st+st>H.length?H.length:lt*st+st)),"]")))}))}}]),I}(h.a.PureComponent),Kr=function(N){v(I,N);var D=m(I);function I(A){var L;l(this,I),(L=D.call(this,A)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){we.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(re,Y,Q){return h.a.createElement("div",{className:"pushed-content object-container"},h.a.createElement("div",Object.assign({className:"object-content"},M(L.props.theme,"pushed-content")),L.renderObjectContents(Y,Q)))},L.getEllipsis=function(){return L.state.size===0?null:h.a.createElement("div",Object.assign({},M(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(re){var Y=L.props,Q=(Y.rjvId,Y.theme,L.state),me=Q.size,$e=Q.hovered;return h.a.createElement(mn,Object.assign({rowHovered:$e,size:me},L.props))},L.renderObjectContents=function(re,Y){var Q,me=L.props,$e=me.depth,Ze=me.parent_type,tt=me.index_offset,St=me.groupArraysAfterLength,st=me.namespace,xt=L.state.object_type,jt=[],lt=Object.keys(re||{});return L.props.sortKeys&&xt!=="array"&&(lt=lt.sort()),lt.forEach(function(Dt){if(Q=new Ko(Dt,re[Dt]),Ze==="array_group"&&tt&&(Q.name=parseInt(Q.name)+tt),re.hasOwnProperty(Dt))if(Q.type==="object")jt.push(h.a.createElement($r,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),parent_type:xt},Y)));else if(Q.type==="array"){var kr=$r;St&&Q.value.length>St&&(kr=Mn),jt.push(h.a.createElement(kr,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),type:"array",parent_type:xt},Y)))}else jt.push(h.a.createElement(nr,Object.assign({key:Q.name+"_"+st,variable:Q,singleIndent:5,namespace:st,type:L.props.type},Y)))}),jt};var H=I.getState(A);return L.state=u(u({},H),{},{prevProps:{}}),L}return f(I,[{key:"getBraceStart",value:function(A,L){var H=this,re=this.props,Y=re.src,Q=re.theme,me=re.iconStyle;if(re.parent_type==="array_group")return h.a.createElement("span",null,h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{"),L?this.getObjectMetaData(Y):null);var $e=L?Nr:Tr;return h.a.createElement("span",null,h.a.createElement("span",Object.assign({onClick:function(Ze){H.toggleCollapsed()}},M(Q,"brace-row")),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container")),h.a.createElement($e,{theme:Q,iconStyle:me})),h.a.createElement(qr,this.props),h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{")),L?this.getObjectMetaData(Y):null)}},{key:"render",value:function(){var A=this,L=this.props,H=L.depth,re=L.src,Y=(L.namespace,L.name,L.type,L.parent_type),Q=L.theme,me=L.jsvRoot,$e=L.iconStyle,Ze=O(L,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tt=this.state,St=tt.object_type,st=tt.expanded,xt={};return me||Y==="array_group"?Y==="array_group"&&(xt.borderLeft=0,xt.display="inline"):xt.paddingLeft=5*this.props.indentWidth,h.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))}},M(Q,me?"jsv-root":"objectKeyVal",xt)),this.getBraceStart(St,st),st?this.getObjectContent(H,re,u({theme:Q,iconStyle:$e},Ze)):this.getEllipsis(),h.a.createElement("span",{className:"brace-row"},h.a.createElement("span",{style:u(u({},M(Q,"brace").style),{},{paddingLeft:st?"3px":"0px"})},St==="array"?"]":"}"),st?null:this.getObjectMetaData(re)))}}],[{key:"getDerivedStateFromProps",value:function(A,L){var H=L.prevProps;return A.src!==H.src||A.collapsed!==H.collapsed||A.name!==H.name||A.namespace!==H.namespace||A.rjvId!==H.rjvId?u(u({},I.getState(A)),{},{prevProps:A}):null}}]),I}(h.a.PureComponent);Kr.getState=function(N){var D=Object.keys(N.src).length,I=(N.collapsed===!1||N.collapsed!==!0&&N.collapsed>N.depth)&&(!N.shouldCollapse||N.shouldCollapse({name:N.name,src:N.src,type:P(N.src),namespace:N.namespace})===!1)&&D!==0;return{expanded:we.get(N.rjvId,N.namespace,"expanded",I),object_type:N.type==="array"?"array":"object",parent_type:N.type==="array"?"array":"object",size:D,hovered:!1}};var Ko=function N(D,I){l(this,N),this.name=D,this.value=I,this.type=P(I)};w(Kr);var $r=Kr,ho=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reY.groupArraysAfterLength&&(me=Mn),h.a.createElement("div",{className:"pretty-json-container object-container"},h.a.createElement("div",{className:"object-content"},h.a.createElement(me,Object.assign({namespace:Q,depth:0,jsvRoot:!0},Y))))},A}return I}(h.a.PureComponent),X=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).closeModal=function(){ye.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:A.input?A.input:""},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.theme,re=L.rjvId,Y=L.isValid,Q=this.state.input,me=Y(Q);return h.a.createElement("div",Object.assign({className:"key-modal-request"},M(H,"key-modal-request"),{onClick:this.closeModal}),h.a.createElement("div",Object.assign({},M(H,"key-modal"),{onClick:function($e){$e.stopPropagation()}}),h.a.createElement("div",M(H,"key-modal-label"),"Key Name:"),h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("input",Object.assign({},M(H,"key-modal-input"),{className:"key-modal-input",ref:function($e){return $e&&$e.focus()},spellCheck:!1,value:Q,placeholder:"...",onChange:function($e){A.setState({input:$e.target.value})},onKeyPress:function($e){me&&$e.key==="Enter"?A.submit():$e.key==="Escape"&&A.closeModal()}})),me?h.a.createElement(Pt,Object.assign({},M(H,"key-modal-submit"),{className:"key-modal-submit",onClick:function($e){return A.submit()}})):null),h.a.createElement("span",M(H,"key-modal-cancel"),h.a.createElement(Ot,Object.assign({},M(H,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ye.dispatch({rjvId:re,name:"RESET"})}})))))}}]),I}(h.a.PureComponent),ee=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re{const e=_r();return R.jsx(fOe,{...e,children:R.jsx(EL,{})})},W$e=e=>R.jsx(nOe,{...e,children:R.jsx(EL,{})}),EL=e=>R.jsxs(gOe,{...e,children:[R.jsx(Nn,{disabled:!0,source:"id",helperText:"Job id. Must be unique, it's a copy of name."}),R.jsx(Nn,{source:"name",helperText:"Job name. Must be unique, acts as the id.",validate:Xl()}),R.jsx(Nn,{source:"displayname",helperText:"Display name of the job. If present, displayed instead of the name."}),R.jsx(Nn,{source:"timezone",helperText:"The timezone where the cron expression will be evaluated in."}),R.jsx(Nn,{source:"schedule",helperText:"Cron expression for the job. When to run the job.",validate:Xl()}),R.jsx(Nn,{source:"owner",helperText:"Arbitrary string indicating the owner of the job.",disabled:!0}),R.jsx(Nn,{source:"owner_email",helperText:"Email address to use for notifications."}),R.jsx(Nn,{source:"parent_job",helperText:"Job id of job that this job is dependent upon."}),R.jsx(rw,{source:"ephemeral",helperText:"Delete the job after the first successful execution."}),R.jsx(REe,{source:"expires_at",helperText:"The job will not be executed after this time."}),R.jsx(yN,{source:"concurrency",choices:[{id:"allow",name:"Allow"},{id:"forbid",name:"Forbid"}],helperText:"Concurrency policy for this job (allow, forbid)."}),R.jsx(Sh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Processor plugins to use for this job."}),R.jsx(Sh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Tags of the target servers to run this job against."}),R.jsx(Sh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Job metadata describes the job and allows filtering from the API."}),R.jsx(Nn,{source:"executor",helperText:"Executor plugin to be used in this job.",validate:Xl()}),R.jsx(Sh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!0,enableClipboard:!1,displayDataTypes:!1},helperText:"Configuration arguments for the specific executor.",validate:Xl()}),R.jsx(rw,{source:"disabled",helperText:"Is this job disabled?"}),R.jsx(NEe,{source:"retries",helperText:"Number of times to retry a job that failed an execution."})]});var WE={},H$e=it;Object.defineProperty(WE,"__esModule",{value:!0});var OL=WE.default=void 0,q$e=H$e(ct()),K$e=R;OL=WE.default=(0,q$e.default)((0,K$e.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const G$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}/toggle`,{method:"POST"}).then(()=>{r("Job toggled"),t()}).catch(i=>{r("Error on toggle job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Toggle",onClick:o,disabled:n,children:R.jsx(OL,{})})},Q$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}`,{method:"POST"}).then(()=>{r("Success running job"),t()}).catch(i=>{r("Error on running job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Run",onClick:o,disabled:n,children:R.jsx(Gy,{})})},X$e=e=>(e.record!==void 0&&e.source!==void 0&&e.record[e.source]==="0001-01-01T00:00:00Z"&&(e.record[e.source]=null),R.jsx(Ya,{...e}));var HE={},Y$e=it;Object.defineProperty(HE,"__esModule",{value:!0});var PL=HE.default=void 0,J$e=Y$e(ct()),Z$e=R;PL=HE.default=(0,J$e.default)((0,Z$e.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"}),"BatteryFull");const eke=({basePath:e,data:t,resource:r})=>R.jsxs(M5,{children:[R.jsx(Q$e,{}),R.jsx(G$e,{}),R.jsx(uE,{record:t})]}),tke=e=>e.record!==void 0&&e.record.finished_at===null?R.jsx(kn,{title:"Running",children:R.jsx(Hy,{})}):R.jsx(SN,{...e}),rke=({record:e})=>{const t=ur(),[r,n]=d.useState(!1),a=()=>{n(!0),fetch(`${fl}/jobs/${e.job_name}/executions/${e.id}`).then(o=>{if(o.ok)return t("Success loading full output"),o.json();throw o}).then(o=>{e.output_truncated=!1,e.output=o.output}).catch(o=>{t("Error on loading full output",{type:"warning"})}).finally(()=>{n(!1)})};return R.jsx(Hr,{label:"Load full output",onClick:a,disabled:r,children:R.jsx(PL,{})})},nke=({id:e,record:t,resource:r})=>R.jsxs("div",{className:"execution-output",children:[t.output_truncated?R.jsx("div",{children:R.jsx(rke,{record:t})}):"",t.output||"Nothing to show"]}),ake=e=>R.jsx(TOe,{actions:R.jsx(eke,{...e}),...e,children:R.jsxs($N,{children:[R.jsxs(Pw,{label:"summary",children:[R.jsx(fr,{source:"name"}),R.jsx(fr,{source:"timezone"}),R.jsx(fr,{source:"schedule"}),R.jsx(Ya,{label:"Last success",source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(fr,{source:"status"}),R.jsx(fr,{source:"concurrency"}),R.jsx(SN,{source:"ephemeral"}),R.jsx(Ya,{source:"expires_at",showTime:!0}),R.jsx(Ya,{source:"next",sortable:!1,showTime:!0}),R.jsx(wh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1}}),R.jsx(fr,{source:"executor"}),R.jsx(wh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}})]}),R.jsx(Pw,{label:"executions",path:"executions",children:R.jsx(qOe,{reference:"executions",target:"jobs",label:"Executions",children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(nke,{...e}),children:[R.jsx(fr,{source:"id"}),R.jsx(fr,{source:"group",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(Ya,{source:"started_at",showTime:!0}),R.jsx(X$e,{source:"finished_at",showTime:!0}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(tke,{source:"success",sortable:!1}),R.jsx(qd,{source:"attempt"})]})})})]})}),oke={list:z$e,edit:U$e,create:W$e,show:ake,icon:Hy},ike=({id:e,record:t,resource:r})=>R.jsx("div",{className:"execution-output",children:t.output||"Empty output"}),ske=e=>R.jsx(TE,{...e,pagination:!1,children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(ike,{}),children:[R.jsx(fr,{source:"id",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(Ya,{source:"started_at",sortable:!1,showTime:!0})]})});var qE={},lke=it;Object.defineProperty(qE,"__esModule",{value:!0});var RL=qE.default=void 0,uke=lke(ct()),cke=R;RL=qE.default=(0,uke.default)((0,cke.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book");class dke extends d.Component{constructor(t){super(t),this.state={date:new Date}}componentDidMount(){this.timer=setInterval(()=>this.setState({date:new Date}),1e3)}componentWillUnmount(){clearInterval(this.timer)}render(){return R.jsx("div",{className:"clock",children:R.jsx("div",{children:this.state.date.toLocaleTimeString()})})}}const fke=""+new URL("dkron-logo-2b1c801f.png",import.meta.url).href,j0="CustomAppBar",_u={title:`${j0}-title`,spacer:`${j0}-spacer`,logo:`${j0}-logo`},pke=ne(h5)({[`& .${_u.title}`]:{flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[`& .${_u.spacer}`]:{flex:1},[`& .${_u.logo}`]:{maxWidth:"125px"}});d.forwardRef((e,t)=>R.jsx(xp,{ref:t,to:"/settings",primaryText:"Settings",leftIcon:R.jsx(eE,{}),onClick:e.onClick}));const hke=e=>R.jsx(UC,{...e,children:R.jsx(xp,{to:"https://dkron.io/docs/basics/getting-started",primaryText:"Docs",leftIcon:R.jsx(RL,{})})}),vke=e=>R.jsxs(pke,{...e,elevation:1,userMenu:R.jsx(hke,{}),children:[R.jsx(_t,{variant:"h6",color:"inherit",className:_u.title,id:"react-admin-title"}),R.jsx("div",{children:R.jsx(VOe,{to:"/",color:"inherit",underline:"none",children:R.jsx("img",{src:fke,alt:"logo",className:_u.logo})})}),R.jsx("span",{className:_u.spacer}),R.jsx(dke,{})]}),gke=e=>R.jsx(O5,{...e,size:200}),mke=e=>R.jsx(j5,{...e,appBar:vke,sidebar:gke});const yke={login:({token:e})=>(localStorage.setItem("token",e),Promise.resolve()),logout:()=>(localStorage.removeItem("token"),Promise.resolve()),checkAuth:()=>localStorage.getItem("token")?Promise.resolve():Promise.reject(),checkError:e=>{const t=e.status;return t===401||t===403?(localStorage.removeItem("token"),Promise.reject()):Promise.resolve()},getIdentity:()=>Promise.resolve(),getPermissions:()=>Promise.resolve()},TL=({record:e})=>e===void 0?null:R.jsx("ul",{children:Object.keys(e.Tags).map(t=>R.jsx(Cfe,{label:t+": "+e.Tags[t]}))});TL.defaultProps={addLabel:!0};var KE={},bke=it;Object.defineProperty(KE,"__esModule",{value:!0});var $L=KE.default=void 0,xke=bke(ct()),wke=R;$L=KE.default=(0,xke.default)((0,wke.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");const $p=({icon:e,title:t,subtitle:r,to:n,children:a})=>R.jsxs(oo,{sx:{minHeight:52,display:"flex",flexDirection:"column",flex:"1","& a":{textDecoration:"none",color:"inherit"}},children:[R.jsx(Fo,{to:n,children:R.jsxs(Qh,{sx:{position:"relative",overflow:"hidden",padding:"16px",display:"flex",justifyContent:"space-between",alignItems:"center","& .icon":{color:"secondary.main"},"&:before":{position:"absolute",top:"50%",left:0,display:"block",content:"''",height:"200%",aspectRatio:"1",transform:"translate(-30%, -60%)",borderRadius:"50%",backgroundColor:"secondary.main",opacity:.15}},children:[R.jsx(Qh,{width:"3em",className:"icon",children:d.createElement(e,{fontSize:"large"})}),R.jsxs(Qh,{textAlign:"right",children:[R.jsx(_t,{color:"textSecondary",children:t}),R.jsx(_t,{variant:"h5",component:"h2",children:r||" "})]})]})}),a&&R.jsx(mg,{}),a]}),Ske=({value:e})=>R.jsx($p,{to:"/jobs",icon:$L,title:"Leader",subtitle:e});var GE={},_ke=it;Object.defineProperty(GE,"__esModule",{value:!0});var kL=GE.default=void 0,Cke=_ke(ct()),Eke=R;kL=GE.default=(0,Cke.default)((0,Eke.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown");const Oke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"failed"}',icon:kL,title:"Failed Jobs",subtitle:e});var QE={},Pke=it;Object.defineProperty(QE,"__esModule",{value:!0});var jL=QE.default=void 0,Rke=Pke(ct()),Tke=R;jL=QE.default=(0,Rke.default)((0,Tke.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp");const $ke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"success"}',icon:jL,title:"Successful Jobs",subtitle:e});var XE={},kke=it;Object.defineProperty(XE,"__esModule",{value:!0});var IL=XE.default=void 0,jke=kke(ct()),Ike=R;IL=XE.default=(0,jke.default)((0,Ike.jsx)("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"}),"NewReleases");const Ake=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"untriggered"}',icon:IL,title:"Untriggered Jobs",subtitle:e}),Mke=({value:e})=>R.jsx($p,{to:"/jobs",icon:Hy,title:"Total Jobs",subtitle:e});let Fke={basePath:"/members",count:10,hasCreate:!1,hasEdit:!1,hasList:!0,hasShow:!1,location:{pathname:"/",search:"",hash:"",state:void 0},match:{path:"/",url:"/",isExact:!0,params:{}},options:{},permissions:null,resource:"members"};const I0={flex:{display:"flex"},flexColumn:{display:"flex",flexDirection:"column"},leftCol:{flex:1,marginRight:"0.5em"},rightCol:{flex:1,marginLeft:"0.5em"},singleCol:{marginTop:"1em",marginBottom:"1em"}},_h=()=>R.jsx("span",{style:{width:"1em"}}),Nke=()=>R.jsxs("div",{children:[R.jsxs(oo,{children:[R.jsx(FT,{title:"Welcome"}),R.jsx(Di,{children:R.jsx("div",{style:I0.flex,children:R.jsx("div",{style:I0.leftCol,children:R.jsxs("div",{style:I0.flex,children:[R.jsx(Ske,{value:window.DKRON_LEADER||"devel"}),R.jsx(_h,{}),R.jsx(Mke,{value:window.DKRON_TOTAL_JOBS||"0"}),R.jsx(_h,{}),R.jsx($ke,{value:window.DKRON_SUCCESSFUL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Oke,{value:window.DKRON_FAILED_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Ake,{value:window.DKRON_UNTRIGGERED_JOBS||"0"})]})})})})]}),R.jsxs(oo,{children:[R.jsx(FT,{title:"Nodes"}),R.jsx(Di,{children:R.jsx(TE,{...Fke,children:R.jsxs(Cp,{isRowSelectable:e=>!1,children:[R.jsx(fr,{source:"Name",sortable:!1}),R.jsx(fr,{source:"Addr",sortable:!1}),R.jsx(fr,{source:"Port",sortable:!1}),R.jsx(fr,{label:"Status",source:"statusText",sortable:!1}),R.jsx(TL,{source:"Tags",sortable:!1})]})})})]})]}),Lke=SL({label:{width:"10em",display:"inline-block"},button:{margin:"1em"}}),Dke=()=>(Lke(),R.jsxs(oo,{children:[R.jsx(dl,{title:"Settings"}),R.jsx(Di,{})]})),Bke=e=>{const[t,r]=d.useState(""),n=X3(),a=ur(),o=R.jsx(By,{}),{className:i}=e,[s,u]=Bn(!1),l=c=>{u(!0),n({token:t}).catch(()=>{u(!1),a("Invalid token")})};return R.jsx(zke,{children:R.jsxs(oo,{className:Cu.card,children:[R.jsx("div",{className:Cu.avatar,children:R.jsx(vg,{className:Cu.icon,children:o})}),R.jsx(Vke,{onSubmit:l,mode:"onChange",noValidate:!0,className:i,children:R.jsxs(Di,{className:Eu.content,children:[R.jsx(Nn,{name:"token",type:"text",value:t,onChange:c=>r(c.target.value)}),R.jsx(hn,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,className:Eu.button,children:s?R.jsx(kc,{className:Eu.icon,size:19,thickness:3}):"Sign in"})]})})]})})},hv="RaLogin",Cu={card:`${hv}-card`,avatar:`${hv}-avatar`,icon:`${hv}-icon`},zke=ne("div",{name:hv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)",[`& .${Cu.card}`]:{minWidth:300,marginTop:"6em"},[`& .${Cu.avatar}`]:{margin:"1em",display:"flex",justifyContent:"center"},[`& .${Cu.icon}`]:{backgroundColor:e.palette.secondary[500]}})),vv="RaLoginForm",Eu={content:`${vv}-content`,button:`${vv}-button`,icon:`${vv}-icon`},Vke=ne(M_,{name:vv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Eu.content}`]:{width:300},[`& .${Eu.button}`]:{marginTop:e.spacing(2)},[`& .${Eu.icon}`]:{margin:e.spacing(.3)}}));sRe();let AL=()=>Promise.resolve();window.DKRON_ACL_ENABLED&&(AL=yke);const Uke=()=>R.jsxs(tRe,{dashboard:Nke,loginPage:Bke,authProvider:AL,dataProvider:yRe,layout:mke,children:[R.jsx(Yl,{name:"jobs",...oke}),R.jsx(Yl,{name:"busy",options:{label:"Busy"},list:ske,icon:nL}),R.jsx(Yl,{name:"executions"}),R.jsx(Yl,{name:"members"}),R.jsx(P3,{children:R.jsx(zr,{path:"/settings",element:R.jsx(Dke,{})})})]});A0.createRoot(document.getElementById("root")).render(R.jsx(ke.StrictMode,{children:R.jsx(Uke,{})})); +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),ye=new(o(47)).Dispatcher,be=new(function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reL&&(Y.style.cursor="pointer",this.state.collapsed&&(re=h.a.createElement("span",null,re.substring(0,L),h.a.createElement("span",M(H,"ellipsis")," ...")))),h.a.createElement("div",M(H,"string"),h.a.createElement(W,Object.assign({type_name:"string"},A)),h.a.createElement("span",Object.assign({className:"string-value"},Y,{onClick:this.toggleCollapsed}),'"',re,'"'))}}]),I}(h.a.PureComponent),He=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){return h.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),I}(h.a.PureComponent);function ht(){return(ht=Object.assign||function(N){for(var D=1;D=0||(vo[kr]=lt[kr]);return vo}(N,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),$e,Ze=me.value!==void 0,tt=Object(b.useRef)(null),St=te(tt,D),st=Object(b.useRef)(0),xt=Object(b.useRef)(),jt=function(){var lt=tt.current,Dt=I&&xt.current?xt.current:function(ot){var Vt=window.getComputedStyle(ot);if(Vt===null)return null;var mr,vt=(mr=Vt,ae.reduce(function(Go,Qo){return Go[Qo]=mr[Qo],Go},{})),Gr=vt.boxSizing;return Gr===""?null:(Z&&Gr==="border-box"&&(vt.width=parseFloat(vt.width)+parseFloat(vt.borderRightWidth)+parseFloat(vt.borderLeftWidth)+parseFloat(vt.paddingRight)+parseFloat(vt.paddingLeft)+"px"),{sizingStyle:vt,paddingSize:parseFloat(vt.paddingBottom)+parseFloat(vt.paddingTop),borderSize:parseFloat(vt.borderBottomWidth)+parseFloat(vt.borderTopWidth)})}(lt);if(Dt){xt.current=Dt;var kr=function(ot,Vt,mr,vt){mr===void 0&&(mr=1),vt===void 0&&(vt=1/0),fe||((fe=document.createElement("textarea")).setAttribute("tab-index","-1"),fe.setAttribute("aria-hidden","true"),de(fe)),fe.parentNode===null&&document.body.appendChild(fe);var Gr=ot.paddingSize,Go=ot.borderSize,Qo=ot.sizingStyle,YE=Qo.boxSizing;Object.keys(Qo).forEach(function(Jy){var pl=Jy;fe.style[pl]=Qo[pl]}),de(fe),fe.value=Vt;var kp=function(Jy,pl){var JE=Jy.scrollHeight;return pl.sizingStyle.boxSizing==="border-box"?JE+pl.borderSize:JE-pl.paddingSize}(fe,ot);fe.value="x";var Qy=fe.scrollHeight-Gr,Xy=Qy*mr;YE==="border-box"&&(Xy=Xy+Gr+Go),kp=Math.max(Xy,kp);var Yy=Qy*vt;return YE==="border-box"&&(Yy=Yy+Gr+Go),[kp=Math.min(Yy,kp),Qy]}(Dt,lt.value||lt.placeholder||"x",L,A),yn=kr[0],vo=kr[1];st.current!==yn&&(st.current=yn,lt.style.setProperty("height",yn+"px","important"),Q(yn,{rowHeight:vo}))}};return Object(b.useLayoutEffect)(jt),$e=V(jt),Object(b.useLayoutEffect)(function(){var lt=function(Dt){$e.current(Dt)};return window.addEventListener("resize",lt),function(){window.removeEventListener("resize",lt)}},[]),Object(b.createElement)("textarea",ht({},me,{onChange:function(lt){Ze||jt(),re(lt)},ref:St}))},le=Object(b.forwardRef)(G);function he(N){N=N.trim();try{if((N=JSON.stringify(JSON.parse(N)))[0]==="[")return Re("array",JSON.parse(N));if(N[0]==="{")return Re("object",JSON.parse(N));if(N.match(/\-?\d+\.\d+/)&&N.match(/\-?\d+\.\d+/)[0]===N)return Re("float",parseFloat(N));if(N.match(/\-?\d+e-\d+/)&&N.match(/\-?\d+e-\d+/)[0]===N)return Re("float",Number(N));if(N.match(/\-?\d+/)&&N.match(/\-?\d+/)[0]===N)return Re("integer",parseInt(N));if(N.match(/\-?\d+e\+\d+/)&&N.match(/\-?\d+e\+\d+/)[0]===N)return Re("integer",Number(N))}catch{}switch(N=N.toLowerCase()){case"undefined":return Re("undefined",void 0);case"nan":return Re("nan",NaN);case"null":return Re("null",null);case"true":return Re("boolean",!0);case"false":return Re("boolean",!1);default:if(N=Date.parse(N))return Re("date",new Date(N))}return Re(!1,null)}function Re(N,D){return{type:N,value:D}}var Be=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),I}(h.a.PureComponent),Ye=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),I}(h.a.PureComponent),je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),Je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),_e=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),I}(h.a.PureComponent),Fe=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),I}(h.a.PureComponent),Ge=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),I}(h.a.PureComponent),nt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),mt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),Ot=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),I}(h.a.PureComponent),kt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),I}(h.a.PureComponent),Pt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent);function at(N){return N||(N={}),{style:u(u({verticalAlign:"middle"},N),{},{color:N.color?N.color:"#000000",height:"1em",width:"1em"})}}var It=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).copiedTimer=null,L.handleCopy=function(){var H=document.createElement("textarea"),re=L.props,Y=re.clickCallback,Q=re.src,me=re.namespace;H.innerHTML=JSON.stringify(L.clipboardValue(Q),null," "),document.body.appendChild(H),H.select(),document.execCommand("copy"),document.body.removeChild(H),L.copiedTimer=setTimeout(function(){L.setState({copied:!1})},5500),L.setState({copied:!0},function(){typeof Y=="function"&&Y({src:Q,namespace:me,name:me[me.length-1]})})},L.getClippyIcon=function(){var H=L.props.theme;return L.state.copied?h.a.createElement("span",null,h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon"))),h.a.createElement("span",M(H,"copy-icon-copied"),"✔")):h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon")))},L.clipboardValue=function(H){switch(P(H)){case"function":case"regexp":return H.toString();default:return H}},L.state={copied:!1},L}return f(I,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var A=this.props,L=(A.src,A.theme),H=A.hidden,re=A.rowHovered,Y=M(L,"copy-to-clipboard").style,Q="inline";return H&&(Q="none"),h.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:re?"inline-block":"none"}},h.a.createElement("span",{style:u(u({},Y),{},{display:Q}),onClick:this.handleCopy},this.getClippyIcon()))}}]),I}(h.a.PureComponent),nr=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).getEditIcon=function(){var H=L.props,re=H.variable,Y=H.theme;return h.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(kt,Object.assign({className:"click-to-edit-icon"},M(Y,"editVarIcon"),{onClick:function(){L.prepopInput(re)}})))},L.prepopInput=function(H){if(L.props.onEdit!==!1){var re=function(Q){var me;switch(P(Q)){case"undefined":me="undefined";break;case"nan":me="NaN";break;case"string":me=Q;break;case"date":case"function":case"regexp":me=Q.toString();break;default:try{me=JSON.stringify(Q,null," ")}catch{me=""}}return me}(H.value),Y=he(re);L.setState({editMode:!0,editValue:re,parsedInput:{type:Y.type,value:Y.value}})}},L.getRemoveIcon=function(){var H=L.props,re=H.variable,Y=H.namespace,Q=H.theme,me=H.rjvId;return h.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(Q,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:me,data:{name:re.name,namespace:Y,existing_value:re.value,variable_removed:!0}})}})))},L.getValue=function(H,re){var Y=!re&&H.type,Q=S(L).props;switch(Y){case!1:return L.getEditInput();case"string":return h.a.createElement(Ae,Object.assign({value:H.value},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:H.value},Q));case"float":return h.a.createElement(q,Object.assign({value:H.value},Q));case"boolean":return h.a.createElement(B,Object.assign({value:H.value},Q));case"function":return h.a.createElement(ve,Object.assign({value:H.value},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:H.value},Q));case"regexp":return h.a.createElement(Ne,Object.assign({value:H.value},Q));default:return h.a.createElement("div",{className:"object-value"},JSON.stringify(H.value))}},L.getEditInput=function(){var H=L.props.theme,re=L.state.editValue;return h.a.createElement("div",null,h.a.createElement(le,Object.assign({type:"text",inputRef:function(Y){return Y&&Y.focus()},value:re,className:"variable-editor",onChange:function(Y){var Q=Y.target.value,me=he(Q);L.setState({editValue:Q,parsedInput:{type:me.type,value:me.value}})},onKeyDown:function(Y){switch(Y.key){case"Escape":L.setState({editMode:!1,editValue:""});break;case"Enter":(Y.ctrlKey||Y.metaKey)&&L.submitEdit(!0)}Y.stopPropagation()},placeholder:"update this value",minRows:2},M(H,"edit-input"))),h.a.createElement("div",M(H,"edit-icon-container"),h.a.createElement(nt,Object.assign({className:"edit-cancel"},M(H,"cancel-icon"),{onClick:function(){L.setState({editMode:!1,editValue:""})}})),h.a.createElement(Pt,Object.assign({className:"edit-check string-value"},M(H,"check-icon"),{onClick:function(){L.submitEdit()}})),h.a.createElement("div",null,L.showDetected())))},L.submitEdit=function(H){var re=L.props,Y=re.variable,Q=re.namespace,me=re.rjvId,$e=L.state,Ze=$e.editValue,tt=$e.parsedInput,St=Ze;H&&tt.type&&(St=tt.value),L.setState({editMode:!1}),ye.dispatch({name:"VARIABLE_UPDATED",rjvId:me,data:{name:Y.name,namespace:Q,existing_value:Y.value,new_value:St,variable_removed:!1}})},L.showDetected=function(){var H=L.props,re=H.theme,Y=(H.variable,H.namespace,H.rjvId,L.state.parsedInput),Q=(Y.type,Y.value,L.getDetectedInput());if(Q)return h.a.createElement("div",null,h.a.createElement("div",M(re,"detected-row"),Q,h.a.createElement(Pt,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},M(re,"check-icon").style),onClick:function(){L.submitEdit(!0)}})))},L.getDetectedInput=function(){var H=L.state.parsedInput,re=H.type,Y=H.value,Q=S(L).props,me=Q.theme;if(re!==!1)switch(re.toLowerCase()){case"object":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"{"),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"}"));case"array":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"["),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"]"));case"string":return h.a.createElement(Ae,Object.assign({value:Y},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:Y},Q));case"float":return h.a.createElement(q,Object.assign({value:Y},Q));case"boolean":return h.a.createElement(B,Object.assign({value:Y},Q));case"function":return h.a.createElement(ve,Object.assign({value:Y},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:new Date(Y)},Q))}},L.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.variable,re=L.singleIndent,Y=L.type,Q=L.theme,me=L.namespace,$e=L.indentWidth,Ze=L.enableClipboard,tt=L.onEdit,St=L.onDelete,st=L.onSelect,xt=L.displayArrayKey,jt=L.quotesOnKeys,lt=this.state.editMode;return h.a.createElement("div",Object.assign({},M(Q,"objectKeyVal",{paddingLeft:$e*re}),{onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))},className:"variable-row",key:H.name}),Y=="array"?xt?h.a.createElement("span",Object.assign({},M(Q,"array-key"),{key:H.name+"_"+me}),H.name,h.a.createElement("div",M(Q,"colon"),":")):null:h.a.createElement("span",null,h.a.createElement("span",Object.assign({},M(Q,"object-name"),{className:"object-key",key:H.name+"_"+me}),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",{style:{display:"inline-block"}},H.name),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(Q,"colon"),":")),h.a.createElement("div",Object.assign({className:"variable-value",onClick:st===!1&&tt===!1?null:function(Dt){var kr=pe(me);(Dt.ctrlKey||Dt.metaKey)&&tt!==!1?A.prepopInput(H):st!==!1&&(kr.shift(),st(u(u({},H),{},{namespace:kr})))}},M(Q,"variableValue",{cursor:st===!1?"default":"pointer"})),this.getValue(H,lt)),Ze?h.a.createElement(It,{rowHovered:this.state.hovered,hidden:lt,src:H.value,clickCallback:Ze,theme:Q,namespace:[].concat(pe(me),[H.name])}):null,tt!==!1&<==0?this.getEditIcon():null,St!==!1&<==0?this.getRemoveIcon():null)}}]),I}(h.a.PureComponent),mn=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re0?Ze:null,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!1,key_name:null};P(tt)==="object"?ye.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:St,data:xt}):ye.dispatch({name:"VARIABLE_ADDED",rjvId:St,data:u(u({},xt),{},{new_value:[].concat(pe(tt),[null])})})}})))},A.getRemoveObject=function(Y){var Q=A.props,me=Q.theme,$e=(Q.hover,Q.namespace),Ze=Q.name,tt=Q.src,St=Q.rjvId;if($e.length!==1)return h.a.createElement("span",{className:"click-to-remove",style:{display:Y?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(me,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:St,data:{name:Ze,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!0}})}})))},A.render=function(){var Y=A.props,Q=Y.theme,me=Y.onDelete,$e=Y.onAdd,Ze=Y.enableClipboard,tt=Y.src,St=Y.namespace,st=Y.rowHovered;return h.a.createElement("div",Object.assign({},M(Q,"object-meta-data"),{className:"object-meta-data",onClick:function(xt){xt.stopPropagation()}}),A.getObjectSize(),Ze?h.a.createElement(It,{rowHovered:st,clickCallback:Ze,src:tt,theme:Q,namespace:St}):null,$e!==!1?A.getAddAttribute(st):null,me!==!1?A.getRemoveObject(st):null)},A}return I}(h.a.PureComponent);function qr(N){var D=N.parent_type,I=N.namespace,A=N.quotesOnKeys,L=N.theme,H=N.jsvRoot,re=N.name,Y=N.displayArrayKey,Q=N.name?N.name:"";return!H||re!==!1&&re!==null?D=="array"?Y?h.a.createElement("span",Object.assign({},M(L,"array-key"),{key:I}),h.a.createElement("span",{className:"array-key"},Q),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null):h.a.createElement("span",Object.assign({},M(L,"object-name"),{key:I}),h.a.createElement("span",{className:"object-key"},A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",null,Q),A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null)}function Nr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(Fe,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));case"square":return h.a.createElement(je,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));default:return h.a.createElement(Be,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}))}}function Tr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(_e,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h.a.createElement(Je,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));default:return h.a.createElement(Ye,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}))}}var Mn=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).toggleCollapsed=function(H){var re=[];for(var Y in L.state.expanded)re.push(L.state.expanded[Y]);re[H]=!re[H],L.setState({expanded:re})},L.state={expanded:[]},L}return f(I,[{key:"getExpandedIcon",value:function(A){var L=this.props,H=L.theme,re=L.iconStyle;return this.state.expanded[A]?h.a.createElement(Nr,{theme:H,iconStyle:re}):h.a.createElement(Tr,{theme:H,iconStyle:re})}},{key:"render",value:function(){var A=this,L=this.props,H=L.src,re=L.groupArraysAfterLength,Y=(L.depth,L.name),Q=L.theme,me=L.jsvRoot,$e=L.namespace,Ze=(L.parent_type,O(L,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tt=0,St=5*this.props.indentWidth;me||(tt=5*this.props.indentWidth);var st=re,xt=Math.ceil(H.length/st);return h.a.createElement("div",Object.assign({className:"object-key-val"},M(Q,me?"jsv-root":"objectKeyVal",{paddingLeft:tt})),h.a.createElement(qr,this.props),h.a.createElement("span",null,h.a.createElement(mn,Object.assign({size:H.length},this.props))),pe(Array(xt)).map(function(jt,lt){return h.a.createElement("div",Object.assign({key:lt,className:"object-key-val array-group"},M(Q,"objectKeyVal",{marginLeft:6,paddingLeft:St})),h.a.createElement("span",M(Q,"brace-row"),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container"),{onClick:function(Dt){A.toggleCollapsed(lt)}}),A.getExpandedIcon(lt)),A.state.expanded[lt]?h.a.createElement($r,Object.assign({key:Y+lt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:st,index_offset:lt*st,src:H.slice(lt*st,lt*st+st),namespace:$e,type:"array",parent_type:"array_group",theme:Q},Ze)):h.a.createElement("span",Object.assign({},M(Q,"brace"),{onClick:function(Dt){A.toggleCollapsed(lt)},className:"array-group-brace"}),"[",h.a.createElement("div",Object.assign({},M(Q,"array-group-meta-data"),{className:"array-group-meta-data"}),h.a.createElement("span",Object.assign({className:"object-size"},M(Q,"object-size")),lt*st," - ",lt*st+st>H.length?H.length:lt*st+st)),"]")))}))}}]),I}(h.a.PureComponent),Kr=function(N){v(I,N);var D=m(I);function I(A){var L;l(this,I),(L=D.call(this,A)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){we.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(re,Y,Q){return h.a.createElement("div",{className:"pushed-content object-container"},h.a.createElement("div",Object.assign({className:"object-content"},M(L.props.theme,"pushed-content")),L.renderObjectContents(Y,Q)))},L.getEllipsis=function(){return L.state.size===0?null:h.a.createElement("div",Object.assign({},M(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(re){var Y=L.props,Q=(Y.rjvId,Y.theme,L.state),me=Q.size,$e=Q.hovered;return h.a.createElement(mn,Object.assign({rowHovered:$e,size:me},L.props))},L.renderObjectContents=function(re,Y){var Q,me=L.props,$e=me.depth,Ze=me.parent_type,tt=me.index_offset,St=me.groupArraysAfterLength,st=me.namespace,xt=L.state.object_type,jt=[],lt=Object.keys(re||{});return L.props.sortKeys&&xt!=="array"&&(lt=lt.sort()),lt.forEach(function(Dt){if(Q=new Ko(Dt,re[Dt]),Ze==="array_group"&&tt&&(Q.name=parseInt(Q.name)+tt),re.hasOwnProperty(Dt))if(Q.type==="object")jt.push(h.a.createElement($r,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),parent_type:xt},Y)));else if(Q.type==="array"){var kr=$r;St&&Q.value.length>St&&(kr=Mn),jt.push(h.a.createElement(kr,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),type:"array",parent_type:xt},Y)))}else jt.push(h.a.createElement(nr,Object.assign({key:Q.name+"_"+st,variable:Q,singleIndent:5,namespace:st,type:L.props.type},Y)))}),jt};var H=I.getState(A);return L.state=u(u({},H),{},{prevProps:{}}),L}return f(I,[{key:"getBraceStart",value:function(A,L){var H=this,re=this.props,Y=re.src,Q=re.theme,me=re.iconStyle;if(re.parent_type==="array_group")return h.a.createElement("span",null,h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{"),L?this.getObjectMetaData(Y):null);var $e=L?Nr:Tr;return h.a.createElement("span",null,h.a.createElement("span",Object.assign({onClick:function(Ze){H.toggleCollapsed()}},M(Q,"brace-row")),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container")),h.a.createElement($e,{theme:Q,iconStyle:me})),h.a.createElement(qr,this.props),h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{")),L?this.getObjectMetaData(Y):null)}},{key:"render",value:function(){var A=this,L=this.props,H=L.depth,re=L.src,Y=(L.namespace,L.name,L.type,L.parent_type),Q=L.theme,me=L.jsvRoot,$e=L.iconStyle,Ze=O(L,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tt=this.state,St=tt.object_type,st=tt.expanded,xt={};return me||Y==="array_group"?Y==="array_group"&&(xt.borderLeft=0,xt.display="inline"):xt.paddingLeft=5*this.props.indentWidth,h.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))}},M(Q,me?"jsv-root":"objectKeyVal",xt)),this.getBraceStart(St,st),st?this.getObjectContent(H,re,u({theme:Q,iconStyle:$e},Ze)):this.getEllipsis(),h.a.createElement("span",{className:"brace-row"},h.a.createElement("span",{style:u(u({},M(Q,"brace").style),{},{paddingLeft:st?"3px":"0px"})},St==="array"?"]":"}"),st?null:this.getObjectMetaData(re)))}}],[{key:"getDerivedStateFromProps",value:function(A,L){var H=L.prevProps;return A.src!==H.src||A.collapsed!==H.collapsed||A.name!==H.name||A.namespace!==H.namespace||A.rjvId!==H.rjvId?u(u({},I.getState(A)),{},{prevProps:A}):null}}]),I}(h.a.PureComponent);Kr.getState=function(N){var D=Object.keys(N.src).length,I=(N.collapsed===!1||N.collapsed!==!0&&N.collapsed>N.depth)&&(!N.shouldCollapse||N.shouldCollapse({name:N.name,src:N.src,type:P(N.src),namespace:N.namespace})===!1)&&D!==0;return{expanded:we.get(N.rjvId,N.namespace,"expanded",I),object_type:N.type==="array"?"array":"object",parent_type:N.type==="array"?"array":"object",size:D,hovered:!1}};var Ko=function N(D,I){l(this,N),this.name=D,this.value=I,this.type=P(I)};w(Kr);var $r=Kr,ho=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reY.groupArraysAfterLength&&(me=Mn),h.a.createElement("div",{className:"pretty-json-container object-container"},h.a.createElement("div",{className:"object-content"},h.a.createElement(me,Object.assign({namespace:Q,depth:0,jsvRoot:!0},Y))))},A}return I}(h.a.PureComponent),X=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).closeModal=function(){ye.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:A.input?A.input:""},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.theme,re=L.rjvId,Y=L.isValid,Q=this.state.input,me=Y(Q);return h.a.createElement("div",Object.assign({className:"key-modal-request"},M(H,"key-modal-request"),{onClick:this.closeModal}),h.a.createElement("div",Object.assign({},M(H,"key-modal"),{onClick:function($e){$e.stopPropagation()}}),h.a.createElement("div",M(H,"key-modal-label"),"Key Name:"),h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("input",Object.assign({},M(H,"key-modal-input"),{className:"key-modal-input",ref:function($e){return $e&&$e.focus()},spellCheck:!1,value:Q,placeholder:"...",onChange:function($e){A.setState({input:$e.target.value})},onKeyPress:function($e){me&&$e.key==="Enter"?A.submit():$e.key==="Escape"&&A.closeModal()}})),me?h.a.createElement(Pt,Object.assign({},M(H,"key-modal-submit"),{className:"key-modal-submit",onClick:function($e){return A.submit()}})):null),h.a.createElement("span",M(H,"key-modal-cancel"),h.a.createElement(Ot,Object.assign({},M(H,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ye.dispatch({rjvId:re,name:"RESET"})}})))))}}]),I}(h.a.PureComponent),ee=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re{const e=_r();return R.jsx(fOe,{...e,children:R.jsx(OL,{})})},U$e=e=>R.jsx(nOe,{...e,children:R.jsx(OL,{})}),OL=e=>R.jsxs(gOe,{...e,children:[R.jsx(Nn,{disabled:!0,source:"id",helperText:"Job id. Must be unique, it's a copy of name."}),R.jsx(Nn,{source:"name",helperText:"Job name. Must be unique, acts as the id.",validate:Xl()}),R.jsx(Nn,{source:"displayname",helperText:"Display name of the job. If present, displayed instead of the name."}),R.jsx(Nn,{source:"timezone",helperText:"The timezone where the cron expression will be evaluated in."}),R.jsx(Nn,{source:"schedule",helperText:"Cron expression for the job. When to run the job.",validate:Xl()}),R.jsx(Nn,{source:"owner",helperText:"Arbitrary string indicating the owner of the job.",disabled:!0}),R.jsx(Nn,{source:"owner_email",helperText:"Email address to use for notifications."}),R.jsx(Nn,{source:"parent_job",helperText:"Job id of job that this job is dependent upon."}),R.jsx(rw,{source:"ephemeral",helperText:"Delete the job after the first successful execution."}),R.jsx(REe,{source:"expires_at",helperText:"The job will not be executed after this time."}),R.jsx(bN,{source:"concurrency",choices:[{id:"allow",name:"Allow"},{id:"forbid",name:"Forbid"}],helperText:"Concurrency policy for this job (allow, forbid)."}),R.jsx(Sh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Processor plugins to use for this job."}),R.jsx(Sh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Tags of the target servers to run this job against."}),R.jsx(Sh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Job metadata describes the job and allows filtering from the API."}),R.jsx(Nn,{source:"executor",helperText:"Executor plugin to be used in this job.",validate:Xl()}),R.jsx(Sh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!0,enableClipboard:!1,displayDataTypes:!1},helperText:"Configuration arguments for the specific executor.",validate:Xl()}),R.jsx(rw,{source:"disabled",helperText:"Is this job disabled?"}),R.jsx(NEe,{source:"retries",helperText:"Number of times to retry a job that failed an execution."})]});var WE={},W$e=it;Object.defineProperty(WE,"__esModule",{value:!0});var PL=WE.default=void 0,H$e=W$e(ct()),q$e=R;PL=WE.default=(0,H$e.default)((0,q$e.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const K$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}/toggle`,{method:"POST"}).then(()=>{r("Job toggled"),t()}).catch(i=>{r("Error on toggle job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Toggle",onClick:o,disabled:n,children:R.jsx(PL,{})})},G$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}`,{method:"POST"}).then(()=>{r("Success running job"),t()}).catch(i=>{r("Error on running job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Run",onClick:o,disabled:n,children:R.jsx(Ky,{})})},Q$e=e=>(e.record!==void 0&&e.source!==void 0&&e.record[e.source]==="0001-01-01T00:00:00Z"&&(e.record[e.source]=null),R.jsx(Ya,{...e}));var HE={},X$e=it;Object.defineProperty(HE,"__esModule",{value:!0});var RL=HE.default=void 0,Y$e=X$e(ct()),J$e=R;RL=HE.default=(0,Y$e.default)((0,J$e.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"}),"BatteryFull");const Z$e=({basePath:e,data:t,resource:r})=>R.jsxs(F5,{children:[R.jsx(G$e,{}),R.jsx(K$e,{}),R.jsx(uE,{record:t})]}),eke=e=>e.record!==void 0&&e.record.finished_at===null?R.jsx(kn,{title:"Running",children:R.jsx(Wy,{})}):R.jsx(_N,{...e}),tke=({record:e})=>{const t=ur(),[r,n]=d.useState(!1),a=()=>{n(!0),fetch(`${fl}/jobs/${e.job_name}/executions/${e.id}`).then(o=>{if(o.ok)return t("Success loading full output"),o.json();throw o}).then(o=>{e.output_truncated=!1,e.output=o.output}).catch(o=>{t("Error on loading full output",{type:"warning"})}).finally(()=>{n(!1)})};return R.jsx(Hr,{label:"Load full output",onClick:a,disabled:r,children:R.jsx(RL,{})})},rke=({id:e,record:t,resource:r})=>R.jsxs("div",{className:"execution-output",children:[t.output_truncated?R.jsx("div",{children:R.jsx(tke,{record:t})}):"",t.output||"Nothing to show"]}),nke=e=>R.jsx(TOe,{actions:R.jsx(Z$e,{...e}),...e,children:R.jsxs(kN,{children:[R.jsxs(Pw,{label:"summary",children:[R.jsx(fr,{source:"name"}),R.jsx(fr,{source:"timezone"}),R.jsx(fr,{source:"schedule"}),R.jsx(Ya,{label:"Last success",source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(fr,{source:"status"}),R.jsx(fr,{source:"concurrency"}),R.jsx(_N,{source:"ephemeral"}),R.jsx(Ya,{source:"expires_at",showTime:!0}),R.jsx(Ya,{source:"next",sortable:!1,showTime:!0}),R.jsx(wh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1}}),R.jsx(fr,{source:"executor"}),R.jsx(wh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}})]}),R.jsx(Pw,{label:"executions",path:"executions",children:R.jsx(qOe,{reference:"executions",target:"jobs",label:"Executions",children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(rke,{...e}),children:[R.jsx(fr,{source:"id"}),R.jsx(fr,{source:"group",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(Ya,{source:"started_at",showTime:!0}),R.jsx(Q$e,{source:"finished_at",showTime:!0}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(eke,{source:"success",sortable:!1}),R.jsx(qd,{source:"attempt"})]})})})]})}),ake={list:B$e,edit:V$e,create:U$e,show:nke,icon:Wy},oke=({id:e,record:t,resource:r})=>R.jsx("div",{className:"execution-output",children:t.output||"Empty output"}),ike=e=>R.jsx(TE,{...e,pagination:!1,children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(oke,{}),children:[R.jsx(fr,{source:"id",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(Ya,{source:"started_at",sortable:!1,showTime:!0})]})});var qE={},ske=it;Object.defineProperty(qE,"__esModule",{value:!0});var TL=qE.default=void 0,lke=ske(ct()),uke=R;TL=qE.default=(0,lke.default)((0,uke.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book");class cke extends d.Component{constructor(t){super(t),this.state={date:new Date}}componentDidMount(){this.timer=setInterval(()=>this.setState({date:new Date}),1e3)}componentWillUnmount(){clearInterval(this.timer)}render(){return R.jsx("div",{className:"clock",children:R.jsx("div",{children:this.state.date.toLocaleTimeString()})})}}const dke=""+new URL("dkron-logo-2b1c801f.png",import.meta.url).href,j0="CustomAppBar",_u={title:`${j0}-title`,spacer:`${j0}-spacer`,logo:`${j0}-logo`},fke=ne(v5)({[`& .${_u.title}`]:{flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[`& .${_u.spacer}`]:{flex:1},[`& .${_u.logo}`]:{maxWidth:"125px"}});d.forwardRef((e,t)=>R.jsx(xp,{ref:t,to:"/settings",primaryText:"Settings",leftIcon:R.jsx(eE,{}),onClick:e.onClick}));const pke=e=>R.jsx(UC,{...e,children:R.jsx(xp,{to:"https://dkron.io/docs/basics/getting-started",primaryText:"Docs",leftIcon:R.jsx(TL,{})})}),hke=e=>R.jsxs(fke,{...e,elevation:1,userMenu:R.jsx(pke,{}),children:[R.jsx(_t,{variant:"h6",color:"inherit",className:_u.title,id:"react-admin-title"}),R.jsx("div",{children:R.jsx(VOe,{to:"/",color:"inherit",underline:"none",children:R.jsx("img",{src:dke,alt:"logo",className:_u.logo})})}),R.jsx("span",{className:_u.spacer}),R.jsx(cke,{})]}),vke=e=>R.jsx(P5,{...e,size:200}),gke=e=>R.jsx(I5,{...e,appBar:hke,sidebar:vke});const mke={login:({token:e})=>(localStorage.setItem("token",e),Promise.resolve()),logout:()=>(localStorage.removeItem("token"),Promise.resolve()),checkAuth:()=>localStorage.getItem("token")?Promise.resolve():Promise.reject(),checkError:e=>{const t=e.status;return t===401||t===403?(localStorage.removeItem("token"),Promise.reject()):Promise.resolve()},getIdentity:()=>Promise.resolve(),getPermissions:()=>Promise.resolve()},$L=({record:e})=>e===void 0?null:R.jsx("ul",{children:Object.keys(e.Tags).map(t=>R.jsx(Cfe,{label:t+": "+e.Tags[t]}))});$L.defaultProps={addLabel:!0};var KE={},yke=it;Object.defineProperty(KE,"__esModule",{value:!0});var kL=KE.default=void 0,bke=yke(ct()),xke=R;kL=KE.default=(0,bke.default)((0,xke.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");const $p=({icon:e,title:t,subtitle:r,to:n,children:a})=>R.jsxs(oo,{sx:{minHeight:52,display:"flex",flexDirection:"column",flex:"1","& a":{textDecoration:"none",color:"inherit"}},children:[R.jsx(Fo,{to:n,children:R.jsxs(Qh,{sx:{position:"relative",overflow:"hidden",padding:"16px",display:"flex",justifyContent:"space-between",alignItems:"center","& .icon":{color:"secondary.main"},"&:before":{position:"absolute",top:"50%",left:0,display:"block",content:"''",height:"200%",aspectRatio:"1",transform:"translate(-30%, -60%)",borderRadius:"50%",backgroundColor:"secondary.main",opacity:.15}},children:[R.jsx(Qh,{width:"3em",className:"icon",children:d.createElement(e,{fontSize:"large"})}),R.jsxs(Qh,{textAlign:"right",children:[R.jsx(_t,{color:"textSecondary",children:t}),R.jsx(_t,{variant:"h5",component:"h2",children:r||" "})]})]})}),a&&R.jsx(gg,{}),a]}),wke=({value:e})=>R.jsx($p,{to:"/jobs",icon:kL,title:"Leader",subtitle:e});var GE={},Ske=it;Object.defineProperty(GE,"__esModule",{value:!0});var jL=GE.default=void 0,_ke=Ske(ct()),Cke=R;jL=GE.default=(0,_ke.default)((0,Cke.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown");const Eke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"failed"}',icon:jL,title:"Failed Jobs",subtitle:e});var QE={},Oke=it;Object.defineProperty(QE,"__esModule",{value:!0});var IL=QE.default=void 0,Pke=Oke(ct()),Rke=R;IL=QE.default=(0,Pke.default)((0,Rke.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp");const Tke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"success"}',icon:IL,title:"Successful Jobs",subtitle:e});var XE={},$ke=it;Object.defineProperty(XE,"__esModule",{value:!0});var AL=XE.default=void 0,kke=$ke(ct()),jke=R;AL=XE.default=(0,kke.default)((0,jke.jsx)("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"}),"NewReleases");const Ike=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"untriggered"}',icon:AL,title:"Untriggered Jobs",subtitle:e}),Ake=({value:e})=>R.jsx($p,{to:"/jobs",icon:Wy,title:"Total Jobs",subtitle:e});let Mke={basePath:"/members",count:10,hasCreate:!1,hasEdit:!1,hasList:!0,hasShow:!1,location:{pathname:"/",search:"",hash:"",state:void 0},match:{path:"/",url:"/",isExact:!0,params:{}},options:{},permissions:null,resource:"members"};const I0={flex:{display:"flex"},flexColumn:{display:"flex",flexDirection:"column"},leftCol:{flex:1,marginRight:"0.5em"},rightCol:{flex:1,marginLeft:"0.5em"},singleCol:{marginTop:"1em",marginBottom:"1em"}},_h=()=>R.jsx("span",{style:{width:"1em"}}),Fke=()=>R.jsxs("div",{children:[R.jsxs(oo,{children:[R.jsx(FT,{title:"Welcome"}),R.jsx(Di,{children:R.jsx("div",{style:I0.flex,children:R.jsx("div",{style:I0.leftCol,children:R.jsxs("div",{style:I0.flex,children:[R.jsx(wke,{value:window.DKRON_LEADER||"devel"}),R.jsx(_h,{}),R.jsx(Ake,{value:window.DKRON_TOTAL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Tke,{value:window.DKRON_SUCCESSFUL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Eke,{value:window.DKRON_FAILED_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Ike,{value:window.DKRON_UNTRIGGERED_JOBS||"0"})]})})})})]}),R.jsxs(oo,{children:[R.jsx(FT,{title:"Nodes"}),R.jsx(Di,{children:R.jsx(TE,{...Mke,children:R.jsxs(Cp,{isRowSelectable:e=>!1,children:[R.jsx(fr,{source:"Name",sortable:!1}),R.jsx(fr,{source:"Addr",sortable:!1}),R.jsx(fr,{source:"Port",sortable:!1}),R.jsx(fr,{label:"Status",source:"statusText",sortable:!1}),R.jsx($L,{source:"Tags",sortable:!1})]})})})]})]}),Nke=_L({label:{width:"10em",display:"inline-block"},button:{margin:"1em"}}),Lke=()=>(Nke(),R.jsxs(oo,{children:[R.jsx(dl,{title:"Settings"}),R.jsx(Di,{})]})),Dke=e=>{const[t,r]=d.useState(""),n=Y3(),a=ur(),o=R.jsx(Dy,{}),{className:i}=e,[s,u]=Bn(!1),l=c=>{u(!0),n({token:t}).catch(()=>{u(!1),a("Invalid token")})};return R.jsx(Bke,{children:R.jsxs(oo,{className:Cu.card,children:[R.jsx("div",{className:Cu.avatar,children:R.jsx(hg,{className:Cu.icon,children:o})}),R.jsx(zke,{onSubmit:l,mode:"onChange",noValidate:!0,className:i,children:R.jsxs(Di,{className:Eu.content,children:[R.jsx(Nn,{name:"token",type:"text",value:t,onChange:c=>r(c.target.value)}),R.jsx(hn,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,className:Eu.button,children:s?R.jsx(kc,{className:Eu.icon,size:19,thickness:3}):"Sign in"})]})})]})})},pv="RaLogin",Cu={card:`${pv}-card`,avatar:`${pv}-avatar`,icon:`${pv}-icon`},Bke=ne("div",{name:pv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)",[`& .${Cu.card}`]:{minWidth:300,marginTop:"6em"},[`& .${Cu.avatar}`]:{margin:"1em",display:"flex",justifyContent:"center"},[`& .${Cu.icon}`]:{backgroundColor:e.palette.secondary[500]}})),hv="RaLoginForm",Eu={content:`${hv}-content`,button:`${hv}-button`,icon:`${hv}-icon`},zke=ne(M_,{name:hv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Eu.content}`]:{width:300},[`& .${Eu.button}`]:{marginTop:e.spacing(2)},[`& .${Eu.icon}`]:{margin:e.spacing(.3)}}));iRe();const Vke=()=>R.jsxs(eRe,{dashboard:Fke,loginPage:Dke,authProvider:window.DKRON_ACL_ENABLED?mke:void 0,dataProvider:mRe,layout:gke,children:[R.jsx(Yl,{name:"jobs",...ake}),R.jsx(Yl,{name:"busy",options:{label:"Busy"},list:ike,icon:aL}),R.jsx(Yl,{name:"executions"}),R.jsx(Yl,{name:"members"}),R.jsx(R3,{children:R.jsx(zr,{path:"/settings",element:R.jsx(Lke,{})})})]});A0.createRoot(document.getElementById("root")).render(R.jsx(ke.StrictMode,{children:R.jsx(Vke,{})})); diff --git a/dkron/ui-dist/index.html b/dkron/ui-dist/index.html index 2f7415ecb..372fe63f4 100644 --- a/dkron/ui-dist/index.html +++ b/dkron/ui-dist/index.html @@ -9,7 +9,7 @@ - ui + Dkron