marketplacepos 3.19.2 → 3.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/Marketplace/{chunk-45SYAAZ4.js → chunk-2C32PU5X.js} +1 -1
  2. package/Marketplace/{chunk-EZGXPLQL.js → chunk-3LSSEMTW.js} +1 -1
  3. package/Marketplace/{chunk-ANKBJ6LX.js → chunk-76GYL4GA.js} +1 -1
  4. package/Marketplace/{chunk-Y3534N3T.js → chunk-AUCIW6VR.js} +1 -1
  5. package/Marketplace/{chunk-KH5XAWRL.js → chunk-BFEEK5YU.js} +1 -1
  6. package/Marketplace/{chunk-UEV7LKHN.js → chunk-BH2R22DH.js} +1 -1
  7. package/Marketplace/{chunk-7K3GXZTT.js → chunk-BLH75XXY.js} +1 -1
  8. package/Marketplace/{chunk-ENK2D3NZ.js → chunk-CGUWFGH3.js} +1 -1
  9. package/Marketplace/{chunk-CDTWKL3P.js → chunk-CSYQB3ZA.js} +1 -1
  10. package/Marketplace/{chunk-ZUFS67DO.js → chunk-E4XM7VHY.js} +1 -1
  11. package/Marketplace/{chunk-UIZ56VQJ.js → chunk-FZDYEHNC.js} +1 -1
  12. package/Marketplace/{chunk-G7LXKOFQ.js → chunk-G3NZDAHG.js} +1 -1
  13. package/Marketplace/{chunk-ZQ3CAWGU.js → chunk-GEOZCTY6.js} +1 -1
  14. package/Marketplace/{chunk-VJZE4EZL.js → chunk-HRB6G2LU.js} +1 -1
  15. package/Marketplace/{chunk-ZLI5KKPV.js → chunk-IDJG7E4L.js} +1 -1
  16. package/Marketplace/{chunk-WLZGBUKM.js → chunk-IIANF3VA.js} +1 -1
  17. package/Marketplace/{chunk-7YTFSMJP.js → chunk-JHJNKEH6.js} +1 -1
  18. package/Marketplace/{chunk-2ZA6UFQW.js → chunk-K62KUEI5.js} +1 -1
  19. package/Marketplace/{chunk-XXJWUGOI.js → chunk-SNTDL3ZC.js} +1 -1
  20. package/Marketplace/{chunk-LGATMK2R.js → chunk-URIDNNCK.js} +1 -1
  21. package/Marketplace/{chunk-LOACFIKK.js → chunk-WUCXNOY6.js} +1 -1
  22. package/Marketplace/{chunk-WJ7K2RPV.js → chunk-X6J6RWD3.js} +1 -1
  23. package/Marketplace/{chunk-RVYVBC3W.js → chunk-XH22CID4.js} +1 -1
  24. package/Marketplace/{chunk-WHRVZ53L.js → chunk-XMQ2CMLS.js} +1 -1
  25. package/Marketplace/{chunk-ZSG7RVPO.js → chunk-YJFARXIC.js} +1 -1
  26. package/Marketplace/{chunk-YJRFHXEU.js → chunk-ZPFSBV72.js} +1 -1
  27. package/Marketplace/{chunk-N3CZPKYT.js → chunk-ZWDUUAFA.js} +1 -1
  28. package/Marketplace/index.html +2 -2
  29. package/Marketplace/{main-4MSULW4F.js → main-UMNDP57A.js} +1 -1
  30. package/package.json +1 -1
