dealposbooks 5.33.2 → 5.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/3rdpartylicenses.txt +15 -15
  2. package/{chunk-YDEVG4CR.js → chunk-2KERKGCG.js} +1 -1
  3. package/chunk-2NODLQR6.js +1 -0
  4. package/{chunk-BPAXVUBR.js → chunk-2YCI2ZLH.js} +1 -1
  5. package/{chunk-Q33XIUDN.js → chunk-3NU3P6NL.js} +1 -1
  6. package/{chunk-EDCDR4RJ.js → chunk-3VJJTR55.js} +1 -1
  7. package/{chunk-5R3XKSDM.js → chunk-4CDAAU6Z.js} +1 -1
  8. package/{chunk-42UIGXWH.js → chunk-4DOELXOP.js} +1 -1
  9. package/chunk-4QYZNOBR.js +160 -0
  10. package/chunk-4WMH4AEV.js +1 -0
  11. package/{chunk-EXGI2AG7.js → chunk-5E7SENLI.js} +1 -1
  12. package/{chunk-67VPWIWW.js → chunk-5FSMHZSY.js} +1 -1
  13. package/{chunk-R2SYW2WU.js → chunk-5MWVNA7L.js} +2 -2
  14. package/{chunk-KJ6CKUEI.js → chunk-5XDCBC5Q.js} +1 -1
  15. package/chunk-6DNEPPVS.js +129 -0
  16. package/chunk-6NTWTJMB.js +1 -0
  17. package/chunk-6OLVNISY.js +202 -0
  18. package/chunk-6XMT5N3G.js +1 -0
  19. package/{chunk-HHJMN4BS.js → chunk-AACWH3EJ.js} +1 -1
  20. package/{chunk-ABBBWSSO.js → chunk-B46T5XRJ.js} +1 -1
  21. package/{chunk-2CSSUKCF.js → chunk-BBQJC5RS.js} +1 -1
  22. package/chunk-BG6PUELE.js +1 -0
  23. package/{chunk-HICPZPJI.js → chunk-BGOI3WIG.js} +1 -1
  24. package/{chunk-VFEEFGWW.js → chunk-BLQJXMNV.js} +1 -1
  25. package/{chunk-6UGXXSQ3.js → chunk-BV4GM72W.js} +1 -1
  26. package/chunk-BY6QUHQI.js +1 -0
  27. package/{chunk-AZUQDRJU.js → chunk-DHW7UHFT.js} +1 -1
  28. package/{chunk-LRRVQSMI.js → chunk-DLUALPHU.js} +1 -1
  29. package/{chunk-PI5RBOCG.js → chunk-E7RUVUID.js} +1 -1
  30. package/chunk-ED5LANRC.js +1 -0
  31. package/{chunk-QYXQYPHB.js → chunk-EDGADVEY.js} +1 -1
  32. package/chunk-FIK2YCVV.js +1 -0
  33. package/{chunk-YOUPD27G.js → chunk-FLZXCWDU.js} +1 -1
  34. package/{chunk-GH5Z5SPB.js → chunk-FUZFAJGJ.js} +1 -1
  35. package/{chunk-FMVCTBCQ.js → chunk-G5S5AZA7.js} +4 -4
  36. package/{chunk-PKN47FQE.js → chunk-GDX5XEV3.js} +1 -1
  37. package/chunk-GDXGKHOL.js +1 -0
  38. package/chunk-GGVVJNM3.js +1 -0
  39. package/{chunk-4LGDNQMZ.js → chunk-H57SDRPH.js} +1 -1
  40. package/chunk-HIPJS62A.js +1 -0
  41. package/chunk-HJU5H3BY.js +1 -0
  42. package/chunk-HO4P24NF.js +1 -0
  43. package/chunk-ID36VIZQ.js +1 -0
  44. package/chunk-IDW6F2F3.js +1 -0
  45. package/chunk-IICRNXZ2.js +1 -0
  46. package/chunk-J7NE4FZG.js +1 -0
  47. package/chunk-JF4X2NRA.js +1 -0
  48. package/{chunk-JBSIAXM5.js → chunk-JMEBBWX4.js} +1 -1
  49. package/{chunk-FBEBMNVC.js → chunk-JTDJJORR.js} +1 -1
  50. package/{chunk-J4XRJAME.js → chunk-JYCUE5HV.js} +1 -1
  51. package/{chunk-WTBARN66.js → chunk-KL455HIW.js} +3 -3
  52. package/{chunk-JL2CN3ZY.js → chunk-LGRJSELQ.js} +1 -1
  53. package/{chunk-QCLAOAVG.js → chunk-LWLJZPBI.js} +1 -1
  54. package/{chunk-6NGIQJIP.js → chunk-LZUGPBFD.js} +1 -1
  55. package/chunk-MQDQSWR6.js +1 -0
  56. package/chunk-MXNRSORU.js +1 -0
  57. package/chunk-NEXPS7KD.js +1 -0
  58. package/{chunk-TVNXFJII.js → chunk-NJO5TWIA.js} +1 -1
  59. package/{chunk-RPPLUBX5.js → chunk-NMVZFOQ7.js} +1 -1
  60. package/chunk-NUTKQRB6.js +1 -0
  61. package/chunk-NXXA2OTE.js +1 -0
  62. package/chunk-OGLSZ3RG.js +1 -0
  63. package/chunk-OKCHQM5Q.js +2 -0
  64. package/{chunk-GY4LV6HX.js → chunk-PVXR4USB.js} +1 -1
  65. package/{chunk-YO23YVSC.js → chunk-Q23KXB3T.js} +1 -1
  66. package/chunk-QZUCPIZP.js +1 -0
  67. package/{chunk-6LENP6AB.js → chunk-RN2UFUFZ.js} +1 -1
  68. package/{chunk-OLOVFS3Y.js → chunk-S6X7PJAB.js} +1 -1
  69. package/{chunk-BMBVCXB4.js → chunk-SLHUSJER.js} +1 -1
  70. package/{chunk-EW3R2HAB.js → chunk-SVXDMOLP.js} +1 -1
  71. package/{chunk-BLJMNWUM.js → chunk-SY6XFKYM.js} +1 -1
  72. package/{chunk-33PMTNWY.js → chunk-T4EHT3H4.js} +1 -1
  73. package/chunk-TF5WKDAX.js +1 -0
  74. package/chunk-U2LBDVNR.js +1 -0
  75. package/{chunk-MWDWM2EU.js → chunk-UQZHGK5W.js} +1 -1
  76. package/chunk-UW2MQD5Q.js +130 -0
  77. package/{chunk-BDDB5AS7.js → chunk-VS7EWHRJ.js} +1 -1
  78. package/{chunk-NA5YXAMJ.js → chunk-VVUSFS6O.js} +1 -1
  79. package/chunk-WSOH6CXK.js +180 -0
  80. package/chunk-WURLP7FN.js +1 -0
  81. package/{chunk-C7LM5UCK.js → chunk-X22YKT5B.js} +1 -1
  82. package/{chunk-B7WHT2EP.js → chunk-XAWSZFE3.js} +4 -4
  83. package/chunk-XFEO3TKF.js +1 -0
  84. package/{chunk-SUYXXZHZ.js → chunk-XMMQFUBI.js} +1 -1
  85. package/chunk-XSPQTUYD.js +1 -0
  86. package/chunk-Y5C5TOKB.js +1 -0
  87. package/chunk-YDTKSUC7.js +1 -0
  88. package/{chunk-2PDTOOPI.js → chunk-YEUGY3NM.js} +1 -1
  89. package/chunk-YL2UL62U.js +7 -0
  90. package/{chunk-P7Z64VPC.js → chunk-YPBGL37O.js} +1 -1
  91. package/{chunk-HHDFSN55.js → chunk-YYDAQ7AW.js} +1 -1
  92. package/{chunk-YRCXWYJC.js → chunk-YYVQS5LF.js} +1 -1
  93. package/chunk-Z45NTTES.js +1 -0
  94. package/{chunk-253IFSMV.js → chunk-ZTEDQLOG.js} +1 -1
  95. package/index.html +35 -2
  96. package/main-JOMQDR5F.js +1 -0
  97. package/package.json +1 -1
  98. package/chunk-2WBUZJAU.js +0 -1
  99. package/chunk-452RR3Q5.js +0 -1
  100. package/chunk-4BWEZFB4.js +0 -1
  101. package/chunk-4W2QF5R5.js +0 -130
  102. package/chunk-5R5OXGVI.js +0 -1
  103. package/chunk-62S343UQ.js +0 -1
  104. package/chunk-6ACYDH2N.js +0 -1
  105. package/chunk-7MHKOL2S.js +0 -129
  106. package/chunk-AGLKA7OG.js +0 -1
  107. package/chunk-AWXT2WGR.js +0 -180
  108. package/chunk-B63BKC6F.js +0 -2
  109. package/chunk-GQWMJTTS.js +0 -1
  110. package/chunk-GYKMLBSE.js +0 -1
  111. package/chunk-HD2SASNC.js +0 -1
  112. package/chunk-HNPBGZU4.js +0 -1
  113. package/chunk-JMFWGTOZ.js +0 -1
  114. package/chunk-JT7FHN7T.js +0 -1
  115. package/chunk-LMNTEWLI.js +0 -1
  116. package/chunk-LRQ6Z4ZX.js +0 -1
  117. package/chunk-MNFWDRDS.js +0 -1
  118. package/chunk-N7OV4C3V.js +0 -1
  119. package/chunk-NI56PZU2.js +0 -1
  120. package/chunk-OD62LD7H.js +0 -160
  121. package/chunk-OLUQUWUK.js +0 -1
  122. package/chunk-P37DL4A6.js +0 -1
  123. package/chunk-PBN5IYNX.js +0 -1
  124. package/chunk-PDFK6YU3.js +0 -1
  125. package/chunk-Q25US4N2.js +0 -1
  126. package/chunk-QAQ2CXF3.js +0 -202
  127. package/chunk-RPZIOMLU.js +0 -1
  128. package/chunk-RVEUNKOZ.js +0 -1
  129. package/chunk-SHEVSJ34.js +0 -1
  130. package/chunk-U2WKXQQF.js +0 -1
  131. package/chunk-UEWFM35O.js +0 -1
  132. package/chunk-VAXEGESW.js +0 -1
  133. package/chunk-VXM4FDHN.js +0 -7
  134. package/chunk-Y6H6VNCN.js +0 -1
  135. package/chunk-ZGXJEG37.js +0 -1
  136. package/chunk-ZXCNQW44.js +0 -1
  137. package/main-GHHA6Y2C.js +0 -1
