@whoz-oss/coday-client 0.0.0-workstream-forge.329 → 0.0.0-workstream-forge.330

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 (52) hide show
  1. package/browser/{chunk-kV_5OY32.js → chunk-B1PSn9Vo.js} +1 -1
  2. package/browser/{chunk-BYaUEPYY.js → chunk-B2L2kvLq.js} +1 -1
  3. package/browser/{chunk-BxoAK56U.js → chunk-BJSkFaiH.js} +1 -1
  4. package/browser/{chunk-Bpq2cxDs.js → chunk-BXy0XrJ7.js} +1 -1
  5. package/browser/{chunk-_or-ZV6c.js → chunk-Bl1Jy9cH.js} +1 -1
  6. package/browser/{chunk-9kt9Zpi9.js → chunk-BlRwzjFw.js} +1 -1
  7. package/browser/{chunk-DW1F1agi.js → chunk-Bp_blBHP.js} +1 -1
  8. package/browser/{chunk-BUczjq1y.js → chunk-Br-wGpbZ.js} +1 -1
  9. package/browser/{chunk-CSCGguJE.js → chunk-BrcOBDRd.js} +1 -1
  10. package/browser/{chunk-B-eADh5Q.js → chunk-BzLz9Mg9.js} +1 -1
  11. package/browser/chunk-C8HHjL6L.js +1 -0
  12. package/browser/{chunk-BhTrfE6J.js → chunk-CGWRFT9M.js} +1 -1
  13. package/browser/{chunk-DVvBqlA6.js → chunk-CHPBPjc7.js} +1 -1
  14. package/browser/{chunk-DZ_uca7F.js → chunk-CUGm4nCg.js} +1 -1
  15. package/browser/{chunk-DeZZAjYs.js → chunk-CYWAQOjO.js} +1 -1
  16. package/browser/{chunk-CJ1G9ZZ4.js → chunk-CZcM0Sjp.js} +1 -1
  17. package/browser/{chunk-55LWJGaA.js → chunk-Cpqn5pZ4.js} +1 -1
  18. package/browser/{chunk-CgSo-dYR.js → chunk-Cql1YU1b.js} +1 -1
  19. package/browser/{chunk-QfQLJc6L.js → chunk-CsR6DO0s.js} +1 -1
  20. package/browser/{chunk-4XyXLv7M.js → chunk-CunO3NfH.js} +1 -1
  21. package/browser/{chunk-QNrc6Dr5.js → chunk-CxV0A3YW.js} +1 -1
  22. package/browser/{chunk-Cqvh5zMj.js → chunk-Cy7RQh_n.js} +1 -1
  23. package/browser/{chunk-cTQHZeWw.js → chunk-DF9MTUxe.js} +1 -1
  24. package/browser/{chunk-DBAtlRoH.js → chunk-DI1Ofx5C.js} +1 -1
  25. package/browser/{chunk-B3AHVGbg.js → chunk-DIb4BOjN.js} +1 -1
  26. package/browser/{chunk-DcwIvh2i.js → chunk-DLw7Yxnr.js} +1 -1
  27. package/browser/{chunk-DCdnLzkw.js → chunk-DRBlC7Dh.js} +1 -1
  28. package/browser/{chunk-D1CD3CQL.js → chunk-DTSUiMvP.js} +1 -1
  29. package/browser/{chunk-BDLuQKQn.js → chunk-DXEGVZ5g.js} +1 -1
  30. package/browser/{chunk-D2xcbQ3c.js → chunk-DXif4PCM.js} +1 -1
  31. package/browser/{chunk-C4rthJME.js → chunk-DbPMcsRl.js} +1 -1
  32. package/browser/{chunk-CkbvRYAk.js → chunk-DbVcBI5h.js} +1 -1
  33. package/browser/{chunk-C1ehWUNM.js → chunk-DfkL0d-F.js} +1 -1
  34. package/browser/{chunk-Dsekephn.js → chunk-DuXyP0Ap.js} +1 -1
  35. package/browser/{chunk-CU9M40tK.js → chunk-EjwZJyua.js} +1 -1
  36. package/browser/chunk-P1kjpuYu.js +855 -0
  37. package/browser/{chunk-BuhxCyTp.js → chunk-TLD8l1O4.js} +1 -1
  38. package/browser/{chunk-ZTrp2NAu.js → chunk-Vj6PaaqT.js} +1 -1
  39. package/browser/{chunk-FgaKW7JT.js → chunk-W17CbVUg.js} +1 -1
  40. package/browser/{chunk-fcRhoM7k.js → chunk-Yv3pJ6Y8.js} +1 -1
  41. package/browser/{chunk-H55X8917.js → chunk-aH3HwIDf.js} +1 -1
  42. package/browser/{chunk-DgytN0P6.js → chunk-j1O2PWZu.js} +1 -1
  43. package/browser/{chunk-C2_MZOh9.js → chunk-lLZuYwL0.js} +1 -1
  44. package/browser/{chunk-B_yQQni6.js → chunk-mg2KQsdS.js} +1 -1
  45. package/browser/{chunk-ChZCgoPM.js → chunk-tcVMGkY_.js} +1 -1
  46. package/browser/{chunk-DNzk8sl-.js → chunk-wJQDNmya.js} +1 -1
  47. package/browser/{chunk-IQzQsjXY.js → chunk-wNQndqtu.js} +1 -1
  48. package/browser/index.html +1 -1
  49. package/browser/{main-KN7JT2CK.js → main-K3GOQJ4U.js} +1 -1
  50. package/package.json +1 -1
  51. package/browser/chunk-Dyc2eHCz.js +0 -855
  52. package/browser/chunk-KoagtDeJ.js +0 -1
