marketplacepos 5.41.0 → 5.41.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +123 -123
- package/Marketplace/{chunk-5MRT2EFE.js → chunk-25OT4I3W.js} +1 -1
- package/Marketplace/chunk-2BUABOHG.js +1 -0
- package/Marketplace/chunk-2SXRC4IG.js +1 -0
- package/Marketplace/{chunk-KXZCGKQW.js → chunk-2TZBEYNY.js} +1 -1
- package/Marketplace/chunk-2ZTDLZVZ.js +1 -0
- package/Marketplace/chunk-33IXC6UG.js +1 -0
- package/Marketplace/{chunk-7477X7LJ.js → chunk-4CTORK4F.js} +1 -1
- package/Marketplace/{chunk-IRKRLYXS.js → chunk-4DV4IT7R.js} +1 -1
- package/Marketplace/chunk-4HZR3O3W.js +1 -0
- package/Marketplace/chunk-4JG3ZRYP.js +5 -0
- package/Marketplace/{chunk-BUFEIJAI.js → chunk-4M63ID5T.js} +1 -1
- package/Marketplace/chunk-4PZ5Q3HI.js +1 -0
- package/Marketplace/chunk-4YOHPIVG.js +1 -0
- package/Marketplace/{chunk-RVYGL22E.js → chunk-55OI2SUF.js} +1 -1
- package/Marketplace/chunk-5B4KSPFM.js +1 -0
- package/Marketplace/chunk-5DIRXS7I.js +1 -0
- package/Marketplace/chunk-5EQNOCXP.js +1 -0
- package/Marketplace/chunk-5JYR3YJW.js +1 -0
- package/Marketplace/chunk-5QAURMZF.js +222 -0
- package/Marketplace/{chunk-V2OJQHE3.js → chunk-5XI7HWS5.js} +2 -2
- package/Marketplace/chunk-5ZX2OVBB.js +1 -0
- package/Marketplace/chunk-66YHNWRR.js +1 -0
- package/Marketplace/chunk-6IFZ2TO6.js +1 -0
- package/Marketplace/{chunk-Q72ZXPDP.js → chunk-6LH7FSOW.js} +1 -1
- package/Marketplace/{chunk-OLSC6KHB.js → chunk-6MPSYC77.js} +1 -1
- package/Marketplace/chunk-6RSAOZUV.js +1 -0
- package/Marketplace/chunk-6SBCWEJJ.js +1 -0
- package/Marketplace/chunk-6UEHSA6E.js +1 -0
- package/Marketplace/{chunk-BIQHA7UA.js → chunk-6X2OBNJQ.js} +4 -4
- package/Marketplace/chunk-7H5ILTTK.js +1 -0
- package/Marketplace/{chunk-IYYVZ6B6.js → chunk-A2YNWIX6.js} +1 -1
- package/Marketplace/chunk-A4F37V57.js +1 -0
- package/Marketplace/{chunk-77IUCPIQ.js → chunk-ACIMXBIC.js} +1 -1
- package/Marketplace/chunk-AGRVVEIR.js +397 -0
- package/Marketplace/chunk-ALKC77XL.js +78 -0
- package/Marketplace/chunk-AVEGIEYT.js +193 -0
- package/Marketplace/chunk-BBVWQJ7M.js +1 -0
- package/Marketplace/chunk-BM4KX73T.js +1 -0
- package/Marketplace/chunk-BQTUAYGY.js +1 -0
- package/Marketplace/chunk-C7QA2BEN.js +3 -0
- package/Marketplace/chunk-CEQA4PTY.js +1 -0
- package/Marketplace/chunk-CMZW5QAE.js +1 -0
- package/Marketplace/chunk-CSSG7NAJ.js +1 -0
- package/Marketplace/chunk-DG32XLYI.js +1 -0
- package/Marketplace/chunk-DJILLV4M.js +1 -0
- package/Marketplace/chunk-DS4AAABV.js +1 -0
- package/Marketplace/{chunk-ZD5LURJS.js → chunk-E2CS7ZMC.js} +1 -1
- package/Marketplace/chunk-EL2JACEW.js +1 -0
- package/Marketplace/chunk-EU2KAMEK.js +1 -0
- package/Marketplace/chunk-EVLYO3HX.js +1 -0
- package/Marketplace/chunk-F4GMWHYJ.js +33 -0
- package/Marketplace/{chunk-RGR34QZ3.js → chunk-FBZW4Y3J.js} +1 -1
- package/Marketplace/chunk-FFAZ3Q3F.js +1 -0
- package/Marketplace/chunk-FUWROOE4.js +265 -0
- package/Marketplace/{chunk-6NNAICJE.js → chunk-FWG4H3QG.js} +1 -1
- package/Marketplace/chunk-GCECFUOP.js +1 -0
- package/Marketplace/{chunk-UBMI3NQH.js → chunk-GHBGGQNM.js} +1 -1
- package/Marketplace/chunk-GOS4RIF2.js +1 -0
- package/Marketplace/{chunk-IEYFOHME.js → chunk-GPC4DECX.js} +1 -1
- package/Marketplace/chunk-GZXQUJKX.js +1 -0
- package/Marketplace/chunk-H4PA2O6O.js +1 -0
- package/Marketplace/chunk-H6WIS2HR.js +2 -0
- package/Marketplace/{chunk-TMFFA26Y.js → chunk-HFKKITEW.js} +1 -1
- package/Marketplace/chunk-HPGFBOM4.js +1 -0
- package/Marketplace/{chunk-KHWTOD6H.js → chunk-HPYTL6TX.js} +1 -1
- package/Marketplace/chunk-HTQJCQ32.js +1 -0
- package/Marketplace/chunk-IARG7PLL.js +1 -0
- package/Marketplace/chunk-IIMHYIRJ.js +1 -0
- package/Marketplace/{chunk-GBABJLPQ.js → chunk-IKPRRD5D.js} +1 -1
- package/Marketplace/{chunk-EGTYAIU5.js → chunk-JOBWFOGC.js} +1 -1
- package/Marketplace/{chunk-PPDHTO44.js → chunk-JRWFZQ5K.js} +1 -1
- package/Marketplace/chunk-JS55A2RS.js +7 -0
- package/Marketplace/chunk-JV4MMNGD.js +79 -0
- package/Marketplace/chunk-K6YEZYU4.js +5 -0
- package/Marketplace/{chunk-KQOYVGBL.js → chunk-KJHSB4A2.js} +1 -1
- package/Marketplace/chunk-KOKHDU4I.js +1 -0
- package/Marketplace/{chunk-GBXNTL4E.js → chunk-KQQCKHF3.js} +1 -1
- package/Marketplace/chunk-KTIKLSOU.js +1 -0
- package/Marketplace/chunk-KTXS7IPU.js +1 -0
- package/Marketplace/chunk-KWQS4KX7.js +1 -0
- package/Marketplace/{chunk-COBHWPGI.js → chunk-KX5AWR75.js} +1 -1
- package/Marketplace/chunk-KXS76PRS.js +70 -0
- package/Marketplace/chunk-KYIY3VQ6.js +141 -0
- package/Marketplace/{chunk-J7AGLBPL.js → chunk-LHD7CYML.js} +1 -1
- package/Marketplace/chunk-LOPJ3O56.js +1 -0
- package/Marketplace/chunk-LR4UZ2OS.js +30 -0
- package/Marketplace/{chunk-M3SJUKTG.js → chunk-LSXUXG54.js} +1 -1
- package/Marketplace/chunk-LWSRD5LF.js +1 -0
- package/Marketplace/{chunk-Q2OEJFVT.js → chunk-M5IQRAHV.js} +1 -1
- package/Marketplace/{chunk-3BGJ2T6Y.js → chunk-MCJRJUAO.js} +1 -1
- package/Marketplace/chunk-MGVYUYPC.js +15 -0
- package/Marketplace/chunk-MP43HA4R.js +1 -0
- package/Marketplace/{chunk-RIHLYYZU.js → chunk-MQXPOHBV.js} +1 -1
- package/Marketplace/chunk-MTUIRWOB.js +2 -0
- package/Marketplace/chunk-MZI5AYCE.js +1 -0
- package/Marketplace/{chunk-JBKHY4HH.js → chunk-NRCXYGO3.js} +5 -5
- package/Marketplace/chunk-NTW6FBP5.js +1 -0
- package/Marketplace/chunk-NZA4BEER.js +102 -0
- package/Marketplace/chunk-O55KM5KY.js +1 -0
- package/Marketplace/{chunk-G6EG5QJS.js → chunk-OKAPL3YZ.js} +1 -1
- package/Marketplace/{chunk-WAW37FIG.js → chunk-OZ77CAJD.js} +1 -1
- package/Marketplace/chunk-OZ7LWNOK.js +15 -0
- package/Marketplace/chunk-P5FCWMYK.js +1 -0
- package/Marketplace/{chunk-NR7IH2JG.js → chunk-PBGDP6XV.js} +1 -1
- package/Marketplace/chunk-PE5AFID4.js +1 -0
- package/Marketplace/chunk-PEA6KVUS.js +252 -0
- package/Marketplace/{chunk-7TWBIV3T.js → chunk-PO7JVKK3.js} +1 -1
- package/Marketplace/chunk-PW42BQIY.js +1 -0
- package/Marketplace/chunk-Q6V3IOGL.js +1 -0
- package/Marketplace/{chunk-AQMHZFKJ.js → chunk-R5TTZPDX.js} +11 -11
- package/Marketplace/{chunk-75BDXSG3.js → chunk-R76V3PTN.js} +10 -10
- package/Marketplace/chunk-REL734JM.js +1 -0
- package/Marketplace/chunk-RHRJXX4W.js +1 -0
- package/Marketplace/chunk-S3YMF63V.js +1 -0
- package/Marketplace/chunk-SD7M7HOB.js +1 -0
- package/Marketplace/{chunk-VGXQU74M.js → chunk-SH7KN2AS.js} +1 -1
- package/Marketplace/{chunk-CH2MLZU7.js → chunk-SIYMMMKQ.js} +1 -1
- package/Marketplace/chunk-SLQA5QBT.js +1 -0
- package/Marketplace/chunk-SRJREA2O.js +5 -0
- package/Marketplace/{chunk-QCZIDOKW.js → chunk-SXLKJLAE.js} +1 -1
- package/Marketplace/{chunk-6IAGGRZN.js → chunk-SYENQYR7.js} +1 -1
- package/Marketplace/chunk-T4K3CJ2R.js +1 -0
- package/Marketplace/{chunk-V5WYSCVT.js → chunk-TGMCGROM.js} +1 -1
- package/Marketplace/{chunk-OE2JYQHN.js → chunk-TNKPTRB3.js} +1 -1
- package/Marketplace/chunk-TQ4ZLZ7C.js +1 -0
- package/Marketplace/chunk-TQIIWFRF.js +1 -0
- package/Marketplace/chunk-UDQBFSOV.js +1 -0
- package/Marketplace/chunk-UF4FKEE7.js +93 -0
- package/Marketplace/chunk-UJYSVGLV.js +1 -0
- package/Marketplace/{chunk-5GX2GLRY.js → chunk-UMY6NG57.js} +1 -1
- package/Marketplace/{chunk-YXFTLQ5M.js → chunk-UPYS4A4M.js} +1 -1
- package/Marketplace/chunk-UYW53K3I.js +1 -0
- package/Marketplace/chunk-VRI3CYGG.js +1 -0
- package/Marketplace/{chunk-6XFYITUD.js → chunk-WGXUKTYP.js} +1 -1
- package/Marketplace/{chunk-ZZVNB72Q.js → chunk-WHZ44BAL.js} +1 -1
- package/Marketplace/chunk-WTAJSWM2.js +4 -0
- package/Marketplace/chunk-WX5S3HCU.js +1 -0
- package/Marketplace/{chunk-MNFHFW3E.js → chunk-XEMNZHW6.js} +1 -1
- package/Marketplace/chunk-XGYBJAFE.js +1 -0
- package/Marketplace/{chunk-J3P46Z53.js → chunk-XQGRC7V2.js} +1 -1
- package/Marketplace/chunk-YP2IPJ2O.js +1 -0
- package/Marketplace/{chunk-YR2WEZDG.js → chunk-YPVYJUXS.js} +1 -1
- package/Marketplace/chunk-Z3ITXK3D.js +1 -0
- package/Marketplace/chunk-Z3KD73SP.js +2 -0
- package/Marketplace/chunk-ZAVDOMSW.js +1 -0
- package/Marketplace/chunk-ZGZ74AJR.js +1 -0
- package/Marketplace/{chunk-GHQH62TZ.js → chunk-ZIOAOUAM.js} +1 -1
- package/Marketplace/{chunk-2G6NLWKN.js → chunk-ZIUDNFYT.js} +1 -1
- package/Marketplace/chunk-ZLNGASME.js +1 -0
- package/Marketplace/chunk-ZNDU44GH.js +51 -0
- package/Marketplace/{chunk-7FUVW73P.js → chunk-ZR5IXNXB.js} +1 -1
- package/Marketplace/index.html +3 -3
- package/Marketplace/main-SPNULRF2.js +1 -0
- package/Marketplace/{styles-NJFTKO3E.css → styles-X3FXEB7T.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-2BBMPSAE.js +0 -93
- package/Marketplace/chunk-2Q5YW6MY.js +0 -2
- package/Marketplace/chunk-2SUNUZ5Y.js +0 -3
- package/Marketplace/chunk-3HTZTPHD.js +0 -1
- package/Marketplace/chunk-3ZWNYMH7.js +0 -1
- package/Marketplace/chunk-4ASUM4N5.js +0 -1
- package/Marketplace/chunk-4G3QN54S.js +0 -193
- package/Marketplace/chunk-56YK4SLT.js +0 -1
- package/Marketplace/chunk-5FBFUPHZ.js +0 -1
- package/Marketplace/chunk-62PFQNHJ.js +0 -1
- package/Marketplace/chunk-6ALHX2I4.js +0 -1
- package/Marketplace/chunk-6EV6VQBQ.js +0 -1
- package/Marketplace/chunk-7GQIIDFF.js +0 -4
- package/Marketplace/chunk-AMXLXRQK.js +0 -1
- package/Marketplace/chunk-BGEYIOMP.js +0 -1
- package/Marketplace/chunk-D54NUPYF.js +0 -153
- package/Marketplace/chunk-DI4V7KMK.js +0 -1
- package/Marketplace/chunk-DPLEMBB4.js +0 -1
- package/Marketplace/chunk-DZ2EE5MV.js +0 -1
- package/Marketplace/chunk-E3HMIPER.js +0 -2
- package/Marketplace/chunk-EDG73HHT.js +0 -4
- package/Marketplace/chunk-EIGDGRRL.js +0 -1
- package/Marketplace/chunk-G5MO6R5Z.js +0 -1
- package/Marketplace/chunk-GPEVUTDI.js +0 -2
- package/Marketplace/chunk-HKYVBAMV.js +0 -1
- package/Marketplace/chunk-I6JDDQC2.js +0 -5
- package/Marketplace/chunk-IIJMZKPL.js +0 -1
- package/Marketplace/chunk-K2H6WANG.js +0 -1
- package/Marketplace/chunk-K64THYES.js +0 -1
- package/Marketplace/chunk-KP4WSF75.js +0 -1
- package/Marketplace/chunk-KQ546ATX.js +0 -1
- package/Marketplace/chunk-KQAQTVXQ.js +0 -1
- package/Marketplace/chunk-KVP6OL4J.js +0 -2
- package/Marketplace/chunk-L4NLJBLA.js +0 -1
- package/Marketplace/chunk-LPXBSHUI.js +0 -180
- package/Marketplace/chunk-MATSRG2L.js +0 -447
- package/Marketplace/chunk-MNQZPU5N.js +0 -1
- package/Marketplace/chunk-NEIZYQV3.js +0 -1
- package/Marketplace/chunk-PXB4YEY3.js +0 -1
- package/Marketplace/chunk-QNT7YFQS.js +0 -1
- package/Marketplace/chunk-RLLHX27L.js +0 -1
- package/Marketplace/chunk-RNM3GVNZ.js +0 -1
- package/Marketplace/chunk-SE2DPPGP.js +0 -1
- package/Marketplace/chunk-SMZ7F54P.js +0 -5
- package/Marketplace/chunk-SXW52HYQ.js +0 -1
- package/Marketplace/chunk-T5ONJF63.js +0 -7
- package/Marketplace/chunk-T6QOFDEE.js +0 -1
- package/Marketplace/chunk-TAO67VCP.js +0 -1
- package/Marketplace/chunk-TQ2P22BQ.js +0 -1
- package/Marketplace/chunk-TRHB4HA4.js +0 -1
- package/Marketplace/chunk-V6IVDZR7.js +0 -2
- package/Marketplace/chunk-VETHPEVU.js +0 -1
- package/Marketplace/chunk-VSEWXNVC.js +0 -291
- package/Marketplace/chunk-XITXJ764.js +0 -15
- package/Marketplace/chunk-XM6GN4VF.js +0 -1
- package/Marketplace/chunk-XYIY2TDE.js +0 -1
- package/Marketplace/chunk-Y3U6BFV5.js +0 -1
- package/Marketplace/chunk-YIUQQGOQ.js +0 -1
- package/Marketplace/main-DNC2TBQ6.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as Vi,$a as cn,A as vr,Ab as lo,Ac as bo,Bb as ho,Ca as Er,Cb as fo,Da as Sr,Db as ln,Ea as De,Eb as po,Fb as Ie,G as se,Ga as Ct,Gb as $,Hb as bt,Ia as Et,J as je,Ja as qi,K as me,Ka as ze,La as J,Lb as _r,Ma as br,Mb as go,N as Dr,Na as Wi,Nb as dn,O as et,Oa as Ae,Ob as hn,Pb as Ir,Qb as fn,Rb as mo,S as $e,Sa as Zi,Sb as Mr,T as Se,Ta as Rr,Tb as vo,U as yr,Ua as Yi,Ub as Fr,V as $i,Va as tt,Vb as Do,X as zi,Xa as Ar,Xb as yo,Ya as Ki,Za as Xi,_a as Ji,a as ki,aa as G,b as xi,bb as Qi,c as Dt,ca as an,cb as St,d as gr,db as Te,dd as Ro,e as mr,ea as x,eb as nt,ed as Or,f as te,fb as eo,fd as Ao,g as K,ga as w,gb as to,ha as ve,hb as no,hd as Me,ib as ro,ic as wo,id as To,ja as D,jb as io,jd as _o,ka as be,kb as oo,kd as Io,la as Hi,lb as so,ld as Mo,m as ge,ma as C,mb as Ve,md as ye,na as wr,nd as Pr,oa as m,od as pn,p as k,pa as d,pb as ao,pc as q,q as p,qc as F,r as yt,rb as He,rc as Co,s as Ui,sa as un,sb as Tr,sd as Fo,t as Bi,ta as Gi,ua as Re,ub as uo,v as R,va as X,vb as _e,w as sn,wa as Cr,wb as T,x as j,xa as ae,xb as co,xc as Eo,y as wt,yb as Ge,z as ji,zc as So}from"./chunk-T5ONJF63.js";import{a as f,b as L}from"./chunk-K2H6WANG.js";var O=new C("");var No=null;function ue(){return No}function Nr(t){No??=t}var Rt=class{},At=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Lo),providedIn:"platform"})}return t})(),Lr=new C(""),Lo=(()=>{class t extends At{_location;_history;_doc=d(O);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ue().getBaseHref(this._doc)}onPopState(e){let n=ue().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=ue().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 gn(t,r){return t?r?t.endsWith("/")?r.startsWith("/")?t+r.slice(1):t+r:r.startsWith("/")?t+r:`${t}/${r}`:t:r}function Oo(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(vn),providedIn:"root"})}return t})(),mn=new C(""),vn=(()=>{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 gn(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)(m(At),m(mn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Oe=(()=>{class t{_subject=new te;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=Pa(Oo(Po(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(Oa(this._basePath,Po(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=gn;static stripTrailingSlash=Oo;static \u0275fac=function(n){return new(n||t)(m(re))};static \u0275prov=D({token:t,factory:()=>Fa(),providedIn:"root"})}return t})();function Fa(){return new Oe(m(re))}function Oa(t,r){if(!t||!r.startsWith(t))return r;let e=r.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function Po(t){return t.replace(/\/index.html$/,"")}function Pa(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Hr=(()=>{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=gn(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)(m(At),m(mn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var Gr=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Gr||{});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}(_||{}),z=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||{}),V={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 zo(t){return q(t)[F.LocaleId]}function Vo(t,r,e){let n=q(t),i=[n[F.DayPeriodsFormat],n[F.DayPeriodsStandalone]],o=Q(i,r);return Q(o,e)}function Ho(t,r,e){let n=q(t),i=[n[F.DaysFormat],n[F.DaysStandalone]],o=Q(i,r);return Q(o,e)}function Go(t,r,e){let n=q(t),i=[n[F.MonthsFormat],n[F.MonthsStandalone]],o=Q(i,r);return Q(o,e)}function qo(t,r){let n=q(t)[F.Eras];return Q(n,r)}function Tt(t,r){let e=q(t);return Q(e[F.DateFormat],r)}function _t(t,r){let e=q(t);return Q(e[F.TimeFormat],r)}function It(t,r){let n=q(t)[F.DateTimeFormat];return Q(n,r)}function ce(t,r){let e=q(t),n=e[F.NumberSymbols][r];if(typeof n>"u"){if(r===V.CurrencyDecimal)return e[F.NumberSymbols][V.Decimal];if(r===V.CurrencyGroup)return e[F.NumberSymbols][V.Group]}return n}function Wo(t,r){return q(t)[F.NumberFormats][r]}function Zo(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 Yo(t){let r=q(t);return Zo(r),(r[F.ExtraData][2]||[]).map(n=>typeof n=="string"?kr(n):[kr(n[0]),kr(n[1])])}function Ko(t,r,e){let n=q(t);Zo(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 kr(t){let[r,e]=t.split(":");return{hours:+r,minutes:+e}}var Na=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Dn={},La=/((?:[^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 Xo(t,r,e,n){let i=Ha(t);r=we(e,r)||r;let s=[],a;for(;r;)if(a=La.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=Qo(n,u),i=Va(i,n));let c="";return s.forEach(l=>{let h=$a(l);c+=h?h(i,e,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Sn(t,r,e){let n=new Date(0);return n.setFullYear(t,r,e),n.setHours(0,0,0),n}function we(t,r){let e=zo(t);if(Dn[e]??={},Dn[e][r])return Dn[e][r];let n="";switch(r){case"shortDate":n=Tt(t,z.Short);break;case"mediumDate":n=Tt(t,z.Medium);break;case"longDate":n=Tt(t,z.Long);break;case"fullDate":n=Tt(t,z.Full);break;case"shortTime":n=_t(t,z.Short);break;case"mediumTime":n=_t(t,z.Medium);break;case"longTime":n=_t(t,z.Long);break;case"fullTime":n=_t(t,z.Full);break;case"short":let i=we(t,"shortTime"),o=we(t,"shortDate");n=yn(It(t,z.Short),[i,o]);break;case"medium":let s=we(t,"mediumTime"),a=we(t,"mediumDate");n=yn(It(t,z.Medium),[s,a]);break;case"long":let u=we(t,"longTime"),c=we(t,"longDate");n=yn(It(t,z.Long),[u,c]);break;case"full":let l=we(t,"fullTime"),h=we(t,"fullDate");n=yn(It(t,z.Full),[l,h]);break}return n&&(Dn[e][r]=n),n}function yn(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 ka(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=xa(t,o);if((e>0||a>-e)&&(a+=e),t===3)a===0&&e===-12&&(a=12);else if(t===6)return ka(a,r);let u=ce(s,V.MinusSign);return ie(a,r,u,n,i)}}function xa(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 I(t,r,e=U.Format,n=!1){return function(i,o){return Ua(i,o,t,r,e,n)}}function Ua(t,r,e,n,i,o){switch(e){case 2:return Go(r,i,n)[t.getMonth()];case 1:return Ho(r,i,n)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(o){let c=Yo(r),l=Ko(r,i,n),h=c.findIndex(v=>{if(Array.isArray(v)){let[g,b]=v,S=s>=g.hours&&a>=g.minutes,E=s<b.hours||s===b.hours&&a<b.minutes;if(g.hours<b.hours){if(S&&E)return!0}else if(S||E)return!0}else if(v.hours===s&&v.minutes===a)return!0;return!1});if(h!==-1)return l[h]}return Vo(r,i,n)[s<12?0:1];case 3:return qo(r,n)[t.getFullYear()<=0?0:1];default:let u=e;throw new Error(`unexpected translation type ${u}`)}}function wn(t){return function(r,e,n){let i=-1*n,o=ce(e,V.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 Ba=0,En=4;function ja(t){let r=Sn(t,Ba,1).getDay();return Sn(t,0,1+(r<=En?En:En+7)-r)}function Jo(t){let r=t.getDay(),e=r===0?-3:En-r;return Sn(t.getFullYear(),t.getMonth(),t.getDate()+e)}function xr(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=Jo(e),s=ja(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return ie(i,t,ce(n,V.MinusSign))}}function Cn(t,r=!1){return function(e,n){let o=Jo(e).getFullYear();return ie(o,t,ce(n,V.MinusSign),r)}}var Ur={};function $a(t){if(Ur[t])return Ur[t];let r;switch(t){case"G":case"GG":case"GGG":r=I(3,_.Abbreviated);break;case"GGGG":r=I(3,_.Wide);break;case"GGGGG":r=I(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=Cn(1);break;case"YY":r=Cn(2,!0);break;case"YYY":r=Cn(3);break;case"YYYY":r=Cn(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=I(2,_.Abbreviated);break;case"MMMM":r=I(2,_.Wide);break;case"MMMMM":r=I(2,_.Narrow);break;case"LLL":r=I(2,_.Abbreviated,U.Standalone);break;case"LLLL":r=I(2,_.Wide,U.Standalone);break;case"LLLLL":r=I(2,_.Narrow,U.Standalone);break;case"w":r=xr(1);break;case"ww":r=xr(2);break;case"W":r=xr(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=I(1,_.Abbreviated,U.Standalone);break;case"cccc":r=I(1,_.Wide,U.Standalone);break;case"ccccc":r=I(1,_.Narrow,U.Standalone);break;case"cccccc":r=I(1,_.Short,U.Standalone);break;case"E":case"EE":case"EEE":r=I(1,_.Abbreviated);break;case"EEEE":r=I(1,_.Wide);break;case"EEEEE":r=I(1,_.Narrow);break;case"EEEEEE":r=I(1,_.Short);break;case"a":case"aa":case"aaa":r=I(0,_.Abbreviated);break;case"aaaa":r=I(0,_.Wide);break;case"aaaaa":r=I(0,_.Narrow);break;case"b":case"bb":case"bbb":r=I(0,_.Abbreviated,U.Standalone,!0);break;case"bbbb":r=I(0,_.Wide,U.Standalone,!0);break;case"bbbbb":r=I(0,_.Narrow,U.Standalone,!0);break;case"B":case"BB":case"BBB":r=I(0,_.Abbreviated,U.Format,!0);break;case"BBBB":r=I(0,_.Wide,U.Format,!0);break;case"BBBBB":r=I(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=wn(0);break;case"ZZZZZ":r=wn(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=wn(1);break;case"OOOO":case"ZZZZ":case"zzzz":r=wn(2);break;default:return null}return Ur[t]=r,r}function Qo(t,r){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?r:e}function za(t,r){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+r),t}function Va(t,r,e){let i=t.getTimezoneOffset(),o=Qo(r,i);return za(t,-1*(o-i))}function Ha(t){if(ko(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 Sn(i,o-1,s)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(Na))return Ga(n)}let r=new Date(t);if(!ko(r))throw new Error(`Unable to convert "${t}" into a date`);return r}function Ga(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 ko(t){return t instanceof Date&&!isNaN(t.valueOf())}var qa=/^(\d+)?\.((\d+)(-(\d+))?)?$/,xo=22,bn=".",Mt="0",Wa=";",Za=",",Br="#";function Ya(t,r,e,n,i,o,s=!1){let a="",u=!1;if(!isFinite(t))a=ce(e,V.Infinity);else{let c=Ja(t);s&&(c=Xa(c));let l=r.minInt,h=r.minFrac,v=r.maxFrac;if(o){let ee=o.match(qa);if(ee===null)throw new Error(`${o} is not a valid digit info`);let M=ee[1],Be=ee[3],on=ee[5];M!=null&&(l=jr(M)),Be!=null&&(h=jr(Be)),on!=null?v=jr(on):Be!=null&&h>v&&(v=h)}Qa(c,h,v);let g=c.digits,b=c.integerLen,S=c.exponent,E=[];for(u=g.every(ee=>!ee);b<l;b++)g.unshift(0);for(;b<0;b++)g.unshift(0);b>0?E=g.splice(b,g.length):(E=g,g=[0]);let B=[];for(g.length>=r.lgSize&&B.unshift(g.splice(-r.lgSize,g.length).join(""));g.length>r.gSize;)B.unshift(g.splice(-r.gSize,g.length).join(""));g.length&&B.unshift(g.join("")),a=B.join(ce(e,n)),E.length&&(a+=ce(e,i)+E.join("")),S&&(a+=ce(e,V.Exponential)+"+"+S)}return t<0&&!u?a=r.negPre+a+r.negSuf:a=r.posPre+a+r.posSuf,a}function es(t,r,e){let n=Wo(r,Gr.Decimal),i=Ka(n,ce(r,V.MinusSign));return Ya(t,i,r,V.Group,V.Decimal,e)}function Ka(t,r="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(Wa),i=n[0],o=n[1],s=i.indexOf(bn)!==-1?i.split(bn):[i.substring(0,i.lastIndexOf(Mt)+1),i.substring(i.lastIndexOf(Mt)+1)],a=s[0],u=s[1]||"";e.posPre=a.substring(0,a.indexOf(Br));for(let l=0;l<u.length;l++){let h=u.charAt(l);h===Mt?e.minFrac=e.maxFrac=l+1:h===Br?e.maxFrac=l+1:e.posSuf+=h}let c=a.split(Za);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(Br);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 Xa(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 Ja(t){let r=Math.abs(t)+"",e=0,n,i,o,s,a;for((i=r.indexOf(bn))>-1&&(r=r.replace(bn,"")),(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)===Mt;o++);if(o===(a=r.length))n=[0],i=1;else{for(a--;r.charAt(a)===Mt;)a--;for(i-=o,n=[],s=0;o<=a;o++,s++)n[s]=Number(r.charAt(o))}return i>xo&&(n=n.splice(0,xo-1),e=i-1,i=1),{digits:n,exponent:e,integerLen:i}}function Qa(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,v,g,b){return v=v+h,b[g]=v<10?v:v-10,u&&(b[g]===0&&g>=c?b.pop():u=!1),v>=10?1:0},0);l&&(n.unshift(l),t.integerLen++)}function jr(t){let r=parseInt(t);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+t);return r}var $r=/\s+/,Uo=[],eu=(()=>{class t{_ngEl;_renderer;initialClasses=Uo;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split($r):Uo}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split($r):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($r).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(Ae),T(_e))};static \u0275dir=$({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})(),tu=(()=>{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=fo(this.ngComponentOutletNgModule,Bo(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Bo(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(Ge))};static \u0275dir=$({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[ae]})}return t})();function Bo(t){return t.get(lo).injector}var Rn=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}},ts=(()=>{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 Rn(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),jo(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);jo(o,i)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(T(Ge),T(Tr),T(To))};static \u0275dir=$({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function jo(t,r){t.context.$implicit=r.item}var nu=(()=>{class t{_viewContainer;_context=new An;_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){$o(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){$o(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(Ge),T(Tr))};static \u0275dir=$({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),An=class{$implicit=null;ngIf=null};function $o(t,r){if(t&&!t.createEmbeddedView)throw new w(2020,!1)}var ru=(()=>{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:He.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(Ae),T(_o),T(_e))};static \u0275dir=$({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),iu=(()=>{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(Ge))};static \u0275dir=$({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ae]})}return t})();function qr(t,r){return new w(2100,!1)}var zr=class{createSubscription(r,e){return pn(()=>r.subscribe({next:e,error:n=>{throw n}}))}dispose(r){pn(()=>r.unsubscribe())}},Vr=class{createSubscription(r,e){return r.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(r){r.unsubscribe()}},ou=new Vr,su=new zr,au=(()=>{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(fn(e))return ou;if(mo(e))return su;throw qr(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(Me,16))};static \u0275pipe=bt({name:"async",type:t,pure:!1})}return t})();var uu="mediumDate",ns=new C(""),rs=new C(""),cu=(()=>{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??uu,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Xo(e,s,o||this.locale,a)}catch(s){throw qr(t,s.message)}}static \u0275fac=function(n){return new(n||t)(T(Or,16),T(ns,24),T(rs,24))};static \u0275pipe=bt({name:"date",type:t,pure:!0})}return t})();var lu=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=bt({name:"json",type:t,pure:!1})}return t})();var du=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,n,i){if(!hu(e))return null;i||=this._locale;try{let o=fu(e);return es(o,i,n)}catch(o){throw qr(t,o.message)}}static \u0275fac=function(n){return new(n||t)(T(Or,16))};static \u0275pipe=bt({name:"number",type:t,pure:!0})}return t})();function hu(t){return!(t==null||t===""||t!==t)}function fu(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 Wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ie({type:t});static \u0275inj=be({})}return t})();function Ft(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 Tn="browser",is="server";function pu(t){return t===Tn}function _n(t){return t===is}var qe=class{};var ss=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>new Zr(d(O),window)})}return t})(),Zr=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=Du(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 Du(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 yu="20";function wu(t){return/^https?:\/\//.test(t)}function Cu(t){if(!(typeof t=="string")||t.trim()==="")return!1;try{let e=new URL(t);return!0}catch{return!1}}function Eu(t){return t.endsWith("/")?t.slice(0,-1):t}function Su(t){return t.startsWith("/")?t.slice(1):t}var as=t=>t.src,us=new C("",{providedIn:"root",factory:()=>as});function bu(t,r){return function(n){return Cu(n)||Ru(n,r||[]),n=Eu(n),[{provide:us,useValue:s=>(wu(s.src)&&Au(n,s.src),t(n,L(f({},s),{src:Su(s.src)})))}]}}function Ru(t,r){throw new w(2959,!1)}function Au(t,r){throw new w(2959,!1)}var _h=bu(Tu,void 0);function Tu(t,r){let e=new URL(`${t}/${r.src}`);return e.searchParams.set("auto","format"),r.width&&e.searchParams.set("w",r.width.toString()),r.isPlaceholder&&e.searchParams.set("q",yu),e.href}var os=/^((\s*\d+w\s*(,|$)){1,})$/;var _u=[1,2],Iu=640;var Mu=1920,Fu=1080;var Ih=(()=>{class t{imageLoader=d(us);config=Ou(d(Xi));renderer=d(_e);imgElement=d(Ae).nativeElement;injector=d(De);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){cn("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let e=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&os.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(e){if(e.ngSrc&&!e.ngSrc.isFirstChange()){let n=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(e){let n=e;return this.loaderParams&&(n.loaderParams=this.loaderParams),this.imageLoader(n)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){let e=os.test(this.ngSrcset);return this.ngSrcset.split(",").filter(i=>i!=="").map(i=>{i=i.trim();let o=e?parseFloat(i):parseFloat(i)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:o})} ${i}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:e}=this.config,n=e;return this.sizes?.trim()==="100vw"&&(n=e.filter(o=>o>=Iu)),n.map(o=>`${this.callImageLoader({src:this.ngSrc,width:o})} ${o}w`).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let i;return this.ngSrcset?i=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(i=this.getAutomaticSrcset()),i&&this.setHostAttribute("srcset",i),i}getFixedSrcset(){return _u.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>Mu||this.height>Fu),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==as&&!e}generatePlaceholder(e){let{placeholderResolution:n}=this.config;return e===!0?`url(${this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:!0})})`:typeof e=="string"?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")?!0:!!e.blur}removePlaceholderOnLoad(e){let n=()=>{let s=this.injector.get(Me);i(),o(),this.placeholder=!1,s.markForCheck()},i=this.renderer.listen(e,"load",n),o=this.renderer.listen(e,"error",n);Pu(e,n)}setHostAttribute(e,n){this.renderer.setAttribute(this.imgElement,e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$({type:t,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,i){n&2&&yo("position",i.fill?"absolute":null)("width",i.fill?"100%":null)("height",i.fill?"100%":null)("inset",i.fill?"0":null)("background-size",i.placeholder?"cover":null)("background-position",i.placeholder?"50% 50%":null)("background-repeat",i.placeholder?"no-repeat":null)("background-image",i.placeholder?i.generatePlaceholder(i.placeholder):null)("filter",i.placeholder&&i.shouldBlurPlaceholder(i.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Nu],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Pr],height:[2,"height","height",Pr],loading:"loading",priority:[2,"priority","priority",ye],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",ye],fill:[2,"fill","fill",ye],placeholder:[2,"placeholder","placeholder",Lu],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[ae]})}return t})();function Ou(t){let r={};return t.breakpoints&&(r.breakpoints=t.breakpoints.sort((e,n)=>e-n)),Object.assign({},Ki,t,r)}function Pu(t,r){t.complete&&t.naturalWidth&&r()}function Nu(t){return typeof t=="string"?t:Te(t)}function Lu(t){return typeof t=="string"&&t!=="true"&&t!=="false"&&t!==""?t:ye(t)}var Fn=new C(""),Jr=(()=>{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 w(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(m(Fn),m(J))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Ot=class{_doc;constructor(r){this._doc=r}manager},In="ng-app-id";function cs(t){for(let r of t)r.remove()}function ls(t,r){let e=r.createElement("style");return e.textContent=t,e}function xu(t,r,e,n){let i=t.head?.querySelectorAll(`style[${In}="${r}"],link[${In}="${r}"]`);if(i)for(let o of i)o.removeAttribute(In),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 Kr(t,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Qr=(()=>{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=_n(o),xu(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,ls);n?.forEach(i=>this.addUsage(i,this.external,Kr))}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&&(cs(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])cs(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,ls(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,Kr(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(In,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(m(O),m(Rr),m(Ar,8),m(tt))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Yr={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"},ei=/%COMP%/g;var hs="%COMP%",Uu=`_nghost-${hs}`,Bu=`_ngcontent-${hs}`,ju=!0,$u=new C("",{providedIn:"root",factory:()=>ju});function zu(t){return Bu.replace(ei,t)}function Vu(t){return Uu.replace(ei,t)}function fs(t,r){return r.map(e=>e.replace(ei,t))}var ti=(()=>{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=_n(a),this.defaultRenderer=new Pt(e,s,u,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===St.ShadowDom&&(n=L(f({},n),{encapsulation:St.Emulated}));let i=this.getOrCreateRenderer(e,n);return i instanceof Mn?i.applyToHost(e):i instanceof Nt&&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,v=this.tracingService;switch(n.encapsulation){case St.Emulated:o=new Mn(u,c,n,this.appId,l,s,a,h,v);break;case St.ShadowDom:return new Xr(u,c,e,n,s,a,this.nonce,h,v);default:o=new Nt(u,c,n,l,s,a,h,v);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)(m(Jr),m(Qr),m(Rr),m($u),m(O),m(tt),m(J),m(Ar),m(Ji,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Pt=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(Yr[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(ds(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(ds(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 w(-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=Yr[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=Yr[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&(He.DashCase|He.Important)?r.style.setProperty(e,n,i&He.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&He.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=ue().getGlobalEventTarget(this.doc,r),!r))throw new w(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 ds(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Xr=class extends Pt{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=fs(i.id,l);for(let v of l){let g=document.createElement("style");a&&g.setAttribute("nonce",a),g.textContent=v,this.shadowRoot.appendChild(g)}let h=i.getExternalStyles?.();if(h)for(let v of h){let g=Kr(v,o);a&&g.setAttribute("nonce",a),this.shadowRoot.appendChild(g)}}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)}},Nt=class extends Pt{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?fs(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)}},Mn=class extends Nt{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=zu(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 On=class t extends Rt{supportsDOMEvents=!0;static makeCurrent(){Nr(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=Hu();return e==null?null:Gu(e)}resetBaseElement(){Lt=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Ft(document.cookie,r)}},Lt=null;function Hu(){return Lt=Lt||document.head.querySelector("base"),Lt?Lt.getAttribute("href"):null}function Gu(t){return new URL(t,document.baseURI).pathname}var Pn=class{addToWindow(r){ve.getAngularTestability=(n,i=!0)=>{let o=r.findTestabilityInTree(n,i);if(o==null)throw new w(5103,!1);return o},ve.getAllAngularTestabilities=()=>r.getAllTestabilities(),ve.getAllAngularRootElements=()=>r.getAllRootElements();let e=n=>{let i=ve.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};ve.frameworkStabilizers||(ve.frameworkStabilizers=[]),ve.frameworkStabilizers.push(e)}findTestabilityInTree(r,e,n){if(e==null)return null;let i=r.getTestability(e);return i??(n?ue().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},qu=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),gs=(()=>{class t extends Ot{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)(m(O))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),ps=["alt","control","meta","shift"],Wu={"\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"},Zu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ms=(()=>{class t extends Ot{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(()=>ue().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."),ps.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=Wu[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"),ps.forEach(s=>{if(s!==i){let a=Zu[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)(m(O))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function Yu(){On.makeCurrent()}function Ku(){return new br}function Xu(){return Zi(document),document}var Ju=[{provide:tt,useValue:Tn},{provide:Yi,useValue:Yu,multi:!0},{provide:O,useFactory:Xu}],Qu=Ao(Io,"browser",Ju);var ec=[{provide:dn,useClass:Pn},{provide:go,useClass:hn,deps:[J,Ir,dn]},{provide:hn,useClass:hn,deps:[J,Ir,dn]}],tc=[{provide:Gi,useValue:"root"},{provide:br,useFactory:Ku},{provide:Fn,useClass:gs,multi:!0,deps:[O]},{provide:Fn,useClass:ms,multi:!0,deps:[O]},ti,Qr,Jr,{provide:uo,useExisting:ti},{provide:qe,useClass:qu},[]],nc=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ie({type:t});static \u0275inj=be({providers:[...tc,...ec],imports:[Wr,Mo]})}return t})();var it=class{},kt=class{},Pe=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 Ln=class{encodeKey(r){return vs(r)}encodeValue(r){return vs(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function rc(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 ic=/%(\d[a-f0-9])/gi,oc={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vs(t){return encodeURIComponent(t).replace(ic,(r,e)=>oc[e]??r)}function Nn(t){return`${t}`}var Ce=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new Ln,r.fromString){if(r.fromObject)throw new w(2805,!1);this.map=rc(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(Nn):[Nn(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(Nn(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(Nn(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 kn=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 sc(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ds(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function ys(t){return typeof Blob<"u"&&t instanceof Blob}function ws(t){return typeof FormData<"u"&&t instanceof FormData}function ac(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Cs="Content-Type",Es="Accept",bs="X-Request-URL",Rs="text/plain",As="application/json",uc=`${As}, ${Rs}, */*`,rt=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(sc(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 Pe,this.context??=new kn,!this.params)this.params=new Ce,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"||Ds(this.body)||ys(this.body)||ws(this.body)||ac(this.body)?this.body:this.body instanceof Ce?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||ws(this.body)?null:ys(this.body)?this.body.type||null:Ds(this.body)?null:typeof this.body=="string"?Rs:this.body instanceof Ce?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?As: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((v,g)=>v.set(g,r.setHeaders[g]),c)),r.setParams&&(l=Object.keys(r.setParams).reduce((v,g)=>v.set(g,r.setParams[g]),l)),new t(e,n,s,{params:l,headers:c,context:h,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},We=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}(We||{}),ot=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new Pe,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}},xn=class t extends ot{constructor(r={}){super(r)}type=We.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})}},xt=class t extends ot{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=We.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})}},Ut=class extends ot{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}},cc=200,lc=204;function ni(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 Ts=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof rt)o=e;else{let u;i.headers instanceof Pe?u=i.headers:u=new Pe(i.headers);let c;i.params&&(i.params instanceof Ce?c=i.params:c=new Ce({fromObject:i.params})),o=new rt(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=p(o).pipe(me(u=>this.handler.handle(u)));if(e instanceof rt||i.observe==="events")return s;let a=s.pipe(se(u=>u instanceof xt));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(R(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new w(2806,!1);return u.body}));case"blob":return a.pipe(R(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new w(2807,!1);return u.body}));case"text":return a.pipe(R(u=>{if(u.body!==null&&typeof u.body!="string")throw new w(2808,!1);return u.body}));case"json":default:return a.pipe(R(u=>u.body))}case"response":return a;default:throw new w(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 Ce().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,ni(i,n))}post(e,n,i={}){return this.request("POST",e,ni(i,n))}put(e,n,i={}){return this.request("PUT",e,ni(i,n))}static \u0275fac=function(n){return new(n||t)(m(it))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var dc=new C("");function _s(t,r){return r(t)}function hc(t,r){return(e,n)=>r.intercept(e,{handle:i=>t(i,n)})}function fc(t,r,e){return(n,i)=>X(e,()=>r(n,o=>t(o,i)))}var Is=new C(""),ii=new C(""),Ms=new C(""),oi=new C("",{providedIn:"root",factory:()=>!0});function pc(){let t=null;return(r,e)=>{t===null&&(t=(d(Is,{optional:!0})??[]).reduceRight(hc,_s));let n=d(Et);if(d(oi)){let o=n.add();return t(r,e).pipe($e(()=>n.remove(o)))}else return t(r,e)}}var Un=(()=>{class t extends it{backend;injector;chain=null;pendingTasks=d(Et);contributeToStability=d(oi);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(ii),...this.injector.get(Ms,[])]));this.chain=n.reduceRight((i,o)=>fc(i,o,this.injector),_s)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe($e(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(m(kt),m(Re))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var gc=/^\)\]\}',?\n/,mc=RegExp(`^${bs}:`,"m");function vc(t){return"responseURL"in t&&t.responseURL?t.responseURL:mc.test(t.getAllResponseHeaders())?t.getResponseHeader(bs):null}var ri=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new w(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?k(n.\u0275loadImpl()):p(null)).pipe(G(()=>new Dt(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((S,E)=>s.setRequestHeader(S,E.join(","))),e.headers.has(Es)||s.setRequestHeader(Es,uc),!e.headers.has(Cs)){let S=e.detectContentTypeHeader();S!==null&&s.setRequestHeader(Cs,S)}if(e.responseType){let S=e.responseType.toLowerCase();s.responseType=S!=="json"?S:"text"}let a=e.serializeBody(),u=null,c=()=>{if(u!==null)return u;let S=s.statusText||"OK",E=new Pe(s.getAllResponseHeaders()),B=vc(s)||e.url;return u=new xn({headers:E,status:s.status,statusText:S,url:B}),u},l=()=>{let{headers:S,status:E,statusText:B,url:ee}=c(),M=null;E!==lc&&(M=typeof s.response>"u"?s.responseText:s.response),E===0&&(E=M?cc:0);let Be=E>=200&&E<300;if(e.responseType==="json"&&typeof M=="string"){let on=M;M=M.replace(gc,"");try{M=M!==""?JSON.parse(M):null}catch(Ma){M=on,Be&&(Be=!1,M={error:Ma,text:M})}}Be?(o.next(new xt({body:M,headers:S,status:E,statusText:B,url:ee||void 0})),o.complete()):o.error(new Ut({error:M,headers:S,status:E,statusText:B,url:ee||void 0}))},h=S=>{let{url:E}=c(),B=new Ut({error:S,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});o.error(B)},v=!1,g=S=>{v||(o.next(c()),v=!0);let E={type:We.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(E.total=S.total),e.responseType==="text"&&s.responseText&&(E.partialText=s.responseText),o.next(E)},b=S=>{let E={type:We.UploadProgress,loaded:S.loaded};S.lengthComputable&&(E.total=S.total),o.next(E)};return s.addEventListener("load",l),s.addEventListener("error",h),s.addEventListener("timeout",h),s.addEventListener("abort",h),e.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:We.Sent}),()=>{s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",l),s.removeEventListener("timeout",h),e.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(m(qe))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Fs=new C(""),Dc="XSRF-TOKEN",yc=new C("",{providedIn:"root",factory:()=>Dc}),wc="X-XSRF-TOKEN",Cc=new C("",{providedIn:"root",factory:()=>wc}),Bt=class{},Ec=(()=>{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=Ft(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(m(O),m(yc))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function Sc(t,r){let e=t.url.toLowerCase();if(!d(Fs)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=d(Bt).getToken(),i=d(Cc);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var si=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}(si||{});function bc(t,r){return{\u0275kind:t,\u0275providers:r}}function Rc(...t){let r=[Ts,ri,Un,{provide:it,useExisting:Un},{provide:kt,useFactory:()=>d(dc,{optional:!0})??d(ri)},{provide:ii,useValue:Sc,multi:!0},{provide:Fs,useValue:!0},{provide:Bt,useClass:Ec}];for(let e of t)r.push(...e.\u0275providers);return un(r)}var Ss=new C("");function Ac(){return bc(si.LegacyInterceptors,[{provide:Ss,useFactory:pc},{provide:ii,useExisting:Ss,multi:!0}])}var Os=(()=>{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)(m(O))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _c=(()=>{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=m(Ic),i},providedIn:"root"})}return t})(),Ic=(()=>{class t extends _c{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ve.NONE:return n;case Ve.HTML:return nt(n,"HTML")?Te(n):so(this._doc,String(n)).toString();case Ve.STYLE:return nt(n,"Style")?Te(n):n;case Ve.SCRIPT:if(nt(n,"Script"))return Te(n);throw new w(5200,!1);case Ve.URL:return nt(n,"URL")?Te(n):oo(String(n));case Ve.RESOURCE_URL:if(nt(n,"ResourceURL"))return Te(n);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(e){return eo(e)}bypassSecurityTrustStyle(e){return to(e)}bypassSecurityTrustScript(e){return no(e)}bypassSecurityTrustUrl(e){return ro(e)}bypassSecurityTrustResourceUrl(e){return io(e)}static \u0275fac=function(n){return new(n||t)(m(O))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var y="primary",Jt=Symbol("RouteTitle"),di=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 Ke(t){return new di(t)}function js(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 Fc(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!le(t[e],r[e]))return!1;return!0}function le(t,r){let e=t?hi(t):void 0,n=r?hi(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],!$s(t[i],r[i]))return!1;return!0}function hi(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function $s(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 zs(t){return t.length>0?t[t.length-1]:null}function Ue(t){return Ui(t)?t:fn(t)?k(Promise.resolve(t)):p(t)}var Oc={exact:Hs,subset:Gs},Vs={exact:Pc,subset:Nc,ignored:()=>!0};function Ps(t,r,e){return Oc[e.paths](t.root,r.root,e.matrixParams)&&Vs[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Pc(t,r){return le(t,r)}function Hs(t,r,e){if(!Ze(t.segments,r.segments)||!$n(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Hs(t.children[n],r.children[n],e))return!1;return!0}function Nc(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>$s(t[e],r[e]))}function Gs(t,r,e){return qs(t,r,r.segments,e)}function qs(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Ze(i,e)||r.hasChildren()||!$n(i,e,n))}else if(t.segments.length===e.length){if(!Ze(t.segments,e)||!$n(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Gs(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!Ze(t.segments,i)||!$n(t.segments,i,n)||!t.children[y]?!1:qs(t.children[y],r,o,n)}}function $n(t,r,e){return r.every((n,i)=>Vs[e](t[i].parameters,n.parameters))}var he=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??=Ke(this.queryParams),this._queryParamMap}toString(){return xc.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 zn(this)}},Ne=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Ke(this.parameters),this._parameterMap}toString(){return Zs(this)}};function Lc(t,r){return Ze(t,r)&&t.every((e,n)=>le(e.parameters,r[n].parameters))}function Ze(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function kc(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 Xe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>new Le,providedIn:"root"})}return t})(),Le=class{parse(r){let e=new pi(r);return new he(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${jt(r.root,!0)}`,n=jc(r.queryParams),i=typeof r.fragment=="string"?`#${Uc(r.fragment)}`:"";return`${e}${n}${i}`}},xc=new Le;function zn(t){return t.segments.map(r=>Zs(r)).join("/")}function jt(t,r){if(!t.hasChildren())return zn(t);if(r){let e=t.children[y]?jt(t.children[y],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==y&&n.push(`${i}:${jt(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=kc(t,(n,i)=>i===y?[jt(t.children[y],!1)]:[`${i}:${jt(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[y]!=null?`${zn(t)}/${e[0]}`:`${zn(t)}/(${e.join("//")})`}}function Ws(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bn(t){return Ws(t).replace(/%3B/gi,";")}function Uc(t){return encodeURI(t)}function fi(t){return Ws(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vn(t){return decodeURIComponent(t)}function Ns(t){return Vn(t.replace(/\+/g,"%20"))}function Zs(t){return`${fi(t.path)}${Bc(t.parameters)}`}function Bc(t){return Object.entries(t).map(([r,e])=>`;${fi(r)}=${fi(e)}`).join("")}function jc(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Bn(e)}=${Bn(i)}`).join("&"):`${Bn(e)}=${Bn(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var $c=/^[^\/()?;#]+/;function ai(t){let r=t.match($c);return r?r[0]:""}var zc=/^[^\/()?;=#]+/;function Vc(t){let r=t.match(zc);return r?r[0]:""}var Hc=/^[^=?&#]+/;function Gc(t){let r=t.match(Hc);return r?r[0]:""}var qc=/^[^&#]+/;function Wc(t){let r=t.match(qc);return r?r[0]:""}var pi=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=ai(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new Ne(Vn(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Vc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=ai(this.remaining);i&&(n=i,this.capture(n))}r[Vn(e)]=Vn(n)}parseQueryParam(r){let e=Gc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Wc(this.remaining);s&&(n=s,this.capture(n))}let i=Ns(e),o=Ns(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=ai(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(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 w(4011,!1)}};function Ys(t){return t.segments.length>0?new A([],{[y]:t}):t}function Ks(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Ks(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 Zc(e)}function Zc(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 ke(t){return t instanceof he}function Xs(t,r,e=null,n=null){let i=Js(t);return Qs(i,r,e,n)}function Js(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=Ys(n);return r??i}function Qs(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return ui(i,i,i,e,n);let o=Yc(r);if(o.toRoot())return ui(i,i,new A([],{}),e,n);let s=Kc(o,i,t),a=s.processChildren?zt(s.segmentGroup,s.index,o.commands):ta(s.segmentGroup,s.index,o.commands);return ui(i,s.segmentGroup,a,e,n)}function Gn(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ht(t){return typeof t=="object"&&t!=null&&t.outlets}function ui(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=ea(t,r,e);let a=Ys(Ks(s));return new he(a,o,i)}function ea(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=ea(o,r,e)}),new A(t.segments,n)}var qn=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&Gn(n[0]))throw new w(4003,!1);let i=n.find(Ht);if(i&&i!==zs(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yc(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new qn(!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 qn(e,r,n)}var ut=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Kc(t,r,e){if(t.isAbsolute)return new ut(r,!0,0);if(!e)return new ut(r,!1,NaN);if(e.parent===null)return new ut(e,!0,0);let n=Gn(t.commands[0])?0:1,i=e.segments.length-1+n;return Xc(e,i,t.numberOfDoubleDots)}function Xc(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new ut(n,!1,i-o)}function Jc(t){return Ht(t[0])?t[0].outlets:{[y]:t}}function ta(t,r,e){if(t??=new A([],{}),t.segments.length===0&&t.hasChildren())return zt(t,r,e);let n=Qc(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),zt(o,0,i)}else return n.match&&i.length===0?new A(t.segments,{}):n.match&&!t.hasChildren()?gi(t,r,e):n.match?zt(t,0,i):gi(t,r,e)}function zt(t,r,e){if(e.length===0)return new A(t.segments,{});{let n=Jc(e),i={};if(Object.keys(n).some(o=>o!==y)&&t.children[y]&&t.numberOfChildren===1&&t.children[y].segments.length===0){let o=zt(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]=ta(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 Qc(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(Ht(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(!ks(u,c,s))return o;n+=2}else{if(!ks(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function gi(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Ht(o)){let u=el(o.outlets);return new A(n,u)}if(i===0&&Gn(e[0])){let u=t.segments[r];n.push(new Ne(u.path,Ls(e[0]))),i++;continue}let s=Ht(o)?o.outlets[y]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&Gn(a)?(n.push(new Ne(s,Ls(a))),i+=2):(n.push(new Ne(s,{})),i++)}return new A(n,{})}function el(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=gi(new A([],{}),0,n))}),r}function Ls(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function ks(t,r,e){return t==e.path&&le(r,e.parameters)}var Hn="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}},xe=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}')`}},H=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(H||{}),lt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(lt||{}),de=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}')`}},fe=class extends Z{reason;code;type=N.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},dt=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})`}},Gt=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})`}},Wn=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})`}},Zn=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})`}},Yn=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})`}},Kn=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})`}},Xn=class{route;type=N.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Jn=class{route;type=N.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qn=class{snapshot;type=N.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},er=class{snapshot;type=N.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tr=class{snapshot;type=N.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nr=class{snapshot;type=N.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ht=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}')`}},qt=class{},ft=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function tl(t,r){return t.providers&&!t._injector&&(t._injector=ln(t.providers,r,`Route: ${t.path}`)),t._injector??r}function oe(t){return t.outlet||y}function nl(t,r){let e=t.filter(n=>oe(n)===r);return e.push(...t.filter(n=>oe(n)!==r)),e}function Qt(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 rr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Qt(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Je(this.rootInjector)}},Je=(()=>{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 rr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(m(Re))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ir=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=mi(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=mi(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=vi(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return vi(r,this._root).map(e=>e.value)}};function mi(t,r){if(t===r.value)return r;for(let e of r.children){let n=mi(t,e);if(n)return n}return null}function vi(t,r){if(t===r.value)return[r];for(let e of r.children){let n=vi(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 at(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Wt=class extends ir{snapshot;constructor(r,e){super(r),this.snapshot=e,Ri(this,r)}toString(){return this.snapshot.toString()}};function na(t){let r=rl(t),e=new K([new Ne("",{})]),n=new K({}),i=new K({}),o=new K({}),s=new K(""),a=new Ee(e,n,o,s,i,y,t,r.root);return a.snapshot=r.root,new Wt(new W(a,[]),r)}function rl(t){let r={},e={},n={},i="",o=new Ye([],r,n,i,e,y,t,null,{});return new Zt("",new W(o,[]))}var Ee=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(R(c=>c[Jt]))??p(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(R(r=>Ke(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(R(r=>Ke(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function or(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&&ia(i)&&(n.resolve[Jt]=i.title),n}var Ye=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Jt]}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??=Ke(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ke(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}')`}},Zt=class extends ir{url;constructor(r,e){super(e),this.url=r,Ri(this,e)}toString(){return ra(this._root)}};function Ri(t,r){r.value._routerState=t,r.children.forEach(e=>Ri(t,e))}function ra(t){let r=t.children.length>0?` { ${t.children.map(ra).join(", ")} } `:"";return`${t.value}${r}`}function ci(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,le(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),le(r.params,e.params)||t.paramsSubject.next(e.params),Fc(r.url,e.url)||t.urlSubject.next(e.url),le(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Di(t,r){let e=le(t.params,r.params)&&Lc(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||Di(t.parent,r.parent))}function ia(t){return typeof t.title=="string"||t.title===null}var oa=new C(""),Ai=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=y;activateEvents=new ze;deactivateEvents=new ze;attachEvents=new ze;detachEvents=new ze;routerOutletData=Wi(void 0);parentContexts=d(Je);location=d(Ge);changeDetector=d(Me);inputBinder=d(en,{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 w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();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 w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new yi(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=$({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ae]})}return t})(),yi=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===Ee?this.route:r===Je?this.childContexts:r===oa?this.outletData:this.parent.get(r,e)}},en=new C(""),Ti=(()=>{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=sn([n.queryParams,n.params,n.data]).pipe(G(([o,s,a],u)=>(a=f(f(f({},o),s),a),u===0?p(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=Fo(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})(),_i=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=po({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&wo(0,"router-outlet")},dependencies:[Ai],encapsulation:2})}return t})();function Ii(t){let r=t.children&&t.children.map(Ii),e=r?L(f({},t),{children:r}):f({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==y&&(e.component=_i),e}function il(t,r,e){let n=Yt(t,r._root,e?e._root:void 0);return new Wt(n,r)}function Yt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=ol(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=>Yt(t,a)),s}}let n=sl(r.value),i=r.children.map(o=>Yt(t,o));return new W(n,i)}}function ol(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Yt(t,n,i);return Yt(t,n)})}function sl(t){return new Ee(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 pt=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},sa="ngNavigationCancelingError";function sr(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ke(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=aa(!1,H.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function aa(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[sa]=!0,e.cancellationCode=r,e}function al(t){return ua(t)&&ke(t.url)}function ua(t){return!!t&&t[sa]}var ul=(t,r,e,n)=>R(i=>(new wi(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),wi=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),ci(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=at(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=at(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=at(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=at(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new nr(o.value.snapshot))}),r.children.length&&this.forwardEvent(new er(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(ci(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),ci(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)}},ar=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ct=class{component;route;constructor(r,e){this.component=r,this.route=e}};function cl(t,r,e){let n=t._root,i=r?r._root:null;return $t(n,i,e,[n.value])}function ll(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function mt(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Hi(t)?t:r.get(t):n}function $t(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=at(r);return t.children.forEach(s=>{dl(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Vt(a,e.getContext(s),i)),i}function dl(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=hl(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new ar(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?$t(t,r,a?a.children:null,n,i):$t(t,r,e,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ct(a.outlet.component,s))}else s&&Vt(r,a,i),i.canActivateChecks.push(new ar(n)),o.component?$t(t,null,a?a.children:null,n,i):$t(t,null,e,n,i);return i}function hl(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!Ze(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Ze(t.url,r.url)||!le(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Di(t,r)||!le(t.queryParams,r.queryParams);case"paramsChange":default:return!Di(t,r)}}function Vt(t,r,e){let n=at(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?Vt(s,r.children.getContext(o),e):Vt(s,null,e):Vt(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new ct(r.outlet.component,i)):e.canDeactivateChecks.push(new ct(null,i)):e.canDeactivateChecks.push(new ct(null,i))}function tn(t){return typeof t=="function"}function fl(t){return typeof t=="boolean"}function pl(t){return t&&tn(t.canLoad)}function gl(t){return t&&tn(t.canActivate)}function ml(t){return t&&tn(t.canActivateChild)}function vl(t){return t&&tn(t.canDeactivate)}function Dl(t){return t&&tn(t.canMatch)}function ca(t){return t instanceof Bi||t?.name==="EmptyError"}var jn=Symbol("INITIAL_VALUE");function gt(){return G(t=>sn(t.map(r=>r.pipe(et(1),Vi(jn)))).pipe(R(r=>{for(let e of r)if(e!==!0){if(e===jn)return jn;if(e===!1||yl(e))return e}return!0}),se(r=>r!==jn),et(1)))}function yl(t){return ke(t)||t instanceof pt}function wl(t,r){return j(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?p(L(f({},e),{guardsResult:!0})):Cl(s,n,i,t).pipe(j(a=>a&&fl(a)?El(n,o,t,r):p(a)),R(a=>L(f({},e),{guardsResult:a})))})}function Cl(t,r,e,n){return k(t).pipe(j(i=>Tl(i.component,i.route,e,r,n)),Se(i=>i!==!0,!0))}function El(t,r,e,n){return k(r).pipe(me(i=>ji(bl(i.route.parent,n),Sl(i.route,n),Al(t,i.path,e),Rl(t,i.route,e))),Se(i=>i!==!0,!0))}function Sl(t,r){return t!==null&&r&&r(new tr(t)),p(!0)}function bl(t,r){return t!==null&&r&&r(new Qn(t)),p(!0)}function Rl(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return p(!0);let i=n.map(o=>vr(()=>{let s=Qt(r)??e,a=mt(o,s),u=gl(a)?a.canActivate(r,t):X(s,()=>a(r,t));return Ue(u).pipe(Se())}));return p(i).pipe(gt())}function Al(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>ll(s)).filter(s=>s!==null).map(s=>vr(()=>{let a=s.guards.map(u=>{let c=Qt(s.node)??e,l=mt(u,c),h=ml(l)?l.canActivateChild(n,t):X(c,()=>l(n,t));return Ue(h).pipe(Se())});return p(a).pipe(gt())}));return p(o).pipe(gt())}function Tl(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return p(!0);let s=o.map(a=>{let u=Qt(r)??i,c=mt(a,u),l=vl(c)?c.canDeactivate(t,r,e,n):X(u,()=>c(t,r,e,n));return Ue(l).pipe(Se())});return p(s).pipe(gt())}function _l(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return p(!0);let o=i.map(s=>{let a=mt(s,t),u=pl(a)?a.canLoad(r,e):X(t,()=>a(r,e));return Ue(u)});return p(o).pipe(gt(),la(n))}function la(t){return xi(x(r=>{if(typeof r!="boolean")throw sr(t,r)}),R(r=>r===!0))}function Il(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return p(!0);let o=i.map(s=>{let a=mt(s,t),u=Dl(a)?a.canMatch(r,e):X(t,()=>a(r,e));return Ue(u)});return p(o).pipe(gt(),la(n))}var Kt=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Xt=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function st(t){return yt(new Kt(t))}function Ml(t){return yt(new w(4e3,!1))}function Fl(t){return yt(aa(!1,H.GuardRejected))}var Ci=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 p(n);if(i.numberOfChildren>1||!i.children[y])return Ml(`${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:v,params:g,data:b,title:S}=i,E=X(o,()=>a({params:g,data:b,queryParams:u,fragment:c,routeConfig:l,url:h,outlet:v,title:S}));if(E instanceof he)throw new Xt(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Xt(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new he(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 w(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}},Ei={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ol(t,r,e,n,i){let o=da(t,r,e);return o.matched?(n=tl(r,n),Il(n,r,e,i).pipe(R(s=>s===!0?o:f({},Ei)))):p(o)}function da(t,r,e){if(r.path==="**")return Pl(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?f({},Ei):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||js)(e,t,r);if(!i)return f({},Ei);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 Pl(t){return{matched:!0,parameters:t.length>0?zs(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function xs(t,r,e,n){return e.length>0&&kl(t,e,n)?{segmentGroup:new A(r,Ll(n,new A(e,t.children))),slicedSegments:[]}:e.length===0&&xl(t,e,n)?{segmentGroup:new A(t.segments,Nl(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new A(t.segments,t.children),slicedSegments:e}}function Nl(t,r,e,n){let i={};for(let o of e)if(cr(t,r,o)&&!n[oe(o)]){let s=new A([],{});i[oe(o)]=s}return f(f({},n),i)}function Ll(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 kl(t,r,e){return e.some(n=>cr(t,r,n)&&oe(n)!==y)}function xl(t,r,e){return e.some(n=>cr(t,r,n))}function cr(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ul(t,r,e){return r.length===0&&!t.children[e]}var Si=class{};function Bl(t,r,e,n,i,o,s="emptyOnly"){return new bi(t,r,e,n,i,s,o).recognize()}var jl=31,bi=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 Ci(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=xs(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(R(({children:e,rootSnapshot:n})=>{let i=new W(n,e),o=new Zt("",i),s=Xs(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 Ye([],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(R(n=>({children:n,rootSnapshot:e})),je(n=>{if(n instanceof Xt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Kt?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(R(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 k(o).pipe(me(s=>{let a=n.children[s],u=nl(e,s);return this.processSegmentGroup(r,u,a,s,i)}),zi((s,a)=>(s.push(...a),s)),Dr(null),$i(),j(s=>{if(s===null)return st(n);let a=ha(s);return $l(a),p(a)}))}processSegment(r,e,n,i,o,s,a){return k(e).pipe(me(u=>this.processSegmentAgainstRoute(u._injector??r,e,u,n,i,o,s,a).pipe(je(c=>{if(c instanceof Kt)return p(null);throw c}))),Se(u=>!!u),je(u=>{if(ca(u))return Ul(n,i,o)?p(new Si):st(n);throw u}))}processSegmentAgainstRoute(r,e,n,i,o,s,a,u){return oe(n)!==s&&(s===y||!cr(i,o,n))?st(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):st(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:h,remainingSegments:v}=da(e,i,o);if(!u)return st(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>jl&&(this.allowRedirects=!1));let g=new Ye(o,c,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Us(i),oe(i),i.component??i._loadedComponent??null,i,Bs(i)),b=or(g,a,this.paramsInheritanceStrategy);g.params=Object.freeze(b.params),g.data=Object.freeze(b.data);let S=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,h,g,r);return this.applyRedirects.lineralizeSegments(i,S).pipe(j(E=>this.processSegment(r,n,e,E.concat(v),s,!1,a)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let a=Ol(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:v,remainingSegments:g}=u,b=new Ye(v,h,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Us(n),oe(n),n.component??n._loadedComponent??null,n,Bs(n)),S=or(b,s,this.paramsInheritanceStrategy);b.params=Object.freeze(S.params),b.data=Object.freeze(S.data);let{segmentGroup:E,slicedSegments:B}=xs(e,v,g,c);if(B.length===0&&E.hasChildren())return this.processChildren(l,c,E,b).pipe(R(M=>new W(b,M)));if(c.length===0&&B.length===0)return p(new W(b,[]));let ee=oe(n)===o;return this.processSegment(l,c,E,B,ee?y:o,!0,b).pipe(R(M=>new W(b,M instanceof W?[M]:[])))}))):st(e)))}getChildConfig(r,e,n){return e.children?p({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):_l(r,e,n,this.urlSerializer).pipe(j(i=>i?this.configLoader.loadChildren(r,e).pipe(x(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):Fl(e))):p({routes:[],injector:r})}};function $l(t){t.sort((r,e)=>r.value.outlet===y?-1:e.value.outlet===y?1:r.value.outlet.localeCompare(e.value.outlet))}function zl(t){let r=t.value.routeConfig;return r&&r.path===""}function ha(t){let r=[],e=new Set;for(let n of t){if(!zl(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=ha(n.children);r.push(new W(n.value,i))}return r.filter(n=>!e.has(n))}function Us(t){return t.data||{}}function Bs(t){return t.resolve||{}}function Vl(t,r,e,n,i,o){return j(s=>Bl(t,r,e,n,s.extractedUrl,i,o).pipe(R(({state:a,tree:u})=>L(f({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Hl(t,r){return j(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return p(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 fa(u))s.add(c);let a=0;return k(s).pipe(me(u=>o.has(u)?Gl(u,n,t,r):(u.data=or(u,u.parent,t).resolve,p(void 0))),x(()=>a++),yr(1),j(u=>a===s.size?p(e):ge))})}function fa(t){let r=t.children.map(e=>fa(e)).flat();return[t,...r]}function Gl(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!ia(i)&&(o[Jt]=i.title),ql(o,t,r,n).pipe(R(s=>(t._resolvedData=s,t.data=or(t,t.parent,e).resolve,null)))}function ql(t,r,e,n){let i=hi(t);if(i.length===0)return p({});let o={};return k(i).pipe(j(s=>Wl(t[s],r,e,n).pipe(Se(),x(a=>{if(a instanceof pt)throw sr(new Le,a);o[s]=a}))),yr(1),R(()=>o),je(s=>ca(s)?ge:yt(s)))}function Wl(t,r,e,n){let i=Qt(r)??n,o=mt(t,i),s=o.resolve?o.resolve(r,e):X(i,()=>o(r,e));return Ue(s)}function li(t){return G(r=>{let e=t(r);return e?k(e).pipe(R(()=>r)):p(r)})}var Mi=(()=>{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[Jt]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(pa),providedIn:"root"})}return t})(),pa=(()=>{class t extends Mi{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)(m(Os))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qe=new C("",{providedIn:"root",factory:()=>({})}),vt=new C(""),lr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(Ro);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=Ue(e.loadComponent()).pipe(R(ma),x(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),$e(()=>{this.componentLoaders.delete(e)})),i=new mr(n,()=>new te).pipe(gr());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return p({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=ga(n,this.compiler,e,this.onLoadEndListener).pipe($e(()=>{this.childrenLoaders.delete(n)})),s=new mr(o,()=>new te).pipe(gr());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 ga(t,r,e,n){return Ue(t.loadChildren()).pipe(R(ma),j(i=>i instanceof ho||Array.isArray(i)?p(i):k(r.compileModuleAsync(i))),R(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(vt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ii),injector:o}}))}function Zl(t){return t&&typeof t=="object"&&"default"in t}function ma(t){return Zl(t)?t.default:t}var dr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Yl),providedIn:"root"})}return t})(),Yl=(()=>{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})(),Fi=new C(""),Oi=new C("");function va(t,r,e){let n=t.get(Oi),i=t.get(O);return t.get(J).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(),Kl(t))),{onViewTransitionCreated:u}=n;return u&&X(t,()=>u({transition:a,from:r,to:e})),s})}function Kl(t){return new Promise(r=>{Qi({read:()=>setTimeout(r)},{injector:t})})}var Pi=new C(""),hr=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new te;transitionAbortSubject=new te;configLoader=d(lr);environmentInjector=d(Re);destroyRef=d(Ct);urlSerializer=d(Xe);rootContexts=d(Je);location=d(Oe);inputBindingEnabled=d(en,{optional:!0})!==null;titleStrategy=d(Mi);options=d(Qe,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(dr);createViewTransition=d(Fi,{optional:!0});navigationErrorHandler=d(Pi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>p(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Xn(i)),n=i=>this.events.next(new Jn(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(L(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(se(n=>n!==null),G(n=>{let i=!1,o=!1;return p(n).pipe(G(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",H.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?L(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 fe(s.id,this.urlSerializer.serialize(s.rawUrl),c,lt.IgnoredSameUrlNavigation)),s.resolve(!1),ge}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return p(s).pipe(G(c=>(this.events.next(new xe(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?ge:Promise.resolve(c))),Vl(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),x(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=L(f({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let l=new Gt(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:v,extras:g}=s,b=new xe(c,this.urlSerializer.serialize(l),h,v);this.events.next(b);let S=na(this.rootComponentType).snapshot;return this.currentTransition=n=L(f({},s),{targetSnapshot:S,urlAfterRedirects:l,extras:L(f({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,p(n)}else{let c="";return this.events.next(new fe(s.id,this.urlSerializer.serialize(s.extractedUrl),c,lt.IgnoredByUrlHandlingStrategy)),s.resolve(!1),ge}}),x(s=>{let a=new Wn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),R(s=>(this.currentTransition=n=L(f({},s),{guards:cl(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n)),wl(this.environmentInjector,s=>this.events.next(s)),x(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw sr(this.urlSerializer,s.guardsResult);let a=new Zn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),se(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",H.GuardRejected),!1)),li(s=>{if(s.guards.canActivateChecks.length!==0)return p(s).pipe(x(a=>{let u=new Yn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),G(a=>{let u=!1;return p(a).pipe(Hl(this.paramsInheritanceStrategy,this.environmentInjector),x({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",H.NoDataFromResolver)}}))}),x(a=>{let u=new Kn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),li(s=>{let a=u=>{let c=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(x(l=>{u.component=l}),R(()=>{})));for(let l of u.children)c.push(...a(l));return c};return sn(a(s.targetSnapshot.root)).pipe(Dr(null),et(1))}),li(()=>this.afterPreactivation()),G(()=>{let{currentSnapshot:s,targetSnapshot:a}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return u?k(u).pipe(R(()=>n)):p(n)}),R(s=>{let a=il(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=n=L(f({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,n}),x(()=>{this.events.next(new qt)}),ul(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),et(1),x({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}}),an(this.transitionAbortSubject.pipe(x(s=>{throw s}))),$e(()=>{!i&&!o&&this.cancelNavigationTransition(n,"",H.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),je(s=>{if(this.destroyed)return n.resolve(!1),ge;if(o=!0,ua(s))this.events.next(new de(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),al(s)?this.events.next(new ft(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let a=new dt(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=X(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(u instanceof pt){let{message:c,cancellationCode:l}=sr(this.urlSerializer,u);this.events.next(new de(n.id,this.urlSerializer.serialize(n.extractedUrl),c,l)),this.events.next(new ft(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 de(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 Xl(t){return t!==Hn}var Da=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Jl),providedIn:"root"})}return t})(),ur=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Jl=(()=>{class t extends ur{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Er(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ya=(()=>{class t{urlSerializer=d(Xe);options=d(Qe,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(Oe);urlHandlingStrategy=d(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new he;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 he?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=na(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(Ql),providedIn:"root"})}return t})(),Ql=(()=>{class t extends ya{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 xe?this.updateStateMemento():e instanceof fe?this.commitTransition(n):e instanceof Gt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof qt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof de&&(e.code===H.GuardRejected||e.code===H.NoDataFromResolver)?this.restoreHistory(n):e instanceof dt?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=Er(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fr(t,r){t.events.pipe(se(e=>e instanceof Y||e instanceof de||e instanceof dt||e instanceof fe),R(e=>e instanceof Y||e instanceof fe?0:(e instanceof de?e.code===H.Redirect||e.code===H.SupersededByNewNavigation:!1)?2:1),se(e=>e!==2),et(1)).subscribe(()=>{r()})}var ed={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},td={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},pe=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(_r);stateManager=d(ya);options=d(Qe,{optional:!0})||{};pendingTasks=d(Et);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(hr);urlSerializer=d(Xe);location=d(Oe);urlHandlingStrategy=d(dr);_events=new te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Da);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(vt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(en,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ki;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 de&&n.code!==H.Redirect&&n.code!==H.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Y)this.navigated=!0;else if(n instanceof ft){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"||Xl(i.source)},s);this.scheduleNavigation(a,Hn,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}rd(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),Hn,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(Ii),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 v=i?i.snapshot:this.routerState.snapshot.root;h=Js(v)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return Qs(h,e,l,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ke(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Hn,null,n)}navigate(e,n={skipLocationChange:!1}){return nd(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({},ed):n===!1?i=f({},td):i=n,ke(e))return Ps(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Ps(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,v)=>{a=h,u=v});let l=this.pendingTasks.add();return fr(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 nd(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}function rd(t){return!(t instanceof qt)&&!(t instanceof ft)}var pr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new te;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)):(ke(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:ao(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:ke(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(pe),T(Ee),Sr("tabindex"),T(_e),T(Ae),T(re))};static \u0275dir=$({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Co("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Do("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ye],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ye],replaceUrl:[2,"replaceUrl","replaceUrl",ye],routerLink:"routerLink"},features:[ae]})}return t})(),id=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ze;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(){p(this.links.changes,p(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=k(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=od(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(pe),T(Ae),T(_e),T(Me),T(pr,8))};static \u0275dir=$({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&Eo(o,pr,5),n&2){let s;So(s=bo())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ae]})}return t})();function od(t){return!!t.paths}var nn=class{};var wa=(()=>{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(se(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=ln(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 k(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=p(null);let o=i.pipe(j(s=>s===null?p(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 k([o,s]).pipe(wt())}else return o})}static \u0275fac=function(n){return new(n||t)(m(pe),m(Re),m(nn),m(lr))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ca=new C(""),sd=(()=>{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 xe?(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 fe&&e.code===lt.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 ht&&(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 ht(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){co()};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function ad(t){return t.routerState.root}function rn(t,r){return{\u0275kind:t,\u0275providers:r}}function ud(){let t=d(De);return r=>{let e=t.get(Fr);if(r!==e.components[0])return;let n=t.get(pe),i=t.get(Ea);t.get(Li)===1&&n.initialNavigation(),t.get(Ra,null,wr.Optional)?.setUpPreloading(),t.get(Ca,null,wr.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ea=new C("",{factory:()=>new te}),Li=new C("",{providedIn:"root",factory:()=>1});function Sa(){let t=[{provide:Li,useValue:0},Mr(()=>{let r=d(De);return r.get(Lr,Promise.resolve()).then(()=>new Promise(n=>{let i=r.get(pe),o=r.get(Ea);fr(i,()=>{n(!0)}),r.get(hr).afterPreactivation=()=>(n(!0),o.closed?p(void 0):o),i.initialNavigation()}))})];return rn(2,t)}function ba(){let t=[Mr(()=>{d(pe).setUpLocationChangeListener()}),{provide:Li,useValue:2}];return rn(3,t)}var Ra=new C("");function Aa(t){return rn(0,[{provide:Ra,useExisting:wa},{provide:nn,useExisting:t}])}function Ta(){return rn(8,[Ti,{provide:en,useExisting:Ti}])}function _a(t){cn("NgRouterViewTransitions");let r=[{provide:Fi,useValue:va},{provide:Oi,useValue:f({skipNextTransition:!!t?.skipInitialTransition},t)}];return rn(9,r)}var Ia=[Oe,{provide:Xe,useClass:Le},pe,Je,{provide:Ee,useFactory:ad,deps:[pe]},lr,[]],cd=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[Ia,[],{provide:vt,multi:!0,useValue:e},[],n?.errorHandler?{provide:Pi,useValue:n.errorHandler}:[],{provide:Qe,useValue:n||{}},n?.useHash?dd():hd(),ld(),n?.preloadingStrategy?Aa(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?fd(n):[],n?.bindToComponentInputs?Ta().\u0275providers:[],n?.enableViewTransitions?_a().\u0275providers:[],pd()]}}static forChild(e){return{ngModule:t,providers:[{provide:vt,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ie({type:t});static \u0275inj=be({})}return t})();function ld(){return{provide:Ca,useFactory:()=>{let t=d(ss),r=d(J),e=d(Qe),n=d(hr),i=d(Xe);return e.scrollOffset&&t.setOffset(e.scrollOffset),new sd(i,n,t,r,e)}}}function dd(){return{provide:re,useClass:Hr}}function hd(){return{provide:re,useClass:vn}}function fd(t){return[t.initialNavigation==="disabled"?ba().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Sa().\u0275providers:[]]}var Ni=new C("");function pd(){return[{provide:Ni,useFactory:ud},{provide:vo,multi:!0,useExisting:Ni}]}function gd(t){t||(Cr(gd),t=d(Ct));let r=new Dt(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(an(r))}function md(t){t===void 0&&(Cr(md),t=d(De));let r=t.get(qi);return e=>new Dt(n=>{let i=r.add(),o=!1;function s(){o||(i(),o=!0)}let a=e.subscribe({next:u=>{n.next(u),s()},complete:()=>{n.complete(),s()},error:u=>{n.error(u),s()}});return a.add(()=>{n.unsubscribe(),s()}),a})}export{O as a,ue as b,Oe as c,eu as d,tu as e,ts as f,nu as g,ru as h,iu as i,au as j,cu as k,lu as l,du as m,Wr as n,pu as o,_n as p,_h as q,Ih as r,ti as s,Qu as t,nc as u,Pe as v,Ce as w,Ts as x,Is as y,Rc as z,Ac as A,Os as B,_c as C,Y as D,Ee as E,Ai as F,pe as G,pr as H,id as I,cd as J,gd as K,md as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as ae,e as re}from"./chunk-BUFEIJAI.js";import{b as M,c as W,h as me,i as _,j as S}from"./chunk-BIQHA7UA.js";import{c as T,e as K,h as R,i as Z,j as x,l as N,m as U,n as $,p as ee,r as te,v as ne,w as oe}from"./chunk-DPLEMBB4.js";import{b as ie,c as le}from"./chunk-PXB4YEY3.js";import{d as F,f as Q,g as X}from"./chunk-GPEVUTDI.js";import{Dc as A,Eb as y,Ec as r,Fc as P,Gc as Y,Ic as b,Jc as w,Kb as f,Kc as D,Qc as k,Rc as J,Wb as p,bc as h,gc as o,hc as l,ic as V,mc as I,ob as z,qb as a,rc as v,sc as L,wb as C,ya as c,za as g}from"./chunk-T5ONJF63.js";function pe(t,u){if(t&1&&(o(0,"tr")(1,"td")(2,"a",11),V(3,"img",12),o(4,"span"),r(5),l()()(),o(6,"td"),r(7),l(),o(8,"td"),r(9),l()()),t&2){let n=u.$implicit;a(2),p("href","/menu/channel/marketplace/view?ID="+n.Key.ID,z),a(),p("src",n.Logo,z),a(2),P(n.Key.Name),a(2),P(n.Value.Out),a(2),P(n.Value.Tg)}}var We=(()=>{class t{constructor(n,i){this.dialogRef=n,this.data=i,this.generateChannelName(),this.channels=this.setChannelLogo(i.channels)}ngOnInit(){this.modalConfig=new _,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=me.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideClose=!0}setChannelLogo(n){return n.map(i=>(i.Logo=le.getChannelLogoByTypeId(i.Key.TypeID),i))}generateChannelName(){this.channelNames="";let n=this.data.channels;n.forEach((i,e)=>{this.channelNames+=`${i.Key} ${e!=n.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-channel-warning"]],standalone:!1,decls:24,vars:2,consts:[[3,"onCancel","onClose","config"],["content","",1,"pt-2","px-4"],[1,"row"],[1,"col-12"],[1,"lh-base","fs-5"],[1,"mb-4"],[1,"table","table-bordered"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"fs-5","mt-4"],["href","https://support.dealpos.com/en/articles/8281096-setup-multiple-channel-marketplace-to-one-warehouse-outlet","target","_blank"],["target","_blank",3,"href"],[1,"me-3",2,"width","24px",3,"src"]],template:function(i,e){i&1&&(o(0,"modal-material",0),v("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),o(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),r(5,"When your order configuration is not unique, your Dashboard Sales Report will be invalid. You can use either Outlet or Order Tag to differentiate Channel Order. "),l(),o(6,"h5",5),r(7,"Your duplicate Channels are"),l(),o(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),r(12,"Channel"),l(),o(13,"th"),r(14,"Outlet"),l(),o(15,"th"),r(16,"Tag"),l()()(),o(17,"tbody"),f(18,pe,10,5,"tr",8),l()(),o(19,"p",9),r(20," Please refer to this "),o(21,"a",10),r(22,"article"),l(),r(23," for more information "),l()()()()()),i&2&&(p("config",e.modalConfig),a(18),p("ngForOf",e.channels))},dependencies:[Q,S],encapsulation:2})}}return t})();var Ke=(()=>{class t{constructor(n,i,e){this.dialogRef=n,this.httpService=i,this.toastr=e,this.modalConfig=new _,this.modalConfig.title="Write Off Reason"}onSubmit(){let n={Name:this.reason};this.subscription=this.httpService.post("/api/channel/AddWriteoffOption",n).subscribe(i=>{this.toastr.success(i.Message,"Success"),this.dialogRef.close(n)})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(C(M),C(re),C(ae))}}static{this.\u0275cmp=y({type:t,selectors:[["app-dialog-writeOff-reason"]],standalone:!1,decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","writeOffReason","placeholder","Write Off Reason","name","writeOffReason",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(i,e){if(i&1){let m=I();o(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),o(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.reason,s)||(e.reason=s),g(s)}),l(),o(5,"label",5),r(6,"Reason"),l()()()()}i&2&&(p("dynamicValidated",e.reason)("config",e.modalConfig),a(3),b("ngModel",e.reason))},dependencies:[T,R,U,S],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]})}}return t})();var ue=t=>({invalid:t});function fe(t,u){t&1&&(o(0,"small"),r(1," URL is required "),l())}function ce(t,u){if(t&1&&(o(0,"div",13),f(1,fe,2,0,"small",14),l()),t&2){L();let n=A(10);a(),p("ngIf",n.errors.required)}}function ge(t,u){t&1&&(o(0,"small"),r(1," Email is required "),l())}function Ce(t,u){t&1&&(o(0,"small"),r(1," Email is not valid "),l())}function he(t,u){if(t&1&&(o(0,"div",13),f(1,ge,2,0,"small",14)(2,Ce,2,0,"small",14),l()),t&2){L();let n=A(16);a(),p("ngIf",n.errors.required),a(),p("ngIf",n.errors.pattern)}}var Be=(()=>{class t{constructor(n){this.dialogRef=n}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title="Fill data for Customer Support"}onSubmit(n){n!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(C(M))}}static{this.\u0275cmp=y({type:t,selectors:[["app-contact-support"]],standalone:!1,decls:18,vars:9,consts:[["url","ngModel"],["email","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"mx-4"],["for","customerURL"],[1,"input-group","mb-2"],[1,"input-group-prepend"],["id","tokopediaUrl",1,"border-start-0","rounded-start","input-group-text","pointer-default","bg-light",2,"height","58px",3,"ngClass"],["required","","type","text","id","customerURL","name","customerURL","title","customerURL",1,"form-control","border-start-0","customerUrl",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["for","customerEmail"],["required","","type","text","id","customerEmail","name","customerEmail","title","customerEmail","pattern","\\b[\\w\\.-]+@[\\w\\.-]+\\.\\w{2,4}\\b",1,"form-control",3,"ngModelChange","ngModel"],[1,"text-danger"],[4,"ngIf"]],template:function(i,e){if(i&1){let m=I();o(0,"modal-material",2),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(s){return c(m),g(e.onSubmit(s))}),o(1,"div",3)(2,"div",4)(3,"label",5),r(4,"Tokopedia URL"),l(),o(5,"div",6)(6,"div",7)(7,"span",8),r(8,"https://tokopedia.com/"),l()(),o(9,"input",9,0),D("ngModelChange",function(s){return c(m),w(e.formData.URL,s)||(e.formData.URL=s),g(s)}),l()(),f(11,ce,2,1,"div",10),o(12,"label",11),r(13,"Requester's Email"),l(),o(14,"div",6)(15,"input",12,1),D("ngModelChange",function(s){return c(m),w(e.formData.Email,s)||(e.formData.Email=s),g(s)}),l()(),f(17,he,3,2,"div",10),l()()()}if(i&2){let m=A(10),d=A(16);p("dynamicValidated",!m.invalid&&!d.invalid)("config",e.modalConfig),a(7),p("ngClass",k(7,ue,m.invalid&&(m.dirty||m.touched))),a(2),b("ngModel",e.formData.URL),a(2),p("ngIf",m.invalid&&(m.dirty||m.touched)),a(4),b("ngModel",e.formData.Email),a(2),p("ngIf",d.invalid&&(d.dirty||d.touched))}},dependencies:[F,X,T,R,ne,oe,U,S],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.input-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.input-group[_ngcontent-%COMP%] > input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#fb404b}.input-group[_ngcontent-%COMP%] > input.customerUrl[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.invalid[_ngcontent-%COMP%]{border-color:#fb404b}.pointer-default[_ngcontent-%COMP%]{cursor:default}"]})}}return t})();var Je=(()=>{class t{constructor(n,i){this.dialogRef=n,this.data=i}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data?.title,this.modalConfig.okText="SAVE"}onSubmit(){this.dialogRef.close(this.shopID)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-dialog-tokopedia"]],standalone:!1,decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","shopid","placeholder","Shop ID","name","ShopID","data-toggle","tooltip","title","Channel Name",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(i,e){if(i&1){let m=I();o(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),o(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.shopID,s)||(e.shopID=s),g(s)}),l(),o(5,"label",5),r(6,"Shop ID"),l()()()()}i&2&&(p("dynamicValidated",e.shopID)("config",e.modalConfig),a(3),b("ngModel",e.shopID))},dependencies:[T,R,U,S],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]})}}return t})();var _e=t=>({"input-group":t}),ye=(t,u)=>({"is-invalid":t,"input-shopify rounded-start":u}),se=t=>({"is-invalid":t});function ve(t,u){t&1&&(o(0,"label",3),r(1,"Shopify URL"),l())}function Me(t,u){t&1&&(o(0,"label",3),r(1,"URL"),l())}function Se(t,u){t&1&&(o(0,"span",6),r(1,"myshopify.com"),l())}function Te(t,u){if(t&1&&(o(0,"div"),r(1),l()),t&2){let n=L(2);a(),Y("",n.data==null?null:n.data.title," url is required")}}function Re(t,u){if(t&1&&(o(0,"div",7),f(1,Te,2,1,"div"),l()),t&2){let n,i=L();a(),h(!(i.formGroup==null||(n=i.formGroup.get("URL"))==null)&&n.getError("required")?1:-1)}}function be(t,u){t&1&&r(0," API Key ")}function we(t,u){t&1&&r(0," Consumer Key ")}function De(t,u){t&1&&(r(0," ("),o(1,"a",11),r(2,"help center article"),l(),r(3,") "))}function Ee(t,u){t&1&&(o(0,"div",7),r(1,"API Key is required"),l())}function Oe(t,u){t&1&&r(0," Admin API Access Token ")}function Ge(t,u){t&1&&r(0," Consumer Secret ")}function Ve(t,u){t&1&&(o(0,"div",7),r(1,"Consumer Secret is required"),l())}var et=(()=>{class t{constructor(n,i){this.dialogRef=n,this.data=i,this.modalConfig=new _,this.urlCtrl=new N(null),this.channelType=ie}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let n=[K.required];this.formGroup=new x({URL:new N(null,n),ConsumerKey:new N(null,[K.required]),ConsumerSecret:new N(null,[K.required])})}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let n=this.formGroup?.get("URL")?.getError("pattern"),i=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;if(this.formGroup?.valid||n&&i&&e){let d=this.formGroup.value;this.data?.channelType==this.channelType.Shopify&&(d.URL=`${d.URL}.myshopify.com`),this.dialogRef.close(d)}}static{this.\u0275fac=function(i){return new(i||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-register-channel"]],standalone:!1,decls:23,vars:27,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],["for","shopid",1,"form-label","fw-bold","mb-2"],[1,"mb-8","has-validation",3,"ngClass"],["type","text","id","shopid","name","URL","title","URL","formControlName","URL",1,"form-control","form-input","rounded",3,"placeholder","ngClass"],["id","basic-addon2",1,"input-group-text","rounded-end","form-input","text-secondary"],[1,"invalid-feedback"],[1,"mb-8","has-validation"],["type","text","id","ConsumerKey","name","ConsumerKey","title","ConsumerKey","formControlName","ConsumerKey",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["type","text","id","ConsumerSecret","name","ConsumerSecret","title","ConsumerSecret","formControlName","ConsumerSecret",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"]],template:function(i,e){if(i&1&&(o(0,"modal-material",0),v("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),o(1,"div",1)(2,"form",2),f(3,ve,2,0,"label",3),o(4,"div",4),f(5,Me,2,0,"label",3),V(6,"input",5),f(7,Se,2,0,"span",6)(8,Re,2,1,"div",7),l(),o(9,"div",8)(10,"label",3)(11,"span"),f(12,be,1,0)(13,we,1,0),l(),f(14,De,4,0),l(),V(15,"input",9),f(16,Ee,2,0,"div",7),l(),o(17,"div",8)(18,"label",3),f(19,Oe,1,0)(20,Ge,1,0),l(),V(21,"input",10),f(22,Ve,2,0,"div",7),l()()()()),i&2){let m,d,s,E,O,G;p("config",e.modalConfig),a(2),p("formGroup",e.formGroup),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?3:-1),a(),p("ngClass",k(18,_e,(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)!=e.channelType.Shopify?5:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[ex: brand.myshopify.com]":"https://mydomain.com/")("ngClass",J(20,ye,(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.invalid)&&((e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.dirty)||(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.touched)),(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?7:-1),a(),h(!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.invalid&&(!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.dirty||!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.touched)?8:-1),a(4),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?12:13),a(2),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?14:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[Create an app and copy the API Key]":"[Create an app and copy the Consumer Key]")("ngClass",k(23,se,(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.invalid)&&((e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.dirty)||(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.touched)))),a(),h(!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.getError("required")&&(!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.dirty||!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.touched)?16:-1),a(3),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?19:20),a(2),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[shpat***************************]":"cs_***************")("ngClass",k(25,se,(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.invalid)&&((e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.dirty)||(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.touched)))),a(),h(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.getError("required")&&(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.dirty||!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.touched)?22:-1)}},dependencies:[F,$,T,R,Z,S,ee,te],styles:[".input-shopify[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.form-input[_ngcontent-%COMP%]{min-height:3.625rem}"]})}}return t})();export{We as a,Ke as b,Be as c,Je as d,et as e};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as je,b as Ke}from"./chunk-5GX2GLRY.js";import"./chunk-JBKHY4HH.js";import{a as Ae,b as $e,c as ze,e as Ye,f as Ue,g as Ge}from"./chunk-IYYVZ6B6.js";import"./chunk-RVYGL22E.js";import"./chunk-6XFYITUD.js";import{i as Ne,j as We,k as Re,l as Be,m as Le}from"./chunk-75BDXSG3.js";import"./chunk-D54NUPYF.js";import{a as Oe}from"./chunk-EGTYAIU5.js";import"./chunk-6ALHX2I4.js";import"./chunk-4G3QN54S.js";import{a as Ve,b as Fe,c as ke}from"./chunk-GHQH62TZ.js";import"./chunk-CH2MLZU7.js";import"./chunk-MNFHFW3E.js";import"./chunk-SDUUFQUI.js";import"./chunk-G6EG5QJS.js";import"./chunk-Q2OEJFVT.js";import{c as De,d as Te,e as be}from"./chunk-6IAGGRZN.js";import"./chunk-T6QOFDEE.js";import"./chunk-KXZCGKQW.js";import"./chunk-QCZIDOKW.js";import{j as Z,l as ee}from"./chunk-2SUNUZ5Y.js";import{b as ye,e as xe}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-KHWTOD6H.js";import{l as Ie,m as Me}from"./chunk-BIQHA7UA.js";import{r as Ee,s as Pe}from"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{c as we,h as Ce,m as Se,y as ve}from"./chunk-DPLEMBB4.js";import{b as X,c as x}from"./chunk-PXB4YEY3.js";import{J as ge,d as R,f as B,g as L,j as q,k as J,n as F}from"./chunk-GPEVUTDI.js";import{$c as _e,Ac as he,Dc as T,Eb as I,Ec as l,Fc as V,Gc as S,Ic as b,Jc as E,Ka as j,Kb as g,Kc as P,Na as k,Oc as K,Qa as _,Qc as ue,Rc as fe,Wb as d,Z as z,Zc as W,_c as U,aa as oe,ad as H,bc as M,ea as Y,gc as r,hc as a,ic as C,ja as le,jc as O,kc as N,m as re,mc as y,ob as pe,pa as v,qb as o,qd as Q,rc as w,sc as h,v as G,vc as se,wc as de,ya as m,yc as me,za as c,zc as ce}from"./chunk-T5ONJF63.js";import{a as ne,b as ae}from"./chunk-K2H6WANG.js";var Je=t=>({"over-due":t});function Xe(t,s){if(t&1&&(r(0,"tr",8)(1,"td"),l(2),a(),r(3,"td"),l(4),a(),r(5,"td"),l(6),a(),r(7,"td"),l(8),a()()),t&2){let e=s.$implicit,n=s.index;d("ngClass",ue(5,Je,e.Exception)),o(2),V(n+1),o(2),V(e.Number),o(2),V(e.Status),o(2),V(e.Exception)}}function Ze(t,s){if(t&1&&(O(0),g(1,Xe,9,7,"tr",7),N()),t&2){let e,n=h();o(),d("ngForOf",(e=n.downloadResult())==null?null:e.Body)}}function et(t,s){t&1&&(r(0,"tr",9)(1,"td",10)(2,"div",11),C(3,"i",12),a(),r(4,"h4",13),l(5," There is no order to processed "),a()()())}var He=(()=>{class t{constructor(){this.downloadResult=k()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},decls:16,vars:2,consts:[["EMPTY_DOWNLOAD",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[4,"ngIf","ngIfElse"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1&&(r(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),C(5,"th",5),r(6,"th"),l(7,"Order Number"),a(),r(8,"th"),l(9,"Status"),a(),r(10,"th"),l(11,"Exception"),a()()(),r(12,"tbody"),g(13,Ze,2,1,"ng-container",6)(14,et,6,0,"ng-template",null,0,H),a()()()()),n&2){let p,u=T(15);o(13),d("ngIf",((p=i.downloadResult())==null||p.Body==null?null:p.Body.length)>0)("ngIfElse",u)}},dependencies:[F,R,B,L],encapsulation:2})}}return t})();var A=(()=>{class t{constructor(){this.httpService=v(xe),this.toastr=v(ye),this.datePipe=v(J)}gerChannelDetailById(e){return this.httpService.post(Z.GetChannelDetail,{ID:e})}getOrderPreview(e){return this.httpService.post(Z.GetOrderPreviewV2,e)}getDownloadOrder(e){return this.httpService.post(Z.GetDownloadOrderV2,e)}onPreviewOrder(e){return this.validateDatePreview(e)?this.getOrderPreview(e).pipe(Y(n=>{n.Data?.length===0&&this.toastrEmptyPreview(e)})):re}toastrEmptyPreview(e){let n=this.datePipe.transform(e.From,"dd MMM yyyy"),i=this.datePipe.transform(e.To,"dd MMM yyyy"),p=e.TimeFrom?e.TimeFrom:"",u=e.TimeTo?e.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${p} to ${i} ${u}!`,"No Orders!")}validateDatePreview(e){let n=!0;return e.downloadType==!0?x.getDaysDiff(e?.From,e?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):x.getDaysDiff(e?.From,e?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),n=!1),n}getDateTitle(e,n){let i=x.formatTitleFromDate(new Date(e),new Date(n)),p=this.datePipe.transform(e,i),u=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":p+"-"} ${u}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac})}}return t})();function tt(t,s){if(t&1&&(r(0,"ng-option",13),C(1,"img",14),l(2),a()),t&2){let e=s.$implicit;d("value",e.ID),o(),d("src",e==null?null:e.Img,pe),o(),S("",e.Name," ")}}function it(t,s){if(t&1){let e=y();r(0,"div",8)(1,"div",4)(2,"h5"),l(3,"Type"),a(),r(4,"p",5),l(5,"Select Type want to download"),a()(),r(6,"div",4)(7,"div",15)(8,"div")(9,"mat-radio-group",16),P("ngModelChange",function(i){m(e);let p=h();return E(p.downloadType,i)||(p.downloadType=i),c(i)}),w("ngModelChange",function(){m(e);let i=h();return c(i.onDownloadTypeChange())}),r(10,"mat-radio-button",17),l(11," Orders "),a(),r(12,"mat-radio-button",18),l(13," Disbursement "),a()()()(),r(14,"div",19)(15,"div",20),C(16,"i",21),a(),r(17,"p",22),l(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),a()()()()}if(t&2){let e=h();o(9),b("ngModel",e.downloadType),o(),d("value",!1),o(2),d("value",!0)}}function nt(t,s){t&1&&(r(0,"p",5),l(1," Select Disbursement date "),r(2,"span",23),l(3,"(payment date / order complete date)"),a(),l(4," of the channel you want to download (Max 1 Week). "),a())}function at(t,s){t&1&&(r(0,"p",5),l(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),a())}function rt(t,s){if(t&1){let e=y();r(0,"div",12)(1,"app-timepicker",24),P("timeChange",function(i){m(e);let p=h();return E(p.startTime,i)||(p.startTime=i),c(i)}),w("timeChange",function(){m(e);let i=h();return c(i.onStartTimeChange())}),a(),r(2,"span",25),l(3,"-"),a(),r(4,"app-timepicker",24),P("timeChange",function(i){m(e);let p=h();return E(p.endTime,i)||(p.endTime=i),c(i)}),w("timeChange",function(){m(e);let i=h();return c(i.onEndTimeChange())}),a()()}if(t&2){let e=h();o(),b("time",e.startTime),o(3),b("time",e.endTime)}}var Qe=(()=>{class t{constructor(){this.reset=k(!1),this.authService=v(ee),this.downloadService=v(A),this.downloadType=_(!1),this.selectedChannelId=_(null),this.channelOptions=_(this.authService.getChannels()),this.channelType=X,this.selectedChannel=_(null),this.showTimePicker=_(!1),this.startDate=_(null),this.endDate=_(null),this.startTime=_("00:00"),this.endTime=_("23:59"),this.filterData=new j,Q(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0})}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(e=>e.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(G(e=>e?.Model),z(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let e=1;this.startDate()&&this.endDate()&&(e=x.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>e==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange"},features:[K([A])],decls:27,vars:11,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"row","mt-6"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(n,i){if(n&1){let p=y();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),l(5,"Select a Channel"),a(),r(6,"p",5),l(7,"Select Channel want to download order"),a()(),r(8,"div",4)(9,"ng-select",6),P("ngModelChange",function(f){return m(p),E(i.selectedChannelId,f)||(i.selectedChannelId=f),c(f)}),w("ngModelChange",function(){return m(p),c(i.onSelectChannel())}),g(10,tt,3,3,"ng-option",7),a()()(),g(11,it,19,3,"div",8),W(12,"async"),r(13,"div",8)(14,"div",4)(15,"h5"),l(16,"Date Range"),a(),g(17,nt,5,0,"p",5)(18,at,2,0,"p",5),a(),r(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),P("ngModelChange",function(f){return m(p),E(i.startDate,f)||(i.startDate=f),c(f)}),w("click",function(){m(p);let f=T(25);return c(f.open())}),a(),r(23,"input",11),P("ngModelChange",function(f){return m(p),E(i.endDate,f)||(i.endDate=f),c(f)}),w("click",function(){m(p);let f=T(25);return c(f.open())})("ngModelChange",function(){return m(p),c(i.onFilterDateChange())}),a()(),C(24,"mat-date-range-picker",null,0),a(),g(26,rt,5,2,"div",12),a()()()()}if(n&2){let p,u,f=T(25);o(9),d("clearable",!1),b("ngModel",i.selectedChannelId),o(),d("ngForOf",i.channelOptions()),o(),M((p=U(12,9,i.channelDetail$))!=null&&p.ServiceFeeWriteOff&&((p=i.selectedChannel())==null?null:p.TypeID)==i.channelType.Tokopedia?11:-1),o(6),M(i.downloadType()&&((u=i.selectedChannel())==null?null:u.TypeID)==i.channelType.Tokopedia?17:18),o(4),d("rangePicker",f),o(),b("ngModel",i.startDate),o(),b("ngModel",i.endDate),o(3),M(i.showTimePicker()?26:-1)}},dependencies:[F,B,q,be,Te,De,ke,Ve,Fe,ve,we,Ce,Se,Ke,Be,Ne,Le,We,Re],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"]})}}return t})();var D=function(t){return t.ALL="all",t.SYNC="sync",t.WRONG="wrong",t.UNSYNC="unsync",t}(D||{});var $=function(t){return t[t.DoNothing=0]="DoNothing",t[t.New=1]="New",t[t.Update=2]="Update",t}($||{});var ot=(t,s)=>({"over-due-today":t,"over-due":s});function lt(t,s){if(t&1&&(r(0,"th",21),l(1),a()),t&2){let e=h();o(),S(" ",e.selectedChannel()?"Created Date":"Last Status Update"," ")}}function pt(t,s){if(t&1&&(r(0,"td"),l(1),W(2,"date"),a()),t&2){let e=h().$implicit;o(),S(" ",_e(2,1,e.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function st(t,s){if(t&1&&(r(0,"span"),l(1),a()),t&2){let e=h().$implicit;o(),S(" ",e.ActionString," ")}}function dt(t,s){if(t&1&&(r(0,"li"),l(1),a()),t&2){let e=s.$implicit;o(),S(" ",e," ")}}function mt(t,s){if(t&1&&(r(0,"ul",27),g(1,dt,2,1,"li",22),a()),t&2){let e=h().$implicit;o(),d("ngForOf",e.ActionString)}}function ct(t,s){if(t&1&&(r(0,"span",28),C(1,"i",29),a()),t&2){let e=h().$implicit;de("title","Delivery : ",e.DeliveryState,`
|
|
2
|
-
Payment : `,e.PaymentState,"")}}function ht(t,s){if(t&1&&(r(0,"tr")(1,"td"),l(2),a(),r(3,"td"),l(4),a(),g(5,pt,3,4,"td",23),r(6,"td")(7,"span"),l(8),a(),l(9),a(),r(10,"td",24)(11,"span"),l(12),a(),l(13),a(),r(14,"td"),g(15,st,2,1,"span",23)(16,mt,2,1,"ul",25),a(),r(17,"td"),g(18,ct,2,3,"span",26),a()()),t&2){let e,n=s.$implicit,i=s.index,p=h(2);o(2),V(i+1),o(2),V(n.Number),o(),d("ngIf",((e=p.selectedChannel())==null?null:e.TypeID)!=p.channelType.Shopee&&((e=p.selectedChannel())==null?null:e.TypeID)!==p.channelType.Tiktok),o(3),S("",n.ChannelStatus," - "),o(),S("",n.ChannelStatusDescription," "),o(),d("ngClass",fe(12,ot,(n==null?null:n.Action)==p.actionPreviewOrder.Update,(n==null?null:n.Action)==p.actionPreviewOrder.New))("matTooltip",n.POSStatus==91||n.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),o(2),S("",n.POSStatus," - "),o(),S("",n.POSStatusDescription," "),o(2),d("ngIf",n.ActionString.length==1),o(),d("ngIf",n.ActionString.length>1),o(2),d("ngIf",n.ChannelStatus!=99&&n.POSStatus!=99)}}function ut(t,s){if(t&1&&(O(0),g(1,ht,19,15,"tr",22),N()),t&2){let e=h();o(),d("ngForOf",e.displayPreviewData())}}function ft(t,s){t&1&&(r(0,"tr",30)(1,"td",31)(2,"div",32),C(3,"i",33),a(),r(4,"h4",34),l(5," There is no order to processed "),a()()())}var qe=(()=>{class t{constructor(){this.orderPreview=k(),this.selectedChannel=k(),this.channelType=X,this.allData=_(0),this.syncData=_(0),this.wrongData=_(0),this.unsyncData=_(0),this.pillStatus=_(D.ALL),this.actionPreviewOrder=$,this.previewStatus=D,this.displayPreviewData=_([]),this.exportOrders=new j,Q(()=>{this.orderPreview()&&(this.filterPreviewData(D.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(e){this.pillStatus.update(()=>e),this.displayPreviewData.update(()=>this.filterDataByStatus(e))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(D.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(D.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(D.UNSYNC).length)}filterDataByStatus(e){let n=[];switch(e){case D.ALL:n=this.orderPreview();break;case D.SYNC:n=this.orderPreview().filter(i=>i.Action==$.DoNothing);break;case D.WRONG:n=this.orderPreview().filter(i=>i.Action==$.Update);break;case D.UNSYNC:n=this.orderPreview().filter(i=>i.Action==$.New);break}return n}onExportOrders(){this.exportOrders.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["preview-step"]],inputs:{orderPreview:[1,"orderPreview"],selectedChannel:[1,"selectedChannel"]},outputs:{exportOrders:"onExportOrders"},decls:41,vars:11,consts:[["EMPTY",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"col-12","d-flex","justify-content-between","align-items-end",2,"padding-left","0px","padding-right","0px"],[1,"nav","nav-pills"],[1,"nav-item","me-3"],[1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],[1,"nav-item","mx-3"],["matTooltip","All Invoice which is already available in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices that have different status between marketplace and POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices which is not exist in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%",4,"ngIf"],["width","10%"],[4,"ngIf","ngIfElse"],["width","15%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["matTooltipClass","custom-width-tooltip",3,"ngClass","matTooltip"],["class","ps-5",4,"ngIf"],[3,"title",4,"ngIf"],[1,"ps-5"],[3,"title"],[1,"fas","fa-info-circle","ms-2"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1){let p=y();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"ul",5)(6,"li",6)(7,"button",7),w("click",function(){return m(p),c(i.filterPreviewData(i.previewStatus.ALL))}),l(8),a()(),r(9,"li",8)(10,"button",9),w("click",function(){return m(p),c(i.filterPreviewData(i.previewStatus.SYNC))}),l(11),a()(),r(12,"li",8)(13,"button",10),w("click",function(){return m(p),c(i.filterPreviewData(i.previewStatus.WRONG))}),l(14),a()(),r(15,"li",8)(16,"button",11),w("click",function(){return m(p),c(i.filterPreviewData(i.previewStatus.UNSYNC))}),l(17),a()()()(),r(18,"div")(19,"button",12),w("click",function(){return m(p),c(i.onExportOrders())}),C(20,"i",13),r(21,"span"),l(22,"Export"),a()()()()(),r(23,"table",14)(24,"thead",15)(25,"tr"),C(26,"th",16),r(27,"th",17),l(28,"Number"),a(),g(29,lt,2,1,"th",18),r(30,"th",19),l(31,"Channel Status"),a(),r(32,"th",19),l(33,"POS Status"),a(),r(34,"th"),l(35,"Action"),a(),C(36,"th",16),a()(),r(37,"tbody"),g(38,ut,2,1,"ng-container",20)(39,ft,6,0,"ng-template",null,0,H),a()()()()}if(n&2){let p,u,f=T(40);o(7),d("ngClass",i.pillStatus()=="all"?"btn-secondary text-white":"btn-outline-dark"),o(),S(" All (",i.allData(),") "),o(2),d("ngClass",i.pillStatus()=="sync"?"btn-success":"btn-outline-success"),o(),S(" Existing (",i.syncData(),") "),o(2),d("ngClass",i.pillStatus()=="wrong"?"btn-warning text-white":"btn-outline-warning"),o(),S(" Wrong Status (",i.wrongData(),") "),o(2),d("ngClass",i.pillStatus()=="unsync"?"btn-danger":"btn-outline-danger"),o(),S(" Missing (",i.unsyncData(),") "),o(12),d("ngIf",((p=i.selectedChannel())==null?null:p.TypeID)!=i.channelType.Shopee&&((p=i.selectedChannel())==null?null:p.TypeID)!==i.channelType.Tiktok),o(9),d("ngIf",((u=i.displayPreviewData())==null?null:u.length)>0)("ngIfElse",f)}},dependencies:[F,R,B,L,J,Pe,Ee],encapsulation:2})}}return t})();var _t=["stepper"];function gt(t,s){if(t&1){let e=y();r(0,"div",2)(1,"button",19),w("click",function(){m(e);let i=h();return c(i.onStepperBack())}),l(2," Back "),a(),r(3,"button",20),w("click",function(){m(e);let i=h();return c(i.onNextStep())}),l(4," Next "),a()()}if(t&2){let e=h();o(3),d("disabled",e.disabledNextFilter())}}function wt(t,s){if(t&1){let e=y();r(0,"button",21),w("click",function(){m(e);let i=h();return c(i.onNextStep())}),l(1," Next "),a()}if(t&2){let e=h();d("disabled",e.disabledNextFilter())}}function Ct(t,s){if(t&1){let e=y();r(0,"button",22),w("click",function(){m(e);let i=h();return c(i.onNewDownload())}),C(1,"i",23),l(2," New "),a()}}function St(t,s){t&1&&(C(0,"i",24),r(1,"span"),l(2,"Filter"),a())}function vt(t,s){t&1&&(C(0,"i",25),r(1,"span"),l(2,"Preview"),a())}function yt(t,s){if(t&1){let e=y();O(0),r(1,"preview-step",26),w("onExportOrders",function(){m(e);let i=h();return c(i.onExportOrders())}),a(),N()}if(t&2){let e=s.ngIf;o(),d("orderPreview",e)}}function xt(t,s){t&1&&(C(0,"i",27),r(1,"span"),l(2,"Finish"),a())}function Dt(t,s){if(t&1&&(O(0),C(1,"complete-step",28),N()),t&2){let e=s.ngIf;o(),d("downloadResult",e)}}function Tt(t,s){t&1&&(r(0,"h6"),l(1,"1"),a())}function bt(t,s){t&1&&(r(0,"h6"),l(1,"2"),a())}function Et(t,s){t&1&&(r(0,"h6"),l(1,"3"),a())}var Li=(()=>{class t{constructor(){this.downloadService=v(A),this.orderService=v(je),this.productService=v(Oe),this.authService=v(ee),this.stepperSelectedIndex=_(0),this.disabledNextFilter=_(!0),this.isResetFilter=_(!1),this.pageTitle=_("Download to POS"),this.cacheKey=_(x.GuidEMpty)}onFilterChange(e){this.filter=e,this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>x.IsEmpty(this.filter?.channelId)||!x.isValidDate(this.filter.startDate)||!x.isValidDate(this.filter.endDate))}onNextStep(){switch(this.stepper.selectedIndex){case 0:this.onPreview();let e=this.productService.findChannelById(this.filter.channelId,this.authService.getChannels());this.setPageTitle(`Preview ${e?.Name}`);break;case 1:this.onDownload(),this.setPageTitle("Download");break}}onStepperNext(){this.stepper.selected.completed=!0,this.stepper.next()}onPreview(){let e={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,IsDisbursement:this.filter.downloadType};x.IsNotEmpty(this.filter.startTime)&&(e=ae(ne({},e),{TimeFrom:this.filter.startTime+":00",TimeTo:this.filter.endTime+":00"})),this.orderPreview$=this.downloadService.onPreviewOrder(e).pipe(Y(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext())}),G(n=>n.Data),z(1))}onExportOrders(){let e={ID:this.filter.channelId,From:this.filter.startDate?this.filter.startDate:null,To:this.filter.endDate?this.filter.endDate:null},n=`Orders ${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)}`;this.orderService.exportOrders(e,n).subscribe()}onDownload(){let e={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,ListPreview:[],IsDisbursement:this.filter.downloadType,CacheKey:this.cacheKey()};this.downloadPreview$=this.orderPreview$.pipe(oe(n=>(e.ListPreview=n,this.downloadService.getDownloadOrder(e))),Y(()=>{this.onStepperNext()}),z(1))}setPageTitle(e){this.pageTitle.update(()=>`
|
|
3
|
-
${e} (${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)})
|
|
4
|
-
`)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(){this.isResetFilter.update(()=>!0),this.stepper.reset(),this.stepperSelectedIndex.update(()=>0),this.orderPreview$=null,this.downloadPreview$=null,this.pageTitle.update(()=>"Download to POS")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-download-v2"]],viewQuery:function(n,i){if(n&1&&me(_t,5),n&2){let p;ce(p=he())&&(i.stepper=p.first)}},features:[K([A,{provide:Ae,useValue:{displayDefaultIndicatorType:!1}}])],decls:26,vars:20,consts:[["stepper",""],[3,"hideSearchBox","hideSearchDropdown","headerTitle","description"],[1,"btn-group","me-3"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"disabled"],[1,"btn","btn-outline-secondary","btn-fill"],[1,"container-fluid","pt-5","mt-5"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-center"],["linear","",1,"w-100","stepper-download",3,"selectedIndexChange","ngClass","selectedIndex"],["state","filter",3,"completed","editable"],["matStepLabel",""],[1,"w-100",3,"onFilterChange","reset"],["state","preview",3,"editable","completed"],[4,"ngIf"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","bg-success","text-white",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],[1,"fa-solid","fa-filter","me-3"],[1,"fa-solid","fa-file","me-3"],[3,"onExportOrders","orderPreview"],[1,"fa-solid","fa-flag","me-3"],[3,"downloadResult"]],template:function(n,i){if(n&1){let p=y();r(0,"mainpanel",1)(1,"actions"),g(2,gt,5,1,"div",2)(3,wt,2,1,"button",3)(4,Ct,3,0,"button",4),a(),r(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-stepper",9,0),P("selectedIndexChange",function(f){return m(p),E(i.stepperSelectedIndex,f)||(i.stepperSelectedIndex=f),c(f)}),r(12,"mat-step",10),g(13,St,3,0,"ng-template",11),r(14,"filter-step",12),w("onFilterChange",function(f){return m(p),c(i.onFilterChange(f))}),a()(),r(15,"mat-step",13),g(16,vt,3,0,"ng-template",11)(17,yt,2,1,"ng-container",14),W(18,"async"),a(),r(19,"mat-step",15),g(20,xt,3,0,"ng-template",11)(21,Dt,2,1,"ng-container",14),W(22,"async"),a(),g(23,Tt,2,0,"ng-template",16)(24,bt,2,0,"ng-template",17)(25,Et,2,0,"ng-template",18),a()()()()()()()}if(n&2){let p=T(11);d("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",i.pageTitle())("description",i.pageTitle()),o(2),M(i.stepperSelectedIndex()==1?2:-1),o(),M(i.stepperSelectedIndex()==0?3:-1),o(),M(i.stepperSelectedIndex()==2?4:-1),o(6),se("ngClass","last-edited-step-"+p.selectedIndex),b("selectedIndex",i.stepperSelectedIndex),o(2),d("completed",!1)("editable",i.stepperSelectedIndex()!=2),o(2),d("reset",i.isResetFilter()),o(),d("editable",i.stepperSelectedIndex()!=2)("completed",!1),o(2),d("ngIf",U(18,16,i.orderPreview$)),o(4),d("ngIf",U(22,18,i.downloadPreview$))}},dependencies:[F,R,L,q,He,Qe,qe,Ge,Ye,$e,Ue,ze,Me,Ie,ge],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.vertical-radio{display:flex;flex-direction:column;margin:15px 0}.mt-1rem{margin-top:1rem}.dateRange{padding-top:.8rem;padding-bottom:.8rem}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container>div.mat-horizontal-stepper-content:nth-child(1){display:flex;justify-content:left}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container{margin-top:30px}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container>mat-step-header.mat-horizontal-stepper-header{pointer-events:none!important}.form-label-group.radio.download-type{height:45.5938px!important;border-radius:.375rem!important}
|
|
5
|
-
`],encapsulation:2})}}return t})();export{Li as DownloadV2Component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-V5WYSCVT.js";import"./chunk-K2H6WANG.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var S=Object.create;var b=Object.defineProperty,E=Object.defineProperties,T=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,g=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,A=Reflect.get;var v=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||={})w.call(t,r)&&v(e,r,t[r]);if(d)for(var r of d(t))O.call(t,r)&&v(e,r,t[r]);return e},F=(e,t)=>E(e,D(t));var M=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var G=(e,t)=>{var r={};for(var n in e)w.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&d)for(var n of d(e))t.indexOf(n)<0&&O.call(e,n)&&(r[n]=e[n]);return r};var K=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),N=(e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})},I=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!w.call(e,o)&&o!==r&&b(e,o,{get:()=>t[o],enumerable:!(n=T(t,o))||n.enumerable});return e};var V=(e,t,r)=>(r=e!=null?S(g(e)):{},I(t||!e||!e.__esModule?b(r,"default",{value:e,enumerable:!0}):r,e));var $=(e,t,r)=>A(g(e),r,t);var q=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{u(r.next(c))}catch(s){o(s)}},f=c=>{try{u(r.throw(c))}catch(s){o(s)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,f);u((r=r.apply(e,t)).next())});function L(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function z(e,t,r,n){function o(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function u(l){try{s(n.next(l))}catch(y){f(y)}}function c(l){try{s(n.throw(l))}catch(y){f(y)}}function s(l){l.done?i(l.value):o(l.value).then(u,c)}s((n=n.apply(e,t||[])).next())})}function j(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function H(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",f),o[Symbol.asyncIterator]=function(){return this},o;function f(a){return function(p){return Promise.resolve(p).then(a,y)}}function u(a,p){n[a]&&(o[a]=function(h){return new Promise(function(x,P){i.push([a,h,x,P])>1||c(a,h)})},p&&(o[a]=p(o[a])))}function c(a,p){try{s(n[a](p))}catch(h){m(i[0][3],h)}}function s(a){a.value instanceof _?Promise.resolve(a.value.v).then(l,y):m(i[0][2],a)}function l(a){c("next",a)}function y(a){c("throw",a)}function m(a,p){a(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function J(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof j=="function"?j(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(f){return new Promise(function(u,c){f=e[i](f),o(u,c,f.done,f.value)})}}function o(i,f,u,c){Promise.resolve(c).then(function(s){i({value:s,done:u})},f)}}export{C as a,F as b,M as c,G as d,K as e,N as f,V as g,$ as h,q as i,L as j,z as k,_ as l,H as m,J as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as O}from"./chunk-UBMI3NQH.js";import{a as P}from"./chunk-J3P46Z53.js";import{a as M}from"./chunk-4ASUM4N5.js";import{b as h}from"./chunk-7FUVW73P.js";import"./chunk-M3SJUKTG.js";import{c as f}from"./chunk-GHQH62TZ.js";import"./chunk-CH2MLZU7.js";import{a}from"./chunk-EIGDGRRL.js";import{a as C}from"./chunk-62PFQNHJ.js";import"./chunk-Q72ZXPDP.js";import"./chunk-MNFHFW3E.js";import"./chunk-ZZVNB72Q.js";import"./chunk-VGXQU74M.js";import"./chunk-SDUUFQUI.js";import"./chunk-G6EG5QJS.js";import"./chunk-RIHLYYZU.js";import"./chunk-Q2OEJFVT.js";import{e as u}from"./chunk-6IAGGRZN.js";import"./chunk-T6QOFDEE.js";import"./chunk-KXZCGKQW.js";import"./chunk-QCZIDOKW.js";import"./chunk-2SUNUZ5Y.js";import"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-KHWTOD6H.js";import{m as g}from"./chunk-BIQHA7UA.js";import{s}from"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{y as l}from"./chunk-DPLEMBB4.js";import"./chunk-PXB4YEY3.js";import{F as c,J as i,n as r}from"./chunk-GPEVUTDI.js";import{Eb as p,Fb as e,ic as d,ka as n}from"./chunk-T5ONJF63.js";import"./chunk-K2H6WANG.js";var x=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=p({type:t,selectors:[["app-products"]],standalone:!1,decls:1,vars:0,template:function(o,y){o&1&&d(0,"router-outlet")},dependencies:[c],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})}}return t})();var w=[{path:"",component:x,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",loadChildren:()=>import("./chunk-Y3U6BFV5.js").then(t=>t.StatusModule),canActivate:[a]},{path:"download",loadChildren:()=>import("./chunk-SMZ7F54P.js").then(t=>t.DownloadModule),canActivate:[a]},{path:"upload",loadComponent:()=>import("./chunk-L4NLJBLA.js").then(t=>t.ProductUploadComponent),data:{title:"Upload Product"},canActivate:[a]}]}],_=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=e({type:t})}static{this.\u0275inj=n({imports:[r,i.forChild(w)]})}}return t})();var V=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=e({type:t})}static{this.\u0275inj=n({imports:[r,l,i,_,s,g,u,h,M,f,C,P,O]})}}return t})();export{V as ProductModule};
|