package/chunk-B63BKC6F.js DELETED
@@ -1,2 +0,0 @@
1
- import{$ as S,$a as no,$c as So,Aa as te,Ba as yr,D as ae,Da as Hi,Db as Sr,Ea as Le,Eb as ln,Fb as lo,Gb as Rr,Ha as Gi,Hb as Rt,I as Ce,Ia as wr,Ib as bt,J as me,Ja as qi,Jb as ho,Ka as nt,M as fr,Ma as Cr,N as Qe,Na as Wi,Nc as Do,Oa as Zi,Pa as Ct,Pc as br,Q as et,Qc as ze,R as Ee,Ra as Yi,Rc as yo,S as pr,Sa as Et,Sc as wo,T as Ui,Ta as ke,Tc as Co,U as Bi,Ua as rt,Uc as Eo,Va as Ki,Vc as At,W as ji,Wa as Xi,Wb as fo,X as G,Xa as Ji,Xc as Ar,Y as $i,Ya as Qi,Z as L,Za as eo,_a as to,a as Oi,ab as xe,ba as D,bc as q,c as Pi,ca as Oe,cc as F,d as Ni,da as zi,db as ro,dc as po,e as lr,ea as E,f as dr,fa as gr,g as ee,ga as v,h as K,ha as d,hb as Ue,ia as tt,ib as Er,jc as go,k as ge,ka as Vi,kb as io,l as x,la as Se,lb as Be,lc as mo,m as g,ma as X,mb as T,mc as vo,n as yt,nb as oo,o as Li,oa as Re,ob as je,p as ki,s as b,sb as so,t as an,ta as mr,tb as ao,u as j,ua as vr,ub as uo,v as wt,va as Pe,vb as cn,w as xi,wa as Dr,wb as co,x as hr,xb as $e,ya as un,yb as J,za as Ne,zb as St}from"./chunk-JP6RBSB3.js";import{a as f,b as B,c as Fi}from"./chunk-YQFG5XE2.js";var O=new E("");var Ao=null;function ve(){return Ao}function Tr(t){Ao??=t}var Tt=class{},_t=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(To),providedIn:"platform"})}return t})(),_r=new E(""),To=(()=>{class t extends _t{_location;_history;_doc=d(O);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ve().getBaseHref(this._doc)}onPopState(e){let n=ve().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=ve().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,i){this._history.pushState(e,n,i)}replaceState(e,n,i){this._history.replaceState(e,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function dn(t,r){return t?r?t.endsWith("/")?r.startsWith("/")?t+r.slice(1):t+r:r.startsWith("/")?t+r:`${t}/${r}`:t:r}function Ro(t){let r=t.search(/#|\?|$/);return t[r-1]==="/"?t.slice(0,r-1)+t.slice(r):t}function ne(t){return t&&t[0]!=="?"?`?${t}`:t}var re=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(fn),providedIn:"root"})}return t})(),hn=new E(""),fn=(()=>{class t extends re{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??d(O).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return dn(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ne(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${n}${i}`:n}pushState(e,n,i,o){let s=this.prepareExternalUrl(i+ne(o));this._platformLocation.pushState(e,n,s)}replaceState(e,n,i,o){let s=this.prepareExternalUrl(i+ne(o));this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(v(_t),v(hn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),be=(()=>{class t{_subject=new ee;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=Ra(Ro(bo(n))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ne(n))}normalize(e){return t.stripTrailingSlash(Sa(this._basePath,bo(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",i=null){this._locationStrategy.pushState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ne(n)),i)}replaceState(e,n="",i=null){this._locationStrategy.replaceState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ne(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(i=>i(e,n))}subscribe(e,n,i){return this._subject.subscribe({next:e,error:n??void 0,complete:i??void 0})}static normalizeQueryParams=ne;static joinWithSlash=dn;static stripTrailingSlash=Ro;static \u0275fac=function(n){return new(n||t)(v(re))};static \u0275prov=D({token:t,factory:()=>Ea(),providedIn:"root"})}return t})();function Ea(){return new be(v(re))}function Sa(t,r){if(!t||!r.startsWith(t))return r;let e=r.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function bo(t){return t.replace(/\/index.html$/,"")}function Ra(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var xr=(()=>{class t extends re{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=dn(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,i,o){let s=this.prepareExternalUrl(i+ne(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,s)}replaceState(e,n,i,o){let s=this.prepareExternalUrl(i+ne(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(v(_t),v(hn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var Ur=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Ur||{});var U=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(U||{}),_=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(_||{}),$=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}($||{}),z={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function No(t){return q(t)[F.LocaleId]}function Lo(t,r,e){let n=q(t),i=[n[F.DayPeriodsFormat],n[F.DayPeriodsStandalone]],o=Q(i,r);return Q(o,e)}function ko(t,r,e){let n=q(t),i=[n[F.DaysFormat],n[F.DaysStandalone]],o=Q(i,r);return Q(o,e)}function xo(t,r,e){let n=q(t),i=[n[F.MonthsFormat],n[F.MonthsStandalone]],o=Q(i,r);return Q(o,e)}function Uo(t,r){let n=q(t)[F.Eras];return Q(n,r)}function It(t,r){let e=q(t);return Q(e[F.DateFormat],r)}function Mt(t,r){let e=q(t);return Q(e[F.TimeFormat],r)}function Ft(t,r){let n=q(t)[F.DateTimeFormat];return Q(n,r)}function ue(t,r){let e=q(t),n=e[F.NumberSymbols][r];if(typeof n>"u"){if(r===z.CurrencyDecimal)return e[F.NumberSymbols][z.Decimal];if(r===z.CurrencyGroup)return e[F.NumberSymbols][z.Group]}return n}function Bo(t,r){return q(t)[F.NumberFormats][r]}function jo(t){if(!t[F.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[F.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $o(t){let r=q(t);return jo(r),(r[F.ExtraData][2]||[]).map(n=>typeof n=="string"?Ir(n):[Ir(n[0]),Ir(n[1])])}function zo(t,r,e){let n=q(t);jo(n);let i=[n[F.ExtraData][0],n[F.ExtraData][1]],o=Q(i,r)||[];return Q(o,e)||[]}function Q(t,r){for(let e=r;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function Ir(t){let[r,e]=t.split(":");return{hours:+r,minutes:+e}}var ba=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pn={},Aa=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Vo(t,r,e,n){let i=La(t);r=De(e,r)||r;let s=[],a;for(;r;)if(a=Aa.exec(r),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;r=l}else{s.push(r);break}let u=i.getTimezoneOffset();n&&(u=Go(n,u),i=Na(i,n));let c="";return s.forEach(l=>{let h=Oa(l);c+=h?h(i,e,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function yn(t,r,e){let n=new Date(0);return n.setFullYear(t,r,e),n.setHours(0,0,0),n}function De(t,r){let e=No(t);if(pn[e]??={},pn[e][r])return pn[e][r];let n="";switch(r){case"shortDate":n=It(t,$.Short);break;case"mediumDate":n=It(t,$.Medium);break;case"longDate":n=It(t,$.Long);break;case"fullDate":n=It(t,$.Full);break;case"shortTime":n=Mt(t,$.Short);break;case"mediumTime":n=Mt(t,$.Medium);break;case"longTime":n=Mt(t,$.Long);break;case"fullTime":n=Mt(t,$.Full);break;case"short":let i=De(t,"shortTime"),o=De(t,"shortDate");n=gn(Ft(t,$.Short),[i,o]);break;case"medium":let s=De(t,"mediumTime"),a=De(t,"mediumDate");n=gn(Ft(t,$.Medium),[s,a]);break;case"long":let u=De(t,"longTime"),c=De(t,"longDate");n=gn(Ft(t,$.Long),[u,c]);break;case"full":let l=De(t,"fullTime"),h=De(t,"fullDate");n=gn(Ft(t,$.Full),[l,h]);break}return n&&(pn[e][r]=n),n}function gn(t,r){return r&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return r!=null&&n in r?r[n]:e})),t}function ie(t,r,e="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=e));let s=String(t);for(;s.length<r;)s="0"+s;return n&&(s=s.slice(s.length-r)),o+s}function Ta(t,r){return ie(t,3).substring(0,r)}function P(t,r,e=0,n=!1,i=!1){return function(o,s){let a=_a(t,o);if((e>0||a>-e)&&(a+=e),t===3)a===0&&e===-12&&(a=12);else if(t===6)return Ta(a,r);let u=ue(s,z.MinusSign);return ie(a,r,u,n,i)}}function _a(t,r){switch(t){case 0:return r.getFullYear();case 1:return r.getMonth();case 2:return r.getDate();case 3:return r.getHours();case 4:return r.getMinutes();case 5:return r.getSeconds();case 6:return r.getMilliseconds();case 7:return r.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function M(t,r,e=U.Format,n=!1){return function(i,o){return Ia(i,o,t,r,e,n)}}function Ia(t,r,e,n,i,o){switch(e){case 2:return xo(r,i,n)[t.getMonth()];case 1:return ko(r,i,n)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(o){let c=$o(r),l=zo(r,i,n),h=c.findIndex(m=>{if(Array.isArray(m)){let[p,R]=m,C=s>=p.hours&&a>=p.minutes,w=s<R.hours||s===R.hours&&a<R.minutes;if(p.hours<R.hours){if(C&&w)return!0}else if(C||w)return!0}else if(m.hours===s&&m.minutes===a)return!0;return!1});if(h!==-1)return l[h]}return Lo(r,i,n)[s<12?0:1];case 3:return Uo(r,n)[t.getFullYear()<=0?0:1];default:let u=e;throw new Error(`unexpected translation type ${u}`)}}function mn(t){return function(r,e,n){let i=-1*n,o=ue(e,z.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case 0:return(i>=0?"+":"")+ie(s,2,o)+ie(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+ie(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+ie(s,2,o)+":"+ie(Math.abs(i%60),2,o);case 3:return n===0?"Z":(i>=0?"+":"")+ie(s,2,o)+":"+ie(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var Ma=0,Dn=4;function Fa(t){let r=yn(t,Ma,1).getDay();return yn(t,0,1+(r<=Dn?Dn:Dn+7)-r)}function Ho(t){let r=t.getDay(),e=r===0?-3:Dn-r;return yn(t.getFullYear(),t.getMonth(),t.getDate()+e)}function Mr(t,r=!1){return function(e,n){let i;if(r){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();i=1+Math.floor((s+o)/7)}else{let o=Ho(e),s=Fa(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return ie(i,t,ue(n,z.MinusSign))}}function vn(t,r=!1){return function(e,n){let o=Ho(e).getFullYear();return ie(o,t,ue(n,z.MinusSign),r)}}var Fr={};function Oa(t){if(Fr[t])return Fr[t];let r;switch(t){case"G":case"GG":case"GGG":r=M(3,_.Abbreviated);break;case"GGGG":r=M(3,_.Wide);break;case"GGGGG":r=M(3,_.Narrow);break;case"y":r=P(0,1,0,!1,!0);break;case"yy":r=P(0,2,0,!0,!0);break;case"yyy":r=P(0,3,0,!1,!0);break;case"yyyy":r=P(0,4,0,!1,!0);break;case"Y":r=vn(1);break;case"YY":r=vn(2,!0);break;case"YYY":r=vn(3);break;case"YYYY":r=vn(4);break;case"M":case"L":r=P(1,1,1);break;case"MM":case"LL":r=P(1,2,1);break;case"MMM":r=M(2,_.Abbreviated);break;case"MMMM":r=M(2,_.Wide);break;case"MMMMM":r=M(2,_.Narrow);break;case"LLL":r=M(2,_.Abbreviated,U.Standalone);break;case"LLLL":r=M(2,_.Wide,U.Standalone);break;case"LLLLL":r=M(2,_.Narrow,U.Standalone);break;case"w":r=Mr(1);break;case"ww":r=Mr(2);break;case"W":r=Mr(1,!0);break;case"d":r=P(2,1);break;case"dd":r=P(2,2);break;case"c":case"cc":r=P(7,1);break;case"ccc":r=M(1,_.Abbreviated,U.Standalone);break;case"cccc":r=M(1,_.Wide,U.Standalone);break;case"ccccc":r=M(1,_.Narrow,U.Standalone);break;case"cccccc":r=M(1,_.Short,U.Standalone);break;case"E":case"EE":case"EEE":r=M(1,_.Abbreviated);break;case"EEEE":r=M(1,_.Wide);break;case"EEEEE":r=M(1,_.Narrow);break;case"EEEEEE":r=M(1,_.Short);break;case"a":case"aa":case"aaa":r=M(0,_.Abbreviated);break;case"aaaa":r=M(0,_.Wide);break;case"aaaaa":r=M(0,_.Narrow);break;case"b":case"bb":case"bbb":r=M(0,_.Abbreviated,U.Standalone,!0);break;case"bbbb":r=M(0,_.Wide,U.Standalone,!0);break;case"bbbbb":r=M(0,_.Narrow,U.Standalone,!0);break;case"B":case"BB":case"BBB":r=M(0,_.Abbreviated,U.Format,!0);break;case"BBBB":r=M(0,_.Wide,U.Format,!0);break;case"BBBBB":r=M(0,_.Narrow,U.Format,!0);break;case"h":r=P(3,1,-12);break;case"hh":r=P(3,2,-12);break;case"H":r=P(3,1);break;case"HH":r=P(3,2);break;case"m":r=P(4,1);break;case"mm":r=P(4,2);break;case"s":r=P(5,1);break;case"ss":r=P(5,2);break;case"S":r=P(6,1);break;case"SS":r=P(6,2);break;case"SSS":r=P(6,3);break;case"Z":case"ZZ":case"ZZZ":r=mn(0);break;case"ZZZZZ":r=mn(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=mn(1);break;case"OOOO":case"ZZZZ":case"zzzz":r=mn(2);break;default:return null}return Fr[t]=r,r}function Go(t,r){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?r:e}function Pa(t,r){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+r),t}function Na(t,r,e){let i=t.getTimezoneOffset(),o=Go(r,i);return Pa(t,-1*(o-i))}function La(t){if(_o(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return yn(i,o-1,s)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(ba))return ka(n)}let r=new Date(t);if(!_o(r))throw new Error(`Unable to convert "${t}" into a date`);return r}function ka(t){let r=new Date(0),e=0,n=0,i=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(r,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-e,a=Number(t[5]||0)-n,u=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,a,u,c),r}function _o(t){return t instanceof Date&&!isNaN(t.valueOf())}var xa=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Io=22,wn=".",Ot="0",Ua=";",Ba=",",Or="#";function ja(t,r,e,n,i,o,s=!1){let a="",u=!1;if(!isFinite(t))a=ue(e,z.Infinity);else{let c=Va(t);s&&(c=za(c));let l=r.minInt,h=r.minFrac,m=r.maxFrac;if(o){let H=o.match(xa);if(H===null)throw new Error(`${o} is not a valid digit info`);let I=H[1],pe=H[3],sn=H[5];I!=null&&(l=Pr(I)),pe!=null&&(h=Pr(pe)),sn!=null?m=Pr(sn):pe!=null&&h>m&&(m=h)}Ha(c,h,m);let p=c.digits,R=c.integerLen,C=c.exponent,w=[];for(u=p.every(H=>!H);R<l;R++)p.unshift(0);for(;R<0;R++)p.unshift(0);R>0?w=p.splice(R,p.length):(w=p,p=[0]);let k=[];for(p.length>=r.lgSize&&k.unshift(p.splice(-r.lgSize,p.length).join(""));p.length>r.gSize;)k.unshift(p.splice(-r.gSize,p.length).join(""));p.length&&k.unshift(p.join("")),a=k.join(ue(e,n)),w.length&&(a+=ue(e,i)+w.join("")),C&&(a+=ue(e,z.Exponential)+"+"+C)}return t<0&&!u?a=r.negPre+a+r.negSuf:a=r.posPre+a+r.posSuf,a}function qo(t,r,e){let n=Bo(r,Ur.Decimal),i=$a(n,ue(r,z.MinusSign));return ja(t,i,r,z.Group,z.Decimal,e)}function $a(t,r="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(Ua),i=n[0],o=n[1],s=i.indexOf(wn)!==-1?i.split(wn):[i.substring(0,i.lastIndexOf(Ot)+1),i.substring(i.lastIndexOf(Ot)+1)],a=s[0],u=s[1]||"";e.posPre=a.substring(0,a.indexOf(Or));for(let l=0;l<u.length;l++){let h=u.charAt(l);h===Ot?e.minFrac=e.maxFrac=l+1:h===Or?e.maxFrac=l+1:e.posSuf+=h}let c=a.split(Ba);if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){let l=i.length-e.posPre.length-e.posSuf.length,h=o.indexOf(Or);e.negPre=o.substring(0,h).replace(/'/g,""),e.negSuf=o.slice(h+l).replace(/'/g,"")}else e.negPre=r+e.posPre,e.negSuf=e.posSuf;return e}function za(t){if(t.digits[0]===0)return t;let r=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(r===0?t.digits.push(0,0):r===1&&t.digits.push(0),t.integerLen+=2),t}function Va(t){let r=Math.abs(t)+"",e=0,n,i,o,s,a;for((i=r.indexOf(wn))>-1&&(r=r.replace(wn,"")),(o=r.search(/e/i))>0?(i<0&&(i=o),i+=+r.slice(o+1),r=r.substring(0,o)):i<0&&(i=r.length),o=0;r.charAt(o)===Ot;o++);if(o===(a=r.length))n=[0],i=1;else{for(a--;r.charAt(a)===Ot;)a--;for(i-=o,n=[],s=0;o<=a;o++,s++)n[s]=Number(r.charAt(o))}return i>Io&&(n=n.splice(0,Io-1),e=i-1,i=1),{digits:n,exponent:e,integerLen:i}}function Ha(t,r,e){if(r>e)throw new Error(`The minimum number of digits after fraction (${r}) is higher than the maximum (${e}).`);let n=t.digits,i=n.length-t.integerLen,o=Math.min(Math.max(r,i),e),s=o+t.integerLen,a=n[s];if(s>0){n.splice(Math.max(t.integerLen,s));for(let h=s;h<n.length;h++)n[h]=0}else{i=Math.max(0,i),t.integerLen=1,n.length=Math.max(1,s=o+1),n[0]=0;for(let h=1;h<s;h++)n[h]=0}if(a>=5)if(s-1<0){for(let h=0;h>s;h--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[s-1]++;for(;i<Math.max(0,o);i++)n.push(0);let u=o!==0,c=r+t.integerLen,l=n.reduceRight(function(h,m,p,R){return m=m+h,R[p]=m<10?m:m-10,u&&(R[p]===0&&p>=c?R.pop():u=!1),m>=10?1:0},0);l&&(n.unshift(l),t.integerLen++)}function Pr(t){let r=parseInt(t);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+t);return r}var Nr=/\s+/,Mo=[],Ga=(()=>{class t{_ngEl;_renderer;initialClasses=Mo;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(Nr):Mo}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Nr):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==n&&(i.changed=!0,i.enabled=n),i.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],i=e[1];i.changed?(this._toggleClass(n,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),i.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(Nr).forEach(i=>{n?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||t)(T(Le),T(Be))};static \u0275dir=J({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})(),qa=(()=>{class t{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(e){this._viewContainerRef=e}_needToReCreateNgModuleInstance(e){return e.ngComponentOutletNgModule!==void 0||e.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(e){return e.ngComponentOutlet!==void 0||e.ngComponentOutletContent!==void 0||e.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=uo(this.ngComponentOutletNgModule,Fo(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Fo(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(let[n,i]of this._inputsUsed)i?(e.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(e.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||t)(T(je))};static \u0275dir=J({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[Re]})}return t})();function Fo(t){return t.get(so).injector}var Cn=class{$implicit;ngForOf;index;count;constructor(r,e,n,i){this.$implicit=r,this.ngForOf=e,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Wo=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,i){this._viewContainer=e,this._template=n,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((i,o,s)=>{if(i.previousIndex==null)n.createEmbeddedView(this._template,new Cn(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(o===null?void 0:o);else if(o!==null){let a=n.get(o);n.move(a,s),Oo(a,i)}});for(let i=0,o=n.length;i<o;i++){let a=n.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{let o=n.get(i.currentIndex);Oo(o,i)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(T(je),T(Er),T(yo))};static \u0275dir=J({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function Oo(t,r){t.context.$implicit=r.item}var Wa=(()=>{class t{_viewContainer;_context=new En;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Po(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Po(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(T(je),T(Er))};static \u0275dir=J({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),En=class{$implicit=null;ngIf=null};function Po(t,r){if(t&&!t.createEmbeddedView)throw new S(2020,!1)}var Za=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,i){this._ngEl=e,this._differs=n,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[i,o]=e.split("."),s=i.indexOf("-")===-1?void 0:Ue.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${n}${o}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(T(Le),T(wo),T(Be))};static \u0275dir=J({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Ya=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,i):!1,get:(e,n,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,i)}})}static \u0275fac=function(n){return new(n||t)(T(je))};static \u0275dir=J({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Re]})}return t})();function Sn(t,r){return new S(2100,!1)}var Lr=class{createSubscription(r,e){return Ar(()=>r.subscribe({next:e,error:n=>{throw n}}))}dispose(r){Ar(()=>r.unsubscribe())}},kr=class{createSubscription(r,e){return r.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(r){r.unsubscribe()}},Ka=new kr,Xa=new Lr,Ja=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(ln(e))return Ka;if(lo(e))return Xa;throw Sn(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(T(ze,16))};static \u0275pipe=St({name:"async",type:t,pure:!1})}return t})();var Qa=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,eu=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Sn(t,e);return e.replace(Qa,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=St({name:"titlecase",type:t,pure:!0})}return t})();var tu="mediumDate",Zo=new E(""),Yo=new E(""),nu=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,i){this.locale=e,this.defaultTimezone=n,this.defaultOptions=i}transform(e,n,i,o){if(e==null||e===""||e!==e)return null;try{let s=n??this.defaultOptions?.dateFormat??tu,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Vo(e,s,o||this.locale,a)}catch(s){throw Sn(t,s.message)}}static \u0275fac=function(n){return new(n||t)(T(br,16),T(Zo,24),T(Yo,24))};static \u0275pipe=St({name:"date",type:t,pure:!0})}return t})();var ru=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,n,i){if(!iu(e))return null;i||=this._locale;try{let o=ou(e);return qo(o,i,n)}catch(o){throw Sn(t,o.message)}}static \u0275fac=function(n){return new(n||t)(T(br,16))};static \u0275pipe=St({name:"number",type:t,pure:!0})}return t})();function iu(t){return!(t==null||t===""||t!==t)}function ou(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var Ko=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=$e({type:t});static \u0275inj=Oe({})}return t})();function Pt(t,r){r=encodeURIComponent(r);for(let e of t.split(";")){let n=e.indexOf("="),[i,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(i.trim()===r)return decodeURIComponent(o)}return null}var Rn="browser",Xo="server";function su(t){return t===Rn}function bn(t){return t===Xo}var He=class{};var jr=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>new Br(d(O),window)})}return t})(),Br=class{document;window;offset=()=>[0,0];constructor(r,e){this.document=r,this.window=e}setOffset(r){Array.isArray(r)?this.offset=()=>r:this.offset=r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r){this.window.scrollTo(r[0],r[1])}scrollToAnchor(r){let e=cu(this.document,r);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(r){this.window.history.scrollRestoration=r}scrollToElement(r){let e=r.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function cu(t,r){let e=t.getElementById(r)||t.getElementsByName(r)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(r)||o.querySelector(`[name="${r}"]`);if(s)return s}i=n.nextNode()}}return null}var _n=new E(""),Hr=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i,o){return this._findPluginFor(n).addEventListener(e,n,i,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new S(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(v(_n),v(te))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Nt=class{_doc;constructor(r){this._doc=r}manager},An="ng-app-id";function Qo(t){for(let r of t)r.remove()}function es(t,r){let e=r.createElement("style");return e.textContent=t,e}function du(t,r,e,n){let i=t.head?.querySelectorAll(`style[${An}="${r}"],link[${An}="${r}"]`);if(i)for(let o of i)o.removeAttribute(An),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function zr(t,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Gr=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,this.isServer=bn(o),du(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,es);n?.forEach(i=>this.addUsage(i,this.external,zr))}removeStyles(e,n){for(let i of e)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,n,i){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,n){let i=n.get(e);i&&(i.usage--,i.usage<=0&&(Qo(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Qo(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,es(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,zr(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(An,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(v(O),v(wr),v(Cr,8),v(nt))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),$r={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},qr=/%COMP%/g;var ns="%COMP%",hu=`_nghost-${ns}`,fu=`_ngcontent-${ns}`,pu=!0,gu=new E("",{providedIn:"root",factory:()=>pu});function mu(t){return fu.replace(qr,t)}function vu(t){return hu.replace(qr,t)}function rs(t,r){return r.map(e=>e.replace(qr,t))}var Wr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,i,o,s,a,u,c=null,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.tracingService=l,this.platformIsServer=bn(a),this.defaultRenderer=new Lt(e,s,u,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Et.ShadowDom&&(n=B(f({},n),{encapsulation:Et.Emulated}));let i=this.getOrCreateRenderer(e,n);return i instanceof Tn?i.applyToHost(e):i instanceof kt&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.platformIsServer,m=this.tracingService;switch(n.encapsulation){case Et.Emulated:o=new Tn(u,c,n,this.appId,l,s,a,h,m);break;case Et.ShadowDom:return new Vr(u,c,e,n,s,a,this.nonce,h,m);default:o=new kt(u,c,n,l,s,a,h,m);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(v(Hr),v(Gr),v(wr),v(gu),v(O),v(nt),v(te),v(Cr),v(Zi,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Lt=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,n,i,o){this.eventManager=r,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS($r[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(ts(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(ts(r)?r.content:r).insertBefore(e,n)}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new S(-5104,!1);return e||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+":"+e;let o=$r[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=$r[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){i&(Ue.DashCase|Ue.Important)?r.style.setProperty(e,n,i&Ue.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&Ue.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n,i){if(typeof r=="string"&&(r=ve().getGlobalEventTarget(this.doc,r),!r))throw new S(5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function ts(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Vr=class extends Lt{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,n,i,o,s,a,u,c){super(r,o,s,u,c),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=i.styles;l=rs(i.id,l);for(let m of l){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=m,this.shadowRoot.appendChild(p)}let h=i.getExternalStyles?.();if(h)for(let m of h){let p=zr(m,o);a&&p.setAttribute("nonce",a),this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},kt=class extends Lt{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,a,u,c){super(r,o,s,a,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=n.styles;this.styles=c?rs(c,l):l,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Tn=class extends kt{contentAttr;hostAttr;constructor(r,e,n,i,o,s,a,u,c){let l=i+"-"+n.id;super(r,e,n,o,s,a,u,c,l),this.contentAttr=mu(l),this.hostAttr=vu(l)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,""),n}};var In=class t extends Tt{supportsDOMEvents=!0;static makeCurrent(){Tr(new t)}onAndCancel(r,e,n,i){return r.addEventListener(e,n,i),()=>{r.removeEventListener(e,n,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=yu();return e==null?null:wu(e)}resetBaseElement(){xt=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Pt(document.cookie,r)}},xt=null;function yu(){return xt=xt||document.head.querySelector("base"),xt?xt.getAttribute("href"):null}function wu(t){return new URL(t,document.baseURI).pathname}var Cu=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),os=(()=>{class t extends Nt{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i,o){return e.addEventListener(n,i,o),()=>this.removeEventListener(e,n,i,o)}removeEventListener(e,n,i,o){return e.removeEventListener(n,i,o)}static \u0275fac=function(n){return new(n||t)(v(O))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),is=["alt","control","meta","shift"],Eu={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Su={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ss=(()=>{class t extends Nt{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i,o){let s=t.parseEventName(n),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ve().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),is.forEach(c=>{let l=n.indexOf(c);l>-1&&(n.splice(l,1),s+=c+".")}),s+=o,n.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(e,n){let i=Eu[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),is.forEach(s=>{if(s!==i){let a=Su[s];a(e)&&(o+=s+".")}}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(v(O))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function Ru(t,r){return Co(f({rootComponent:t},bu(r)))}function bu(t){return{appProviders:[...Mu,...t?.providers??[]],platformProviders:Iu}}function Au(){In.makeCurrent()}function Tu(){return new yr}function _u(){return Gi(document),document}var Iu=[{provide:nt,useValue:Rn},{provide:qi,useValue:Au,multi:!0},{provide:O,useFactory:_u}];var Mu=[{provide:Vi,useValue:"root"},{provide:yr,useFactory:Tu},{provide:_n,useClass:os,multi:!0,deps:[O]},{provide:_n,useClass:ss,multi:!0,deps:[O]},Wr,Gr,Hr,{provide:io,useExisting:Wr},{provide:He,useClass:Cu},[]];var ot=class{},Ut=class{},we=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
2
- `).forEach(e=>{let n=e.indexOf(":");if(n>0){let i=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let i=(r.op==="a"?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var Fn=class{encodeKey(r){return as(r)}encodeValue(r){return as(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function Fu(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,o)),r.decodeValue(i.slice(o+1))],u=e.get(s)||[];u.push(a),e.set(s,u)}),e}var Ou=/%(\d[a-f0-9])/gi,Pu={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function as(t){return encodeURIComponent(t).replace(Ou,(r,e)=>Pu[e]??r)}function Mn(t){return`${t}`}var ye=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new Fn,r.fromString){if(r.fromObject)throw new S(2805,!1);this.map=Fu(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],i=Array.isArray(n)?n.map(Mn):[Mn(n)];this.map.set(e,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(Mn(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(Mn(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var On=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function Nu(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function us(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function cs(t){return typeof Blob<"u"&&t instanceof Blob}function ls(t){return typeof FormData<"u"&&t instanceof FormData}function Lu(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ds="Content-Type",hs="Accept",fs="X-Request-URL",ps="text/plain",gs="application/json",ku=`${gs}, ${ps}, */*`,it=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(r,e,n,i){this.url=e,this.method=r.toUpperCase();let o;if(Nu(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new we,this.context??=new On,!this.params)this.params=new ye,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),u=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||us(this.body)||cs(this.body)||ls(this.body)||Lu(this.body)?this.body:this.body instanceof ye?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ls(this.body)?null:cs(this.body)?this.body.type||null:us(this.body)?null:typeof this.body=="string"?ps:this.body instanceof ye?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?gs:null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,o=r.transferCache??this.transferCache,s=r.body!==void 0?r.body:this.body,a=r.withCredentials??this.withCredentials,u=r.reportProgress??this.reportProgress,c=r.headers||this.headers,l=r.params||this.params,h=r.context??this.context;return r.setHeaders!==void 0&&(c=Object.keys(r.setHeaders).reduce((m,p)=>m.set(p,r.setHeaders[p]),c)),r.setParams&&(l=Object.keys(r.setParams).reduce((m,p)=>m.set(p,r.setParams[p]),l)),new t(e,n,s,{params:l,headers:c,context:h,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},Ge=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ge||{}),st=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new we,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}},Pn=class t extends st{constructor(r={}){super(r)}type=Ge.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},qe=class t extends st{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=Ge.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},Bt=class extends st{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},xu=200,Uu=204;function Zr(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var ms=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof it)o=e;else{let u;i.headers instanceof we?u=i.headers:u=new we(i.headers);let c;i.params&&(i.params instanceof ye?c=i.params:c=new ye({fromObject:i.params})),o=new it(e,n,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=g(o).pipe(me(u=>this.handler.handle(u)));if(e instanceof it||i.observe==="events")return s;let a=s.pipe(ae(u=>u instanceof qe));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(b(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new S(2806,!1);return u.body}));case"blob":return a.pipe(b(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new S(2807,!1);return u.body}));case"text":return a.pipe(b(u=>{if(u.body!==null&&typeof u.body!="string")throw new S(2808,!1);return u.body}));case"json":default:return a.pipe(b(u=>u.body))}case"response":return a;default:throw new S(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new ye().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,Zr(i,n))}post(e,n,i={}){return this.request("POST",e,Zr(i,n))}put(e,n,i={}){return this.request("PUT",e,Zr(i,n))}static \u0275fac=function(n){return new(n||t)(v(ot))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var Bu=new E("");function ju(t,r){return r(t)}function $u(t,r,e){return(n,i)=>X(e,()=>r(n,o=>t(o,i)))}var Kr=new E(""),Xr=new E(""),vs=new E("",{providedIn:"root",factory:()=>!0});var Nn=(()=>{class t extends ot{backend;injector;chain=null;pendingTasks=d(un);contributeToStability=d(vs);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Kr),...this.injector.get(Xr,[])]));this.chain=n.reduceRight((i,o)=>$u(i,o,this.injector),ju)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(et(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(v(Ut),v(Se))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var zu=/^\)\]\}',?\n/,Vu=RegExp(`^${fs}:`,"m");function Hu(t){return"responseURL"in t&&t.responseURL?t.responseURL:Vu.test(t.getAllResponseHeaders())?t.getResponseHeader(fs):null}var Yr=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new S(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?x(n.\u0275loadImpl()):g(null)).pipe(G(()=>new Ni(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((C,w)=>s.setRequestHeader(C,w.join(","))),e.headers.has(hs)||s.setRequestHeader(hs,ku),!e.headers.has(ds)){let C=e.detectContentTypeHeader();C!==null&&s.setRequestHeader(ds,C)}if(e.responseType){let C=e.responseType.toLowerCase();s.responseType=C!=="json"?C:"text"}let a=e.serializeBody(),u=null,c=()=>{if(u!==null)return u;let C=s.statusText||"OK",w=new we(s.getAllResponseHeaders()),k=Hu(s)||e.url;return u=new Pn({headers:w,status:s.status,statusText:C,url:k}),u},l=()=>{let{headers:C,status:w,statusText:k,url:H}=c(),I=null;w!==Uu&&(I=typeof s.response>"u"?s.responseText:s.response),w===0&&(w=I?xu:0);let pe=w>=200&&w<300;if(e.responseType==="json"&&typeof I=="string"){let sn=I;I=I.replace(zu,"");try{I=I!==""?JSON.parse(I):null}catch(Ca){I=sn,pe&&(pe=!1,I={error:Ca,text:I})}}pe?(o.next(new qe({body:I,headers:C,status:w,statusText:k,url:H||void 0})),o.complete()):o.error(new Bt({error:I,headers:C,status:w,statusText:k,url:H||void 0}))},h=C=>{let{url:w}=c(),k=new Bt({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:w||void 0});o.error(k)},m=!1,p=C=>{m||(o.next(c()),m=!0);let w={type:Ge.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(w.total=C.total),e.responseType==="text"&&s.responseText&&(w.partialText=s.responseText),o.next(w)},R=C=>{let w={type:Ge.UploadProgress,loaded:C.loaded};C.lengthComputable&&(w.total=C.total),o.next(w)};return s.addEventListener("load",l),s.addEventListener("error",h),s.addEventListener("timeout",h),s.addEventListener("abort",h),e.reportProgress&&(s.addEventListener("progress",p),a!==null&&s.upload&&s.upload.addEventListener("progress",R)),s.send(a),o.next({type:Ge.Sent}),()=>{s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",l),s.removeEventListener("timeout",h),e.reportProgress&&(s.removeEventListener("progress",p),a!==null&&s.upload&&s.upload.removeEventListener("progress",R)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(v(He))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Ds=new E(""),Gu="XSRF-TOKEN",qu=new E("",{providedIn:"root",factory:()=>Gu}),Wu="X-XSRF-TOKEN",Zu=new E("",{providedIn:"root",factory:()=>Wu}),jt=class{},Yu=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Pt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(v(O),v(qu))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function Ku(t,r){let e=t.url.toLowerCase();if(!d(Ds)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=d(jt).getToken(),i=d(Zu);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var Jr=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Jr||{});function Xu(t,r){return{\u0275kind:t,\u0275providers:r}}function Ju(...t){let r=[ms,Yr,Nn,{provide:ot,useExisting:Nn},{provide:Ut,useFactory:()=>d(Bu,{optional:!0})??d(Yr)},{provide:Kr,useValue:Ku,multi:!0},{provide:Ds,useValue:!0},{provide:jt,useClass:Yu}];for(let e of t)r.push(...e.\u0275providers);return tt(r)}function Qu(t){return Xu(Jr.Interceptors,t.map(r=>({provide:Kr,useValue:r,multi:!0})))}var ec=new E(""),tc="b",nc="h",rc="s",ic="st",oc="u",sc="rt",Qr=new E(""),ac=["GET","HEAD"];function uc(t,r){let m=d(Qr),{isCacheActive:e}=m,n=Fi(m,["isCacheActive"]),{transferCache:i,method:o}=t;if(!e||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!ac.includes(o)||!n.includeRequestsWithAuthHeaders&&cc(t)||n.filter?.(t)===!1)return r(t);let s=d(Wi);if(d(ec,{optional:!0}))throw new S(2803,!1);let u=t.url,c=lc(t,u),l=s.get(c,null),h=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(h=i.includeHeaders),l){let{[tc]:p,[sc]:R,[nc]:C,[rc]:w,[ic]:k,[oc]:H}=l,I=p;switch(R){case"arraybuffer":I=new TextEncoder().encode(p).buffer;break;case"blob":I=new Blob([p]);break}let pe=new we(C);return g(new qe({body:I,headers:pe,status:w,statusText:k,url:H}))}return r(t).pipe(L(p=>{p instanceof qe}))}function cc(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function ys(t){return[...t.keys()].sort().map(r=>`${r}=${t.getAll(r)}`).join("&")}function lc(t,r){let{params:e,method:n,responseType:i}=t,o=ys(e),s=t.serializeBody();s instanceof URLSearchParams?s=ys(s):typeof s!="string"&&(s="");let a=[n,i,r,s,o].join("|"),u=dc(a);return u}function dc(t){let r=0;for(let e of t)r=Math.imul(31,r)+e.charCodeAt(0)<<0;return r+=2147483648,r.toString()}function ws(t){return[{provide:Qr,useFactory:()=>(Ct("NgHttpTransferCache"),f({isCacheActive:!0},t))},{provide:Xr,useValue:uc,multi:!0},{provide:Rt,multi:!0,useFactory:()=>{let r=d(bt),e=d(Qr);return()=>{r.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var Cs=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(v(O))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var fc=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=v(pc),i},providedIn:"root"})}return t})(),pc=(()=>{class t extends fc{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case xe.NONE:return n;case xe.HTML:return rt(n,"HTML")?ke(n):no(this._doc,String(n)).toString();case xe.STYLE:return rt(n,"Style")?ke(n):n;case xe.SCRIPT:if(rt(n,"Script"))return ke(n);throw new S(5200,!1);case xe.URL:return rt(n,"URL")?ke(n):to(String(n));case xe.RESOURCE_URL:if(rt(n,"ResourceURL"))return ke(n);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return Ki(e)}bypassSecurityTrustStyle(e){return Xi(e)}bypassSecurityTrustScript(e){return Ji(e)}bypassSecurityTrustUrl(e){return Qi(e)}bypassSecurityTrustResourceUrl(e){return eo(e)}static \u0275fac=function(n){return new(n||t)(v(O))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ei=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(ei||{});function Kf(...t){let r=[],e=new Set;for(let{\u0275providers:i,\u0275kind:o}of t)e.add(o),i.length&&r.push(i);let n=e.has(ei.HttpTransferCacheOptions);return tt([[],Eo(),e.has(ei.NoHttpTransferCache)||n?[]:ws({}),r])}var y="primary",Qt=Symbol("RouteTitle"),oi=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Ye(t){return new oi(t)}function Is(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function mc(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!ce(t[e],r[e]))return!1;return!0}function ce(t,r){let e=t?si(t):void 0,n=r?si(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Ms(t[i],r[i]))return!1;return!0}function si(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Ms(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function Fs(t){return t.length>0?t[t.length-1]:null}function Me(t){return Li(t)?t:ln(t)?x(Promise.resolve(t)):g(t)}var vc={exact:Ps,subset:Ns},Os={exact:Dc,subset:yc,ignored:()=>!0};function Es(t,r,e){return vc[e.paths](t.root,r.root,e.matrixParams)&&Os[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Dc(t,r){return ce(t,r)}function Ps(t,r,e){if(!We(t.segments,r.segments)||!xn(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Ps(t.children[n],r.children[n],e))return!1;return!0}function yc(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>Ms(t[e],r[e]))}function Ns(t,r,e){return Ls(t,r,r.segments,e)}function Ls(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!We(i,e)||r.hasChildren()||!xn(i,e,n))}else if(t.segments.length===e.length){if(!We(t.segments,e)||!xn(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Ns(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!We(t.segments,i)||!xn(t.segments,i,n)||!t.children[y]?!1:Ls(t.children[y],r,o,n)}}function xn(t,r,e){return r.every((n,i)=>Os[e](t[i].parameters,n.parameters))}var de=class{root;queryParams;fragment;_queryParamMap;constructor(r=new A([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Ye(this.queryParams),this._queryParamMap}toString(){return Ec.serialize(this)}},A=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Un(this)}},Ae=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Ye(this.parameters),this._parameterMap}toString(){return xs(this)}};function wc(t,r){return We(t,r)&&t.every((e,n)=>ce(e.parameters,r[n].parameters))}function We(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function Cc(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===y&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==y&&(e=e.concat(r(i,n)))}),e}var Fe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>new Te,providedIn:"root"})}return t})(),Te=class{parse(r){let e=new ui(r);return new de(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${$t(r.root,!0)}`,n=bc(r.queryParams),i=typeof r.fragment=="string"?`#${Sc(r.fragment)}`:"";return`${e}${n}${i}`}},Ec=new Te;function Un(t){return t.segments.map(r=>xs(r)).join("/")}function $t(t,r){if(!t.hasChildren())return Un(t);if(r){let e=t.children[y]?$t(t.children[y],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==y&&n.push(`${i}:${$t(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Cc(t,(n,i)=>i===y?[$t(t.children[y],!1)]:[`${i}:${$t(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[y]!=null?`${Un(t)}/${e[0]}`:`${Un(t)}/(${e.join("//")})`}}function ks(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ln(t){return ks(t).replace(/%3B/gi,";")}function Sc(t){return encodeURI(t)}function ai(t){return ks(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bn(t){return decodeURIComponent(t)}function Ss(t){return Bn(t.replace(/\+/g,"%20"))}function xs(t){return`${ai(t.path)}${Rc(t.parameters)}`}function Rc(t){return Object.entries(t).map(([r,e])=>`;${ai(r)}=${ai(e)}`).join("")}function bc(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Ln(e)}=${Ln(i)}`).join("&"):`${Ln(e)}=${Ln(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Ac=/^[^\/()?;#]+/;function ti(t){let r=t.match(Ac);return r?r[0]:""}var Tc=/^[^\/()?;=#]+/;function _c(t){let r=t.match(Tc);return r?r[0]:""}var Ic=/^[^=?&#]+/;function Mc(t){let r=t.match(Ic);return r?r[0]:""}var Fc=/^[^&#]+/;function Oc(t){let r=t.match(Fc);return r?r[0]:""}var ui=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new A([],{}):new A([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[y]=new A(r,e)),n}parseSegment(){let r=ti(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(r),new Ae(Bn(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=_c(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=ti(this.remaining);i&&(n=i,this.capture(n))}r[Bn(e)]=Bn(n)}parseQueryParam(r){let e=Mc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Oc(this.remaining);s&&(n=s,this.capture(n))}let i=Ss(e),o=Ss(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ti(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=y);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[y]:new A([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new S(4011,!1)}};function Us(t){return t.segments.length>0?new A([],{[y]:t}):t}function Bs(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Bs(i);if(n===y&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new A(t.segments,r);return Pc(e)}function Pc(t){if(t.numberOfChildren===1&&t.children[y]){let r=t.children[y];return new A(t.segments.concat(r.segments),r.children)}return t}function _e(t){return t instanceof de}function js(t,r,e=null,n=null){let i=$s(t);return zs(i,r,e,n)}function $s(t){let r;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new A(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=Us(n);return r??i}function zs(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return ni(i,i,i,e,n);let o=Nc(r);if(o.toRoot())return ni(i,i,new A([],{}),e,n);let s=Lc(o,i,t),a=s.processChildren?Vt(s.segmentGroup,s.index,o.commands):Hs(s.segmentGroup,s.index,o.commands);return ni(i,s.segmentGroup,a,e,n)}function $n(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Gt(t){return typeof t=="object"&&t!=null&&t.outlets}function ni(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===r?s=e:s=Vs(t,r,e);let a=Us(Bs(s));return new de(a,o,i)}function Vs(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=Vs(o,r,e)}),new A(t.segments,n)}var zn=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&$n(n[0]))throw new S(4003,!1);let i=n.find(Gt);if(i&&i!==Fs(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Nc(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new zn(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new zn(e,r,n)}var ct=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Lc(t,r,e){if(t.isAbsolute)return new ct(r,!0,0);if(!e)return new ct(r,!1,NaN);if(e.parent===null)return new ct(e,!0,0);let n=$n(t.commands[0])?0:1,i=e.segments.length-1+n;return kc(e,i,t.numberOfDoubleDots)}function kc(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new ct(n,!1,i-o)}function xc(t){return Gt(t[0])?t[0].outlets:{[y]:t}}function Hs(t,r,e){if(t??=new A([],{}),t.segments.length===0&&t.hasChildren())return Vt(t,r,e);let n=Uc(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new A(t.segments.slice(0,n.pathIndex),{});return o.children[y]=new A(t.segments.slice(n.pathIndex),t.children),Vt(o,0,i)}else return n.match&&i.length===0?new A(t.segments,{}):n.match&&!t.hasChildren()?ci(t,r,e):n.match?Vt(t,0,i):ci(t,r,e)}function Vt(t,r,e){if(e.length===0)return new A(t.segments,{});{let n=xc(e),i={};if(Object.keys(n).some(o=>o!==y)&&t.children[y]&&t.numberOfChildren===1&&t.children[y].segments.length===0){let o=Vt(t.children[y],r,e);return new A(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Hs(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new A(t.segments,i)}}function Uc(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],a=e[n];if(Gt(a))break;let u=`${a}`,c=n<e.length-1?e[n+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!bs(u,c,s))return o;n+=2}else{if(!bs(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function ci(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Gt(o)){let u=Bc(o.outlets);return new A(n,u)}if(i===0&&$n(e[0])){let u=t.segments[r];n.push(new Ae(u.path,Rs(e[0]))),i++;continue}let s=Gt(o)?o.outlets[y]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&$n(a)?(n.push(new Ae(s,Rs(a))),i+=2):(n.push(new Ae(s,{})),i++)}return new A(n,{})}function Bc(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=ci(new A([],{}),0,n))}),r}function Rs(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function bs(t,r,e){return t==e.path&&ce(r,e.parameters)}var jn="imperative",N=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(N||{}),Z=class{id;url;constructor(r,e){this.id=r,this.url=e}},Ie=class extends Z{type=N.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Y=class extends Z{urlAfterRedirects;type=N.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},V=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(V||{}),dt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(dt||{}),le=class extends Z{reason;code;type=N.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},he=class extends Z{reason;code;type=N.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},ht=class extends Z{error;target;type=N.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},qt=class extends Z{urlAfterRedirects;state;type=N.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vn=class extends Z{urlAfterRedirects;state;type=N.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hn=class extends Z{urlAfterRedirects;state;shouldActivate;type=N.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Gn=class extends Z{urlAfterRedirects;state;type=N.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qn=class extends Z{urlAfterRedirects;state;type=N.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wn=class{route;type=N.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Zn=class{route;type=N.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Yn=class{snapshot;type=N.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kn=class{snapshot;type=N.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xn=class{snapshot;type=N.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jn=class{snapshot;type=N.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ft=class{routerEvent;position;anchor;type=N.Scroll;constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},Wt=class{},pt=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function jc(t,r){return t.providers&&!t._injector&&(t._injector=cn(t.providers,r,`Route: ${t.path}`)),t._injector??r}function oe(t){return t.outlet||y}function $c(t,r){let e=t.filter(n=>oe(n)===r);return e.push(...t.filter(n=>oe(n)!==r)),e}function en(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Qn=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return en(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Ke(this.rootInjector)}},Ke=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Qn(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(v(Se))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),er=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=li(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=li(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=di(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return di(r,this._root).map(e=>e.value)}};function li(t,r){if(t===r.value)return r;for(let e of r.children){let n=li(t,e);if(n)return n}return null}function di(t,r){if(t===r.value)return[r];for(let e of r.children){let n=di(t,e);if(n.length)return n.unshift(r),n}return[]}var W=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ut(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Zt=class extends er{snapshot;constructor(r,e){super(r),this.snapshot=e,yi(this,r)}toString(){return this.snapshot.toString()}};function Gs(t){let r=zc(t),e=new K([new Ae("",{})]),n=new K({}),i=new K({}),o=new K({}),s=new K(""),a=new fe(e,n,o,s,i,y,t,r.root);return a.snapshot=r.root,new Zt(new W(a,[]),r)}function zc(t){let r={},e={},n={},i="",o=new Ze([],r,n,i,e,y,t,null,{});return new Yt("",new W(o,[]))}var fe=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,u){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(b(c=>c[Qt]))??g(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(b(r=>Ye(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(r=>Ye(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function tr(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:f(f({},r.params),t.params),data:f(f({},r.data),t.data),resolve:f(f(f(f({},t.data),r.data),i?.data),t._resolvedData)}:n={params:f({},t.params),data:f({},t.data),resolve:f(f({},t.data),t._resolvedData??{})},i&&Ws(i)&&(n.resolve[Qt]=i.title),n}var Ze=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Qt]}constructor(r,e,n,i,o,s,a,u,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ye(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ye(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Yt=class extends er{url;constructor(r,e){super(e),this.url=r,yi(this,e)}toString(){return qs(this._root)}};function yi(t,r){r.value._routerState=t,r.children.forEach(e=>yi(t,e))}function qs(t){let r=t.children.length>0?` { ${t.children.map(qs).join(", ")} } `:"";return`${t.value}${r}`}function ri(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ce(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ce(r.params,e.params)||t.paramsSubject.next(e.params),mc(r.url,e.url)||t.urlSubject.next(e.url),ce(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function hi(t,r){let e=ce(t.params,r.params)&&wc(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||hi(t.parent,r.parent))}function Ws(t){return typeof t.title=="string"||t.title===null}var Zs=new E(""),wi=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=y;activateEvents=new Ne;deactivateEvents=new Ne;attachEvents=new Ne;detachEvents=new Ne;routerOutletData=Hi(void 0);parentContexts=d(Ke);location=d(je);changeDetector=d(ze);inputBinder=d(tn,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new fi(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=J({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Re]})}return t})(),fi=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===fe?this.route:r===Ke?this.childContexts:r===Zs?this.outletData:this.parent.get(r,e)}},tn=new E(""),Ci=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=an([n.queryParams,n.params,n.data]).pipe(G(([o,s,a],u)=>(a=f(f(f({},o),s),a),u===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=So(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Ei=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=co({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&fo(0,"router-outlet")},dependencies:[wi],encapsulation:2})}return t})();function Si(t){let r=t.children&&t.children.map(Si),e=r?B(f({},t),{children:r}):f({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==y&&(e.component=Ei),e}function Vc(t,r,e){let n=Kt(t,r._root,e?e._root:void 0);return new Zt(n,r)}function Kt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Hc(t,r,e);return new W(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Kt(t,a)),s}}let n=Gc(r.value),i=r.children.map(o=>Kt(t,o));return new W(n,i)}}function Hc(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Kt(t,n,i);return Kt(t,n)})}function Gc(t){return new fe(new K(t.url),new K(t.params),new K(t.queryParams),new K(t.fragment),new K(t.data),t.outlet,t.component,t)}var gt=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Ys="ngNavigationCancelingError";function nr(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=_e(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Ks(!1,V.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Ks(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Ys]=!0,e.cancellationCode=r,e}function qc(t){return Xs(t)&&_e(t.url)}function Xs(t){return!!t&&t[Ys]}var Wc=(t,r,e,n)=>b(i=>(new pi(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),pi=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),ri(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ut(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ut(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ut(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ut(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Jn(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Kn(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(ri(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ri(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},rr=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},lt=class{component;route;constructor(r,e){this.component=r,this.route=e}};function Zc(t,r,e){let n=t._root,i=r?r._root:null;return zt(n,i,e,[n.value])}function Yc(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function vt(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!zi(t)?t:r.get(t):n}function zt(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ut(r);return t.children.forEach(s=>{Kc(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ht(a,e.getContext(s),i)),i}function Kc(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=Xc(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new rr(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?zt(t,r,a?a.children:null,n,i):zt(t,r,e,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new lt(a.outlet.component,s))}else s&&Ht(r,a,i),i.canActivateChecks.push(new rr(n)),o.component?zt(t,null,a?a.children:null,n,i):zt(t,null,e,n,i);return i}function Xc(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!We(t.url,r.url);case"pathParamsOrQueryParamsChange":return!We(t.url,r.url)||!ce(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hi(t,r)||!ce(t.queryParams,r.queryParams);case"paramsChange":default:return!hi(t,r)}}function Ht(t,r,e){let n=ut(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?Ht(s,r.children.getContext(o),e):Ht(s,null,e):Ht(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new lt(r.outlet.component,i)):e.canDeactivateChecks.push(new lt(null,i)):e.canDeactivateChecks.push(new lt(null,i))}function nn(t){return typeof t=="function"}function Jc(t){return typeof t=="boolean"}function Qc(t){return t&&nn(t.canLoad)}function el(t){return t&&nn(t.canActivate)}function tl(t){return t&&nn(t.canActivateChild)}function nl(t){return t&&nn(t.canDeactivate)}function rl(t){return t&&nn(t.canMatch)}function Js(t){return t instanceof ki||t?.name==="EmptyError"}var kn=Symbol("INITIAL_VALUE");function mt(){return G(t=>an(t.map(r=>r.pipe(Qe(1),ji(kn)))).pipe(b(r=>{for(let e of r)if(e!==!0){if(e===kn)return kn;if(e===!1||il(e))return e}return!0}),ae(r=>r!==kn),Qe(1)))}function il(t){return _e(t)||t instanceof gt}function ol(t,r){return j(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?g(B(f({},e),{guardsResult:!0})):sl(s,n,i,t).pipe(j(a=>a&&Jc(a)?al(n,o,t,r):g(a)),b(a=>B(f({},e),{guardsResult:a})))})}function sl(t,r,e,n){return x(t).pipe(j(i=>hl(i.component,i.route,e,r,n)),Ee(i=>i!==!0,!0))}function al(t,r,e,n){return x(r).pipe(me(i=>xi(cl(i.route.parent,n),ul(i.route,n),dl(t,i.path,e),ll(t,i.route,e))),Ee(i=>i!==!0,!0))}function ul(t,r){return t!==null&&r&&r(new Xn(t)),g(!0)}function cl(t,r){return t!==null&&r&&r(new Yn(t)),g(!0)}function ll(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return g(!0);let i=n.map(o=>hr(()=>{let s=en(r)??e,a=vt(o,s),u=el(a)?a.canActivate(r,t):X(s,()=>a(r,t));return Me(u).pipe(Ee())}));return g(i).pipe(mt())}function dl(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>Yc(s)).filter(s=>s!==null).map(s=>hr(()=>{let a=s.guards.map(u=>{let c=en(s.node)??e,l=vt(u,c),h=tl(l)?l.canActivateChild(n,t):X(c,()=>l(n,t));return Me(h).pipe(Ee())});return g(a).pipe(mt())}));return g(o).pipe(mt())}function hl(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return g(!0);let s=o.map(a=>{let u=en(r)??i,c=vt(a,u),l=nl(c)?c.canDeactivate(t,r,e,n):X(u,()=>c(t,r,e,n));return Me(l).pipe(Ee())});return g(s).pipe(mt())}function fl(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return g(!0);let o=i.map(s=>{let a=vt(s,t),u=Qc(a)?a.canLoad(r,e):X(t,()=>a(r,e));return Me(u)});return g(o).pipe(mt(),Qs(n))}function Qs(t){return Pi(L(r=>{if(typeof r!="boolean")throw nr(t,r)}),b(r=>r===!0))}function pl(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=vt(s,t),u=rl(a)?a.canMatch(r,e):X(t,()=>a(r,e));return Me(u)});return g(o).pipe(mt(),Qs(n))}var Xt=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Jt=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function at(t){return yt(new Xt(t))}function gl(t){return yt(new S(4e3,!1))}function ml(t){return yt(Ks(!1,V.GuardRejected))}var gi=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return g(n);if(i.numberOfChildren>1||!i.children[y])return gl(`${r.redirectTo}`);i=i.children[y]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let a=e,{queryParams:u,fragment:c,routeConfig:l,url:h,outlet:m,params:p,data:R,title:C}=i,w=X(o,()=>a({params:p,data:R,queryParams:u,fragment:c,routeConfig:l,url:h,outlet:m,title:C}));if(w instanceof de)throw new Jt(w);e=w}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Jt(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new de(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(r,u,n,i)}),new A(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},mi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vl(t,r,e,n,i){let o=ea(t,r,e);return o.matched?(n=jc(r,n),pl(n,r,e,i).pipe(b(s=>s===!0?o:f({},mi)))):g(o)}function ea(t,r,e){if(r.path==="**")return Dl(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?f({},mi):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Is)(e,t,r);if(!i)return f({},mi);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?f(f({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Dl(t){return{matched:!0,parameters:t.length>0?Fs(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function As(t,r,e,n){return e.length>0&&Cl(t,e,n)?{segmentGroup:new A(r,wl(n,new A(e,t.children))),slicedSegments:[]}:e.length===0&&El(t,e,n)?{segmentGroup:new A(t.segments,yl(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new A(t.segments,t.children),slicedSegments:e}}function yl(t,r,e,n){let i={};for(let o of e)if(or(t,r,o)&&!n[oe(o)]){let s=new A([],{});i[oe(o)]=s}return f(f({},n),i)}function wl(t,r){let e={};e[y]=r;for(let n of t)if(n.path===""&&oe(n)!==y){let i=new A([],{});e[oe(n)]=i}return e}function Cl(t,r,e){return e.some(n=>or(t,r,n)&&oe(n)!==y)}function El(t,r,e){return e.some(n=>or(t,r,n))}function or(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Sl(t,r,e){return r.length===0&&!t.children[e]}var vi=class{};function Rl(t,r,e,n,i,o,s="emptyOnly"){return new Di(t,r,e,n,i,s,o).recognize()}var bl=31,Di=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new gi(this.urlSerializer,this.urlTree)}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}recognize(){let r=As(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(b(({children:e,rootSnapshot:n})=>{let i=new W(n,e),o=new Yt("",i),s=js(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new Ze([],Object.freeze({}),Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),y,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,y,e).pipe(b(n=>({children:n,rootSnapshot:e})),Ce(n=>{if(n instanceof Jt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Xt?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(b(s=>s instanceof W?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return x(o).pipe(me(s=>{let a=n.children[s],u=$c(e,s);return this.processSegmentGroup(r,u,a,s,i)}),Bi((s,a)=>(s.push(...a),s)),fr(null),Ui(),j(s=>{if(s===null)return at(n);let a=ta(s);return Al(a),g(a)}))}processSegment(r,e,n,i,o,s,a){return x(e).pipe(me(u=>this.processSegmentAgainstRoute(u._injector??r,e,u,n,i,o,s,a).pipe(Ce(c=>{if(c instanceof Xt)return g(null);throw c}))),Ee(u=>!!u),Ce(u=>{if(Js(u))return Sl(n,i,o)?g(new vi):at(n);throw u}))}processSegmentAgainstRoute(r,e,n,i,o,s,a,u){return oe(n)!==s&&(s===y||!or(i,o,n))?at(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,u):at(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:h,remainingSegments:m}=ea(e,i,o);if(!u)return at(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>bl&&(this.allowRedirects=!1));let p=new Ze(o,c,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Ts(i),oe(i),i.component??i._loadedComponent??null,i,_s(i)),R=tr(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(R.params),p.data=Object.freeze(R.data);let C=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,h,p,r);return this.applyRedirects.lineralizeSegments(i,C).pipe(j(w=>this.processSegment(r,n,e,w.concat(m),s,!1,a)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let a=vl(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(G(u=>u.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(G(({routes:c})=>{let l=n._loadedInjector??r,{parameters:h,consumedSegments:m,remainingSegments:p}=u,R=new Ze(m,h,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Ts(n),oe(n),n.component??n._loadedComponent??null,n,_s(n)),C=tr(R,s,this.paramsInheritanceStrategy);R.params=Object.freeze(C.params),R.data=Object.freeze(C.data);let{segmentGroup:w,slicedSegments:k}=As(e,m,p,c);if(k.length===0&&w.hasChildren())return this.processChildren(l,c,w,R).pipe(b(I=>new W(R,I)));if(c.length===0&&k.length===0)return g(new W(R,[]));let H=oe(n)===o;return this.processSegment(l,c,w,k,H?y:o,!0,R).pipe(b(I=>new W(R,I instanceof W?[I]:[])))}))):at(e)))}getChildConfig(r,e,n){return e.children?g({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?g({routes:e._loadedRoutes,injector:e._loadedInjector}):fl(r,e,n,this.urlSerializer).pipe(j(i=>i?this.configLoader.loadChildren(r,e).pipe(L(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ml(e))):g({routes:[],injector:r})}};function Al(t){t.sort((r,e)=>r.value.outlet===y?-1:e.value.outlet===y?1:r.value.outlet.localeCompare(e.value.outlet))}function Tl(t){let r=t.value.routeConfig;return r&&r.path===""}function ta(t){let r=[],e=new Set;for(let n of t){if(!Tl(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=ta(n.children);r.push(new W(n.value,i))}return r.filter(n=>!e.has(n))}function Ts(t){return t.data||{}}function _s(t){return t.resolve||{}}function _l(t,r,e,n,i,o){return j(s=>Rl(t,r,e,n,s.extractedUrl,i,o).pipe(b(({state:a,tree:u})=>B(f({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Il(t,r){return j(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return g(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of na(u))s.add(c);let a=0;return x(s).pipe(me(u=>o.has(u)?Ml(u,n,t,r):(u.data=tr(u,u.parent,t).resolve,g(void 0))),L(()=>a++),pr(1),j(u=>a===s.size?g(e):ge))})}function na(t){let r=t.children.map(e=>na(e)).flat();return[t,...r]}function Ml(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Ws(i)&&(o[Qt]=i.title),Fl(o,t,r,n).pipe(b(s=>(t._resolvedData=s,t.data=tr(t,t.parent,e).resolve,null)))}function Fl(t,r,e,n){let i=si(t);if(i.length===0)return g({});let o={};return x(i).pipe(j(s=>Ol(t[s],r,e,n).pipe(Ee(),L(a=>{if(a instanceof gt)throw nr(new Te,a);o[s]=a}))),pr(1),b(()=>o),Ce(s=>Js(s)?ge:yt(s)))}function Ol(t,r,e,n){let i=en(r)??n,o=vt(t,i),s=o.resolve?o.resolve(r,e):X(i,()=>o(r,e));return Me(s)}function ii(t){return G(r=>{let e=t(r);return e?x(e).pipe(b(()=>r)):g(r)})}var Ri=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===y);return n}getResolvedTitleForRoute(e){return e.data[Qt]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(ra),providedIn:"root"})}return t})(),ra=(()=>{class t extends Ri{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(v(Cs))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Xe=new E("",{providedIn:"root",factory:()=>({})}),Je=new E(""),sr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(Do);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return g(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=Me(e.loadComponent()).pipe(b(oa),L(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),et(()=>{this.componentLoaders.delete(e)})),i=new dr(n,()=>new ee).pipe(lr());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return g({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=ia(n,this.compiler,e,this.onLoadEndListener).pipe(et(()=>{this.childrenLoaders.delete(n)})),s=new dr(o,()=>new ee).pipe(lr());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ia(t,r,e,n){return Me(t.loadChildren()).pipe(b(oa),j(i=>i instanceof ao||Array.isArray(i)?g(i):x(r.compileModuleAsync(i))),b(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Je,[],{optional:!0,self:!0}).flat()),{routes:s.map(Si),injector:o}}))}function Pl(t){return t&&typeof t=="object"&&"default"in t}function oa(t){return Pl(t)?t.default:t}var ar=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Nl),providedIn:"root"})}return t})(),Nl=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bi=new E(""),Ai=new E("");function sa(t,r,e){let n=t.get(Ai),i=t.get(O);return t.get(te).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),Ll(t))),{onViewTransitionCreated:u}=n;return u&&X(t,()=>u({transition:a,from:r,to:e})),s})}function Ll(t){return new Promise(r=>{Yi({read:()=>setTimeout(r)},{injector:t})})}var Ti=new E(""),rn=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ee;transitionAbortSubject=new ee;configLoader=d(sr);environmentInjector=d(Se);destroyRef=d(Dr);urlSerializer=d(Fe);rootContexts=d(Ke);location=d(be);inputBindingEnabled=d(tn,{optional:!0})!==null;titleStrategy=d(Ri);options=d(Xe,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(ar);createViewTransition=d(bi,{optional:!0});navigationErrorHandler=d(Ti,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Wn(i)),n=i=>this.events.next(new Zn(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(B(f({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n}))}setupNavigations(e){return this.transitions=new K(null),this.transitions.pipe(ae(n=>n!==null),G(n=>{let i=!1,o=!1;return g(n).pipe(G(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",V.SupersededByNewNavigation),ge;this.currentTransition=n,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?B(f({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&u!=="reload"){let c="";return this.events.next(new he(s.id,this.urlSerializer.serialize(s.rawUrl),c,dt.IgnoredSameUrlNavigation)),s.resolve(!1),ge}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return g(s).pipe(G(c=>(this.events.next(new Ie(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?ge:Promise.resolve(c))),_l(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),L(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=B(f({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let l=new qt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:c,extractedUrl:l,source:h,restoredState:m,extras:p}=s,R=new Ie(c,this.urlSerializer.serialize(l),h,m);this.events.next(R);let C=Gs(this.rootComponentType).snapshot;return this.currentTransition=n=B(f({},s),{targetSnapshot:C,urlAfterRedirects:l,extras:B(f({},p),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,g(n)}else{let c="";return this.events.next(new he(s.id,this.urlSerializer.serialize(s.extractedUrl),c,dt.IgnoredByUrlHandlingStrategy)),s.resolve(!1),ge}}),L(s=>{let a=new Vn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),b(s=>(this.currentTransition=n=B(f({},s),{guards:Zc(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n)),ol(this.environmentInjector,s=>this.events.next(s)),L(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw nr(this.urlSerializer,s.guardsResult);let a=new Hn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ae(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",V.GuardRejected),!1)),ii(s=>{if(s.guards.canActivateChecks.length!==0)return g(s).pipe(L(a=>{let u=new Gn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),G(a=>{let u=!1;return g(a).pipe(Il(this.paramsInheritanceStrategy,this.environmentInjector),L({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",V.NoDataFromResolver)}}))}),L(a=>{let u=new qn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),ii(s=>{let a=u=>{let c=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(L(l=>{u.component=l}),b(()=>{})));for(let l of u.children)c.push(...a(l));return c};return an(a(s.targetSnapshot.root)).pipe(fr(null),Qe(1))}),ii(()=>this.afterPreactivation()),G(()=>{let{currentSnapshot:s,targetSnapshot:a}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return u?x(u).pipe(b(()=>n)):g(n)}),b(s=>{let a=Vc(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=n=B(f({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,n}),L(()=>{this.events.next(new Wt)}),Wc(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Qe(1),L({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Y(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),$i(this.transitionAbortSubject.pipe(L(s=>{throw s}))),et(()=>{!i&&!o&&this.cancelNavigationTransition(n,"",V.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ce(s=>{if(this.destroyed)return n.resolve(!1),ge;if(o=!0,Xs(s))this.events.next(new le(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),qc(s)?this.events.next(new pt(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let a=new ht(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=X(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(u instanceof gt){let{message:c,cancellationCode:l}=nr(this.urlSerializer,u);this.events.next(new le(n.id,this.urlSerializer.serialize(n.extractedUrl),c,l)),this.events.next(new pt(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return ge}))}))}cancelNavigationTransition(e,n,i){let o=new le(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kl(t){return t!==jn}var aa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(xl),providedIn:"root"})}return t})(),ir=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},xl=(()=>{class t extends ir{static \u0275fac=(()=>{let e;return function(i){return(e||(e=mr(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ua=(()=>{class t{urlSerializer=d(Fe);options=d(Xe,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(be);urlHandlingStrategy=d(ar);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new de;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof de?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=Gs(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Ul),providedIn:"root"})}return t})(),Ul=(()=>{class t extends ua{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate")})})}handleRouterEvent(e,n){e instanceof Ie?this.updateStateMemento():e instanceof he?this.commitTransition(n):e instanceof qt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof le&&(e.code===V.GuardRejected||e.code===V.NoDataFromResolver)?this.restoreHistory(n):e instanceof ht?this.restoreHistory(n,!0):e instanceof Y&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=f(f({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=f(f({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=mr(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ur(t,r){t.events.pipe(ae(e=>e instanceof Y||e instanceof le||e instanceof ht||e instanceof he),b(e=>e instanceof Y||e instanceof he?0:(e instanceof le?e.code===V.Redirect||e.code===V.SupersededByNewNavigation:!1)?2:1),ae(e=>e!==2),Qe(1)).subscribe(()=>{r()})}var Bl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},se=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Sr);stateManager=d(ua);options=d(Xe,{optional:!0})||{};pendingTasks=d(un);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(rn);urlSerializer=d(Fe);location=d(be);urlHandlingStrategy=d(ar);_events=new ee;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(aa);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Je,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(tn,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Oi;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof le&&n.code!==V.Redirect&&n.code!==V.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Y)this.navigated=!0;else if(n instanceof pt){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),u=f({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||kl(i.source)},s);this.scheduleNavigation(a,jn,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}zl(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),jn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i)=>{this.navigateToSyncWithBrowser(e,i,n)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=f({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Si),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=n,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=f(f({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let h;try{let m=i?i.snapshot:this.routerState.snapshot.root;h=$s(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return zs(h,e,l,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=_e(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,jn,null,n)}navigate(e,n={skipLocationChange:!1}){return $l(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=f({},Bl):n===!1?i=f({},jl):i=n,_e(e))return Es(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Es(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((h,m)=>{a=h,u=m});let l=this.pendingTasks.add();return ur(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $l(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new S(4008,!1)}function zl(t){return!(t instanceof Wt)&&!(t instanceof pt)}var cr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ee;constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Y&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(_e(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:ro(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:_e(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(T(se),T(fe),vr("tabindex"),T(Be),T(Le),T(re))};static \u0275dir=J({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&po("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&ho("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",At],skipLocationChange:[2,"skipLocationChange","skipLocationChange",At],replaceUrl:[2,"replaceUrl","replaceUrl",At],routerLink:"routerLink"},features:[Re]})}return t})(),Vl=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Ne;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Y&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(wt()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=x(e).pipe(wt()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=Hl(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(T(se),T(Le),T(Be),T(ze),T(cr,8))};static \u0275dir=J({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&go(o,cr,5),n&2){let s;mo(s=vo())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Re]})}return t})();function Hl(t){return!!t.paths}var on=class{},Gl=(()=>{class t{preload(e,n){return n().pipe(Ce(()=>g(null)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ca=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,i,o){this.router=e,this.injector=n,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ae(e=>e instanceof Y),me(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let i=[];for(let o of n){o.providers&&!o._injector&&(o._injector=cn(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return x(i).pipe(wt())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=g(null);let o=i.pipe(j(s=>s===null?g(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return x([o,s]).pipe(wt())}else return o})}static \u0275fac=function(n){return new(n||t)(v(se),v(Se),v(on),v(sr))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ii=new E(""),la=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,i,o,s={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ie?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Y?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof he&&e.code===dt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ft&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ft(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){oo()};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function ql(t,...r){return tt([{provide:Je,multi:!0,useValue:t},[],{provide:fe,useFactory:da,deps:[se]},{provide:Rt,multi:!0,useFactory:ha},r.map(e=>e.\u0275providers)])}function da(t){return t.routerState.root}function Dt(t,r){return{\u0275kind:t,\u0275providers:r}}function Wl(t={}){return Dt(4,[{provide:Ii,useFactory:()=>{let e=d(jr),n=d(te),i=d(rn),o=d(Fe);return new la(o,i,e,n,t)}}])}function ha(){let t=d(Pe);return r=>{let e=t.get(bt);if(r!==e.components[0])return;let n=t.get(se),i=t.get(fa);t.get(Mi)===1&&n.initialNavigation(),t.get(ma,null,gr.Optional)?.setUpPreloading(),t.get(Ii,null,gr.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var fa=new E("",{factory:()=>new ee}),Mi=new E("",{providedIn:"root",factory:()=>1});function pa(){let t=[{provide:Mi,useValue:0},Rr(()=>{let r=d(Pe);return r.get(_r,Promise.resolve()).then(()=>new Promise(n=>{let i=r.get(se),o=r.get(fa);ur(i,()=>{n(!0)}),r.get(rn).afterPreactivation=()=>(n(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return Dt(2,t)}function ga(){let t=[Rr(()=>{d(se).setUpLocationChangeListener()}),{provide:Mi,useValue:2}];return Dt(3,t)}var ma=new E("");function va(t){return Dt(0,[{provide:ma,useExisting:ca},{provide:on,useExisting:t}])}function Da(){return Dt(8,[Ci,{provide:tn,useExisting:Ci}])}function ya(t){Ct("NgRouterViewTransitions");let r=[{provide:bi,useValue:sa},{provide:Ai,useValue:f({skipNextTransition:!!t?.skipInitialTransition},t)}];return Dt(9,r)}var wa=[be,{provide:Fe,useClass:Te},se,Ke,{provide:fe,useFactory:da,deps:[se]},sr,[]],Zl=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[wa,[],{provide:Je,multi:!0,useValue:e},[],n?.errorHandler?{provide:Ti,useValue:n.errorHandler}:[],{provide:Xe,useValue:n||{}},n?.useHash?Kl():Xl(),Yl(),n?.preloadingStrategy?va(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?Jl(n):[],n?.bindToComponentInputs?Da().\u0275providers:[],n?.enableViewTransitions?ya().\u0275providers:[],Ql()]}}static forChild(e){return{ngModule:t,providers:[{provide:Je,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=$e({type:t});static \u0275inj=Oe({})}return t})();function Yl(){return{provide:Ii,useFactory:()=>{let t=d(jr),r=d(te),e=d(Xe),n=d(rn),i=d(Fe);return e.scrollOffset&&t.setOffset(e.scrollOffset),new la(i,n,t,r,e)}}}function Kl(){return{provide:re,useClass:xr}}function Xl(){return{provide:re,useClass:fn}}function Jl(t){return[t.initialNavigation==="disabled"?ga().\u0275providers:[],t.initialNavigation==="enabledBlocking"?pa().\u0275providers:[]]}var _i=new E("");function Ql(){return[{provide:_i,useFactory:ha},{provide:Rt,multi:!0,useExisting:_i}]}export{O as a,ve as b,Ga as c,qa as d,Wo as e,Wa as f,Za as g,Ya as h,Ja as i,eu as j,nu as k,ru as l,Ko as m,su as n,bn as o,Wr as p,Ru as q,we as r,ye as s,Ge as t,qe as u,Bt as v,ms as w,Ju as x,Qu as y,Cs as z,fc as A,Kf as B,Y as C,fe as D,wi as E,se as F,cr as G,Vl as H,Gl as I,ql as J,Wl as K,va as L,Da as M,Zl as N};
package/chunk-GQWMJTTS.js DELETED
@@ -1 +0,0 @@
1
- import{a as Qe}from"./chunk-G4XX7EU2.js";import{a as Xe,b as Ze,c as et,d as tt,e as nt,f as ot}from"./chunk-EDCDR4RJ.js";import{a as Te,b as Fe}from"./chunk-O4QM64EH.js";import{d as ne,e as qe,i as we,j as Me,k as oe}from"./chunk-EW3R2HAB.js";import"./chunk-OLOVFS3Y.js";import"./chunk-QCLAOAVG.js";import"./chunk-Q33XIUDN.js";import{a as Ae}from"./chunk-XKCLERWG.js";import{a as ee,b as pe}from"./chunk-4LGDNQMZ.js";import"./chunk-PKN47FQE.js";import{a as K,b as J}from"./chunk-LRRVQSMI.js";import"./chunk-42UIGXWH.js";import"./chunk-NA5YXAMJ.js";import"./chunk-253IFSMV.js";import"./chunk-QYXQYPHB.js";import"./chunk-FBEBMNVC.js";import"./chunk-6NGIQJIP.js";import"./chunk-YDEVG4CR.js";import{a as Ee,b as Y}from"./chunk-5R3XKSDM.js";import{h as M}from"./chunk-AWXT2WGR.js";import"./chunk-C7LM5UCK.js";import{a as z,b as U}from"./chunk-J4XRJAME.js";import{a as te,b as ye,c as Pe,d as be,e as Oe,f as Ie,g as Je}from"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import{o as Ke,w as B,x as V}from"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import{e as H,f as _e,j as re,k as ge,l as xe,m as he,n as Ye,o as Ce,v as Se,x as Z,y as ve}from"./chunk-FMVCTBCQ.js";import{a as fe}from"./chunk-ZGXJEG37.js";import"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{D as ae,F as ze,G,N as k,f as L,j as He,m as w}from"./chunk-B63BKC6F.js";import{Ac as ie,Cb as _,Ga as R,Jc as Ue,Kb as s,Kc as je,Mc as u,Nb as F,Pb as $e,Qb as P,Sb as b,Tb as O,Ub as a,Vb as i,Wb as $,X as j,Yc as X,Z as D,_b as v,ba as ue,bb as Ve,c as se,dc as y,ec as c,gb as p,ha as h,pa as C,qa as S,qc as m,rc as d,s as Q,sc as I,uc as We,wb as T,yc as de,zc as E}from"./chunk-JP6RBSB3.js";import{a as f,b as x}from"./chunk-YQFG5XE2.js";var A=(()=>{class t{constructor(){this.httpService=h(fe)}getGlobalConfiguration(){return this.httpService.get(void 0,"/api/setup/GlobalConfiguration")}saveGlobalConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitGlobalConfiguration",e)}fetchPOSOutletConfiguration(e){return this.httpService.get(void 0,"/api/Setup/OutletConfiguration",{params:e})}fetchPOSOutletFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"/api/Setup/OutletConfigurationForm",n)}updatePOSOutletConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitOutletConfiguration",e)}fetchPOSPaymentConfiguration(e){return this.httpService.get(void 0,"/api/Setup/PaymentConfiguration",{params:e})}fetchPOSPaymentFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"api/Setup/PaymentConfigurationForm",n)}updatePOSPaymentConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitPaymentConfiguration",e)}fetchPOSTaxConfiguration(){return this.httpService.get(void 0,"/api/setup/TaxConfigurationForm")}updatePOSTaxConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitTaxConfiguration",e)}fetchPOSWriteOffConfiguration(){return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationList")}fetchPOSWriteOffFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationForm",n)}updatePOSWriteOffConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitWriteOffConfiguration",e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var N=function(t){return t.POSGLOBAL_SELL="Sell",t.POSGLOBAL_BUY="Buy",t.POSGLOBAL_ADJUSTMENT="Adjustment",t.POSGLOBAL_PREPAID="Prepaid",t.POSGLOBAL_RETURN="Return",t.POSGLOBAL_DEBT="Debt",t.POSGLOBAL_PAYMENTFEE="Payment Fee",t.POSGLOBAL_MANUFACTURING="Manufacturing",t.POSGLOBAL_ADVANCE="Advance",t}(N||{});var it={[N.POSGLOBAL_SELL]:[{typeID:2,side:"debit",label:"Account Receivable"},{typeID:1,side:"credit",label:"Sales"},{typeID:4,side:"debit",label:"COGS"},{typeID:3,side:"credit",label:"Sold Inventory"},{typeID:10,side:"debit",label:"Sales Discount"}],[N.POSGLOBAL_BUY]:[{typeID:27,side:"debit",label:"Pending Paid Inventory"},{typeID:5,side:"credit",label:"Account Payable"},{typeID:28,side:"debit",label:"Inventory Bought"},{typeID:27,side:"credit",label:"Pending Paid Inventory"},{typeID:11,side:"credit",label:"Purchase Discount"}],[N.POSGLOBAL_ADJUSTMENT]:[{typeID:26,side:"debit",label:"Adjustment Asset"},{typeID:21,side:"credit",label:"Adjustment Expense"}],[N.POSGLOBAL_PREPAID]:[{typeID:29,side:"debit",label:"Accounting for Prepaid"},{typeID:30,side:"debit",label:"Sales For Prepaid"}],[N.POSGLOBAL_RETURN]:[{typeID:8,side:"debit",label:"Sales Return"},{typeID:27,side:"debit",label:"Inventory"},{typeID:4,side:"credit",label:"COGS"},{typeID:9,side:"credit",label:"Purchase Return"}],[N.POSGLOBAL_DEBT]:[{typeID:17,side:"debit",label:"Consignment Payable"}],[N.POSGLOBAL_PAYMENTFEE]:[{typeID:19,side:"debit",label:"Payment Fee"},{typeID:20,side:"credit",label:"Surcharge"}],[N.POSGLOBAL_MANUFACTURING]:[{typeID:24,side:"debit",label:"Finished Goods"},{typeID:23,side:"credit",label:"Raw Material"},{typeID:25,side:"credit",label:"Production Expenses"}],[N.POSGLOBAL_ADVANCE]:[{typeID:15,side:"debit",label:"Crossing Account"},{typeID:16,side:"debit",label:"Retained Earnings"},{typeID:18,side:"debit",label:"Current Earnings"}]};function gt(t,r){if(t&1){let e=v();a(0,"div",5)(1,"p-button",6),y("onClick",function(){C(e);let o=c();return S(o.onSubmit())}),i()()}}function xt(t,r){if(t&1&&(a(0,"p-tab",10),m(1),i()),t&2){let e=r.$implicit;s("value",e.value),p(),d(e.label)}}function ht(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Ct(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function St(t,r){if(t&1&&(a(0,"div",14)(1,"div",15)(2,"div",5)(3,"label",16),m(4),i(),a(5,"span",17),m(6),i()(),a(7,"p-select",18),_(8,ht,7,2,"ng-template",null,2,u)(10,Ct,7,2,"ng-template",null,3,u),i()()()),t&2){let e=r.$implicit,n=c(4);s("formGroupName",e.index),p(4),d(e.entry.value.label),p(2),d(e.entry.value.side),p(),s("options",n.posIntegration().options.accounts)}}function vt(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function yt(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Pt(t,r){if(t&1&&(a(0,"div",14)(1,"div",15)(2,"div",5)(3,"label",16),m(4),i(),a(5,"span",20),m(6),i()(),a(7,"p-select",18),_(8,vt,7,2,"ng-template",null,2,u)(10,yt,7,2,"ng-template",null,3,u),i()()()),t&2){let e=r.$implicit,n=c(4);s("formGroupName",e.index),p(4),d(e.entry.value.label),p(2),d(e.entry.value.side),p(),s("options",n.posIntegration().options.accounts)}}function bt(t,r){if(t&1&&(a(0,"p-tabpanel",10)(1,"div",11)(2,"div",12)(3,"div",13),b(4,St,12,4,"div",14,P),i()(),a(6,"div",12)(7,"div",13),b(8,Pt,12,4,"div",14,P),i()()()()),t&2){let e=r.$implicit,n=c(3);s("value",e.value),p(),s("formGroupName",e.value),p(3),O(n.getDebitEntries(e.value)),p(4),O(n.getCreditEntries(e.value))}}function Ot(t,r){if(t&1){let e=v();a(0,"form",8),y("ngSubmit",function(){C(e);let o=c(2);return S(o.onSubmit())}),a(1,"p-tabs",9)(2,"p-tablist"),b(3,xt,2,2,"p-tab",10,P),i(),a(5,"p-tabpanels"),b(6,bt,10,2,"p-tabpanel",10,P),i()()()}if(t&2){let e=c(2);s("formGroup",e.accountForm),p(),s("value",e.tab())("lazy",!0),p(2),O(e.tabs()),p(3),O(e.tabs())}}function It(t,r){if(t&1&&_(0,Ot,8,3,"form",7),t&2){let e=c();s("ngIf",e.posIntegration()&&e.accountForm)}}var at=(()=>{class t{constructor(){this.posConfigService=h(A),this.fb=h(Se),this.tab=R(N.POSGLOBAL_SELL),this.tabs=R(Object.values(N).map(e=>({label:e,value:e}))),this.posIntegration=R(null),this.form=R([]),this.descriptionsMap=new Map,this.objectKeys=Object.keys,this.posGlobalTabEnum=N}ngOnInit(){this.posConfigService.getGlobalConfiguration().pipe(D(e=>{this.posIntegration.set(e),this.form.set(e.form),this.descriptionsMap=new Map(e.descriptions.map(n=>[+n.id,n.name])),this.initializeForm()})).subscribe()}initializeForm(){let e={};this.tabs().forEach(n=>{let o=this.getEntriesForTab(n.value);console.log(`Entries for ${n.value}:`,o),e[n.value]=this.fb.array(o.map(l=>this.createEntryFormGroup(l)))}),this.accountForm=this.fb.group(e)}createEntryFormGroup(e){let n=this.fb.group({typeID:[e.typeID],label:[e.label],side:[e.side],accountID:[this.getAccountIDByTypeID(e.typeID)]});return n.get("accountID").valueChanges.subscribe(o=>{this.syncAccountIDs(e.typeID,o,n)}),n}getAccountIDByTypeID(e){return this.form().find(o=>o.typeID===e)?.accountID||""}getEntriesForTab(e){return it[e]||[]}getTabEntries(e){return this.accountForm.get(e)}onSubmit(){let e=this.accountForm.getRawValue(),n=[],o=new Set;for(let l of Object.values(e))for(let{typeID:g,accountID:W}of l){let Be=`${g}_${W}`;o.has(Be)||(o.add(Be),n.push({typeID:g,accountID:W||Qe}))}console.log("Form submitted with value:",n),this.posConfigService.saveGlobalConfiguration({form:n}).subscribe({next:()=>console.log("Save successful"),error:l=>console.error("Save failed",l)})}getDebitEntries(e){return this.getTabEntries(e).controls.map((n,o)=>({entry:n,index:o})).filter(n=>n.entry.value.side==="debit")}getCreditEntries(e){return this.getTabEntries(e).controls.map((n,o)=>({entry:n,index:o})).filter(n=>n.entry.value.side==="credit")}syncAccountIDs(e,n,o){Object.values(this.accountForm.controls).forEach(l=>{l.controls.forEach(g=>{g!==o&&g.get("typeID")?.value===e&&g.get("accountID")?.value!==n&&g.get("accountID")?.setValue(n,{emitEvent:!1})})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-global"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],["pageTitle","POS Integration"],[1,"d-flex","gap-2"],["label","Submit",3,"onClick"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"border-top",3,"value","lazy"],[3,"value"],[1,"row",3,"formGroupName"],[1,"col"],[1,"row","gap-3"],[1,"col-12",3,"formGroupName"],[1,"form-group","d-flex","flex-column"],["for","",1,"fs-3"],[1,"text-success","fs-3"],["filter","","filterBy","code,name","formControlName","accountID","optionLabel","name","optionValue","id",3,"options"],[1,"d-flex","align-items-center","gap-2"],[1,"text-danger","fs-3"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,gt,2,0,"ng-template",null,0,u)(3,It,1,1,"ng-template",null,1,u),i())},dependencies:[M,ot,nt,tt,et,Xe,Ze,Ke,J,K,Z,ge,H,_e,w,L,k,V,B,ve,xe,Ce,he],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Et=t=>[t];function Tt(t,r){if(t&1&&(a(0,"th",7),m(1),i()),t&2){let e=r.$implicit;p(),d(e.name.slice(0,10))}}function Ft(t,r){if(t&1&&(a(0,"tr")(1,"th",6),m(2,"Method"),i()(),a(3,"tr"),b(4,Tt,2,1,"th",7,P),i()),t&2){let e=c(3);p(4),O(e.paymentConfiguration().outlets)}}function wt(t,r){if(t&1&&(a(0,"td"),m(1),i()),t&2){let e=r.$implicit;p(),d(e.accountName)}}function Mt(t,r){if(t&1&&(a(0,"tr")(1,"td",8)(2,"a",9),m(3),i()(),b(4,wt,2,1,"td",null,P),i()),t&2){let e=r.$implicit;p(2),s("routerLink",ie(2,Et,e.id)),p(),d(e.name),p(),O(e.accounts)}}function Dt(t,r){if(t&1&&(a(0,"p-table",5),_(1,Ft,6,0,"ng-template",null,1,u)(3,Mt,6,4,"ng-template",null,2,u),i()),t&2){let e=c(2);s("scrollable",!0)("scrollHeight","calc(100vh - 70px)")("value",e.paymentConfiguration().payment)}}function Rt(t,r){if(t&1){let e=v();a(0,"app-main-panel",4),y("search",function(o){C(e);let l=c();return S(l.onSearch(o))}),_(1,Dt,5,3,"ng-template",null,0,u),i()}t&2&&s("isSearchableInput",!0)}var rt=(()=>{class t{constructor(){this.POSSetupService=h(A),this.paymentConfiguration=R(null)}ngOnInit(){this.POSSetupService.fetchPOSPaymentConfiguration({}).pipe(D(e=>{this.paymentConfiguration.set(e)})).subscribe()}onSearch(e){this.POSSetupService.fetchPOSPaymentConfiguration({Search:e}).pipe(D(n=>{this.paymentConfiguration.set(n)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-payment"]],decls:1,vars:1,consts:[["content",""],["header",""],["body",""],["pageTitle","Payment Method Accounting",3,"isSearchableInput","search",4,"ngIf"],["pageTitle","Payment Method Accounting",3,"search","isSearchableInput"],[3,"scrollable","scrollHeight","value"],["rowspan","3",2,"min-width","300px"],[2,"min-width","200px"],["pFrozenColumn",""],[1,"link-primary",3,"routerLink"]],template:function(n,o){n&1&&_(0,Rt,3,1,"app-main-panel",3),n&2&&s("ngIf",o.paymentConfiguration())},dependencies:[M,oe,ne,qe,w,L,k,G],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var kt={data:{listOutletAccount:[],listCOAType:[],pageNumber:1,pageSize:20,totalCount:0,totalPages:0},filter:{PageNumber:1,PageSize:20,Search:""}},Le=ye(Ie(kt),Pe(t=>({first:X(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:X(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount))})),Oe(t=>{let r=h(A);return{updateFilter:n=>{te(t,o=>x(f({},o),{filter:f(f({},o.filter),n)}))},getPOSOutlets:Te(se(j(n=>r.fetchPOSOutletConfiguration(n).pipe(Fe({next:o=>{te(t,l=>x(f({},l),{data:o}))},error:o=>{console.error("Error fetching POS outlets:",o)}})))))}}),be(t=>({onInit:()=>{t.getPOSOutlets(t.filter)}})));var At=()=>({height:"calc(100vh - 70px)"}),Nt=t=>[t];function Lt(t,r){if(t&1&&(a(0,"th"),m(1),i()),t&2){let e=r.$implicit;p(),d(e.value)}}function Gt(t,r){if(t&1&&(a(0,"tr")(1,"th"),m(2,"Name"),i(),b(3,Lt,2,1,"th",null,P),i()),t&2){let e=c(2);p(3),O(e.store.data().listCOAType)}}function Bt(t,r){if(t&1&&(a(0,"td"),m(1),i()),t&2){let e=r.$implicit;p(),d(e)}}function Vt(t,r){if(t&1&&(a(0,"tr")(1,"td")(2,"a",7),m(3),i()(),b(4,Bt,2,1,"td",null,P),i()),t&2){let e=r.$implicit;p(2),s("routerLink",ie(2,Nt,e.OutletID)),p(),I(" ",e.OutletName,""),p(),O(e.Accounts)}}function $t(t,r){if(t&1&&m(0),t&2){let e=c(2);We(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Wt(t,r){t&1&&(a(0,"tr")(1,"td",8)(2,"span"),m(3," No journal entries found. "),i()()())}function Ut(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",6),y("onPage",function(o){C(e);let l=c();return S(l.onPage(o))}),_(2,Gt,5,0,"ng-template",null,1,u)(4,Vt,6,4,"ng-template",null,2,u)(6,$t,1,3,"ng-template",null,3,u)(8,Wt,4,0,"ng-template",null,4,u),i()()}if(t&2){let e=c();F(E(11,At)),p(),s("scrollable",!0)("scrollHeight","calc(100vh - 100px)")("value",e.store.data().listOutletAccount)("paginator",!0)("rows",e.store.filter().PageSize)("lazy",!0)("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("totalRecords",e.store.data().totalCount)}}var pt=(()=>{class t{constructor(){this.store=h(Le)}onSearch(e){this.store.updateFilter({PageNumber:1,PageSize:20,Search:e})}onPage(e){let n=e.first/e.rows+1;this.store.updateFilter(x(f({},this.store.filter()),{PageSize:e.rows,PageNumber:n}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-outlet"]],features:[de([Le])],decls:3,vars:1,consts:[["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Outlet Account",3,"search","isSearchableInput"],["styleClass","d-flex flex-column justify-content-between h-100",3,"onPage","scrollable","scrollHeight","value","paginator","rows","lazy","totalRecords"],[1,"link","link-primary",3,"routerLink"],["colspan","8"]],template:function(n,o){if(n&1){let l=v();a(0,"app-main-panel",5),y("search",function(W){return C(l),S(o.onSearch(W))}),_(1,Ut,10,12,"ng-template",null,0,u),i()}n&2&&s("isSearchableInput",!0)},dependencies:[M,w,Y,oe,ne,k,G,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var jt=()=>({height:"calc(100vh - 100px)"}),Ht=()=>({height:"calc(100vh - 150px)"});function zt(t,r){if(t&1){let e=v();a(0,"a",5),m(1,"Cancel"),i(),a(2,"p-button",6),y("onClick",function(){C(e);let o=c();return S(o.updatePOsOutletConfiguration())}),i()}}function Yt(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",17)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Kt(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",18)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Jt(t,r){if(t&1&&(a(0,"div",12)(1,"span",14),m(2),i(),a(3,"p-select",15),_(4,Yt,7,2,"ng-template",null,2,u)(6,Kt,7,2,"ng-template",null,3,u),i()()),t&2){let e,n=r.$implicit,o=r.$index,l=c(3);s("formGroupName",o),p(2),d((e=n.get("TypeName"))==null?null:e.value),p(),s("options",l.options.accounts)}}function qt(t,r){t&1&&$(0,"hr")}function Qt(t,r){if(t&1&&(a(0,"div",9)(1,"h3",10),m(2),Ue(3,"titlecase"),i(),a(4,"div",11),b(5,Jt,8,3,"div",12,P),i()(),_(7,qt,1,0,"hr",13)),t&2){let e,n=r.$implicit,o=r.$index,l=r.$index,g=r.$count,W=c(2);s("formGroupName",o),p(2),I(" ",je(3,3,(e=n.get("groupName"))==null?null:e.value)," "),p(3),O(W.getAccountsFormArray(l).controls),p(2),s("ngIf",l!==g-1)}}function Xt(t,r){if(t&1&&(a(0,"p-panel")(1,"p-scroll-panel")(2,"form",7)(3,"div",8),b(4,Qt,8,5,null,null,P),i()()()()),t&2){let e=c();F(E(5,jt)),p(),F(E(6,Ht)),p(),s("formGroup",e.accountsForm),p(2),O(e.accountGroupsArray.controls)}}var lt=(()=>{class t{constructor(){this.route=h(ae),this.POSSetupService=h(A),this.outletForm=R(null),this.allAccounts=[],this.options=null,this.outletName="",this.accountGroups=[{name:"sell",typeIds:[1,2],accounts:[]},{name:"delivery",typeIds:[3,4],accounts:[]},{name:"buy",typeIds:[27,11,28],accounts:[]},{name:"purchase return",typeIds:[9],accounts:[]},{name:"sales return",typeIds:[8],accounts:[]},{name:"adjustment",typeIds:[21,26],accounts:[]}],this.fb=h(Se)}ngOnInit(){this.accountsForm=this.fb.group({accountGroups:this.fb.array([])}),this.route.paramMap.pipe(Q(e=>e.get("id")),j(e=>this.POSSetupService.fetchPOSOutletFormConfiguration({outletID:e})),D(e=>{this.allAccounts=e.form,this.options=e.options,this.outletName=e.form[0].OutletName,this.accountGroups.forEach(o=>{o.accounts=this.allAccounts.filter(l=>o.typeIds.includes(l.TypeID))});let n=this.accountsForm.get("accountGroups");this.accountGroups.forEach(o=>{n.push(this.createAccountGroupControl(o))})})).subscribe()}get accountGroupsArray(){return this.accountsForm.get("accountGroups")}getAccountsFormArray(e){return this.accountGroupsArray.at(e).get("accounts")}createAccountGroupControl(e){return this.fb.group({groupName:[e.name],accounts:this.fb.array(e.accounts.map(n=>this.createAccountControl(n)))})}createAccountControl(e){return this.fb.group({AccountID:[e.AccountID],TypeID:[e.TypeID],TypeName:[e.TypeName],OutletID:[e.OutletID],OutletName:[e.OutletName]})}updatePOsOutletConfiguration(){let{accountGroups:e}=this.accountsForm.value,n={form:e.flatMap(o=>o.accounts.map(l=>({AccountID:l.AccountID,TypeID:l.TypeID,TypeName:l.TypeName,OutletID:l.OutletID,OutletName:l.OutletName})))};this.POSSetupService.updatePOSOutletConfiguration(n).pipe().subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-outlet-form"]],decls:5,vars:2,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding"],["routerLink","/pages/pos-setup/outlets",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"",3,"formGroup"],["formArrayName","accountGroups",1,"d-flex","flex-column","gap-2"],[1,"row",3,"formGroupName"],[1,"fs-4","fw-semibold"],["formArrayName","accounts",1,"row","row-gap-3"],[1,"col-6",3,"formGroupName"],[4,"ngIf"],[1,"fs-3"],["formControlName","AccountID","filter","","filterBy","code,name","optionLabel","name","optionValue","id","placeholder","Select an account",1,"w-100",3,"options"],[1,"d-flex","gap-2"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,zt,3,0,"ng-template",null,0,u)(3,Xt,6,7,"ng-template",null,1,u),i()),n&2&&s("pageTitle","Edit "+o.outletName)("hasMainWrapperPadding",!0)},dependencies:[M,w,L,He,Y,ve,ge,H,_e,xe,Ce,he,Ye,J,K,U,z,ee,V,B,k,G],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var en=()=>({height:"calc(100vh - 100px)"}),tn=()=>({width:"100%",height:"calc(100vh - 150px)"}),nn=()=>({width:"100%"});function on(t,r){if(t&1){let e=v();a(0,"a",6),m(1,"Cancel"),i(),a(2,"p-button",7),y("onClick",function(){C(e);let o=c(3);return S(o.updatePOSOutletConfiguration())}),i()}}function an(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",17)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function rn(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",18)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function pn(t,r){if(t&1){let e=v();a(0,"div",9)(1,"div",10)(2,"div",11)(3,"label",12),m(4),i()(),$(5,"div",13),a(6,"div",14)(7,"p-select",15),y("ngModelChange",function(o){let l=C(e).$index,g=c(4);return S(g.updateAccountById(o,l))}),_(8,an,7,2,"ng-template",null,2,u)(10,rn,7,2,"ng-template",null,3,u),i()()()()}if(t&2){let e=r.$implicit,n=r.$index,o=c(4);p(4),d(e.outletName.slice(0,15)),p(3),F(E(7,nn)),s("ngModel",o.paymentForm().form.accounts[n].accountID)("virtualScroll",!0)("virtualScrollItemSize",50)("options",o.paymentForm().options.chartOfAccount)}}function ln(t,r){if(t&1&&(a(0,"p-card")(1,"p-scrollpanel")(2,"div",8),b(3,pn,12,8,"div",9,P),i()()()),t&2){let e=c(3);F(E(4,en)),p(),F(E(5,tn)),p(2),O(e.paymentForm().form.accounts)}}function mn(t,r){if(t&1&&(a(0,"app-main-panel",4),_(1,on,3,0,"ng-template",null,0,u)(3,ln,5,6,"ng-template",null,1,u),i()),t&2){let e=c(2);s("pageTitle",e.paymentForm().form.paymentMethod.name+" Form Accounting")("hasMainWrapperPadding",!0)}}function cn(t,r){if(t&1&&_(0,mn,5,2,"app-main-panel",5),t&2){let e=c();s("ngIf",e.paymentForm())}}var ct=(()=>{class t{constructor(){this.route=h(ae),this.POSSetupService=h(A),this.paymentForm=R(null),this.router=h(ze)}ngOnInit(){this.route.paramMap.pipe(Q(e=>+e.get("id")),j(e=>this.POSSetupService.fetchPOSPaymentFormConfiguration({ID:e})),D(e=>{this.paymentForm.set(e)}),Ae("response")).subscribe()}updateAccountById(e,n){let o=this.paymentForm().form.accounts,l=x(f({},this.paymentForm()),{form:x(f({},this.paymentForm().form),{accounts:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)})});this.paymentForm.set(l)}updatePOSOutletConfiguration(){let e={form:[...this.paymentForm().form.accounts]};this.POSSetupService.updatePOSPaymentConfiguration(e).pipe(Ae("response"),D(()=>{this.router.navigate(["/pages/pos-setup/payments"])})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-payment-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding"],[3,"pageTitle","hasMainWrapperPadding",4,"ngIf"],["routerLink","/pages/pos-setup/payments",1,"p-button","p-button-outlined","p-button-secondary"],["label","Submit",3,"onClick"],[1,"row","row-gap-3"],[1,"col-6","d-flex","flex-column","gap-2"],[1,"row","row-gap-4"],[1,"col-2"],["for",""],[1,"col-3"],[1,"col-7"],["filter","","filterBy","name,code","optionLabel","name","optionValue","id","placeholder","Select an account",1,"w-full",3,"ngModelChange","ngModel","virtualScroll","virtualScrollItemSize","options"],[1,"d-flex","gap-2"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&_(0,cn,1,1,"app-main-panel",4),n&2&&$e(o.paymentForm()?0:-1)},dependencies:[Y,Ee,M,w,L,pe,ee,J,K,Z,H,re,k,G,V,B,U],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var sn=()=>({height:"calc(100vh - 70px)"}),un=()=>({width:"100%",height:"calc(100vh - 100px)"});function dn(t,r){if(t&1){let e=v();a(0,"div",5)(1,"a",6),m(2,"Cancel"),i(),a(3,"p-button",7),y("onClick",function(){C(e);let o=c();return S(o.updatePOSTaxConfiguration())}),i()()}}function fn(t,r){if(t&1&&(a(0,"div",5)(1,"div",15)(2,"span"),m(3),i()(),a(4,"div",15)(5,"span",15),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function _n(t,r){if(t&1&&(a(0,"div",5)(1,"div",15)(2,"span"),m(3),i()(),a(4,"div",16)(5,"span",15),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function gn(t,r){if(t&1){let e=v();a(0,"div",11)(1,"div",12)(2,"label",13),m(3),i(),a(4,"p-select",14),y("ngModelChange",function(o){let l=C(e).$index,g=c(2);return S(g.updateAccountID(o,l))}),_(5,fn,7,2,"ng-template",null,2,u)(7,_n,7,2,"ng-template",null,3,u),i()()()}if(t&2){let e=r.$implicit,n=r.$index,o=c(2);p(3),d(e.name),p(),s("options",o.taxForm().options.chartOfAccount)("ngModel",o.taxForm().form[n].accountID)}}function xn(t,r){if(t&1&&(a(0,"p-panel")(1,"p-scroll-panel")(2,"div",8)(3,"div",9)(4,"div",10),b(5,gn,9,3,"div",11,P),i()()()()()),t&2){let e=c();F(E(4,sn)),p(),F(E(5,un)),p(4),O(e.taxForm().form)}}var st=(()=>{class t{constructor(){this.POSSetupService=h(A),this.taxForm=R(null)}ngOnInit(){this.POSSetupService.fetchPOSTaxConfiguration().pipe(D(e=>{this.taxForm.set(e)})).subscribe()}updateAccountID(e,n){let o=this.taxForm().form,l=x(f({},this.taxForm()),{form:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)});this.taxForm.set(l)}updatePOSTaxConfiguration(){let e={form:[...this.taxForm().form]};this.POSSetupService.updatePOSTaxConfiguration(e).pipe(D(n=>console.log(n))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-tax"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],["pageTitle","Tax Setup"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col-4"],[1,"row","row-gap-3"],[1,"col-12"],[1,"d-flex","flex-column"],["for",""],["filter","","filterBy","name,code","optionLabel","name","optionValue","id","placeholder","Select an Account",3,"ngModelChange","options","ngModel"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,dn,4,0,"ng-template",null,0,u)(3,xn,7,6,"ng-template",null,1,u),i())},dependencies:[M,Y,w,J,K,pe,ee,Z,H,re,k,G,V,B,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var hn=()=>({height:"calc(100vh - 70px)"}),Cn=()=>({"min-width":"50rem"}),Sn=t=>[t];function vn(t,r){t&1&&$(0,"p-button",6)}function yn(t,r){if(t&1&&_(0,vn,1,0,"p-button",5),t&2){let e=c();s("ngIf",e.hasCheckedItems())}}function Pn(t,r){t&1&&(a(0,"tr")(1,"th",9),$(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),m(4,"Name"),i(),a(5,"th"),m(6,"Description"),i()())}function bn(t,r){if(t&1&&(a(0,"tr")(1,"td"),$(2,"p-tableCheckbox",10),i(),a(3,"td")(4,"a",11),m(5),i()(),a(6,"td"),m(7),i()()),t&2){let e=r.$implicit;p(2),s("value",e),p(2),s("routerLink",ie(4,Sn,e.id)),p(),d(e.name),p(2),d(e.description)}}function On(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",8),y("onRowSelect",function(o){C(e);let l=c(2);return S(l.onRowSelect(o))})("onRowUnselect",function(o){C(e);let l=c(2);return S(l.onRowSelect(o))})("onHeaderCheckboxToggle",function(o){C(e);let l=c(2);return S(l.onSelectAll(o))}),_(2,Pn,7,0,"ng-template",null,2,u)(4,bn,8,6,"ng-template",null,3,u),i()()}if(t&2){let e=c(2);F(E(4,hn)),p(),s("value",e.writeoffList().data)("tableStyle",E(5,Cn))}}function In(t,r){if(t&1&&_(0,On,6,6,"p-panel",7),t&2){let e=c();s("ngIf",e.writeoffList())}}var ut=(()=>{class t{constructor(){this.POSSetupService=h(A),this.writeoffList=R(null),this.hasCheckedItems=X(()=>{let e=this.writeoffList();return!e||!e.data||!Array.isArray(e.data)?!1:e.data.some(n=>n&&n.checked===!0)})}ngOnInit(){this.POSSetupService.fetchPOSWriteOffConfiguration().pipe(Q(e=>x(f({},e),{data:e.data.map(n=>x(f({},n),{checked:!1}))})),D(e=>{this.writeoffList.set(e)})).subscribe()}onRowSelect(e){console.log("Selected Row:",e.data);let n=this.writeoffList();if(!n||!n.data)return;let o=n.data.findIndex(l=>l.id===e.data.id);if(o!==-1){let l=[...n.data];l[o]=x(f({},l[o]),{checked:!l[o].checked}),this.writeoffList.set(x(f({},n),{data:l}))}}onSelectAll(e){let n=this.writeoffList();if(!n?.data)return;let o=n.data.map(l=>x(f({},l),{checked:e.checked}));this.writeoffList.set(x(f({},n),{data:o}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-writeoff"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Write Off"],["severity","danger","label","Delete","icon","fa-solid fa-trash",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash"],[3,"style",4,"ngIf"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","tableStyle"],[2,"width","1rem"],[3,"value"],[1,"link-primary",3,"routerLink"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,yn,1,1,"ng-template",null,0,u)(3,In,1,1,"ng-template",null,1,u),i())},dependencies:[M,w,L,oe,ne,we,Me,k,G,V,B,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var En=()=>({witdh:"100%",height:"calc(100vh - 150px)"});function Tn(t,r){if(t&1){let e=v();a(0,"div",6)(1,"a",7),m(2,"Cancel"),i(),a(3,"p-button",8),y("onClick",function(){C(e);let o=c(2);return S(o.updateWriteOffConfiguration())}),i()()}}function Fn(t,r){if(t&1&&(a(0,"div",6)(1,"span",16),m(2),i(),a(3,"span",16),m(4),i()()),t&2){let e=r.$implicit;p(2),I("(",e.code,")"),p(2),d(e.name)}}function wn(t,r){if(t&1&&(a(0,"div",6)(1,"span",16),m(2),i(),a(3,"span",16),m(4),i()()),t&2){let e=r.$implicit;p(2),I("(",e.code,")"),p(2),d(e.name)}}function Mn(t,r){if(t&1){let e=v();a(0,"div",12)(1,"div",13)(2,"label",14),m(3),i(),a(4,"p-select",15),y("ngModelChange",function(o){let l=C(e).$index,g=c(3);return S(g.updateAccountById(o,l))}),_(5,Fn,5,2,"ng-template",null,2,u)(7,wn,5,2,"ng-template",null,3,u),i()()()}if(t&2){let e=r.$implicit,n=c(3);p(3),d(e.name),p(),s("ngModel",e.accountID)("options",n.writeOffForm().options.account)("virtualScroll",!0)("virtualScrollItemSize",50)}}function Dn(t,r){if(t&1&&(a(0,"p-card")(1,"p-scroll-panel")(2,"div",9)(3,"div",10)(4,"div",11),b(5,Mn,9,5,"div",12,P),i()()()()()),t&2){let e=c(2);p(),F(E(2,En)),p(4),O(e.writeOffForm().form)}}function Rn(t,r){if(t&1&&(a(0,"app-main-panel",5),_(1,Tn,4,0,"ng-template",null,0,u)(3,Dn,7,3,"ng-template",null,1,u),i()),t&2){let e=c();s("pageTitle","Write Off Form "+e.writeOffForm().info.name)("hasMainWrapperPadding",!0)}}var dt=(()=>{class t{constructor(){this.POSSetupService=h(A),this.route=h(ae),this.writeOffForm=R(null)}ngOnInit(){this.route.paramMap.pipe(Q(e=>e.get("id")),j(e=>this.POSSetupService.fetchPOSWriteOffFormConfiguration({ID:e})),D(e=>this.writeOffForm.set(e))).subscribe()}updateAccountById(e,n){let o=this.writeOffForm().form,l=x(f({},this.writeOffForm()),{form:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)});this.writeOffForm.set(l)}updateWriteOffConfiguration(){let e={form:this.writeOffForm().form};this.POSSetupService.updatePOSWriteOffConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-writeoff-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding",4,"ngIf"],[3,"pageTitle","hasMainWrapperPadding"],[1,"d-flex","gap-2"],["routerLink","/pages/pos-setup/writeoff",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for","",1,"d-inline-block","text-truncate",2,"max-width","300px"],["filter","","filterBy","name,code","optionLabel","name","filter","","filterBy","name,code","optionValue","id","placeholder","Select an account",3,"ngModelChange","ngModel","options","virtualScroll","virtualScrollItemSize"],[1,""]],template:function(n,o){n&1&&_(0,Rn,5,2,"app-main-panel",4),n&2&&s("ngIf",o.writeOffForm())},dependencies:[M,w,L,Y,Ee,pe,ee,J,K,Z,H,re,k,G,V,B],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ft=(()=>{class t{constructor(){this.httpService=h(fe)}getExpenseOptions(){return this.httpService.get(void 0,"/api/SetupExpenseOption/GetExpenseOptions")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var kn={data:{expenseOptions:[]}},Ge=ye(Ie(kn),Je("POSExpenseOptionStore"),Pe(t=>({hasCheckedRows:X(()=>t.data().expenseOptions.some(r=>r.checked)),checkedInvoice:X(()=>t.data().expenseOptions.filter(r=>r.checked).map(r=>r.id))})),Oe(t=>{let r=h(ft);return{onRowSelect(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>g.id===n.id?x(f({},g),{checked:!0}):g);return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},onRowUnselect(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>g.id===n.id?x(f({},g),{checked:!1}):g);return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},onHeaderCheckboxToggle(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>x(f({},g),{checked:n}));return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},getExpenseOptions:Te(se(j(()=>r.getExpenseOptions().pipe(Fe({next:n=>{te(t,o=>x(f({},o),{data:x(f({},o.data),{expenseOptions:n.expenseOptions.map(l=>x(f({},l),{checked:!1}))})}))},error:n=>{console.error("Error fetching expense options:",n)}})))))}}),be({onInit:t=>{t.getExpenseOptions()}}));var An=()=>({height:"calc(100vh - 70px)"});function Nn(t,r){t&1&&$(0,"p-button",6)}function Ln(t,r){if(t&1&&_(0,Nn,1,0,"p-button",5),t&2){let e=c();s("ngIf",e.store.hasCheckedRows())}}function Gn(t,r){t&1&&(a(0,"tr")(1,"th",8),$(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),m(4,"Name"),i(),a(5,"th"),m(6,"Account"),i(),a(7,"th"),m(8,"Description"),i()())}function Bn(t,r){if(t&1&&(a(0,"tr")(1,"td"),$(2,"p-tableCheckbox",9),i(),a(3,"td"),m(4),i(),a(5,"td"),m(6),i(),a(7,"td"),$(8,"p",10),i()()),t&2){let e=r.$implicit;p(2),s("value",e),p(2),d(e.name),p(2),d(e.accountName),p(2),s("innerHTML",e.description,Ve)}}function Vn(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",7),y("onRowSelect",function(o){C(e);let l=c();return S(l.onRowSelect(o))})("onRowUnselect",function(o){C(e);let l=c();return S(l.onRowUnselect(o))})("onHeaderCheckboxToggle",function(o){C(e);let l=c();return S(l.onHeaderCheckboxToggle(o))}),_(2,Gn,9,0,"ng-template",null,2,u)(4,Bn,9,4,"ng-template",null,3,u),i()()}if(t&2){let e=c();F(E(3,An)),p(),s("value",e.store.data().expenseOptions)}}var _t=(()=>{class t{constructor(){this.store=h(Ge)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){Array.isArray(e.data)?e.data.forEach(n=>{this.store.onRowUnselect(n)}):this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-expense-option"]],features:[de([Ge])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Expense Option"],["label","Delete","severity","danger","icon","fa-solid fa-trash",4,"ngIf"],["label","Delete","severity","danger","icon","fa-solid fa-trash"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value"],[2,"width","1rem"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,Ln,1,1,"ng-template",null,0,u)(3,Vn,6,4,"ng-template",null,1,u),i())},dependencies:[M,oe,ne,we,Me,U,z,V,B,w,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ua=[{path:"",redirectTo:"global",pathMatch:"full"},{path:"",children:[{path:"global",component:at},{path:"outlets",component:pt},{path:"outlets/:id",component:lt},{path:"payments",component:rt},{path:"payments/:id",component:ct},{path:"taxs",component:st},{path:"writeoff",component:ut},{path:"writeoff/:id",component:dt},{path:"expense-option",component:_t}]}];export{Ua as POS_SETUP_ROUTES};
package/chunk-GYKMLBSE.js DELETED
@@ -1 +0,0 @@
1
- import{a as n}from"./chunk-AGLKA7OG.js";import"./chunk-C2GO6SPF.js";import"./chunk-ZGXJEG37.js";import"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{F as e}from"./chunk-B63BKC6F.js";import{ha as o}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var r=()=>{let t=o(n),i=o(e);return t.isAuthenticated()&&!t.isTokenExpired()&&t.checkAuthKeysExists()?(i.navigate(["/pages/dashboard"]),!1):!0};var h=[{path:"",canActivate:[r],loadComponent:()=>import("./chunk-WTBARN66.js").then(t=>t.LoginComponent)},{path:"404",loadComponent:()=>import("./chunk-VAXEGESW.js").then(t=>t.NotfoundComponent)},{path:"signup",loadComponent:()=>import("./chunk-BMBVCXB4.js").then(t=>t.SignupComponent)},{path:"504",loadComponent:()=>import("./chunk-M4Z3FI3C.js").then(t=>t.TimeoutComponent)}];export{h as AuthenticationRoutes};
package/chunk-HD2SASNC.js DELETED
@@ -1 +0,0 @@
1
- import{a as A}from"./chunk-EXGI2AG7.js";import{a as Ue}from"./chunk-G4XX7EU2.js";import{a as Oe,b as Be}from"./chunk-HHJMN4BS.js";import{a as He}from"./chunk-P7Z64VPC.js";import{b as V}from"./chunk-2PDTOOPI.js";import"./chunk-Y6H6VNCN.js";import{a as ae}from"./chunk-AGLKA7OG.js";import"./chunk-YOUPD27G.js";import{a as ze}from"./chunk-XKI7WLHE.js";import"./chunk-AZUQDRJU.js";import"./chunk-C2GO6SPF.js";import{a as z,b as H}from"./chunk-O4QM64EH.js";import{d as ke,i as Me,j as Pe,k as je}from"./chunk-EW3R2HAB.js";import{a as Ae,b as De}from"./chunk-OLOVFS3Y.js";import"./chunk-QCLAOAVG.js";import"./chunk-Q33XIUDN.js";import"./chunk-PKN47FQE.js";import{a as Je,b as Ne}from"./chunk-LRRVQSMI.js";import"./chunk-42UIGXWH.js";import"./chunk-NA5YXAMJ.js";import"./chunk-253IFSMV.js";import"./chunk-QYXQYPHB.js";import"./chunk-FBEBMNVC.js";import"./chunk-6NGIQJIP.js";import"./chunk-YDEVG4CR.js";import{g as Fe,h as Ve}from"./chunk-AWXT2WGR.js";import{b as Ee,c as Te}from"./chunk-C7LM5UCK.js";import{a as be,b as Se}from"./chunk-J4XRJAME.js";import{a as v,b as we,c as ve,d as ye,e as Re,f as Ie}from"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import{n as ge,o as he,w as xe,x as Ce}from"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import{b as le,c as me,e as pe,f as se,k as ce,l as de,o as ue,v as fe,y as _e}from"./chunk-FMVCTBCQ.js";import"./chunk-ZGXJEG37.js";import"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{c as ee,e as te,f as ie,i as ne,k as oe,m as re}from"./chunk-B63BKC6F.js";import{Ab as W,Ac as T,Cb as g,Ga as k,Jc as I,Kb as c,Kc as Z,Lc as F,Mc as w,Nb as $,Ub as r,Vb as o,Wb as b,X as N,Yc as E,Z as U,_b as y,bb as L,c as D,cb as G,dc as R,ec as _,gb as m,ha as C,pa as h,qa as x,qc as p,rc as S,s as J,sc as M,uc as q,vc as Q,wb as K,wc as P,xc as X,yc as Y,zc as j}from"./chunk-JP6RBSB3.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var Qe={data:{data:[],totalCount:0},meta:{options:{outlets:[]},filter:{number:null,outletName:null,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4,paymentState:0}},filter:{number:null,outletName:null,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4,paymentState:0}},O=we(Ie(Qe),ve(t=>({first:E(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:E(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().totalCount)),hasCheckedRows:E(()=>t.data().data.some(a=>a.checked)),checkedARCollection:E(()=>t.data().data.filter(a=>a.checked).map(a=>a.id))})),Re(t=>{let a=C(A),e=C(V);return{updateFilter(n){v(t,i=>f(d({},i),{filter:d(d({},i.filter),n)}))},onRowSelect(n){v(t,i=>{let u=i.data.data.map(s=>s.id===n.id?f(d({},s),{checked:!0}):s);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onRowUnselect(n){v(t,i=>{let u=i.data.data.map(s=>s.id===n.id?f(d({},s),{checked:!1}):s);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onHeaderCheckboxToggle(n){v(t,i=>{let u=i.data.data.map(s=>f(d({},s),{checked:n}));return f(d({},i),{data:f(d({},i.data),{data:u})})})},getARLoader:z(D(N(()=>a.getARJournalLoader().pipe(H({next:n=>{v(t,i=>f(d({},i),{meta:n}))},error:n=>{console.error("Error fetching AR collection loader:",n)}}))))),getARCollection:z(D(J(n=>Object.entries(n).reduce((i,[u,s])=>(s!=null&&(i[u]=s),i),{})),N(n=>a.getARJournal(n).pipe(J(i=>f(d({},i),{data:i.data.map(u=>f(d({},u),{due:e.from(u.due)?e.from(u.due).format():null,checked:!1}))})),H({next:i=>{v(t,u=>f(d({},u),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),ye(t=>({onInit:()=>{t.getARLoader(),t.getARCollection(t.filter)}})));var Xe=()=>({height:"calc(100vh - 70px)"}),B=t=>({"ng-invalid ng-dirty":t}),Ye=()=>({});function Ze(t,a){if(t&1){let e=y();r(0,"p-button",10),R("onClick",function(){h(e);let n=_(2);return x(n.onCreateJournal())}),o()}}function et(t,a){if(t&1&&g(0,Ze,1,0,"p-button",9),t&2){let e=_();c("ngIf",e.store.hasCheckedRows())}}function tt(t,a){t&1&&(r(0,"tr")(1,"th",12),b(2,"p-tableHeaderCheckbox"),o(),r(3,"th",13),p(4,"Outlet"),o(),r(5,"th",14),p(6,"Number"),o(),r(7,"th",15),p(8,"Customer"),o(),r(9,"th",16),p(10,"Date"),o(),r(11,"th",16),p(12,"Due"),o(),r(13,"th",15),p(14,"Note"),o(),r(15,"th",17),p(16,"Payment"),o(),b(17,"th",18),o())}function it(t,a){if(t&1&&(r(0,"tr")(1,"td"),b(2,"p-tableCheckbox",19),o(),r(3,"td"),p(4),o(),r(5,"td")(6,"a",20),p(7),o()(),r(8,"td"),p(9),o(),r(10,"td"),p(11),I(12,"date"),o(),r(13,"td"),p(14),I(15,"date"),o(),r(16,"td"),b(17,"div",21),o(),r(18,"td"),p(19),o(),r(20,"td"),b(21,"p-button",22),o()()),t&2){let e=a.$implicit,l=_(2);m(2),c("value",e),m(2),S(e.outlet),m(2),c("href",l.authService.getTenantExternalURL()+"/menu/Debt/Debt/Join_Invoice/New_Join_Invoice/Info?ID="+e.id,G),m(),M(" ",e.number," "),m(2),S(e.customer),m(2),S(F(12,12,e.date,"d MMM y")),m(3),S(e.due?F(15,15,e.due,"d MMM y hh:mm"):"-"),m(3),c("innerHTML",e.note,L),m(2),S(e.payment),m(2),c("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function nt(t,a){if(t&1&&p(0),t&2){let e=_(2);q(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function ot(t,a){t&1&&(r(0,"tr")(1,"td",23)(2,"span"),p(3,"No records found."),o()()())}function rt(t,a){if(t&1){let e=y();r(0,"p-panel")(1,"p-table",11),R("onPage",function(n){h(e);let i=_();return x(i.onPageChange(n))})("onHeaderCheckboxToggle",function(n){h(e);let i=_();return x(i.onHeaderCheckboxToggle(n))})("onRowSelect",function(n){h(e);let i=_();return x(i.onRowSelect(n))})("onRowUnselect",function(n){h(e);let i=_();return x(i.onRowUnselect(n))}),g(2,tt,18,0,"ng-template",null,3,w)(4,it,22,18,"ng-template",null,4,w)(6,nt,1,3,"ng-template",null,5,w)(8,ot,4,0,"ng-template",null,6,w),o()()}if(t&2){let e=_();$(j(9,Xe)),m(),c("value",e.store.data().data)("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}function at(t,a){if(t&1&&(r(0,"span",33),p(1),I(2,"truncate"),o()),t&2){let e=a.$implicit;c("pTooltip",e.name),m(),M(" ",F(2,2,e.name,30)," ")}}function lt(t,a){if(t&1&&(r(0,"div")(1,"span",35),p(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function mt(t,a){if(t&1&&(r(0,"div"),g(1,lt,3,1,"div",34),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("from"))}}function pt(t,a){if(t&1&&(r(0,"div")(1,"span",35),p(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function st(t,a){if(t&1&&(r(0,"div"),g(1,pt,3,1,"div",34),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("to"))}}function ct(t,a){if(t&1&&(r(0,"div")(1,"span",35),p(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function dt(t,a){if(t&1&&(r(0,"div"),g(1,ct,3,1,"div",34),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("pageSize"))}}function ut(t,a){if(t&1){let e=y();r(0,"form",24)(1,"div",25)(2,"label",26),p(3,"Outlet"),o(),r(4,"p-select",27),g(5,at,3,5,"ng-template",null,7,w),o()(),r(7,"div",25)(8,"label",26),p(9,"From"),o(),b(10,"p-datepicker",28),g(11,mt,2,1,"div",29),o(),r(12,"div",25)(13,"label",26),p(14,"To"),o(),b(15,"p-datepicker",30),g(16,st,2,1,"div",29),o(),r(17,"div",25)(18,"label",26),p(19,"Customer"),o(),r(20,"p-autocomplete",31),I(21,"async"),R("completeMethod",function(n){h(e);let i=_();return x(i.onSearchContact(n))}),o()(),r(22,"div",25)(23,"label",26),p(24,"Page Size"),o(),b(25,"input",32),g(26,dt,2,1,"div",29),o()()}if(t&2){let e=_();c("formGroup",e.form),m(4),c("virtualScrollItemSize",50)("options",e.store.meta().options.outlets),m(6),c("iconDisplay","input")("showIcon",!0)("ngClass",T(17,B,e.isInvalid("from"))),m(),c("ngIf",e.isInvalid("from")),m(4),c("iconDisplay","input")("showIcon",!0)("ngClass",T(19,B,e.isInvalid("to"))),m(),c("ngIf",e.isInvalid("to")),m(4),c("suggestions",Z(21,15,e.customerSuggestions$)),m(5),c("autoNumeric",j(21,Ye))("ngClass",T(22,B,e.isInvalid("pageSize"))),m(),c("ngIf",e.isInvalid("pageSize"))}}var ni=(()=>{class t extends ze{constructor(){super(),this.store=C(O),this.generateJournalService=C(A),this.authService=C(ae),this.isDialogFilterVisible=k(!1),this.isInitDialogFilterVisible=k(!1),this.fb=C(fe),this.dayjsService=C(V)}ngOnInit(){this.initForm()}initForm(){let{number:e,from:l,to:n,pageNumber:i,rowCount:u,pageSize:s,export:Le,exportPageNumber:Ge,exportRowCount:Ke,outletName:We,customerID:$e,paymentState:qe}=this.store.filter();this.form=this.fb.group({number:this.fb.control(e),from:this.fb.control(this.dayjsService.from(l)?this.dayjsService.from(l).toDate():null),to:this.fb.control(this.dayjsService.from(n)?this.dayjsService.from(n).toDate():null),pageNumber:this.fb.control(i),rowCount:this.fb.control(u),pageSize:this.fb.control(s,[me.required]),export:this.fb.control(Le),exportPageNumber:this.fb.control(Ge),exportRowCount:this.fb.control(Ke),outletName:this.fb.control(We),customerID:this.fb.control($e),paymentState:this.fb.control(qe)})}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((l,[n,i])=>{switch(n){case"customerID":i||(l[n]=Ue);break;case"from":typeof i=="object"?l[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null:l[n]=i!=null?String(i):null;break;case"to":typeof i=="object"?l[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null:l[n]=i!=null?String(i):null;break;default:l[n]=i===null?"":i;break}return l},{});console.log("Filter Body:",e),this.store.updateFilter(e),this.isDialogFilterVisible.set(!1)}onSearchContact(e){this.customerSuggestions$=this.generateJournalService.getCustomerSuggestions(e.query)}onSearch(e){this.store.updateFilter(f(d({},this.store.filter()),{number:e,pageNumber:1})),this.store.getARCollection(this.store.filter())}onPageChange(e){let l=e.first/e.rows;this.store.updateFilter(f(d({},this.store.filter()),{pageNumber:l+1}))}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(l=>{this.store.onRowUnselect(l)});return}else this.store.onRowUnselect(e.data)}onCreateJournal(){this.generateJournalService.createARJournal(this.store.checkedARCollection()).pipe(U(()=>this.store.getARCollection(this.store.filter))).subscribe()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=K({type:t,selectors:[["app-ar-journal"]],features:[Y([O]),W],decls:8,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["item",""],["pageTitle","AR Collection",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","1rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","14rem"],[2,"width","11rem"],[2,"width","9rem"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[3,"icon","severity","text"],["colspan","9"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["virtualScroll","","showClear","","filter","","filterBy","name","formControlName","outletName","appendTo","body","optionLabel","name","optionValue","name","placeholder","Select an Outlet",3,"virtualScrollItemSize","options"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],[4,"ngIf"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],["showClear","","formControlName","customerID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["type","text","pInputText","","formControlName","pageSize",3,"autoNumeric","ngClass"],[3,"pTooltip"],[4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(l,n){if(l&1){let i=y();r(0,"app-main-panel",8),X("isDialogFilterVisibleChange",function(s){return h(i),P(n.isDialogFilterVisible,s)||(n.isDialogFilterVisible=s),x(s)})("isInitDialogFilterVisibleChange",function(s){return h(i),P(n.isInitDialogFilterVisible,s)||(n.isInitDialogFilterVisible=s),x(s)}),R("filterConfirmed",function(){return h(i),x(n.onFilterOKEvent())})("search",function(s){return h(i),x(n.onSearch(s))}),g(1,et,1,1,"ng-template",null,0,w)(3,rt,10,10,"ng-template",null,1,w),p(5," <"),g(6,ut,27,24,"ng-template",null,2,w),o()}l&2&&(c("isSearchableInput",!0)("isFilterable",!0),Q("isDialogFilterVisible",n.isDialogFilterVisible)("isInitDialogFilterVisible",n.isInitDialogFilterVisible))},dependencies:[Ve,re,ee,te,ie,ne,oe,je,ke,Me,Pe,Ce,xe,Se,be,_e,ce,le,pe,se,de,ue,Ne,Je,De,Ae,Be,Oe,he,ge,Fe,Te,Ee,He],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{ni as ARJournalComponent};