@@ -1 +1 @@
1
- import{e as Zn}from"./chunk-6NTRXLMW.js";import{a as qe,b as Wn,c as Gn,d as Yn,e as Jn,g as je}from"./chunk-45SYAAZ4.js";import{a as Hn,b as $e,c as Vn,d as Un,e as Qn}from"./chunk-NVF24LK5.js";import"./chunk-KCDL7SWP.js";import"./chunk-GXHE2CDH.js";import{f as Xn}from"./chunk-X4WLRMDP.js";import{$ as V,$a as E,$b as Pn,$c as Z,A as un,B as dt,C as dn,Da as gt,Dc as xe,E as hn,G as ht,Ga as yn,Ia as y,Ib as Te,Ja as J,Jb as Sn,K as pn,Kb as kn,Lc as we,M as fn,Mc as In,Na as _n,Nc as Rn,Oc as Fn,Pa as bn,Pc as Ln,Qb as En,Qc as Be,Rb as Cn,Rc as xn,Sb as Tn,T as pt,Tc as Bn,Uc as zn,Vc as qn,Wa as Q,Wc as ze,X as mn,Z as k,Za as ve,Zc as vt,_a as yt,_b as wn,_c as v,aa as se,ab as C,ad as Kn,bb as oe,bd as St,ca as U,db as Fe,dd as $n,e as lt,ed as W,fc as Mn,fd as jn,ga as z,gd as kt,ha as re,hd as Et,ia as gn,lb as R,mb as F,md as Se,nb as P,nd as Ct,o as ln,oa as ft,od as Ke,pa as mt,q as ct,qb as vn,rb as _t,rc as An,s as cn,sa as te,ub as bt,uc as Dn,wb as O,wc as Le,xc as Nn,y as ut,zc as On}from"./chunk-HSFUKC7R.js";import{a as Re,d as an}from"./chunk-GNOSNGXM.js";var Ki=i=>({"background-color":i});function $i(i,e){i&1&&vn(0)}function ji(i,e){if(i&1&&P(0,"sk-cube-grid",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Hi(i,e){if(i&1&&P(0,"sk-chasing-dots",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Vi(i,e){if(i&1&&P(0,"sk-double-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Ui(i,e){if(i&1&&P(0,"sk-rotating-plane",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Qi(i,e){if(i&1&&P(0,"sk-spinner-pulse",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Wi(i,e){if(i&1&&P(0,"sk-three-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Gi(i,e){if(i&1&&P(0,"sk-wandering-cubes",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Yi(i,e){if(i&1&&P(0,"sk-wave",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Xi(i,e){if(i&1&&(R(0,"div",1),ve(1,$i,1,0,"ng-container",2)(2,ji,1,1,"sk-cube-grid",3)(3,Hi,1,1,"sk-chasing-dots",3)(4,Vi,1,1,"sk-double-bounce",3)(5,Ui,1,1,"sk-rotating-plane",3)(6,Qi,1,1,"sk-spinner-pulse",3)(7,Wi,1,1,"sk-three-bounce",3)(8,Gi,1,1,"sk-wandering-cubes",3)(9,Yi,1,1,"sk-wave",3),F()),i&2){let t=O();C("opacity",t.opacity),oe("backdrop",t.backdrop),E("ngStyle",Tn(14,Ki,t.backdrop?t.backdropBackgroundColor:"transparent")),y(),E("ngComponentOutlet",t.entryComponent),y(),E("ngIf",t.spinner===t.spinkit.skCubeGrid),y(),E("ngIf",t.spinner===t.spinkit.skChasingDots),y(),E("ngIf",t.spinner===t.spinkit.skDoubleBounce),y(),E("ngIf",t.spinner===t.spinkit.skRotatingPlane),y(),E("ngIf",t.spinner===t.spinkit.skSpinnerPulse),y(),E("ngIf",t.spinner===t.spinkit.skThreeBounce),y(),E("ngIf",t.spinner===t.spinkit.skWanderingCubes),y(),E("ngIf",t.spinner===t.spinkit.skWave)}}var le=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=gn({type:i,inputs:{backgroundColor:"backgroundColor"}}),i})(),Ji=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-chasing-dots"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),Zi=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-cube-grid"]],features:[Q],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),i})(),es=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-double-bounce"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),ts=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-rotating-plane"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),i})(),ns=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-spinner-pulse"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),i})(),is=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-three-bounce"]],features:[Q],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),i})(),ss=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wandering-cubes"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),i})(),rs=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wave"]],features:[Q],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),i})(),ei={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var Tt=(()=>{class i{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new lt(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}intercept(t,n){let s=this.shouldBypass(t);return s||(this._pendingRequests++,this._pendingRequests===1&&this._pendingRequestsStatus$.next(!0)),n.handle(t).pipe(fn(()=>{s||(this._pendingRequests--,this._pendingRequests===0&&this._pendingRequestsStatus$.next(!1))}))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),os=[{provide:we,useExisting:Tt,multi:!0}],as=(()=>{class i{constructor(t){this.pendingRequestsInterceptor=t,this._visibility$=new lt(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return i.\u0275fac=function(t){return new(t||i)(U(Tt))},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ti=(()=>{class i{constructor(t,n){this.pendingRequestsInterceptor=t,this.spinnerVisibility=n,this.spinkit=ei,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=ei.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,n]=dn(this.pendingRequestsInterceptor.pendingRequestsStatus$,s=>s);this.isVisible$=un(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(pt(()=>t.pipe(ht(()=>ut(this.debounceDelay))))),t.pipe(pt(()=>n.pipe(ht(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(pn(),mn(s=>this.updateExpirationDelay(s)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return ut(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return i.\u0275fac=function(t){return new(t||i)(J(Tt),J(as))},i.\u0275cmp=z({type:i,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(t,n){t&1&&(ve(0,Xi,10,16,"div",0),wn(1,"async")),t&2&&E("ngIf",Pn(1,1,n.isVisible$))},dependencies:[Dn,Le,Nn,Zi,Ji,es,ts,ns,is,ss,rs,On],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),i})(),ni=(()=>{class i{static forRoot(){return{ngModule:i,providers:[os]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=re({type:i}),i.\u0275inj=se({imports:[xe]}),i})();var cs=[{path:"",loadChildren:()=>import("./chunk-EZGXPLQL.js").then(i=>i.LoginModule)},{path:"menu",loadChildren:()=>import("./chunk-2ZA6UFQW.js").then(i=>i.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}],ii=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({imports:[vt.forRoot(cs,{scrollPositionRestoration:"top"}),vt]});let i=e;return i})();var hs=()=>["/api/Channel/GetLastSyncByID"],si=(()=>{let e=class e{constructor(n,s,r){this._router=n,this.titleService=s,this.activatedRoute=r}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe(dt(n=>n instanceof Bn)).pipe(ct(()=>this.activatedRoute),ct(n=>{for(;n.firstChild;)n=n.firstChild;return n}),dt(n=>n.outlet==="primary"),cn(n=>n.data)).subscribe(n=>{let s=" | Marketplace";n.title=="Dealpos x Marketplace"&&(s=""),this.titleService.setTitle(n.title+s)})}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+".000"};function n(s){return s<10?"0"+s:s}}};e.\u0275fac=function(s){return new(s||e)(J(ze),J(xn),J(zn))},e.\u0275cmp=z({type:e,selectors:[["app-root"]],decls:2,vars:2,consts:[[3,"filteredUrlPatterns"]],template:function(s,r){s&1&&P(0,"ng-http-loader",0)(1,"router-outlet"),s&2&&E("filteredUrlPatterns",Cn(1,hs))},dependencies:[qn,ti]});let i=e;return i})();function ri(i){return new k(3e3,!1)}function ps(){return new k(3100,!1)}function fs(){return new k(3101,!1)}function ms(i){return new k(3001,!1)}function gs(i){return new k(3003,!1)}function ys(i){return new k(3004,!1)}function _s(i,e){return new k(3005,!1)}function bs(){return new k(3006,!1)}function vs(){return new k(3007,!1)}function Ss(i,e){return new k(3008,!1)}function ks(i){return new k(3002,!1)}function Es(i,e,t,n,s){return new k(3010,!1)}function Cs(){return new k(3011,!1)}function Ts(){return new k(3012,!1)}function ws(){return new k(3200,!1)}function Ps(){return new k(3202,!1)}function Ms(){return new k(3013,!1)}function As(i){return new k(3014,!1)}function Ds(i){return new k(3015,!1)}function Ns(i){return new k(3016,!1)}function Os(i,e){return new k(3404,!1)}function Is(i){return new k(3502,!1)}function Rs(i){return new k(3503,!1)}function Fs(){return new k(3300,!1)}function Ls(i){return new k(3504,!1)}function xs(i){return new k(3301,!1)}function Bs(i,e){return new k(3302,!1)}function zs(i){return new k(3303,!1)}function qs(i,e){return new k(3400,!1)}function Ks(i){return new k(3401,!1)}function $s(i){return new k(3402,!1)}function js(i,e){return new k(3505,!1)}function ce(i){switch(i.length){case 0:return new Se;case 1:return i[0];default:return new Ct(i)}}function bi(i,e,t=new Map,n=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((b,_)=>{let p=_,g=b;if(_!=="offset")switch(p=i.normalizePropertyName(p,s),g){case Ke:g=t.get(_);break;case Z:g=n.get(_);break;default:g=i.normalizeStyleValue(_,p,g,s);break}u.set(p,g)}),d||r.push(u),a=u,o=c}),s.length)throw Is(s);return r}function Wt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&wt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&wt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&wt(t,"destroy",i)));break}}function wt(i,e,t){let n=t.totalTime,s=!!t.disabled,r=Gt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,s),o=i._data;return o!=null&&(r._data=o),r}function Gt(i,e,t,n,s="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function $(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function oi(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Hs=typeof document>"u"?null:document.documentElement;function Yt(i){let e=i.parentNode||i.host||null;return e===Hs?null:e}function Vs(i){return i.substring(1,6)=="ebkit"}var pe=null,ai=!1;function Us(i){pe||(pe=Qs()||{},ai=pe.style?"WebkitAppearance"in pe.style:!1);let e=!0;return pe.style&&!Vs(i)&&(e=i in pe.style,!e&&ai&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in pe.style)),e}function Qs(){return typeof document<"u"?document.body:null}function vi(i,e){for(;e;){if(e===i)return!0;e=Yt(e)}return!1}function Si(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Xt=(()=>{let e=class e{validateStyleProperty(n){return Us(n)}containsElement(n,s){return vi(n,s)}getParentElement(n){return Yt(n)}query(n,s,r){return Si(n,s,r)}computeStyle(n,s,r){return r||""}animate(n,s,r,o,a,l=[],c){return new Se(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),tn=class tn{};tn.NOOP=new Xt;var ge=tn,ye=class{};var Ws=1e3,ki="{{",Gs="}}",Ei="ng-enter",Ot="ng-leave",He="ng-trigger",Ge=".ng-trigger",li="ng-animating",It=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rt(parseFloat(e[1]),e[2])}function Rt(i,e){switch(e){case"s":return i*Ws;default:return i}}function Ye(i,e,t){return i.hasOwnProperty("duration")?i:Ys(i,e,t)}function Ys(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(ri(i)),{duration:0,delay:0,easing:""};s=Rt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Rt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(ps()),a=!0),r<0&&(e.push(fs()),a=!0),a&&e.splice(l,0,ri(i))}return{duration:s,delay:r,easing:o}}function Xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,s)=>{let r=Jt(s);t&&!t.has(s)&&t.set(s,i.style[r]),i.style[r]=n})}function me(i,e){e.forEach((t,n)=>{let s=Jt(n);i.style[s]=""})}function Pe(i){return Array.isArray(i)?i.length==1?i[0]:$n(i):i}function Js(i,e,t){let n=e.params||{},s=Ci(i);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||t.push(ms(r))})}var Ft=new RegExp(`${ki}\\s*(.+?)\\s*${Gs}`,"g");function Ci(i){let e=[];if(typeof i=="string"){let t;for(;t=Ft.exec(i);)e.push(t[1]);Ft.lastIndex=0}return e}function Ae(i,e,t){let n=`${i}`,s=n.replace(Ft,(r,o)=>{let a=e[o];return a==null&&(t.push(gs(o)),a=""),a.toString()});return s==n?i:s}var Zs=/-+([a-z0-9])/g;function Jt(i){return i.replace(Zs,(...e)=>e[1].toUpperCase())}function er(i,e){return i===0||e===0}function tr(i,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((r,o)=>{n.has(o)||s.push(o),n.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Zt(i,a)))}}return e}function K(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw ys(e.type)}}function Zt(i,e){return window.getComputedStyle(i)[e]}var nr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Xe=class extends ye{normalizePropertyName(e,t){return Jt(e)}normalizeStyleValue(e,t,n,s){let r="",o=n.toString().trim();if(nr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(_s(e,n))}return o+r}};var Je="*";function ir(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>sr(n,t,e)):t.push(i),t}function sr(i,e,t){if(i[0]==":"){let l=rr(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Ds(i)),e;let s=n[1],r=n[2],o=n[3];e.push(ci(s,o));let a=s==Je&&o==Je;r[0]=="<"&&!a&&e.push(ci(o,s))}function rr(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(Ns(i)),"* => *"}}var Ve=new Set(["true","1"]),Ue=new Set(["false","0"]);function ci(i,e){let t=Ve.has(i)||Ue.has(i),n=Ve.has(e)||Ue.has(e);return(s,r)=>{let o=i==Je||i==s,a=e==Je||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?Ve.has(i):Ue.has(i)),!a&&n&&typeof r=="boolean"&&(a=r?Ve.has(e):Ue.has(e)),o&&a}}var Ti=":self",or=new RegExp(`s*${Ti}s*,?`,"g");function wi(i,e,t,n){return new Lt(i).build(e,t,n)}var ui="",Lt=class{constructor(e){this._driver=e}build(e,t,n){let s=new xt(t);return this._resetContextStyleTimingState(s),K(this,Pe(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=ui,e.collectedStyles=new Map,e.collectedStyles.set(ui,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(bs()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(vs())}),{type:v.Trigger,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,o=s||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ci(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Ss(e.name,[...r.values()]))}return{type:v.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=K(this,Pe(e.animation),t),s=ir(e.expr,t.errors);return{type:v.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>K(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=n;let a=K(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:v.Group,steps:r,options:fe(e.options)}}visitAnimate(e,t){let n=ur(e.timings,t.errors);t.currentAnimateTimings=n;let s,r=e.styles?e.styles:W({});if(r.type==v.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=W(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?n.push(a):t.errors.push(ks(a)):n.push(new Map(Object.entries(a)));let r=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ki)>=0){r=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(t.errors.push(Es(l,d.startTime,d.endTime,r,s)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&Js(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cs()),n;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(M=>{let A=this._makeStyleAst(M,t),L=A.offset!=null?A.offset:cr(A.styles),N=0;return L!=null&&(r++,N=A.offset=L),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),A});l&&t.errors.push(Ts()),a&&t.errors.push(ws());let u=e.steps.length,b=0;r>0&&r<u?t.errors.push(Ps()):r==0&&(b=s/(u-1));let _=u-1,p=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return d.forEach((M,A)=>{let L=b>0?A==_?1:b*A:o[A],N=L*T;t.currentTime=p+g.delay+N,g.duration=N,this._validateStyleAst(M,t),M.offset=L,n.styles.push(M)}),n}visitReference(e,t){return{type:v.Reference,animation:K(this,Pe(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=ar(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,$(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Pe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ms());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ye(e.timings,t.errors,!0);return{type:v.Stagger,animation:K(this,Pe(e.animation),t),timings:n,options:null}}};function ar(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Ti);return e&&(i=i.replace(or,"")),i=i.replace(/@\*/g,Ge).replace(/@\w+/g,t=>Ge+"-"+t.slice(1)).replace(/:animating/g,It),[i,e]}function lr(i){return i?Re({},i):null}var xt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function cr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ur(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=Ye(i,e).duration;return Pt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Pt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=Ye(t,e);return Pt(s.duration,s.delay,s.easing)}function fe(i){return i?(i=Re({},i),i.params&&(i.params=lr(i.params))):i={},i}function Pt(i,e,t){return{duration:i,delay:e,easing:t}}function en(i,e,t,n,s,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var De=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},dr=1,hr=":enter",pr=new RegExp(hr,"g"),fr=":leave",mr=new RegExp(fr,"g");function Pi(i,e,t,n,s,r=new Map,o=new Map,a,l,c=[]){return new Bt().buildKeyframes(i,e,t,n,s,r,o,a,l,c)}var Bt=class{buildKeyframes(e,t,n,s,r,o,a,l,c,d=[]){c=c||new De;let u=new zt(e,t,c,s,r,d,[]);u.options=l;let b=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(b),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,n,u);let _=u.timelines.filter(p=>p.containsAnimation());if(_.length&&a.size){let p;for(let g=_.length-1;g>=0;g--){let T=_[g];if(T.element===t){p=T;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return _.length?_.map(p=>p.buildKeyframes()):[en(t,[],[],[],0,b,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:ne(Ae(r,s?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==v.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ze);let o=ne(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),K(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?Ae(n,t.params,t.errors):n;return Ye(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let r=e.style;r.type==v.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?ne(s.delay):0;r&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ze);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let b=u.currentTimeline.currentTime;o=Math.max(o,b)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-u+(s.startTime-n.currentTimeline.startTime)}},Ze={},zt=class i{constructor(e,t,n,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ze,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new et(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=ne(n.duration)),n.delay!=null&&(s.delay=ne(n.delay));let r=n.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ae(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,r=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ze,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new qt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(mr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&a.length==0&&o.push(As(t)),a}},et=class i{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=dr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Z),this._currentKeyframe.set(t,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=gr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Ae(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Ke?e.add(u):d===Z&&t.add(u)}),n||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(n){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return en(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},qt=class extends et{constructor(e,t,n,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",di(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let b=new Map(e[u]),_=b.get("offset"),p=t+_*n;b.set("offset",di(p/o)),r.push(b)}n=o,t=0,s="",e=r}return en(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function di(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function gr(i,e){let t=new Map,n;return i.forEach(s=>{if(s==="*"){n??=e.keys();for(let r of n)t.set(r,Z)}else for(let[r,o]of s)t.set(r,o)}),t}function hi(i,e,t,n,s,r,o,a,l,c,d,u,b){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:b}}var Mt={},tt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return yr(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,r,o,a,l,c,d){let u=[],b=this.ast.options&&this.ast.options.params||Mt,_=a&&a.params||Mt,p=this.buildStyles(n,_,u),g=l&&l.params||Mt,T=this.buildStyles(s,g,u),M=new Set,A=new Map,L=new Map,N=s==="void",_e={params:Mi(g,b),delay:this.ast.options?.delay},Y=d?[]:Pi(e,t,this.ast.animation,r,o,p,T,_e,c,u),x=0;return Y.forEach(B=>{x=Math.max(B.duration+B.delay,x)}),u.length?hi(t,this._triggerName,n,s,N,p,T,[],[],A,L,x,u):(Y.forEach(B=>{let ue=B.element,be=$(A,ue,new Set);B.preStyleProps.forEach(de=>be.add(de));let nn=$(L,ue,new Set);B.postStyleProps.forEach(de=>nn.add(de)),ue!==t&&M.add(ue)}),hi(t,this._triggerName,n,s,N,p,T,Y,[...M.values()],A,L,x))}};function yr(i,e,t,n,s){return i.some(r=>r(e,t,n,s))}function Mi(i,e){let t=Re({},e);return Object.entries(i).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var Kt=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=Mi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Ae(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function _r(i,e,t){return new $t(i,e,t)}var $t=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Kt(s.style,r,n))}),pi(this.states,"true","1"),pi(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new tt(e,s,this.states))}),this.fallbackTransition=br(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(o=>o.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function br(i,e,t){let n=[(o,a)=>!0],s={type:v.Sequence,steps:[],options:null},r={type:v.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new tt(i,r,e)}function pi(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var vr=new De,jt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],s=[],r=wi(this._driver,t,n,s);if(n.length)throw Rs(n);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,n){let s=e.element,r=bi(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Pi(this._driver,t,r,Ei,Ot,new Map,new Map,n,vr,s),o.forEach(d=>{let u=$(a,d.element,new Map);d.postStyleProps.forEach(b=>u.set(b,null))})):(s.push(Fs()),o=[]),s.length)throw Ls(s);a.forEach((d,u)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(u,_,Z))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=ce(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw xs(e);return t}listen(e,t,n,s){let r=Gt(t,"","","");return Wt(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},fi="ng-animate-queued",Sr=".ng-animate-queued",At="ng-animate-disabled",kr=".ng-animate-disabled",Er="ng-star-inserted",Cr=".ng-star-inserted",Tr=[],Ai={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},G="__ng_removed",Ne=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=Mr(s),n){let r=e,{value:o}=r,a=an(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(s=>{n[s]==null&&(n[s]=t[s])})}}},Me="void",Dt=new Ne(Me),Ht=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,H(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw Bs(n,t);if(n==null||n.length==0)throw zs(t);if(!Ar(n))throw qs(n,t);let r=$(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};r.push(o);let a=$(this._engine.statesByElement,e,new Map);return a.has(t)||(H(e,He),H(e,He+"-"+t),a.set(t,Dt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ks(e);return t}trigger(e,t,n,s=!0){let r=this._getTrigger(t),o=new Oe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(H(e,He),H(e,He+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ne(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dt),!(c.value===Me)&&l.value===c.value){if(!Or(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),M=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,T),ee(e,M)})}return}let b=$(this._engine.playersByElement,e,[]);b.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),p=!1;if(!_){if(!s)return;_=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(H(e,fi),o.onStart(()=>{ke(e,fi)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let M=T.indexOf(o);M>=0&&T.splice(M,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ge,!0);n.forEach(s=>{if(s[G])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Me,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ce(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||Dt,d=new Ne(Me),u=new Oe(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[G];(!r||r===Ai)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){H(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let r=n.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Gt(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Wt(n.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let r=n.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Vt=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Ht(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,s=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return s.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let s of n.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,s){if(Qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Qe(t))return;let r=t[G];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),H(e,At)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ke(e,At))}removeNode(e,t,n){if(Qe(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,r){this.collectedLeaveElements.push(t),t[G]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,s,r){return Qe(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ge,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,It,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ce(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[G];if(t&&t.setForRemoval){if(e[G]=Ai,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(At)&&this.markElementAsDisabled(e,!1),this.driver.query(e,kr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let s=this.collectedEnterElements[n];H(s,Er)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let s=0;s<n.length;s++)n[s]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let s=this.collectedLeaveElements[n];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ce(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw $s(e)}_flushAnimations(e,t){let n=new De,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,Sr,!0);for(let m=0;m<f.length;m++)d.add(f[m])});let u=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=yi(b,this.collectedEnterElements),p=new Map,g=0;_.forEach((h,f)=>{let m=Ei+g++;p.set(f,m),h.forEach(S=>H(S,m))});let T=[],M=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],m=f[G];m&&m.setForRemoval&&(T.push(f),M.add(f),m.hasAnimation?this.driver.query(f,Cr,!0).forEach(S=>M.add(S)):A.add(f))}let L=new Map,N=yi(b,Array.from(M));N.forEach((h,f)=>{let m=Ot+g++;L.set(f,m),h.forEach(S=>H(S,m))}),e.push(()=>{_.forEach((h,f)=>{let m=p.get(f);h.forEach(S=>ke(S,m))}),N.forEach((h,f)=>{let m=L.get(f);h.forEach(S=>ke(S,m))}),T.forEach(h=>{this.processLeaveNode(h)})});let _e=[],Y=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(m=>{let S=m.player,D=m.element;if(_e.push(S),this.collectedEnterElements.length){let I=D[G];if(I&&I.setForMove){if(I.previousTriggersValues&&I.previousTriggersValues.has(m.triggerName)){let he=I.previousTriggersValues.get(m.triggerName),j=this.statesByElement.get(m.element);if(j&&j.has(m.triggerName)){let Ie=j.get(m.triggerName);Ie.value=he,j.set(m.triggerName,Ie)}}S.destroy();return}}let X=!u||!this.driver.containsElement(u,D),q=L.get(D),ie=p.get(D),w=this._buildInstruction(m,n,ie,q,X);if(w.errors&&w.errors.length){Y.push(w);return}if(X){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}if(m.isFallbackTransition){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}let on=[];w.timelines.forEach(I=>{I.stretchStartingKeyframe=!0,this.disabledNodes.has(I.element)||on.push(I)}),w.timelines=on,n.append(D,w.timelines);let zi={instruction:w,player:S,element:D};o.push(zi),w.queriedElements.forEach(I=>$(a,I,[]).push(S)),w.preStyleProps.forEach((I,he)=>{if(I.size){let j=l.get(he);j||l.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))}}),w.postStyleProps.forEach((I,he)=>{let j=c.get(he);j||c.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))})});if(Y.length){let h=[];Y.forEach(f=>{h.push(js(f.triggerName,f.errors))}),_e.forEach(f=>f.destroy()),this.reportError(h)}let x=new Map,B=new Map;o.forEach(h=>{let f=h.element;n.has(f)&&(B.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,x))}),s.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,!1,h.namespaceId,h.triggerName,null).forEach(S=>{$(x,f,[]).push(S),S.destroy()})});let ue=T.filter(h=>_i(h,l,c)),be=new Map;gi(be,this.driver,A,c,Z).forEach(h=>{_i(h,l,c)&&ue.push(h)});let de=new Map;_.forEach((h,f)=>{gi(de,this.driver,new Set(h),l,Ke)}),ue.forEach(h=>{let f=be.get(h),m=de.get(h);be.set(h,new Map([...f?.entries()??[],...m?.entries()??[]]))});let ot=[],sn=[],rn={};o.forEach(h=>{let{element:f,player:m,instruction:S}=h;if(n.has(f)){if(d.has(f)){m.onDestroy(()=>ee(f,S.toStyles)),m.disabled=!0,m.overrideTotalTime(S.totalTime),s.push(m);return}let D=rn;if(B.size>1){let q=f,ie=[];for(;q=q.parentNode;){let w=B.get(q);if(w){D=w;break}ie.push(q)}ie.forEach(w=>B.set(w,D))}let X=this._buildAnimation(m.namespaceId,S,x,r,de,be);if(m.setRealPlayer(X),D===rn)ot.push(m);else{let q=this.playersByElement.get(D);q&&q.length&&(m.parentPlayer=ce(q)),s.push(m)}}else me(f,S.fromStyles),m.onDestroy(()=>ee(f,S.toStyles)),sn.push(m),d.has(f)&&s.push(m)}),sn.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let m=ce(f);h.setRealPlayer(m)}}),s.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h<T.length;h++){let f=T[h],m=f[G];if(ke(f,Ot),m&&m.hasAnimation)continue;let S=[];if(a.size){let X=a.get(f);X&&X.length&&S.push(...X);let q=this.driver.query(f,It,!0);for(let ie=0;ie<q.length;ie++){let w=a.get(q[ie]);w&&w.length&&S.push(...w)}}let D=S.filter(X=>!X.destroyed);D.length?Dr(this,f,D):this.processLeaveNode(f)}return T.length=0,ot.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1)}),h.play()}),ot}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Me;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(n||s)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,d=c!==r,u=$(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(_=>{let p=_.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),_.destroy(),u.push(_)})}me(r,t.fromStyles)}_buildAnimation(e,t,n,s,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,b=t.timelines.map(p=>{let g=p.element;d.add(g);let T=g[G];if(T&&T.removedBeforeQueried)return new Se(p.duration,p.delay);let M=g!==l,A=Nr((n.get(g)||Tr).map(x=>x.getRealPlayer())).filter(x=>{let B=x;return B.element?B.element===g:!1}),L=r.get(g),N=o.get(g),_e=bi(this._normalizer,p.keyframes,L,N),Y=this._buildPlayer(p,_e,A);if(p.subTimeline&&s&&u.add(g),M){let x=new Oe(e,a,g);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(p=>{$(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Pr(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>H(p,li));let _=ce(b);return _.onDestroy(()=>{d.forEach(p=>ke(p,li)),ee(l,t.toStyles)}),u.forEach(p=>{$(s,p,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Se(e.duration,e.delay)}},Oe=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Se,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(s=>Wt(e,n,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){$(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Pr(i,e,t){let n=i.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&i.delete(e)}return n}function Mr(i){return i??null}function Qe(i){return i&&i.nodeType===1}function Ar(i){return i=="start"||i=="done"}function mi(i,e){let t=i.style.display;return i.style.display=e??"none",t}function gi(i,e,t,n,s){let r=[];t.forEach(l=>r.push(mi(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let b=e.computeStyle(c,u,s);d.set(u,b),(!b||b.length==0)&&(c[G]=wr,o.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>mi(l,r[a++])),o}function yi(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,s=new Set(e),r=new Map;function o(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=n:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function H(i,e){i.classList?.add(e)}function ke(i,e){i.classList?.remove(e)}function Dr(i,e,t){ce(t).onDone(()=>i.processLeaveNode(e))}function Nr(i){let e=[];return Di(i,e),e}function Di(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Ct?Di(n.players,e):e.push(n)}}function Or(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let s=0;s<t.length;s++){let r=t[s];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1}return!0}function _i(i,e,t){let n=t.get(i);if(!n)return!1;let s=e.get(i);return s?n.forEach(r=>s.add(r)):e.set(i,n),t.delete(i),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Vt(e.body,t,n),this._timelineEngine=new jt(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,n,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=wi(this._driver,r,l,c);if(l.length)throw Os(s,l);c.length&&void 0,a=_r(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[r,o]=oi(n),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if(n.charAt(0)=="@"){let[o,a]=oi(n);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ir(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Nt(e[0]),e.length>1&&(n=Nt(e[e.length-1]))):e instanceof Map&&(t=Nt(e)),t||n?new Ut(i,t,n):null}var Ee=class Ee{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let s=Ee.initialStylesByElement.get(e);s||Ee.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ee.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Ee.initialStylesByElement=new WeakMap;var Ut=Ee;function Nt(i){let e=null;return i.forEach((t,n)=>{Rr(n)&&(e=e||new Map,e.set(n,t))}),e}function Rr(i){return i==="display"||i==="position"}var nt=class{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,s)=>{s!=="offset"&&e.set(s,this._finished?n:Zt(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},it=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return vi(e,t)}getParentElement(e){return Yt(e)}query(e,t,n){return Si(e,t,n)}computeStyle(e,t,n){return Zt(e,t)}animate(e,t,n,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:n,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof nt);er(n,s)&&d.forEach(_=>{_.currentSnapshot.forEach((p,g)=>c.set(g,p))});let u=Xs(t).map(_=>new Map(_));u=tr(e,u,c);let b=Ir(e,u);return new nt(e,u,l,b)}};var We="@",Ni="@.disabled",st=class{constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==We&&t==Ni?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Qt=class extends st{constructor(e,t,n,s,r){super(t,n,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==We?t.charAt(1)=="."&&t==Ni?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==We){let s=Fr(e),r=t.slice(1),o="";return r.charAt(0)!=We&&([r,o]=Lr(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Fr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Lr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var rt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,t){let n="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let u=()=>c.delete(s);d=new st(n,s,this.engine,u),c.set(s,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Qt(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Br=(()=>{let e=class e extends Ce{constructor(n,s,r){super(n,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(U(An),U(ge),U(ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function zr(){return new Xe}function qr(i,e,t){return new rt(i,e,t)}var Ii=[{provide:ye,useFactory:zr},{provide:Ce,useClass:Br},{provide:_n,useFactory:qr,deps:[Fn,Ce,bn]}],Oi=[{provide:ge,useFactory:()=>new it},{provide:gt,useValue:"BrowserAnimations"},...Ii],Kr=[{provide:ge,useClass:Xt},{provide:gt,useValue:"NoopAnimations"},...Ii],Ri=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Kr:Oi}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({providers:Oi,imports:[Be]});let i=e;return i})();var jr=["custom-toast-component",""];function Hr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O(2);return mt(s.remove())}),Te(1," x "),F()}}function Vr(i,e){if(i&1&&(R(0,"div",6)(1,"div",7)(2,"div",8)(3,"h4"),Te(4),F()()(),R(5,"div",9),ve(6,Hr,2,0,"a",10),F()()),i&2){let t=O();C("display",t.state().value==="inactive"?"none":""),y(2),Fe(t.options.titleClass),yt("aria-label",t.title),y(2),Sn(t.title),y(2),E("ngIf",t.options.closeButton)}}function Ur(i,e){if(i&1&&P(0,"div",12),i&2){let t=O();Fe(t.options.messageClass),E("innerHTML",t.message,yn)}}function Qr(i,e){if(i&1&&(R(0,"div",13),Te(1),F()),i&2){let t=O();Fe(t.options.messageClass),yt("aria-label",t.message),y(),kn(" ",t.message," ")}}function Wr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O();return mt(s.remove())}),Te(1," x "),F()}}function Gr(i,e){if(i&1&&(R(0,"div"),P(1,"div",14),F()),i&2){let t=O();y(),C("width",t.width+"%")}}var Fi=(()=>{let e=class e extends Vn{constructor(n,s){super(n,s),this.toastrService=n,this.toastPackage=s}ngOnInit(){}action(n){return n.stopPropagation(),this.toastPackage.triggerAction(),!1}};e.\u0275fac=function(s){return new(s||e)(J($e),J(Hn))},e.\u0275cmp=z({type:e,selectors:[["","custom-toast-component",""]],standalone:!0,features:[Q,En],attrs:jr,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0","text-start"],[1,"my-4"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body","text-start"],[1,"toast-progress"]],template:function(s,r){s&1&&(R(0,"div",0),ve(1,Vr,7,7,"div",1)(2,Ur,1,3,"div",2)(3,Qr,2,4,"div",3)(4,Wr,2,0,"a",4)(5,Gr,2,2,"div",5),F()),s&2&&(y(),E("ngIf",r.title),y(),E("ngIf",r.message&&r.options.enableHtml),y(),E("ngIf",r.message&&!r.options.enableHtml),y(),E("ngIf",r.options.closeButton&&r.title==null),y(),E("ngIf",r.options.progressBar))},dependencies:[xe,Le],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:1px solid gainsboro;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding:10px 15px 10px 0}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button[_ngcontent-%COMP%]{color:#dcdcdc!important}"],data:{animation:[Kn("flyInOut",[jn("inactive",W({opacity:0})),Et("inactive => active",St("400ms ease-out",kt([W({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),W({transform:"skewX(20deg)",opacity:1}),W({transform:"skewX(-5deg)",opacity:1}),W({transform:"none",opacity:1})]))),Et("active => removed",St("400ms ease-out",kt([W({opacity:1}),W({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});let i=e;return i})();var Li=(()=>{let e=class e{constructor(n){this._router=n}intercept(n,s){let r=JSON.parse(window.localStorage.getItem("user")),o=new Date;if(r!=null){let a=new Date(r.Token.expiredAt);o<a?n=n.clone({setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${r.Token.access_token}`}}):n=n.clone({setHeaders:{"Content-Type":"application/json"}})}else n=n.clone({setHeaders:{"Content-Type":"application/json"}});return s.handle(n)}};e.\u0275fac=function(s){return new(s||e)(U(ze))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var xi=(()=>{let e=class e{constructor(n,s){this.authService=n,this.toastr=s}intercept(n,s){return s.handle(n).pipe(hn(r=>(this.handlerError(r),ln(()=>r))))}handlerError(n){if(!this.unauthorizedErrorHandling(n)&&!Array.isArray(n?.error?.Message)){let r=this.errorMessageHandling(n);this.toastr.error(r.message!=""?r.message:"An unknown error has occured!",r.header,{enableHtml:!0})}}unauthorizedErrorHandling(n){let s=!1;if(n.status==401){let r=localStorage.getItem("currentUser");r&&(JSON.parse(r)?.Token?.access_token?this.tokenExpiredErrorHandling(n):this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout()),s=!0)}return s}tokenExpiredErrorHandling(n){if(this.authService.isActiveToken()){let s=this.errorMessageHandling(n);this.toastr.error(s.message,s.header)}else this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout())}errorMessageHandling(n){let s="API Error",r="Exception Message";return n.error?(s="API Error - "+n.status,n.error.Message&&(n.error.Message.indexOf("Message")!=-1?r=JSON.parse(n.error.Message).Message:r=n.error.Message)):n.message&&(s="API Error - "+n.name,r=n.message),{header:s,message:r}}};e.\u0275fac=function(s){return new(s||e)(U(je),U($e))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Yr={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]},Bi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e,bootstrap:[si]}),e.\u0275inj=se({providers:[{provide:we,useClass:Li,multi:!0},{provide:Zn,useValue:{subscriptSizing:"dynamic"}},Qn,Wn,{provide:Mn,useFactory:n=>function(){n.loadPermissions()},deps:[je],multi:!0},{provide:we,useClass:xi,multi:!0},In(Rn())],imports:[Be,ii,Ri,Un.forRoot({toastComponent:Fi,positionClass:"toast-bottom-right",closeButton:!0}),Jn.forRoot(Yr),ni.forRoot(),Gn.initializeApp(qe.firebaseConfig),Yn,Xn.forRoot()]});let i=e;return i})();qe.production&&void 0;Ln().bootstrapModule(Bi).catch(i=>console.error(i));
1
+ import{e as Zn}from"./chunk-6NTRXLMW.js";import{a as qe,b as Wn,c as Gn,d as Yn,e as Jn,g as je}from"./chunk-2C32PU5X.js";import{a as Hn,b as $e,c as Vn,d as Un,e as Qn}from"./chunk-NVF24LK5.js";import"./chunk-KCDL7SWP.js";import"./chunk-GXHE2CDH.js";import{f as Xn}from"./chunk-X4WLRMDP.js";import{$ as V,$a as E,$b as Pn,$c as Z,A as un,B as dt,C as dn,Da as gt,Dc as xe,E as hn,G as ht,Ga as yn,Ia as y,Ib as Te,Ja as J,Jb as Sn,K as pn,Kb as kn,Lc as we,M as fn,Mc as In,Na as _n,Nc as Rn,Oc as Fn,Pa as bn,Pc as Ln,Qb as En,Qc as Be,Rb as Cn,Rc as xn,Sb as Tn,T as pt,Tc as Bn,Uc as zn,Vc as qn,Wa as Q,Wc as ze,X as mn,Z as k,Za as ve,Zc as vt,_a as yt,_b as wn,_c as v,aa as se,ab as C,ad as Kn,bb as oe,bd as St,ca as U,db as Fe,dd as $n,e as lt,ed as W,fc as Mn,fd as jn,ga as z,gd as kt,ha as re,hd as Et,ia as gn,lb as R,mb as F,md as Se,nb as P,nd as Ct,o as ln,oa as ft,od as Ke,pa as mt,q as ct,qb as vn,rb as _t,rc as An,s as cn,sa as te,ub as bt,uc as Dn,wb as O,wc as Le,xc as Nn,y as ut,zc as On}from"./chunk-HSFUKC7R.js";import{a as Re,d as an}from"./chunk-GNOSNGXM.js";var Ki=i=>({"background-color":i});function $i(i,e){i&1&&vn(0)}function ji(i,e){if(i&1&&P(0,"sk-cube-grid",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Hi(i,e){if(i&1&&P(0,"sk-chasing-dots",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Vi(i,e){if(i&1&&P(0,"sk-double-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Ui(i,e){if(i&1&&P(0,"sk-rotating-plane",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Qi(i,e){if(i&1&&P(0,"sk-spinner-pulse",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Wi(i,e){if(i&1&&P(0,"sk-three-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Gi(i,e){if(i&1&&P(0,"sk-wandering-cubes",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Yi(i,e){if(i&1&&P(0,"sk-wave",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Xi(i,e){if(i&1&&(R(0,"div",1),ve(1,$i,1,0,"ng-container",2)(2,ji,1,1,"sk-cube-grid",3)(3,Hi,1,1,"sk-chasing-dots",3)(4,Vi,1,1,"sk-double-bounce",3)(5,Ui,1,1,"sk-rotating-plane",3)(6,Qi,1,1,"sk-spinner-pulse",3)(7,Wi,1,1,"sk-three-bounce",3)(8,Gi,1,1,"sk-wandering-cubes",3)(9,Yi,1,1,"sk-wave",3),F()),i&2){let t=O();C("opacity",t.opacity),oe("backdrop",t.backdrop),E("ngStyle",Tn(14,Ki,t.backdrop?t.backdropBackgroundColor:"transparent")),y(),E("ngComponentOutlet",t.entryComponent),y(),E("ngIf",t.spinner===t.spinkit.skCubeGrid),y(),E("ngIf",t.spinner===t.spinkit.skChasingDots),y(),E("ngIf",t.spinner===t.spinkit.skDoubleBounce),y(),E("ngIf",t.spinner===t.spinkit.skRotatingPlane),y(),E("ngIf",t.spinner===t.spinkit.skSpinnerPulse),y(),E("ngIf",t.spinner===t.spinkit.skThreeBounce),y(),E("ngIf",t.spinner===t.spinkit.skWanderingCubes),y(),E("ngIf",t.spinner===t.spinkit.skWave)}}var le=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=gn({type:i,inputs:{backgroundColor:"backgroundColor"}}),i})(),Ji=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-chasing-dots"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),Zi=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-cube-grid"]],features:[Q],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),i})(),es=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-double-bounce"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),ts=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-rotating-plane"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),i})(),ns=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-spinner-pulse"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),i})(),is=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-three-bounce"]],features:[Q],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),i})(),ss=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wandering-cubes"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),i})(),rs=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wave"]],features:[Q],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),i})(),ei={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var Tt=(()=>{class i{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new lt(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}intercept(t,n){let s=this.shouldBypass(t);return s||(this._pendingRequests++,this._pendingRequests===1&&this._pendingRequestsStatus$.next(!0)),n.handle(t).pipe(fn(()=>{s||(this._pendingRequests--,this._pendingRequests===0&&this._pendingRequestsStatus$.next(!1))}))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),os=[{provide:we,useExisting:Tt,multi:!0}],as=(()=>{class i{constructor(t){this.pendingRequestsInterceptor=t,this._visibility$=new lt(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return i.\u0275fac=function(t){return new(t||i)(U(Tt))},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ti=(()=>{class i{constructor(t,n){this.pendingRequestsInterceptor=t,this.spinnerVisibility=n,this.spinkit=ei,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=ei.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,n]=dn(this.pendingRequestsInterceptor.pendingRequestsStatus$,s=>s);this.isVisible$=un(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(pt(()=>t.pipe(ht(()=>ut(this.debounceDelay))))),t.pipe(pt(()=>n.pipe(ht(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(pn(),mn(s=>this.updateExpirationDelay(s)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return ut(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return i.\u0275fac=function(t){return new(t||i)(J(Tt),J(as))},i.\u0275cmp=z({type:i,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(t,n){t&1&&(ve(0,Xi,10,16,"div",0),wn(1,"async")),t&2&&E("ngIf",Pn(1,1,n.isVisible$))},dependencies:[Dn,Le,Nn,Zi,Ji,es,ts,ns,is,ss,rs,On],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),i})(),ni=(()=>{class i{static forRoot(){return{ngModule:i,providers:[os]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=re({type:i}),i.\u0275inj=se({imports:[xe]}),i})();var cs=[{path:"",loadChildren:()=>import("./chunk-3LSSEMTW.js").then(i=>i.LoginModule)},{path:"menu",loadChildren:()=>import("./chunk-K62KUEI5.js").then(i=>i.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}],ii=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({imports:[vt.forRoot(cs,{scrollPositionRestoration:"top"}),vt]});let i=e;return i})();var hs=()=>["/api/Channel/GetLastSyncByID"],si=(()=>{let e=class e{constructor(n,s,r){this._router=n,this.titleService=s,this.activatedRoute=r}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe(dt(n=>n instanceof Bn)).pipe(ct(()=>this.activatedRoute),ct(n=>{for(;n.firstChild;)n=n.firstChild;return n}),dt(n=>n.outlet==="primary"),cn(n=>n.data)).subscribe(n=>{let s=" | Marketplace";n.title=="Dealpos x Marketplace"&&(s=""),this.titleService.setTitle(n.title+s)})}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+".000"};function n(s){return s<10?"0"+s:s}}};e.\u0275fac=function(s){return new(s||e)(J(ze),J(xn),J(zn))},e.\u0275cmp=z({type:e,selectors:[["app-root"]],decls:2,vars:2,consts:[[3,"filteredUrlPatterns"]],template:function(s,r){s&1&&P(0,"ng-http-loader",0)(1,"router-outlet"),s&2&&E("filteredUrlPatterns",Cn(1,hs))},dependencies:[qn,ti]});let i=e;return i})();function ri(i){return new k(3e3,!1)}function ps(){return new k(3100,!1)}function fs(){return new k(3101,!1)}function ms(i){return new k(3001,!1)}function gs(i){return new k(3003,!1)}function ys(i){return new k(3004,!1)}function _s(i,e){return new k(3005,!1)}function bs(){return new k(3006,!1)}function vs(){return new k(3007,!1)}function Ss(i,e){return new k(3008,!1)}function ks(i){return new k(3002,!1)}function Es(i,e,t,n,s){return new k(3010,!1)}function Cs(){return new k(3011,!1)}function Ts(){return new k(3012,!1)}function ws(){return new k(3200,!1)}function Ps(){return new k(3202,!1)}function Ms(){return new k(3013,!1)}function As(i){return new k(3014,!1)}function Ds(i){return new k(3015,!1)}function Ns(i){return new k(3016,!1)}function Os(i,e){return new k(3404,!1)}function Is(i){return new k(3502,!1)}function Rs(i){return new k(3503,!1)}function Fs(){return new k(3300,!1)}function Ls(i){return new k(3504,!1)}function xs(i){return new k(3301,!1)}function Bs(i,e){return new k(3302,!1)}function zs(i){return new k(3303,!1)}function qs(i,e){return new k(3400,!1)}function Ks(i){return new k(3401,!1)}function $s(i){return new k(3402,!1)}function js(i,e){return new k(3505,!1)}function ce(i){switch(i.length){case 0:return new Se;case 1:return i[0];default:return new Ct(i)}}function bi(i,e,t=new Map,n=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((b,_)=>{let p=_,g=b;if(_!=="offset")switch(p=i.normalizePropertyName(p,s),g){case Ke:g=t.get(_);break;case Z:g=n.get(_);break;default:g=i.normalizeStyleValue(_,p,g,s);break}u.set(p,g)}),d||r.push(u),a=u,o=c}),s.length)throw Is(s);return r}function Wt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&wt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&wt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&wt(t,"destroy",i)));break}}function wt(i,e,t){let n=t.totalTime,s=!!t.disabled,r=Gt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,s),o=i._data;return o!=null&&(r._data=o),r}function Gt(i,e,t,n,s="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function $(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function oi(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Hs=typeof document>"u"?null:document.documentElement;function Yt(i){let e=i.parentNode||i.host||null;return e===Hs?null:e}function Vs(i){return i.substring(1,6)=="ebkit"}var pe=null,ai=!1;function Us(i){pe||(pe=Qs()||{},ai=pe.style?"WebkitAppearance"in pe.style:!1);let e=!0;return pe.style&&!Vs(i)&&(e=i in pe.style,!e&&ai&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in pe.style)),e}function Qs(){return typeof document<"u"?document.body:null}function vi(i,e){for(;e;){if(e===i)return!0;e=Yt(e)}return!1}function Si(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Xt=(()=>{let e=class e{validateStyleProperty(n){return Us(n)}containsElement(n,s){return vi(n,s)}getParentElement(n){return Yt(n)}query(n,s,r){return Si(n,s,r)}computeStyle(n,s,r){return r||""}animate(n,s,r,o,a,l=[],c){return new Se(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),tn=class tn{};tn.NOOP=new Xt;var ge=tn,ye=class{};var Ws=1e3,ki="{{",Gs="}}",Ei="ng-enter",Ot="ng-leave",He="ng-trigger",Ge=".ng-trigger",li="ng-animating",It=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rt(parseFloat(e[1]),e[2])}function Rt(i,e){switch(e){case"s":return i*Ws;default:return i}}function Ye(i,e,t){return i.hasOwnProperty("duration")?i:Ys(i,e,t)}function Ys(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(ri(i)),{duration:0,delay:0,easing:""};s=Rt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Rt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(ps()),a=!0),r<0&&(e.push(fs()),a=!0),a&&e.splice(l,0,ri(i))}return{duration:s,delay:r,easing:o}}function Xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,s)=>{let r=Jt(s);t&&!t.has(s)&&t.set(s,i.style[r]),i.style[r]=n})}function me(i,e){e.forEach((t,n)=>{let s=Jt(n);i.style[s]=""})}function Pe(i){return Array.isArray(i)?i.length==1?i[0]:$n(i):i}function Js(i,e,t){let n=e.params||{},s=Ci(i);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||t.push(ms(r))})}var Ft=new RegExp(`${ki}\\s*(.+?)\\s*${Gs}`,"g");function Ci(i){let e=[];if(typeof i=="string"){let t;for(;t=Ft.exec(i);)e.push(t[1]);Ft.lastIndex=0}return e}function Ae(i,e,t){let n=`${i}`,s=n.replace(Ft,(r,o)=>{let a=e[o];return a==null&&(t.push(gs(o)),a=""),a.toString()});return s==n?i:s}var Zs=/-+([a-z0-9])/g;function Jt(i){return i.replace(Zs,(...e)=>e[1].toUpperCase())}function er(i,e){return i===0||e===0}function tr(i,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((r,o)=>{n.has(o)||s.push(o),n.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Zt(i,a)))}}return e}function K(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw ys(e.type)}}function Zt(i,e){return window.getComputedStyle(i)[e]}var nr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Xe=class extends ye{normalizePropertyName(e,t){return Jt(e)}normalizeStyleValue(e,t,n,s){let r="",o=n.toString().trim();if(nr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(_s(e,n))}return o+r}};var Je="*";function ir(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>sr(n,t,e)):t.push(i),t}function sr(i,e,t){if(i[0]==":"){let l=rr(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Ds(i)),e;let s=n[1],r=n[2],o=n[3];e.push(ci(s,o));let a=s==Je&&o==Je;r[0]=="<"&&!a&&e.push(ci(o,s))}function rr(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(Ns(i)),"* => *"}}var Ve=new Set(["true","1"]),Ue=new Set(["false","0"]);function ci(i,e){let t=Ve.has(i)||Ue.has(i),n=Ve.has(e)||Ue.has(e);return(s,r)=>{let o=i==Je||i==s,a=e==Je||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?Ve.has(i):Ue.has(i)),!a&&n&&typeof r=="boolean"&&(a=r?Ve.has(e):Ue.has(e)),o&&a}}var Ti=":self",or=new RegExp(`s*${Ti}s*,?`,"g");function wi(i,e,t,n){return new Lt(i).build(e,t,n)}var ui="",Lt=class{constructor(e){this._driver=e}build(e,t,n){let s=new xt(t);return this._resetContextStyleTimingState(s),K(this,Pe(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=ui,e.collectedStyles=new Map,e.collectedStyles.set(ui,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(bs()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(vs())}),{type:v.Trigger,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,o=s||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ci(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Ss(e.name,[...r.values()]))}return{type:v.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=K(this,Pe(e.animation),t),s=ir(e.expr,t.errors);return{type:v.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>K(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=n;let a=K(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:v.Group,steps:r,options:fe(e.options)}}visitAnimate(e,t){let n=ur(e.timings,t.errors);t.currentAnimateTimings=n;let s,r=e.styles?e.styles:W({});if(r.type==v.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=W(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?n.push(a):t.errors.push(ks(a)):n.push(new Map(Object.entries(a)));let r=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ki)>=0){r=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(t.errors.push(Es(l,d.startTime,d.endTime,r,s)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&Js(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cs()),n;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(M=>{let A=this._makeStyleAst(M,t),L=A.offset!=null?A.offset:cr(A.styles),N=0;return L!=null&&(r++,N=A.offset=L),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),A});l&&t.errors.push(Ts()),a&&t.errors.push(ws());let u=e.steps.length,b=0;r>0&&r<u?t.errors.push(Ps()):r==0&&(b=s/(u-1));let _=u-1,p=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return d.forEach((M,A)=>{let L=b>0?A==_?1:b*A:o[A],N=L*T;t.currentTime=p+g.delay+N,g.duration=N,this._validateStyleAst(M,t),M.offset=L,n.styles.push(M)}),n}visitReference(e,t){return{type:v.Reference,animation:K(this,Pe(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=ar(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,$(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Pe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ms());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ye(e.timings,t.errors,!0);return{type:v.Stagger,animation:K(this,Pe(e.animation),t),timings:n,options:null}}};function ar(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Ti);return e&&(i=i.replace(or,"")),i=i.replace(/@\*/g,Ge).replace(/@\w+/g,t=>Ge+"-"+t.slice(1)).replace(/:animating/g,It),[i,e]}function lr(i){return i?Re({},i):null}var xt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function cr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ur(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=Ye(i,e).duration;return Pt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Pt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=Ye(t,e);return Pt(s.duration,s.delay,s.easing)}function fe(i){return i?(i=Re({},i),i.params&&(i.params=lr(i.params))):i={},i}function Pt(i,e,t){return{duration:i,delay:e,easing:t}}function en(i,e,t,n,s,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var De=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},dr=1,hr=":enter",pr=new RegExp(hr,"g"),fr=":leave",mr=new RegExp(fr,"g");function Pi(i,e,t,n,s,r=new Map,o=new Map,a,l,c=[]){return new Bt().buildKeyframes(i,e,t,n,s,r,o,a,l,c)}var Bt=class{buildKeyframes(e,t,n,s,r,o,a,l,c,d=[]){c=c||new De;let u=new zt(e,t,c,s,r,d,[]);u.options=l;let b=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(b),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,n,u);let _=u.timelines.filter(p=>p.containsAnimation());if(_.length&&a.size){let p;for(let g=_.length-1;g>=0;g--){let T=_[g];if(T.element===t){p=T;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return _.length?_.map(p=>p.buildKeyframes()):[en(t,[],[],[],0,b,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:ne(Ae(r,s?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==v.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ze);let o=ne(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),K(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?Ae(n,t.params,t.errors):n;return Ye(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let r=e.style;r.type==v.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?ne(s.delay):0;r&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ze);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let b=u.currentTimeline.currentTime;o=Math.max(o,b)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-u+(s.startTime-n.currentTimeline.startTime)}},Ze={},zt=class i{constructor(e,t,n,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ze,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new et(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=ne(n.duration)),n.delay!=null&&(s.delay=ne(n.delay));let r=n.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ae(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,r=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ze,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new qt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(mr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&a.length==0&&o.push(As(t)),a}},et=class i{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=dr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Z),this._currentKeyframe.set(t,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=gr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Ae(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Ke?e.add(u):d===Z&&t.add(u)}),n||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(n){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return en(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},qt=class extends et{constructor(e,t,n,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",di(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let b=new Map(e[u]),_=b.get("offset"),p=t+_*n;b.set("offset",di(p/o)),r.push(b)}n=o,t=0,s="",e=r}return en(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function di(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function gr(i,e){let t=new Map,n;return i.forEach(s=>{if(s==="*"){n??=e.keys();for(let r of n)t.set(r,Z)}else for(let[r,o]of s)t.set(r,o)}),t}function hi(i,e,t,n,s,r,o,a,l,c,d,u,b){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:b}}var Mt={},tt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return yr(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,r,o,a,l,c,d){let u=[],b=this.ast.options&&this.ast.options.params||Mt,_=a&&a.params||Mt,p=this.buildStyles(n,_,u),g=l&&l.params||Mt,T=this.buildStyles(s,g,u),M=new Set,A=new Map,L=new Map,N=s==="void",_e={params:Mi(g,b),delay:this.ast.options?.delay},Y=d?[]:Pi(e,t,this.ast.animation,r,o,p,T,_e,c,u),x=0;return Y.forEach(B=>{x=Math.max(B.duration+B.delay,x)}),u.length?hi(t,this._triggerName,n,s,N,p,T,[],[],A,L,x,u):(Y.forEach(B=>{let ue=B.element,be=$(A,ue,new Set);B.preStyleProps.forEach(de=>be.add(de));let nn=$(L,ue,new Set);B.postStyleProps.forEach(de=>nn.add(de)),ue!==t&&M.add(ue)}),hi(t,this._triggerName,n,s,N,p,T,Y,[...M.values()],A,L,x))}};function yr(i,e,t,n,s){return i.some(r=>r(e,t,n,s))}function Mi(i,e){let t=Re({},e);return Object.entries(i).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var Kt=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=Mi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Ae(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function _r(i,e,t){return new $t(i,e,t)}var $t=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Kt(s.style,r,n))}),pi(this.states,"true","1"),pi(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new tt(e,s,this.states))}),this.fallbackTransition=br(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(o=>o.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function br(i,e,t){let n=[(o,a)=>!0],s={type:v.Sequence,steps:[],options:null},r={type:v.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new tt(i,r,e)}function pi(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var vr=new De,jt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],s=[],r=wi(this._driver,t,n,s);if(n.length)throw Rs(n);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,n){let s=e.element,r=bi(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Pi(this._driver,t,r,Ei,Ot,new Map,new Map,n,vr,s),o.forEach(d=>{let u=$(a,d.element,new Map);d.postStyleProps.forEach(b=>u.set(b,null))})):(s.push(Fs()),o=[]),s.length)throw Ls(s);a.forEach((d,u)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(u,_,Z))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=ce(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw xs(e);return t}listen(e,t,n,s){let r=Gt(t,"","","");return Wt(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},fi="ng-animate-queued",Sr=".ng-animate-queued",At="ng-animate-disabled",kr=".ng-animate-disabled",Er="ng-star-inserted",Cr=".ng-star-inserted",Tr=[],Ai={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},G="__ng_removed",Ne=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=Mr(s),n){let r=e,{value:o}=r,a=an(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(s=>{n[s]==null&&(n[s]=t[s])})}}},Me="void",Dt=new Ne(Me),Ht=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,H(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw Bs(n,t);if(n==null||n.length==0)throw zs(t);if(!Ar(n))throw qs(n,t);let r=$(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};r.push(o);let a=$(this._engine.statesByElement,e,new Map);return a.has(t)||(H(e,He),H(e,He+"-"+t),a.set(t,Dt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ks(e);return t}trigger(e,t,n,s=!0){let r=this._getTrigger(t),o=new Oe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(H(e,He),H(e,He+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ne(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dt),!(c.value===Me)&&l.value===c.value){if(!Or(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),M=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,T),ee(e,M)})}return}let b=$(this._engine.playersByElement,e,[]);b.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),p=!1;if(!_){if(!s)return;_=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(H(e,fi),o.onStart(()=>{ke(e,fi)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let M=T.indexOf(o);M>=0&&T.splice(M,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ge,!0);n.forEach(s=>{if(s[G])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Me,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ce(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||Dt,d=new Ne(Me),u=new Oe(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[G];(!r||r===Ai)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){H(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let r=n.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Gt(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Wt(n.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let r=n.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Vt=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Ht(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,s=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return s.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let s of n.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,s){if(Qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Qe(t))return;let r=t[G];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),H(e,At)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ke(e,At))}removeNode(e,t,n){if(Qe(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,r){this.collectedLeaveElements.push(t),t[G]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,s,r){return Qe(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ge,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,It,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ce(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[G];if(t&&t.setForRemoval){if(e[G]=Ai,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(At)&&this.markElementAsDisabled(e,!1),this.driver.query(e,kr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let s=this.collectedEnterElements[n];H(s,Er)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let s=0;s<n.length;s++)n[s]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let s=this.collectedLeaveElements[n];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ce(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw $s(e)}_flushAnimations(e,t){let n=new De,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,Sr,!0);for(let m=0;m<f.length;m++)d.add(f[m])});let u=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=yi(b,this.collectedEnterElements),p=new Map,g=0;_.forEach((h,f)=>{let m=Ei+g++;p.set(f,m),h.forEach(S=>H(S,m))});let T=[],M=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],m=f[G];m&&m.setForRemoval&&(T.push(f),M.add(f),m.hasAnimation?this.driver.query(f,Cr,!0).forEach(S=>M.add(S)):A.add(f))}let L=new Map,N=yi(b,Array.from(M));N.forEach((h,f)=>{let m=Ot+g++;L.set(f,m),h.forEach(S=>H(S,m))}),e.push(()=>{_.forEach((h,f)=>{let m=p.get(f);h.forEach(S=>ke(S,m))}),N.forEach((h,f)=>{let m=L.get(f);h.forEach(S=>ke(S,m))}),T.forEach(h=>{this.processLeaveNode(h)})});let _e=[],Y=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(m=>{let S=m.player,D=m.element;if(_e.push(S),this.collectedEnterElements.length){let I=D[G];if(I&&I.setForMove){if(I.previousTriggersValues&&I.previousTriggersValues.has(m.triggerName)){let he=I.previousTriggersValues.get(m.triggerName),j=this.statesByElement.get(m.element);if(j&&j.has(m.triggerName)){let Ie=j.get(m.triggerName);Ie.value=he,j.set(m.triggerName,Ie)}}S.destroy();return}}let X=!u||!this.driver.containsElement(u,D),q=L.get(D),ie=p.get(D),w=this._buildInstruction(m,n,ie,q,X);if(w.errors&&w.errors.length){Y.push(w);return}if(X){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}if(m.isFallbackTransition){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}let on=[];w.timelines.forEach(I=>{I.stretchStartingKeyframe=!0,this.disabledNodes.has(I.element)||on.push(I)}),w.timelines=on,n.append(D,w.timelines);let zi={instruction:w,player:S,element:D};o.push(zi),w.queriedElements.forEach(I=>$(a,I,[]).push(S)),w.preStyleProps.forEach((I,he)=>{if(I.size){let j=l.get(he);j||l.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))}}),w.postStyleProps.forEach((I,he)=>{let j=c.get(he);j||c.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))})});if(Y.length){let h=[];Y.forEach(f=>{h.push(js(f.triggerName,f.errors))}),_e.forEach(f=>f.destroy()),this.reportError(h)}let x=new Map,B=new Map;o.forEach(h=>{let f=h.element;n.has(f)&&(B.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,x))}),s.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,!1,h.namespaceId,h.triggerName,null).forEach(S=>{$(x,f,[]).push(S),S.destroy()})});let ue=T.filter(h=>_i(h,l,c)),be=new Map;gi(be,this.driver,A,c,Z).forEach(h=>{_i(h,l,c)&&ue.push(h)});let de=new Map;_.forEach((h,f)=>{gi(de,this.driver,new Set(h),l,Ke)}),ue.forEach(h=>{let f=be.get(h),m=de.get(h);be.set(h,new Map([...f?.entries()??[],...m?.entries()??[]]))});let ot=[],sn=[],rn={};o.forEach(h=>{let{element:f,player:m,instruction:S}=h;if(n.has(f)){if(d.has(f)){m.onDestroy(()=>ee(f,S.toStyles)),m.disabled=!0,m.overrideTotalTime(S.totalTime),s.push(m);return}let D=rn;if(B.size>1){let q=f,ie=[];for(;q=q.parentNode;){let w=B.get(q);if(w){D=w;break}ie.push(q)}ie.forEach(w=>B.set(w,D))}let X=this._buildAnimation(m.namespaceId,S,x,r,de,be);if(m.setRealPlayer(X),D===rn)ot.push(m);else{let q=this.playersByElement.get(D);q&&q.length&&(m.parentPlayer=ce(q)),s.push(m)}}else me(f,S.fromStyles),m.onDestroy(()=>ee(f,S.toStyles)),sn.push(m),d.has(f)&&s.push(m)}),sn.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let m=ce(f);h.setRealPlayer(m)}}),s.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h<T.length;h++){let f=T[h],m=f[G];if(ke(f,Ot),m&&m.hasAnimation)continue;let S=[];if(a.size){let X=a.get(f);X&&X.length&&S.push(...X);let q=this.driver.query(f,It,!0);for(let ie=0;ie<q.length;ie++){let w=a.get(q[ie]);w&&w.length&&S.push(...w)}}let D=S.filter(X=>!X.destroyed);D.length?Dr(this,f,D):this.processLeaveNode(f)}return T.length=0,ot.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1)}),h.play()}),ot}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Me;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(n||s)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,d=c!==r,u=$(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(_=>{let p=_.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),_.destroy(),u.push(_)})}me(r,t.fromStyles)}_buildAnimation(e,t,n,s,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,b=t.timelines.map(p=>{let g=p.element;d.add(g);let T=g[G];if(T&&T.removedBeforeQueried)return new Se(p.duration,p.delay);let M=g!==l,A=Nr((n.get(g)||Tr).map(x=>x.getRealPlayer())).filter(x=>{let B=x;return B.element?B.element===g:!1}),L=r.get(g),N=o.get(g),_e=bi(this._normalizer,p.keyframes,L,N),Y=this._buildPlayer(p,_e,A);if(p.subTimeline&&s&&u.add(g),M){let x=new Oe(e,a,g);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(p=>{$(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Pr(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>H(p,li));let _=ce(b);return _.onDestroy(()=>{d.forEach(p=>ke(p,li)),ee(l,t.toStyles)}),u.forEach(p=>{$(s,p,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Se(e.duration,e.delay)}},Oe=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Se,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(s=>Wt(e,n,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){$(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Pr(i,e,t){let n=i.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&i.delete(e)}return n}function Mr(i){return i??null}function Qe(i){return i&&i.nodeType===1}function Ar(i){return i=="start"||i=="done"}function mi(i,e){let t=i.style.display;return i.style.display=e??"none",t}function gi(i,e,t,n,s){let r=[];t.forEach(l=>r.push(mi(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let b=e.computeStyle(c,u,s);d.set(u,b),(!b||b.length==0)&&(c[G]=wr,o.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>mi(l,r[a++])),o}function yi(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,s=new Set(e),r=new Map;function o(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=n:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function H(i,e){i.classList?.add(e)}function ke(i,e){i.classList?.remove(e)}function Dr(i,e,t){ce(t).onDone(()=>i.processLeaveNode(e))}function Nr(i){let e=[];return Di(i,e),e}function Di(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Ct?Di(n.players,e):e.push(n)}}function Or(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let s=0;s<t.length;s++){let r=t[s];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1}return!0}function _i(i,e,t){let n=t.get(i);if(!n)return!1;let s=e.get(i);return s?n.forEach(r=>s.add(r)):e.set(i,n),t.delete(i),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Vt(e.body,t,n),this._timelineEngine=new jt(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,n,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=wi(this._driver,r,l,c);if(l.length)throw Os(s,l);c.length&&void 0,a=_r(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[r,o]=oi(n),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if(n.charAt(0)=="@"){let[o,a]=oi(n);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ir(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Nt(e[0]),e.length>1&&(n=Nt(e[e.length-1]))):e instanceof Map&&(t=Nt(e)),t||n?new Ut(i,t,n):null}var Ee=class Ee{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let s=Ee.initialStylesByElement.get(e);s||Ee.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ee.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Ee.initialStylesByElement=new WeakMap;var Ut=Ee;function Nt(i){let e=null;return i.forEach((t,n)=>{Rr(n)&&(e=e||new Map,e.set(n,t))}),e}function Rr(i){return i==="display"||i==="position"}var nt=class{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,s)=>{s!=="offset"&&e.set(s,this._finished?n:Zt(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},it=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return vi(e,t)}getParentElement(e){return Yt(e)}query(e,t,n){return Si(e,t,n)}computeStyle(e,t,n){return Zt(e,t)}animate(e,t,n,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:n,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof nt);er(n,s)&&d.forEach(_=>{_.currentSnapshot.forEach((p,g)=>c.set(g,p))});let u=Xs(t).map(_=>new Map(_));u=tr(e,u,c);let b=Ir(e,u);return new nt(e,u,l,b)}};var We="@",Ni="@.disabled",st=class{constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==We&&t==Ni?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Qt=class extends st{constructor(e,t,n,s,r){super(t,n,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==We?t.charAt(1)=="."&&t==Ni?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==We){let s=Fr(e),r=t.slice(1),o="";return r.charAt(0)!=We&&([r,o]=Lr(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Fr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Lr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var rt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,t){let n="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let u=()=>c.delete(s);d=new st(n,s,this.engine,u),c.set(s,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Qt(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Br=(()=>{let e=class e extends Ce{constructor(n,s,r){super(n,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(U(An),U(ge),U(ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function zr(){return new Xe}function qr(i,e,t){return new rt(i,e,t)}var Ii=[{provide:ye,useFactory:zr},{provide:Ce,useClass:Br},{provide:_n,useFactory:qr,deps:[Fn,Ce,bn]}],Oi=[{provide:ge,useFactory:()=>new it},{provide:gt,useValue:"BrowserAnimations"},...Ii],Kr=[{provide:ge,useClass:Xt},{provide:gt,useValue:"NoopAnimations"},...Ii],Ri=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Kr:Oi}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({providers:Oi,imports:[Be]});let i=e;return i})();var jr=["custom-toast-component",""];function Hr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O(2);return mt(s.remove())}),Te(1," x "),F()}}function Vr(i,e){if(i&1&&(R(0,"div",6)(1,"div",7)(2,"div",8)(3,"h4"),Te(4),F()()(),R(5,"div",9),ve(6,Hr,2,0,"a",10),F()()),i&2){let t=O();C("display",t.state().value==="inactive"?"none":""),y(2),Fe(t.options.titleClass),yt("aria-label",t.title),y(2),Sn(t.title),y(2),E("ngIf",t.options.closeButton)}}function Ur(i,e){if(i&1&&P(0,"div",12),i&2){let t=O();Fe(t.options.messageClass),E("innerHTML",t.message,yn)}}function Qr(i,e){if(i&1&&(R(0,"div",13),Te(1),F()),i&2){let t=O();Fe(t.options.messageClass),yt("aria-label",t.message),y(),kn(" ",t.message," ")}}function Wr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O();return mt(s.remove())}),Te(1," x "),F()}}function Gr(i,e){if(i&1&&(R(0,"div"),P(1,"div",14),F()),i&2){let t=O();y(),C("width",t.width+"%")}}var Fi=(()=>{let e=class e extends Vn{constructor(n,s){super(n,s),this.toastrService=n,this.toastPackage=s}ngOnInit(){}action(n){return n.stopPropagation(),this.toastPackage.triggerAction(),!1}};e.\u0275fac=function(s){return new(s||e)(J($e),J(Hn))},e.\u0275cmp=z({type:e,selectors:[["","custom-toast-component",""]],standalone:!0,features:[Q,En],attrs:jr,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0","text-start"],[1,"my-4"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body","text-start"],[1,"toast-progress"]],template:function(s,r){s&1&&(R(0,"div",0),ve(1,Vr,7,7,"div",1)(2,Ur,1,3,"div",2)(3,Qr,2,4,"div",3)(4,Wr,2,0,"a",4)(5,Gr,2,2,"div",5),F()),s&2&&(y(),E("ngIf",r.title),y(),E("ngIf",r.message&&r.options.enableHtml),y(),E("ngIf",r.message&&!r.options.enableHtml),y(),E("ngIf",r.options.closeButton&&r.title==null),y(),E("ngIf",r.options.progressBar))},dependencies:[xe,Le],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:1px solid gainsboro;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding:10px 15px 10px 0}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button[_ngcontent-%COMP%]{color:#dcdcdc!important}"],data:{animation:[Kn("flyInOut",[jn("inactive",W({opacity:0})),Et("inactive => active",St("400ms ease-out",kt([W({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),W({transform:"skewX(20deg)",opacity:1}),W({transform:"skewX(-5deg)",opacity:1}),W({transform:"none",opacity:1})]))),Et("active => removed",St("400ms ease-out",kt([W({opacity:1}),W({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});let i=e;return i})();var Li=(()=>{let e=class e{constructor(n){this._router=n}intercept(n,s){let r=JSON.parse(window.localStorage.getItem("user")),o=new Date;if(r!=null){let a=new Date(r.Token.expiredAt);o<a?n=n.clone({setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${r.Token.access_token}`}}):n=n.clone({setHeaders:{"Content-Type":"application/json"}})}else n=n.clone({setHeaders:{"Content-Type":"application/json"}});return s.handle(n)}};e.\u0275fac=function(s){return new(s||e)(U(ze))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var xi=(()=>{let e=class e{constructor(n,s){this.authService=n,this.toastr=s}intercept(n,s){return s.handle(n).pipe(hn(r=>(this.handlerError(r),ln(()=>r))))}handlerError(n){if(!this.unauthorizedErrorHandling(n)&&!Array.isArray(n?.error?.Message)){let r=this.errorMessageHandling(n);this.toastr.error(r.message!=""?r.message:"An unknown error has occured!",r.header,{enableHtml:!0})}}unauthorizedErrorHandling(n){let s=!1;if(n.status==401){let r=localStorage.getItem("currentUser");r&&(JSON.parse(r)?.Token?.access_token?this.tokenExpiredErrorHandling(n):this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout()),s=!0)}return s}tokenExpiredErrorHandling(n){if(this.authService.isActiveToken()){let s=this.errorMessageHandling(n);this.toastr.error(s.message,s.header)}else this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout())}errorMessageHandling(n){let s="API Error",r="Exception Message";return n.error?(s="API Error - "+n.status,n.error.Message&&(n.error.Message.indexOf("Message")!=-1?r=JSON.parse(n.error.Message).Message:r=n.error.Message)):n.message&&(s="API Error - "+n.name,r=n.message),{header:s,message:r}}};e.\u0275fac=function(s){return new(s||e)(U(je),U($e))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Yr={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]},Bi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e,bootstrap:[si]}),e.\u0275inj=se({providers:[{provide:we,useClass:Li,multi:!0},{provide:Zn,useValue:{subscriptSizing:"dynamic"}},Qn,Wn,{provide:Mn,useFactory:n=>function(){n.loadPermissions()},deps:[je],multi:!0},{provide:we,useClass:xi,multi:!0},In(Rn())],imports:[Be,ii,Ri,Un.forRoot({toastComponent:Fi,positionClass:"toast-bottom-right",closeButton:!0}),Jn.forRoot(Yr),ni.forRoot(),Gn.initializeApp(qe.firebaseConfig),Yn,Xn.forRoot()]});let i=e;return i})();qe.production&&void 0;Ln().bootstrapModule(Bi).catch(i=>console.error(i));
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"marketplacepos","version":"3.19.2"}
1
+ {"name":"marketplacepos","version":"3.19.3"}