@@ -1250,4 +1250,4 @@ var b$1=class i{http=g(ry);base="/api/setup";getStatus(){return this.http.get(`$
1250
1250
  opacity: 0.1;
1251
1251
  }
1252
1252
  `],encapsulation:2,changeDetection:1})}return i})(),Ce$2=new T$4("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new S$1}),Mn$2=(()=>{class i{_live=g(Ei$1);_injector=g(he$5);_breakpointObserver=g(di$2);_parentSnackBar=g(i,{optional:true,skipSelf:true});_defaultConfig=g(Ce$2);_animationsDisabled=at$2();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=ve;snackBarContainerComponent=ye$2;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t;}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){let a=w$1(w$1({},this._defaultConfig),n);return a.data={message:t,action:e},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=he$5.create({parent:n||this._injector,providers:[{provide:S$1,useValue:e}]}),s=new me$2(this.snackBarContainerComponent,e.viewContainerRef,a),l=t.attach(s);return l.instance.snackBarConfig=e,l.instance}_attach(t,e){let n=w$1(w$1(w$1({},new S$1),this._defaultConfig),e),a=this._createOverlay(n),s=this._attachSnackBarContainer(a,n),l=new j$1(s,a);if(t instanceof fr$1){let c=new Ft$1(t,null,{$implicit:n.data,snackBarRef:l});l.instance=s.attachTemplatePortal(c);}else {let c=this._createInjector(n,l),O=new me$2(t,void 0,c),Xt=s.attachComponentPortal(O);l.instance=Xt.instance;}return this._breakpointObserver.observe(ka.HandsetPortrait).pipe(Md(a.detachments())).subscribe(c=>{a.overlayElement.classList.toggle(this.handsetCssClass,c.matches);}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness);}),this._animateSnackBar(l,n),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear();}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter();}_createOverlay(t){let e=new Ht;e.direction=t.direction;let n=wn$2(this._injector),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,l=!s&&t.horizontalPosition!=="center";return s?n.left("0"):l?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,e.disableAnimations=this._animationsDisabled,Cn$2(this._injector,e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return he$5.create({parent:n||this._injector,providers:[{provide:j$1,useValue:e},{provide:Kt,useValue:t.data}]})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function U$2(n){n||(n=g(we$2));let e=new R$2(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Md(e))}function T$1(n,e){let t=g(he$5),o=new Ar$1(1),c=Ff(()=>{let r;try{r=n();}catch(i){_o$1(()=>o.error(i));return}_o$1(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(we$2).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(we$2)??g(we$2):null,c=h(e?.equal),r;e?.requireSync?r=zi$2({kind:0},{equal:c}):r=zi$2({kind:1,value:e?.initialValue},{equal:c});let i,v=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&r().kind===0)throw new m$2(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),yT(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$2(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var p="primary",Qe$1=Symbol("RouteTitle"),ir=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$1(t){return new ir(t)}function er(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er(o,t.slice(0,o.length),c)||!er(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$1(t){return new Promise((n,e)=>{t.pipe(Yy()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return false;return true}function V(t,n){let e=t?or(t):void 0,r=n?or(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn$1(t[i],n[i]))return false;return true}function or(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei(t){return t.length>0?t[t.length-1]:null}function fe$1(t){return Ry(t)?t:Fs$1(t)?Ke$4(Promise.resolve(t)):_r$1(t)}function Nn$1(t){return Ry(t)?gt$1(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n$1},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return yT(()=>ar(n.lastSuccessfulNavigation()?.finalUrl??new T,r,w$1(w$1({},ze$1),e)))}function ar(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V(t,n)}function Dn$1(t,n,e){if(!le$1(t.segments,n.segments)||!dt$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return false;return true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn$1(t[e],n[e]))}function _n$1(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!le$1(i,e)||n.hasChildren()||!dt$1(i,e,r))}else if(t.segments.length===e.length){if(!le$1(t.segments,e)||!dt$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!_n$1(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$1(t.segments,i)||!dt$1(t.segments,i,r)||!t.children[p]?false:Un$1(t.children[p],n,o,r)}}function dt$1(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){return Ui.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$1(this)}},ee$1=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$1(this.parameters),this._parameterMap}toString(){return Pn$1(this)}};function Di$1(t,n){return le$1(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function le$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new cr(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${je$1(n.root,true)}`,r=Li(n.queryParams),i=typeof n.fragment=="string"?`#${Oi(n.fragment)}`:"";return `${e}${r}${i}`}},Ui=new Y;function ft$1(t){return t.segments.map(n=>Pn$1(n)).join("/")}function je$1(t,n){if(!t.hasChildren())return ft$1(t);if(n){let e=t.children[p]?je$1(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${je$1(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p?[je$1(t.children[p],false)]:[`${i}:${je$1(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ft$1(t)}/${e[0]}`:`${ft$1(t)}/(${e.join("//")})`}}function On$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$1(t){return On$1(t).replace(/%3B/gi,";")}function Oi(t){return encodeURI(t)}function sr(t){return On$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$1(t){return decodeURIComponent(t)}function Rn$1(t){return pt$1(t.replace(/\+/g,"%20"))}function Pn$1(t){return `${sr(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr(n)}=${sr(e)}`).join("")}function Li(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$1(e)}=${lt$1(i)}`).join("&"):`${lt$1(e)}=${lt$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ji=/^[^\/()?;#]+/;function tr(t){let n=t.match(ji);return n?n[0]:""}var xi=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(xi);return n?n[0]:""}var $i=/^[^=?&#]+/;function zi(t){let n=t.match($i);return n?n[0]:""}var Hi=/^[^&#]+/;function Fi$1(t){let n=t.match(Hi);return n?n[0]:""}var cr=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new m$2(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=tr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$2(4009,false);return this.capture(n),new ee$1(pt$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr(this.remaining);i&&(r=i,this.capture(r));}n[pt$1(e)]=pt$1(r);}parseQueryParam(n){let e=zi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi$1(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$2(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new m$2(4011,false)}};function Ln$1(t){return t.segments.length>0?new m([],{[p]:t}):t}function jn$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=jn$1(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return qi(e)}function qi(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function te$1(t){return t instanceof T}function xn$1(t,n,e=null,r=null,i=new Y){let o=kn$1(t);return $n$1(o,n,e,r,i)}function kn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln$1(r);return n??i}function $n$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr(o,o,o,e,r,i);let a=Bi(n);if(a.toRoot())return rr(o,o,new m([],{}),e,r,i);let c=Vi(a,o,t),s=c.processChildren?ke$1(c.segmentGroup,c.index,a.commands):Hn$1(c.segmentGroup,c.index,a.commands);return rr(o,c.segmentGroup,s,e,r,i)}function vt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$1(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$1(u,v,o)):Sn$1(u,d,o);let c;t===n?c=e:c=zn$1(t,n,e);let s=Ln$1(jn$1(c));return new T(s,a,i)}function zn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn$1(o,n,e);}),new m(t.segments,r)}var mt$1=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$1(r[0]))throw new m$2(4003,false);let i=r.find(He);if(i&&i!==Ei(r))throw new m$2(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$1(e,n,r)}var Re$1=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi(t,n,e){if(t.isAbsolute)return new Re$1(n,true,0);if(!e)return new Re$1(n,false,NaN);if(e.parent===null)return new Re$1(e,true,0);let r=vt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi(e,i,t.numberOfDoubleDots)}function Gi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$2(4005,false);i=r.segments.length;}return new Re$1(r,false,i-o)}function Wi(t){return He(t[0])?t[0].outlets:{[p]:t}}function Hn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ke$1(t,n,e);let r=Qi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),ke$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?ur(t,n,e):r.match?ke$1(t,0,i):ur(t,n,e)}function ke$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Wi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ke$1(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function Qi(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$1(s,u,a))return o;r+=2;}else {if(!wn$1(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let s=Ki(o.outlets);return new m(r,s)}if(i===0&&vt$1(e[0])){let s=t.segments[n];r.push(new ee$1(s.path,Cn$1(e[0]))),i++;continue}let a=He(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$1(c)?(r.push(new ee$1(a,Cn$1(c))),i+=2):(r.push(new ee$1(a,{})),i++);}return new m(r,{})}function Ki(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur(new m([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$1(t,n,e){return t==e.path&&V(n,e.parameters)}var Se="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),O=class{id;url;constructor(n,e){this.id=n,this.url=e;}},re$1=class re extends O{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends O{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),$$1=class $ extends O{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $$1&&(t.code===A.Redirect||t.code===A.SupersededByNewNavigation)}var G=class extends O{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de$1=class de extends O{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$1=class Fe extends O{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$1=class yt extends O{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt=class extends O{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$1=class St extends O{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$1=class Ct extends O{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$1=class wt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$1=class bt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$1=class At{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$1=class Et{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$1=class Tt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$1=class Ie{},qe$1=class qe{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi(t){return !(t instanceof Ie$1)&&!(t instanceof Ae$1)&&!(t instanceof qe$1)}var Nt$1=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$1(this.rootInjector);}},pe$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(S$2(pe$5))};static \u0275prov=A$2({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$1=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr(n,this._root).map(e=>e.value)}};function lr(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr(t,e);if(r)return r}return null}function hr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr(t,e);if(r.length)return r.unshift(n),r}return []}var U$1=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$1=class Be extends Mt$1{snapshot;constructor(n,e){super(n),this.snapshot=e,wr(this,n);}toString(){return this.snapshot.toString()}};function qn$1(t,n){let e=Zi(t,n),r=new Sr$1([new ee$1("",{})]),i=new Sr$1({}),o=new Sr$1({}),a=new Sr$1({}),c=new Sr$1(""),s=new W$1(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new Be$1(new U$1(s,[]),e)}function Zi(t,n){let e={},r={},i={},a=new Ee([],e,i,"",r,p,t,null,{},n);return new Ve$1("",new U$1(a,[]))}var W$1=class W{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ne$3(u=>u[Qe$1]))??_r$1(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ne$3(n=>he$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ne$3(n=>he$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji="always";function Cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w$1(w$1({},n.params),t.params),data:w$1(w$1({},n.data),t.data),resolve:w$1(w$1(w$1(w$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:w$1({},t.params),data:w$1({},t.data),resolve:w$1(w$1({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$1]=i.title),r}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$1]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=he$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$1=class Ve extends Mt$1{url;constructor(n,e){super(e),this.url=n,wr(this,e);}toString(){return Bn$1(this._root)}};function wr(t,n){n.value._routerState=t,n.children.forEach(e=>wr(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr(t,n){let e=V(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn$1=new T$4(""),br=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new yt$3;deactivateEvents=new yt$3;attachEvents=new yt$3;detachEvents=new yt$3;routerOutletData=ZB();parentContexts=g(pe$1);location=g(yr$1);changeDetector=g(dm);inputBinder=g(Ke$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new m$2(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$2(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$2(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new m$2(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=ll({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Tu]})}return t})(),fr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W$1?this.route:n===pe$1?this.childContexts:n===Gn$1?this.outletData:this.parent.get(n,e)}},Ke$1=new T$4(""),Wn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=_y([this.options.queryParams?r.queryParams:_r$1({}),r.params,r.data]).pipe(ma(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?_r$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=rV(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){ZI();};static \u0275prov=A$2({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&hg(0,"router-outlet");},dependencies:[br],encapsulation:2,changeDetection:1})}return t})();function Ar(t){let n=t.children&&t.children.map(Ar),e=n?x$1(w$1({},t),{children:n}):w$1({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Ir),e}function Xi(t,n,e){let r=new Set,i=Ge(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$1(i,n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo(t,n,e,r);return new U$1(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge(t,s,void 0,r)),c}}let i=to(n.value);r.add(i);let o=n.children.map(a=>Ge(t,a,void 0,r));return new U$1(i,o)}}function eo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function to(t){return new W$1(new Sr$1(t.url),new Sr$1(t.params),new Sr$1(t.queryParams),new Sr$1(t.fragment),new Sr$1(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn$1="ngNavigationCancelingError";function Dt$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn$1(false,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn$1]=true,e.cancellationCode=n,e}function ro(t){return Yn$1(t)&&te$1(t.url)}function Yn$1(t){return !!t&&t[Qn$1]}var pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$1=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function io(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!lv(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$1(n);return t.children.forEach(a=>{oo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e$1(c,e.getContext(a),i)),i}function oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe(t,n,c?c.children:null,r,i):xe(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&$e$1(n,c,i),i.canActivateChecks.push(new _t$1(r)),o.component?xe(t,null,c?c.children:null,r,i):xe(t,null,e,r,i);return i}function ao(t,n,e){if(typeof e=="function")return Jn$2(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$1(t.url,n.url)||!V(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !dr(t,n)||!V(t.queryParams,n.queryParams);default:return !dr(t,n)}}function $e$1(t,n,e){let r=ye$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e$1(a,n.children.getContext(o),e):$e$1(a,null,e):$e$1(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Ye(t){return typeof t=="function"}function so(t){return typeof t=="boolean"}function co(t){return t&&Ye(t.canLoad)}function uo(t){return t&&Ye(t.canActivate)}function lo(t){return t&&Ye(t.canActivateChild)}function ho(t){return t&&Ye(t.canDeactivate)}function fo(t){return t&&Ye(t.canMatch)}function Zn$1(t){return t instanceof sn$2||t?.name==="EmptyError"}var ht$1=Symbol("INITIAL_VALUE");function Ne$1(){return ma(t=>_y(t.map(n=>n.pipe(cn$2(1),Dd(ht$1)))).pipe(ne$3(n=>{for(let e of n)if(e!==true){if(e===ht$1)return ht$1;if(e===false||po(e))return e}return true}),Ot$1(n=>n!==ht$1),cn$2(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?_r$1(void 0).pipe(cn$2(1)):new R$2(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn$1(t){return Md(Jn$1(t))}function go(t){return je$2(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?_r$1(x$1(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(je$2(a=>a&&so(a)?mo(e,i,t):_r$1(a)),ne$3(a=>x$1(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Ke$4(t).pipe(je$2(r=>wo(r.component,r.route,e,n)),Yy(r=>r!==true,true))}function mo(t,n,e){return Ke$4(n).pipe(pi$3(r=>kt$1(Ro(r.route.parent,e),yo(r.route,e),Co(t,r.path),So(t,r.route))),Yy(r=>r!==true,true))}function yo(t,n){return t!==null&&n&&n(new Et$1(t)),_r$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),_r$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return _r$1(true);let r=e.map(i=>Fy(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):Jn$2(o,()=>a(n,t));return fe$1(c).pipe(Yy())}));return _r$1(r).pipe(Ne$1())}function Co(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io(o)).filter(o=>o!==null).map(o=>Fy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):Jn$2(s,()=>u(e,t));return fe$1(d).pipe(Yy())});return _r$1(a).pipe(Ne$1())}));return _r$1(i).pipe(Ne$1())}function wo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return _r$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$1(a,c),u=ho(s)?s.canDeactivate(t,n,e,r):Jn$2(c,()=>s(t,n,e,r));return fe$1(u).pipe(Yy())});return _r$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return _r$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):Jn$2(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return _r$1(a).pipe(Ne$1(),ei$1(r))}function ei$1(t){return cy(Ed(n=>{if(typeof n!="boolean")throw Dt$1(t,n)}),ne$3(n=>n===true))}function Io(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return _r$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):Jn$2(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return _r$1(c).pipe(Ne$1(),ei$1(r))}var K$1=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao(t){throw new m$2(4e3,false)}function Eo(t){throw Kn$1(false,A.GuardRejected)}var gr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return B$3(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Ao(`${n.redirectTo}`);i=i.children[p];}})}applyRedirectCommands(n,e,r,i,o){return B$3(this,null,function*(){let a=yield To(e,i,o);if(a instanceof T)throw new We(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new m$2(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$1(fe$1(Jn$2(e,()=>r(n))))}function No(t,n){return t.providers&&!t._injector&&(t._injector=rg(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H(t){return t.outlet||p}function Mo(t,n){let e=t.filter(r=>H(r)===n);return e.push(...t.filter(r=>H(r)!==n)),e}var vr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do(t,n,e,r,i,o,a){let c=ri$1(t,n,e);if(!c.matched)return _r$1(c);let s=ti$1(o(c));return r=No(n,r),Io(r,n,e,i,s,a).pipe(ne$3(u=>u===true?c:w$1({},vr)))}function ri$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?w$1({},vr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return w$1({},vr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?w$1(w$1({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn(t,n,e,r,i){return e.length>0&&Oo(t,e,r,i)?{segmentGroup:new m(n,Uo(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Po(t,e,r)?{segmentGroup:new m(t.segments,_o(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function _o(t,n,e,r){let i={};for(let o of e)if(Ot(t,n,o)&&!r[H(o)]){let a=new m([],{});i[H(o)]=a;}return w$1(w$1({},r),i)}function Uo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&H(r)!==p){let i=new m([],{});e[H(r)]=i;}return e}function Oo(t,n,e,r){return e.some(i=>!Ot(t,n,i)||!(H(i)!==p)?false:!(r!==void 0&&H(i)===r))}function Po(t,n,e){return e.some(r=>Ot(t,n,r))}function Ot(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo(t,n,e){return n.length===0&&!t.children[e]}var mr=class{};function jo(t,n,e,r,i,o,a,c){return B$3(this,null,function*(){return new yr(t,n,e,r,i,a,o,c).recognize()})}var xo=31,yr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$2(4002,`'${n.segmentGroup}'`)}recognize(){return B$3(this,null,function*(){let n=bn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$1(r,e),o=new Ve$1("",i),a=xn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return B$3(this,null,function*(){let e=new Ee([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$1?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return B$3(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$1?[a]:[]})}processChildren(n,e,r,i){return B$3(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$1(a);return ko(c),c})}processSegment(n,e,r,i,o,a,c){return B$3(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$1||Zn$1(u))continue;throw u}if(Lo(r,i,o))return new mr;throw new K$1(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return B$3(this,null,function*(){if(H(r)!==a&&(a===p||!Ot(i,o,r)))throw new K$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$1(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return B$3(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$1(e,i,o);if(!s)throw new K$1(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$1(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee(r,i,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,zo(e),H(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return B$3(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$1(Do(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$1(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$1(z,ae)}if(u.length===0&&De.length===0)return new U$1(z,[]);let zt=H(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p:o,true,z);return new U$1(z,Xe instanceof U$1?[Xe]:[])})}getChildConfig(n,e,r){return B$3(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$1(bo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo()}return {routes:[],injector:n}})}};function ko(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$1(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$1(r.children);n.push(new U$1(r.value,i));}return n.filter(r=>!e.has(r))}function zo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Fo(t,n,e,r,i,o,a){return je$2(c=>B$3(null,null,function*(){let{state:s,tree:u}=yield jo(t,n,e,r,c.extractedUrl,i,o,a);return x$1(w$1({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return je$2(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return _r$1(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$1(c))o.add(s);let a=0;return Ke$4(o).pipe(pi$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,_r$1(void 0))),Ed(()=>a++),Qy(1),je$2(c=>a===o.size?_r$1(n):rn$2))})}function ii$1(t){let n=t.children.map(e=>ii$1(e)).flat();return [t,...n]}function Bo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$1]=r.title),Fy(()=>(t.data=Cr(t,t.parent,e).resolve,Vo(i,t,n).pipe(ne$3(o=>(t._resolvedData=o,t.data=w$1(w$1({},t.data),o),null)))))}function Vo(t,n,e){let r=or(t);if(r.length===0)return _r$1({});let i={};return Ke$4(r).pipe(je$2(o=>Go(t[o],n,e).pipe(Yy(),Ed(a=>{if(a instanceof Te)throw Dt$1(new Y,a);i[o]=a;}))),Qy(1),ne$3(()=>i),ga(o=>Zn$1(o)?rn$2:Ay(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):Jn$2(r,()=>i(n,e));return fe$1(o)}function In$1(t){return ma(n=>{let e=t(n);return e?Ke$4(e).pipe(ne$3(()=>n)):_r$1(n)})}var Er=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Qe$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(oi$1)})}return t})(),oi$1=(()=>{class t extends Er{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(S$2(tU))};static \u0275prov=A$2({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new T$4("",{factory:()=>({})}),ge$1=new T$4(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(hT);loadComponent(e,r){return B$3(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$3(this,null,function*(){try{let o=yield Nn$1(Jn$2(e,()=>r.loadComponent())),a=yield si$1(WB(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$3(this,null,function*(){try{let o=yield ai$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function ai$1(t,n,e,r){return B$3(this,null,function*(){let i=yield Nn$1(Jn$2(e,()=>t.loadChildren())),o=yield si$1(WB(i)),a;o instanceof ng||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$1,[],{optional:true,self:true}).flat()),{routes:s.map(Ar),injector:c,factory:d}})}function si$1(t){return B$3(this,null,function*(){return t})}var Lt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Wo)})}return t})(),Wo=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),Tr=new T$4(""),Nr=new T$4("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$5);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&Jn$2(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{_E({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new T$4(""),Ko=()=>{},Mr=new T$4(""),jt=(()=>{class t{currentNavigation=zi$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=zi$2(null);events=new le$4;transitionAbortWithErrorSubject=new le$4;configLoader=g(Pt$1);environmentInjector=g(pe$5);destroyRef=g(we$2);urlSerializer=g(ne);rootContexts=g(pe$1);location=g(Em);inputBindingEnabled=g(Ke$1,{optional:true})!==null;titleStrategy=g(Er);options=g(ie,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji;urlHandlingStrategy=g(Lt);createViewTransition=g(Tr,{optional:true});navigationErrorHandler=g(Mr,{optional:true});activatedRouteInjectorFeature=g(ui$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>_r$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$1(i)),r=i=>this.events.next(new bt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;_o$1(()=>{this.transitions?.next(x$1(w$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Sr$1(null),this.transitions.pipe(Ot$1(r=>r!==null),ma(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return _r$1(r).pipe(ma(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),rn$2;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?x$1(w$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),rn$2;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return _r$1(s).pipe(ma(g=>(this.events.next(new re$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?rn$2:Promise.resolve(g))),Fo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Ed(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$1);}),ma(g=>Ke$4(r.routesRecognizeHandler.deferredHandle??_r$1(void 0)).pipe(ne$3(()=>g))),Ed(()=>{let g=new Fe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$1(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$1(w$1({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:x$1(w$1({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),_r$1(r)}else return this.events.next(new G(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),rn$2}),ne$3(s=>{let u=new yt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$1(w$1({},s),{guards:no(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go(s=>this.events.next(s)),ma(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$1(this.urlSerializer,s.guardsResult);let u=new Rt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return rn$2;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A.GuardRejected),rn$2;if(s.guards.canActivateChecks.length===0)return _r$1(s);let d=new St$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return rn$2;let v=false;return _r$1(s).pipe(qo(this.paramsInheritanceStrategy),Ed({next:()=>{v=true;let g=new Ct$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",A.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?_r$1(s):Ke$4(Promise.all(d).then(()=>s))}),ma(s=>{let{newlyCreatedRoutes:u,state:d}=Xi(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=x$1(w$1({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),_r$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),ma(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?Ke$4(d).pipe(ne$3(()=>r)):_r$1(r)}),cn$2(1),ma(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ke$4(u.then(()=>s)):_r$1(s)}),Ed(s=>{new pr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko,u)),this.lastSuccessfulNavigation.set(_o$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Md(Jn$1(a.signal).pipe(Ot$1(()=>!o&&i),Ed(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A.Aborted);}))),Ed({complete:()=>{o=true;}}),Md(this.transitionAbortWithErrorSubject.pipe(Ed(s=>{throw s}))),di$3(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ga(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),rn$2;if(Yn$1(s))this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=Jn$2(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te){let{message:v,cancellationCode:g}=Dt$1(this.urlSerializer,d);this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return rn$2}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $$1(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=_o$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li$1=new T$4("");var hi$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Zo)})}return t})(),Ut=class{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Zo=(()=>{class t extends Ut{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),xt=(()=>{class t{urlSerializer=g(ne);options=g(ie,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(Em);urlHandlingStrategy=g(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn$1(null,g(pe$5));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Jo)})}return t})(),Jo=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$1?this.updateStateMemento():e instanceof G?this.commitTransition(r):e instanceof Fe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $$1&&!Fn$1(e)?this.restoreHistory(r):e instanceof de$1?this.restoreHistory(r,true):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=w$1(w$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=w$1(w$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?w$1({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):w$1({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function kt(t,n){t.events.pipe(Ot$1(e=>e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(e=>e instanceof P||e instanceof G?0:(e instanceof $$1?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:false)?2:1),Ot$1(e=>e!==2),cn$2(1)).subscribe(()=>{n();});}var F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g(lg);stateManager=g(xt);options=g(ie,{optional:true})||{};pendingTasks=g(Zt$2);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(jt);urlSerializer=g(ne);location=g(Em);urlHandlingStrategy=g(Lt);injector=g(pe$5);_events=new le$4;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g(hi$1);injectorCleanup=g(li$1,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(ge$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g(Ke$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ee$5;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=_o$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $$1&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=w$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=x$1(w$1({},o),{browserUrl:e})),i){let u=w$1({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(st$1)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return _o$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=w$1(w$1({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn$1(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n$1(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se,null,r)}navigate(e,r={skipLocationChange:false}){return Xo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(et$1(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=w$1({},Rr):r===false?i=w$1({},ze$1):i=w$1(w$1({},ze$1),r),te$1(e))return ar(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Xo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$2(4008,false)}var ea=(()=>{class t{router=g(F);stateManager=g(xt);fragment=zi$2("");queryParams=zi$2({});path=zi$2("");serializer=g(ne);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),$t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g(new em("href"),{optional:true});reactiveHref=DT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return _o$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return _o$1(this._target)}_target=zi$2(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return _o$1(this._queryParams)}_queryParams=zi$2(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return _o$1(this._fragment)}_fragment=zi$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return _o$1(this._queryParamsHandling)}_queryParamsHandling=zi$2(void 0);set state(e){this._state.set(e);}get state(){return _o$1(this._state)}_state=zi$2(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return _o$1(this._info)}_info=zi$2(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return _o$1(this._relativeTo)}_relativeTo=zi$2(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return _o$1(this._preserveFragment)}_preserveFragment=zi$2(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return _o$1(this._skipLocationChange)}_skipLocationChange=zi$2(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return _o$1(this._replaceUrl)}_replaceUrl=zi$2(false);browserUrl=ZB(void 0);isAnchorElement;onChanges=new le$4;applicationErrorHandler=g(st$1);options=g(ie,{optional:true});reactiveRouterState=g(ea);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=zi$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=yT(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$1(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return _o$1(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(We$2(F),We$2(W$1),Su("tabindex"),We$2(el),We$2(On$3),We$2(Ir$1))};static \u0275dir=ll({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Eg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&fg("href",i.reactiveHref(),cE)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",KT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",KT],replaceUrl:[2,"replaceUrl","replaceUrl",KT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Tu]})}return t})(),ta=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new yt$3;link=g($t,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update();});}ngAfterContentInit(){_r$1(this.links.changes,_r$1(null)).pipe(Mr$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ke$4(e).pipe(Mr$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rr):w$1({},ze$1);return i=>{let o=i.urlTree;return o?_o$1(Sr(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(We$2(F),We$2(On$3),We$2(el),We$2(dm))};static \u0275dir=ll({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Cg(o,$t,5),r&2){let a;yC(a=vC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Tu]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var di$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Ot$1(e=>e instanceof P),pi$3(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=rg(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return Ke$4(i).pipe(Mr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return _r$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ke$4(this.loader.loadChildren(e,r)):i=_r$1(null);let o=i.pipe(je$2(a=>a===null?_r$1(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ke$4([o,a]).pipe(Mr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(S$2(F),S$2(pe$5),S$2(Ze),S$2(Pt$1))};static \u0275prov=A$2({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new T$4(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se;restoredId=0;store={};isHydrating=g(MD,{optional:true})??false;urlSerializer=g(ne);zone=g(G$2);viewportScroller=g(M2);transitions=g(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(Dr$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof re$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=_o$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$3(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){ZI();};static \u0275prov=A$2({token:t,factory:t.\u0275fac})}return t})();function ia(t,...n){return wt$3([{provide:ge$1,multi:true,useValue:t},{provide:W$1,useFactory:pi$1},{provide:hl,multi:true,useFactory:gi$1},n.map(e=>e.\u0275providers)])}function pi$1(){return g(F).routerState.root}function Je(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$1(){let t=g(he$5);return n=>{let e=t.get(Dr$1);if(n!==e.components[0])return;let r=t.get(F),i=t.get(vi$1);t.get(_r)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new T$4("",{factory:()=>new le$4}),_r=new T$4("",{factory:()=>1});function mi$1(){let t=[{provide:Zp,useValue:true},{provide:_r,useValue:0},Fw(()=>{let n=g(he$5);return n.get(eb,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(vi$1);kt(i,()=>{r(true);}),n.get(jt).afterPreactivation=()=>(r(true),o.closed?_r$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[Fw(()=>{g(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new T$4("");function Si$1(t){return Je(0,[{provide:Ri$1,useExisting:di$1},{provide:Ze,useExisting:t}])}function Ci$1(t={}){return Je(8,[{provide:Ke$1,useFactory:()=>new Wn$1(t)}])}function wi$1(t){Ge$3("NgRouterViewTransitions");let n=[{provide:Tr,useValue:ci$1},{provide:Nr,useValue:w$1({skipNextTransition:false},t)}];return Je(9,n)}var bi$1=[Em,{provide:ne,useClass:Y},F,pe$1,{provide:W$1,useFactory:pi$1},Pt$1],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$1,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr,useValue:r.errorHandler}:[],{provide:ie,useValue:r||{}},r?.useHash?sa():ca(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua(r):[],r?.bindToComponentInputs?Ci$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi$1().\u0275providers:[],la()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$1,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Ps$1({type:t});static \u0275inj=Ur({})}return t})();function aa(){return {provide:fi$1,useFactory:()=>{let t=g(M2),n=g(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:Ir$1,useClass:ob}}function ca(){return {provide:Ir$1,useClass:Dm}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new T$4("");function la(){return [{provide:Dr,useFactory:gi$1},{provide:hl,multi:true,useExisting:Dr}]}
1253
- var _=(function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i})(_||{}),K="*";function _s(i,e=null){return {type:_.Sequence,steps:i,options:e}}function tt(i){return {type:_.Style,styles:i,offset:null}}var $=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}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);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish();}),o.onDestroy(()=>{++s==r&&this._onDestroy();}),o.onStart(()=>{++n==r&&this._onStart();});}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let n=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(n);});}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},he="!";function Ss(i){return new m$2(3e3,false)}function wn(){return new m$2(3100,false)}function An(){return new m$2(3101,false)}function Pn(i){return new m$2(3001,false)}function Nn(i){return new m$2(3003,false)}function Cn(i){return new m$2(3004,false)}function vs(i,e){return new m$2(3005,false)}function Ts(){return new m$2(3006,false)}function bs(){return new m$2(3007,false)}function ws(i,e){return new m$2(3008,false)}function As(i){return new m$2(3002,false)}function Ps(i,e,t,s,n){return new m$2(3010,false)}function Ns(){return new m$2(3011,false)}function Cs(){return new m$2(3012,false)}function Ms(){return new m$2(3200,false)}function Ds(){return new m$2(3202,false)}function Fs(){return new m$2(3013,false)}function ks(i){return new m$2(3014,false)}function Rs(i){return new m$2(3015,false)}function Os(i){return new m$2(3016,false)}function Is(i,e){return new m$2(3404,false)}function Mn(i){return new m$2(3502,false)}function Ls(i){return new m$2(3503,false)}function zs(){return new m$2(3300,false)}function Ks(i){return new m$2(3504,false)}function qs(i){return new m$2(3301,false)}function Bs(i,e){return new m$2(3302,false)}function Qs(i){return new m$2(3303,false)}function Vs(i,e){return new m$2(3400,false)}function Us(i){return new m$2(3401,false)}function $s(i){return new m$2(3402,false)}function js(i,e){return new m$2(3505,false)}function j(i){switch(i.length){case 0:return new $;case 1:return i[0];default:return new re(i)}}function rt(i,e,t=new Map,s=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==o,c=h&&a||new Map;l.forEach((S,y)=>{let f=y,g=S;if(y!=="offset")switch(f=i.normalizePropertyName(f,n),g){case he:g=t.get(y);break;case K:g=s.get(y);break;default:g=i.normalizeStyleValue(y,f,g,n);break}c.set(f,g);}),h||r.push(c),a=c,o=u;}),n.length)throw Mn();return r}function Ae(i,e,t,s){switch(e){case "start":i.onStart(()=>s(t&&st(t,"start",i)));break;case "done":i.onDone(()=>s(t&&st(t,"done",i)));break;case "destroy":i.onDestroy(()=>s(t&&st(t,"destroy",i)));break}}function st(i,e,t){let s=t.totalTime,n=!!t.disabled,r=Pe(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),o=i._data;return o!=null&&(r._data=o),r}function Pe(i,e,t,s,n="",r=0,o){return {element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function k(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function ot(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return [t,s]}var Dn=typeof document>"u"?null:document.documentElement;function Ne(i){let e=i.parentNode||i.host||null;return e===Dn?null:e}function Fn(i){return i.substring(1,6)=="ebkit"}var Z=null,Es=false;function Gs(i){Z||(Z=kn()||{},Es=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Fn(i)&&(e=i in Z.style,!e&&Es&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Z.style)),e}function kn(){return typeof document<"u"?document.body:null}function at(i,e){for(;e;){if(e===i)return true;e=Ne(e);}return false}function lt(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var Rn=1e3,ut="{{",On="}}",ct="ng-enter",Ce="ng-leave",de="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function U(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:nt(parseFloat(e[1]),e[2])}function nt(i,e){return e==="s"?i*Rn:i}function me(i,e,t){return i.hasOwnProperty("duration")?i:Ln(i,e,t)}var In=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Ln(i,e,t){let s,n=0,r="";if(typeof i=="string"){let o=i.match(In);if(o===null)return e.push(Ss()),{duration:0,delay:0,easing:""};s=nt(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=nt(parseFloat(a),o[4]));let l=o[5];l&&(r=l);}else s=i;if(!t){let o=false,a=e.length;s<0&&(e.push(wn()),o=true),n<0&&(e.push(An()),o=true),o&&e.splice(a,0,Ss());}return {duration:s,delay:n,easing:r}}function xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function q(i,e,t){e.forEach((s,n)=>{let r=De(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s;});}function W(i,e){e.forEach((t,s)=>{let n=De(s);i.style[n]="";});}function oe(i){return Array.isArray(i)?i.length==1?i[0]:_s(i):i}function Ws(i,e,t){let s=e.params||{},n=dt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pn());});}var it=new RegExp(`${ut}\\s*(.+?)\\s*${On}`,"g");function dt(i){let e=[];if(typeof i=="string"){let t;for(;t=it.exec(i);)e.push(t[1]);it.lastIndex=0;}return e}function ae(i,e,t){let s=`${i}`,n=s.replace(it,(r,o)=>{let a=e[o];return a==null&&(t.push(Nn()),a=""),a.toString()});return n==s?i:n}var zn=/-+([a-z0-9])/g;function De(i){return i.replace(zn,(...e)=>e[1].toUpperCase())}function Hs(i,e){return i===0||e===0}function Ys(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,o)=>{s.has(o)||n.push(o),s.set(o,r);}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,Fe(i,a)));}}return e}function R(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw Cn(e.type)}}function Fe(i,e){return window.getComputedStyle(i)[e]}var Mt=(()=>{class i{validateStyleProperty(t){return Gs(t)}containsElement(t,s){return at(t,s)}getParentElement(t){return Ne(t)}query(t,s,n){return lt(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,o,a=[],l){return new $(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=A$2({token:i,factory:i.\u0275fac})}return i})(),ee=class{static NOOP=new Mt},te=class{};var Kn=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"]),Le=class extends te{normalizePropertyName(e,t){return De(e)}normalizeStyleValue(e,t,s,n){let r="",o=s.toString().trim();if(Kn.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else {let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(vs());}return o+r}};var ze="*";function qn(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>Bn(s,t,e)):t.push(i),t}function Bn(i,e,t){if(i[0]==":"){let l=Qn(i,t);if(typeof l=="function"){e.push(l);return}i=l;}let s=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(Rs()),e;let n=s[1],r=s[2],o=s[3];e.push(Xs(n,o));let a=n==ze&&o==ze;r[0]=="<"&&!a&&e.push(Xs(o,n));}function Qn(i,e){switch(i){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,s)=>parseFloat(s)>parseFloat(t);case ":decrement":return (t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Os()),"* => *"}}var ke=new Set(["true","1"]),Re=new Set(["false","0"]);function Xs(i,e){let t=ke.has(i)||Re.has(i),s=ke.has(e)||Re.has(e);return (n,r)=>{let o=i==ze||i==n,a=e==ze||e==r;return !o&&t&&typeof n=="boolean"&&(o=n?ke.has(i):Re.has(i)),!a&&s&&typeof r=="boolean"&&(a=r?ke.has(e):Re.has(e)),o&&a}}var un=":self",Vn=new RegExp(`s*${un}s*,?`,"g");function cn(i,e,t,s){return new _t(i).build(e,t,s)}var Zs="",_t=class{_driver;constructor(e){this._driver=e;}build(e,t,s){let n=new St(t);return this._resetContextStyleTimingState(n),R(this,oe(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Zs,e.collectedStyles=new Map,e.collectedStyles.set(Zs,new Map),e.currentTime=0;}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ts()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=u;}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,n+=l.depCount,o.push(l);}else t.errors.push(bs());}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=n||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{dt(l).forEach(u=>{o.hasOwnProperty(u)||r.add(u);});});}),r.size&&t.errors.push(ws(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,oe(e.animation),t),n=qn(e.expr,t.errors);return {type:_.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:J(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let s=Gn(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:tt({});if(r.type==_.Keyframes)n=this.visitKeyframes(r,t);else {let o=e.styles,a=false;if(!o){a=true;let u={};s.easing&&(u.easing=s.easing),o=tt(u);}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===K?s.push(a):t.errors.push(As()):s.push(new Map(Object.entries(a)));let r=false,o=null;return s.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(ut)>=0){r=true;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=true;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(Ps(l,h.startTime,h.endTime)),c=false),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Ws(a,t.options,t.errors);});});}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ns()),s;let n=1,r=0,o=[],a=false,l=false,u=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:jn(A.styles),N=0;return M!=null&&(r++,N=A.offset=M),l=l||N<0||N>1,a=a||N<u,u=N,o.push(N),A});l&&t.errors.push(Cs()),a&&t.errors.push(Ms());let c=e.steps.length,S=0;r>0&&r<c?t.errors.push(Ds()):r==0&&(S=n/(c-1));let y=c-1,f=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:o[A],N=M*T;t.currentTime=f+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=M,s.styles.push(w);}),s}visitReference(e,t){return {type:_.Reference,animation:R(this,oe(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Un(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,k(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,oe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Fs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:me(e.timings,t.errors,true);return {type:_.Stagger,animation:R(this,oe(e.animation),t),timings:s,options:null}}};function Un(i){let e=!!i.split(/\s*,\s*/).find(t=>t==un);return e&&(i=i.replace(Vn,"")),i=i.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[i,e]}function $n(i){return i?w$1({},i):null}var St=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function jn(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 s=t;e=parseFloat(s.get("offset")),s.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gn(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=me(i,e).duration;return ft(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=me(t,e);return ft(n.duration,n.delay,n.easing)}function J(i){return i?(i=w$1({},i),i.params&&(i.params=$n(i.params))):i={},i}function ft(i,e,t){return {duration:i,delay:e,easing:t}}function Dt(i,e,t,s,n,r,o=null,a=false){return {type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var ge=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},xn=1,Wn=":enter",Hn=new RegExp(Wn,"g"),Yn=":leave",Xn=new RegExp(Yn,"g");function hn(i,e,t,s,n,r=new Map,o=new Map,a,l,u=[]){return new Et().buildKeyframes(i,e,t,s,n,r,o,a,l,u)}var Et=class{buildKeyframes(e,t,s,n,r,o,a,l,u,h=[]){u=u||new ge;let c=new vt(e,t,u,n,r,h,[]);c.options=l;let S=l.delay?U(l.delay):0;c.currentTimeline.delayNextStep(S),c.currentTimeline.setStyles([o],null,c.errors,l),R(this,s,c);let y=c.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,c.errors,l);}return y.length?y.map(f=>f.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,n,n.options);r!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:U(ae(r,n?.params??{},t.errors));s.delayNextStep(o);}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?U(s.duration):null,a=s.delay!=null?U(s.delay):null;return o!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,u.duration+u.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),R(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==_.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ke);let o=U(r.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>R(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let s=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?U(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline);}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ae(s,t.params,t.errors):s;return me(n,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e;}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?U(n.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ke);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),R(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let S=c.currentTimeline.currentTime;o=Math.max(o,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let s=t.parentContext,n=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=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime);}},Ke={},vt=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ke;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new qe(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=U(s.duration)),s.delay!=null&&(n.delay=U(s.delay));let r=s.params;if(r){let o=n.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 s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n];});}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||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=Ke,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,s,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Hn,"."+this._enterClassName),e=e.replace(Xn,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),a.push(...u);}return !r&&a.length==0&&o.push(ks()),a}},qe=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,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 false;case 1:return this.hasCurrentStyleProperties();default:return true}}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+=xn,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,s]of this._globalTimelineStyles)this._backFill.set(t,s||K),this._currentKeyframe.set(t,K);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Zn(e,this._globalTimelineStyles);for(let[a,l]of o){let u=ae(l,r,s);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??K),this._updateStyle(a,u);}}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,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((h,c)=>{h===he?e.add(c):h===K&&t.add(c);}),s||u.set("offset",l/this.duration),n.push(u);});let r=[...e.values()],o=[...t.values()];if(s){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return Dt(this.element,n,r,o,this.duration,this.startTime,this.easing,false)}},Tt=class extends qe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,o,a=false){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=n,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:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",Js(a)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let S=new Map(e[c]),y=S.get("offset"),f=t+y*s;S.set("offset",Js(f/o)),r.push(S);}s=o,t=0,n="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,true)}};function Js(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zn(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,K);}else for(let[r,o]of n)t.set(r,o);}),t}function en(i,e,t,s,n,r,o,a,l,u,h,c,S){return {type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:S}}var mt={},Be=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s;}match(e,t,s,n){return Jn(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,o,a,l,u,h){let c=[],S=this.ast.options&&this.ast.options.params||mt,y=a&&a.params||mt,f=this.buildStyles(s,y,c),g=l&&l.params||mt,T=this.buildStyles(n,g,c),w=new Set,A=new Map,M=new Map,N=n==="void",se={params:dn(g,S),delay:this.ast.options?.delay},Q=h?[]:hn(e,t,this.ast.animation,r,o,f,T,se,u,c),D=0;return Q.forEach(F=>{D=Math.max(F.duration+F.delay,D);}),c.length?en(t,this._triggerName,s,n,N,f,T,[],[],A,M,D,c):(Q.forEach(F=>{let H=F.element,ne=k(A,H,new Set);F.preStyleProps.forEach(Y=>ne.add(Y));let kt=k(M,H,new Set);F.postStyleProps.forEach(Y=>kt.add(Y)),H!==t&&w.add(H);}),en(t,this._triggerName,s,n,N,f,T,Q,[...w.values()],A,M,D))}};function Jn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function dn(i,e){let t=w$1({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n);}),t}var bt=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s;}buildStyles(e,t){let s=new Map,n=dn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=ae(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o);});}),s}};function ei(i,e,t){return new wt(i,e,t)}var wt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new bt(n.style,r,s));}),tn(this.states,"true","1"),tn(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Be(e,n,this.states));}),this.fallbackTransition=ti(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(o=>o.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(i,e,t){let s=[(o,a)=>true],n={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Be(i,r,e)}function tn(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 si=new ge,At=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s;}register(e,t){let s=[],n=[],r=cn(this._driver,t,s,n);if(s.length)throw Ls();this._animations.set(e,r);}_buildPlayer(e,t,s){let n=e.element,r=rt(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],true)}create(e,t,s={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=hn(this._driver,t,r,ct,Ce,new Map,new Map,s,si,n),o.forEach(h=>{let c=k(a,h.element,new Map);h.postStyleProps.forEach(S=>c.set(S,null));})):(n.push(zs()),o=[]),n.length)throw Ks();a.forEach((h,c)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(c,y,K));});});let l=o.map(h=>{let c=a.get(h.element);return this._buildPlayer(h,new Map,c)}),u=j(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw qs();return t}listen(e,t,s,n){let r=Pe(t,"","","");return Ae(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){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(n[0]));break;case "destroy":this.destroy(e);break}}},sn="ng-animate-queued",ni=".ng-animate-queued",pt="ng-animate-disabled",ii=".ng-animate-disabled",ri="ng-star-inserted",oi=".ng-star-inserted",ai=[],fn={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},li={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},B="__ng_removed",ye=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=ci(n),s){let r=e,{value:o}=r,a=y$1(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n]);});}}},pe="void",gt=new ye(pe),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,z(t,this._hostClassName);}listen(e,t,s,n){if(!this._triggers.has(t))throw Bs();if(s==null||s.length==0)throw Qs();if(!hi(s))throw Vs();let r=k(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);let a=k(this._engine.statesByElement,e,new Map);return a.has(t)||(z(e,de),z(e,de+"-"+t),a.set(t,gt)),()=>{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)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Us();return t}trigger(e,t,s,n=true){let r=this._getTrigger(t),o=new _e(this.id,t,e),a=this._engine.statesByElement.get(e);a||(z(e,de),z(e,de+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),u=new ye(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=gt),!(u.value===pe)&&l.value===u.value){if(!mi(l.params,u.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{W(e,T),q(e,w);});}return}let S=k(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,u.value,e,u.params),f=false;if(!y){if(!n)return;y=r.fallbackTransition,f=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:o,isFallbackTransition:f}),f||(z(e,sn),o.onStart(()=>{le(e,sn);})),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 w=T.indexOf(o);w>=0&&T.splice(w,1);}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,fe,true);s.forEach(n=>{if(n[B])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,false,true)):this.clearElementCache(n);}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,pe,n);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,u=s.get(o)||gt,h=new ye(pe),c=new _e(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:true});});}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let n=false;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=true;else {let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){n=true;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,false,t);else {let r=e[B];(!r||r===fn)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t));}}insertNode(e,t){z(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=Pe(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Ae(s.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):t.push(s);}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Nt=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s);});}),e}createNamespace(e,t){let s=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||s.unshift(e);}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r);}}return t}trigger(e,t,s,n){if(Oe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),true}return false}insertNode(e,t,s,n){if(!Oe(t))return;let r=t[B];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s);}n&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),z(e,pt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,pt));}removeNode(e,t,s){if(Oe(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,false,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s);}else this._onRemovalComplete(t,s);}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,s,n,r){return Oe(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=true:s.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=fn,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(pt)&&this.markElementAsDisabled(e,false),this.driver.query(e,ii,true).forEach(s=>{this.markElementAsDisabled(s,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let n=this.collectedEnterElements[s];z(n,ri);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e);}finally{for(let n=0;n<s.length;n++)s[n]();}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let n=this.collectedLeaveElements[s];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(n=>n());}):s.forEach(n=>n());}}reportError(e){throw $s()}_flushAnimations(e,t){let s=new ge,n=[],r=new Map,o=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,ni,true);for(let p=0;p<m.length;p++)h.add(m[p]);});let c=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=on(S,this.collectedEnterElements),f=new Map,g=0;y.forEach((d,m)=>{let p=ct+g++;f.set(m,p),d.forEach(E=>z(E,p));});let T=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let m=this.collectedLeaveElements[d],p=m[B];p&&p.setForRemoval&&(T.push(m),w.add(m),p.hasAnimation?this.driver.query(m,oi,true).forEach(E=>w.add(E)):A.add(m));}let M=new Map,N=on(S,Array.from(w));N.forEach((d,m)=>{let p=Ce+g++;M.set(m,p),d.forEach(E=>z(E,p));}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>le(E,p));}),N.forEach((d,m)=>{let p=M.get(m);d.forEach(E=>le(E,p));}),T.forEach(d=>{this.processLeaveNode(d);});});let se=[],Q=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(se.push(E),this.collectedEnterElements.length){let C=P[B];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let X=C.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Se=I.get(p.triggerName);Se.value=X,I.set(p.triggerName,Se);}}E.destroy();return}}let V=!c||!this.driver.containsElement(c,P),O=M.get(P),G=f.get(P),b=this._buildInstruction(p,s,G,O,V);if(b.errors&&b.errors.length){Q.push(b);return}if(V){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}let It=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||It.push(C);}),b.timelines=It,s.append(P,b.timelines);let bn={instruction:b,player:E,element:P};o.push(bn),b.queriedElements.forEach(C=>k(a,C,[]).push(E)),b.preStyleProps.forEach((C,X)=>{if(C.size){let I=l.get(X);I||l.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));}}),b.postStyleProps.forEach((C,X)=>{let I=u.get(X);I||u.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));});});if(Q.length){let d=[];Q.forEach(m=>{d.push(js(m.triggerName,m.errors));}),se.forEach(m=>m.destroy()),this.reportError(d);}let D=new Map,F=new Map;o.forEach(d=>{let m=d.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D));}),n.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,false,d.namespaceId,d.triggerName,null).forEach(E=>{k(D,m,[]).push(E),E.destroy();});});let H=T.filter(d=>an(d,l,u)),ne=new Map;rn(ne,this.driver,A,u,K).forEach(d=>{an(d,l,u)&&H.push(d);});let Y=new Map;y.forEach((d,m)=>{rn(Y,this.driver,new Set(d),l,he);}),H.forEach(d=>{let m=ne.get(d),p=Y.get(d);ne.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Ge=[],Rt=[],Ot={};o.forEach(d=>{let{element:m,player:p,instruction:E}=d;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>q(m,E.toStyles)),p.disabled=true,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=Ot;if(F.size>1){let O=m,G=[];for(;O=O.parentNode;){let b=F.get(O);if(b){P=b;break}G.push(O);}G.forEach(b=>F.set(b,P));}let V=this._buildAnimation(p.namespaceId,E,D,r,Y,ne);if(p.setRealPlayer(V),P===Ot)Ge.push(p);else {let O=this.playersByElement.get(P);O&&O.length&&(p.parentPlayer=j(O)),n.push(p);}}else W(m,E.fromStyles),p.onDestroy(()=>q(m,E.toStyles)),Rt.push(p),h.has(m)&&n.push(p);}),Rt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=j(m);d.setRealPlayer(p);}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<T.length;d++){let m=T[d],p=m[B];if(le(m,Ce),p&&p.hasAnimation)continue;let E=[];if(a.size){let V=a.get(m);V&&V.length&&E.push(...V);let O=this.driver.query(m,Me,true);for(let G=0;G<O.length;G++){let b=a.get(O[G]);b&&b.length&&E.push(...b);}}let P=E.filter(V=>!V.destroyed);P.length?di(this,m,P):this.processLeaveNode(m);}return T.length=0,Ge.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1);}),d.play();}),Ge}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,s,n,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==pe;a.forEach(u=>{u.queued||!l&&u.triggerName!=n||o.push(u);});}}return (s||n)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,h=u!==r,c=k(s,u,[]);this._getPreviousPlayers(u,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),c.push(y);});}W(r,t.fromStyles);}_buildAnimation(e,t,s,n,r,o){let a=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,S=t.timelines.map(f=>{let g=f.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new $(f.duration,f.delay);let w=g!==l,A=fi((s.get(g)||ai).map(D=>D.getRealPlayer())).filter(D=>{let F=D;return F.element?F.element===g:false}),M=r.get(g),N=o.get(g),se=rt(this._normalizer,f.keyframes,M,N),Q=this._buildPlayer(f,se,A);if(f.subTimeline&&n&&c.add(g),w){let D=new _e(e,a,g);D.setRealPlayer(Q),u.push(D);}return Q});u.forEach(f=>{k(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>ui(this.playersByQueriedElement,f.element,f));}),h.forEach(f=>z(f,ht));let y=j(S);return y.onDestroy(()=>{h.forEach(f=>le(f,ht)),q(l,t.toStyles);}),c.forEach(f=>{k(n,f,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(e.duration,e.delay)}},_e=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>Ae(e,s,void 0,n));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}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){k(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?false: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=true,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 ui(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1);}s.length==0&&i.delete(e);}return s}function ci(i){return i??null}function Oe(i){return i&&i.nodeType===1}function hi(i){return i=="start"||i=="done"}function nn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function rn(i,e,t,s,n){let r=[];t.forEach(l=>r.push(nn(l)));let o=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let S=e.computeStyle(u,c,n);h.set(c,S),(!S||S.length==0)&&(u[B]=li,o.push(u));}),i.set(u,h);});let a=0;return t.forEach(l=>nn(l,r[a++])),o}function on(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let u=a.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=o(u),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a);}),t}function z(i,e){i.classList?.add(e);}function le(i,e){i.classList?.remove(e);}function di(i,e,t){j(t).onDone(()=>i.processLeaveNode(e));}function fi(i){let e=[];return mn(i,e),e}function mn(i,e){for(let t=0;t<i.length;t++){let s=i[t];s instanceof re?mn(s.players,e):e.push(s);}}function mi(i,e){let t=Object.keys(i),s=Object.keys(e);if(t.length!=s.length)return false;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||i[r]!==e[r])return false}return true}function an(i,e,t){let s=t.get(i);if(!s)return false;let n=e.get(i);return n?s.forEach(r=>n.add(r)):e.set(i,s),t.delete(i),true}var ue=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Nt(e.body,t,s),this._timelineEngine=new At(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r);}registerTrigger(e,t,s,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],u=[],h=cn(this._driver,r,l,u);if(l.length)throw Is();a=ei(n,h,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(t,n,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n);}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,o]=ot(s),a=n;this._timelineEngine.command(r,t,o,a);}else this._transitionEngine.trigger(e,t,s,n);}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[o,a]=ot(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,n,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 pi(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=yt(e[0]),e.length>1&&(s=yt(e[e.length-1]))):e instanceof Map&&(t=yt(e)),t||s?new gi(i,t,s):null}var gi=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3);}}return i})();function yt(i){let e=null;return i.forEach((t,s)=>{yi(s)&&(e=e||new Map,e.set(s,t));}),e}function yi(i){return i==="display"||i==="position"}var Qe=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s));}),t}_triggerWebAnimation(e,t,s){let n=this._convertKeyframesToObject(t);try{return e.animate(n,s)}catch(r){return null}}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(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:Fe(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return at(e,t)}getParentElement(e){return Ne(e)}query(e,t,s){return lt(e,t,s)}computeStyle(e,t,s){return Fe(e,t)}animate(e,t,s,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:s,delay:n,fill:a};r&&(l.easing=r);let u=new Map,h=o.filter(y=>y instanceof Qe);Hs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>u.set(g,f));});let c=xs(t).map(y=>new Map(y));c=Ys(e,c,u);let S=pi(e,c);return new Qe(e,c,l,S)}};var Ie="@",pn="@.disabled",Ue=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n;}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,false);}insertBefore(e,t,s,n=true){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n);}removeChild(e,t,s,n){if(n){this.delegate.removeChild(e,t,s,n);return}this.parentNode(t)&&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,s,n){this.delegate.setAttribute(e,t,s,n);}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n);}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s);}setProperty(e,t,s){t.charAt(0)==Ie&&t==pn?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,s,n){return this.delegate.listen(e,t,s,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Ct=class extends Ue{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,s){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pn?(s=s===void 0?true:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s);}listen(e,t,s,n){if(t.charAt(0)==Ie){let r=_i(e),o=t.slice(1),a="";return o.charAt(0)!=Ie&&([o,a]=Si(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l);})}return this.delegate.listen(e,t,s,n)}};function _i(i){switch(i){case "body":return document.body;case "document":return document;case "window":return window;default:return i}}function Si(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return [t,s]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n);};}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new Ue("",n,this.engine,c),u.set(n,h);}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(r,o,e,u.name,u);};return t.data.animation.forEach(a),new Ct(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a);}),this._animationCallbacksBuffer=[];});}),n.push([t,s]);}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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var vi=(()=>{class i extends ue{constructor(t,s,n){super(t,s,n);}ngOnDestroy(){this.flush();}static \u0275fac=function(s){return new(s||i)(S$2(U$5),S$2(ee),S$2(te))};static \u0275prov=A$2({token:i,factory:i.\u0275fac})}return i})();function Ti(){return new Le}function bi(){return new $e(g(Hl),g(ue),g(G$2))}var gn=[{provide:te,useFactory:Ti},{provide:ue,useClass:vi},{provide:Nn$3,useFactory:bi}],wi=[{provide:ee,useFactory:()=>new Ve},{provide:Uv,useFactory:()=>"BrowserAnimations"},...gn];function yn(){return Ge$3("NgEagerAnimations"),[...wi]}var Ai=i=>!!i&&i.mode==="unmanaged"&&i.setupEnabled&&!i.setupDone,Ft=false;var _n=()=>B$3(null,null,function*(){if(Ft)return true;let i=g(V$1),e=g(F),t=yield i.refreshStatus();return t?.setupDone&&(Ft=true),Ai(t)?e.parseUrl("/welcome"):true}),Sn=()=>B$3(null,null,function*(){return (yield g(V$1).refreshStatus())?.setupDone&&(Ft=true),true});var Pi=i=>i[0]?.path==="agentos"?{consumed:i}:null,Ni=(i,e)=>{let t=e.url.replace(/^\/agentos/,"");return g(F).parseUrl(t.startsWith("/")?t:`/${t}`)},En=[{matcher:Pi,canActivate:[Ni],children:[]},{path:"welcome",canActivate:[Sn],loadComponent:()=>import('./chunk-ZTrp2NAu.js').then(i=>i.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[_n],loadChildren:()=>import('./chunk-Dyc2eHCz.js').then(function(n){return n.ad}).then(i=>i.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ci=5e3;function vn(t){return B$3(this,arguments,function*(i,e=Ci){yield Dy(i.loadMe().pipe(Oy(e),ga(s=>(console.warn("Failed to load current user",s),_r$1(null)))),{defaultValue:null});})}function Mi(i){return ()=>B$3(null,null,function*(){let{UserStateService:e}=yield import('./chunk-Dyc2eHCz.js').then(function(n){return n.ad});yield vn(i.get(e));})}function Di(i){return ()=>B$3(null,null,function*(){try{let{CompanionStateService:e,GlobalStreamService:t,TabCoordinatorService:s}=yield import('./chunk-Dyc2eHCz.js').then(function(n){return n.ad});Jn$2(i,()=>{i.get(s).start();}),i.get(t).start(),i.get(e).startSse();}catch(e){console.warn("Failed to start the companion notification stream",e);}})}var Tn={providers:[Vv(),eV({eventCoalescing:true}),ia(En),wS(),yn(),{provide:Ce$2,useValue:{duration:3e3}},{provide:dl,useFactory:Mi,deps:[he$5],multi:true},Ad({basePath:"/api/agentos"}),{provide:dl,useFactory:Di,deps:[he$5],multi:true},{provide:de$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Fi(i,e){i&1&&(Is$1(0,"div",0),hg(1,"div",2),Is$1(2,"p"),UC(3,"Loading Coday\u2026"),ml()());}function ki(i,e){if(i&1){let t=aC();Is$1(0,"div",1)(1,"p"),UC(2,"Coday could not load this page."),ml(),Is$1(3,"button",3),Eg("click",function(){mf(t);let n=fC();return yf(n.reload())}),UC(4,"Reload"),ml()();}}var Ri=i=>i instanceof re$1?"pending":i instanceof de$1?"failed":"idle",je=class i{title="client";phase=F$1(g(F).events.pipe(Ot$1(e=>e instanceof re$1||e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(Ri)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xw({type:i,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,s){if(t&1&&(Qw(0,Fi,4,0,"div",0)(1,ki,5,0,"div",1),hg(2,"router-outlet")),t&2){let n;Kw((n=s.phase())==="pending"?0:n==="failed"?1:-1);}},dependencies:[oa,br],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};Kb(je,Tn).catch(i=>console.error(i));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(i=>console.error("[SW] Registration failed:",i));});export{Sr$1 as $,A$1 as A,B$3 as B,ch as C,AC as D,ry as E,F,y as G,L$2 as H,Is$1 as I,we$2 as J,KE as K,Lg as L,U$2 as M,Ng as N,w$1 as O,x$1 as P,Qw as Q,pg as R,Eg as S,VI as T,UC as U,V$1 as V,W$1 as W,UI as X,br as Y,W$3 as Z,_o$1 as _,hg as a,EC as a$,ke$3 as a0,ma as a1,ga as a2,rn$2 as a3,G$1 as a4,jg as a5,Ee$2 as a6,Ed as a7,A$2 as a8,Ln$3 as a9,N$1 as aA,K$3 as aB,QB as aC,Ne$2 as aD,Sg as aE,DC as aF,ee$4 as aG,Jy as aH,an$2 as aI,Ot$1 as aJ,cn$2 as aK,Re$3 as aL,le$3 as aM,T$1 as aN,ge$4 as aO,Ce$4 as aP,di$3 as aQ,Q as aR,Ob as aS,$g as aT,Ug as aU,oT as aV,rT as aW,fT as aX,ZC as aY,D$1 as aZ,Dy as a_,J$1 as aa,F$1 as ab,_r$1 as ac,le$4 as ad,Ny as ae,ne$3 as af,Zw as ag,_$1 as ah,U$4 as ai,_e$3 as aj,Ge$2 as ak,Le$1 as al,Dd as am,Je$2 as an,Ye$1 as ao,Xw as ap,Fe$2 as aq,Jw as ar,k$1 as as,F$3 as at,We$1 as au,_y as av,$t as aw,uT as ax,dT as ay,iE as az,Kw as b,Ca as b$,Y$2 as b0,De$2 as b1,A$3 as b2,z$2 as b3,Ae$2 as b4,ZB as b5,qB as b6,On$3 as b7,el as b8,ll as b9,ri$2 as bA,W$2 as bB,$e$2 as bC,at$2 as bD,cs as bE,pt$3 as bF,xe$1 as bG,xy as bH,en$1 as bI,ug as bJ,tT as bK,Cg as bL,U$5 as bM,we$1 as bN,L$1 as bO,Zn$2 as bP,Os$1 as bQ,gt$2 as bR,_t$3 as bS,sg as bT,Ke$2 as bU,Mo$1 as bV,_t$4 as bW,Ce$5 as bX,Oe$1 as bY,si$2 as bZ,Ay as b_,yt$3 as ba,Tg as bb,yC as bc,vC as bd,KT as be,hC as bf,gC as bg,Ni$2 as bh,di$2 as bi,YB as bj,tV as bk,md as bl,Sd as bm,T$4 as bn,Ps$1 as bo,Ur as bp,We$2 as bq,Pp as br,Dr$1 as bs,dm as bt,_E as bu,Ea as bv,Se$2 as bw,ee$5 as bx,em as by,qs$1 as bz,xg as c,et as c$,S$2 as c0,Mf as c1,yr$1 as c2,mt$3 as c3,G$2 as c4,Md as c5,Cn$2 as c6,Ht as c7,yn$1 as c8,Ft$1 as c9,pi$3 as cA,ue$3 as cB,Ie$2 as cC,me$3 as cD,ie$2 as cE,Mn$2 as cF,Qe$2 as cG,Rb as cH,Ke$3 as cI,Oy as cJ,yd as cK,ya as cL,dn$1 as cM,lE as cN,uE as cO,Zy as cP,Xy as cQ,ev as cR,Id as cS,Ky as cT,ve$2 as cU,ne$2 as cV,he$4 as cW,KB as cX,DT as cY,Mb as cZ,ae$2 as c_,ZI as ca,v as cb,ht$3 as cc,wi$2 as cd,Ln$2 as ce,Da as cf,$y as cg,Fs$1 as ch,Ke$4 as ci,hn$1 as cj,Si$3 as ck,Tu as cl,Pw as cm,CS as cn,fr$1 as co,m$2 as cp,ye$4 as cq,_b as cr,cg as cs,yg as ct,pT as cu,ta as cv,vr$1 as cw,Fy as cx,va as cy,qy as cz,Ig as d,re$3 as d0,pe$4 as d1,Ia as d2,ze$2 as d3,Nf as d4,pe$5 as d5,nV as d6,ce as d7,pt$2 as d8,Xe as d9,Ze$2 as da,Ab as db,R$2 as dc,Me$2 as dd,zy as de,KC as df,Gg as dg,YC as dh,iT as di,Vg as dj,QC as dk,sT as dl,Hg as dm,uh as dn,XB as dp,bg as dq,fe$4 as dr,Bg as ds,ee$3 as e,gg as f,g,he$5 as h,vg as i,fg as j,yT as k,eC as l,ml as m,f$1 as n,nT as o,Ff as p,Il as q,fC as r,aC as s,tC as t,mf as u,vl as v,yf as w,xw as x,yl as y,zi$2 as z};
1253
+ var _=(function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i})(_||{}),K="*";function _s(i,e=null){return {type:_.Sequence,steps:i,options:e}}function tt(i){return {type:_.Style,styles:i,offset:null}}var $=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}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);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish();}),o.onDestroy(()=>{++s==r&&this._onDestroy();}),o.onStart(()=>{++n==r&&this._onStart();});}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let n=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(n);});}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},he="!";function Ss(i){return new m$2(3e3,false)}function wn(){return new m$2(3100,false)}function An(){return new m$2(3101,false)}function Pn(i){return new m$2(3001,false)}function Nn(i){return new m$2(3003,false)}function Cn(i){return new m$2(3004,false)}function vs(i,e){return new m$2(3005,false)}function Ts(){return new m$2(3006,false)}function bs(){return new m$2(3007,false)}function ws(i,e){return new m$2(3008,false)}function As(i){return new m$2(3002,false)}function Ps(i,e,t,s,n){return new m$2(3010,false)}function Ns(){return new m$2(3011,false)}function Cs(){return new m$2(3012,false)}function Ms(){return new m$2(3200,false)}function Ds(){return new m$2(3202,false)}function Fs(){return new m$2(3013,false)}function ks(i){return new m$2(3014,false)}function Rs(i){return new m$2(3015,false)}function Os(i){return new m$2(3016,false)}function Is(i,e){return new m$2(3404,false)}function Mn(i){return new m$2(3502,false)}function Ls(i){return new m$2(3503,false)}function zs(){return new m$2(3300,false)}function Ks(i){return new m$2(3504,false)}function qs(i){return new m$2(3301,false)}function Bs(i,e){return new m$2(3302,false)}function Qs(i){return new m$2(3303,false)}function Vs(i,e){return new m$2(3400,false)}function Us(i){return new m$2(3401,false)}function $s(i){return new m$2(3402,false)}function js(i,e){return new m$2(3505,false)}function j(i){switch(i.length){case 0:return new $;case 1:return i[0];default:return new re(i)}}function rt(i,e,t=new Map,s=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==o,c=h&&a||new Map;l.forEach((S,y)=>{let f=y,g=S;if(y!=="offset")switch(f=i.normalizePropertyName(f,n),g){case he:g=t.get(y);break;case K:g=s.get(y);break;default:g=i.normalizeStyleValue(y,f,g,n);break}c.set(f,g);}),h||r.push(c),a=c,o=u;}),n.length)throw Mn();return r}function Ae(i,e,t,s){switch(e){case "start":i.onStart(()=>s(t&&st(t,"start",i)));break;case "done":i.onDone(()=>s(t&&st(t,"done",i)));break;case "destroy":i.onDestroy(()=>s(t&&st(t,"destroy",i)));break}}function st(i,e,t){let s=t.totalTime,n=!!t.disabled,r=Pe(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),o=i._data;return o!=null&&(r._data=o),r}function Pe(i,e,t,s,n="",r=0,o){return {element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function k(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function ot(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return [t,s]}var Dn=typeof document>"u"?null:document.documentElement;function Ne(i){let e=i.parentNode||i.host||null;return e===Dn?null:e}function Fn(i){return i.substring(1,6)=="ebkit"}var Z=null,Es=false;function Gs(i){Z||(Z=kn()||{},Es=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Fn(i)&&(e=i in Z.style,!e&&Es&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Z.style)),e}function kn(){return typeof document<"u"?document.body:null}function at(i,e){for(;e;){if(e===i)return true;e=Ne(e);}return false}function lt(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var Rn=1e3,ut="{{",On="}}",ct="ng-enter",Ce="ng-leave",de="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function U(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:nt(parseFloat(e[1]),e[2])}function nt(i,e){return e==="s"?i*Rn:i}function me(i,e,t){return i.hasOwnProperty("duration")?i:Ln(i,e,t)}var In=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Ln(i,e,t){let s,n=0,r="";if(typeof i=="string"){let o=i.match(In);if(o===null)return e.push(Ss()),{duration:0,delay:0,easing:""};s=nt(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=nt(parseFloat(a),o[4]));let l=o[5];l&&(r=l);}else s=i;if(!t){let o=false,a=e.length;s<0&&(e.push(wn()),o=true),n<0&&(e.push(An()),o=true),o&&e.splice(a,0,Ss());}return {duration:s,delay:n,easing:r}}function xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function q(i,e,t){e.forEach((s,n)=>{let r=De(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s;});}function W(i,e){e.forEach((t,s)=>{let n=De(s);i.style[n]="";});}function oe(i){return Array.isArray(i)?i.length==1?i[0]:_s(i):i}function Ws(i,e,t){let s=e.params||{},n=dt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pn());});}var it=new RegExp(`${ut}\\s*(.+?)\\s*${On}`,"g");function dt(i){let e=[];if(typeof i=="string"){let t;for(;t=it.exec(i);)e.push(t[1]);it.lastIndex=0;}return e}function ae(i,e,t){let s=`${i}`,n=s.replace(it,(r,o)=>{let a=e[o];return a==null&&(t.push(Nn()),a=""),a.toString()});return n==s?i:n}var zn=/-+([a-z0-9])/g;function De(i){return i.replace(zn,(...e)=>e[1].toUpperCase())}function Hs(i,e){return i===0||e===0}function Ys(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,o)=>{s.has(o)||n.push(o),s.set(o,r);}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,Fe(i,a)));}}return e}function R(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw Cn(e.type)}}function Fe(i,e){return window.getComputedStyle(i)[e]}var Mt=(()=>{class i{validateStyleProperty(t){return Gs(t)}containsElement(t,s){return at(t,s)}getParentElement(t){return Ne(t)}query(t,s,n){return lt(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,o,a=[],l){return new $(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=A$2({token:i,factory:i.\u0275fac})}return i})(),ee=class{static NOOP=new Mt},te=class{};var Kn=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"]),Le=class extends te{normalizePropertyName(e,t){return De(e)}normalizeStyleValue(e,t,s,n){let r="",o=s.toString().trim();if(Kn.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else {let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(vs());}return o+r}};var ze="*";function qn(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>Bn(s,t,e)):t.push(i),t}function Bn(i,e,t){if(i[0]==":"){let l=Qn(i,t);if(typeof l=="function"){e.push(l);return}i=l;}let s=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(Rs()),e;let n=s[1],r=s[2],o=s[3];e.push(Xs(n,o));let a=n==ze&&o==ze;r[0]=="<"&&!a&&e.push(Xs(o,n));}function Qn(i,e){switch(i){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,s)=>parseFloat(s)>parseFloat(t);case ":decrement":return (t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Os()),"* => *"}}var ke=new Set(["true","1"]),Re=new Set(["false","0"]);function Xs(i,e){let t=ke.has(i)||Re.has(i),s=ke.has(e)||Re.has(e);return (n,r)=>{let o=i==ze||i==n,a=e==ze||e==r;return !o&&t&&typeof n=="boolean"&&(o=n?ke.has(i):Re.has(i)),!a&&s&&typeof r=="boolean"&&(a=r?ke.has(e):Re.has(e)),o&&a}}var un=":self",Vn=new RegExp(`s*${un}s*,?`,"g");function cn(i,e,t,s){return new _t(i).build(e,t,s)}var Zs="",_t=class{_driver;constructor(e){this._driver=e;}build(e,t,s){let n=new St(t);return this._resetContextStyleTimingState(n),R(this,oe(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Zs,e.collectedStyles=new Map,e.collectedStyles.set(Zs,new Map),e.currentTime=0;}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ts()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=u;}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,n+=l.depCount,o.push(l);}else t.errors.push(bs());}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=n||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{dt(l).forEach(u=>{o.hasOwnProperty(u)||r.add(u);});});}),r.size&&t.errors.push(ws(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,oe(e.animation),t),n=qn(e.expr,t.errors);return {type:_.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:J(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let s=Gn(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:tt({});if(r.type==_.Keyframes)n=this.visitKeyframes(r,t);else {let o=e.styles,a=false;if(!o){a=true;let u={};s.easing&&(u.easing=s.easing),o=tt(u);}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===K?s.push(a):t.errors.push(As()):s.push(new Map(Object.entries(a)));let r=false,o=null;return s.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(ut)>=0){r=true;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=true;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(Ps(l,h.startTime,h.endTime)),c=false),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Ws(a,t.options,t.errors);});});}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ns()),s;let n=1,r=0,o=[],a=false,l=false,u=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:jn(A.styles),N=0;return M!=null&&(r++,N=A.offset=M),l=l||N<0||N>1,a=a||N<u,u=N,o.push(N),A});l&&t.errors.push(Cs()),a&&t.errors.push(Ms());let c=e.steps.length,S=0;r>0&&r<c?t.errors.push(Ds()):r==0&&(S=n/(c-1));let y=c-1,f=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:o[A],N=M*T;t.currentTime=f+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=M,s.styles.push(w);}),s}visitReference(e,t){return {type:_.Reference,animation:R(this,oe(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Un(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,k(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,oe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Fs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:me(e.timings,t.errors,true);return {type:_.Stagger,animation:R(this,oe(e.animation),t),timings:s,options:null}}};function Un(i){let e=!!i.split(/\s*,\s*/).find(t=>t==un);return e&&(i=i.replace(Vn,"")),i=i.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[i,e]}function $n(i){return i?w$1({},i):null}var St=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function jn(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 s=t;e=parseFloat(s.get("offset")),s.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gn(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=me(i,e).duration;return ft(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=me(t,e);return ft(n.duration,n.delay,n.easing)}function J(i){return i?(i=w$1({},i),i.params&&(i.params=$n(i.params))):i={},i}function ft(i,e,t){return {duration:i,delay:e,easing:t}}function Dt(i,e,t,s,n,r,o=null,a=false){return {type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var ge=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},xn=1,Wn=":enter",Hn=new RegExp(Wn,"g"),Yn=":leave",Xn=new RegExp(Yn,"g");function hn(i,e,t,s,n,r=new Map,o=new Map,a,l,u=[]){return new Et().buildKeyframes(i,e,t,s,n,r,o,a,l,u)}var Et=class{buildKeyframes(e,t,s,n,r,o,a,l,u,h=[]){u=u||new ge;let c=new vt(e,t,u,n,r,h,[]);c.options=l;let S=l.delay?U(l.delay):0;c.currentTimeline.delayNextStep(S),c.currentTimeline.setStyles([o],null,c.errors,l),R(this,s,c);let y=c.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,c.errors,l);}return y.length?y.map(f=>f.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,n,n.options);r!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:U(ae(r,n?.params??{},t.errors));s.delayNextStep(o);}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?U(s.duration):null,a=s.delay!=null?U(s.delay):null;return o!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,u.duration+u.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),R(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==_.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ke);let o=U(r.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>R(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let s=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?U(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline);}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ae(s,t.params,t.errors):s;return me(n,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e;}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?U(n.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ke);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),R(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let S=c.currentTimeline.currentTime;o=Math.max(o,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let s=t.parentContext,n=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=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime);}},Ke={},vt=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ke;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new qe(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=U(s.duration)),s.delay!=null&&(n.delay=U(s.delay));let r=s.params;if(r){let o=n.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 s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n];});}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||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=Ke,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,s,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Hn,"."+this._enterClassName),e=e.replace(Xn,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),a.push(...u);}return !r&&a.length==0&&o.push(ks()),a}},qe=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,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 false;case 1:return this.hasCurrentStyleProperties();default:return true}}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+=xn,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,s]of this._globalTimelineStyles)this._backFill.set(t,s||K),this._currentKeyframe.set(t,K);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Zn(e,this._globalTimelineStyles);for(let[a,l]of o){let u=ae(l,r,s);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??K),this._updateStyle(a,u);}}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,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((h,c)=>{h===he?e.add(c):h===K&&t.add(c);}),s||u.set("offset",l/this.duration),n.push(u);});let r=[...e.values()],o=[...t.values()];if(s){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return Dt(this.element,n,r,o,this.duration,this.startTime,this.easing,false)}},Tt=class extends qe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,o,a=false){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=n,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:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",Js(a)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let S=new Map(e[c]),y=S.get("offset"),f=t+y*s;S.set("offset",Js(f/o)),r.push(S);}s=o,t=0,n="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,true)}};function Js(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zn(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,K);}else for(let[r,o]of n)t.set(r,o);}),t}function en(i,e,t,s,n,r,o,a,l,u,h,c,S){return {type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:S}}var mt={},Be=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s;}match(e,t,s,n){return Jn(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,o,a,l,u,h){let c=[],S=this.ast.options&&this.ast.options.params||mt,y=a&&a.params||mt,f=this.buildStyles(s,y,c),g=l&&l.params||mt,T=this.buildStyles(n,g,c),w=new Set,A=new Map,M=new Map,N=n==="void",se={params:dn(g,S),delay:this.ast.options?.delay},Q=h?[]:hn(e,t,this.ast.animation,r,o,f,T,se,u,c),D=0;return Q.forEach(F=>{D=Math.max(F.duration+F.delay,D);}),c.length?en(t,this._triggerName,s,n,N,f,T,[],[],A,M,D,c):(Q.forEach(F=>{let H=F.element,ne=k(A,H,new Set);F.preStyleProps.forEach(Y=>ne.add(Y));let kt=k(M,H,new Set);F.postStyleProps.forEach(Y=>kt.add(Y)),H!==t&&w.add(H);}),en(t,this._triggerName,s,n,N,f,T,Q,[...w.values()],A,M,D))}};function Jn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function dn(i,e){let t=w$1({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n);}),t}var bt=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s;}buildStyles(e,t){let s=new Map,n=dn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=ae(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o);});}),s}};function ei(i,e,t){return new wt(i,e,t)}var wt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new bt(n.style,r,s));}),tn(this.states,"true","1"),tn(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Be(e,n,this.states));}),this.fallbackTransition=ti(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(o=>o.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(i,e,t){let s=[(o,a)=>true],n={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Be(i,r,e)}function tn(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 si=new ge,At=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s;}register(e,t){let s=[],n=[],r=cn(this._driver,t,s,n);if(s.length)throw Ls();this._animations.set(e,r);}_buildPlayer(e,t,s){let n=e.element,r=rt(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],true)}create(e,t,s={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=hn(this._driver,t,r,ct,Ce,new Map,new Map,s,si,n),o.forEach(h=>{let c=k(a,h.element,new Map);h.postStyleProps.forEach(S=>c.set(S,null));})):(n.push(zs()),o=[]),n.length)throw Ks();a.forEach((h,c)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(c,y,K));});});let l=o.map(h=>{let c=a.get(h.element);return this._buildPlayer(h,new Map,c)}),u=j(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw qs();return t}listen(e,t,s,n){let r=Pe(t,"","","");return Ae(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){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(n[0]));break;case "destroy":this.destroy(e);break}}},sn="ng-animate-queued",ni=".ng-animate-queued",pt="ng-animate-disabled",ii=".ng-animate-disabled",ri="ng-star-inserted",oi=".ng-star-inserted",ai=[],fn={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},li={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},B="__ng_removed",ye=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=ci(n),s){let r=e,{value:o}=r,a=y$1(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n]);});}}},pe="void",gt=new ye(pe),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,z(t,this._hostClassName);}listen(e,t,s,n){if(!this._triggers.has(t))throw Bs();if(s==null||s.length==0)throw Qs();if(!hi(s))throw Vs();let r=k(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);let a=k(this._engine.statesByElement,e,new Map);return a.has(t)||(z(e,de),z(e,de+"-"+t),a.set(t,gt)),()=>{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)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Us();return t}trigger(e,t,s,n=true){let r=this._getTrigger(t),o=new _e(this.id,t,e),a=this._engine.statesByElement.get(e);a||(z(e,de),z(e,de+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),u=new ye(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=gt),!(u.value===pe)&&l.value===u.value){if(!mi(l.params,u.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{W(e,T),q(e,w);});}return}let S=k(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,u.value,e,u.params),f=false;if(!y){if(!n)return;y=r.fallbackTransition,f=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:o,isFallbackTransition:f}),f||(z(e,sn),o.onStart(()=>{le(e,sn);})),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 w=T.indexOf(o);w>=0&&T.splice(w,1);}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,fe,true);s.forEach(n=>{if(n[B])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,false,true)):this.clearElementCache(n);}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,pe,n);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,u=s.get(o)||gt,h=new ye(pe),c=new _e(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:true});});}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let n=false;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=true;else {let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){n=true;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,false,t);else {let r=e[B];(!r||r===fn)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t));}}insertNode(e,t){z(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=Pe(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Ae(s.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):t.push(s);}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Nt=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s);});}),e}createNamespace(e,t){let s=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||s.unshift(e);}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r);}}return t}trigger(e,t,s,n){if(Oe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),true}return false}insertNode(e,t,s,n){if(!Oe(t))return;let r=t[B];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s);}n&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),z(e,pt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,pt));}removeNode(e,t,s){if(Oe(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,false,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s);}else this._onRemovalComplete(t,s);}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,s,n,r){return Oe(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=true:s.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=fn,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(pt)&&this.markElementAsDisabled(e,false),this.driver.query(e,ii,true).forEach(s=>{this.markElementAsDisabled(s,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let n=this.collectedEnterElements[s];z(n,ri);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e);}finally{for(let n=0;n<s.length;n++)s[n]();}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let n=this.collectedLeaveElements[s];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(n=>n());}):s.forEach(n=>n());}}reportError(e){throw $s()}_flushAnimations(e,t){let s=new ge,n=[],r=new Map,o=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,ni,true);for(let p=0;p<m.length;p++)h.add(m[p]);});let c=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=on(S,this.collectedEnterElements),f=new Map,g=0;y.forEach((d,m)=>{let p=ct+g++;f.set(m,p),d.forEach(E=>z(E,p));});let T=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let m=this.collectedLeaveElements[d],p=m[B];p&&p.setForRemoval&&(T.push(m),w.add(m),p.hasAnimation?this.driver.query(m,oi,true).forEach(E=>w.add(E)):A.add(m));}let M=new Map,N=on(S,Array.from(w));N.forEach((d,m)=>{let p=Ce+g++;M.set(m,p),d.forEach(E=>z(E,p));}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>le(E,p));}),N.forEach((d,m)=>{let p=M.get(m);d.forEach(E=>le(E,p));}),T.forEach(d=>{this.processLeaveNode(d);});});let se=[],Q=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(se.push(E),this.collectedEnterElements.length){let C=P[B];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let X=C.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Se=I.get(p.triggerName);Se.value=X,I.set(p.triggerName,Se);}}E.destroy();return}}let V=!c||!this.driver.containsElement(c,P),O=M.get(P),G=f.get(P),b=this._buildInstruction(p,s,G,O,V);if(b.errors&&b.errors.length){Q.push(b);return}if(V){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}let It=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||It.push(C);}),b.timelines=It,s.append(P,b.timelines);let bn={instruction:b,player:E,element:P};o.push(bn),b.queriedElements.forEach(C=>k(a,C,[]).push(E)),b.preStyleProps.forEach((C,X)=>{if(C.size){let I=l.get(X);I||l.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));}}),b.postStyleProps.forEach((C,X)=>{let I=u.get(X);I||u.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));});});if(Q.length){let d=[];Q.forEach(m=>{d.push(js(m.triggerName,m.errors));}),se.forEach(m=>m.destroy()),this.reportError(d);}let D=new Map,F=new Map;o.forEach(d=>{let m=d.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D));}),n.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,false,d.namespaceId,d.triggerName,null).forEach(E=>{k(D,m,[]).push(E),E.destroy();});});let H=T.filter(d=>an(d,l,u)),ne=new Map;rn(ne,this.driver,A,u,K).forEach(d=>{an(d,l,u)&&H.push(d);});let Y=new Map;y.forEach((d,m)=>{rn(Y,this.driver,new Set(d),l,he);}),H.forEach(d=>{let m=ne.get(d),p=Y.get(d);ne.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Ge=[],Rt=[],Ot={};o.forEach(d=>{let{element:m,player:p,instruction:E}=d;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>q(m,E.toStyles)),p.disabled=true,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=Ot;if(F.size>1){let O=m,G=[];for(;O=O.parentNode;){let b=F.get(O);if(b){P=b;break}G.push(O);}G.forEach(b=>F.set(b,P));}let V=this._buildAnimation(p.namespaceId,E,D,r,Y,ne);if(p.setRealPlayer(V),P===Ot)Ge.push(p);else {let O=this.playersByElement.get(P);O&&O.length&&(p.parentPlayer=j(O)),n.push(p);}}else W(m,E.fromStyles),p.onDestroy(()=>q(m,E.toStyles)),Rt.push(p),h.has(m)&&n.push(p);}),Rt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=j(m);d.setRealPlayer(p);}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<T.length;d++){let m=T[d],p=m[B];if(le(m,Ce),p&&p.hasAnimation)continue;let E=[];if(a.size){let V=a.get(m);V&&V.length&&E.push(...V);let O=this.driver.query(m,Me,true);for(let G=0;G<O.length;G++){let b=a.get(O[G]);b&&b.length&&E.push(...b);}}let P=E.filter(V=>!V.destroyed);P.length?di(this,m,P):this.processLeaveNode(m);}return T.length=0,Ge.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1);}),d.play();}),Ge}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,s,n,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==pe;a.forEach(u=>{u.queued||!l&&u.triggerName!=n||o.push(u);});}}return (s||n)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,h=u!==r,c=k(s,u,[]);this._getPreviousPlayers(u,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),c.push(y);});}W(r,t.fromStyles);}_buildAnimation(e,t,s,n,r,o){let a=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,S=t.timelines.map(f=>{let g=f.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new $(f.duration,f.delay);let w=g!==l,A=fi((s.get(g)||ai).map(D=>D.getRealPlayer())).filter(D=>{let F=D;return F.element?F.element===g:false}),M=r.get(g),N=o.get(g),se=rt(this._normalizer,f.keyframes,M,N),Q=this._buildPlayer(f,se,A);if(f.subTimeline&&n&&c.add(g),w){let D=new _e(e,a,g);D.setRealPlayer(Q),u.push(D);}return Q});u.forEach(f=>{k(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>ui(this.playersByQueriedElement,f.element,f));}),h.forEach(f=>z(f,ht));let y=j(S);return y.onDestroy(()=>{h.forEach(f=>le(f,ht)),q(l,t.toStyles);}),c.forEach(f=>{k(n,f,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(e.duration,e.delay)}},_e=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>Ae(e,s,void 0,n));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}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){k(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?false: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=true,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 ui(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1);}s.length==0&&i.delete(e);}return s}function ci(i){return i??null}function Oe(i){return i&&i.nodeType===1}function hi(i){return i=="start"||i=="done"}function nn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function rn(i,e,t,s,n){let r=[];t.forEach(l=>r.push(nn(l)));let o=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let S=e.computeStyle(u,c,n);h.set(c,S),(!S||S.length==0)&&(u[B]=li,o.push(u));}),i.set(u,h);});let a=0;return t.forEach(l=>nn(l,r[a++])),o}function on(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let u=a.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=o(u),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a);}),t}function z(i,e){i.classList?.add(e);}function le(i,e){i.classList?.remove(e);}function di(i,e,t){j(t).onDone(()=>i.processLeaveNode(e));}function fi(i){let e=[];return mn(i,e),e}function mn(i,e){for(let t=0;t<i.length;t++){let s=i[t];s instanceof re?mn(s.players,e):e.push(s);}}function mi(i,e){let t=Object.keys(i),s=Object.keys(e);if(t.length!=s.length)return false;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||i[r]!==e[r])return false}return true}function an(i,e,t){let s=t.get(i);if(!s)return false;let n=e.get(i);return n?s.forEach(r=>n.add(r)):e.set(i,s),t.delete(i),true}var ue=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Nt(e.body,t,s),this._timelineEngine=new At(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r);}registerTrigger(e,t,s,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],u=[],h=cn(this._driver,r,l,u);if(l.length)throw Is();a=ei(n,h,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(t,n,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n);}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,o]=ot(s),a=n;this._timelineEngine.command(r,t,o,a);}else this._transitionEngine.trigger(e,t,s,n);}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[o,a]=ot(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,n,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 pi(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=yt(e[0]),e.length>1&&(s=yt(e[e.length-1]))):e instanceof Map&&(t=yt(e)),t||s?new gi(i,t,s):null}var gi=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3);}}return i})();function yt(i){let e=null;return i.forEach((t,s)=>{yi(s)&&(e=e||new Map,e.set(s,t));}),e}function yi(i){return i==="display"||i==="position"}var Qe=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s));}),t}_triggerWebAnimation(e,t,s){let n=this._convertKeyframesToObject(t);try{return e.animate(n,s)}catch(r){return null}}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(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:Fe(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return at(e,t)}getParentElement(e){return Ne(e)}query(e,t,s){return lt(e,t,s)}computeStyle(e,t,s){return Fe(e,t)}animate(e,t,s,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:s,delay:n,fill:a};r&&(l.easing=r);let u=new Map,h=o.filter(y=>y instanceof Qe);Hs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>u.set(g,f));});let c=xs(t).map(y=>new Map(y));c=Ys(e,c,u);let S=pi(e,c);return new Qe(e,c,l,S)}};var Ie="@",pn="@.disabled",Ue=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n;}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,false);}insertBefore(e,t,s,n=true){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n);}removeChild(e,t,s,n){if(n){this.delegate.removeChild(e,t,s,n);return}this.parentNode(t)&&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,s,n){this.delegate.setAttribute(e,t,s,n);}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n);}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s);}setProperty(e,t,s){t.charAt(0)==Ie&&t==pn?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,s,n){return this.delegate.listen(e,t,s,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Ct=class extends Ue{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,s){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pn?(s=s===void 0?true:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s);}listen(e,t,s,n){if(t.charAt(0)==Ie){let r=_i(e),o=t.slice(1),a="";return o.charAt(0)!=Ie&&([o,a]=Si(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l);})}return this.delegate.listen(e,t,s,n)}};function _i(i){switch(i){case "body":return document.body;case "document":return document;case "window":return window;default:return i}}function Si(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return [t,s]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n);};}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new Ue("",n,this.engine,c),u.set(n,h);}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(r,o,e,u.name,u);};return t.data.animation.forEach(a),new Ct(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a);}),this._animationCallbacksBuffer=[];});}),n.push([t,s]);}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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var vi=(()=>{class i extends ue{constructor(t,s,n){super(t,s,n);}ngOnDestroy(){this.flush();}static \u0275fac=function(s){return new(s||i)(S$2(U$5),S$2(ee),S$2(te))};static \u0275prov=A$2({token:i,factory:i.\u0275fac})}return i})();function Ti(){return new Le}function bi(){return new $e(g(Hl),g(ue),g(G$2))}var gn=[{provide:te,useFactory:Ti},{provide:ue,useClass:vi},{provide:Nn$3,useFactory:bi}],wi=[{provide:ee,useFactory:()=>new Ve},{provide:Uv,useFactory:()=>"BrowserAnimations"},...gn];function yn(){return Ge$3("NgEagerAnimations"),[...wi]}var Ai=i=>!!i&&i.mode==="unmanaged"&&i.setupEnabled&&!i.setupDone,Ft=false;var _n=()=>B$3(null,null,function*(){if(Ft)return true;let i=g(V$1),e=g(F),t=yield i.refreshStatus();return t?.setupDone&&(Ft=true),Ai(t)?e.parseUrl("/welcome"):true}),Sn=()=>B$3(null,null,function*(){return (yield g(V$1).refreshStatus())?.setupDone&&(Ft=true),true});var Pi=i=>i[0]?.path==="agentos"?{consumed:i}:null,Ni=(i,e)=>{let t=e.url.replace(/^\/agentos/,"");return g(F).parseUrl(t.startsWith("/")?t:`/${t}`)},En=[{matcher:Pi,canActivate:[Ni],children:[]},{path:"welcome",canActivate:[Sn],loadComponent:()=>import('./chunk-Vj6PaaqT.js').then(i=>i.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[_n],loadChildren:()=>import('./chunk-P1kjpuYu.js').then(function(n){return n.ad}).then(i=>i.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ci=5e3;function vn(t){return B$3(this,arguments,function*(i,e=Ci){yield Dy(i.loadMe().pipe(Oy(e),ga(s=>(console.warn("Failed to load current user",s),_r$1(null)))),{defaultValue:null});})}function Mi(i){return ()=>B$3(null,null,function*(){let{UserStateService:e}=yield import('./chunk-P1kjpuYu.js').then(function(n){return n.ad});yield vn(i.get(e));})}function Di(i){return ()=>B$3(null,null,function*(){try{let{CompanionStateService:e,GlobalStreamService:t,TabCoordinatorService:s}=yield import('./chunk-P1kjpuYu.js').then(function(n){return n.ad});Jn$2(i,()=>{i.get(s).start();}),i.get(t).start(),i.get(e).startSse();}catch(e){console.warn("Failed to start the companion notification stream",e);}})}var Tn={providers:[Vv(),eV({eventCoalescing:true}),ia(En),wS(),yn(),{provide:Ce$2,useValue:{duration:3e3}},{provide:dl,useFactory:Mi,deps:[he$5],multi:true},Ad({basePath:"/api/agentos"}),{provide:dl,useFactory:Di,deps:[he$5],multi:true},{provide:de$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Fi(i,e){i&1&&(Is$1(0,"div",0),hg(1,"div",2),Is$1(2,"p"),UC(3,"Loading Coday\u2026"),ml()());}function ki(i,e){if(i&1){let t=aC();Is$1(0,"div",1)(1,"p"),UC(2,"Coday could not load this page."),ml(),Is$1(3,"button",3),Eg("click",function(){mf(t);let n=fC();return yf(n.reload())}),UC(4,"Reload"),ml()();}}var Ri=i=>i instanceof re$1?"pending":i instanceof de$1?"failed":"idle",je=class i{title="client";phase=F$1(g(F).events.pipe(Ot$1(e=>e instanceof re$1||e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(Ri)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xw({type:i,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,s){if(t&1&&(Qw(0,Fi,4,0,"div",0)(1,ki,5,0,"div",1),hg(2,"router-outlet")),t&2){let n;Kw((n=s.phase())==="pending"?0:n==="failed"?1:-1);}},dependencies:[oa,br],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};Kb(je,Tn).catch(i=>console.error(i));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(i=>console.error("[SW] Registration failed:",i));});export{Sr$1 as $,A$1 as A,B$3 as B,ch as C,AC as D,ry as E,F,y as G,L$2 as H,Is$1 as I,we$2 as J,KE as K,Lg as L,U$2 as M,Ng as N,w$1 as O,x$1 as P,Qw as Q,pg as R,Eg as S,VI as T,UC as U,V$1 as V,W$1 as W,UI as X,br as Y,W$3 as Z,_o$1 as _,hg as a,EC as a$,ke$3 as a0,ma as a1,ga as a2,rn$2 as a3,G$1 as a4,jg as a5,Ee$2 as a6,Ed as a7,A$2 as a8,Ln$3 as a9,N$1 as aA,K$3 as aB,QB as aC,Ne$2 as aD,Sg as aE,DC as aF,ee$4 as aG,Jy as aH,an$2 as aI,Ot$1 as aJ,cn$2 as aK,Re$3 as aL,le$3 as aM,T$1 as aN,ge$4 as aO,Ce$4 as aP,di$3 as aQ,Q as aR,Ob as aS,$g as aT,Ug as aU,oT as aV,rT as aW,fT as aX,ZC as aY,D$1 as aZ,Dy as a_,J$1 as aa,F$1 as ab,_r$1 as ac,le$4 as ad,Ny as ae,ne$3 as af,Zw as ag,_$1 as ah,U$4 as ai,_e$3 as aj,Ge$2 as ak,Le$1 as al,Dd as am,Je$2 as an,Ye$1 as ao,Xw as ap,Fe$2 as aq,Jw as ar,k$1 as as,F$3 as at,We$1 as au,_y as av,$t as aw,uT as ax,dT as ay,iE as az,Kw as b,Ca as b$,Y$2 as b0,De$2 as b1,A$3 as b2,z$2 as b3,Ae$2 as b4,ZB as b5,qB as b6,On$3 as b7,el as b8,ll as b9,ri$2 as bA,W$2 as bB,$e$2 as bC,at$2 as bD,cs as bE,pt$3 as bF,xe$1 as bG,xy as bH,en$1 as bI,ug as bJ,tT as bK,Cg as bL,U$5 as bM,we$1 as bN,L$1 as bO,Zn$2 as bP,Os$1 as bQ,gt$2 as bR,_t$3 as bS,sg as bT,Ke$2 as bU,Mo$1 as bV,_t$4 as bW,Ce$5 as bX,Oe$1 as bY,si$2 as bZ,Ay as b_,yt$3 as ba,Tg as bb,yC as bc,vC as bd,KT as be,hC as bf,gC as bg,Ni$2 as bh,di$2 as bi,YB as bj,tV as bk,md as bl,Sd as bm,T$4 as bn,Ps$1 as bo,Ur as bp,We$2 as bq,Pp as br,Dr$1 as bs,dm as bt,_E as bu,Ea as bv,Se$2 as bw,ee$5 as bx,em as by,qs$1 as bz,xg as c,et as c$,S$2 as c0,Mf as c1,yr$1 as c2,mt$3 as c3,G$2 as c4,Md as c5,Cn$2 as c6,Ht as c7,yn$1 as c8,Ft$1 as c9,pi$3 as cA,ue$3 as cB,Ie$2 as cC,me$3 as cD,ie$2 as cE,Mn$2 as cF,Qe$2 as cG,Rb as cH,Ke$3 as cI,Oy as cJ,yd as cK,ya as cL,dn$1 as cM,lE as cN,uE as cO,Zy as cP,Xy as cQ,ev as cR,Id as cS,Ky as cT,ve$2 as cU,ne$2 as cV,he$4 as cW,KB as cX,DT as cY,Mb as cZ,ae$2 as c_,ZI as ca,v as cb,ht$3 as cc,wi$2 as cd,Ln$2 as ce,Da as cf,$y as cg,Fs$1 as ch,Ke$4 as ci,hn$1 as cj,Si$3 as ck,Tu as cl,Pw as cm,CS as cn,fr$1 as co,m$2 as cp,ye$4 as cq,_b as cr,cg as cs,yg as ct,pT as cu,ta as cv,vr$1 as cw,Fy as cx,va as cy,qy as cz,Ig as d,re$3 as d0,pe$4 as d1,Ia as d2,ze$2 as d3,Nf as d4,pe$5 as d5,nV as d6,ce as d7,pt$2 as d8,Xe as d9,Ze$2 as da,Ab as db,R$2 as dc,Me$2 as dd,zy as de,KC as df,Gg as dg,YC as dh,iT as di,Vg as dj,QC as dk,sT as dl,Hg as dm,uh as dn,XB as dp,bg as dq,fe$4 as dr,Bg as ds,ee$3 as e,gg as f,g,he$5 as h,vg as i,fg as j,yT as k,eC as l,ml as m,f$1 as n,nT as o,Ff as p,Il as q,fC as r,aC as s,tC as t,mf as u,vl as v,yf as w,xw as x,yl as y,zi$2 as z};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whoz-oss/coday-client",
3
- "version": "0.0.0-workstream-forge.329",
3
+ "version": "0.0.0-workstream-forge.330",
4
4
  "repository": "https://github.com/whoz-oss/coday",
5
5
  "type": "module",
6
6
  "dependencies": {