1import{a as ls}from"./chunk-OJWWHKMI.js";import{a as yi}from"./chunk-WQ2FTVRU.js";import{a as Ir}from"./chunk-BSADMLWX.js";import{a as ro,b as Or}from"./chunk-FVGAHRE5.js";import{b as us}from"./chunk-GA2R3TFR.js";import{a as Qr}from"./chunk-JT5JYYC5.js";import{a as ki}from"./chunk-NB33KLI3.js";import{b as es,c as ts}from"./chunk-WAH6E2QX.js";import{a as as}from"./chunk-BCF6FVFM.js";import{a as Rr,b as Fr}from"./chunk-Y6IRWYUU.js";import{a as os}from"./chunk-7ESWVKQN.js";import{a as Zr}from"./chunk-YUVXMVI3.js";import{a as Un}from"./chunk-ACNGFR7Z.js";import{a as ns}from"./chunk-YEXZS2KA.js";import"./chunk-E3D7I6AV.js";import{f as Ar}from"./chunk-HUPDISFP.js";import{a as Hr}from"./chunk-BZK2AW4T.js";import"./chunk-VZC6BQ37.js";import"./chunk-PLPEPHST.js";import{a as Pr}from"./chunk-IJGR7EPI.js";import"./chunk-JCK32CP5.js";import{a as ao}from"./chunk-DFJ6J2YS.js";import"./chunk-HLYCFN5D.js";import"./chunk-E5F2MBDO.js";import{a as rs}from"./chunk-K6BVLAJK.js";import{a as Tn,c as dr,d as pr,i as bi,k as Mn,l as ur}from"./chunk-B6S35SLY.js";import{c as ss}from"./chunk-334LP2F6.js";import{a as ps}from"./chunk-6FIHNKJ4.js";import"./chunk-CAE4ICO3.js";import"./chunk-YUG2JL6U.js";import{a as Si}from"./chunk-KQRFEK4P.js";import"./chunk-2TBSZRDT.js";import{b as ds}from"./chunk-XEQHBZE6.js";import{g as Er,u as wi}from"./chunk-GHFRFOXT.js";import"./chunk-7E67MTAQ.js";import{a as Ti}from"./chunk-4DSRTYLV.js";import{a as cs}from"./chunk-D5VHO2PI.js";import{d as mr,e as Pn}from"./chunk-B72R3ZJP.js";import{b as Lr,c as Dr,d as Nr,f as Vr,g as zr,i as Br,j as jr,l as Ur,m as $r,o as qr,q as Kr}from"./chunk-KRTSLQMF.js";import{a as jt}from"./chunk-Y63BKOJN.js";import{i as is}from"./chunk-H4MSPNVB.js";import"./chunk-MLRTRRS4.js";import{a as Ue}from"./chunk-2XNXPWTZ.js";import"./chunk-7UKTFKEA.js";import{a as Mr}from"./chunk-3OVFN422.js";import"./chunk-ZO6XVO5J.js";import{a as _r,b as En,c as br,d as vr,e as xr,f as ht,g as kr}from"./chunk-JJBKNJQA.js";import"./chunk-E62YBNWS.js";import"./chunk-YZJGQLKX.js";import"./chunk-33B2EXHE.js";import{a as vi,b as xi}from"./chunk-GAKJIFLV.js";import"./chunk-WGAVVPVJ.js";import{M as Sr,e as wr}from"./chunk-FMACHGU5.js";import{a as Ci,c as fr}from"./chunk-6MO4MEQP.js";import"./chunk-B7B5WM7T.js";import{a as Tr}from"./chunk-UGDLC6EV.js";import"./chunk-B5NEAK4C.js";import{a as en,b as Gr}from"./chunk-STI6M6M4.js";import"./chunk-4XELXNAU.js";import{c as Wr}from"./chunk-VUSK6A5G.js";import"./chunk-AA6E7QXE.js";import{a as nt}from"./chunk-YC2LQGWC.js";import{a as tt}from"./chunk-AVUIAMLN.js";import{e as Pa}from"./chunk-ORUZXENT.js";import{c as lr,d as cr}from"./chunk-MWRFCOQ7.js";import"./chunk-5SBP4E5E.js";import{a as sr}from"./chunk-76AWZV6T.js";import{b as Yr}from"./chunk-2MQG4WTF.js";import{a as Xr}from"./chunk-DMOBTPUM.js";import{a as Jr}from"./chunk-CXZNORHP.js";import{b as Xa,c as Ja}from"./chunk-QKXAPJZD.js";import{b as Ua}from"./chunk-EHVP6BNY.js";import{c as gr}from"./chunk-ZPWLSZNP.js";import"./chunk-CXOUD4RQ.js";import{a as Wa,c as Ga,d as mi,e as fi}from"./chunk-5XRT37VR.js";import{a as Qa,b as Ya}from"./chunk-JVDOYGAC.js";import"./chunk-2D756CTA.js";import"./chunk-XKLJJFQ2.js";import"./chunk-PVDG46DZ.js";import{a as Bt}from"./chunk-HE3DNVQH.js";import{b as hr}from"./chunk-ETRBEHF2.js";import"./chunk-MS4AQ6UA.js";import"./chunk-XHUJPQ2Y.js";import"./chunk-NDUJRHP7.js";import"./chunk-CS3C5SJ4.js";import"./chunk-CWKOEHTM.js";import{b as zt}from"./chunk-OHFU4JPE.js";import{a as no,b as Za,c as er,g as hi,h as tr,i as nr}from"./chunk-ZQ4ABVVC.js";import"./chunk-XRGBTIZJ.js";import{b as Cr,c as yr}from"./chunk-43LBX2TZ.js";import{a as Me}from"./chunk-LLJMB2O3.js";import{b as wn,c as Sn}from"./chunk-M55ZOPUC.js";import"./chunk-RHPCBB4E.js";import{a as gi,d as ir,e as or,f as W,g as at,j as ar,k as oo,n as Zt,o as _i,p as jn,q as rr,r as Te}from"./chunk-7QXOYBX4.js";import{d as pi,e as Ba,f as Fe,g as ja,i as vn,j as xn,k as yn}from"./chunk-LMSH4NZU.js";import{a as X}from"./chunk-H2EPDQE7.js";import{D as di,G as za,a as La,b as Da,w as Va}from"./chunk-3NIFDC2L.js";import"./chunk-HMYTTUL2.js";import{a as Ha,b as kn}from"./chunk-BSLSRQA6.js";import"./chunk-Q2JHDKJO.js";import"./chunk-4AODPZAV.js";import"./chunk-PZRKOE6X.js";import{e as $a,i as qa,j as ui}from"./chunk-7REHTKXJ.js";import"./chunk-M4IR63WT.js";import{l as Vt,n as Le,q as pe}from"./chunk-YJ7YIWGB.js";import{i as je,j as ft,k as io,l as Z}from"./chunk-IBDXLMOX.js";import"./chunk-VC5P3N6Z.js";import{b as Ee,f as Aa,g as Oa,h as re,i as Re,k as Ia,l as Ra,m as Fa,n as de}from"./chunk-2QHMWW4R.js";import{K as se,S as Ka,T as Be,U as _e,a as Lt,k as Ea,w as Na,x as ke}from"./chunk-MN7B4JTZ.js";import{a as xa,b as ya,f as wa,g as Sa,h as ri,i as si,j as ka,k as Ta,m as li,n as Ma,o as ut}from"./chunk-FR6RKWXX.js";import{a as $}from"./chunk-6KZZVMZI.js";import{G as me,H as mt,c as ci,h as Dt,m as Nt}from"./chunk-SEB67MME.js";import{B as va,F as G,e as _a,f as ba,k as ae,l as Ca,r as et,s as pt,x as Cn}from"./chunk-2JLYSLH6.js";import{$ as ia,$a as ce,$b as fa,Db as D,Eb as K,Fa as E,Fb as U,Fc as Ft,Gb as Rt,I as vt,Ib as d,Jb as S,Ka as la,Kb as Ne,La as ca,Lb as Ve,Nb as to,O as eo,Ra as da,Rb as yt,Sa as Xt,Sb as wt,Ta as pa,Tb as St,Ua as ua,Wa as m,Xa as f,Xb as Jt,Ya as It,Yb as Bn,Za as xt,_a as le,a as Y,aa as B,ab as g,ac as ue,bb as r,bc as oe,cb as s,cc as _n,d as H,db as b,ea as zn,ec as ha,fa as oa,g as hn,ga as l,gb as ma,h as be,hb as Je,i as R,ib as Ze,jb as j,k as ta,kb as M,kc as We,ma as gn,mc as Ge,oa as aa,p as y,pc as ne,q as w,qa as ra,qb as x,r as Vn,ra as Yt,s as na,sa as C,sc as ga,t as At,tb as p,u as Ot,ua as sa,uc as bn,w as Zi,xb as ve,yb as xe,z as J,za as z,zb as ye}from"./chunk-7SVB7TYI.js";import{D as Xo,G as we,I as Nn,O as Et,T as Jo,Y as Zo,da as Ji,f as O,fa as T,g as un,ha as ea,p as ot,s as mn,t as fn}from"./chunk-DUAIDAS6.js";import{a as ze,b as pn,d as Yo,k as ee}from"./chunk-ZOCHBAGS.js";var Ae=t=>({"touch-target":t});function pc(t,o){if(t&1&&(r(0,"a",7),d(1,"Terms & Conditions"),s()),t&2){let e=p(2);g("ngClass",oe(2,Ae,e.isMobile))("routerLink","/pages/agreement/terms")}}function uc(t,o){if(t&1&&(r(0,"a",8),d(1,"Terms & Conditions"),s()),t&2){let e=p(2);g("ngClass",oe(2,Ae,e.isMobile))("href",e.params.termsAndConditionsURL,B)}}function mc(t,o){if(t&1&&(r(0,"a",10),d(1,"Privacy Policy"),s()),t&2){let e=p(2);g("ngClass",oe(1,Ae,e.isMobile))}}function fc(t,o){if(t&1&&(r(0,"a",8),d(1,"Privacy Policy"),s()),t&2){let e=p(2);g("ngClass",oe(2,Ae,e.isMobile))("href",e.params.privacyPolicyURL,B)}}function hc(t,o){if(t&1&&(r(0,"span",9),d(1,"\u2022"),s(),r(2,"a",16),d(3,"Refund Policy"),s()),t&2){let e=p(2);l(2),g("ngClass",oe(1,Ae,e.isMobile))}}function gc(t,o){if(t&1&&(r(0,"a",17),b(1,"img",18),s()),t&2){let e=p(3);
1g("ngClass",oe(2,Ae,e.isMobile))("href",e.mobileAppStatus.ios,B)}}function _c(t,o){if(t&1&&(r(0,"a",8),b(1,"img",19),s()),t&2){let e=p(3);g("ngClass",oe(2,Ae,e.isMobile))("href",e.mobileAppStatus.android,B)}}function bc(t,o){if(t&1&&(m(0,gc,2,4,"a",17),m(1,_c,2,4,"a",8)),t&2){let e=p(2);f(e.mobileAppStatus.ios!=null?0:-1),l(),f(e.mobileAppStatus.android!=null?1:-1)}}function Cc(t,o){if(t&1){let e=M();r(0,"a",20),x("click",function(){y(e);let i=p(2);return w(i.onInstallClick())}),r(1,"mat-icon",21),d(2,"system_update"),s()()}if(t&2){let e=p(2);g("ngClass",oe(1,Ae,e.isMobile))}}function vc(t,o){if(t&1&&(r(0,"a",14),b(1,"fa-icon",22),s()),t&2){let e=p(2);g("href",Bn("mailto:",e.fuseConfig.layout.footer.email),B)("ngClass",oe(4,Ae,e.isMobile)),l(),g("icon",e.faEnvelope)}}function xc(t,o){if(t&1&&(r(0,"a",14),b(1,"fa-icon",22),s()),t&2){let e=p(2);g("href",Jt(e.fuseConfig.layout.footer.facebook),B)("ngClass",oe(4,Ae,e.isMobile)),l(),g("icon",e.faFacebookSquare)}}function yc(t,o){if(t&1&&(r(0,"a",14),b(1,"fa-icon",22),s()),t&2){let e=p(2);g("href",Jt(e.fuseConfig.layout.footer.instagram),B)("ngClass",oe(4,Ae,e.isMobile)),l(),g("icon",e.faInstagram)}}function wc(t,o){if(t&1&&(r(0,"a",14),Vn(),r(1,"svg",23)(2,"g"),b(3,"path",24),s()()()),t&2){let e=p(2);g("href",Jt(e.fuseConfig.layout.footer.twitter),B)("ngClass",oe(3,Ae,e.isMobile))}}function Sc(t,o){if(t&1&&(r(0,"a",14),b(1,"fa-icon",22),s()),t&2){let e=p(2);g("href",Jt(e.fuseConfig.layout.footer.youtube),B)("ngClass",oe(4,Ae,e.isMobile)),l(),g("icon",e.faYoutube)}}function kc(t,o){if(t&1&&(r(0,"a",14),b(1,"fa-icon",22),s()),t&2){let e=p(2);g("href",Jt(e.fuseConfig.layout.footer.linkedin),B)("ngClass",oe(4,Ae,e.isMobile)),l(),g("icon",e.faLinkedin)}}function Tc(t,o){if(t&1&&(r(0,"a",14),b(1,"fa-icon",22),s()),t&2){let e=p(2);g("href",Jt(e.fuseConfig.layout.footer.forum),B)("ngClass",oe(4,Ae,e.isMobile)),l(),g("icon",e.faComments)}}function Mc(t,o){if(t&1&&(r(0,"a",25),b(1,"img",26),s()),t&2){let e=p(3);g("href",e.mobileAppStatus.android,B)}}function Pc(t,o){if(t&1&&(r(0,"div"),m(1,Mc,2,1,"a",25),s()),t&2){let e=p(2);l(),f(e.mobileAppStatus.android!=null?1:-1)}}function Ec(t,o){t&1&&b(0,"img",29)}function Ac(t,o){if(t&1&&(r(0,"div",15)(1,"a",27),b(2,"img",28),s(),m(3,Ec,1,0,"img",29),s()),t&2){let e=p(2);l(),g("href",Bn("https://registerplay.com/?ref=",e.siteName),B),l(2),f(e.siteName=="playaba"?3:-1)}}function Oc(t,o){if(t&1){let e=M();r(0,"div",4)(1,"div",5),d(2),s(),r(3,"div",6),m(4,pc,2,4,"a",7),m(5,uc,2,4,"a",8),r(6,"span",9),d(7,"\u2022"),s(),m(8,mc,2,3,"a",10),m(9,fc,2,4,"a",8),m(10,hc,4,3),r(11,"span",9),d(12,"\u2022"),s(),r(13,"a",11),x("click",function(i){y(e);let a=p();return w(a.openPrivacyChoices(i))}),d(14,"Privacy Options"),s()(),r(15,"div",12),m(16,bc,2,2),m(17,Cc,3,3,"a",13),m(18,vc,2,6,"a",14),m(19,xc,2,6,"a",14),m(20,yc,2,6,"a",14),m(21,wc,4,5,"a",14),m(22,Sc,2,6,"a",14),m(23,kc,2,6,"a",14),m(24,Tc,2,6,"a",14),s(),m(25,Pc,2,1,"div"),s(),m(26,Ac,4,3,"div",15)}if(t&2){let e=p();l(),g("ngClass",oe(19,Ae,e.isMobile)),l(),Ne("Copyright \xA9\xA0",e.params==null?null:e.params.siteName),l(2),f(e.params.termsAndConditionsURL==null?4:-1),l(),f(e.params.termsAndConditionsURL?5:-1),l(3),f(e.params.privacyPolicyURL==null?8:-1),l(),f(e.params.privacyPolicyURL?9:-1),l(),f(e.isUSASB?10:-1),l(3),g("ngClass",oe(21,Ae,e.isMobile)),l(3),f(!e.isMobile&&(e.mobileAppStatus.android!=null||e.mobileAppStatus.ios!=null)?16:-1),l(),f(e.pwaReady&&(e.canInstall||e.isIosInstallable)?17:-1),l(),f(e.fuseConfig.layout.footer.email?18:-1),l(),f(e.fuseConfig.layout.footer.facebook?19:-1),l(),f(e.fuseConfig.layout.footer.instagram?20:-1),l(),f(e.fuseConfig.layout.footer.twitter?21:-1),l(),f(e.fuseConfig.layout.footer.youtube?22:-1),l(),f(e.fuseConfig.layout.footer.faLinkedin?23:-1),l(),f(e.fuseConfig.layout.footer.forum?24:-1),l(),f(e.isMobile&&(e.mobileAppStatus.android!=null||e.mobileAppStatus.ios!=null)?25:-1),l(),f(e.hidePoweredBy?-1:26)}}function Ic(t,o){t&1&&(r(0,"a",57),d(1,"Refund Policy"),s(),b(2,"br"))}function Rc(t,o){if(t&1){let e=M();r(0,"div")(1,"div",46)(2,"div")(3,"a",47),d(4,"About USA Softball"),s(),b(5,"br"),r(6,"a",48),d(7,"National Office Staff"),s(),b(8,"br"),r(9,"a",49),d(10,"Memberships"),s(),b(11,"br"),s(),r(12,"div")(13,"a",50),d(14,"Team USA"),s(),b(15,"br"),r(16,"a",51),d(17,"Legacy Club & Fundraising"),s(),b(18,"br"),r(19,"a",52),d(20,"Safe Softball"),s(),b(21,"br"),s(),r(22,"div")(23,"a",53),d(24,"Store"),s(),b(25,"br"),r(26,"a",54),d(27,"Privacy Policy"),s(),b(28,"br"),m(29,Ic,3,0),r(30,"a",55),x("click",function(i){y(e);let a=p(2);return w(a.openPrivacyChoices(i))}),d(31,"Privacy Options"),s(),b(32,"br"),r(33,"a",56),d(34,"Site Map"),s(),b(35,"br"),s()()()}if(t&2){let e=p(2);l(29),f(e.isUSASB?29:-1)}}function Fc(t,o){t&1&&b(0,"hr",32)}function Lc(t,o){if(t&1&&(r(0,"a",27),b(1,"img",58),s()),t&2){let e=p(2);g("href",Bn("https://registerplay.com/?ref=",e.siteName),B)}}function Dc(t,o){t&1&&(r(0,"div",59)(1,"a",57),d(2,"Refund Policy"),s()())}function Nc(t,o){if(t&1&&(m(0,Dc,3,0,"div",59),r(1,"div",60)(2,"a",27),b(3,"img",58),s()()),t&2){let e=p(2);f(e.isUSASB?0:-1),l(2),g("href",Bn("https://registerplay.com/?ref=",e.siteName),B)}}function Vc(t,o){if(t&1&&(r(0,"div",3)(1,"div",30),b(2,"img",31),m(3,Rc,36,1,"div"),s(),m(4,Fc,1,0,"hr",32),r(5,"div",33),b(6,"img",34),m(7,Lc,2,2,"a",27),r(8,"div",35)(9,"a",36),b(10,"img",37),s(),r(11,"a",38),b(12,"img",39),s(),r(13,"a",40),b(14,"img",41),s(),r(15,"a",42),b(16,"img",43),s(),r(17,"a",44),b(18,"img",45),s()()(),m(19,Nc,4,3),s()),t&2){let e=p();g("ngClass",e.fuseConfig.layout.footer.background+" "+(e.isMobile?"font-size-14 text-center px-12":"font-size-16")),l(),g("ngClass",e.isMobile?"flex-center":"flex-justify"),l(2),f(e.isMobile?-1:3),l(),f(e.isMobile?-1:4),l(3),f(e.isMobile?-1:7),l(12),f(e.isMobile?19:-1)}}var Ut=(()=>{class t{_fuseConfigService;_renderer;dialog;_detectDevice;el;renderer;params=$.footerParams;
1mobileAppStatus={android:null,ios:null};pwaReady=$.pwaReady===!0;canInstall=!1;isIosInstallable=!1;deferredPrompt=null;fuseConfig;isMobile=!1;siteName=$.siteName;isUSASB=$.association=="usasb";hidePoweredBy=$.footerParams?.hidePoweredBy==!0||localStorage.getItem("mobileAppModeV2")!=null;faLinkedin=pr;faFacebookF=Tn;faFacebookSquare=ur;faInstagram=bi;faTwitter=Mn;faEnvelope=wr;faComments=Sr;faYoutube=dr;isHovered=!1;isVisited=!1;isActive=!1;linkActiveColor;customlinkActiveColorBg;customlinkActiveColorFg;_unsubscribeAll;onBeforeInstallPrompt(e){this.pwaReady&&(e.preventDefault(),this.deferredPrompt=e,this.canInstall=!0)}onAppInstalled(){this.canInstall=!1,this.isIosInstallable=!1,this.deferredPrompt=null}constructor(e,n,i,a,c,u){this._fuseConfigService=e,this._renderer=n,this.dialog=i,this._detectDevice=a,this.el=c,this.renderer=u,this._unsubscribeAll=new O,this._detectDevice.subscribeToLayoutChanges().pipe(T(this._unsubscribeAll)).subscribe(h=>{this._detectDevice.isBreakpointActive(tt.mobile)&&(this.isMobile=!!this._detectDevice.isBreakpointActive(tt.mobile))})}linkColor;detectIosInstallable(){if(!this.pwaReady)return;let e=(navigator.userAgent||"").toLowerCase(),n=/iphone|ipad|ipod/.test(e)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,i=navigator.standalone===!0||window.matchMedia("(display-mode: standalone)").matches;this.isIosInstallable=n&&!i}onInstallClick(){this.canInstall?this.installPWA():this.isIosInstallable&&this.dialog.open(_r,{width:"420px",maxWidth:"92vw"})}installPWA(){return ee(this,null,function*(){this.deferredPrompt&&(this.deferredPrompt.prompt(),yield this.deferredPrompt.userChoice,this.deferredPrompt=null,this.canInstall=!1)})}ngOnInit(){if(this.detectIosInstallable(),this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(a=>{this.fuseConfig=a,this.linkColor=this.fuseConfig?.layout?.footer?.customFooterForeground?.length>1?this.fuseConfig?.layout?.footer?.customFooterForeground:this.fuseConfig?.layout?.footer.background,this.addClassF
1orLinks(),this.addClassForRouterLinks()}),localStorage.getItem("mobileAppMode")==null&&localStorage.getItem("mobileAppModeV2")==null&&$.mobileAppURLs!=null){var e=(navigator.userAgent||window.navigator.userAgent)?.toLowerCase(),n=e.match(/iphone|ipad|ipod/i)?.index>-1,i=e.match(/android/i)?.index>-1;i&&$.mobileAppURLs.android!=null&&(this.mobileAppStatus.android=$.mobileAppURLs.android),n&&$.mobileAppURLs.ios!=null&&(this.mobileAppStatus.ios=$.mobileAppURLs.ios),!n&&!i&&(this.mobileAppStatus.android=$.mobileAppURLs.android??null,this.mobileAppStatus.ios=$.mobileAppURLs.ios??null)}}ngAfterViewInit(){this.addClassForLinks(),this.addClassForRouterLinks()}addClassForLinks(){if(this.linkColor==null||this.linkColor==null||this.linkColor=="")return;let e,n=this.el.nativeElement.querySelectorAll("a:not(.poweredBy)"),i=this.el.nativeElement.querySelector("#footerContainer");i&&(this.linkColor.indexOf("#")<0?(this.renderer.removeStyle(i,"color"),localStorage.setItem("lastLinkClass",this.linkColor)):(e=localStorage.getItem("lastLinkClass"),this.renderer.setStyle(i,"color",this.linkColor))),n.forEach(a=>{this.linkColor.indexOf("#")==0?(this.renderer.setStyle(a,"color",this.linkColor),e!=null&&this.renderer.removeClass(a,e)):(this.renderer.addClass(a,this.linkColor),this.renderer.removeStyle(a,"color"))})}addClassForRouterLinks(){if(this.linkColor==null||this.linkColor==null||this.linkColor=="")return;this.el.nativeElement.querySelectorAll("a[routerLink]").forEach(n=>{this.linkColor.indexOf("#")==0?this.renderer.setStyle(n,"color",this.linkColor):this.renderer.addClass(n,this.linkColor)})}openPrivacyChoices(e){e&&e.preventDefault(),this.dialog.open(Or,{width:"720px",maxWidth:"95vw",maxHeight:"90vh",data:{context:"dialog"}})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||t)(C(Z),C(Yt),C(Fe),C(nt),C(vt),C(Yt))};static \u0275cmp=z({type:t,selectors:[["footer"]],hostBindings:function(n,i){n&1&&x("beforeinstallprompt",function(c){return i.onBeforeInstallPrompt(c)},zn)("appinstalled",function(){return i.onAppInstalled()},zn)},decls:5,vars:6,consts:[[1,"text-center"],["id","footer-ad",1,"mat-elevation-z4","mx-auto","my-8","p-8","border-radius-4","fuse-white",2,"display","none","width","fit-content"],[3,"ngClass"],[1,"py-20","footerWrapper",2,"font-family","'Poppins', sans-serif",3,"ngClass"],[1,"px-12","py-32","footer-container","font-size-16",2,"display","flex","justify-content","space-between","align-items","center"],["id","footerContainer",3,"ngClass"],[1,"font-size-14","text-center"],["target","_blank",3,"ngClass","routerLink"],["target","_blank",3,"ngClass","href"],[1,"bull"],["href","/pages/agreement/privacy","target","_blank",3,"ngClass"],["href","#",3,"click","ngClass"],[2,"display","flex","gap","5px","align-items","center"],["title","Install app",2,"cursor","pointer","display","inline-flex","align-items","center","color","inherit",3,"ngClass"],["mat-icon-button","","target","_blank","rel","noreferrer",3,"ngClass","href"],[1,"mb-4","mt-8","flex-center","fuse-white-500"],["href","/pages/agreement/refund-policy","target","_blank",3,"ngClass"],["target","_blank",1,"mr-8",3,"ngClass","href"],["src","https://picture.nyc3.cdn.digitaloceanspaces.com/app-store.png",2,"max-height","30px"],["src","https://picture.nyc3.cdn.digitaloceanspaces.com/google-play.png",2,"max-height","30px"],["title","Install app",2,"cursor","pointer","display","inline-flex","align-items","center","color","inherit",3,"click","ngClass"],[2,"font-size","30px","width","30px","height","30px","line-height","30px","color","inherit"],[1,"fa-lg",3,"icon"],["viewBox","0 0 24 24","aria-hidden","true",2,"height","20px"],["fill","white","d","M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"],["target","_blank",3,"href"],["src","https://picture.nyc3.cdn.digitaloceanspaces.com/google-play.png"],["target","_blank",1,"poweredBy",3,"href"],["src","/assets/images/powered-by-rp.png"],["src","/assets/images/bose.png",1,"ml-24"],[1,"w-100-p",2,"gap","20px",3,"ngClass"],["src","https://picture.nyc3.digitaloceanspaces.com/usasb/3594762/cms-image-638876867595490410.png","alt","USA Softball Logo",2,"height","125px"],[2,"border-color","#2062c0","border-width","2px","margin","20p
1x 0"],[1,"w-100-p","usasb-footer-logos",2,"gap","20px"],["src","https://picture.nyc3.digitaloceanspaces.com/usasb/3594762/cms-image-638876874245427265.png",2,"height","50px"],[1,"flex-justify",2,"gap","10px"],["href","https://www.facebook.com/USASoftball/","target","_blank"],["src","/assets/social/circle-white/facebook.png","title","Facebook",1,"social-buttons",2,"height","32px"],["href","https://twitter.com/USASoftball","target","_blank"],["src","/assets/social/circle-white/twitter.png","title","Twitter",1,"social-buttons",2,"height","32px"],["href","https://www.instagram.com/usasoftball/","target","_blank"],["src","/assets/social/circle-white/instagram.png","title","Instagram",1,"social-buttons",2,"height","32px"],["href","https://www.youtube.com/usasoftball","target","_blank"],["src","/assets/social/circle-white/youtube.png","title","Youtube",1,"social-buttons",2,"height","32px"],["href","https://www.tiktok.com/@usasoftball","target","_blank"],["src","/assets/social/circle-white/tiktok.png","title","Tiktok",1,"social-buttons",2,"height","32px"],[1,"flex-justify",2,"gap","150px"],["href","https://www.usasoftball.com/about/",2,"color","#ffffff"],["href","https://www.usasoftball.com/about/national-office-staff/",2,"color","#ffffff"],["href","https://www.usasoftball.com/play-usa-softball/memberships/",2,"color","#ffffff"],["href","https://www.teamusa.org/",2,"color","#ffffff"],["href","https://www.usasoftball.com/team-usa/legacy-club-fundraising/",2,"color","#ffffff"],["href","https://www.usasoftball.com/safe-softball/",2,"color","#ffffff"],["href","https://www.usasoftballstore.com/",2,"color","#ffffff"],["href","https://www.usasoftball.com/privacy-policy/",2,"color","#ffffff"],["href","#",2,"color","#ffffff",3,"click"],["href","https://www.usasoftball.com/site-map/",2,"color","#ffffff"],["href","/pages/agreement/refund-policy","target","_blank",2,"color","#ffffff"],["src","/assets/images/powered-by-rp-white.png",2,"height","23px"],[1,"mt-20","text-center"],[1,"my-20","text-center"]],template:function(n,i){n&1&&(r(0,"div",0),b(1,"div",1),s(),r(2,"div",2),m(3,Oc,27,23)(4,Vc,20,6,"div",3),s()),n&2&&(l(2),K("background-color",i.fuseConfig.layout.footer.customFooterBackground)("color",i.fuseConfig.layout.footer.customFooterForeground),g("ngClass",i.fuseConfig.layout.footer.customFooterBackground?null:i.fuseConfig.layout.footer.background),l(),f(i.siteName!="usasb"?3:i.siteName=="usasb"||i.siteName=="usasb-aag"||i.siteName=="usasb-hof"?4:-1))},dependencies:[me,G,ae,Pn,mr,de,Re,_e,Be],styles:["[_ngcontent-%COMP%]:root{--rp-navy-900: #10243f;--rp-navy-800: #143b67;--rp-navy-700: #1a3668;--rp-navy-600: #244f7e;--rp-text: #122033;--rp-text-muted: #64798c;--rp-text-subtle: #667085;--rp-divider: #dce5ee;--rp-divider-soft: #e8edf3;--rp-border-control: #8792a5;--rp-surface: #ffffff;--rp-surface-tint: #f2f7fc;--rp-surface-head: #eef2f6;--rp-surface-sunken: #f7f9fc;--rp-ok-bg: #eaf6ea;--rp-ok-border: #7fb583;--rp-ok-fg: #2e7d32;--rp-warn-bg: #fff3e0;--rp-warn-border: #c9922f;--rp-warn-fg: #9a4a00;--rp-danger-bg: #ffebee;--rp-danger-border: #d97b7b;--rp-danger-fg: #c62828;--rp-info-bg: #eef2fb;--rp-info-border: #8fa6cf;--rp-info-fg: #244f7e;--rp-neutral-bg: #f1f3f6;--rp-neutral-border: #9aa4b2;--rp-neutral-fg: #5a6b7d;--rp-gold-bg: #fdf6e3;--rp-gold-ring: #d4a531;--rp-gold-fg: #6b4700;--rp-silver-bg: #f1f3f6;--rp-silver-ring: #9ba5b1;--rp-silver-fg: #48535f;--rp-bronze-bg: #f8ede6;--rp-bronze-ring: #c4855f;--rp-bronze-fg: #6e3b1d;--rp-focus-ring: #244f7e;--rp-radius-control: 6px;--rp-radius-card: 8px;--rp-radius-row: 10px;--rp-radius-panel: 16px;--rp-shadow-card: 0 1px 3px rgba(15, 31, 53, .05);--rp-shadow-panel: 0 1px 3px rgba(15, 31, 53, .04), 0 8px 32px rgba(15, 31, 53, .07)}[_nghost-%COMP%] .bull[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}[_nghost-%COMP%] .footer-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;margin-bottom:50px}@media screen and (max-width:959px){[_nghost-%COMP%] .footer-container[_ngcontent-%COMP%]{flex-direction:column}}@media screen and (min-width:960px){[_nghost-%COMP%] .footer-container[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}}.footerWrapper[_ngcontent-%COMP%]{background-color:#000;width:100%}.footerWrapper[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none}.footerWrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#ff6100;font-size:16px;text-decoration:none;transition:.2s all}.footerWrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus-visible{outline:2px solid #ffffff;outline-offset:2px}.footerWrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block;padding-right:20px;color:#fff;font-size:22px;transition:.2s all}.footerWrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .footerWrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .footerWrapper[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .footerWrapper[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .footerWrapper[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:16px}.footerWrapper[_ngcontent-%COMP%] img.logo[_ngcontent-%COMP%]{transition:.2s all}@media screen and (min-width:960px){.footerWrapper[_ngcontent-%COMP%]{padding-right:100px!important;padding-left:100px!important}}@media screen and (max-width:959px){.footerWrapper[_ngcontent-%COMP%]{padding-right:4px!important;padding-left:4px!important;text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px;place-content:center}}#footer_logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;min-width:100px;
1max-width:200px}.socialIcons[_ngcontent-%COMP%]{list-style-type:none;padding-left:15px}.socialIcons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.socialIcons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;font-size:16px}.footerTagline[_ngcontent-%COMP%]{font-size:12px;color:#5c6b78;font-family:Poppins,sans-serif;padding:10px 12px}@media screen and (max-width:959px){.colAboutUs[_ngcontent-%COMP%]{padding:0 20px}}.usasb-footer-logos[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;gap:20px}@media screen and (max-width:600px){.usasb-footer-logos[_ngcontent-%COMP%]{flex-direction:column;align-items:center}}"]})}return t})();var Bc=()=>[];function jc(t,o){t&1&&(r(0,"div",8),b(1,"mat-spinner",13),r(2,"p"),d(3,"Loading payment methods..."),s()())}function Uc(t,o){t&1&&(r(0,"div",9)(1,"mat-icon",14),d(2,"credit_card_off"),s(),r(3,"p",15),d(4,"No Saved Payment Methods"),s(),r(5,"p",16),d(6,"You don't have any saved cards or bank accounts yet."),s()())}function $c(t,o){t&1&&(r(0,"th",33),d(1,"Card Type"),s())}function qc(t,o){if(t&1&&(r(0,"td",34)(1,"div",35)(2,"div",36),b(3,"img",37),s(),r(4,"span",38),d(5),s()()()),t&2){let e=o.$implicit;l(3),g("src",e.iconPath,B)("alt",e.brand),l(2),S(e.cardType)}}function Kc(t,o){t&1&&(r(0,"th",33),d(1,"Card Number"),s())}function Hc(t,o){if(t&1&&(r(0,"td",39)(1,"span",40),d(2),s()()),t&2){let e=o.$implicit;l(2),Ne("\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ",e.last4)}}function Wc(t,o){t&1&&(r(0,"th",33),d(1,"Expires"),s())}function Gc(t,o){if(t&1&&(r(0,"td",39)(1,"span",41),d(2),We(3,"number"),s()()),t&2){let e=o.$implicit;l(2),Ve("",Ge(3,2,e.expMonth,"2.0-0"),"/",e.expYear)}}function Qc(t,o){t&1&&b(0,"th",42)}function Yc(t,o){if(t&1){let e=M();r(0,"td",43)(1,"div",44)(2,"button",45),x("click",function(i){let a=y(e).$implicit,c=p(3);return w(c.deleteCard(a,i))}),r(3,"mat-icon"),d(4,"delete"),s()()()()}if(t&2){let e=o.$implicit,n=p(3);l(2),U("spinner",n.deleting),g("disabled",n.deleting)("matTooltip",e.unremovable?"This card is set as card on file and cannot be removed":"Remove card"),l(),U("disabled",e.unremovable)}}function Xc(t,o){t&1&&b(0,"tr",46)}function Jc(t,o){if(t&1){let e=M();r(0,"tr",47),x("click",function(){let i=y(e).$implicit,a=p(3);return w(a.cardRowClick(i))}),s()}if(t&2){let e=o.$implicit;U("unremovable",e.unremovable)}}function Zc(t,o){if(t&1&&(r(0,"div",18)(1,"table",21),Je(2,22),E(3,$c,2,0,"th",23)(4,qc,6,3,"td",24),Ze(),Je(5,25),E(6,Kc,2,0,"th",23)(7,Hc,3,1,"td",26),Ze(),Je(8,27),E(9,Wc,2,0,"th",23)(10,Gc,4,5,"td",26),Ze(),Je(11,28),E(12,Qc,1,0,"th",29)(13,Yc,5,6,"td",30),Ze(),E(14,Xc,1,0,"tr",31)(15,Jc,1,2,"tr",32),s()()),t&2){let e=p(2);l(),g("dataSource",e.cards),l(13),g("matHeaderRowDef",e.displayedColumns),l(),g("matRowDefColumns",e.displayedColumns)}}function ed(t,o){t&1&&(r(0,"div",9)(1,"mat-icon",14),d(2,"credit_card"),s(),r(3,"p",15),d(4,"No Saved Cards"),s()())}function td(t,o){if(t&1){let e=M();r(0,"div",10)(1,"div",17)(2,"mat-icon"),d(3,"credit_card"),s(),r(4,"span"),d(5,"Credit/Debit Cards"),s()(),m(6,Zc,16,3,"div",18),m(7,ed,5,0,"div",9),r(8,"div",19)(9,"button",20),x("click",function(){y(e);let i=p(),a=D(19);return w(i.addCard(a))}),r(10,"mat-icon"),d(11,"add"),s(),d(12," Add Card "),s()()()}if(t&2){let e=p();l(6),f(e.cards.length>0?6:-1),l(),f(!e.loading&&e.cards.length===0?7:-1)}}function nd(t,o){t&1&&(r(0,"th",33),d(1,"Bank Name & Account Type"),s())}function id(t,o){if(t&1&&(r(0,"td",34)(1,"div",53)(2,"div",36),b(3,"img",37),r(4,"span",54),d(5),s()(),r(6,"span",55),d(7),s()()()),t&2){let e=o.$implicit;l(3),g("src",e.iconPath,B)("alt",e.accountType),l(2),S(e.institutionName),l(2),S(e.accountType)}}function od(t,o){t&1&&(r(0,"th",33),d(1,"Account Info"),s())}function ad(t,o){if(t&1&&(r(0,"td",39)(1,"div",56)(2,"span",57),d(3),s(),r(4,"span",58),d(5),s()()()),t&2){let e=o.$implicit;l(3),S(e.name),l(2),Ne("\u2022\u2022\u2022\u2022 ",e.last4)}}function rd(t,o){t&1&&b(0,"th",42)}function sd(t,o){t&1&&b(0,"td",34)}function ld(t,o){t&1&&b(0,"th",42)}function cd(t,o){if(t&1){let e=M();r(0,"td",43)(1,"div",44)(2,"button",45),x("click",function(i){let a=y(e).$implicit,c=p(3);return w(c.deleteBankAccount(a,i))}),r(3,"mat-icon"),d(4,"delete"),s()()()()}if(t&2){let e=o.$implicit,n=p(3);l(2),U("spinner",n.deleting),g("disabled",n.deleting)("matTooltip",e.unremovable?"This bank account is on file and cannot be removed":"Remove bank account"),l(),U("disabled",e.unremovable)}}function dd(t,o){t&1&&b(0,"tr",46)}function pd(t,o){if(t&1){let e=M();r(0,"tr",47),x("click",function(){let i=y(e).$implicit,a=p(3);return w(a.bankAccountRowClick(i))}),s()}if(t&2){let e=o.$implicit;U("unremovable",e.unremovable)}}function ud(t,o){if(t&1&&(r(0,"div",48)(1,"table",21),Je(2,49),E(3,nd,2,0,"th",23)(4,id,8,4,"td",24),Ze(),Je(5,50),E(6,od,2,0,"th",23)(7,ad,6,2,"td",26),Ze(),Je(8,51),E(9,rd,1,0,"th",29)(10,sd,1,0,"td",24),Ze(),Je(11,52),E(12,ld,1,0,"th",29)(13,cd,5,6,"td",30),Ze(),E(14,dd,1,0,"tr",31)(15,pd,1,2,"tr",32),s()()),t&2){let e=p(2);l(),g("dataSource",e.bankAccounts),l(13),g("matHeaderRowDef",e.bankDisplayedColumns),l(),g("matRowDefColumns",e.bankDisplayedColumns)}}function md(t,o){t&1&&(r(0,"div",9)(1,"mat-icon",14),d(2,"account_balance"),s(),r(3,"p",15),d(4,"No Saved Bank Accounts"),s()())}function fd(t,o){if(t&1&&(r(0,"div",10)(1,"div",17)(2,"mat-icon"),d(3,"account_balance"),s(),r(4,"span"),d(5,"Bank Accounts"),s()(),m(6,ud,16,3,"div",48),m(7,md,5,0,"div",9),s()),t&2){let e=p();l(6),f(e.bankAccounts.length>0?6:-1),l(),f(!e.loading&&e.bankAccounts.length===0?7:-1)}}function hd(t,o){if(t&1){let e=M();r(0,"div",59)(1,"div",60)(2,"div",5)(3,"mat-icon"),d(4,"add_card"),s(),r(5,"span",61),d(6,"Add New Card"),s()()(),r(7,"mat-dialog-content")(8,"div",62)(9,"mat-checkbox",63),St("ngModelChange",function(i){y(e);let a=p();return wt(a.agreeToTermsCard,i)||(a.agreeToTermsCard=i),w(i)}),d(10,"I understand that my card information will be saved only on Stripe, the payment processor, and it will not be stored on Register Play servers."),s(),b(11,"hr",64),r(12,"div",65),d(13,"Card Information"),s(),r(14,"tinc-stripe",66,2),x("paymentCallBack",function(i){y(e);let a=p();return w(a.saveCard(i))}),s()()(),r(16,"mat-dialog-actions",11)(17,"button",12),x("click",function(){y(e);let i=p();return w(i.closeAddCardModal())}),d(18,"Cancel"),s()()()}if(t&2){let e=p();l(9),yt("ngModel",e.agreeToTermsCard),l(5),g("cards",ue(7,Bc))("buttonDisabled",!e.agreeToTermsCard)("cardCollection",!0)("saveOnly",!0)("addCardMode",!0)("loading",e.addLoading)}}function gd(t,o){t&1&&(r(0,"div",72),d(1,"Please accept the above statement to start"),s())}function _d(t,o){if(t&1){let e=M();r(0,"div",67)(1,"div",60)(2,"div",5)(3,"mat-icon"),d(4,"account_balance"),s(),r(5,"span",61),d(6,"Add New Bank Account"),s()()()(),r(7,"mat-dialog-content")(8,"div",62)(9,"mat-checkbox",68),St("ngModelChange",function(i){y(e);let a=p();return wt(a.agreeToTermsBank,i)||(a.agreeToTermsBank=i),w(i)}),d(10,"I understand that my bank account information will be kept on the "),r(11,"u"),d(12,"Payment Processor"),s(),d(13,"."),b(14,"br")(15,"br"),d(16,"It WON'T be kept on "),r(17,"u"),d(18,"Register Play"),s(),d(19," systems."),s(),b(20,"hr",69),r(21,"div",70)(22,"button",71),x("click",function(){y(e);let i=p();return w(i.startBankAccountLinkingProcess())}),r(23,"mat-icon"),d(24,"add"),s(),d(25," Start the Process "),s()(),m(26,gd,2,0,"div",72),s()(),r(27,"mat-dialog-actions",11)(28,"button",12),x("click",function(){y(e);let i=p();return w(i.closeAddBankAccountModal())}),d(29,"Cancel & Close Window"),s()()}if(t&2){let e=p();l(9),yt("ngModel",e.agreeToTermsBank),l(13),U("spinner",e.bankAccountLinkingLoading),g("disabled",!e.agreeToTermsBank||e.bankAccountLinkingLoading),l(4),f(e.agreeToTermsBank?-1:26)}}var fs=(()=>{class t{dialogRef;data;api;notify;dialog4Add;cards=[];bankAccounts=[];loading=!0;deleting=!1;displayedColumns=["brand","number","expiry","actions"];bankDisplayedColumns=["institution","account","spacer","bankActions"];stripe;addLoading=!1;_unsubscribeAll=new O;constructor(e,n,i,a,c){this.dialogRef=e,this.data=n,this.api=i,this.notify=a,this.dialog4Add=c,this.stripe=Stripe($.
1stripeKey)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}ngOnInit(){this.getPaymentMethods()}getPaymentMethods(e=null){this.loading=!0,this.api.get("Billing/paymentMethods"+(e?"/"+e:""),!0).pipe(T(this._unsubscribeAll)).subscribe({next:n=>{this.cards=(n.cards||[]).map(i=>pn(ze({},i),{iconPath:this.getCardIconPath(i.brand,i.cardType)})),this.bankAccounts=(n.bankAccounts||[]).map(i=>pn(ze({},i),{iconPath:this.getBankAccountIconPath(i.accountType)})),this.loading=!1},error:n=>{this.loading=!1,this.notify.openToaster(n.error||"Failed to load payment methods","error")}})}cardRowClick(e){if(e.unremovable){this.notify.openInfoModal("This card is used as card on file and cannot be removed");return}}deleteCard(e,n){if(n?.stopPropagation(),e.unremovable){this.notify.openWarningModal("This card is used as card on file and cannot be removed");return}this.deleting=!0,this.api.delete(`Billing/card/${e.id}`,!0).pipe(T(this._unsubscribeAll)).subscribe({next:()=>{this.cards=this.cards.filter(i=>i.id!==e.id),this.deleting=!1,this.notify.openToaster("Card removed successfully","success")},error:i=>{this.deleting=!1,this.notify.openToaster(i.error||"Failed to remove card","error")}})}SVGIconMap={visa:"visa.svg",mastercard:"mastercard.svg",amex:"amex.svg","american express":"amex.svg",checking:"checking.svg",savings:"saving.svg"};getCardIconPath(e,n){return n?.toLowerCase()==="debit"?"assets/icons/cards/debit.svg":`assets/icons/cards/${this.SVGIconMap[e?.toLowerCase()]||"card-generic.svg"}`}getBankAccountIconPath(e){return`assets/icons/cards/${this.SVGIconMap[e?.toLowerCase()]||"checking.svg"}`}addCardModal=null;agreeToTermsCard=!1;addCard(e){this.addCardModal=this.dialog4Add.open(e,{width:"500px"})}closeAddCardModal(){this.addCardModal?.close(),this.agreeToTermsCard=!1}saveCard(e){this.notify.openToaster("Card added successfully","success"),this.getPaymentMethods("card"),this.addCardModal?.close()}agreeToTermsBank=!1;addBankAccountModal=null;addBankAccount(e){this.addBankAccountModal=this.dialog4Add.open(e,{width:"500px"})}bankAccountLinkingLoading=!1;startBankAccountLinkingProcess(){this.bankAccountLinkingLoading=!0,this.api.get("ACH/initateFCSession",!0).pipe(T(this._unsubscribeAll)).subscribe({next:e=>{this.stripe.collectFinancialConnectionsAccounts({clientSecret:e.client_secret}).then(n=>{this.bankAccountLinkingLoading=!1,n.error?this.notify.openErrorModal(n.error.message):n.financialConnectionsSession.accounts.length===0?this.notify.openErrorModal("No accounts were linked"):(this.api.post("ACH/saveAccounts",n.financialConnectionsSession.accounts,!0).pipe(T(this._unsubscribeAll)).subscribe({next:i=>{this.getPaymentMethods("bank")},error:i=>{this.notify.openErrorModal(i.error)}}),this.closeAddBankAccountModal(),this.notify.openToaster("Bank account linked successfully","success"))}).catch(n=>{this.bankAccountLinkingLoading=!1,this.notify.openErrorModal(n?.message||"Failed to connect bank account")}
1)},error:e=>{this.bankAccountLinkingLoading=!1,this.notify.openErrorModal(e.error)}})}bankAccountRowClick(e){if(e.unremovable){this.notify.openInfoModal("This bank account is used as bank account on file and cannot be removed");return}}deleteBankAccount(e,n){if(n?.stopPropagation(),e.unremovable){this.notify.openWarningModal("This bank account is used as bank account on file and cannot be removed");return}this.deleting=!0,this.api.delete(`Billing/bankAccount/${e.paymentMethodID}`,!0).pipe(T(this._unsubscribeAll)).subscribe({next:()=>{this.bankAccounts=this.bankAccounts.filter(i=>i.id!==e.id),this.deleting=!1,this.notify.openToaster("Bank account removed successfully","success")},error:i=>{this.deleting=!1,this.notify.openToaster(i.error||"Failed to remove bank account","error")}})}closeAddBankAccountModal(){this.addBankAccountModal?.close(),this.agreeToTermsBank=!1}close(){this.dialogRef.close()}static \u0275fac=function(n){return new(n||t)(C(pi),C(Ba),C(X),C(Te),C(Fe))};static \u0275cmp=z({type:t,selectors:[["payment-methods-modal"]],decls:22,vars:4,consts:[["addCardModalTemplate",""],["addBankAccountModalTemplate",""],["primaryCardForm",""],[1,"payment-methods-modal"],[1,"modal-header","primary-700"],[1,"header-content"],[1,"bold","font-size-22"],["mat-icon-button","",1,"close-btn",3,"click"],[1,"loading-container"],[1,"empty-state"],[1,"section-container"],["align","end"],["mat-button","",1,"grey-200",3,"click"],["diameter","40"],[1,"empty-icon"],[1,"empty-title"],[1,"empty-subtitle"],[1,"section-header","primary-fg"],[1,"cards-table-container"],[1,"text-center","my-12"],["mat-button","",1,"blue",3,"click"],["mat-table","",1,"cards-table",3,"dataSource"],["matColumnDef","brand"],["mat-header-cell","","class","text-center primary-50",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","number"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","expiry"],["matColumnDef","actions"],["mat-header-cell","","class","primary-50",4,"matHeaderCellDef"],["mat-cell","","class","actions-cell",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"unremovable","click",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"text-center","primary-50"],["mat-cell",""],[1,"card-type-container"],[1,"brand-cell"],[1,"brand-icon",3,"src","alt"],[1,"card-type"],["mat-cell","",1,"text-center"],[1,"card-number"],[1,"expiry"],["mat-header-cell","",1,"primary-50"],["mat-cell","",1,"actions-cell"],[1,"card-row-content"],["mat-icon-button","",1,"delete-btn",3,"click","disabled","matTooltip"],["mat-header-row",""],["mat-row","",3,"click"],[1,"bank-accounts-table-container"],["matColumnDef","institution"],["matColumnDef","account"],["matColumnDef","spacer"],["matColumnDef","bankActions"],[1,"account-type-container"],[1,"brand-name"],[1,"account-type"],[1,"account-info"],[1,"account-name"],[1,"account-number"],[1,"add-card-modal"],[1,"modal-header","primary","p-8"],[1,"h3"],[1,"form"],["name","agreeToTermsCard","color","primary",3,"ngModelChange","ngModel"],[1,"my-8"],[1,"h4","primary-fg","mt-8"],["btnText","Add Card",3,"paymentCallBack","cards","buttonDisabled","cardCollection","saveOnly","addCardMode","loading"],[1,"add-bank-account-modal"],["name","agreeToTermsBank","color","primary",3,"ngModelChange","ngModel"],[1,"my-20"],[1,"text-center","mt-16"],["mat-button","",1,"blue","btn-larger",3,"click","disabled"],[1,"text-center","mt-16","dark-orange-fg"]],template:function(n,i){if(n&1){let a=M();r(0,"div",3)(1,"div",4)(2,"div",5)(3,"mat-icon"),d(4,"wallet"),s(),r(5,"span",6),d(6,"PAYMENT METHODS"),s()(),r(7,"button",7),x("click",function(){return y(a),w(i.close())}),r(8,"mat-icon"),d(9,"close"),s()()(),r(10,"mat-dialog-content"),m(11,jc,4,0,"div",8),m(12,Uc,7,0,"div",9),m(13,td,13,2,"div",10),m(14,fd,8,2,"div",10),s(),r(15,"mat-dialog-actions",11)(16,"button",12),x("click",function(){return y(a),w(i.close())}),d(17,"Close"),s()()(),E(18,hd,19,8,"ng-template",null,0,ne)(20,_d,30,5,"ng-template",null,1,ne)}n&2&&(l(11),f(i.loading?11:-1),l(),f(!i.loading&&i.cards.length===0&&i.bankAccounts.length===0?12:-1),l(),f(i.loading?-1:13),l(),f((i.loading,-1)))},dependencies:[G,yn,xn,vn,pe,Le,Vt,_e,Be,Kr,Lr,Nr,jr,Vr,Dr,Ur,zr,Br,$r,qr,Bt,zt,xi,vi,Hr,Sn,wn,me,Dt,Nt,va],styles:[".payment-methods-modal[_ngcontent-%COMP%]{max-width:900px}@media(max-width:599px){.payment-methods-modal[_ngcontent-%COMP%]{min-width:unset;width:100%}}.modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;margin:-24px -24px 0;color:#fff}.modal-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:500}.modal-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px}.modal-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{color:#fff;opacity:.8}.modal-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{opacity:1}mat-dialog-content[_ngcontent-%COMP%]{min-height:200px;padding-top:24px!important}.loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;color:#0009}.loading-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:16px;font-size:14px}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;text-align:center}.empty-state[_ngcontent-%COMP%] .empty-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;
1height:64px;color:#0003;margin-bottom:16px}.empty-state[_ngcontent-%COMP%] .empty-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;color:#000000de;margin:0 0 8px}.empty-state[_ngcontent-%COMP%] .empty-subtitle[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin:0}.section-container[_ngcontent-%COMP%]{margin-bottom:24px}.section-container[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.section-container[_ngcontent-%COMP%] .cards-table[_ngcontent-%COMP%]{margin:0 -24px}.section-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:0 0 12px;font-size:18px;font-weight:600;color:#0009;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid rgba(0,0,0,.08);margin-bottom:0}.section-header[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.cards-container[_ngcontent-%COMP%]{margin:0 -24px}.cards-table[_ngcontent-%COMP%]{width:100%}.cards-table[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{font-weight:600;color:#000000de;padding:12px 16px;border-bottom:2px solid rgba(0,0,0,.12)}.cards-table[_ngcontent-%COMP%] td.mat-cell[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.06)}.cards-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background:#00000005}.card-type-container[_ngcontent-%COMP%], .account-type-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin-left:12px}.card-type-container[_ngcontent-%COMP%] .account-type[_ngcontent-%COMP%], .account-type-container[_ngcontent-%COMP%] .account-type[_ngcontent-%COMP%]{font-size:12px;text-transform:capitalize;font-weight:500;color:#00000080;letter-spacing:.5px}.card-type-container[_ngcontent-%COMP%] .card-type[_ngcontent-%COMP%], .account-type-container[_ngcontent-%COMP%] .card-type[_ngcontent-%COMP%]{font-size:12px;text-transform:uppercase;font-weight:500;color:#00000080;letter-spacing:.5px}.brand-cell[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.brand-cell[_ngcontent-%COMP%] .brand-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.brand-cell[_ngcontent-%COMP%] .brand-name[_ngcontent-%COMP%]{font-weight:500}.account-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.account-info[_ngcontent-%COMP%] .account-name[_ngcontent-%COMP%]{font-weight:500;color:#000000de}.account-info[_ngcontent-%COMP%] .account-number[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;font-size:12px;letter-spacing:1px;color:#00000080}.card-number[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;letter-spacing:1px;color:#000000b3}.expiry[_ngcontent-%COMP%]{color:#0009}.actions-cell[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}.card-row-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:8px}.card-on-file-msg[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#00000080;font-style:italic}.card-on-file-msg[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#0006}.delete-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#f44336;transition:opacity .2s ease}.delete-btn[_ngcontent-%COMP%] mat-icon.disabled[_ngcontent-%COMP%]{color:#00000042}.delete-btn[_ngcontent-%COMP%]:disabled mat-icon[_ngcontent-%COMP%]:not(.disabled){color:#00000042}.delete-btn[_ngcontent-%COMP%]:not(:disabled):hover mat-icon[_ngcontent-%COMP%]{opacity:.8}mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 24px;margin:0 -24px -24px;border-top:1px solid rgba(0,0,0,.12)}.cards-table-container[_ngcontent-%COMP%], .bank-accounts-table-container[_ngcontent-%COMP%]{max-height:262px;overflow-y:auto}.unremovable[_ngcontent-%COMP%]{background-color:#a8000005;opacity:.6;cursor:help}.cards-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .bank-accounts-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:700}.mdc-data-table__row[_ngcontent-%COMP%]:last-child > .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:auto}"]})}return t})();
1var Cd=(t,o)=>o.id;function vd(t,o){if(t&1){let e=M();r(0,"a",9),x("click",function(){let i=y(e).$implicit,a=p();return w(a.handleItemClick(i))}),r(1,"mat-icon",10),d(2),s(),r(3,"div",11)(4,"div",12),d(5),s(),r(6,"div",13),d(7),s()()()}if(t&2){let e=o.$implicit,n=p();g("routerLink",e.route),l(),g("ngClass",e.colorClass)("matBadge",e.id==="cart"&&n.cartItemCount>0?n.cartItemCount:null)("matBadgeHidden",e.id!=="cart"||n.cartItemCount===0),l(),S(e.icon),l(3),S(e.label),l(2),S(e.id==="cart"?n.cartItemCount>0?n.cartItemCount+" item(s)":"Empty":e.description)}}var hs=(()=>{class t{cd;popoverRef;_membershipService;_navigationService;_matIconRegistry;router;_detectDevice;_fuseConfigService;breakpointObserver;_matDialog;person={};paymentProfiles=$.features.paymentProfiles==null;isMobile=!1;fuseConfig;items=[];cartItemCount=0;_unsubscribeAll;trackById=Ir;constructor(e,n,i,a,c,u,h,_,v,k){this.cd=e,this.popoverRef=n,this._membershipService=i,this._navigationService=a,this._matIconRegistry=c,this.router=u,this._detectDevice=h,this._fuseConfigService=_,this.breakpointObserver=v,this._matDialog=k,this._unsubscribeAll=new O,c.registerFontClassAlias("fa"),this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(T(this._unsubscribeAll)).subscribe(N=>{this.isMobile=!!N.matches}),this.items.push({id:"1",icon:"account_circle",label:"My Profile",description:"",colorClass:"primary-300-fg",route:"pages/myAccount"})}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.person=this._membershipService.currentUser,$.features.myPayments==null&&this.items.push({id:"2",icon:"paid",label:"My Payments",description:"",colorClass:"primary-300-fg",route:"pages/payments"}),this._navigationService.shopEnabled&&this.items.push({id:"myOrders",icon:"receipt_long",label:"My Orders",description:"",colorClass:"primary-300-fg",route:"pages/shop/orders"}),this.items.push({id:"payment-methods",icon:"credit_card",label:"Payment Methods",description:"",colorClass:"primary-300-fg",route:null,action:"openPaymentMethods"}),this.person&&this.person.persona&&(this.person.persona.director||this.person.persona.hq||this.person.persona.tinc)&&this.paymentProfiles&&this.items.push({id:"3",icon:"payments",label:"Payments Profiles",description:"",colorClass:"primary-300-fg",route:"pages/payment-profiles"})}setStatus(e){this.cd.markForCheck()}close(){this.popoverRef.close()}logout(){window.logoutV2?.postMessage(""),window.logout?.postMessage(""),this._membershipService.logout(),this.router.navigateByUrl("pages/events"),this.close()}openPaymentMethods(){this.close(),this._matDialog.open(fs,{width:"90vw",maxWidth:"900px",height:"auto",maxHeight:"80vh",disableClose:!1})}handleItemClick(e){e.action==="openPaymentMethods"?this.openPaymentMethods():e.route&&(this.router.navigateByUrl(e.route),this.close())}static \u0275fac=function(n){return new(n||t)(C(Ft),C(en),C(Me),C(ft),C(Ka),C(re),C(nt),C(Z),C(ke),C(Fe))};static \u0275cmp=z({type:t,selectors:[["vex-toolbar-user-dropdown"]],decls:13,vars:3,consts:[[1,"dropdown"],[1,"dropdown-header",2,"display","flex","flex-direction","row","align-items","center","justify-content","space-between",3,"ngClass"],[1,"dropdown-heading"],[1,"dropdown-content"],["matRipple","",1,"notification","p-8",2,"display","flex","flex-direction","row","align-items","center","justify-content","flex-start","gap","16px",3,"routerLink"],[1,"dropdown-footer","w-100-p",2,"display","flex","flex-direction","row","align-items","center","justify-content","space-between"],["data-cy-ignore","","color","primary","mat-button","",1,"w-100-p",2,"justify-content","flex-start",3,"click"],[1,"material-icons"],[2,"font-size","16px","padding-left","8px"],["matRipple","",1,"notification","p-8",2,"display","flex","flex-direction","row","align-items","center","justify-content","flex-start","gap","16px",3,"click","routerLink"],["matBadgeColor","warn","matBadgeSize","small",3,"ngClass","matBadge","matBadgeHidden"],[2,"flex","1 1 auto"],[1,"notification-label"],[1,"notification-description"]],template:function(n,i){n&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),d(3),s()(),r(4,"div",3),le(5,vd,8,7,"a",4,Cd),s(),r(7,"div",5)(8,"a",6),x("click",function(){return i.logout()}),r(9,"span",7),d(10," logout "),s(),r(11,"span",8),d(12,"LOGOUT"),s()()()()),n&2&&(l(),g("ngClass",i.fuseConfig.layout.style=="horizontal-layout-1"?"warn":"primary"),l(2),Ve("",i.person.firstName," ",i.person.lastName),l(2),ce(i.items))},dependencies:[me,G,ae,de,Re,_e,Be,pe,Le,Fr,Rr],styles:["[_ngcontent-%COMP%]:root{--border-radius: 4px}.dropdown[_ngcontent-%COMP%]{background:var(--background-card);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;max-width:100vw;overflow:hidden;width:225px}.dropdown-header[_ngcontent-%COMP%]{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;padding:1rem 1rem 1rem .75rem}.dropdown-heading[_ngcontent-%COMP%]{font-size:16px}.dropdown-heading-icon[_ngcontent-%COMP%]{background:#fff3;border-radius:999999px}.dropdown-heading-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.dropdown-content[_ngcontent-%COMP%]{max-height:300px;overflow-x:hidden;overflow-y:auto}.dropdown-footer[_ngcontent-%COMP%]{background:var(--background-app-bar);border-top:1px solid var(--foreground-divider);padding:var(--padding-8) var(--padding-12)}.dropdown-footer-select[_ngcontent-%COMP%]{padding-left:var(--padding-12)}.dropdown-footer-select[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:not(.dropdown-footer-select-caret){margin-right:var(--padding-8);vertical-align:-7px!important}.dropdown-footer-select-caret[_ngcontent-%COMP%]{color:var(--text-hint);font-size:18px;height:18px;vertical-align:-4px!important;width:18px}.notification[_ngcontent-%COMP%]{color:var(--text-color);padding:var(--padding-16) var(--padding);position:relative;text-decoration:none;transition:var(--trans-ease-out);-webkit-user-select:none;user-select:none}.notification[_ngcontent-%COMP%]:hover{background:var(--background-hover);text-decoration:none!important}.notification[_ngcontent-%COMP%]:hover .notification-label[_ngcontent-%COMP%]{color:#5c77ff}.notification.read[_ngcontent-%COMP%]{opacity:.5}.notification-label[_ngcontent-%COMP%]{transition:inherit;font-size:16px}.notification-description[_ngcontent-%COMP%]{color:var(--text-secondary);font:var(--font-caption)}.notification-chevron[_ngcontent-%COMP%]{color:var(--text-hint);font-size:18px;height:18px;width:18px}.notification[_ngcontent-%COMP%] + .notification[_ngcontent-%COMP%]{border-top:1px solid var(--foreground-divider)}"],changeDetection:0})}return t})();var xd=(t,o,e,n)=>[t,o,e,n];function yd(t,o){if(t&1){let e=M();r(0,"tr")(1,"td"),d(2),s(),r(3,"td",8)(4,"a",9),x("click",function(){let i=y(e).$implicit,a=p(3);return w(a.go2Link("/pages/event/"+i._key))}),d(5),s()(),r(6,"td"),d(7),s(),r(8,"td"),d(9),s()()}if(t&2){let e=o.$implicit;l(2),S(e.sport),l(3),Ve("",e.name," (Director: ",e.director,")"),l(2),S(e.dates),l(2),S(e.location)}}function wd(t,o){if(t&1&&(r(0,"div",3),d(1,"Event"),s(),r(2,"table",4)(3,"thead",5)(4,"tr")(
15,"th",6),d(6,"Sport"),s(),r(7,"th",7),d(8,"Event"),s(),r(9,"th",6),d(10,"Dates"),s(),r(11,"th",6),d(12,"Location"),s()()(),r(13,"tbody"),le(14,yd,10,5,"tr",null,xt),s()()),t&2){let e=p(2);g("ngClass",e.fuseConfig.layout.pageheader.primaryBackground),l(14),ce(e.searchResults.events)}}function Sd(t,o){if(t&1){let e=M();r(0,"tr")(1,"td"),d(2),s(),r(3,"td",8)(4,"a",10),x("click",function(){let i=y(e).$implicit,a=p(3);return w(a.go2page("/pages/team/detail/"+i._key))}),d(5),s()(),r(6,"td"),d(7),s()()}if(t&2){let e=o.$implicit;l(2),S(e.sport),l(3),Ve("",e.class,"-",e.name),l(2),S(e.location)}}function kd(t,o){if(t&1&&(r(0,"div",3),d(1,"Teams"),s(),r(2,"table",4)(3,"thead",5)(4,"tr")(5,"th",6),d(6,"Sport"),s(),r(7,"th",7),d(8,"Name"),s(),r(9,"th",6),d(10,"Location"),s()()(),r(11,"tbody"),le(12,Sd,8,4,"tr",null,xt),s()()),t&2){let e=p(2);g("ngClass",e.fuseConfig.layout.pageheader.primaryBackground),l(12),ce(e.searchResults.teams)}}function Td(t,o){if(t&1&&(r(0,"tr")(1,"td"),d(2),s(),r(3,"td",8)(4,"a",11),We(5,"facilityDirectionsUrl"),d(6),s()(),r(7,"td"),d(8),s(),r(9,"td"),d(10),s()()),t&2){let e=o.$implicit;l(2),S(e.sports),l(2),g("href",Ge(5,5,ha(8,xd,e.name,e.address,e.location,e.zip).join(" "),e.coordinate),B),l(2),S(e.name),l(2),S(e.address),l(2),S(e.location)}}function Md(t,o){if(t&1&&(r(0,"div",3),d(1,"Facilities"),s(),r(2,"table",4)(3,"thead",5)(4,"tr")(5,"th",6),d(6,"Sports"),s(),r(7,"th",7),d(8,"Name"),s(),r(9,"th",6),d(10,"Address"),s(),r(11,"th",6),d(12,"Location"),s()()(),r(13,"tbody"),le(14,Td,11,13,"tr",null,xt),s()()),t&2){let e=p(2);g("ngClass",e.fuseConfig.layout.pageheader.primaryBackground),l(14),ce(e.searchResults.facilities)}}function Pd(t,o){if(t&1){let e=M();r(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){y(e);let i=p();return w(i.closeSearchResults())}),d(3," [X] Close"),s()(),m(4,wd,16,1),m(5,kd,14,1),m(6,Md,16,1),s()}if(t&2){let e=p();l(4),f(e.searchResults.events.length>0?4:-1),l(),f(e.searchResults.teams.length>0?5:-1),l(),f(e.searchResults.facilities.length>0?6:-1)}}var gs=(()=>{class t{api;router;notify;_fuseConfigService;_unsubscribeAll;showResults=!1;searchResults={facilities:[],teams:[],events:[]};_keyword;fuseConfig;set keyword(e){this._keyword=e,this.search()}constructor(e,n,i,a){this.api=e,this.router=n,this.notify=i,this._fuseConfigService=a,this._unsubscribeAll=new O}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e})}search(){this._keyword&&this._keyword.length>2&&(this.showResults=!0,this.api.get("GlobalSearch/"+this._keyword,!1).pipe(T(this._unsubscribeAll)).pipe(T(this._unsubscribeAll)).subscribe({next:e=>{this.searchResults=e,e.events.length==0&&e.teams.length==0&&e.facilities.length==0&&(this.notify.openToaster('No result found for "'+this._keyword+'"',"warning"),this.showResults=!1)},error:e=>{this.notify.openAlertModal(e.error?e.error:"An error has occured",yr.ERROR)}}))}closeSearchResults(){this.showResults=!1}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}go2page(e){}go2Link(e){this.closeSearchResults(),this.router.navigateByUrl(e)}static \u0275fac=function(n){return new(n||t)(C(X),C(re),C(Te),C(Z))};static \u0275cmp=z({type:t,selectors:[["tinc-gsr"]],inputs:{keyword:"keyword"},decls:1,vars:1,consts:[["id","dvGlobalSearchResults"],[1,"text-right","w-100-p"],["mat-button","",3,"click"],[1,"pl-8",3,"ngClass"],[1,"table","table-stripe","table-bordered","text-center","mx-auto"],[1,"thead-dark"],[1,"text-center"],[1,"wide"],[1,"text-left"],[2,"cursor","pointer",3,"click"],[3,"click"],["target","_blank",3,"href"]],template:function(n,i){n&1&&m(0,Pd,7,3,"div",0),n&2&&f(i.showResults?0:-1)},dependencies:[G,ae,pe,Le,de,Tr],styles:["#dvGlobalSearchResults[_ngcontent-%COMP%]{width:95%;height:500px;background-color:#cccccced;padding:5px 15px;position:absolute;top:65px;left:2.5%;font-size:14px;overflow-y:auto}#dvGlobalSearchResults[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], #dvGlobalSearchResults[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{white-space:nowrap}#dvGlobalSearchResults[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th.wide[_ngcontent-%COMP%]{width:75%}@media screen and (max-width:499px){#dvGlobalSearchResults[_ngcontent-%COMP%]{font-size:16px}}"]})}return t})();function Ed(t,o){t&1&&j(0)}var _s=(()=>{class t{popoverRef;renderMethod="component";content;template4Container;context;constructor(e){this.popoverRef=e}ngOnInit(){this.content=this.popoverRef.content,this.template4Container=this.content,typeof this.content=="string"&&(this.renderMethod="text"),this.content instanceof aa&&(this.renderMethod="template",this.context={close:this.popoverRef.close.bind(this.popoverRef)})}static \u0275fac=function(n){return new(n||t)(C(en))};static \u0275cmp=z({type:t,selectors:[["ng-component"]],decls:2,vars:1,consts:[[1,"popover"],[4,"ngComponentOutlet"]],template:function(n,i){n&1&&(r(0,"div",0),ua("popover-leave"),pa("popover-enter"),E(1,Ed,1,0,"ng-container",1),s()),n&2&&(l(),g("ngComponentOutlet",i.template4Container))},dependencies:[G,Ca,za],styles:[".popover-enter[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_popoverEnter .25s cubic-bezier(0,0,.2,1) both}.popover-leave[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_popoverLeave .1s linear both}@keyframes _ngcontent-%COMP%_popoverEnter{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@keyframes _ngcontent-%COMP%_popoverLeave{0%{opacity:1}to{opacity:0}
1}"]})}return t})();var bs=(()=>{class t{overlay;injector;constructor(e,n){this.overlay=e,this.injector=n}open({origin:e,content:n,data:i,width:a,height:c,position:u,offsetX:h,offsetY:_}){let v=this.overlay.create(this.getOverlayConfig({origin:e,width:a,height:c,position:u,offsetX:h,offsetY:_})),k=new en(v,n,i),N=this.createInjector(k,this.injector);return v.attach(new La(_s,null,N)),k}createInjector(e,n){return At.create({providers:[{provide:en,useValue:e}],parent:n})}getOverlayConfig({origin:e,width:n,height:i,position:a,offsetX:c,offsetY:u}){return new Va({hasBackdrop:!0,width:n,height:i,backdropClass:"popover-backdrop",positionStrategy:this.getOverlayPosition({origin:e,position:a,offsetX:c,offsetY:u}),scrollStrategy:this.overlay.scrollStrategies.reposition()})}getOverlayPosition({origin:e,position:n,offsetX:i,offsetY:a}){return this.overlay.position().flexibleConnectedTo(e).withPositions(n||this.getPositions()).withFlexibleDimensions(!0).withDefaultOffsetY(a||0).withDefaultOffsetX(i||0).withTransformOriginOn(".popover").withPush(!0)}getPositions(){return[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"}]}static \u0275fac=function(n){return new(n||t)(be(di),be(At))};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Od=[["events","printBracket"],["events","printPool"],["printScoreSheet"],["events","roundGameReport"],["score"],["scoreboard"],["remote-login"]],Id=[{pattern:["event","detail",":id"],type:"event",keyParam:"id"},{pattern:["event","detail",":id",":tabName"],type:"event",keyParam:"id"},{pattern:["event","detailV2",":id"],type:"event",keyParam:"id"},{pattern:["event","detailV2",":id",":tabName"],type:"event",keyParam:"id"},{pattern:["event","detailV1",":id"],type:"event",keyParam:"id"},{pattern:["event","detailV1",":id",":tabName"],type:"event",keyParam:"id"},{pattern:["event","ddetail",":id"],type:"event",keyParam:"id"},{pattern:["event",":id","div",":divID"],type:"event",keyParam:"id"},{pattern:["event",":id","age",":age"],type:"event",keyParam:"id"},{pattern:["event",":id",":teamID"],type:"event",keyParam:"id"},{pattern:["event",":id"],type:"event",keyParam:"id"},{pattern:["team","detail",":id"],type:"team",keyParam:"id"},{pattern:["team","detail",":id",":entryID"],type:"team",keyParam:"id"},{pattern:["team","detail",":id","activity",":activityID",":popup"],type:"team",keyParam:"id"},{pattern:["team",":id","nominate-players"],type:"team",keyParam:"id"},{pattern:["player",":playerID"],type:"player",keyParam:"playerID"},{pattern:["player",":playerID",":name"],type:"player",keyParam:"playerID"},{pattern:["person",":playerID"],type:"player",keyParam:"playerID"},{pattern:["person",":playerID",":name"],type:"player",keyParam:"playerID"}],Rd={event:t=>["/pages/event","detail",t],team:t=>["/pages/team","detail",t],player:t=>["/pages/player",t]};function Cs(t){if(!t)return[];let e=t.split("#")[0].split("?")[0].split("/").filter(n=>n.length>0).map(n=>{try{return decodeURIComponent(n)}catch{return n}});return e[0]==="pages"?e.slice(1):e}function vs(t){let o=Cs(t);return Od.some(e=>e.length<=o.length&&e.every((n,i)=>n===o[i]))}function xs(t){let o=Cs(t);for(let e of Id){if(e.pattern.length!==o.length)continue;let n=null,i=!0;for(let a=0;a<e.pattern.length;a++){let c=e.pattern[a];if(c.charAt(0)===":"){c.substring(1)===e.keyParam&&(n=o[a]);continue}if(c!==o[a]){i=!1;break}}if(i&&n)return{type:e.type,key:n,url:t}}return null}function po(t,o){if(!t||!o)return null;let e=Rd[t];return e?e(o):null}var On=(()=>{class t{router=R(re);_current=null;_suppressed=!1;constructor(){this.apply(this.router.url),this.router.events.pipe(we(e=>e instanceof Ee)).subscribe(e=>{this.apply(e.urlAfterRedirects)})}current(){return this._current}suppressed(){return this._suppressed}apply(e){this._current=xs(e),this._suppressed=vs(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ld=["p","br","strong","em","s","h1","h2","h3","h4","ul","ol","li","blockquote","code","pre","a","hr","table","thead","tbody","tr","th","td"],Hn=null,ys=null,uo=null;function mo(){return!!Hn}function ws(){return Hn?Promise.resolve():(uo=uo||import("./chunk-UK5FCQ4W.js").then(t=>{ys=t.createMarkdownParser(),Hn=t}),uo)}function Ss(t){return!Hn||!t||!t.trim()?"":Hn.sanitizeRenderedMarkdown(ys.render(t),{allowedTags:Ld,visibleSelector:"hr"})}
1var ks=8e3,Dd=100,$e=class extends Error{unfilled;constructor(o,e){super(o),this.unfilled=e}};function Nd(t){return new Promise(o=>setTimeout(o,t))}var Ts=(()=>{class t{router=R(re);dialog=R(Fe);bridge=R(Qr);fill=R(Yr);generation=0;cancel(){this.generation++}run(e,n,i=()=>{},a=()=>{}){return ee(this,null,function*(){let c=++this.generation,u=[...e||[]].sort((h,_)=>(h?.seq??0)-(_?.seq??0));if(n.length=0,u.forEach(h=>n.push({seq:h.seq,kind:h.kind,label:this.labelFor(h),state:"notRun"})),i(),!!u.length){a();for(let h=0;h<u.length;h++){if(c!==this.generation)return;let _=n[h];_.state="running",i();try{let v=yield this.runOne(u[h],c);if(c!==this.generation)return;_.state="done",v.detail&&(_.detail=v.detail),v.filled&&(_.filled=v.filled),v.unfilled?.length&&(_.unfilled=v.unfilled)}catch(v){if(c!==this.generation)return;_.state="failed",_.detail=v instanceof $e?v.message:"Something went wrong on this page.",v instanceof $e&&v.unfilled&&(_.filled=[],_.unfilled=v.unfilled),i();return}i()}}})}labelFor(e){if(e?.label)return e.label;switch(e?.kind){case"navigate":return`Opened ${e.route||"a page"}`;case"open_tab":return`Opened the ${e.subTabId||e.tabId||"requested"} tab`;case"click":return`Pressed ${e.id||"a button"}`;case"fill":return`Filled ${Object.keys(e.fields||{}).join(", ")||"the form"}`;default:return e?.kind||"Action"}}runOne(e,n){return ee(this,null,function*(){switch(e.kind){case"navigate":return yield this.navigate(e,n),{};case"open_tab":return yield this.openTab(e.tabId,e.subTabId,null,n),{};case"click":return yield this.click(e,n),{};case"fill":return this.fillForm(e);default:throw new $e("This version of the page does not know that step.")}})}navigate(e,n){return ee(this,null,function*(){let i=(e.route||"").trim();if(!i.startsWith("/pages/"))throw new $e("That is not a page in RegisterPlay.");if((this.router.url.split(/[?#]/)[0]===i.split(/[?#]/)[0]?!0:yield this.router.navigateByUrl(i))===!1)throw new $e("That page could not be opened.");let u=i.split("?")[0].match(/^\/pages\/event\/detail\/([^/]+)\/([^/]+)$/),h=e.subTabId||this.router.parseUrl(i).queryParams.sub;(u||h)&&(yield this.openTab(e.tabId||u?.[2],h,u?.[1]??null,n))})}openTab(e,n,i,a){return ee(this,null,function*(){if(!e)throw new $e("No tab was named.");let c=yield this.waitFor(()=>{let u=this.bridge.eventDetail;return u&&(i==null||u.eventID==i)?u:null},a);if(!c)throw new $e("The event page did not finish loading.");if(!c.isTabVisible(e))throw new $e("That tab is not available to you on this event.");c.go2tab(n?{tabID:e,subTabID:n}:{tabID:e})})}click(e,n){return ee(this,null,function*(){let i=e.id||"";if(i.startsWith("dialog:")){let u=i.substring(7),h=yield this.loadDialogRegistry(),_=h.AGENT_DIALOGS[u];if(!_)throw new $e("This version of the page cannot open that window.");let v={};for(let k of _.data)e.data&&k in e.data&&(v[k]=e.data[k]);this.dialog.open(_.component,h.agentDialogConfig(u,v));return}if(!i)throw new $e("No button was named.");let a=!1,c=yield this.waitFor(()=>{let u=this.findTarget(i);return u&&(a=!0),u&&!this.isDisabled(u)?u:null},n);if(!c)throw new $e(a?"The button is not available right now.":"The button was not found on this page.");c.click()})}fillForm(e){return ee(this,null,function*(){let n=yield this.fill.request(e.fields||{},e.source||"",ks);if(!n.filled.length){let i=n.unfilled[0]?.reason||"Nothing could be filled.";throw new $e(i,n.unfilled)}return n.unfilled.length?{detail:"Could not fill: "+n.unfilled.map(i=>i.name).join(", "),filled:n.filled,unfilled:n.unfilled}:{filled:n.filled}})}loadDialogRegistry(){return import("./chunk-DTMVJ65X.js")}findTarget(e){let n=`[data-agent="${CSS.escape(e)}"]`,i=this.dialog.openDialogs,a=i.length&&document.getElementById(i[i.length-1].id)||document;return Array.from(a.querySelectorAll(n)).find(u=>u.getClientRects().length>0)||null}isDisabled(e){return e.disabled===!0||e.getAttribute("aria-disabled")==="true"}waitFor(e,n){return ee(this,null,function*(){let i=Date.now()+ks;for(;;){if(n!==this.generation)return null;let a=e();if(a)return a;if(Date.now()>=i)return null;yield Nd(Dd)}})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var fo="rp.agent.micDeviceId",In=(()=>{class t{devices=R(Wn);selectedId=J(Vd());options=J([]);needsPermission=J(!0);blocked=J(!1);checkedId=bn(()=>{let e=this.selectedId();return e&&this.options().some(n=>n.id===e)?e:null});listening=!1;refresh(){return ee(this,null,function*(){if(!this.devices.enumerateDevices)return;!this.listening&&this.devices.onDeviceChange&&(this.listening=!0,this.devices.onDeviceChange(()=>
1this.refresh()));let e=[];try{e=yield this.devices.enumerateDevices()}catch{e=[]}let n=e.filter(a=>a.kind==="audioinput");if(!n.length||n.every(a=>!a.label)){this.needsPermission.set(!0),this.options.set([]);return}this.needsPermission.set(!1),this.blocked.set(!1);let i=n.find(a=>a.deviceId==="default");this.options.set([{id:null,label:i?.label||"Default"},...n.filter(a=>a.deviceId!=="default").map((a,c)=>({id:a.deviceId,label:a.label||`Microphone ${c+1}`}))])})}allow(){return ee(this,null,function*(){try{(yield this.devices.getUserMedia({audio:!0})).getTracks().forEach(n=>n.stop())}catch(e){(e?.name==="NotAllowedError"||e?.name==="SecurityError")&&this.blocked.set(!0);return}yield this.refresh()})}choose(e){this.selectedId.set(e||null);try{e?localStorage.setItem(fo,e):localStorage.removeItem(fo)}catch{}}audioConstraints(){let e=this.selectedId(),n={channelCount:1,echoCancellation:!0,noiseSuppression:!0};return e&&(n.deviceId={exact:e}),n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vd(){try{return localStorage.getItem(fo)||null}catch{return null}}var Wn=new hn("AGENT_VOICE_DEVICES",{providedIn:"root",factory:()=>({getUserMedia:t=>navigator.mediaDevices.getUserMedia(t),createAudioContext:()=>new AudioContext,createWorkletNode:(t,o)=>new AudioWorkletNode(t,o),createSocket:t=>new WebSocket(t),enumerateDevices:()=>navigator.mediaDevices.enumerateDevices(),onDeviceChange:t=>navigator.mediaDevices.addEventListener("devicechange",t)})}),go=16e3,Gn=1600,Ms=5e3,zd=2e3,Bd=120*1e3,Ps=go*5,jd=5e3,Ud=.01,$d=4e3,qd="wss://api.elevenlabs.io/v1/speech-to-text/realt
1ime",As="rp-voice-tap",Kd=` 2class RpVoiceTap extends AudioWorkletProcessor { 3 constructor() { super(); this.buf = new Float32Array(1024); this.n = 0; } 4 process(inputs) { 5 const ch = inputs[0] && inputs[0][0]; 6 if (ch) { 7 for (let i = 0; i < ch.length; i++) { 8 this.buf[this.n++] = ch[i]; 9 if (this.n === this.buf.length) { 10 this.port.postMessage(this.buf, [this.buf.buffer]); 11 this.buf = new Float32Array(1024); 12 this.n = 0; 13 } 14 } 15 } 16 return true; 17 } 18} 19registerProcessor('${As}', RpVoiceTap); 20`;function Es(t){let o=Math.max(-1,Math.min(1,t));return o<0?Math.round(o*32768):Math.round(o*32767)}var ho=class{ratio;boundary;sum=0;count=0;pos=0;last=0;constructor(o,e=go){this.ratio=o/e,this.boundary=this.ratio}process(o){let e=o.length,n=[];if(this.ratio>=1){for(let i=0;i<e;i++)this.sum+=o[i],this.count++,i+1>=this.boundary&&(n.push(Es(this.sum/this.count)),this.sum=0,this.count=0,this.boundary+=this.ratio);this.boundary-=e}else{for(;e>0&&this.pos<=e-1;){let i=Math.floor(this.pos),a=this.pos-i,c=i<0?this.last:o[i],u=i+1<e?o[i+1]:c;n.push(Es(c+(u-c)*a)),this.pos+=this.ratio}e>0&&(this.pos-=e,this.last=o[e-1])}return Int16Array.from(n)}};function Hd(t){let o=new Uint8Array(t.length*2),e=new DataView(o.buffer);for(let i=0;i<t.length;i++)e.setInt16(i*2,t[i],!0);let n="";for(let i=0;i<o.length;i+=8192)n+=String.fromCharCode(...o.subarray(i,i+8192));return btoa(n)}function Wd(t){if(!t?.length)return 0;let o=0;for(let e=0;e<t.length;e++)o+=t[e]*t[e];return Math.sqrt(o/t.length)}function Gd(t){return t>0?Math.max(0,Math.min(1,(20*Math.log10(t)+60)/60)):0}var Qd=["auth_error","quota_exceeded","rate_limited","input_error","chunk_size_exceeded","session_time_limit_exceeded"];function Yd(t){let o;try{o=typeof t=="string"?JSON.parse(t):t}catch{return{kind:"ignore"}}let e=typeof o?.message_type=="string"?o.message_type:"";return e==="partial_transcript"?{kind:"partial",text:String(o.text??"")}:e==="committed_transcript"||e==="committed_transcript_with_timestamps"?{kind:"committed",text:String(o.text??"")}:e==="insufficient_audio_activity"?{kind:"error",errorKind:"no-speech"}:Qd.includes(e)||e==="error"||e.endsWith("_error")?{kind:"error",errorKind:"unavailable"}:{kind:"ignore"}}function on(t,o){let e=(t||"").trim(),n=(o||"").trim();return e&&n?`${e} ${n}`:e||n}var Mi=(()=>{class t{api=R(X);devices=R(Wn);mic=R(In);state=J("idle");errorKind=J(null);committedText=J("");partialText=J("");textChanged=new O;ended=new O;utterance=new O;paused=J(!1);level=J(0);noInput=J(!1);run=0;stream=null;ctx=null;source=null;node=null;socket=null;resampler=null;pending=new Int16Array(0);connectTimer=null;maxTimer=null;commitWaiter=null;continuous=!1;keepAliveTimer=null;heard=!1;noInputTimer=null;get busy(){let e=this.state();return e==="connecting"||e==="listening"||e==="stopping"}start(){return ee(this,arguments,function*(e={}){if(this.busy)return;let n=++this.run;this.continuous=e.continuous===!0,this.paused.set(!1),this.committedText.set(""),this.partialText.set(""),this.errorKind.set(null),this.pending=new Int16Array(0),this.heard=!1,this.noInput.set(!1),this.level.set(0),this.state.set("connecting"),this.armConnectTimer(n);let i,a=!1;try{i=(yield mn(this.api.post("AgentOps/voiceToken",{}).pipe(fn(Ms))))?.token}catch(c){i=null,a=c?.status===429}if(n===this.run){if(!i)return this.fail(n,a?"limited":"unavailable");this.clearConnectTimer();try{let c=yield this.openMicrophone();if(n!==this.run){c.getTracks().forEach(u=>u.stop());return}this.stream=c,this.mic.refresh()}catch(c){if(n!==this.run)return;let u=c?.name==="NotAllowedError"||c?.name==="SecurityError";return this.fail(n,u?"blocked":"unavailable")}this.armConnectTimer(n);try{if(yield this.openAudio(n),n!==this.run)return;yield this.openSocket(n,i)}catch{n===this.run&&this.fail(n,"unavailable");return}n===this.run&&(this.clearConnectTimer(),this.state.set("listening"),this.paused()?this.armKeepAlive():this.armNoInput(n),!this.continuous&&(this.maxTimer=setTimeout(()=>{n===this.run&&this.state()==="listening"&&this.stop()},Bd)))}})}pause(){!this.busy||this.paused()||(this.paused.set(!0),this.pending=new Int16Array(0),this.partialText.set(""),this.level.set(0),clearTimeout(this.noInputTimer),this.noInputTimer=null,this.state()==="listening"&&this.armKeepAlive())}resume(){this.paused()&&(this.paused.set(!1),this.pending=new Int16Array(0),clearInterval(this.keepAliveTimer),this.keepAliveTimer=null,this.state()==="listening"&&this.armNoInput(this.run))}switchMicrophone(){return ee(this,null,function*(){if(this.state()!=="listening"||!this.ctx||!this.node)return;let e=this.run,n;try{n=yield this.openMicrophone()}catch{return}if(e!==this.run||this.state()!=="listening"){n.getTracks().forEac
20h(i=>i.stop());return}try{this.source?.disconnect()}catch{}this.stream?.getTracks().forEach(i=>i.stop()),this.stream=n,this.source=this.ctx.createMediaStreamSource(n),this.source.connect(this.node),this.heard=!1,this.noInput.set(!1),this.level.set(0),this.paused()||this.armNoInput(e)})}openMicrophone(){return ee(this,null,function*(){let e=this.mic.selectedId();try{return yield this.devices.getUserMedia({audio:this.mic.audioConstraints()})}catch(n){if(!e||n?.name!=="OverconstrainedError"&&n?.name!=="NotFoundError")throw n;return this.mic.choose(null),this.devices.getUserMedia({audio:this.mic.audioConstraints()})}})}armNoInput(e){clearTimeout(this.noInputTimer),this.noInputTimer=null,!this.heard&&(this.noInputTimer=setTimeout(()=>{this.noInputTimer=null,e===this.run&&this.state()==="listening"&&!this.paused()&&!this.heard&&this.noInput.set(!0)},$d))}measure(e){let n=Wd(e);this.level.set(Gd(n)),!(n<Ud||this.heard)&&(this.heard=!0,this.noInput.set(!1),clearTimeout(this.noInputTimer),this.noInputTimer=null)}armKeepAlive(){clearInterval(this.keepAliveTimer),this.keepAliveTimer=setInterval(()=>this.sendChunk(new Int16Array(Gn),!1),jd)}stop(){return ee(this,null,function*(){let e=this.state();if(e==="connecting"){this.cancel();return}if(e!=="listening")return;let n=this.run;this.state.set("stopping"),clearTimeout(this.maxTimer),this.stopCapture();let i=this.pending.length?this.pending:new Int16Array(Gn);this.pending=new Int16Array(0);let a=new Promise(u=>this.commitWaiter=u);if(this.sendChunk(i,!0),yield Promise.race([a,new Promise(u=>setTimeout(u,zd))]),this.commitWaiter=null,n!==this.run||this.state()!=="stopping")return;let c=on(this.committedText(),this.partialText());this.teardown(),c?this.state.set("idle"):(this.errorKind.set("no-speech"),this.state.set("error")),this.ended.next({text:c,reason:c?"stopped":"error"})})}cancel(){if(!this.busy)return;let e=on(this.committedText(),this.partialText());this.run++,this.teardown(),this.state.set("idle"),this.ended.next({text:e,reason:"cancelled"})}fail(e,n){if(e!==this.run||!this.busy)return;let i=on(this.committedText(),this.partialText());if(this.run++,this.teardown(),n==="no-speech"&&i){this.state.set("idle"),this.ended.next({text:i,reason:"stopped"});return}this.errorKind.set(n),this.state.set("error"),this.ended.next({text:i,reason:"error"})}openSocket(e,n){let i=new URLSearchParams({model_id:"scribe_v2_realtime",token:n,audio_format:"pcm_16000",commit_strategy:"vad",language_code:"en"}),a=this.devices.createSocket(`${qd}?${i.toString()}`);return this.socket=a,new Promise((c,u)=>{let h=!1;a.onopen=()=>{h=!0,c()},a.onmessage=_=>this.onMessage(e,_.data),a.onerror=()=>{h||u(new Error("socket error"))},a.onclose=()=>{h?e===this.run&&this.state()==="listening"?this.fail(e,"unavailable"):e===this.run&&this.state()==="stopping"&&this.commitWaiter?.():u(new Error("socket closed"))}})}openAudio(e){return ee(this,null,function*(){let n=this.devices.createAudioContext();this.ctx=n;let i=URL.createObjectURL(new Blob([Kd],{type:"application/javascript"}));try{yield n.audioWorklet.addModule(i)}finally{URL.revokeObjectURL(i)}e===this.run&&(n.state==="suspended"&&(yield n.resume()),e===this.run&&(this.resampler=new ho(n.sampleRate),this.source=n.createMediaStreamSource(this.stream),this.node=this.devices.createWorkletNode(n,As),this.node.port.onmessage=a=>{let c=this.state();e!==this.run||this.paused()||c!=="listening"&&c!=="connecting"||(this.measure(a.data),this.onFrames(a.data))},this.source.connect(this.node),this.node.connect(n.destination)))})}onFrames(e){let n=this.resampler.process(e),i=new Int16Array(this.pending.length+n.length);if(i.set(this.pending),i.set(n,this.pending.length),this.socket?.readyState!==1){i.length>Ps&&(i=i.slice(i.length-Ps)),this.pending=i;return}let a=0;for(;i.length-a>=Gn;)this.sendChunk(i.subarray(a,a+Gn),!1),a+=Gn;this.pending=i.slice(a)}sendChunk(e,n){this.socket?.readyState===1&&this.socket.send(JSON.stringify({message_type:"input_audio_chunk",audio_base_64:Hd(e),sample_rate:go,commit:n}))}onMessage(e,n){if(e!==this.run)return;let i=Yd(n);switch(i.kind){case"partial":this.partialText.set(i.text.trim()),this.textChanged.next();return;case"committed":this.committedText.set(on(this.committedText(),i.text)),this.partialText.set(""),this.textChanged.next(),i.text.trim()&&this.utterance.next(i.text.trim()),this.commitWaiter?.();return;case"error":if(this.continuous&&i.errorKind==="no-speech")return;this.fail(e,i.errorKind);return}}armConnectTimer(e){this.clearConnectTimer(),this.connectTimer=setTimeout(()=>this.fail(e,"unavailable"),Ms)}clearConnectTimer(){clearTimeout(this.connectTimer),this.connectTimer=null}stopCapture(){if(this.node){this.node.port.onmessage=null;try{this.node.disconnect()}catch{}}try{this.source?.disconnect()}catch{}
20this.stream?.getTracks().forEach(e=>e.stop())}teardown(){if(this.clearConnectTimer(),clearTimeout(this.maxTimer),this.maxTimer=null,clearInterval(this.keepAliveTimer),this.keepAliveTimer=null,clearTimeout(this.noInputTimer),this.noInputTimer=null,this.noInput.set(!1),this.level.set(0),this.paused.set(!1),this.commitWaiter=null,this.stopCapture(),this.ctx?.close().catch(()=>{}),this.socket){this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}this.stream=null,this.ctx=null,this.source=null,this.node=null,this.socket=null,this.resampler=null,this.pending=new Int16Array(0)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var gt=(()=>{class t{api=R(X);notify=R(Te);router=R(re);pageContext=R(On);browserActions=R(Ts);voice=R(Mi);_inFlight=null;statusLoading=!1;enabled=null;statusError=!1;status=null;conversationId=null;state=null;transcript=[];pendingProposal=null;needsAttention=!1;needsAttentionReason=null;harnessNote=null;chainResult=null;actionRows=[];updatedOn=null;requestInFlight=!1;resyncing=!1;forking=!1;draft="";fullScreen=!1;transcriptChanged=new O;turnStarted=new O;turnFinished=new O;statusProbed=!1;get composerDisabled(){return this.requestInFlight||this.resyncing||!!this.pendingProposal}voiceSettled="";voicePending="";voiceTyped="";constructor(){this.voice.textChanged.subscribe(()=>this.applyVoiceText(this.voice.committedText(),this.voice.partialText())),this.voice.ended.subscribe(({text:e,reason:n})=>{e?this.applyVoiceText(e,""):this.draft=this.voiceTyped,this.voiceSettled="",this.voicePending="",e&&n==="stopped"&&this.draftRestored.next()})}get voiceEnabled(){return this.status?.voiceEnabled===!0}get conversationEnabled(){return this.status?.voiceMode==="conversation"}get voiceEngineEnabled(){return this.status?.voiceEngine===!0}get voiceBusy(){return this.voice.busy}toggleVoice(){let e=this.voice.state();if(e==="listening"){this.voice.stop();return}e==="connecting"||e==="stopping"||!this.voiceEnabled||this.composerDisabled||(this.voiceTyped=this.draft,this.voiceSettled=this.draft.trim(),this.voicePending="",this.voice.start())}applyVoiceText(e,n){this.voiceSettled=on(this.voiceTyped,e),this.voicePending=(n||"").trim(),this.draft=on(this.voiceSettled,this.voicePending)}ensureStatus(){this.ensureMarkdown(),!(this.statusProbed||this.statusLoading)&&this.loadStatus()}panelAccess=new un(!1);accessProbedFor=null;static mayHaveAgent(e){let n=e?.siteAdmin===!0||Array.isArray(e?.siteAdmin)&&e.siteAdmin.length>0;return e?.regply===!0||e?.director===!0||e?.subDirector===!0||n||e?.hq===!0}get panelAllowed(){return this.enabled===!0&&!!this.status?.audience}probeAccess(e,n){let i=t.mayHaveAgent(e)?n||"signed-in":null;i!==this.accessProbedFor&&(this.accessProbedFor=i,this.status=null,this.enabled=null,this.statusError=!1,this.statusProbed=!1,this.panelAccess.next(!1),i&&this.loadStatus(!0))}loadStatus(e=!1){this.statusProbed=!0,this.statusLoading=!0,this.statusError=!1,this.api.get("AgentOps/status").subscribe({next:n=>{this.status=n||{},this.enabled=n?.enabled===!0,this.statusLoading=!1,this.panelAccess.next(this.panelAllowed);let i=this.rememberedConversation();this.enabled&&i&&!this.conversationId&&(this.conversationId=i,this.resyncing=!0,this.resync())},error:n=>{this.enabled=null,this.statusError=!0,this.statusLoading=!1,this.statusProbed=!1,e||this.notify.openErrorModal(this.errorText(n,"Could not load the RP AI Agent status"))}})}static conversationStorageKey="agentOps.conversationId";rememberConversation(e){try{e?localStorage.setItem(t.conversationStorageKey,e):localStorage.removeItem(t.conversationStorageKey)}catch{}}rememberedConversation(){try{return localStorage.getItem(t.conversationStorageKey)}catch{return null}}pendingAttachments=[];thumbnails={};ownedObjectUrls=new Set;static acceptedTypes=["image/png","image/jpeg","image/webp","image/gif"];get acceptAttribute(){return t.acceptedTypes.join(",")}get imagesEnabled(){return this.status?.imagesEnabled===!0}get maxAttachments(){return this.status?.maxAttachmentsPerMessage||3}get insightsEnabled(){return this.status?.insightsEnabled===!0}insights=null;insightsLoading=!1;loadInsights(){this.conversationId&&(this.insights=null,this.insightsLoading=!0,this.api.get(`AgentOps/conversation/${this.conversationId}/insights`).subscribe({next:e=>{this.insights=e||null,this.insightsLoading=!1},error:e=>{this.insightsLoading=!1,this.notify.openToaster(this.errorText(e,"Could not load the conversation internals"),"error")}}))}get maxAttachmentBytes(){return this.status?.maxAttachmentRawBytes||1e7}get uploadsBlockSend(){return this.pendingAttachments.some(e=>e.state!=="ready")}addFiles(e){if(!this.imagesEnabled||this.composerDisabled)return;let n=Array.from(e||[]);if(!n.length)return;let i=[],a=[];for(let c of n){if(!t.acceptedTypes.includes(c.type)){i.push(`${c.name||"that file"} is not a PNG, JPEG, WebP or GIF`);continue}if(c.size>this.maxAttachmentBytes){i.push(`${c.name||"that image"} is larger than ${Math.round(this.maxAttachmentBytes/1e6)}MB`);continue}if(this.pendingAttachments.length+a.length>=this.maxAttachments){i.push(`only ${this.maxAttachments} images can be attached to one message`);continue}a.push(c)}i.length&&this.notify.openErrorModal("Some images were not attached: "+i.join("; ")+"."),a.forEach(c=>this.uploadOne(c))}uploadOne(e){let n=URL.createObjectURL(e);this.ownedObjectUrls.add(n);let i={localId:`${Date.now()}-${Math.random().toString(36).slice(2,8)}`,name:e.name||"image",objectUrl:n,state:"uploading"};this.pendingAttachments=[...this.pendingAttachments,i];let a=new FormData;a.append("file",e,e.name||"image"),this.api.post4Upload("AgentOps/attachment",a).subscribe({next:c=>{i.attachmentId=c?.attachmentId,i.width=c?.width,i.height=c?.height,i.state=i.attachmentId?"ready":"failed",i.attachmentId?this.thumbnails[i.attachmentId]=n:i.error="The upload did not return an image id."},error:c=>{i.state="failed",i.error=this.errorText(c,"The image could not be uploaded")}})}removeAttachment(e){this.pendingAttachments=this.pendingAttachments.filter(n=>n!==e),(!e.attachmentId||!this.thumbnails[e.attachmentId])&&this.releaseObjectUrl(e.objectUrl)}releaseObjectUrl(e){if(!(!e||!this.ownedObjectUrls.has(e))){this.ownedObjectUrls.delete(e);try{URL.revokeObjectURL(e)}catch{}}}thumbnailFor(e){if(!e)return null;let n=this.thumbnails[e];return n!==void 0?n:(this.thumbnails[e]=null,this.api.get(`AgentOps/attachment/${e}`).subscribe({next:i=>{i?.base64&&i?.mediaType&&(this.thumbnails[e]=`data:${i.mediaType};base64,${i.base64}`)},error:()=>{}}),null)}send(e){let n=e!=null,i=(n?e:this.draft).trim();if(!i||this.composerDisabled||this.voiceBusy||!n&&this.uploadsBlockSend)return;n||(this.draft=""),this.actionRows=[];let a=this.pageContext.current(),c=n?[]:this.pendingAttachments.filter(v=>v.state==="ready"),u=c.map(v=>v.attachmentId);n||(this.pendingAttachments=[]);
20let h=c.map(v=>({attachmentId:v.attachmentId,width:v.width,height:v.height}));this.transcript=[...this.transcript,{role:"user",text:i,pageContext:a,attachments:h}],this.bumpScroll();let _={conversationId:this.conversationId,message:i};a&&(_.pageContext=a),u.length&&(_.attachmentIds=u),this.callTurn("AgentOps/converse",_,"The agent could not process that message",()=>{!n&&!this.draft&&(this.draft=i),c.length&&!this.pendingAttachments.length&&(this.pendingAttachments=c);let v=this.transcript[this.transcript.length-1];v?.role==="user"&&v?.text===i&&(this.transcript=this.transcript.slice(0,-1))})}sendOption(e){e&&this.send(e)}fork(e){!e||!this.conversationId||this.requestInFlight||this.resyncing||this.forking||this.pendingProposal||(this.forking=!0,this.api.post("AgentOps/fork",{conversationId:this.conversationId,messageId:e}).subscribe({next:n=>{this.forking=!1,this.pendingAttachments.forEach(i=>this.removeAttachment(i)),this.pendingAttachments=[],this.applyTurn(n),this.draft=n?.forkedDraft?.text||"",this.pendingAttachments=(n?.forkedDraft?.attachments||[]).map(i=>({localId:`${i.attachmentId}`,name:"Attached image",objectUrl:this.thumbnailFor(i.attachmentId),state:"ready",attachmentId:i.attachmentId,width:i.width,height:i.height})),this.draftRestored.next()},error:n=>{this.forking=!1,this.notify.openErrorModal(this.errorText(n,"Could not go back to that message"))}}))}draftRestored=new O;confirmProposal(e){!this.pendingProposal||this.requestInFlight||this.callTurn("AgentOps/confirm",{conversationId:this.conversationId,proposalId:this.pendingProposal.proposalId,confirm:e},e?"Could not confirm the action":"Could not cancel the action")}stop(){let e=this.requestInFlight,n=this.awaitedStep;if(this.turnRun++,this.awaitedStep=null,this._inFlight&&(this._inFlight.unsubscribe(),this._inFlight=null),this.requestInFlight=!1,e&&this.turnFinished.next({ok:!1,stopped:!0}),!!this.conversationId){if(this.resyncing=!0,n){this.browserActions.cancel(),this.actionRows.forEach(i=>{i.state==="running"&&(i.state="failed",i.detail="You stopped this step.")}),this.answerStep(n,{ok:!1,detail:t.stepStopped},this.turnRun,!0);return}setTimeout(()=>this.resync(!0),300)}}resync(e=!1){let n=this.turnRun;this.api.get(`AgentOps/conversation/${this.conversationId}`).subscribe({next:i=>{let a=this.unansweredStep(i);if(!a||e){this.continueTurn(i,n,{stopped:!0});return}this.applyTurn(i,null),this.resyncing=!1,this.requestInFlight=!0,this.answerStep(a,{ok:!1,detail:t.stepReloaded},n,!1)},error:i=>{if(this.resyncing=!1,i?.status===404){this.conversationId=null,this.rememberConversation(null);return}this.notify.openErrorModal(this.errorText(i,"Could not re-sync the conversation"))}})}newConversation(){this.requestInFlight||this.resyncing||this.pendingProposal||(this.rememberConversation(null),this.conversationId=null,this.state=null,this.transcript=[],this.pendingProposal=null,this.needsAttention=!1,this.needsAttentionReason=null,this.harnessNote=null,this.chainResult=null,this.actionRows=[],this.updatedOn=null,this.insights=null,this.pendingAttachments.forEach(e=>this.removeAttachment(e)),this.pendingAttachments=[])}static stepReloaded="The page was reloaded before this step finished.";static stepStopped="The person stopped this step.";static stepNotReceived="This step did not reach the page, so it did not run.";static stepNotRun="This step did not run on the page.";turnRun=0;answeredSteps=new Set;awaitedStep=null;callTurn(e,n,i,a){this.requestInFlight=!0,this.turnStarted.next(),this.postTurn(e,n,++this.turnRun,!1,i,a)}postTurn(e,n,i,a,c,u){let h=this.api.post(e,n).subscribe({next:_=>{this._inFlight=null,this.continueTurn(_,i,{stopped:a,afterStep:e==="AgentOps/browserResult"})},error:_=>{if(this._inFlight=null,i===this.turnRun){if(u?.(),_?.error&&Array.isArray(_.error.transcript)){this.continueTurn(_.error,i,{stopped:a,afterStep:e==="AgentOps/browserResult"});return}if(a){this.resync(!0);return}this.requestInFlight=!1,this.notify.openErrorModal(this.errorText(_,c)),this.turnFinished.next({ok:!1})}}});h&&!h.closed&&(this._inFlight=h)}continueTurn(e,n,i){if(n!==this.turnRun)return;let a=this.unansweredStep(e),c=i.stopped?null:e?.browserActions,u=this.applyTurn(e,c,i.afterStep);if(!a){i.stopped?this.resyncing=!1:(this.requestInFlight=!1,this.turnFinished.next({ok:!0}));return}if(i.stopped){this.answerStep(a,{ok:!1,detail:t.stepStopped},n,!0);return}if(!u){this.answerStep(a,{ok:!1,detail:t.stepNotReceived},n,!1);return}this.awaitedStep=a,u.then(h=>{n!==this.turnRun||this.awaitedStep!==a||(this.awaitedStep=null,this.answerStep(a,this.stepOutcome(h),n,!1))})}unansweredStep(e){let n=e?.awaitingBrowser?.stepID;return n&&!this.answeredSteps.has(n)?n:null}answerStep(e,n,i,a){this.answeredSteps.add(e),this.postTurn("AgentOps/browserResult",ze({conversationId:this.conversationId,stepID:e},n),i,a,"Could not tell the assistant how the step on the page went")}stepOutcome(e){let n=e.length>0&&e.every(h=>h.state==="done"),i=e.find(h=>h.state!=="done"),a=(n?e.find(h=>h.detail)?.detail:i?.detail||t.stepNotRun)||null,c={ok:n};a&&(c.detail=a.slice(0,300));let u=e.filter(h=>h.kind==="fill");return u.length&&(c.filled=u.flatMap(h=>h.filled||[]),c.unfilled=u.flatMap(h=>(h.unfilled||[]).map(_=>
20({name:_.name,reason:_.reason})))),c}applyTurn(e,n=e?.browserActions,i=!1){return e?(this.conversationId=e.conversationId||this.conversationId,this.rememberConversation(this.conversationId),this.state=e.state||null,this.transcript=(e.transcript||[]).map(a=>this.withRenderedMarkdown(this.withOptions(a))),this.pendingProposal=e.pendingProposal||null,this.needsAttention=e.needsAttention===!0,this.needsAttentionReason=e.needsAttentionReason||null,this.harnessNote=e.harnessNote||null,this.chainResult=e.chainResult||null,this.updatedOn=e.updatedOn||null,this.bumpScroll(),this.applyNavigation(e.navigateTo),this.applyBrowserActions(n,i)):null}withOptions(e){if(!e||e.role!=="assistant"||!e.text)return e;let n=String(e.text).replace(/\s+$/,"").split(` 21`),i=/^Options:\s+(.+)$/.exec(n[n.length-1].trim());if(!i)return e;let a=i[1].split(" | ").map(c=>c.trim()).filter(c=>c.length>0).slice(0,8);return a.length?pn(ze({},e),{text:n.slice(0,-1).join(` 22`).replace(/\s+$/,""),options:a}):e}withRenderedMarkdown(e){if(!e||e.role!=="assistant"||!e.text)return e;if(!mo())return this.ensureMarkdown(),e;let n=Ss(e.text);return n?pn(ze({},e),{renderedHtml:n}):e}markdownRequested=!1;ensureMarkdown(){this.markdownRequested||mo()||(this.markdownRequested=!0,ws().then(()=>{this.transcript=this.transcript.map(e=>this.withRenderedMarkdown(e))},()=>{this.markdownRequested=!1}))}applyNavigation(e){if(e?.behavior!=="auto")return;let n=po(e.type,e.key);n&&(this.fullScreen=!1,this.router.navigate(n))}applyBrowserActions(e,n=!1){if(!Array.isArray(e)||!e.length)return null;let i=[],a=null,c=this.browserActions.run(e,i,()=>{a&&this.actionRows===a&&this.bumpScroll()},()=>this.fullScreen=!1);return a=n?[...this.actionRows,...i]:i,this.actionRows=a,Promise.resolve(c).then(()=>i)}openEntity(e){let n=po(e?.type,e?.key);n&&(this.fullScreen=!1,this.router.navigate(n))}bumpScroll(){this.transcriptChanged.next()}errorText(e,n){return typeof e?.error=="string"&&e.error?e.error:typeof e?.error?.error=="string"&&e.error.error?e.error.error:n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Zd=(t,o)=>({"pl-8":t,"p-4":o}),ep=()=>["/pages/home"],tp=()=>["/pages/mailbox"],np=t=>({"mx-8":t}),ip=t=>({"w-100-p":t});function op(t,o){if(t&1&&b(0,"img",5),t&2){let e=p();g("src",e.fuseConfig==null?null:e.fuseConfig.layout.toolbar.toolBarLogo,B)}}function ap(t,o){if(t&1){let e=M();r(0,"span",24),x("click",function(){y(e);let i=p();return w(i.toggleSidebarFolded())}),d(1," menu_open "),s()}if(t&2){let e=p();K("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarForeground),U("secondary-text",!(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null)&&e.fuseConfig.layout.toolbar.customToolbarForeground))}}function rp(t,o){if(t&1){let e=M();r(0,"span",25),x("click",function(){y(e);let i=p();return w(i.toggleSidebarOpened("navbar"))}),d(1," menu_open "),s()}if(t&2){let e=p();K("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarForeground),U("secondary-text",!(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null)&&e.fuseConfig.layout.toolbar.customToolbarForeground))}}function sp(t,o){t&1&&b(0,"div",10)}function lp(t,o){if(t&1){let e=M();r(0,"div",11)(1,"div",26),d(2,"Share On"),s(),r(3,"div",27)(4,"ul")(5,"li")(6,"a",28),x("click",function(){y(e);let i=p();return w(i.recordEvent("twitter"))}),Vn(),r(7,"svg",29)(8,"g"),b(9,"path",30),s()()()(),na(),r(10,"li")(11,"a",28),x("click",function(){y(e);let i=p();return w(i.recordEvent("facebook"))}),Vn(),r(12,"svg",31),b(13,"path",32),s()()()()()()}if(t&2){let e=p();l(6),g("href",e.twtURL,B),l(5),g("href",e.fbURL,B)}}function cp(t,o){if(t&1&&(r(0,"div",33)(1,"a",34),b(2,"img",35),s()()),t&2){let e=p();K("max-width",e.isLoggedIn&&e.persona?"35%":"55%"),l(),g("routerLink",ue(4,ep)),l(),g("src",e.fuseConfig?e.fuseConfig==null?null:e.fuseConfig.smallLogo:"/assets/images/logos/mobile-logo.png",B)}}function dp(t,o){if(t&1){let e=M();r(0,"button",36),x("click",function(){y(e);let i=p();return w(i.toggleSidebarOpened("shortcutsPanel"))}),b(1,"mat-icon",37),s()}}function pp(t,o){if(t&1){let e=M();r(0,"button",38),x("click",function(){y(e);let i=p();return w(i.toggleSidebarOpened("agentPanel"))}),r(1,"mat-icon"),d(2,"smart_toy"),s()()}}function up(t,o){t&1&&(r(0,"a",18)(1,"mat-icon",39),d(2,"mail"),s()()),t&2&&g("routerLink",ue(1,tp))}function mp(t,o){if(t&1){let e=M();r(0,"span",40),x("click",function(){y(e);let i=p();return w(i.resetImpersonate())}),d(1," replay "),s()}if(t&2){let e=p();g("ngClass",oe(1,np,!e.isMobile))}}function fp(t,o){if(t&1&&b(0,"img",46),t&2){let e=p(3);g("src",e.imagePrefix+e.userProfile.avatar,B)}}function hp(t,o){t&1&&(r(0,"mat-icon",47),d(1,"account_circle"),s())}function gp(t,o){if(t&1&&(m(0,fp,1,1,"img",46),m(1,hp,2,0,"mat-icon",47),r(2,"span",48),d(3),s()),t&2){let e=p(2);f(e.userProfile.avatar?0:-1),l(),f(e.userProfile.avatar?-1:1),l(2),Ve("",e.person.firstName," ",e.person.lastName)}}function _p(t,o){if(t&1&&(r(0,"span",44),d(1),s()),t&2){let e=p(2);l(),S(e.person.initials)}}function bp(t,o){if(t&1){let e=M();r(0,"div",41,0)(2,"div",42)(3,"button",43),x("click",function(){y(e);let i=D(1),a=p();return w(a.showPopover(i,"myAccount"))}),r(4,"div",42),m(5,gp,4,4),m(6,_p,2,1,"span",44),r(7,"mat-icon",45),d(8,"keyboard_arrow_down"),s()()()()()}if(t&2){let e=p();U("bg-hover",e.dropdownOpen),l(3),K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarBackgroun
22d)("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarForeground),g("ngClass",!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null)&&e.fuseConfig.layout.toolbar.customToolbarBackground||e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.background),l(2),f(e.isMobile?-1:5),l(),f(e.isMobile?6:-1)}}function Cp(t,o){if(t&1){let e=M();r(0,"div",49,1),x("click",function(){y(e);let i=D(1),a=p();return w(a.openLogin(i))}),r(2,"span",50),d(3,"SIGN IN"),s(),d(4,"\xA0 "),r(5,"span",51),d(6," login "),s()()}if(t&2){let e=p();U("bg-hover",e.dropdownOpen)}}function vp(t,o){if(t&1){let e=M();r(0,"span",52,1),x("click",function(){y(e);let i=D(1),a=p();return w(a.openLogin(i))}),d(2," login "),s()}if(t&2){let e=p();g("ngClass",oe(1,ip,!e.isMobile))}}var Kt=(()=>{class t{_fuseConfigService;_fuseSidebarService;_popoverService;_membership;_changeDetectorRef;api;notify;sanitizer;title4share;breakpointObserver;_pageContext;_agentChat;mobileQuery;navigation;horizontalNavbar=!1;rightNavbar=!1;leftNavbar=!1;hiddenNavbar=!1;languages;selectedLanguage;userStatusOptions;person={};persona={};verified;dropdownOpen;isLoggedIn;isMobile=!1;isMobileLogoVisible=$.features.isMobileLogoVisible==null;siteName=$.siteName;fuseConfig;userProfile={};foldStatus=!0;showResults;globalSearchLoading=!1;searchResults={};imagePrefix=new jt().prefix;currentUserFromService={};fbURL;twtURL;faFacebook=Tn;faTwitter=Mn;shareOnHidden=!1;showResetImpersonate=!1;agentPanelVisible=!1;agentPanelSuppressed=!1;toolBarLogoStyle;ipadPortrait;ipadLandscape;_unsubscribeAll;constructor(e,n,i,a,c,u,h,_,v,k,N,V,A,F){this._fuseConfigService=e,this._fuseSidebarService=n,this._popoverService=i,this._membership=a,this._changeDetectorRef=c,this.api=u,this.notify=h,this.sanitizer=_,this.title4share=k,this.breakpointObserver=V,this._pageContext=A,this._agentChat=F,localStorage.getItem("person")&&(this.isLoggedIn=!0,this.person=JSON.parse(localStorage.getItem("person")),this.persona=JSON.parse(localStorage.getItem("person")).persona,this.verified=JSON.parse(localStorage.getItem("person")).verified,this._changeDetectorRef.markForCheck()),this.agentPanelSuppressed=this._pageContext.suppressed(),a.userChanged.subscribe(()=>{this.isLoggedIn=a.isLoggedIn,this.person=a.currentUser,this.persona=a.persona,this.verified=a.verified,this.getUserProfile(),this._changeDetectorRef.detectChanges()}),v.events.pipe(we(ie=>ie instanceof Ee)).subscribe(()=>{this.agentPanelSuppressed=this._pageContext.suppressed(),this._changeDetectorRef.markForCheck()});let te=["cms-admin"];v.events.pipe(we(ie=>ie instanceof Ee)).subscribe(ie=>{setTimeout(()=>{this.shareOnHidden=!1;for(let he=0;he<te.length;he++)if(window.location.href.indexOf(te[he])>-1){this.shareOnHidden=!0;break}let fe=encodeURIComponent(this.title4share.getTitle()),Ce=encodeURIComponent(window.location.href);this.fbURL=`https://www.facebook.com/sharer/sharer.php?u=${Ce}&t=${fe}`,this.twtURL=`https://twitter.com/share?text=${fe}&url=${Ce}`,this._changeDetectorRef.detectChanges()},500)}),this._unsubscribeAll=new O,this._agentChat.panelAccess.pipe(T(this._unsubscribeAll)).subscribe(ie=>{this.agentPanelVisible=ie,this._changeDetectorRef.markForCheck()})}ngOnInit(){this.breakpointObserver.observe([se.Handset,se.Tablet,se.HandsetLandscape,se.HandsetPortrait,se.TabletLandscape,se.TabletPortrait,se.Web,se.WebLandscape]).pipe(T(this._unsubscribeAll)).subscribe(e=>{e.breakpoints["(max-width: 599px)"]&&(this.isMobile=!0),e.breakpoints[se.Handset]&&(this.isMobile=!0),e.breakpoints[se.Tablet]&&(this.isMobile=!0),e.breakpoints[se.HandsetLandscape]&&(this.isMobile=!0),e.breakpoints[se.HandsetPortrait]&&(this.isMobile=!0),e.breakpoints[se.TabletLandscape]&&(this.isMobile=!0),e.breakpoints[se.TabletPortrait]&&(this.isMobile=!0),(e.breakpoints[se.Web]||e.breakpoints[se.WebLandscape])&&(this.isMobile=!1),this._changeDetectorRef.detectChanges()}),this.showResetImpersonate=localStorage.getItem("person0")!=null,this.getUserProfile(),this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe({next:e=>{this.fuseConfig=e,this.horizontalNavbar=e.layout.navbar.position==="top",this.rightNavbar=e.layout.navbar.position==="right",this.leftNavbar=e.layout.navbar.position==="left",this.hiddenNavbar=e.layout.navbar.hidden===!0,this._changeDetectorRef.detectChanges()},error:e=>{this.notify.openAlertModal(e.error?e.error:"An error has occured",gi.ERROR)}})}getUserProfile(){this.isLoggedIn&&setTimeout(()=>{this.userProfile=this._membership.getUserProfile()},100)}transform(){return this.sanitizer.bypassSecurityTrustResourceUrl(this.fuseConfig.layout.toolbar.toolBarLogo)}resetImpersonate(){this.api.get("Membership/endImpersonate",!0).pipe(T(this._unsubscribeAll)).subscribe({next:()=>{this.notify.openToaster("Impersonation ended, please wait for page reload","success");var e=localStorage.getItem("impersonateReturnURL");localStorage.removeItem("impersonateReturnURL"),localStorage.getItem("person0")!=null&&localStorage.setItem("person",localStorage.getItem("person0")),localStorage.removeItem("person0"),location.href=e??"/pages/hq/support",setTimeout(()=>{location.reload()},500)},error:e=>{this.notify.openToaster("An error occured, please try again later.","error")}})}toggleSidebarOpened(e){e=="navbar"&&(this.foldStatus=!this.foldStatus),this._fuseSidebarService.getSidebar(e)?.toggleOpen()}toggleSidebarFolded(){this._fuseSidebarService.getSidebar("navbar").toggleFold(),this.foldStatus=!this.foldStatus,this.fuseConfig.layout.navbar.folded=!this.foldStatus,this._fuseConfigService.setConfig(this.fuseConfig)}_keyword=null;search(e){this._keyword=e}closeSearchResults(){this.showResults=!1}
22openLogin(e){localStorage.getItem("mobileAppModeV2")!=null?window.openLoginV2?.postMessage(""):this.showPopover(e,"login")}showPopover(e,n){this.dropdownOpen=!0,this._changeDetectorRef.markForCheck(),this._popoverService.open({content:n=="myAccount"?hs:Gr,origin:e,offsetY:2,position:[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}]}).afterClosed$.subscribe(()=>{this.dropdownOpen=!1,this._changeDetectorRef.markForCheck()})}reSendValidation(){this.api.get("Membership/resendVerification/"+$.siteName,!0).pipe(T(this._unsubscribeAll)).subscribe({next:()=>{this.notify.openToaster("Your verification code is sent.","success")},error:e=>{this.notify.openToaster("An error occured, please try again later.","error")}})}recordEvent(e){gtag("event","shareOn",{event_category:"Share On",event_label:"Share On Click",value:e})}shareLink(e){var n=null;switch(e){case"facebook":n="https://www.facebook.com/sharer/sharer.php?u=";break;case"twitter":n="https://x.com/intent/tweet?url=";break}n!=null&&window.open(n+encodeURI(window.location.href))}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}toggleSidebarOpen(e){this._fuseSidebarService.getSidebar(e)?.toggleOpen()}static \u0275fac=function(n){return new(n||t)(C(Z),C(je),C(bs),C(Me),C(Ft),C(X),C(Te),C(ut),C(re),C(li),C(Si),C(ke),C(On),C(gt))};static \u0275cmp=z({type:t,selectors:[["toolbar"]],inputs:{mobileQuery:"mobileQuery",navigation:"navigation",currentUserFromService:"currentUserFromService"},decls:23,vars:24,consts:[["originMyAccount",""],["originLogin",""],[1,"mat-elevation-z1",2,"height","70px",3,"ngClass"],["id","toolbar",2,"display","flex","flex-direction","row","place-content","center flex-start","align-items","center","flex","1 1 0%"],["href","/pages/home"],["fxHide-lt-lg","",1,"mt-8",3,"src"],[2,"display","flex","flex-direction","row","place-content","center flex-start","box-sizing","border-box","align-items","center","flex","1 0 auto"],[3,"ngClass"],[1,"material-icons",3,"secondary-text","color"],[1,"material-icons","mt-8",3,"secondary-text","color"],["fxHide-gt-md","",1,"toolbar-separator"],[1,"container","px-8","px-md-16"],[3,"navigation"],[2,"flex-direction","row","box-sizing","border-box","display","flex","place-content","center flex-start","align-items","center","justify-content","center","flex","1 1 100%",3,"max-width"],[1,"",2,"display","flex","flex-direction","row","place-content","center flex-start","align-items","center","flex","0 1 auto"],[1,"toolbar-separator"],["mat-icon-button","","matTooltip","Shortcuts","aria-label","Open shortcuts"],["mat-icon-button","","matTooltip","RP AI Agent","aria-label","Open the RP AI Agent"],["matTooltip","Open your messages","aria-label","Open your messages",1,"mx-12",3,"routerLink"],["matTooltip","Return back to your account","matTooltipClass","mat-tooltip-big",1,"material-icons",3,"ngClass"],[1,"pl-4","animate-slide-in-x",3,"bg-hover"],[1,"user-button","pl-8","cursorPointer","flex","items-center","rounded","cursor-pointer","relative","trans-ease-out","select-none","py-1","pr-1","pl-3","hover:bg-hover","animate-slide-in-x-neg",2,"display","flex","flex-direction","row","align-items","center","justify-content","center",3,"bg-hover"],["color","primary",1,"material-icons",2,"justify-content","flex-start",3,"ngClass"],[3,"keyword"],[1,"material-icons",3,"click"],[1,"material-icons","mt-8",3,"click"],[1,"shareOn"],[1,"social-icons"],["target","_blank",3,"click","href"],["viewBox","0 0 24 24","aria-hidden","true",2,"height","24px"],["d","M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"],["viewBox","0 0 24 24",2,"height","24px"],["d","M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z"],[2,"flex-direction","row","box-sizing","border-box","display","flex","place-content","center flex-start","align-items","center","justify-content","center","flex","1 1 100%"],[1,"text-center",3,"routerLink"],[1,"logo-primary","mx-auto",3,"src"],["mat-icon-button","","matTooltip","Shortcuts","aria-label","Open shortcuts",3,"click"],["svgIcon","svg-shortcuts"],["mat-icon-button","","matTooltip","RP AI Agent","aria-label","Open the RP AI Agent",3,"click"],["aria-hidden","false"],["matTooltip","Return back to your account","matTooltipClass","mat-tooltip-big",1,"material-icons",3,"click","ngClass"],[1,"pl-4","animate-slide-in-x"],[2,"display","flex","flex-direction","row","place-content","center","align-items","center"],["mat-button","",1,"",2,"padding","0 !important",3,"click","ngClass"],[1,"bold","initials"],["fxHide-xs","",1,"bold","font-size-16"],[1,"avatar","mr-0","mr-sm-16",3,"src"],[1,"avatar","avatar-icon","primary-fg"],["fxHide-xs","",1,"mr-12"],[1,"user-button","pl-8","cursorPointer","flex","items-center","rounded","cursor-pointer","relative","trans-ease-out","select-none","py-1","pr-1","pl-3","hover:bg-hover","animate-slide-in-x-neg",2,"display","flex","flex-direction","row","align-items","center","justify-content","center",3,"click"],[1,"bold","mr-8"],[1,"material-icons"],["color","primary",1,"material-icons",2,"justify-content","flex-start",3,"click","ngClass"]],template:function(n,i){n&1&&(r(0,"mat-toolbar",2)(1,"div",3)(2,"a",4),m(3,op,1,1,"img",5),s(),r(4,"div",6)(5,"div",7),m(6,ap,2,4,"span",8),m(7,rp,2,4,"span",9),s(),m(8,sp,1,0,"div",10),m(9,lp,14,2,"div",11),b(10,"fuse-shortcuts",12),s(),m(11,cp,3,5,"div",13),r(12,"div",14),b(13,"div",15),m(14,dp,2,0,"button",16),m(15,pp,3,0,"button",17),m(16,up,3,2,"a",18),m(17,mp,2,3,"span",19),b(18,"div",15),m(19,bp,9,9,"div",20),m(20,Cp,7,2,"div",21),m(21,vp,3,3,"span",22),s(),b(22,"tinc-gsr",23),s()()),n&2&&(K("background-color",i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.customToolbarBackgroun
22d)("color",i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.customToolbarForeground),g("ngClass",!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null)&&i.fuseConfig.layout.toolbar.customToolbarBackground||i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.background),l(3),f(((i.fuseConfig==null?null:i.fuseConfig.layout.style)=="horizontal-layout-1"||(i.fuseConfig==null?null:i.fuseConfig.layout.style)=="vertical-layout-3")&&(i.fuseConfig!=null&&i.fuseConfig.layout.toolbar.toolBarLogo)?3:-1),l(2),g("ngClass",_n(21,Zd,!i.isMobile,i.isMobile)),l(),f(!i.horizontalNavbar&&!i.isMobile?6:-1),l(),f(i.horizontalNavbar&&i.isMobile||i.isMobile?7:-1),l(),f(!i.hiddenNavbar&&!i.rightNavbar?8:-1),l(),f(!i.shareOnHidden&&!i.isMobile?9:-1),l(),g("navigation",i.navigation),l(),f(i.isMobile?11:-1),l(3),f(i.isLoggedIn&&i.persona?14:-1),l(),f(i.agentPanelVisible&&!i.agentPanelSuppressed?15:-1),l(),f(i.isLoggedIn&&i.persona?16:-1),l(),f(i.showResetImpersonate?17:-1),l(2),f(i.isLoggedIn&&i.persona?19:-1),l(),f((!i.isLoggedIn||!i.persona)&&!i.isMobile?20:-1),l(),f((!i.isLoggedIn||!i.persona)&&i.isMobile?21:-1),l(),g("keyword",i._keyword))},dependencies:[G,ae,me,Ja,Xa,xr,gs,de,Re,_e,Be,pe,Le,Vt,Pn,fi,Cr,Bt,zt,ui,mt,kn,Ci],styles:["[_ngcontent-%COMP%]:root{--toolbar-background: #fff;--toolbar-color: #5c77ff;--toolbar-icon-color: #5c77ff;--background-app-bar: rgb(235, 235, 238);--background-card: #fff;--background-hover: rgba(0, 0, 0, .04);--border-radius: 4px;--default-icon-size: 24px;--text-color: rgba(0, 0, 0, .87);--text-secondary: rgba(0, 0, 0, .54);--foreground-divider: rgba(82, 63, 105, .06);--padding: 1.5rem}#toolbar[_ngcontent-%COMP%]{position:relative;display:flex;flex:0 0 auto;z-index:4}#toolbar.below[_ngcontent-%COMP%]{z-index:2}#toolbar[_ngcontent-%COMP%] .user-button[_ngcontent-%COMP%]{display:flex;font:400 14px/32px Roboto,Helvetica Neue,Arial,sans-serif!important;min-width:64px;height:64px}@media screen and (max-width:959px){#toolbar[_ngcontent-%COMP%] .user-button[_ngcontent-%COMP%]{padding-right:8px}}@media screen and (min-width:960px){#toolbar[_ngcontent-%COMP%] .user-button[_ngcontent-%COMP%]{padding-right:20px}}@media screen and (max-width:599px){#toolbar[_ngcontent-%COMP%] .user-button[_ngcontent-%COMP%]{height:56px}}#toolbar[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{position:relative;background:inherit!important;color:inherit!important}#toolbar[_ngcontent-%COMP%] .mat-toolbar-single-row[_ngcontent-%COMP%]{height:70px!important}#toolbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:flex;align-items:center}#toolbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{width:250px}#toolbar[_ngcontent-%COMP%] .logo-primary[_ngcontent-%COMP%]{height:auto;max-width:min(170px,100%)}#toolbar[_ngcontent-%COMP%] .cursorPointer[_ngcontent-%COMP%]{cursor:pointer!important}#toolbar[_ngcontent-%COMP%] fuse-search-bar[_ngcontent-%COMP%], #toolbar[_ngcontent-%COMP%] .language-button[_ngcontent-%COMP%], #toolbar[_ngcontent-%COMP%] .chat-panel-toggle-button[_ngcontent-%COMP%], #toolbar[_ngcontent-%COMP%] .quick-panel-toggle-button[_ngcontent-%COMP%]{min-width:64px;height:64px}@media screen and (max-width:599px){#toolbar[_ngcontent-%COMP%] fuse-search-bar[_ngcontent-%COMP%], #toolbar[_ngcontent-%COMP%] .language-button[_ngcontent-%COMP%], #toolbar[_ngcontent-%COMP%] .chat-panel-toggle-button[_ngcontent-%COMP%], #toolbar[_ngcontent-%COMP%] .quick-panel-toggle-button[_ngcontent-%COMP%]{height:56px}}#toolbar[_ngcontent-%COMP%] .navbar-toggle-button[_ngcontent-%COMP%]{min-width:56px;height:56px}
22#toolbar[_ngcontent-%COMP%] .toolbar-separator[_ngcontent-%COMP%]{height:64px;width:1px}@media screen and (max-width:599px){#toolbar[_ngcontent-%COMP%] .toolbar-separator[_ngcontent-%COMP%]{height:56px}}#toolbar[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:5px;vertical-align:middle;padding:0!important}#toolbar[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{width:50px;min-width:50px;height:50px;line-height:45px;font-size:40px}@media screen and (max-width:599px){#toolbar[_ngcontent-%COMP%] [fxHide-xs][_ngcontent-%COMP%]{display:none!important}#toolbar[_ngcontent-%COMP%] .mat-mdc-button[_ngcontent-%COMP%]{min-width:0}}@media screen and (max-width:1279px){#toolbar[_ngcontent-%COMP%] .toggle-sidebar-folded[_ngcontent-%COMP%]{display:none}}@media screen and (min-width:1280px){#toolbar[_ngcontent-%COMP%] .toggle-sidebar-opened[_ngcontent-%COMP%]{display:none}}.shareOn[_ngcontent-%COMP%]{font-family:Encode Sans Condensed,Roboto,Helvetica,Arial,sans-serif;font-size:16px;font-weight:900;color:#448aaf;margin-bottom:0}.social-icons[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.2rem;color:#448aaf}.social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex;list-style:none;margin:0;padding:0}.social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{vertical-align:middle}.social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;font-size:1.4rem;margin:0 5px;text-decoration:none;fill:#448aaf}.social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#448aaf}.social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{fill:#88b8d1}.social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{color:#88b8d1}.social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, .social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{fill:#d2e4ed}.social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus i[_ngcontent-%COMP%], .social-icons[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active i[_ngcontent-%COMP%]{transition:none;color:#d2e4ed}.initials[_ngcontent-%COMP%]{height:48px;min-height:48px;max-height:48px;align-content:center}@keyframes _ngcontent-%COMP%_slideInX{0%{opacity:0;transform:translate(300px)}to{opacity:1;transform:translate(0)}}.animate-slide-in-x[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideInXNeg .2s cubic-bezier(0,0,.2,1) .25s both}@keyframes _ngcontent-%COMP%_slideInXNeg{0%{opacity:0;transform:translate(-100px)}to{opacity:1;transform:translate(0)}}.animate-slide-in-x-neg[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideInXNeg .2s cubic-bezier(0,0,.2,1) .15s both}"],changeDetection:0})}return t})();function xp(t,o){t&1&&b(0,"router-outlet")}var Ht=(()=>{class t{_fuseConfigService;breakpointObserver;fuseConfig;_unsubscribeAll;constructor(e,n){this._fuseConfigService=e,this.breakpointObserver=n,this._unsubscribeAll=new O}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||t)(C(Z),C(ke))};static \u0275cmp=z({type:t,selectors:[["content"]],hostVars:2,hostBindings:function(n,i){n&2&&K("--rp-page-width",i.fuseConfig!=null&&i.fuseConfig.pageWidth?i.fuseConfig.pageWidth+"%":"100%")},decls:1,vars:1,template:function(n,i){n&1&&m(0,xp,1,0,"router-outlet"),n&2&&f(0)},dependencies:[de,Oa],styles:[`content{position:relative;display:flex;z-index:1;flex:1 0 auto}content>*:not(router-outlet){display:flex;flex:1 0 auto;width:100%;min-width:100%}@media screen{#main content>*:has(>.page-layout.simple.fullwidth){display:flex}#main content>*>.page-layout.simple.fullwidth>.content{min-height:800px;width:var(--rp-page-width, 100%);margin-left:auto;margin-right:auto}}@media screen and (max-width:599px){#main content>*>.page-layout.simple.fullwidth>.content{width:100%}} 23`],encapsulation:2})}return t})();var Is=(()=>{class t{_fuseConfigService;_navigationService;_changeDetectorRef;fuseConfig;navigation;siteName=$.siteName;logoImageURL="";logoImageClass="";_unsubscribeAll;constructor(e,n,i){this._fuseConfigService=e,this._navigationService=n,this._changeDetectorRef=i,this._unsubscribeAll=new O}
23ngOnInit(){this.navigation=this.navigation||this._navigationService.navMenu,this._navigationService.onMenuUpdated.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.navigation=e?.menu,this._changeDetectorRef.detectChanges()}),this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.logoImageURL=this.getImage(),this.logoImageClass=this.setClass()}setClass(){switch(this.siteName){default:return""}}getImage(){return this.siteName==="nsa"?"/assets/logos/nsa-logo.png":""}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||t)(C(Z),C(ft),C(Ft))};static \u0275cmp=z({type:t,selectors:[["navbar-horizontal-style-1"]],decls:3,vars:7,consts:[["id","menuParentContainer",2,"display","flex","flex-direction","row","justify-content","space-evenly","align-items","center",3,"ngClass"],[2,"height","50px","margin-top","2px",3,"src","ngClass"],["layout","horizontal"]],template:function(n,i){n&1&&(r(0,"div",0),b(1,"img",1)(2,"fuse-navigation",2),s()),n&2&&(K("background-color",i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.navbar==null?null:i.fuseConfig.layout.navbar.customPrimaryBackground)("color",i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.navbar==null?null:i.fuseConfig.layout.navbar.customPrimaryForeground),g("ngClass",!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.navbar==null)&&i.fuseConfig.layout.navbar.customPrimaryBackground||i.fuseConfig==null||i.fuseConfig.layout==null?null:i.fuseConfig.layout.navbar.primaryBackground),l(),g("src",i.logoImageURL,B)("ngClass",i.logoImageClass))},dependencies:[G,ae,pe,_e,En],styles:[`.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html{--mat-sys-on-surface: initial}.mat-app-background{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.username{color:#000000de} 24`],encapsulation:2})}return t})();var yp=()=>({suppressScrollX:!0}),wp=t=>({"padding-top":t}),Sp=()=>["/pages/home"];function kp(t,o){if(t&1&&b(0,"img",7),t&2){let e=p(2);g("src",e.fuseConfig.directorLogo,B)}}function Tp(t,o){if(t&1&&b(0,"img",8),t&2){let e=p(2);g("src",e.fuseConfig.foldedLogo||e.navigationService.defaultFoldedLogo,B)}}function Mp(t,o){if(t&1&&(r(0,"div",5)(1,"a",6),m(2,kp,1,1,"img",7),m(3,Tp,1,1,"img",8),s()()),t&2){let e=p();K("height",!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.folded?"70":null,"px")("background-color",e.fuseConfig.layout.navbar.customSecondaryBackgroun
24d),g("ngClass",e.fuseConfig.layout.navbar.customSecondaryBackground?null:e.fuseConfig.layout.navbar.secondaryBackground),l(),g("routerLink",ue(8,Sp)),l(),f(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.folded?-1:2),l(),f(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.folded?3:-1)}}function Pp(t,o){if(t&1&&(r(0,"div",12),d(1),s()),t&2){let e=p(2);K("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null?null:e.fuseConfig.layout.navbar.customSecondaryForeground),g("ngClass",e.fuseConfig.layout.navbar.customPrimaryForeground??"username"),l(),S(e.userProfile.name)}}function Ep(t,o){if(t&1&&(r(0,"div",13),b(1,"img",14),s()),t&2){let e=p(2);K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null?null:e.fuseConfig.layout.navbar.customPrimaryBackground),g("ngClass",!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.customPrimaryBackground||e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null?null:e.fuseConfig.layout.navbar.primaryBackground),l(),g("src",e.imagePrefix+e.userProfile.avatar,B)}}function Ap(t,o){if(t&1&&(r(0,"div")(1,"div",9),m(2,Pp,2,4,"div",10),m(3,Ep,2,4,"div",11),s()()),t&2){let e=p();l(),K("background-color",e.fuseConfig.layout.navbar.customSecondaryBackground),U("user-layout-3",(e.fuseConfig==null||e.fuseConfig.layout==null?null:e.fuseConfig.layout.style)==="vertical-layout-3")("hasImage",e.userProfile.avatar),g("ngClass",!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.customSecondaryBackground?null:e.fuseConfig.layout.navbar.secondaryBackground),l(),f(e.userProfile.name?2:-1),l(),f(e.userProfile.avatar?3:-1)}}function Op(t,o){t&1&&(r(0,"div",4),b(1,"div",15),s())}var Rs=(()=>{class t{_fuseConfigService;_fuseSidebarService;_router;api;_membership;navigationService;cdr;fuseConfig;foldStatus=!0;imagePrefix=new jt().prefix;userProfile={};isLoggedIn;siteName=$.siteName;_fusePerfectScrollbar;_unsubscribeAll;constructor(e,n,i,a,c,u,h){this._fuseConfigService=e,this._fuseSidebarService=n,this._router=i,this.api=a,this._membership=c,this.navigationService=u,this.cdr=h,this._unsubscribeAll=new O,localStorage.getItem("person")&&(this.isLoggedIn=!0,this.cdr.markForCheck()),c.userChanged.subscribe(_=>{this.isLoggedIn=c.isLoggedIn,this.getUserProfile(),this.cdr.detectChanges()})}set directive(e){e&&(this._fusePerfectScrollbar=e,this._router.events.pipe(we(n=>n instanceof Ee),Et(1)).subscribe(()=>{setTimeout(()=>{this._fusePerfectScrollbar.scrollToElement("navbar .nav-link.active",-120)})}))}ngOnInit(){this._router.events.pipe(we(e=>e instanceof Ee),T(this._unsubscribeAll)).subscribe(()=>{this._fuseSidebarService.getSidebar("navbar")&&this._fuseSidebarService.getSidebar("navbar").close()}),this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.getUserProfile()}getUserProfile(){this.isLoggedIn?setTimeout(()=>{this.userProfile=this._membership.getUserProfile()},100):this.userProfile={}}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}toggleSidebarOpened(){this._fuseSidebarService.getSidebar("navbar")?.toggleOpen(),this.foldStatus=!this.foldStatus}toggleSidebarFolded(){this._fuseSidebarService.getSidebar("navbar").toggleFold(),this.foldStatus=!this.foldStatus,this.fuseConfig.layout.navbar.folded=!this.foldStatus,this._fuseConfigService.setConfig(this.fuseConfig)}static \u0275fac=function(n){return new(n||t)(C(Z),C(je),C(re),C(X),C(Me),C(ft),C(Ft))};static \u0275cmp=z({type:t,selectors:[["navbar-vertical-style-1"]],viewQuery:function(n,i){if(n&1&&ve(Ue,7),n&2){let a;xe(a=ye())&&(i.directive=a.first)}},decls:6,vars:13,consts:[[1,"navbar-top-rp","no-print",2,"display","flex","justify-content","center","align-items","center",3,"height","ngClass","background-color"],["fusePerfectScrollbar","",1,"navbar-scroll-container","no-print",3,"fusePerfectScrollbarOptions","ngClass"],[1,"navbar-content",3,"ngStyle"],["layout","vertical",1,"material2"],[1,"text-center"],[1,"navbar-top-rp","no-print",2,"display","flex","justify-content","center","align-items","center",3,"ngClass"],[3,"routerLink"],[1,"directorLogo",3,"src"],["alt","",2,"max-height","64px","max-width","64px",3,"src"],[1,"user",3,"ngClass"],[1,"h3","text-bold",3,"ngClass","color"],[1,"avatar-container",3,"ngClass","background-color"],[1,"h3","text-bold",3,"ngClass"],[1,"avatar-container",3,"ngClass"],[1,"avatar","mr-0",3,"src"],["id","sidebar-ad",1,"mat-elevation-z4","mx-auto","my-8","p-8","border-radius-4","fuse-white",2,"display","none","width","fit-content"]],template:function(n,i){n&1&&(m(0,Mp,4,9,"div",0),r(1,"div",1),m(2,Ap,4,9,"div"),r(3,"div",2),b(4,"fuse-navigation",3),m(5,Op,2,0,"div",4),s()()),n&2&&(f((i.fuseConfig==null||i.fuseConfig.layout==null?null:i.fuseConfig.layout.style)!=="vertical-layout-3"?0:-1),l(),K("background-color",i.fuseConfig.layout.navbar.customPrimaryBackgroun
24d)("color",i.fuseConfig.layout.navbar.customPrimaryForeground),g("fusePerfectScrollbarOptions",ue(10,yp))("ngClass",!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.navbar==null)&&i.fuseConfig.layout.navbar.customPrimaryBackground?null:i.fuseConfig.layout.navbar.primaryBackground),l(),f(i.isLoggedIn&&!(!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.navbar==null)&&i.fuseConfig.layout.navbar.folded)?2:-1),l(),g("ngStyle",oe(11,wp,i.isLoggedIn?"32px":"8px")),l(2),f(!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.navbar==null)&&i.fuseConfig.layout.navbar.folded?-1:5))},dependencies:[pe,_e,de,Re,En,G,ae,et,me,mt,Ue],styles:[`fuse-sidebar.navbar-fuse-sidebar{overflow:hidden}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-top{padding:12px 0;justify-content:center}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-top .buttons{display:none}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-top .logo .logo-icon{width:32px;height:32px}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-top .logo .logo-text{display:none}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user{padding:12px 0;height:64px;min-height:64px;max-height:64px}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user.user-layout-3{padding:26px 0}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container{position:relative;top:auto;padding:0;transform:translate(0);left:auto}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container .avatar{width:40px;height:40px}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .username,fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .email{display:none}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content{padding-top:0}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content .material2 .hideOnFolded{display:none}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content .material2 .nav-item .nav-link{border-radius:0 20px 20px 0;margin-right:12px;padding:0 12px}navbar.vertical-style-1{display:flex;flex-direction:column;flex:1 1 auto;width:100%;height:100%}navbar.vertical-style-1.right-navbar .toggle-sidebar-opened mat-icon{transform:rotate(180deg)}navbar navbar-vertical-style-1{display:flex;flex-direction:column;width:100%;height:100%}navbar navbar-vertical-style-1 .toggle-sidebar-folded .logo,navbar navbar-vertical-style-1 .toggle-sidebar-folded .avatarUSA{display:none}navbar navbar-vertical-style-1 .navbar-top{display:flex;flex-direction:row;flex:1 0 auto;align-items:center;justify-content:center;min-height:64px;max-height:64px;height:64px}navbar navbar-vertical-style-1 .navbar-top .logo{display:flex;align-items:center}navbar navbar-vertical-style-1 .navbar-top .logo .logo-icon{width:24px;height:24px}navbar navbar-vertical-style-1 .navbar-top .logo .logo-text{margin-left:12px;font-size:16px;font-weight:300;letter-spacing:.4px;line-height:normal}navbar navbar-vertical-style-1 .navbar-top .logo .directorLogo{margin-top:10px}navbar navbar-vertical-style-1 .navbar-top .buttons{display:flex;align-items:center}navbar navbar-vertical-style-1 .navbar-scroll-container{display:flex;flex-direction:column;flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(#0000 30% 30%),linear-gradient(#00000040 0,#0000 40%);background-repeat:no-repeat;background-size:100% 40px,100% 10px;background-attachment:local,scroll}navbar navbar-vertical-style-1 .navbar-scroll-container .user{position:relative;text-align:center;width:100%;padding:12px 0}navbar navbar-vertical-style-1 .navbar-scroll-container .user.user-layout-3{padding:26px 0}navbar navbar-vertical-style-1 .navbar-scroll-container .user.hasImage{height:80px;min-height:80px;max-height:80px}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container{position:absolute;top:40px;border-radius:50%;padding:8px;transform:translate(-50%);left:50%}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container .avatar{width:72px!important;height:72px!important;margin:0}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container .avatarUSA{height:auto;vertical-align:top;padding:10px}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container .avatar-icon{width:50px;min-width:50px;height:50px;line-height:45px;font-size:40px}navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content{flex:1 1 auto}.notLoggedIn .user{height:56px!important;min-height:56px!important;max-height:56px!important}.notLoggedIn .user .avatar-container{top:25px!important}.navbar-top-rp .directorLogo{max-height:100px;margin-top:10px;margin-bottom:10px} 25`],encapsulation:2})}return t})();var Ip=()=>({suppressScrollX:!0}),Rp=()=>["/pages/home"];function Fp(t,o){if(t&1&&b(0,"img",7),t&2){let e=p(2);g("src",e.fuseConfig.directorLogo,B)}}function Lp(t,o){if(t&1&&b(0,"img",8),t&2){let e=p(2);g("src",e.fuseConfig.foldedLogo||e.navigationService.defaultFoldedLogo,B)}}function Dp(t,o){if(t&1&&(r(0,"div",4)(1,"div",5)(2,"a",6),m(3,Fp,1,1,"img",7),m(4,Lp,1,1,"img",8),s()()()),t&2){let e=p();K("background-color",e.fuseConfig.layout.navbar.customSecondaryBackgroun
25d),g("ngClass",e.fuseConfig.layout.navbar.customSecondaryBackground?null:e.fuseConfig.layout.navbar.secondaryBackground),l(2),g("routerLink",ue(6,Rp)),l(),f(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.folded?-1:3),l(),f(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.folded?4:-1)}}function Np(t,o){t&1&&(r(0,"div",3),b(1,"div",9),s())}var Fs=(()=>{class t{_fuseConfigService;_fuseSidebarService;_router;navigationService;fuseConfig;navigation;foldStatus=!0;siteName=$.siteName;_fusePerfectScrollbar;_unsubscribeAll;constructor(e,n,i,a){this._fuseConfigService=e,this._fuseSidebarService=n,this._router=i,this.navigationService=a,this._unsubscribeAll=new O}set directive(e){e&&(this._fusePerfectScrollbar=e,this._router.events.pipe(we(n=>n instanceof Ee),Et(1)).subscribe(()=>{setTimeout(()=>{this._fusePerfectScrollbar.scrollToElement("navbar .nav-link.active",-120)})}))}ngOnInit(){this._router.events.pipe(we(e=>e instanceof Ee),T(this._unsubscribeAll)).subscribe(()=>{this._fuseSidebarService.getSidebar("navbar")&&this._fuseSidebarService.getSidebar("navbar").close()}),this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}toggleSidebarOpened(){this._fuseSidebarService.getSidebar("navbar")?.toggleOpen(),this.foldStatus=!this.foldStatus}toggleSidebarFolded(){this._fuseSidebarService.getSidebar("navbar").toggleFold(),this.foldStatus=!this.foldStatus,this.fuseConfig.layout.navbar.folded=!this.foldStatus,this._fuseConfigService.setConfig(this.fuseConfig)}static \u0275fac=function(n){return new(n||t)(C(Z),C(je),C(re),C(ft))};static \u0275cmp=z({type:t,selectors:[["navbar-vertical-style-2"]],viewQuery:function(n,i){if(n&1&&ve(Ue,7),n&2){let a;xe(a=ye())&&(i.directive=a.first)}},decls:4,vars:9,consts:[["fxLayout","row","fxLayoutAlign","space-between center",1,"navbar-header","noPrint",3,"ngClass","background-color"],["fusePerfectScrollbar","",1,"navbar-content",2,"height","100%",3,"fusePerfectScrollbarOptions","ngClass"],["layout","vertical",1,"material2"],[1,"text-center"],["fxLayout","row","fxLayoutAlign","space-between center",1,"navbar-header","noPrint",3,"ngClass"],[1,"logo","w-100-p"],[3,"routerLink"],[1,"directorLogo",3,"src"],["alt","",2,"max-height","64px","max-width","64px",3,"src"],["id","sidebar-ad",1,"mat-elevation-z4","mx-auto","my-8","p-8","border-radius-4","fuse-white",2,"display","none","width","fit-content"]],template:function(n,i){n&1&&(m(0,Dp,5,7,"div",0),r(1,"div",1),b(2,"fuse-navigation",2),m(3,Np,2,0,"div",3),s()),n&2&&(f(i.fuseConfig.layout.style!="horizontal-layout-1"?0:-1),l(),K("background-color",i.fuseConfig.layout.navbar.customPrimaryBackground)("color",i.fuseConfig.layout.navbar.customPrimaryForeground),g("fusePerfectScrollbarOptions",ue(8,Ip))("ngClass",i.fuseConfig.layout.navbar.customPrimaryBackground?null:i.fuseConfig.layout.navbar.primaryBackground),l(2),f(!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.navbar==null)&&i.fuseConfig.layout.navbar.folded?-1:3))},dependencies:[G,ae,pe,_e,de,Re,En,Ue],styles:[`fuse-sidebar.navbar-fuse-sidebar{overflow:hidden}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-2 .navbar-header{padding:4px 0;min-height:70px;max-height:70px;height:70px}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-2 .navbar-header .logo .logo-text{opacity:0;transition:opacity .2s ease}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-2 .navbar-content .material2 .hideOnFolded{display:none}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-2 .navbar-content .material2 .nav-item .nav-link{border-radius:0 20px 20px 0;margin:6px 6px 6px 0;padding:0 12px}navbar.vertical-style-2{display:flex;flex-direction:column;flex:1 1 auto;width:100%;height:100%}navbar.vertical-style-2.right-navbar .toggle-sidebar-opened mat-icon{transform:rotate(180deg)}navbar navbar-vertical-style-2{display:flex;flex-direction:column;width:100%;height:100%}navbar navbar-vertical-style-2 .navbar-header{display:flex;align-items:center;justify-content:space-between;
25height:70px;min-height:70px;max-height:70px;transition:padding .2s ease;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}navbar navbar-vertical-style-2 .navbar-header .logo{display:flex;align-items:center;justify-content:center}navbar navbar-vertical-style-2 .navbar-header .logo .logo-icon{height:55px}navbar navbar-vertical-style-2 .navbar-header .logo .logo-text{margin-left:8px;font-size:20px;font-weight:300;letter-spacing:.4px}navbar navbar-vertical-style-2 .navbar-header .logo .directorLogo{margin-top:10px;margin-bottom:10px;max-height:70px;max-width:320px}navbar navbar-vertical-style-2 .navbar-content{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch} 26`],encapsulation:2})}return t})();function Vp(t,o){t&1&&b(0,"navbar-horizontal-style-1")}function zp(t,o){t&1&&b(0,"navbar-vertical-style-1")}function Bp(t,o){t&1&&b(0,"navbar-vertical-style-2")}var Wt=(()=>{class t{_elementRef;_renderer;_variant;constructor(e,n){this._elementRef=e,this._renderer=n,this._variant="vertical-style-1"}get variant(){return this._variant}set variant(e){this._renderer.removeClass(this._elementRef.nativeElement,this.variant),this._variant=e,this._renderer.addClass(this._elementRef.nativeElement,e)}static \u0275fac=function(n){return new(n||t)(C(vt),C(Yt))};static \u0275cmp=z({type:t,selectors:[["navbar"]],inputs:{variant:"variant"},decls:3,vars:3,template:function(n,i){n&1&&(m(0,Vp,1,0,"navbar-horizontal-style-1"),m(1,zp,1,0,"navbar-vertical-style-1"),m(2,Bp,1,0,"navbar-vertical-style-2")),n&2&&(f(i.variant==="horizontal-style-1"?0:-1),l(),f(i.variant==="vertical-style-1"?1:-1),l(),f(i.variant==="vertical-style-2"?2:-1))},dependencies:[Is,Rs,Fs],encapsulation:2})}return t})();var jp=()=>({suppressScrollX:!0,updateOnRouteChange:!0});function Up(t,o){t&1&&j(0)}function $p(t,o){t&1&&j(0)}function qp(t,o){if(t&1&&E(0,$p,1,0,"ng-container",5),t&2){p();let e=D(16);g("ngTemplateOutlet",e)}}function Kp(t,o){t&1&&j(0)}function Hp(t,o){t&1&&j(0)}function Wp(t,o){if(t&1&&E(0,Hp,1,0,"ng-container",5),t&2){p();let e=D(16);g("ngTemplateOutlet",e)}}function Gp(t,o){t&1&&j(0)}function Qp(t,o){t&1&&j(0)}function Yp(t,o){if(t&1&&E(0,Qp,1,0,"ng-container",5),t&2){p();let e=D(18);g("ngTemplateOutlet",e)}}function Xp(t,o){t&1&&j(0)}function Jp(t,o){if(t&1&&E(0,Xp,1,0,"ng-container",5),t&2){p();let e=D(18);g("ngTemplateOutlet",e)}}function Zp(t,o){t&1&&j(0)}function eu(t,o){if(t&1&&b(0,"toolbar",11),t&2){let e=p(2);K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarBackground)("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarForeground),g("ngClass",e.fuseConfig.layout.toolbar.customBackgroundColor===!0&&!(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null)&&e.fuseConfig.layout.toolbar.customToolbarBackground)?e.fuseConfig.layout.toolbar.position+" "+e.fuseConfig.layout.toolbar.background:e.fuseConfig.layout.toolbar.position)}}function tu(t,o){if(t&1&&m(0,eu,1,5,"toolbar",10),t&2){let e=p();f(e.fuseConfig.layout.toolbar.hidden?-1:0)}}function nu(t,o){if(t&1&&b(0,"footer",11),t&2){let e=p(2);K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null?null:e.fuseConfig.layout.footer.customFooterBackground)("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null?null:e.fuseConfig.layout.footer.customFooterForeground),g("ngClass",e.fuseConfig.layout.footer.customBackgroundColor===!0&&!(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null)&&e.fuseConfig.layout.footer.customFooterBackground)?e.fuseConfig.layout.footer.position+" "+e.fuseConfig.layout.footer.background:e.fuseConfig.layout.footer.position)}}function iu(t,o){if(t&1&&m(0,nu,1,5,"footer",10),t&2){let e=p();f(e.fuseConfig.layout.footer.hidden?-1:0)}}function ou(t,o){t&1&&b(0,"navbar",12)}function au(t,o){if(t&1&&m(0,ou,1,0,"navbar",12),t&2){let e=p();f(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.hidden?-1:0)}}function ru(t,o){if(t&1&&(r(0,"fuse-sidebar",13),b(1,"navbar",14),s()),t&2){let e=p(2);g("folded",e.fuseConfig.layout.navbar.folded),l(),g("variant",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null?null:e.fuseConfig.layout.navbar.variant)}}function su(t,o){if(t&1&&m(0,ru,2,2,"fuse-sidebar",13),t&2){let e=p();f(e.fuseConfig.layout.navbar.hidden?-1:0)}}var Ds=(()=>{class t{_fuseConfigService;_platform;sanitizer;_detectDevice;breakpointObserver;fuseConfig;isMobile=!1;imagePrefix=new jt().prefix;_unsubscribeAll;constructor(e,n,i,a,c){this._fuseConfigService=e,this._platform=n,this.sanitizer=i,this._detectDevice=a,this.breakpointObserver=c,this._unsubscribeAll=new O,this._detectDevice.subscribeToLayoutChanges().pipe(T(this._unsubscribeAll)).subscribe(u=>{this._detectDevice.isBreakpointActive(tt.mobile)&&(this.isMobile=!!this._detectDevice.isBreakpointActive(tt.mobile))})}containerStyle;ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e,this.containerStyle={};let n=this.fuseConfig?.bgPage||this.fuseConfig.bgMain;this.breakpointObserver.observe([se.XSmall,se.Small,se.Medium,se.Large,se.XLarge]).subscribe(i=>{i.breakpoints[se.XSmall]?n=`${this.fuseConfig?.bgPage||this.fuseConfig.bgMain}?w=600&h=400`:i.breakpoints[se.Small]?n=`${this.fuseConfig?.bgPage||this.fuseConfig.bgMain}?w=800&h=500`:i.breakpoints[se.Medium]?n=`${this.fuseConfig?.bgPage||this.fuseConfig.bgMain}?w=1200&h=700`:i.breakpoints[se.Large]?n=`${this.fuseConfig?.bgPage||this.fuseConfig.bgMain}?w=1600&h=900`:i.breakpoints[se.XLarge]&&(n=`${this.fuseConfig?.bgPage||this.fuseConfig.bgMain}?w=1920&h=1080`),this.containerStyle={background:n?"transparent":"#ffffffd9","background-image":`url(${n})`,"background-repeat":"no-repeat","background-position":"center center","background-size":"cover"}}),this.fuseConfig.layout.pageheader.transparentBG!=!0&&(this.containerStyle["background-color"]="white")}),this.isMobile}transform(){return this.sanitizer.bypassSecurityTrustResourceUrl(this.fuseConfig.bgPage)}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}
26static \u0275fac=function(n){return new(n||t)(C(Z),C(Lt),C(ut),C(nt),C(ke))};static \u0275cmp=z({type:t,selectors:[["horizontal-layout-1"]],decls:23,vars:13,consts:[["toolbar",""],["footer",""],["topNavbar",""],["leftNavbar",""],["id","main"],[4,"ngTemplateOutlet"],["id","container-1",1,"fuse-container",2,"margin-top","0 !important"],["id","container-2",1,"fuse-container"],["id","container-scrool","fusePerfectScrollbar","",1,"fuse-container",3,"ngStyle","fusePerfectScrollbarOptions"],[1,"mb-20"],[1,"no-print",3,"ngClass","background-color","color"],[1,"no-print",3,"ngClass"],["variant","horizontal-style-1","fxHide","","fxShow-gt-md","",1,"top-navbar","no-print"],["name","navbar",1,"navbar-fuse-sidebar","no-print",3,"folded"],[1,"left-navbar","no-print",3,"variant"]],template:function(n,i){if(n&1&&(m(0,Up,1,0,"ng-container"),r(1,"div",4),m(2,qp,1,1,"ng-container"),Je(3),E(4,Kp,1,0,"ng-container",5),Ze(),m(5,Wp,1,1,"ng-container"),r(6,"div",6),Je(7),E(8,Gp,1,0,"ng-container",5),Ze(),r(9,"div",7)(10,"div",8),b(11,"content",9),m(12,Yp,1,1,"ng-container"),s()()(),m(13,Jp,1,1,"ng-container"),s(),m(14,Zp,1,0,"ng-container"),E(15,tu,1,1,"ng-template",null,0,ne)(17,iu,1,1,"ng-template",null,1,ne)(19,au,1,1,"ng-template",null,2,ne)(21,su,1,1,"ng-template",null,3,ne)),n&2){let a=D(20),c=D(22);f(!(!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.sidepanel==null)&&i.fuseConfig.layout.sidepanel.hidden)&&(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.sidepanel==null?null:i.fuseConfig.layout.sidepanel.position)==="left"?0:-1),l(),Rt("--margin:"+((i.fuseConfig==null||i.fuseConfig.bgPage==null?null:i.fuseConfig.bgPage.length)>0&&!i.isMobile?"28px":"0")),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.position)==="above"?2:-1),l(2),g("ngTemplateOutlet",a),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.position)==="below"?5:-1),l(3),g("ngTemplateOutlet",c),l(2),g("ngStyle",i.containerStyle)("fusePerfectScrollbarOptions",ue(12,jp)),l(2),f(i.fuseConfig.layout.footer.position==="above-static"?12:-1),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.footer==null?null:i.fuseConfig.layout.footer.position)==="above-fixed"&&!i.isMobile?13:-1),l(),f(!(!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.sidepanel==null)&&i.fuseConfig.layout.sidepanel.hidden)&&(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.sidepanel==null?null:i.fuseConfig.layout.sidepanel.position)==="right"?14:-1)}},dependencies:[Ar,G,ae,pt,et,Ue,ht,Ht,Ut,Wt,Kt,Ci,fr],styles:[`horizontal-layout-1{display:flex;flex:1 1 auto;width:100%;height:100%}@media screen and (max-width:1279px){horizontal-layout-1 .top-navbar{display:none!important}}horizontal-layout-1 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1;min-width:0}horizontal-layout-1 #main .content{width:100%;margin:0 auto}@media screen and (max-width:599px){horizontal-layout-1 #main .content{width:100%}}horizontal-layout-1 #main>.fuse-container{position:relative;display:flex;flex:1 1 0%;width:100%;min-height:0;min-width:0;margin-top:7px}horizontal-layout-1 #main>.fuse-container>.fuse-container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;min-width:0}horizontal-layout-1 #main>.fuse-container>.fuse-container>.fuse-container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}horizontal-layout-1 #main>.fuse-container>.fuse-container>.fuse-container content.inner-scroll{flex:1 1 0%;min-height:0}horizontal-layout-1 #main>.fuse-container>.fuse-container>.fuse-container content.inner-scroll>*:not(router-outlet){flex:1 1 0%} 27`],encapsulation:2})}return t})();var lu=()=>({suppressScrollX:!0,updateOnRouteChange:!0}),cu=(t,o)=>({"ml-32":t,"mr-32":o});function du(t,o){}function pu(t,o){t&1&&j(0)}function uu(t,o){if(t&1&&E(0,pu,1,0,"ng-container",8),t&2){p();let e=D(13);g("ngTemplateOutlet",e)}}function mu(t,o){t&1&&j(0)}function fu(t,o){if(t&1&&E(0,mu,1,0,"ng-container",8),t&2){p();let e=D(13);g("ngTemplateOutlet",e)}}function hu(t,o){t&1&&j(0)}function gu(t,o){if(t&1&&E(0,hu,1,0,"ng-container",8),t&2){p();let e=D(17);g("ngTemplateOutlet",e)}}function _u(t,o){t&1&&j(0)}function bu(t,o){if(t&1&&E(0,_u,1,0,"ng-container",8),t&2){p();let e=D(19);g("ngTemplateOutlet",e)}}function Cu(t,o){t&1&&j(0)}function vu(t,o){if(t&1&&E(0,Cu,1,0,"ng-container",8),t&2){p();let e=D(15);g("ngTemplateOutlet",e)}}function xu(t,o){t&1&&j(0)}function yu(t,o){if(t&1&&E(0,xu,1,0,"ng-container",8),t&2){p();let e=D(15);g("ngTemplateOutlet",e)}}function wu(t,o){}function Su(t,o){if(t&1&&b(0,"toolbar",9),t&2){let e=p(2);
27g("ngClass",e.fuseConfig.layout.toolbar.customBackgroundColor===!0?e.fuseConfig.layout.toolbar.position+" "+e.fuseConfig.layout.toolbar.background:e.fuseConfig.layout.toolbar.position)}}function ku(t,o){if(t&1&&m(0,Su,1,1,"toolbar",9),t&2){let e=p();f(e.fuseConfig.layout.toolbar.hidden?-1:0)}}function Tu(t,o){if(t&1&&b(0,"footer",9),t&2){let e=p(2);K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null?null:e.fuseConfig.layout.footer.customFooterBackground)("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null?null:e.fuseConfig.layout.footer.customFooterForeground),g("ngClass",e.fuseConfig.layout.footer.customBackgroundColor===!0&&!(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null)&&e.fuseConfig.layout.footer.customFooterBackground)?e.fuseConfig.layout.footer.position+" "+e.fuseConfig.layout.footer.background:e.fuseConfig.layout.footer.position)}}function Mu(t,o){if(t&1&&m(0,Tu,1,5,"footer",10),t&2){let e=p();f(e.fuseConfig.layout.footer.hidden?-1:0)}}function Pu(t,o){if(t&1&&(r(0,"fuse-sidebar",11),b(1,"navbar",12),s()),t&2){let e=p(2);g("folded",e.fuseConfig.layout.navbar.folded),l(),g("variant",e.fuseConfig.layout.navbar.variant)}}function Eu(t,o){if(t&1&&m(0,Pu,2,2,"fuse-sidebar",11),t&2){let e=p();f(e.fuseConfig.layout.navbar.hidden?-1:0)}}function Au(t,o){if(t&1&&(r(0,"fuse-sidebar",13),b(1,"navbar",14),s()),t&2){let e=p(2);g("folded",e.fuseConfig.layout.navbar.folded),l(),g("variant",e.fuseConfig.layout.navbar.variant)}}function Ou(t,o){if(t&1&&m(0,Au,2,2,"fuse-sidebar",13),t&2){let e=p();f(e.fuseConfig.layout.navbar.hidden?-1:0)}}var Ns=(()=>{class t{_fuseConfigService;breakpointObserver;fuseConfig;isMobile=!1;_unsubscribeAll;constructor(e,n){this._fuseConfigService=e,this.breakpointObserver=n,this._unsubscribeAll=new O,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(T(this._unsubscribeAll)).subscribe(i=>{this.isMobile=!!i.matches})}containerStyle;ngOnInit(){this.containerStyle={"background-color":"white"},this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e,this.fuseConfig.bgPage&&(this.containerStyle={background:this.fuseConfig?.bgPage?"transparent":" #ffffffd9","background-image":"url("+this.fuseConfig?.bgPage+")","background-repeat":"no-repeat","background-position":"center center","background-size":"cover"})})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||t)(C(Z),C(ke))};static \u0275cmp=z({type:t,selectors:[["vertical-layout-3"]],decls:20,vars:17,consts:[["toolbar",""],["footer",""],["leftNavbar",""],["rightNavbar",""],["id","main"],["id","container-scrool","fusePerfectScrollbar","",1,"fuse-container",3,"fusePerfectScrollbarOptions"],["id","container-2",1,"fuse-container"],["id","container-3",1,"mb-20",3,"ngStyle","ngClass"],[4,"ngTemplateOutlet"],[1,"no-print",3,"ngClass"],[1,"no-print",3,"ngClass","background-color","color"],["name","navbar","lockedOpen","gt-md",1,"navbar-fuse-sidebar","no-print",3,"folded"],[1,"left-navbar","no-print",3,"variant"],["name","navbar","position","right","lockedOpen","gt-md",1,"navbar-fuse-sidebar","no-print",3,"folded"],[1,"right-navbar","no-print",3,"variant"]],template:function(n,i){n&1&&(m(0,du,0,0),r(1,"div",4),m(2,uu,1,1,"ng-container"),r(3,"div",5),m(4,fu,1,1,"ng-container"),r(5,"div",6),m(6,gu,1,1,"ng-container"),b(7,"content",7),m(8,bu,1,1,"ng-container"),s(),m(9,vu,1,1,"ng-container"),s(),m(10,yu,1,1,"ng-container"),s(),m(11,wu,0,0),E(12,ku,1,1,"ng-template",null,0,ne)(14,Mu,1,1,"ng-template",null,1,ne)(16,Eu,1,1,"ng-template",null,2,ne)(18,Ou,1,1,"ng-template",null,3,ne)),n&2&&(f(!i.fuseConfig.layout.sidepanel.hidden&&i.fuseConfig.layout.sidepanel.position==="left"?0:-1),l(),Rt("--margin:"+((i.fuseConfig==null||i.fuseConfig.bgPage==null?null:i.fuseConfig.bgPage.length)>0&&!i.isMobile?"28px":"0")),l(),f(i.fuseConfig.layout.toolbar.position==="above-fixed"?2:-1),l(),g("fusePerfectScrollbarOptions",ue(13,lu)),l(),f(i.fuseConfig.layout.toolbar.position==="above-static"?4:-1),l(2),f(i.fuseConfig.layout.navbar.position==="left"?6:-1),l(),g("ngStyle",i.containerStyle)("ngClass",_n(14,cu,!i.isMobile&&i.fuseConfig.layout.navbar.position==="left",!i.isMobile&&i.fuseConfig.layout.navbar.position==="right")),l(),f(i.fuseConfig.layout.navbar.position==="right"?8:-1),l(),f(i.fuseConfig.layout.footer.position==="above-static"?9:-1),l(),f(i.fuseConfig.layout.footer.position==="above-fixed"?10:-1),l(),f(!i.fuseConfig.layout.sidepanel.hidden&&i.fuseConfig.layout.sidepanel.position==="right"?11:-1))},dependencies:[de,G,ae,pt,et,me,mt,ht,Ht,Ut,Kt,Ue,Wt],styles:[`vertical-layout-3{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-3 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1;min-width:0}vertical-layout-3 #main .content{min-height:800px;margin-right:var(--margin);margin-left:var(--margin)}vertical-layout-3 #main>.fuse-container{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}vertical-layout-3 #main>.fuse-container>.fuse-container{position:relative;display:flex;flex:1 0 auto;width:100%;min-width:0;padding:32px}@media(max-width:768px){vertical-layout-3 #main>.fuse-container>.fuse-container{padding:0}}vertical-layout-3 #main>.fuse-container>.fuse-container>content{flex:1 1 auto;min-width:0;box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f} 28`],encapsulation:2})}return t})();var Iu=()=>({suppressScrollX:!0,updateOnRouteChange:!0});function Ru(t,o){}function Fu(t,o){t&1&&j(0)}function Lu(t,o){if(t&1&&E(0,Fu,1,0,"ng-container",9),t&2){p();let e=D(16);g("ngTemplateOutlet",e)}}function Du(t,o){t&1&&j(0)}function Nu(t,o){if(t&1&&E(0,Du,1,0,"ng-container",9),t&2){p();let e=D(16);g("ngTemplateOutlet",e)}}function Vu(t,o){t&1&&j(0)}function zu(t,o){if(t&1&&E(0,Vu,1,0,"ng-container",9),t&2){p();let e=D(20);g("ngTemplateOutlet",e)}}function Bu(t,o){t&1&&j(0)}function ju(t,o){if(t&1&&E(0,Bu,1,0,"ng-container",9),t&2){p();let e=D(16);g("ngTemplateOutlet",e)}}function Uu(t,o){t&1&&j(0)}function $u(t,o){if(t&1&&E(0,Uu,1,0,"ng-container",9),t&2){p();let e=D(18);g("ngTemplateOutlet",e)}}function qu(t,o){t&1&&j(0)}function Ku(t,o){if(t&1&&E(0,qu,1,0,"ng-container",9),t&2){p();let e=D(22);g("ngTemplateOutlet",e)}}function Hu(t,o){t&1&&j(0)}function Wu(t,o){if(t&1&&E(0,Hu,1,0,"ng-container",9),t&2){p();let e=D(18);g("ngTemplateOutlet",e)}}function Gu(t,o){t&1&&j(0)}
28function Qu(t,o){if(t&1&&E(0,Gu,1,0,"ng-container",9),t&2){p();let e=D(18);g("ngTemplateOutlet",e)}}function Yu(t,o){}function Xu(t,o){if(t&1&&b(0,"toolbar",11),t&2){let e=p(2);K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarBackground)("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarForeground),g("ngClass",(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customBackgroundColor)===!0?(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.position)+" "+(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null)&&e.fuseConfig.layout.toolbar.customToolbarBackground||e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.background):e.fuseConfig.layout.toolbar.position)}}function Ju(t,o){if(t&1&&m(0,Xu,1,5,"toolbar",10),t&2){let e=p();f(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null)&&e.fuseConfig.layout.toolbar.hidden?-1:0)}}function Zu(t,o){if(t&1&&b(0,"footer",11),t&2){let e=p(2);K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null?null:e.fuseConfig.layout.footer.customFooterBackground)("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null?null:e.fuseConfig.layout.footer.customFooterForeground),g("ngClass",(e.fuseConfig==null||e.fuseConfig.layout==null?null:e.fuseConfig.layout.footer.customBackgroundColor)===!0&&!(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null)&&e.fuseConfig.layout.footer.customFooterBackground)?(e.fuseConfig==null||e.fuseConfig.layout==null?null:e.fuseConfig.layout.footer.position)+" "+(e.fuseConfig==null||e.fuseConfig.layout==null?null:e.fuseConfig.layout.footer.background):e.fuseConfig==null||e.fuseConfig.layout==null?null:e.fuseConfig.layout.footer.position)}}function em(t,o){if(t&1&&m(0,Zu,1,5,"footer",10),t&2){let e=p();f(!(e.fuseConfig==null||e.fuseConfig.layout==null)&&e.fuseConfig.layout.footer.hidden?-1:0)}}function tm(t,o){if(t&1&&(r(0,"fuse-sidebar",12),b(1,"navbar",13),s()),t&2){let e=p(2);g("folded",e.fuseConfig.layout.navbar.folded),l(),g("variant",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null?null:e.fuseConfig.layout.navbar.variant)}}function nm(t,o){if(t&1&&m(0,tm,2,2,"fuse-sidebar",12),t&2){let e=p();f(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.hidden?-1:0)}}function im(t,o){if(t&1&&(r(0,"fuse-sidebar",14),b(1,"navbar",15),s()),t&2){let e=p(2);g("folded",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null?null:e.fuseConfig.layout.navbar.folded),l(),g("variant",e.fuseConfig==null||e.fuseConfig.layou==null||e.fuseConfig.layou.navbar==null?null:e.fuseConfig.layou.navbar.variant)}}function om(t,o){if(t&1&&m(0,im,2,2,"fuse-sidebar",14),t&2){let e=p();f(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.navbar==null)&&e.fuseConfig.layout.navbar.hidden?-1:0)}}var Vs=(()=>{class t{_fuseConfigService;sanitizer;breakpointObserver;_fuseMatchMediaService;fuseConfig;isMobile=!1;_unsubscribeAll;constructor(e,n,i,a){this._fuseConfigService=e,this.sanitizer=n,this.breakpointObserver=i,this._fuseMatchMediaService=a,this._unsubscribeAll=new O,this.breakpointObserver.observe(["(max-width: 599px)"]).subscribe(c=>{this.isMobile=!!c.matches})}containerStyle;ngOnInit(){this.containerStyle={},this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e,this.fuseConfig.bgPage&&(this.containerStyle={background:this.fuseConfig?.bgPage?"transparent":" #ffffffd9","background-image":"url("+this.fuseConfig?.bgPage+")","background-repeat":"no-repeat","background-position":"center center","background-size":"cover"})})}transform(){return this.sanitizer.bypassSecurityTrustResourceUrl(this.fuseConfig.bgPage)}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}
28static \u0275fac=function(n){return new(n||t)(C(Z),C(ut),C(ke),C(vr))};static \u0275cmp=z({type:t,selectors:[["vertical-layout-2"]],decls:23,vars:15,consts:[["toolbar",""],["footer",""],["leftNavbar",""],["rightNavbar",""],["id","main"],["id","container-scrool","fusePerfectScrollbar","",1,"fuse-container",3,"fusePerfectScrollbarOptions"],["id","container-2",1,"fuse-container"],["id","container-3",1,"fuse-container",3,"ngStyle"],[1,"mb-20"],[4,"ngTemplateOutlet"],[1,"no-print",3,"ngClass","background-color","color"],[1,"no-print",3,"ngClass"],["name","navbar","lockedOpen","gt-md",1,"navbar-fuse-sidebar","no-print",3,"folded"],[1,"left-navbar","no-print",3,"variant"],["name","navbar","position","right","lockedOpen","gt-md",1,"navbar-fuse-sidebar","no-print",3,"folded"],[1,"right-navbar","no-print",3,"variant"]],template:function(n,i){n&1&&(m(0,Ru,0,0),r(1,"div",4),m(2,Lu,1,1,"ng-container"),r(3,"div",5),m(4,Nu,1,1,"ng-container"),r(5,"div",6),m(6,zu,1,1,"ng-container"),r(7,"div",7),m(8,ju,1,1,"ng-container"),b(9,"content",8),m(10,$u,1,1,"ng-container"),s(),m(11,Ku,1,1,"ng-container"),s(),m(12,Wu,1,1,"ng-container"),s(),m(13,Qu,1,1,"ng-container"),s(),m(14,Yu,0,0),E(15,Ju,1,1,"ng-template",null,0,ne)(17,em,1,1,"ng-template",null,1,ne)(19,nm,1,1,"ng-template",null,2,ne)(21,om,1,1,"ng-template",null,3,ne)),n&2&&(f(!(!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.sidepanel==null)&&i.fuseConfig.layout.sidepanel.hidden)&&(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.sidepanel==null?null:i.fuseConfig.layout.sidepanel.position)==="left"?0:-1),l(),Rt("--margin:"+((i.fuseConfig==null||i.fuseConfig.bgPage==null?null:i.fuseConfig.bgPage.length)>0&&!i.isMobile?"28px":"0")),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.position)==="above-fixed"||(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.position)==="below-fixed"?2:-1),l(),g("fusePerfectScrollbarOptions",ue(14,Iu)),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.position)==="above-static"?4:-1),l(2),f((i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.navbar==null?null:i.fuseConfig.layout.navbar.position)==="left"?6:-1),l(),g("ngStyle",i.containerStyle),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.position)==="below"?8:-1),l(2),f((i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.footer==null?null:i.fuseConfig.layout.footer.position)==="below"?10:-1),l(),f(i.fuseConfig.layout.navbar.position==="right"?11:-1),l(),f(i.fuseConfig.layout.footer.position==="above-static"?12:-1),l(),f(i.fuseConfig.layout.footer.position==="above-fixed"?13:-1),l(),f(!i.fuseConfig.layout.sidepanel.hidden&&i.fuseConfig.layout.sidepanel.position==="right"?14:-1))},dependencies:[G,ae,pt,et,de,ht,Ht,Ut,Kt,me,mt,Ue,Wt],styles:[`vertical-layout-2{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-2 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1;min-width:0}vertical-layout-2 #main .content{min-height:800px;margin-right:var(--margin);margin-left:var(--margin)}vertical-layout-2 #main>.fuse-container{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}vertical-layout-2 #main>.fuse-container>.fuse-container{position:relative;display:flex;flex:1 0 auto;width:100%}vertical-layout-2 #main>.fuse-container>.fuse-container>.fuse-container{position:relative;display:flex;flex:1 1 auto;flex-direction:column;min-width:0} 29`],encapsulation:2})}return t})();var am=()=>({suppressScrollX:!0,updateOnRouteChange:!0});function rm(t,o){}function sm(t,o){t&1&&j(0)}function lm(t,o){if(t&1&&E(0,sm,1,0,"ng-container",9),t&2){p();let e=D(16);g("ngTemplateOutlet",e)}}function cm(t,o){t&1&&j(0)}function dm(t,o){if(t&1&&E(0,cm,1,0,"ng-container",9),t&2){p();let e=D(20);g("ngTemplateOutlet",e)}}function pm(t,o){t&1&&j(0)}function um(t,o){if(t&1&&E(0,pm,1,0,"ng-container",9),t&2){p();let e=D(16);g("ngTemplateOutlet",e)}}function mm(t,o){t&1&&j(0)}function fm(t,o){if(t&1&&E(0,mm,1,0,"ng-container",9),t&2){p();let e=D(16);g("ngTemplateOutlet",e)}}function hm(t,o){t&1&&j(0)}function gm(t,o){if(t&1&&E(0,hm,1,0,"ng-container",9),t&2){p();let e=D(18);g("ngTemplateOutlet",e)}}function _m(t,o){t&1&&j(0)}function bm(t,o){if(t&1&&E(0,_m,1,0,"ng-container",9),t&2){p();let e=D(18);g("ngTemplateOutlet",e)}}function Cm(t,o){t&1&&j(0)}function vm(t,o){if(t&1&&E(0,Cm,1,0,"ng-container",9),t&2){p();let e=D(22);g("ngTemplateOutlet",e)}}function xm(t,o){t&1&&j(0)}function ym(t,o){if(t&1&&E(0,xm,1,0,"ng-container",9),t&2){p();let e=D(18);g("ngTemplateOutlet",e)}}function wm(t,o){}function Sm(t,o){if(t&1&&b(0,"toolbar",11),t&2){let e=p(2);K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarBackgroun
29d)("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null?null:e.fuseConfig.layout.toolbar.customToolbarForeground),g("ngClass",e.fuseConfig.layout.toolbar.customBackgroundColor===!0&&!(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.toolbar==null)&&e.fuseConfig.layout.toolbar.customToolbarBackground)?e.fuseConfig.layout.toolbar.position+" "+e.fuseConfig.layout.toolbar.background:e.fuseConfig.layout.toolbar.position)}}function km(t,o){if(t&1&&m(0,Sm,1,5,"toolbar",10),t&2){let e=p();f(e.fuseConfig.layout.toolbar.hidden?-1:0)}}function Tm(t,o){if(t&1&&b(0,"footer",11),t&2){let e=p(2);K("background-color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null?null:e.fuseConfig.layout.footer.customFooterBackground)("color",e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null?null:e.fuseConfig.layout.footer.customFooterForeground),g("ngClass",e.fuseConfig.layout.footer.customBackgroundColor===!0&&!(!(e.fuseConfig==null||e.fuseConfig.layout==null||e.fuseConfig.layout.footer==null)&&e.fuseConfig.layout.footer.customFooterBackground)?e.fuseConfig.layout.footer.position+" "+e.fuseConfig.layout.footer.background:e.fuseConfig.layout.footer.position)}}function Mm(t,o){if(t&1&&m(0,Tm,1,5,"footer",10),t&2){let e=p();f(e.fuseConfig.layout.footer.hidden?-1:0)}}function Pm(t,o){if(t&1&&(r(0,"fuse-sidebar",12),b(1,"navbar",13),s()),t&2){let e=p(2);g("ngClass",e.fuseConfig.layout.navbar.secondaryBackground)("folded",e.fuseConfig.layout.navbar.folded),l(),g("variant",e.fuseConfig.layout.navbar.variant)}}function Em(t,o){if(t&1&&m(0,Pm,2,3,"fuse-sidebar",12),t&2){let e=p();f(e.fuseConfig.layout.navbar.hidden?-1:0)}}function Am(t,o){if(t&1&&(r(0,"fuse-sidebar",14),b(1,"navbar",15),s()),t&2){let e=p(2);g("folded",e.fuseConfig.layout.navbar.folded),l(),g("variant",e.fuseConfig.layout.navbar.variant)}}function Om(t,o){if(t&1&&m(0,Am,2,2,"fuse-sidebar",14),t&2){let e=p();f(e.fuseConfig.layout.navbar.hidden?-1:0)}}var zs=(()=>{class t{_fuseConfigService;_platform;sanitizer;_detectDevice;fuseConfig;isMobile=!1;_unsubscribeAll;containerStyle;constructor(e,n,i,a){this._fuseConfigService=e,this._platform=n,this.sanitizer=i,this._detectDevice=a,this._unsubscribeAll=new O,this._detectDevice.subscribeToLayoutChanges().pipe(T(this._unsubscribeAll)).subscribe(c=>{this._detectDevice.isBreakpointActive(tt.mobile)&&(this.isMobile=!!this._detectDevice.isBreakpointActive(tt.mobile))}),this.isMobile&&(this._fuseConfigService.config={layout:{footer:{hidden:!0}}})}ngOnInit(){this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e,this.fuseConfig.bgPage&&this.fuseConfig.bgPage&&(this.containerStyle={background:this.fuseConfig?.bgPage?"transparent":" #ffffffd9","background-image":"url("+this.fuseConfig?.bgPage+")","background-repeat":"no-repeat","background-position":"center center","background-size":"cover"})}),(this._platform.ANDROID||this._platform.IOS)&&(this.isMobile=!0),this.isMobile}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||t)(C(Z),C(Lt),C(ut),C(nt))};static \u0275cmp=z({type:t,selectors:[["vertical-layout-1"]],decls:23,vars:15,consts:[["toolbar",""],["footer",""],["leftNavbar",""],["rightNavbar",""],["id","main"],["id","container-1",1,"fuse-container"],["id","container-2",1,"fuse-container"],["id","container-scrool","fusePerfectScrollbar","",1,"fuse-container",3,"ngStyle","fusePerfectScrollbarOptions"],[1,"mb-20"],[4,"ngTemplateOutlet"],[1,"no-print",3,"ngClass","background-color","color"],[1,"no-print",3,"ngClass"],["name","navbar","lockedOpen","gt-md",1,"navbar-fuse-sidebar","no-print",3,"ngClass","folded"],[1,"left-navbar","no-print",3,"variant"],["name","navbar","position","right","lockedOpen","gt-md",1,"navbar-fuse-sidebar","no-print",3,"folded"],[1,"right-navbar","no-print",3,"variant"]],template:function(n,i){n&1&&(m(0,rm,0,0),r(1,"div",4),m(2,lm,1,1,"ng-container"),r(3,"div",5),m(4,dm,1,1,"ng-container"),r(5,"div",6),m(6,um,1,1,"ng-container"),r(7,"div",7),m(8,fm,1,1,"ng-container"),b(9,"content",8),m(10,gm,1,1,"ng-container"),s(),m(11,bm,1,1,"ng-container"),s(),m(12,vm,1,1,"ng-container"),s(),m(13,ym,1,1,"ng-container"),s(),m(14,wm,0,0),E(15,km,1,1,"ng-template",null,0,ne)(17,Mm,1,1,"ng-template",null,1,ne)(19,Em,1,1,"ng-template",null,2,ne)(21,Om,1,1,"ng-template",null,3,ne)),n&2&&(f(!i.fuseConfig.layout.sidepanel.hidden&&i.fuseConfig.layout.sidepanel.position==="left"?0:-1),l(),Rt("--margin:"+((i.fuseConfig==null||i.fuseConfig.bgPage==null?null:i.fuseConfig.bgPage.length)>0&&!i.isMobile?"28px":"0")),l(),f(i.fuseConfig.layout.toolbar.position==="above"?2:-1),l(2),f(i.fuseConfig.layout.navbar.position==="left"?4:-1),l(2),f(i.fuseConfig.layout.toolbar.position==="below-fixed"?6:-1),l(),g("ngStyle",i.containerStyle)("fusePerfectScrollbarOptions",ue(14,am)),l(),f(i.fuseConfig.layout.toolbar.position==="below-static"?8:-1),l(2),f(i.fuseConfig.layout.footer.position==="below-static"?10:-1),l(),f(i.fuseConfig.layout.footer.position==="below-fixed"?11:-1),l(),f(i.fuseConfig.layout.navbar.position==="right"?12:-1),l(),f(i.fuseConfig.layout.footer.position==="above"?13:-1),l(),f(!i.fuseConfig.layout.sidepanel.hidden&&i.fuseConfig.layout.sidepanel.position==="right"?14:-1))},dependencies:[de,ht,Ht,Ut,Wt,Kt,G,ae,pt,et,me,mt,Ue],styles:[`vertical-layout-1{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-1 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1;min-width:0}vertical-layout-1 #main .content{min-height:800px;margin-right:var(--margin);margin-left:var(--margin)}vertical-layout-1 #main>.fuse-container{position:relative;display:flex;flex:1 1 0%;width:100%;min-height:0;min-width:0}vertical-layout-1 #main>.fuse-container>.fuse-container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;min-width:0}vertical-layout-1 #main>.fuse-container>.fuse-container>.fuse-container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}vertical-layout-1 #main>.fuse-container>.fuse-container>.fuse-container content.inner-scroll{flex:1 1 0%;min-height:0}vertical-layout-1 #main>.fuse-container>.fuse-container>.fuse-container content.inner-scroll>*:not(router-outlet){flex:1 1 0%} 30`],encapsulation:2})}return t})();var Im=["container"],Rm=()=>["/pages/scoreboard"],Fm=(t,o)=>({width:t,left:o}),Lm=t=>({width:t});
30function Dm(t,o){if(t&1&&b(0,"img",17),t&2){let e=p().$implicit,n=p(2);g("src",n.imagePrefix+e.botLogo+"&h=20&w=20&fit=contain",B)}}function Nm(t,o){t&1&&b(0,"span",18)}function Vm(t,o){if(t&1&&b(0,"img",17),t&2){let e=p().$implicit,n=p(2);g("src",n.imagePrefix+e.topLogo+"&h=20&w=20&fit=contain",B)}}function zm(t,o){t&1&&b(0,"span",18)}function Bm(t,o){if(t&1){let e=M();r(0,"div",12)(1,"div",14)(2,"div",15)(3,"div",16),m(4,Dm,1,1,"img",17)(5,Nm,1,0,"span",18),s(),r(6,"span",19),d(7),s(),r(8,"span",20),d(9),s()(),r(10,"div",15)(11,"div",16),m(12,Vm,1,1,"img",17)(13,zm,1,0,"span",18),s(),r(14,"span",19),d(15),s(),r(16,"span",20),d(17),s()()(),r(18,"div",21)(19,"a",22),d(20,"Go to Event"),s(),r(21,"a",23),x("click",function(){let i=y(e).$implicit,a=p(2);return w(a.openGamePopup(i._key))}),d(22,"Go to Game"),s()()()}if(t&2){let e=o.$implicit,n=p(2);g("ngStyle",oe(16,Lm,n.cardWidth)),l(2),U("ticker-team--winner",e.botScoreStatus==1)("ticker-team--loser",e.botScoreStatus==-1||e.botScoreStatus==0),l(2),f(e.botLogo?4:5),l(3),S(e.botTeam),l(2),S(e.botScore??"\u2013"),l(),U("ticker-team--winner",e.topScoreStatus==1)("ticker-team--loser",e.topScoreStatus==-1||e.topScoreStatus==0),l(2),f(e.topLogo?12:13),l(3),S(e.topTeam),l(2),S(e.topScore??"\u2013"),l(2),g("routerLink","/pages/event/detail/"+e.eventID)}}function jm(t,o){if(t&1){let e=M();r(0,"div",2)(1,"div",3)(2,"a",4),d(3,"Scoreboard"),s(),r(4,"div",5),b(5,"span",6),r(6,"span"),d(7,"Live"),s()(),r(8,"a",7),x("click",function(){y(e);let i=p();return w(i.hideScoreBoard())}),d(9,"Hide 24hrs"),s()(),r(10,"div",8),x("click",function(){y(e);let i=p();return w(i.currentPage!=1&&i.changePage(-1))}),r(11,"span",9),d(12,"chevron_left"),s()(),r(13,"div",10)(14,"div",11),le(15,Bm,23,18,"div",12,xt),s()(),r(17,"div",13),x("click",function(){y(e);let i=p();return w(i.currentPage!=i.totalPages&&i.changePage(1))}),r(18,"span",9),d(19,"chevron_right"),s()()()}if(t&2){let e=p();l(2),g("routerLink",ue(6,Rm)),l(8),U("disabled",e.currentPage===1),l(4),g("ngStyle",_n(7,Fm,e.overflowWidth,e.pagePosition)),l(),ce(e.tickerData==null?null:e.tickerData.games),l(2),U("disabled",e.currentPage===e.totalPages)}}var Bs=(()=>{class t{api;dialog;_detectDevice;totalCards=0;currentPage=1;pagePosition="0%";cardsPerPage;totalPages;overflowWidth;cardWidth;containerWidth;container;windowResize(){let e=this.getCardsPerPage();e!=this.cardsPerPage&&(this.cardsPerPage=e,this.initializeSlider(),this.currentPage>this.totalPages&&(this.currentPage=this.totalPages,this.populatePagePosition()))}imagePrefix=new jt().prefix;_unsubscribeAll;constructor(e,n,i){this.api=e,this.dialog=n,this._detectDevice=i,this._unsubscribeAll=new O,this._detectDevice.subscribeToLayoutChanges().pipe(T(this._unsubscribeAll)).subscribe(a=>{this._detectDevice.isBreakpointActive(tt.mobile)&&(this.isMobile=!!this._detectDevice.isBreakpointActive(tt.mobile))})}loading=!1;tickerData;isMobile=!1;ngOnInit(){let n=decodeURIComponent(document.cookie).indexOf("hideScoreTicker")>-1;!this.isMobile&&!n&&this.sportFilter(null)}initializeSlider(){this.totalPages=Math.ceil(this.totalCards/this.cardsPerPage),this.overflowWidth=`calc(${this.totalPages*100}% + ${this.totalPages*10}px)`,this.cardWidth=`calc((${100/this.totalPages}% - ${this.cardsPerPage*10}px) / ${this.cardsPerPage})`}getCardsPerPage(){return Math.floor(this.container.nativeElement.offsetWidth/191)}changePage(e){this.currentPage+=e,this.populatePagePosition()}populatePagePosition(){this.pagePosition=`calc(${-100*(this.currentPage-1)}% - ${10*(this.currentPage-1)}px)`}selectedSport;sportFilter(e){this.selectedSport=e,this.loading=!0,this.api.get(e?"Scoreboard/scoreTicker/"+e:"Scoreboard/scoreTicker",!0).pipe(T(this._unsubscribeAll)).subscribe({next:n=>{this.loading=!1,n?.games?.length>0&&(this.tickerData=n,this.totalCards=n.games.length,this.cardsPerPage=this.getCardsPerPage(),this.initializeSlider(),this.populatePagePosition())},error:n=>{this.loading=!1}})}openGamePopup(e){this.dialog.open(Zr,{width:this.isMobile?"95vw":"80vw",maxWidth:this.isMobile?"95vw":"80vw",height:"auto",maxHeight:"90vh",data:{gameID:e,source:"scoreTicker"}})}hideScoreBoard(){this.tickerData=null;let e=new Date;e.setTime(e.getTime()+1440*60*1e3);let n="expires="+e.toUTCString();document.cookie="hideScoreTicker=1Day;"+n+";path=/"}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||t)(C(X),C(Fe),C(nt))};static \u0275cmp=z({type:t,selectors:[["rp-score-ticker"]],viewQuery:function(n,i){if
30(n&1&&ve(Im,7,vt),n&2){let a;xe(a=ye())&&(i.container=a.first)}},hostBindings:function(n,i){n&1&&x("resize",function(){return i.windowResize()},zn)},decls:3,vars:3,consts:[["container",""],[1,"no-print"],["id","global-scoreboard",1,"ticker-bar"],[1,"ticker-label"],[1,"ticker-label__title",3,"routerLink"],[1,"ticker-label__live"],[1,"ticker-label__pulse"],[1,"ticker-label__hide",3,"click"],[1,"ticker-arrow","ticker-arrow--left",3,"click"],[1,"material-icons"],[1,"ticker-cards"],[1,"ticker-overflow",3,"ngStyle"],[1,"ticker-card",3,"ngStyle"],[1,"ticker-arrow","ticker-arrow--right",3,"click"],[1,"ticker-game","mouseOff"],[1,"ticker-team"],[1,"ticker-team__logo"],["loading","lazy",3,"src"],[1,"ticker-team__avatar"],[1,"ticker-team__name"],[1,"ticker-team__score"],[1,"ticker-hover","mouseOn"],[3,"routerLink"],[1,"link",3,"click"]],template:function(n,i){n&1&&(r(0,"div",1,0),m(2,jm,20,10,"div",2),s()),n&2&&(U("ticker-wrap",i.tickerData!=null&&(i.tickerData==null?null:i.tickerData.games)!=null),l(2),f(i.tickerData!=null&&(i.tickerData==null?null:i.tickerData.games)!=null?2:-1))},dependencies:[G,et,me,de,Re,pe],styles:[".ticker-wrap[_ngcontent-%COMP%]{height:72px}.ticker-bar[_ngcontent-%COMP%]{display:flex;align-items:stretch;height:72px;background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 2px 8px #00000012;overflow:hidden}.ticker-label[_ngcontent-%COMP%]{width:95px;min-width:95px;background:#1e2a3a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 6px;flex-shrink:0;z-index:1}.ticker-label__title[_ngcontent-%COMP%]{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#fff;text-decoration:none;line-height:1}.ticker-label__title[_ngcontent-%COMP%]:hover{color:#94a3b8}.ticker-label__live[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-size:9px;font-weight:700;color:#ef4444;text-transform:uppercase;letter-spacing:.09em}.ticker-label__pulse[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#ef4444;flex-shrink:0;animation:_ngcontent-%COMP%_live-pulse 1.6s ease-in-out infinite}.ticker-label__hide[_ngcontent-%COMP%]{font-size:8px;font-weight:600;color:#475569;cursor:pointer;text-transform:uppercase;letter-spacing:.06em;text-decoration:none;line-height:1}.ticker-label__hide[_ngcontent-%COMP%]:hover{color:#94a3b8}@keyframes _ngcontent-%COMP%_live-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(.85)}}.ticker-arrow[_ngcontent-%COMP%]{width:36px;min-width:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#6b7280;background:transparent;flex-shrink:0;transition:background .15s ease,color .15s ease;-webkit-user-select:none;user-select:none}.ticker-arrow[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:24px}.ticker-arrow[_ngcontent-%COMP%]:hover:not(.disabled){background:#f3f4f6;color:#1e2a3a}.ticker-arrow.disabled[_ngcontent-%COMP%]{color:#d1d5db;cursor:default}.ticker-arrow--left[_ngcontent-%COMP%]{border-right:1px solid #e5e7eb}.ticker-arrow--right[_ngcontent-%COMP%]{border-left:1px solid #e5e7eb}.ticker-cards[_ngcontent-%COMP%]{flex:1;overflow:hidden;position:relative}.ticker-overflow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;display:flex;flex-wrap:nowrap;flex-direction:row;transition:left .45s cubic-bezier(.4,0,.2,1)}.ticker-card[_ngcontent-%COMP%]{height:100%;display:inline-flex;align-items:stretch;border-right:1px solid #e5e7eb;position:relative;cursor:pointer;transition:background .15s ease}.ticker-card[_ngcontent-%COMP%]:hover{background:#f8fafc}.ticker-card[_ngcontent-%COMP%]:hover .mouseOff[_ngcontent-%COMP%]{visibility:hidden;opacity:0}.ticker-card[_ngcontent-%COMP%]:hover .mouseOn[_ngcontent-%COMP%]{visibility:visible;opacity:1}.ticker-game[_ngcontent-%COMP%]{width:100%;padding:0 12px;display:flex;flex-direction:column;justify-content:center;gap:5px;visibility:visible;opacity:1;transition:opacity .2s ease,visibility 0s}.ticker-hover[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;visibility:hidden;opacity:0;transition:opacity .2s ease,visibility 0s .2s;padding:0 10px}.ticker-hover[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:#1e2a3a;text-decoration:none;padding:3px 0;width:100%;text-align:center;border-radius:4px;background:#e2e8f0;cursor:pointer;display:block}.ticker-hover[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:#cbd5e1}.ticker-team[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;min-width:0;border-left:3px solid transparent;padding-left:6px;margin:0 -12px;padding-right:12px;border-radius:0}.ticker-team__logo[_ngcontent-%COMP%]{width:18px;height:18px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.ticker-team__logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:18px;height:18px;object-fit:contain;border-radius:2px}
30.ticker-team__avatar[_ngcontent-%COMP%]{width:14px;height:14px;border-radius:50%;background:#e2e8f0;display:block}.ticker-team__name[_ngcontent-%COMP%]{flex:1;font-size:12px;font-weight:500;color:#9ca3af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1}.ticker-team__score[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#9ca3af;min-width:22px;text-align:right;flex-shrink:0;line-height:1}.ticker-team--winner[_ngcontent-%COMP%]{border-left-color:#22c55e;background:#f0fdf4}.ticker-team--winner[_ngcontent-%COMP%] .ticker-team__name[_ngcontent-%COMP%]{color:#111827;font-weight:700}.ticker-team--winner[_ngcontent-%COMP%] .ticker-team__score[_ngcontent-%COMP%]{color:#111827;font-weight:800}.ticker-team--loser[_ngcontent-%COMP%] .ticker-team__name[_ngcontent-%COMP%], .ticker-team--loser[_ngcontent-%COMP%] .ticker-team__score[_ngcontent-%COMP%]{color:#d1d5db}"]})}return t})();function Um(t,o){if(t&1){let e=M();r(0,"button",14),x("click",function(){y(e);let i=p();return w(i.filename=null)}),r(1,"mat-icon"),d(2,"close"),s()()}t&2&&g("matTooltipPosition","above")}function $m(t,o){t&1&&b(0,"mat-progress-bar",12)}function qm(t,o){t&1&&(r(0,"b"),d(1,"File Upload is Successful"),s())}function Km(t,o){if(t&1&&(r(0,"div",13),m(1,qm,2,0,"b"),b(2,"br"),r(3,"span",15),d(4,"Do not forget click the button below to copy the link !!!"),s(),r(5,"button",16),d(6,"Copy File URL"),s()()),t&2){let e=p();l(),f(e.loading?-1:1),l(4),g("cdkCopyToClipboard",e.url)}}var js=(()=>{class t{_membership;_fuseSidebarService;dialog;notify;snackbar;uploader;api;breakpointObserver;isMobile=!1;_unsubscribeAll;url="";filename=null;constructor(e,n,i,a,c,u,h,_){this._membership=e,this._fuseSidebarService=n,this.dialog=i,this.notify=a,this.snackbar=c,this.uploader=u,this.api=h,this.breakpointObserver=_,this._unsubscribeAll=new O,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(T(this._unsubscribeAll)).subscribe(v=>{this.isMobile=!!v.matches})}ngOnInit(){}loading=!1;onFileSelect(e){try{let n=e.target.files[0],i=new FileReader;i.readAsDataURL(n),i.onloadend=a=>{this.filename=n.name,this.loading=!0,this.api.post4Upload("Cms/fileUpload/",Ua(n.name,a.target.result),!0).pipe(T(this._unsubscribeAll)).subscribe({next:c=>{this.loading=!1,this.snackbar.open("File is uploaded","Dismiss",{duration:5*1e3}),this.url=c.url,this.filename=null,e.target.value="",e.target.value=""},error:c=>{this.loading=!1,this.filename=null,e.target.value="",this.notify.openErrorModal("File upload failed, please try again")}})}}catch{this.filename=null,e.target.value=""}}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||t)(C(Me),C(je),C(Fe),C(Te),C(ir),C(ki),C(X),C(ke))};static \u0275cmp=z({type:t,selectors:[["cms-upload-file"]],features:[fa([ki])],decls:20,vars:6,consts:[["fileSelect",""],["id","upload-file",1,"p-8"],[1,"dropdown-header","primary",2,"display","flex","flex-direction","row","justify-content","space-between","align-items","center"],[1,"dropdown-heading","font-size-20","p-12"],["mat-icon-button","",1,"toggle-sidebar-open","mr-8",3,"click"],[1,"secondary-text"],[1,"mt-20","text-center"],["floatPlaceholder","never","appearance","outline"],["type","file","accept",".png, .jpg, .jpeg, .webp,.pdf, .doc, .docx, .xls, .xlsx",2,"display","none",3,"change","hidden"],["readonly","","matInput","","name","filename","placeholder","Select file...",3,"ngModelChange","click","ngModel"],["matSuffix","","matTooltip","Remove selected file","type","button","color","warn","mat-icon-button","",3,"matTooltipPosition"],["matSuffix","","mat-icon-button","","matTooltip","Select a file",3,"click","matTooltipPosition"],["mode","indeterminate"],[1,"text-center","mt-32"],["matSuffix","","matTooltip","Remove selected file","type","button","color","warn","mat-icon-button","",3,"click","matTooltipPosition"],[1,"red-fg"],["mat-raised-button","",1,"primary","mx-4","mt-12","px-8",3,"cdkCopyToClipboard"]],template:function(n,i){if(n&1){let a=M();r(0,"div",1)(1,"div",2)(2,"div",3),d(3,"File Upload"),s(),r(4,"button",4),x("click",function(){let u;return y(a),w((u=i._fuseSidebarService.getSidebar("uploadFile"))==null?null:u.toggleOpen())}),r(5,"mat-icon",5),d(6,"close"),s()()(),r(7,"div",6)(8,"h3"),d(9,"Select a file to upload"),s(),r(10,"mat-form-field",7)(11,"input",8,0),x("change",function(u){return y(a),w(i.onFileSelect(u))}),s(),r(13,"input",9),St("ngModelChange",function(u){return y(a),wt(i.filename,u)||(i.filename=u),w(u)}),x("click",function(){y(a);let u=D(12);return w(u.click())}),s(),m(14,Um,3,1,"button",10),r(15,"button",11),x("click",function(){y(a);let u=D(12);return w(u.click())}),r(16,"mat-icon"),d(17,"file_upload"),s()()(),m(18,$m,1,0,"mat-progress-bar",12),m(19,Km,7,2,"div",13),s()()}n&2&&(l(11),g("hidden",!0),l(2),yt("ngModel",i.filename),l(),f(i.filename?14:-1),l(),g("matTooltipPosition","above"),l(3),f(i.loading?18:-1),l(),f(i.url!=""?19:-1))},dependencies:[me,ci,Dt,Nt,pe,Le,Vt,_e,Be,ui,qa,$a,kn,Ha,Bt,zt,Ya,Qa,ts,es],styles:['.dropzone[_ngcontent-%COMP%]{height:75px;display:table;width:fit-content;background-color:#eee;border:dotted 1px #aaa}.withDragNDrop[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}input[type=file][_ngcontent-%COMP%]{display:block}.textLink[_ngcontent-%COMP%]{background-color:#f45e61;color:#fff;padding:10px;border-radius:5px;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.textLink[_ngcontent-%COMP%]:before{content:"upload_file";font-family:Material Icons;color:#fff;font-size:large;margin-right:10px}.text-wrapper[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.centered[_ngcontent-%COMP%]{font-family:sans-serif;font-size:1.3em;text-align:center}.fileItem[_ngcontent-%COMP%]{width:auto;overflow:hidden;height:fit-content;margin:3px;padding:10px;display:block;position:relative;border:2px dashed #778899;border-radius:5px;transition:.3s ease}.fileItem[_ngcontent-%COMP%]:hover{border:2px solid #c33838;background-color:#c33838bf}.fileItem[_ngcontent-%COMP%]:hover .fileItemIcon[_ngcontent-%COMP%]:before{content:"close";font-family:Material Icons;color:#f5f5f5}.fileItem[_ngcontent-%COMP%]:hover .fileItemText[_ngcontent-%COMP%]{color:#f5f5f5}.fileItemIconDiv[_ngcontent-%COMP%]{text-align:center}.fileItemIcon[_ngcontent-%COMP%]:before{font-style:normal;content:"upload_file";color:#789;font-family:Material Icons;font-weight:900;font-size:28px}.fileItemText[_ngcontent-%COMP%]{text-align:center;margin-top:10px;height:14px}.tag[_ngcontent-%COMP%]{border-radius:50%;height:15px;width:15px;
30display:inline-block}.tag-default[_ngcontent-%COMP%]{background-color:gray}.tag-success[_ngcontent-%COMP%]{background-color:green}.tag-warning[_ngcontent-%COMP%]{background-color:orange}.tag-danger[_ngcontent-%COMP%]{background-color:red}.file-input[_ngcontent-%COMP%]{display:none}.row[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.col-1[_ngcontent-%COMP%], .col-2[_ngcontent-%COMP%], .col-3[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%], .col-5[_ngcontent-%COMP%], .col-6[_ngcontent-%COMP%], .col-7[_ngcontent-%COMP%], .col-8[_ngcontent-%COMP%], .col-9[_ngcontent-%COMP%], .col-10[_ngcontent-%COMP%], .col-11[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%], .col[_ngcontent-%COMP%], .col-auto[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-sm[_ngcontent-%COMP%], .col-sm-auto[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-md[_ngcontent-%COMP%], .col-md-auto[_ngcontent-%COMP%], .col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-lg[_ngcontent-%COMP%], .col-lg-auto[_ngcontent-%COMP%], .col-xl-1[_ngcontent-%COMP%], .col-xl-2[_ngcontent-%COMP%], .col-xl-3[_ngcontent-%COMP%], .col-xl-4[_ngcontent-%COMP%], .col-xl-5[_ngcontent-%COMP%], .col-xl-6[_ngcontent-%COMP%], .col-xl-7[_ngcontent-%COMP%], .col-xl-8[_ngcontent-%COMP%], .col-xl-9[_ngcontent-%COMP%], .col-xl-10[_ngcontent-%COMP%], .col-xl-11[_ngcontent-%COMP%], .col-xl-12[_ngcontent-%COMP%], .col-xl[_ngcontent-%COMP%], .col-xl-auto[_ngcontent-%COMP%]{position:relative;width:100%;padding-right:15px;padding-left:15px}.col[_ngcontent-%COMP%]{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.mat-mdc-icon-button[_ngcontent-%COMP%]{width:20px;height:20px;line-height:20px}.table-headed[_ngcontent-%COMP%]{width:100%}.table-headed[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-headed[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{background-color:#f0f0f0}']})}return t})();var Hm=["confettiCanvas"],Us=(()=>{class t{confettiService;canvasRef;ctx;particles=[];animationId;triggerSubscription;motionPreference;onResize=()=>this.resizeCanvas();onMotionChange=()=>{this.motionPreference?.matches&&this.stopAnimation()};colors=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"];constructor(e){this.confettiService=e}ngOnInit(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.resizeCanvas(),this.motionPreference=window.matchMedia("(prefers-reduced-motion: reduce)"),this.motionPreference.addEventListener("change",this.onMotionChange),window.addEventListener("resize",this.onResize),this.triggerSubscription=this.confettiService.trigger$.subscribe(n=>{this.createConfetti(n)})}ngOnDestroy(){this.stopAnimation(),this.triggerSubscription&&this.triggerSubscription.unsubscribe(),this.motionPreference?.removeEventListener("change",this.onMotionChange),window.removeEventListener("resize",this.onResize)}stopAnimation(){this.animationId!==void 0&&cancelAnimationFrame(this.animationId),this.animationId=void 0,this.particles=[];let e=this.canvasRef.nativeElement;this.ctx.clearRect(0,0,e.width,e.height)}resizeCanvas(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createConfetti(e={}){if(this.motionPreference?.matches)return;let n=e.particleCount||100,i=e.spread||70,a=e.startVelocity||45,c=e.origin||{x:.5,y:1},u=this.canvasRef.nativeElement,h=c.x*u.width,_=c.y*u.height;for(let v=0;v<n;v++){let k=(Math.random()*i-i/2)*Math.PI/180,N=Math.random()*a+a/2;this.particles.push({x:h,y:_,vx:Math.sin(k)*N,vy:-Math.cos(k)*N-Math.random()*5-5,angle:Math.random()*Math.PI*2,angularVelocity:(Math.random()-.5)*.2,color:this.colors[Math.floor(Math.random()*this.colors.length)],size:Math.random()*6+4,life:1})}this.animationId===void 0&&this.animate()}animate(){let e=this.canvasRef.nativeElement;this.ctx.clearRect(0,0,e.width,e.height),this.particles=this.particles.filter(n=>(n.x+=n.vx,n.y+=n.vy,n.vy+=.3,n.vx*=.99,n.vy*=.99,n.angle+=n.angularVelocity,n.life-=.005,n.life<=0||n.y>
30e.height?!1:(this.drawParticle(n),!0))),this.particles.length>0?this.animationId=requestAnimationFrame(()=>this.animate()):this.animationId=void 0}drawParticle(e){this.ctx.save(),this.ctx.translate(e.x,e.y),this.ctx.rotate(e.angle),this.ctx.globalAlpha=e.life,this.ctx.fillStyle=e.color,this.ctx.fillRect(-e.size/2,-e.size/2,e.size,e.size*.6),this.ctx.restore()}static \u0275fac=function(n){return new(n||t)(C(ns))};static \u0275cmp=z({type:t,selectors:[["app-confetti"]],viewQuery:function(n,i){if(n&1&&ve(Hm,7),n&2){let a;xe(a=ye())&&(i.canvasRef=a.first)}},decls:2,vars:14,consts:[["confettiCanvas",""],["aria-hidden","true"]],template:function(n,i){n&1&&ma(0,"canvas",1,0),n&2&&K("position","fixed")("top",0,"px")("left",0,"px")("width",100,"%")("height",100,"%")("pointer-events","none")("z-index",9999)},encapsulation:2})}return t})();var Wm=(t,o)=>o.header,Gm=(t,o)=>o.url;function Qm(t,o){if(t&1){let e=M();r(0,"a",10),x("click",function(){y(e);let i=p(2);return w(i.close())}),r(1,"mat-icon",11),d(2),s(),r(3,"span",12),d(4),s()()}if(t&2){let e=o.$implicit;g("routerLink",e.url),l(2),S(e.icon),l(2),S(e.title)}}function Ym(t,o){if(t&1&&(r(0,"div",6)(1,"div",7),d(2),s(),r(3,"div",8),le(4,Qm,5,3,"a",9,Gm),s()()),t&2){let e=o.$implicit;l(2),S(e.header),l(2),ce(e.items)}}var $s=(()=>{class t{_fuseSidebarService;_fuseConfigService;sections=[];fuseConfig;_unsubscribeAll=new O;constructor(e,n){this._fuseSidebarService=e,this._fuseConfigService=n}ngOnInit(){this.sections=this.buildSections(),this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(e=>this.fuseConfig=e)}buildSections(){let e=JSON.parse(localStorage.getItem("person")||"{}")?.persona||{},n=[],i=[{title:"Dashboard",icon:"dashboard",url:"/pages/dashboard"},{title:"Mailbox",icon:"mail",url:"/pages/mailbox"},{title:"Events",icon:"event",url:"/pages/events"},{title:"Teams",icon:"groups",url:"/pages/team"},{title:"My Family",icon:"family_restroom",url:"/pages/dashboard/my-family"},{title:"Payments",icon:"payments",url:"/pages/payments"},{title:"My Account",icon:"account_circle",url:"/pages/myAccount"},{title:"Help Center",icon:"help_outline",url:"/pages/help/videos"}];return(e.hasSupportTools||e.tinc)&&i.push({title:"Support",icon:"support",url:"/pages/hq/support"}),(e.hq||e.tinc||e.regply||e.hasTeamMerge)&&i.push({title:"System Tools",icon:"build",url:"/pages/hq/system-tools/systemTools"}),n.push({header:"Quick Access",items:i}),(e.director||e.lodging)&&n.push({header:"Event Director",items:[{title:"My Events",icon:"event_available",url:"/pages/events/my-events"},{title:"Entries In Your Events",icon:"assignment",url:"/pages/reports/entriesInYourEvents"},{title:"Guest Player Report",icon:"person_search",url:"/pages/reports/guestPlayerReport"},{title:"Communication",icon:"mail_outline",url:"/pages/hq/communication"}]}),(e.officialsAdmin||e.umpireAssigner)&&n.push({header:"Officials / UIC",items:[{title:"Umpire Registrations",icon:"fact_check",url:"/pages/reports/umpireRegistrationsDashboard"},{title:"Officials Report",icon:"sports",url:"/pages/reports/officialsReport"}]}),n}close(){this._fuseSidebarService.getSidebar("shortcutsPanel")?.close()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||t)(C(je),C(Z))};static \u0275cmp=z({type:t,selectors:[["rp-shortcuts-panel"]],decls:12,vars:5,consts:[[1,"shortcuts-panel-content"],[1,"shortcuts-header",3,"ngClass"],[1,"header-title"],["svgIcon","svg-shortcuts"],["type","button","aria-label","Close shortcuts",1,"close-button",3,"click"],[1,"shortcuts-body"],[1,"shortcuts-section"],[1,"section-header"],[1,"shortcuts-grid"],[1,"shortcut-tile",3,"routerLink"],[1,"shortcut-tile",3,"click","routerLink"],[1,"tile-icon"],[1,"tile-title"]],template:function(n,i){n&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),b(3,"mat-icon",3),r(4,"span"),d(5,"Shortcuts"),s()(),r(6,"button",4),x("click",function(){return i.close()}),r(7,"mat-icon"),d(8,"close"),s()()(),r(9,"div",5),le(10,Ym,6,1,"div",6,Wm),s()()),n&2&&(l(),K("background-color",i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.customToolbarBackgroun
30d)("color",i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.customToolbarForeground),g("ngClass",!(i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null)&&i.fuseConfig.layout.toolbar.customToolbarBackground||i.fuseConfig==null||i.fuseConfig.layout==null||i.fuseConfig.layout.toolbar==null?null:i.fuseConfig.layout.toolbar.background),l(9),ce(i.sections))},dependencies:[G,ae,de,Re,_e,Be],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.shortcuts-panel-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;background:#fff}.shortcuts-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;color:#fff;flex:0 0 auto}.shortcuts-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600}.shortcuts-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:inherit}.shortcuts-header[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:#ffffff2e;border-radius:50%;color:inherit;cursor:pointer;transition:background .2s ease}.shortcuts-header[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{background:#ffffff52}.shortcuts-body[_ngcontent-%COMP%]{flex:1 1 auto;overflow-y:auto;padding:8px 0 24px}.shortcuts-section[_ngcontent-%COMP%] + .shortcuts-section[_ngcontent-%COMP%]{margin-top:12px}.shortcuts-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{padding:12px 16px 8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#94a3b8}.shortcuts-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:0 12px}.shortcut-tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:76px;padding:12px 8px;border-radius:10px;background:#f8fafc;border:1px solid #eef1f5;color:#1e293b;text-decoration:none;text-align:center;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .1s ease}.shortcut-tile[_ngcontent-%COMP%]:hover{background:#eef2ff;border-color:#dbe3ff}.shortcut-tile[_ngcontent-%COMP%]:active{transform:scale(.97)}.shortcut-tile[_ngcontent-%COMP%] .tile-icon[_ngcontent-%COMP%]{width:26px;height:26px;font-size:26px;color:#475569;flex:0 0 auto}.shortcut-tile[_ngcontent-%COMP%] .tile-title[_ngcontent-%COMP%]{font-size:12px;font-weight:600;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]})}return t})();var Yn=class extends Error{kind;constructor(o){super(`speech ${o}`),this.kind=o}},qs=16e3,Ks=5e3,Xm=.05,Jm="The rest is on screen.",Zm=50,ef="wss://api.elevenlabs.io/v1/text-to-speech";function tf(t){let o=String(t||"").replace(/\r\n?/g,` 31`);return o=o.replace(/```[\s\S]*?(```|$)/g,` 32`),o=o.replace(/<[^>]+>/g,""),o=o.replace(/!\[[^\]]*\]\([^)]*\)/g,""),o=o.replace(/\[([^\]]+)\]\([^)]*\)/g,"$1"),o=o.replace(/https?:\/\/\S+/g,""),o=o.replace(/`([^`]*)`/g,"$1"),o.split(` 33`).map(n=>n.trim()).filter(n=>n&&!/^\|.*\|$/.test(n)&&!/^[-*_=\s]{3,}$/.test(n)).map(n=>n.replace(/^#{1,6}\s+/,"").replace(/^>\s?/,"").replace(/^([-*+]|\d+[.)])\s+/,"").replace(/\*\*(.+?)\*\*|__(.+?)__/g,"$1$2").replace(/\*(.+?)\*/g,"$1").replace(/(^|\W)_(.+?)_(?!\w)/g,"$1$2").replace(/~~(.+?)~~/g,"$1").replace(/\s+/g," ").trim()).filter(n=>n.length>0).map(n=>/[.!?:;,]$/.test(n)?n:`${n}.`).join(" ").trim()}function nf(t){return String(t||"").split(new RegExp(`(?<=[.!?])\\s+(?=["'(A-Z0-9])`)).map(o=>o.trim()).filter(o=>o.length>0)}function Ei(t){let o=nf(tf(t));if(o.length<=2)return o.join(" ");let e=[...o.slice(0,2),Jm],n=o[o.length-1];return/\bpress\b/i.test(n)&&e.push(n),e.join(" ")}function of(t){let o=atob(t),e=new Uint8Array(o.length);for(let n=0;n<o.length;n++)e[n]=o.charCodeAt(n);return e}function af(t){let o=t.length>>1,e=new DataView(t.buffer,t.byteOffset,o*2),n=new Float32Array(o);for(let i=0;i<o;i++)n[i]=e.getInt16(i*2,!0)/32768;return n}function rf(t,o,e,n=Xm){let i=Math.max(o,t+n);return{startAt:i,cursor:i+e}}function sf(t){let o;try{o=typeof t=="string"?JSON.parse(t):t}catch{return{audio:null,final:!1,error:!1}}let e=null;if(typeof o?.audio=="string"&&o.audio)try{e=of(o.audio)}catch{e=null}let n=!e&&o?.isFinal!==!0&&(o?.error!=null||o?.message_type==="error");return{audio:e,final:o?.isFinal===!0,error:n}}var Hs=(()=>{class t{api=R(X);devices=R(Wn);speaking=J(!1);level=J(0);ctx=null;analyser=null;run=0;socket=null;sources=[];cursor=0;carry=null;finalReceived=!1;connectTimer=null;levelTimer=null;settle=null;cache=new Map;recording=null;prepare(){if(!this.ctx){this.ctx=this.devices.createAudioContext();try{this.analyser=this.ctx.createAnalyser?.()||null,this.analyser&&(this.analyser.fftSize=512,this.analyser.connect(this.ctx.destination))}catch{this.analyser=null}}this.ctx.state==="suspended"&&this.ctx.resume?.().catch(()=>{})}release(){this.stop(),this.cache.clear(),this.ctx?.close?.().catch(()=>{}),this.ctx=null,this.analyser=null}speak(e,n={}){this.stop();let i=(e||"").trim();if(!i)return Promise.resolve();this.prepare();let a=++this.run;this.cursor=0,this.carry=null,this.finalReceived=!1,this.speaking.set(!0),this.startLevel();let c=new Promise((h,_)=>{this.settle=v=>{this.settle=null,v?_(v):h()}}),u=n.cache?this.cache.get(i):null;return u?(u.forEach(h=>this.play(h)),this.finalReceived=!0,this.checkDone(a),c):(this.recording=n.cache?[]:null,this.connect(a,i,n.cache===!0),c)}stop(){this.run++,clearTimeout(this.connectTimer),this.connectTimer=null,this.closeSocket();for(let n of this.sources){n.onended=null;try{n.stop()}catch{}try{n.disconnect()}catch{}}this.sources=[],this.recording=null,this.stopLevel(),this.speaking.set(!1);let e=this.settle;this.settle=null,e?.()}connect(e,n,i){return ee(this,null,function*(){this.connectTimer=setTimeout(()=>this.fail(e,"unavailable"),Ks);let a,c=!1;try{a=yield mn(this.api.post("AgentOps/voiceToken",{kind:"tts"}).pipe(fn(Ks)))}catch(v){a=null,c=v?.status===429}if(e!==this.run)return;if(!a?.token||!a?.voiceId)return this.fail(e,c?"limited":"unavailable");let u=new URLSearchParams({model_id:a.modelId||"eleven_flash_v2_5",output_format:"pcm_16000",single_use_token:a.token}),h;try{h=this.devices.createSocket(`${ef}/${encodeURIComponent(a.voiceId)}/stream-input?${u.toString()}`)}catch{return this.fail(e,"unavailable")}this.socket=h;let _=!1;h.onopen=()=>{e===this.run&&(clearTimeout(this.connectTimer),this.connectTimer=null,h.send(JSON.stringify({text:" "})),h.send(JSON.stringify({text:`${n} `,flush:!0})),h.send(JSON.stringify({text:""})))},h.onmessage=v=>{if(e!==this.run)return;let k=sf(v.data);if(k.error)return this.fail(e,"unavailable");k.audio&&(_=!0,this.onAudio(k.audio)),k.final&&this.onFinal(e,i,n)},h.onerror=()=>{e===this.run&&!_&&this.fail(e,"unavailable")}
33,h.onclose=()=>{e!==this.run||this.finalReceived||(_?this.onFinal(e,!1,n):this.fail(e,"unavailable"))}})}onAudio(e){let n=e;if(this.carry!=null&&(n=new Uint8Array(e.length+1),n[0]=this.carry,n.set(e,1),this.carry=null),n.length%2&&(this.carry=n[n.length-1],n=n.subarray(0,n.length-1)),!n.length)return;let i=af(n);this.recording?.push(i),this.play(i)}onFinal(e,n,i){this.finalReceived=!0,clearTimeout(this.connectTimer),this.connectTimer=null,this.closeSocket(),n&&this.recording?.length&&this.cache.set(i,this.recording),this.recording=null,this.checkDone(e)}play(e){let n=this.ctx,i=n.createBuffer(1,e.length,qs);i.getChannelData(0).set(e);let a=n.createBufferSource();a.buffer=i,a.connect(this.analyser||n.destination);let c=rf(n.currentTime,this.cursor,e.length/qs);this.cursor=c.cursor;let u=this.run;a.onended=()=>{this.sources=this.sources.filter(h=>h!==a),this.checkDone(u)},this.sources.push(a),a.start(c.startAt)}checkDone(e){if(e!==this.run||!this.finalReceived||this.sources.length)return;this.run++,this.stopLevel(),this.speaking.set(!1);let n=this.settle;this.settle=null,n?.()}fail(e,n){if(e!==this.run)return;let i=this.settle;this.settle=null,this.stop(),i?.(new Yn(n))}closeSocket(){let e=this.socket;if(this.socket=null,!!e){e.onopen=e.onmessage=e.onerror=e.onclose=null;try{e.close()}catch{}}}startLevel(){if(this.stopLevel(),!this.analyser?.getFloatTimeDomainData)return;let e=new Float32Array(this.analyser.fftSize);this.levelTimer=setInterval(()=>{this.analyser.getFloatTimeDomainData(e);let n=0;for(let i=0;i<e.length;i++)n+=e[i]*e[i];this.level.set(Math.min(1,Math.sqrt(n/e.length)*4))},Zm)}stopLevel(){clearInterval(this.levelTimer),this.levelTimer=null,this.level.set(0)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var lf=120*1e3,cf=3e3,df="One moment.",_o=2,pf=new hn("AGENT_CONVERSATION_VOICE",{providedIn:"root",factory:()=>new Mi});function bo(t){return String(t||"").trim().split(/\s+/).filter(o=>/\w/.test(o)).length}var Ai=(()=>{class t{chat=R(gt);voice=R(pf);speech=R(Hs);state=J("off");errorKind=J(null);muted=J(!1);liveText=J("");caption=bn(()=>{switch(this.state()){case"connecting":return"Starting the conversation\u2026";case"listening":return this.muted()?"Muted":"Listening";case"thinking":return"Working on it\u2026";case"speaking":return"Speaking \u2014 tap to interrupt";case"card-waiting":return"Waiting for you to press Confirm or Cancel";default:return""}});changed=new O;ended=new O;run=0;silenceTimer=null;momentTimer=null;moment=null;replyBefore=null;get active(){let e=this.state();return e!=="off"&&e!=="error"}constructor(){this.voice.textChanged.subscribe(()=>{this.state()!=="listening"||this.muted()||(this.setLive(this.voice.partialText()),this.armSilence())}),this.voice.utterance.subscribe(e=>this.onUtterance(e)),this.voice.ended.subscribe(({reason:e})=>{this.active&&e==="error"?this.end(this.voice.errorKind()||"unavailable"):this.active&&this.end()}),this.chat.turnStarted.subscribe(()=>this.onTurnStarted()),this.chat.turnFinished.subscribe(e=>this.onTurnFinished(e))}start(){return ee(this,null,function*(){if(this.active||this.chat.voiceBusy||!this.chat.conversationEnabled)return;let e=++this.run;if(this.errorKind.set(null),this.muted.set(!1),this.liveText.set(""),this.setState("connecting"),this.speech.prepare(),yield this.voice.start({continuous:!0}),!(e!==this.run||this.state()!=="connecting")){if(this.voice.state()!=="listening"){this.end(this.voice.errorKind()||"unavailable");return}this.afterReply()}})}end(e=null){this.active&&(this.run++,this.clearTimers(),this.moment=null,this.replyBefore=null,this.errorKind.set(e),this.liveText.set(""),this.muted.set(!1),this.setState(e?"error":"off"),this.voice.cancel(),this.speech.release(),this.ended.next())}interrupt(){this.state()==="speaking"&&this.speech.stop()}toggleMute(){if(!this.active)return;let e=!this.muted();this.muted.set(e),e?(this.voice.pause(),this.setLive("")):this.state()==="listening"&&this.voice.resume(),this.changed.next()}clearError(){this.state()==="error"&&(this.errorKind.set(null),this.setState("off"))}onUtterance(e){if(!(this.state()!=="listening"||this.muted())){if(this.armSilence(),bo(e)<_o){this.setLive("");return}this.chat.composerDisabled||(this.setLive(""),this.chat.send(e))}}onTurnStarted(){let e=this.state();if(e!=="listening"&&e!=="speaking"&&e!=="card-waiting")return;this.voice.pause(),e==="speaking"&&this.speech.stop(),this.replyBefore=this.lastReplyKey(),this.setLive(""),this.clearTimers(),this.setState("thinking");let n=this.run;this.momentTimer=setTimeout(()=>{n!==this.run||this.state()!=="thinking"||(this.moment=this.speech.speak(df,{cache:!0}).catch(i=>this.speechFailed(n,i)))},cf)}onTurnFinished(e){return ee(this,null,function*(){if(this.state()!=="thinking")return;let n=this.run;if(clearTimeout(this.momentTimer),this.momentTimer=null,!e.ok&&!e.stopped){this.end();return}let i=e.ok?this.newReply():null;if(!(this.moment&&(yield this.moment,this.moment=null,n!==this.run||this.state()!=="thinking"))){if(i){let a=Ei(i);if(a){this.setState("speaking");try{yield this.speech.speak(a)}catch(c){this.speechFailed(n,c);return}if(n!==this.run||this.state()!=="speaking")return}}this.afterReply()}})}
33afterReply(){this.chat.pendingProposal?(this.voice.pause(),this.clearTimers(),this.setState("card-waiting")):this.chat.requestInFlight?(this.voice.pause(),this.replyBefore=this.lastReplyKey(),this.setState("thinking")):this.listen()}listen(){this.setLive(""),this.muted()||this.voice.resume(),this.setState("listening"),this.armSilence()}speechFailed(e,n){e===this.run&&this.end(n instanceof Yn?n.kind:"unavailable")}newReply(){let e=this.lastReply();return e?this.replyKey(e)===this.replyBefore?null:e.text:null}lastReply(){let e=this.chat.transcript||[],n=e[e.length-1];return n?.role==="assistant"&&n?.text?n:null}lastReplyKey(){let e=this.chat.transcript||[];for(let n=e.length-1;n>=0;n--)if(e[n]?.role==="assistant"&&e[n]?.text)return this.replyKey(e[n]);return null}replyKey(e){return e?.id?"id:"+e.id:"text:"+e?.text}armSilence(){clearTimeout(this.silenceTimer);let e=this.run;this.silenceTimer=setTimeout(()=>{e===this.run&&this.state()==="listening"&&this.end()},lf)}clearTimers(){clearTimeout(this.silenceTimer),clearTimeout(this.momentTimer),this.silenceTimer=null,this.momentTimer=null}setLive(e){let n=(e||"").trim();n!==this.liveText()&&(this.liveText.set(n),this.changed.next())}setState(e){this.state()!==e&&(this.state.set(e),this.changed.next())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var uf=new hn("AGENT_VOICE_ENGINE_SDK",{providedIn:"root",factory:()=>()=>import("./chunk-VW2QLHFI.js").then(t=>t.Conversation)}),Ws=15e3,Xn="ElevenLabs engine \xB7 ",mf="Sorry, that didn't work. It's on screen.",ff=50,Gs=(()=>{class t{api=R(X);chat=R(gt);conv=R(Ai);mic=R(In);loadSdk=R(uf);state=J("off");errorKind=J(null);muted=J(!1);liveText=J("");inputLevel=J(0);outputLevel=J(0);caption=bn(()=>{switch(this.state()){case"connecting":return Xn+"Starting the conversation\u2026";case"listening":return Xn+(this.muted()?"Muted":"Listening");case"thinking":return Xn+"Working on it\u2026";case"speaking":return Xn+"Speaking \u2014 talk to interrupt";case"card-waiting":return Xn+"Waiting for you to press Confirm or Cancel";default:return""}});changed=new O;ended=new O;run=0;session=null;rpSession=null;engineConversationId=null;sdkMode="listening";phase="listening";sending=!1;ownTurn=!1;turnText=null;sendingText=null;replyBefore=null;connectTimer=null;levelTimer=null;get active(){let e=this.state();return e!=="off"&&e!=="error"}constructor(){this.chat.turnStarted.subscribe(()=>this.onTurnStarted()),this.chat.turnFinished.subscribe(e=>this.onTurnFinished(e))}start(){return ee(this,null,function*(){if(this.active||this.conv.active||this.chat.voiceBusy||!this.chat.voiceEngineEnabled)return;let e=++this.run;this.errorKind.set(null),this.muted.set(!1),this.liveText.set(""),this.sdkMode="listening",this.ownTurn=!1,this.engineConversationId=null,this.setState("connecting"),this.connectTimer=setTimeout(()=>{e===this.run&&this.state()==="connecting"&&this.end("unavailable")},Ws);let n;try{n=yield mn(this.api.post("AgentOps/voiceEngineSession",{}).pipe(fn(Ws)))}catch(c){e===this.run&&this.end(c?.status===429?"limited":"unavailable");return}if(e!==this.run)return;if(!n?.conversationToken||!n?.rpSession)return this.end("unavailable");this.rpSession=n.rpSession;let i;try{i=yield this.loadSdk()}catch{e===this.run&&this.end("unavailable");return}if(e!==this.run)return;let a;try{a=yield i.startSession({conversationToken:n.conversationToken,inputDeviceId:this.mic.selectedId()||void 0,dynamicVariables:{secret__rp_session:n.rpSession},onConnect:({conversationId:c})=>{e===this.run&&(this.engineConversationId=c||null)},onMessage:c=>this.onMessage(e,c),onModeChange:({mode:c})=>this.onModeChange(e,c),onIncomingEvent:c=>this.onIncomingEvent(e,c),onError:()=>{e===this.run&&this.active&&this.end("unavailable")},onDisconnect:c=>{e===this.run&&this.active&&this.end(c?.reason==="error"?"unavailable":null)}})}catch(c){e===this.run&&this.end(c?.name==="NotAllowedError"||c?.name==="SecurityError"?"blocked":"unavailable");return}if(e!==this.run||this.state()!=="connecting"){a.endSession().catch(()=>{});return}this.session=a,clearTimeout(this.connectTimer),this.connectTimer=null,this.startLevel(),this.phase=this.chat.pen
33dingProposal?"card-waiting":this.chat.requestInFlight?"thinking":"listening",this.refresh()})}end(e=null){if(!this.active)return;this.run++,clearTimeout(this.connectTimer),this.connectTimer=null,this.stopLevel();let n=this.session,i=this.rpSession;this.session=null,this.rpSession=null,this.engineConversationId=null,this.ownTurn=!1,this.turnText=null,this.replyBefore=null,this.errorKind.set(e),this.liveText.set(""),this.muted.set(!1),this.setState(e?"error":"off"),n?.endSession().catch(()=>{}),i&&this.api.post("AgentOps/voiceEngineEnd",{rpSession:i}).subscribe({error:()=>{}}),this.ended.next()}interrupt(){}toggleMute(){this.active&&(this.muted.set(!this.muted()),this.muted()&&this.setLive(""),this.applyMic(),this.changed.next())}clearError(){this.state()==="error"&&(this.errorKind.set(null),this.setState("off"))}switchMicrophone(){this.session?.changeInputDevice?.({inputDeviceId:this.mic.selectedId()||void 0}).catch(()=>{})}onMessage(e,n){if(e!==this.run||!this.session||n?.role!=="user")return;let i=(n.message||"").trim();if(this.setLive(""),!(this.phase!=="listening"||this.muted())&&!(bo(i)<_o)&&!this.chat.composerDisabled){this.sending=!0,this.sendingText=i;try{this.chat.send(i)}finally{this.sending=!1,this.sendingText=null}}}onIncomingEvent(e,n){e!==this.run||n?.type!=="tentative_user_transcript"||this.phase!=="listening"||this.muted()||this.setLive(n.tentative_user_transcription_event?.user_transcript||"")}onModeChange(e,n){e===this.run&&(this.sdkMode=n==="speaking"?"speaking":"listening",this.session&&this.refresh())}onTurnStarted(){!this.active||this.state()==="connecting"||(this.sending&&(this.ownTurn=!0,this.turnText=this.sendingText,this.replyBefore=this.lastReplyKey()),this.setLive(""),this.phase="thinking",this.refresh())}onTurnFinished(e){if(!this.active||this.phase!=="thinking")return;let n=this.ownTurn,i=this.turnText;if(this.ownTurn=!1,this.turnText=null,n&&!e.ok&&!e.stopped)this.postReply(mf,i);else if(n&&e.ok){let a=this.newReply(),c=a?Ei(a):"";c&&this.postReply(c,i)}this.phase=this.chat.pendingProposal?"card-waiting":"listening",this.refresh()}postReply(e,n){let i=this.run,a={rpSession:this.rpSession,text:e,inReplyTo:n};this.engineConversationId&&(a.conversationId=this.engineConversationId),this.api.post("AgentOps/voiceEngineReply",a).subscribe({error:c=>{i===this.run&&this.end(c?.status===429?"limited":"unavailable")}})}refresh(){this.session&&(this.applyMic(),this.setState(this.sdkMode==="speaking"?"speaking":this.phase))}applyMic(){this.session&&this.session.setMicMuted(this.muted()||this.phase!=="listening")}newReply(){let e=this.chat.transcript||[],n=e[e.length-1];return n?.role!=="assistant"||!n?.text||this.replyKey(n)===this.replyBefore?null:n.text}lastReplyKey(){let e=this.chat.transcript||[];for(let n=e.length-1;n>=0;n--)if(e[n]?.role==="assistant"&&e[n]?.text)return this.replyKey(e[n]);return null}replyKey(e){return e?.id?"id:"+e.id:"text:"+e?.text}startLevel(){this.stopLevel(),this.levelTimer=setInterval(()=>{let e=this.session;if(e)try{this.inputLevel.set(Math.min(1,e.getInputVolume()||0)),this.outputLevel.set(Math.min(1,e.getOutputVolume()||0))}catch{}},ff)}stopLevel(){clearInterval(this.levelTimer),this.levelTimer=null,this.inputLevel.set(0),this.outputLevel.set(0)}setLive(e){let n=(e||"").trim();n!==this.liveText()&&(this.liveText.set(n),this.changed.next())}setState(e){this.state()!==e&&(this.state.set(e),this.changed.next())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hf=["previewPortal"],gf=["fileInput"],_f=["transcriptEl"],bf=["composerEl"],Cf=["voiceMirror"],vf=["talkBtn"],xf=["engineBtn"],yf=["orbBtn"],wf=["confirmCard"],Sf=["micTrigger"],kf=["micMenu"],Qs=t=>({$implicit:t}),Tf=()=>({$implicit:"conv-btn"}),Mf=()=>({$implicit:"mic-pick-btn"}),Ys=(t,o)=>o.attachmentId,Xs=(t,o)=>o.key,Pf=(t,o)=>o.localId,Ef=(t,o)=>o.id;function Af(t,o){if(t&1&&(r(0,"span",17),d(1),s()),t&2){let e=p();g("matTooltip","catalog "+((e.chat.status==null?null:e.chat.status.catalogSource)||"?")+" \xB7 "+((e.chat.status==null?null:e.chat.status.catalogHash)||"")),l(),to(" ",e.chat.status==null?null:e.chat.status.provider," \xB7 ",e.chat.status==null?null:e.chat.status.model," \xB7 ",e.chat.status==null?null:e.chat.status.visibleToolCount,"/",e.chat.status==null?null:e.chat.status.toolCount," tools ")}}
33function Of(t,o){if(t&1){let e=M();r(0,"button",27),x("click",function(){y(e);let i=p();return w(i.openInsights())}),r(1,"mat-icon"),d(2,"query_stats"),s()()}}function If(t,o){if(t&1){let e=M();r(0,"button",28),x("click",function(){y(e);let i=p();return w(i.newConversation())}),r(1,"mat-icon"),d(2,"add_comment"),s()()}if(t&2){let e=p();g("disabled",e.chat.requestInFlight||e.chat.resyncing||!!e.chat.pendingProposal)("matTooltip",e.chat.pendingProposal?"Resolve the pending confirmation first":"New conversation")}}function Rf(t,o){t&1&&(r(0,"div",24)(1,"mat-icon"),d(2,"add_photo_alternate"),s(),r(3,"span"),d(4,"Drop images to attach"),s()())}function Ff(t,o){t&1&&(r(0,"div",25),b(1,"mat-spinner",29),s())}function Lf(t,o){if(t&1){let e=M();r(0,"div",26)(1,"mat-icon"),d(2,"cloud_off"),s(),r(3,"h3"),d(4,"Could not reach the RP AI Agent"),s(),r(5,"p"),d(6,"The status check failed \u2014 this says nothing about whether the agent is enabled."),s(),r(7,"button",30),x("click",function(){y(e);let i=p();return w(i.chat.loadStatus())}),r(8,"mat-icon"),d(9,"refresh"),s(),d(10," Retry "),s()()}}function Df(t,o){t&1&&(r(0,"div",26)(1,"mat-icon"),d(2,"smart_toy"),s(),r(3,"h3"),d(4,"RP AI Agent is not enabled on this site"),s(),r(5,"p"),d(6,"The AgentOps harness is switched off for this deployment. Nothing to chat with here."),s()())}function Nf(t,o){if(t&1&&(r(0,"div",31)(1,"mat-icon"),d(2,"report_problem"),s(),r(3,"div")(4,"strong"),d(5,"Needs attention"),s(),r(6,"div"),d(7),s()()()),t&2){let e=p(2);l(7),S(e.chat.needsAttentionReason||"The conversation needs a human look before it can continue.")}}function Vf(t,o){if(t&1&&(r(0,"div",54)(1,"mat-icon"),d(2,"my_location"),s(),d(3),s()),t&2){let e=p().$implicit,n=p(2);l(3),Ne(" ",n.contextChip(e.pageContext)," ")}}
33function zf(t,o){if(t&1){let e=M();r(0,"img",63),x("click",function(){let i=y(e),a=p().$implicit,c=p(4);return w(c.openPreview(i,c.attachmentCaption(a)))}),s()}t&2&&g("src",o,B)}function Bf(t,o){t&1&&(r(0,"div",62)(1,"mat-icon"),d(2,"broken_image"),s()())}function jf(t,o){if(t&1&&m(0,zf,1,1,"img",61)(1,Bf,3,0,"div",62),t&2){let e,n=o.$implicit,i=p(4);f((e=i.chat.thumbnailFor(n.attachmentId))?0:1,e)}}function Uf(t,o){if(t&1&&(r(0,"div",55),le(1,jf,2,1,null,null,Ys),s()),t&2){let e=p().$implicit;l(),ce(e.attachments)}}function $f(t,o){if(t&1&&b(0,"div",56),t&2){let e=p().$implicit;g("innerHTML",e.renderedHtml,ia)}}function qf(t,o){if(t&1&&(r(0,"div",57),d(1),s()),t&2){let e=p().$implicit;l(),S(e.text)}}function Kf(t,o){if(t&1){let e=M();r(0,"button",65),x("click",function(){let i=y(e).$implicit,a=p(4);return w(a.chat.sendOption(i))}),d(1),s()}if(t&2){let e=o.$implicit,n=p(4);g("disabled",n.chat.composerDisabled||n.chat.voiceBusy),l(),S(e)}}function Hf(t,o){if(t&1&&(r(0,"div",58),le(1,Kf,2,2,"button",64,xt),s()),t&2){let e=p().$implicit;l(),ce(e.options)}}
33function Wf(t,o){if(t&1){let e=M();r(0,"span",67),d(1,"Go back here? Continues from a copy \u2014 the current thread is kept but leaves this panel."),s(),r(2,"button",68),x("click",function(i){y(e);let a=p(2).$implicit,c=p(2);return w(c.goBack(a,i))}),d(3,"Go back"),s(),r(4,"button",69),x("click",function(i){y(e);let a=p(4);return i.stopPropagation(),w(a.disarmGoBack())}),d(5,"Cancel"),s()}if(t&2){let e=p(4);l(2),g("disabled",e.chat.forking)}}function Gf(t,o){if(t&1){let e=M();r(0,"button",72),x("click",function(i){y(e);let a=p(3),c=a.$implicit,u=a.$index,h=p(2);return w(h.armGoBack(h.messageKey(c,u),i))}),r(1,"mat-icon"),d(2,"history"),s()()}if(t&2){let e=p(5);g("disabled",e.chat.forking||e.chat.requestInFlight||e.chat.resyncing||!!e.chat.pendingProposal)("matTooltip",e.chat.pendingProposal?"Resolve the pending confirmation first":"Go back to this message")}}function Qf(t,o){if(t&1){let e=M();r(0,"button",70),x("click",function(){y(e);let i=p(2),a=i.$implicit,c=i.$index,u=p(2);return w(u.copy(a.text,u.messageKey(a,c)))}),r(1,"mat-icon"),d(2),s()(),m(3,Gf,3,2,"button",71)}if(t&2){let e=p(2),n=e.$implicit,i=e.$index,a=p(2);g("matTooltip",a.copiedKey===a.messageKey(n,i)?"Copied":"Copy this message"),l(2),S(a.copiedKey===a.messageKey(n,i)?"check":"content_copy"),l(),f(a.canGoBack(n)?3:-1)}}function Yf(t,o){if(t&1&&(r(0,"div",66),m(1,Wf,6,1)(2,Qf,4,3),s()),t&2){let e=p(),n=e.$implicit,i=e.$index,a=p(2);U("armed",a.armedGoBackKey===a.messageKey(n,i)),l(),f(a.armedGoBackKey===a.messageKey(n,i)?1:2)}}function Xf(t,o){if(t&1){let e=M();r(0,"button",81),x("click",function(){y(e);let i=p().$implicit,a=p(4);return w(a.chat.openEntity(i.entityRef))}),r(1,"mat-icon"),d(2,"open_in_new"),s(),d(3),s()}if(t&2){let e=p().$implicit,n=p(4);l(3),Ne(" ",n.entityChip(e.entityRef)," ")}}function Jf(t,o){if(t&1&&(r(0,"h5"),d(1,"Arguments"),s(),r(2,"pre"),d(3),s()),t&2){let e=p(2).$implicit,n=p(4);l(3),S(n.pretty(e.argumentsJson))}}function Zf(t,o){if(t&1&&(r(0,"h5"),d(1,"Result"),s(),r(2,"pre"),d(3),s()),t&2){let e=p(2).$implicit,n=p(4);l(3),S(n.pretty(e.resultJson))}}function e0(t,o){if(t&1&&(r(0,"div",80),m(1,Jf,4,1),m(2,Zf,4,1),s()),t&2){let e=p().$implicit;l(),f(e.argumentsJson?1:-1),l(),f(e.resultJson?2:-1)}}function t0(t,o){if(t&1){let e=M();r(0,"div",73)(1,"div",74)(2,"code",75),d(3),s(),r(4,"span",76),d(5),s(),r(6,"span",77),d(7),s(),r(8,"button",78),x("click",function(){let i=y(e),a=i.$implicit,c=i.$index,u=p(2).$index,h=p(2);return w(h.toggleTool(h.toolKey(u,c,a)))}),r(9,"mat-icon"),d(10),s()()(),m(11,Xf,4,1,"button",79),m(12,e0,3,2,"div",80),s()}if(t&2){let e=o.$implicit,n=o.$index,i=p(2).$index,a=p(2);l(3),S(e.operationId),l(),g("ngClass",a.toolStateClass(e.state)),l(),S(e.state),l(),U("write",!e.readOnly),l(),S(e.readOnly?"read":"write"),l(),g("matTooltip",a.expandedTools[a.toolKey(i,n,e)]?"Hide arguments and result":"Show arguments and result"),l(2),S(a.expandedTools[a.toolKey(i,n,e)]?"expand_less":"expand_more"),l(),f(e.entityRef?11:-1),l(),f(a.expandedTools[a.toolKey(i,n,e)]?12:-1)}}function n0(t,o){if(t&1&&(r(0,"div",60),le(1,t0,13,10,"div",73,It),s()),t&2){let e=p().$implicit;l(),ce(e.toolCalls)}}function i0(t,o){if(t&1&&(r(0,"div",53),m(1,Vf,4,1,"div",54),m(2,Uf,3,0,"div",55),m(3,$f,1,1,"div",56)(4,qf,2,1,"div",57),m(5,Hf,3,0,"div",58),m(6,Yf,3,3,"div",59),m(7,n0,3,0,"div",60),s()),t&2){let e=o.$implicit,n=o.$index,i=p(2);U("me",e.role==="user")("assistant",e.role!=="user"),l(),f(e.pageContext?1:-1),l(),f(e.attachments!=null&&e.attachments.length?2:-1),l(),f(e.renderedHtml?3:e.text?4:-1),l(2),f(i.showOptions(e,n)?5:-1),l(),f(i.hasActions(e)?6:-1),l(),f(e.toolCalls!=null&&e.toolCalls.length?7:-1)}}function o0(t,o){t&1&&(r(0,"div",82)(1,"mat-icon"),d(2,"forum"),s(),r(3,"p"),d(4,"Ask the agent something \u2014 it answers with the same tools the HQ pages use, and every write comes back to you for confirmation first."),s()())}function a0(t,o){if(t&1&&m(0,o0,5,0,"div",82),t&2){let e=p(2);f(e.bar.liveText()?-1:0)}}function r0(t,o){if(t&1&&(r(0,"div",34)(1,"div",83),d(2),s()()),t&2){let e=p(2);l(2),S(e.bar.liveText())}}function s0(t,o){if(t&1&&(r(0,"span",89),d(1),s()),t&2){let e=p().$implicit;l(),S(e.detail)}}function l0(t,o){if(t&1&&(r(0,"li",85)(1,"mat-icon",86),d(2),s(),r(3,"div",87)(4,"span",88),d(5),s(),m(6,s0,2,1,"span",89),s(),r(7,"span",90),d(8),s()()),t&2){let e=o.$implicit,n=p(3);U("failed",e.state==="failed"),l(2),S(n.actionIcon(e.kind)),l(3),S(e.label),l(),f(e.detail?6:-1),l(),g("ngClass",n.actionChipClass(e.state)),l(),S(n.actionStateLabel(e.state))}}function c0(t,o){if(t&1&&(r(0,"ul",35),le(1,l0,9,7,"li",84,It),s()),t&2){let e=p(2);l(),ce(e.chat.actionRows)}}function d0(t,o){if(t&1&&(r(0,"h4",93),d(1),s()),t&2){let e=p().$implicit;l(),S(e.title)}}function p0(t,o){if(t&1&&(r(0,"span",97),d(1),s()),t&2){let e=p().$implicit;l(),S(e.summary)}}function u0(t,o){if(t&1&&(r(0,"li",95)(1,"div",96)(2,"span"),d(3),s(),m(4,p0,2,1,"span",97),s(),r(5,"span",90),d(6),s()()),t&2){let e=o.$implicit,n=p(4);l(3),S(e.label),l(),f(e.summary?4:-1),l(),g("ngClass",n.stepChipClass(e.state)),l(),S(n.stepStateLabel(e.state))}}function m0(t,o){if(t&1&&(m(0,d0,2,1,"h4",93),r(1,"ul",94),le(2,u0,7,4,"li",95,It),s()),t&2){let e=o.$implicit;f(e.title?0:-1),l(2),ce(e.steps)}}function f0(t,o){t&1&&(r(0,"p",92),d(1,"The assistant reported no steps for this plan."),s())}function h0(t,o){if(t&1&&(r(0,"section",36)(1,"h3",91),d(2),s(),le(3,m0,4,1,null,null,Xs,!1,f0,2,0,"p",92),s()),t&2){let e=p(2);l(2),S(e.chainResultTitle(e.chat.chainResult)),l(),ce(e.chainGroups(e.chat.chainResult.steps))}}function g0(t,o){if(t&1&&(r(0,"span",100),d(1),s()),t&2){let e=p(3);l(),Ne("\xB7 ",e.elapsedSeconds,"s")}}function _0(t,o){if(t&1&&(r(0,"div",37),b(1,"span",98),r(2,"span",99),d(3,"Working\u2026"),s(),m(4,g0,2,1,"span",100),s()),t&2){let e=p(2);l(4),f(e.elapsedSeconds>=10?4:-1)}}function b0(t,o){t&1&&(r(0,"div",38),b(1,"mat-spinner",101),r(2,"span"),d(3,"Re-syncing the conversation\u2026"),s()())}function C0(t,o){if(t&1&&(r(0,"div",105)(1,"mat-icon"),d(2,"warning_amber"),s(),r(3,"div")(4,"strong"),d(5,"The plan changed \u2014 confirm afresh."),s(),r(6,"div"),d(7),s()()()),t&2){let e=p(3);
33l(7),S(e.chat.pendingProposal.reconfirmReason)}}function v0(t,o){if(t&1&&(r(0,"h4",93),d(1),s()),t&2){let e=p().$implicit;l(),S(e.title)}}function x0(t,o){if(t&1&&(r(0,"li",95),d(1),s()),t&2){let e=o.$implicit;l(),S(e.label)}}function y0(t,o){if(t&1&&(m(0,v0,2,1,"h4",93),r(1,"ol",113),le(2,x0,2,1,"li",95,It),s()),t&2){let e=o.$implicit;f(e.title?0:-1),l(2),ce(e.steps)}}function w0(t,o){t&1&&(r(0,"p",92),d(1,"This plan has no steps, so there is nothing to run. Cancel it and ask again."),s())}function S0(t,o){t&1&&(r(0,"p",109),d(1,"Running the steps\u2026 this can take a minute."),s())}function k0(t,o){if(t&1){let e=M();r(0,"section",39,5)(2,"div",102)(3,"mat-icon",103),d(4,"playlist_add_check"),s(),r(5,"h3",104),d(6,"Are you sure?"),s()(),m(7,C0,8,1,"div",105),r(8,"p",106),d(9),s(),le(10,y0,4,1,null,null,Xs,!1,w0,2,0,"p",92),r(13,"p",107),d(14,"Confirm runs exactly these steps, in this order, and nothing else."),s(),r(15,"div",108),d(16),We(17,"date"),s(),m(18,S0,2,0,"p",109),r(19,"div",110)(20,"button",111),x("click",function(){y(e);let i=p(2);return w(i.confirmProposal(!0))}),d(21," Confirm "),s(),r(22,"button",112),x("click",function(){y(e);let i=p(2);return w(i.confirmProposal(!1))}),d(23," Cancel "),s()()()}if(t&2){let e=p(2);l(7),f(e.chat.pendingProposal.requiresReconfirm?7:-1),l(2),S(e.chat.pendingProposal.planSummary||e.chat.pendingProposal.summary),l(),ce(e.chainGroups(e.chat.pendingProposal.steps)),l(6),Ne("Expires ",Ge(17,7,e.chat.pendingProposal.expiresOn,"MMM d, HH:mm:ss")),l(2),f(e.chat.requestInFlight?18:-1),l(2),g("disabled",e.chat.requestInFlight||e.chat.resyncing||!(e.chat.pendingProposal.steps!=null&&e.chat.pendingProposal.steps.length)),l(2),g("disabled",e.chat.requestInFlight||e.chat.resyncing)}}function T0(t,o){if(t&1&&d(0),t&2){let e=p(3);Ve(" (write ",e.chat.pendingProposal.batchIndex," of ",e.chat.pendingProposal.batchTotal,") ")}}function M0(t,o){if(t&1&&(r(0,"div",105)(1,"mat-icon"),d(2,"warning_amber"),s(),r(3,"div")(4,"strong"),d(5,"The proposal changed \u2014 confirm afresh."),s(),r(6,"div"),d(7),s()()()),t&2){let e=p(3);l(7),S(e.chat.pendingProposal.reconfirmReason)}}function P0(t,o){if(t&1&&(r(0,"h5"),d(1,"Current state"),s(),r(2,"pre"),d(3),s()),t&2){let e=p(3);l(3),S(e.pretty(e.chat.pendingProposal.previewResultJson))}}function E0(t,o){t&1&&(r(0,"div",116)(1,"mat-icon"),d(2,"visibility_off"),s(),d(3," The current state could not be re-checked \u2014 confirm with extra care. "),s())}function A0(t,o){if(t&1){let e=M();r(0,"div",40,5)(2,"div",102)(3,"mat-icon"),d(4,"gavel"),s(),r(5,"strong"),d(6," Confirm action "),m(7,T0,1,2),s()(),m(8,M0,8,1,"div",105),r(9,"p",106),d(10),s(),r(11,"div",114)(12,"code"),d(13),s(),r(14,"code",115),d(15),s()(),r(16,"h5"),d(17,"Arguments"),s(),r(18,"pre"),d(19),s(),m(20,P0,4,1),m(21,E0,4,0,"div",116),r(22,"div",108),d(23),We(24,"date"),s(),r(25,"div",110)(26,"button",111),x("click",function(){y(e);let i=p(2);return w(i.confirmProposal(!0))}),d(27," Confirm "),s(),r(28,"button",112),x("click",function(){y(e);let i=p(2);return w(i.confirmProposal(!1))}),d(29," Cancel "),s()()()}if(t&2){let e=p(2);l(7),f(e.chat.pendingProposal.batchTotal?7:-1),l(),f(e.chat.pendingProposal.requiresReconfirm?8:-1),l(2),S(e.chat.pendingProposal.summary),l(3),S(e.chat.pendingProposal.operationId),l(2),Ve("",e.chat.pendingProposal.method," ",e.chat.pendingProposal.path),l(4),S(e.pretty(e.chat.pendingProposal.argumentsJson)),l(),f(e.chat.pendingProposal.previewResultJson?20:-1),l(),f(e.chat.pendingProposal.previewUnavailable?21:-1),l(2),Ne("Expires ",Ge(24,12,e.chat.pendingProposal.expiresOn,"MMM d, HH:mm:ss")),l(3),g("disabled",e.chat.requestInFlight||e.chat.resyncing),l(2),g("disabled",e.chat.requestInFlight||e.chat.resyncing)}}function O0(t,o){if(t&1&&(r(0,"div",41)(1,"mat-icon"),d(2,"info_outline"),s(),d(3),s()),t&2){let e=p(2);l(3),Ne(" ",e.chat.harnessNote," ")}}function I0(t,o){if(t&1){let e=M();r(0,"img",123),x("click",function(){let i=y(e),a=p().$implicit,c=p(3);return w(c.openPreview(i,a.name))}),s()}if(t&2){let e=p().$implicit;g("src",o,B)("alt",e.name)}}function R0(t,o){t&1&&(r(0,"div",119)(1,"mat-icon"),d(2,"image"),s()())}function F0(t,o){t&1&&(r(0,"div",120),b(1,"mat-spinner",101),s())}function L0(t,o){if(t&1&&(r(0,"div",121)(1,"mat-icon"),d(2,"error_outline"),s()()),t&2){let e=p().$implicit;g("matTooltip",e.error||"The image could not be uploaded")}}function D0(t,o){if(t&1){let e=M();r(0,"div",117),m(1,I0,1,2,"img",118)(2,R0,3,0,"div",119),m(3,F0,2,0,"div",120),m(4,L0,3,1,"div",121),r(5,"button",122),x("click",function(i){let a=y(e).$implicit,c=p(3);return i.stopPropagation(),w(c.chat.removeAttachment(a))}),r(6,"mat-icon"),d(7,"close"),s()()()}if(t&2){let e,n=o.$implicit,i=p(3);g("ngClass",n.state),l(),f((e=i.chipSrc(n))?1:2,e),l(2),f(n.state==="uploading"?3:-1),l(),f(n.state==="failed"?4:-1)}}function N0(t,o){if(t&1&&(r(0,"div",42),le(1,D0,8,4,"div",117,Pf),s()),t&2){let e=p(2);
33l(),ce(e.chat.pendingAttachments)}}function V0(t,o){t&1&&d(0," Starting the microphone\u2026 ")}function z0(t,o){t&1&&(b(0,"span",126),d(1,"Listening\u2026 speak, then press Stop. "))}function B0(t,o){t&1&&j(0)}function j0(t,o){if(t&1&&E(0,B0,1,0,"ng-container",127),t&2){p(2);let e=D(31),n=p();g("ngTemplateOutlet",e)("ngTemplateOutletContext",oe(2,Qs,n.micLevel(n.chat.voice)))}}function U0(t,o){if(t&1&&(r(0,"div",124)(1,"p",125),m(2,V0,1,0)(3,z0,2,0),s(),m(4,j0,1,4,"ng-container"),s()),t&2){let e=p(2);U("active",e.chat.voice.state()==="connecting"||e.chat.voice.state()==="listening"),l(2),f(e.chat.voice.state()==="connecting"?2:e.chat.voice.state()==="listening"?3:-1),l(2),f(e.chat.voice.state()==="listening"?4:-1)}}function $0(t,o){t&1&&b(0,"mat-spinner",134)}function q0(t,o){if(t&1&&(r(0,"mat-icon"),d(1),s()),t&2){let e=p(4);l(),S(e.orbIcon())}}function K0(t,o){if(t&1){let e=M();r(0,"button",132,6),x("click",function(){y(e);let i=p(3);return w(i.bar.interrupt())}),r(2,"span",133),m(3,$0,1,0,"mat-spinner",134)(4,q0,2,1,"mat-icon"),s()()}if(t&2){let e=p(3);U("muted",e.bar.muted()),g("ngClass",e.bar.state()),Xt("aria-label",e.orbInterruptible()?"Stop speaking and listen":"Agent voice")("aria-disabled",e.orbInterruptible()?null:"true"),l(2),K("transform",e.orbTransform()),l(),f(e.bar.state()==="connecting"?3:4)}}function H0(t,o){t&1&&j(0)}function W0(t,o){if(t&1&&E(0,H0,1,0,"ng-container",127),t&2){p(2);let e=D(31),n=p();g("ngTemplateOutlet",e)("ngTemplateOutletContext",oe(2,Qs,n.barMicLevel()))}}function G0(t,o){t&1&&j(0)}function Q0(t,o){if(t&1){let e=M();r(0,"button",135),x("click",function(){y(e);let i=p(3);return w(i.bar.toggleMute())}),r(1,"mat-icon",103),d(2),s()(),E(3,G0,1,0,"ng-container",127),r(4,"button",136),x("click",function(){y(e);let i=p(3);return w(i.bar.end())}),r(5,"mat-icon",103),d(6,"call_end"),s()()}if(t&2){p(2);let e=D(29),n=p();U("pressed",n.bar.muted()),g("matTooltip",n.bar.muted()?"Turn the microphone back on":"Stop sending your voice without ending"),Xt("aria-pressed",n.bar.muted()?"true":"false"),l(2),S(n.bar.muted()?"mic_off":"mic"),l(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",ue(7,Tf))}}function Y0(t,o){if(t&1&&(r(0,"div",128),m(1,K0,5,8,"button",129),r(2,"div",130)(3,"p",131),d(4),s(),m(5,W0,1,4,"ng-container"),s(),m(6,Q0,7,8),s()),t&2){let e=p(2);U("active",e.bar.active),l(),f(e.bar.active?1:-1),l(3),S(e.bar.caption()),l(),f(e.bar.state()==="listening"&&!e.bar.muted()?5:-1),l(),f(e.bar.active?6:-1)}}function X0(t,o){if(t&1){let e=M();r(0,"input",145,8),x("change",function(i){y(e);let a=p(3);return w(a.onFilesPicked(i))}),s(),r(2,"button",146),x("click",function(){y(e);let i=p(3);return w(i.browseForImages())}),r(3,"mat-icon"),d(4,"attach_file"),s()()}if(t&2){let e=p(3);g("accept",e.chat.acceptAttribute),l(2),g("disabled",e.chat.composerDisabled||e.chat.pendingAttachments.length>=e.chat.maxAttachments)("matTooltip",e.chat.pendingAttachments.length>=e.chat.maxAttachments?"At most "+e.chat.maxAttachments+" images per message":"Attach an image \u2014 you can also drag one in or paste it")}}function J0(t,o){if(t&1&&(r(0,"div",138,9),d(2),r(3,"span",147),d(4),s()()),t&2){let e=p(3);l(2),Ve("",e.chat.voiceSettled,"",e.chat.voiceSettled&&e.chat.voicePending?" ":""),l(2),S(e.chat.voicePending)}}function Z0(t,o){if(t&1){let e=M();r(0,"button",148,10),x("click",function(){y(e);let i=p(3);return w(i.startConversation())}),r(2,"mat-icon",103),d(3,"graphic_eq"),s()()}if(t&2){let e=p(3);g("disabled",e.chat.voiceBusy)}}function eh(t,o){if(t&1){let e=M();r(0,"button",149,11),x("click",function(){y(e);let i=p(3);return w(i.startEngine())}),r(2,"mat-icon",103),d(3,"record_voice_over"),s()()}if(t&2){let e=p(3);g("disabled",e.chat.voiceBusy)}}function th(t,o){t&1&&j(0)}function nh(t,o){if(t&1&&E(0,th,1,0,"ng-container",127),t&2){p(2);let e=D(29);g("ngTemplateOutlet",e)("ngTemplateOutletContext",ue(2,Mf))}}function ih(t,o){t&1&&b(0,"mat-spinner",151)}function oh(t,o){if(t&1&&(r(0,"mat-icon",103),d(1),s()),t&2){let e=p(4);l(),S(e.chat.voice.state()==="listening"?"stop":"mic")}}function ah(t,o){if(t&1){let e=M();r(0,"button",150),x("click",function(){y(e);let i=p(3);return i.conv.clearError(),i.engine.clearError(),w(i.chat.toggleVoice())}),m(1,ih,1,0,"mat-spinner",151)(2,oh,2,1,"mat-icon",103),s()}if(t&2){let e=p(3);U("listening",e.chat.voice.state()==="listening"),da("aria-disabled",e.chat.voice.state()==="connecting"||e.chat.voice.state()==="stopping"),g("disabled",!e.chat.voiceBusy&&e.chat.composerDisabled)("matTooltip",e.chat.voice.state()==="listening"?"Stop listening":"Speak your message"),Xt("aria-label",e.chat.voice.state()==="listening"?"Stop listening":"Speak your message")("aria-pressed",e.chat.voice.state()==="listening"?"true":"false"),l(),f(e.chat.voice.state()==="connecting"||e.chat.voice.state()==="stopping"?1:2)}}function rh(t,o){if(t&1){let e=M();r(0,"button",152),x("click",function(){y(e);let i=p(3);return w(i.chat.stop())}),r(1,"mat-icon"),d(2,"stop"),s(),d(3," Stop "),s()}}function sh(t,o){if(t&1){let e=M();r(0,"button",153),x("click",function(){y(e);let i=p(3);return w(i.send())}),r(1,"mat-icon"),d(2,"send"),s(),d(3," Send "),s()}if(t&2){let e=p(3);g("disabled",e.chat.composerDisabled||!e.chat.draft.trim()||e.chat.uploadsBlockSend||e.chat.voiceBusy)("matTooltip",e.chat.uploadsBlockSend?"Wait for the images to finish uploading, or remove the ones that failed":"")}}function lh(t,o){if(t&1){let e=M();r(0,"div",45),m(1,X0,5,3),r(2,"div",137),m(3,J0,5,3,"div",138),r(4,"textarea",139,7),St("ngModelChange",function(i){y(e);let a=p(2);return wt(a.chat.draft,i)||(a.chat.draft=i),w(i)}),x("keydown.enter",function(i){y(e);let a=p(2);return w(a.onComposerEnter(i))})("paste",function(i){y(e);let a=p(2);return w(a.onPaste(i))})("input",function(){y(e);let i=p(2);return w(i.autosizeComposer())}),s()(),m(6,Z0,4,1,"button",140),m(7,eh,4,1,"button",141),m(8,nh,1,3,"ng-container"),m(9,ah,3,8,"button",142),m(10,rh,4,0,"button",143)(11,sh,4,2,"button",144),s()}if(t&2){let e=p(2);l(),f(e.chat.imagesEnabled?1:-1),l(),U("voice-live",e.chat.voiceBusy),l(),f(e.chat.voiceBusy?3:-1),l(),yt("ngModel",e.chat.draft),g("disabled",e.chat.composerDisabled)("readonly",e.chat.voiceBusy)("placeholder",e.chat.pen
33dingProposal?"Answer the pending confirmation above first":"Message the agent\u2026 (Enter sends, Shift+Enter for a new line)"),l(2),f(e.chat.conversationEnabled?6:-1),l(),f(e.chat.voiceEngineEnabled?7:-1),l(),f(e.chat.voiceEnabled?8:-1),l(),f(e.chat.voiceEnabled?9:-1),l(),f(e.chat.requestInFlight?10:11)}}function ch(t,o){if(t&1&&(r(0,"p",46)(1,"mat-icon",103),d(2,"error_outline"),s(),r(3,"span"),d(4),s()()),t&2){let e=p(2);l(4),S(e.voiceErrorText(e.conv.errorKind()))}}function dh(t,o){if(t&1&&(r(0,"p",47)(1,"mat-icon",103),d(2,"error_outline"),s(),r(3,"span"),d(4),s()()),t&2){let e=p(2);l(4),S(e.voiceErrorText(e.engine.errorKind()))}}function ph(t,o){if(t&1&&(r(0,"p",48)(1,"mat-icon",103),d(2,"error_outline"),s(),r(3,"span"),d(4),s()()),t&2){let e=p(2);l(4),S(e.voiceErrorText(e.chat.voice.errorKind()))}}function uh(t,o){if(t&1){let e=M();r(0,"div",49)(1,"mat-icon",103),d(2,"mic_off"),s(),r(3,"span",154),d(4,"I'm not hearing anything from the microphone. Pick another one, or check that your computer lets Chrome use it."),s(),r(5,"button",155),x("click",function(){y(e);let i=p(2);return w(i.openMicPicker())}),d(6,"Choose microphone"),s()()}}function mh(t,o){if(t&1&&(r(0,"p",157),d(1),s()),t&2){let e=p(3);l(),S(e.voiceErrorText("blocked"))}}function fh(t,o){if(t&1){let e=M();r(0,"button",156),x("click",function(i){y(e);let a=p(2);return w(a.allowMic(i))}),r(1,"mat-icon",103),d(2,"mic"),s(),r(3,"span"),d(4,"Allow the microphone to see the list"),s()(),m(5,mh,2,1,"p",157)}if(t&2){let e=p(2);l(5),f(e.mic.blocked()?5:-1)}}function hh(t,o){if(t&1){let e=M();r(0,"button",159),x("click",function(){let i=y(e).$implicit,a=p(3);return w(a.chooseMic(i.id))}),r(1,"mat-icon",103),d(2,"check"),s(),r(3,"span"),d(4),s()()}if(t&2){let e=o.$implicit,n=p(3);Xt("aria-checked",n.mic.checkedId()===e.id?"true":"false"),l(),U("mic-unchecked",n.mic.checkedId()!==e.id),l(3),S(e.label)}}function gh(t,o){if(t&1&&le(0,hh,5,4,"button",158,Ef),t&2){let e=p(2);ce(e.mic.options())}}function _h(t,o){if(t&1){let e=M();r(0,"button",160,12),x("menuOpened",function(){y(e);let i=p(2);return w(i.mic.refresh())}),r(2,"mat-icon",103),d(3,"settings_voice"),s()()}if(t&2){let e=o.$implicit;p();let n=D(23);g("ngClass",e)("matMenuTriggerFor",n)}}function bh(t,o){if(t&1&&(r(0,"span",161),b(1,"span",162),s()),t&2){let e=o.$implicit;Xt("aria-valuenow",e),l(),K("width",e,"%")}}function Ch(t,o){t&1&&(r(0,"div",25),b(1,"mat-spinner",167),s())}function vh(t,o){t&1&&(r(0,"div",26)(1,"mat-icon"),d(2,"query_stats"),s(),r(3,"p"),d(4,"Nothing to show \u2014 send a message first, or the load failed."),s()())}function xh(t,o){if(t&1&&(r(0,"div",173)(1,"mat-icon"),d(2,"history"),s(),d(3),We(4,"date"),s()),t&2){let e=p(4);l(3),Ve(" Forked from ",e.chat.insights.forkedFrom.conversationId," \xB7 ",Ge(4,2,e.chat.insights.forkedFrom.on,"MMM d, HH:mm:ss")," ")}}function yh(t,o){if(t&1&&(r(0,"div",175)(1,"span",176),d(2),s(),r(3,"span",177),d(4),s()()),t&2){let e=o.$implicit,n=p(4);l(2),S(n.thousands(n.chat.insights.usage.extraCounts[e])),l(2),S(n.extraLabel(e))}}function wh(t,o){if(t&1&&(r(0,"div",31)(1,"mat-icon"),d(2,"report_problem"),s(),r(3,"div"),d(4),s()()),t&2){let e=p(4);l(4),S(e.chat.insights.needsAttentionReason)}}function Sh(t,o){if(t&1&&(r(0,"span",183),d(1),s()),t&2){let e=p().$implicit,n=p(4);l(),S(n.modelCallLine(e.modelCall))}}function kh(t,o){if(t&1&&(r(0,"div",184),d(1),s()),t&2){let e=p().$implicit,n=p(4);l(),S(n.contextChip(e.pageContext))}}function Th(t,o){if(t&1&&(r(0,"span",186),d(1),s()),t&2){let e=o.$implicit,n=p(6);l(),Ve("",e.attachmentId," \xB7 ",n.attachmentCaption(e))}}function Mh(t,o){if(t&1&&(r(0,"div",184),le(1,Th,2,2,"span",186,Ys),s()),t&2){let e=p().$implicit;l(),ce(e.attachments)}}function Ph(t,o){if(t&1&&(r(0,"div",185),d(1),s()),t&2){let e=p().$implicit;l(),S(e.text)}}function Eh(t,o){if(t&1&&(r(0,"span",187),d(1),s()),t&2){let e=p().$implicit,n=p(5);l(),S(n.seconds(e.elapsedMs))}}function Ah(t,o){if(t&1&&(r(0,"h5"),d(1,"Arguments"),s(),r(2,"pre"),d(3),s()),t&2){let e=p(2).$implicit,n=p(5);l(3),S(n.pretty(e.argumentsJson))}}function Oh(t,o){if(t&1&&(r(0,"h5"),d(1,"Result"),s(),r(2,"pre"),d(3),s()),t&2){let e=p(2).$implicit,n=p(5);l(3),S(n.pretty(e.resultJson))}}function Ih(t,o){if(t&1&&(r(0,"div",80),m(1,Ah,4,1),m(2,Oh,4,1),s()),t&2){let e=p().$implicit;l(),f(e.argumentsJson?1:-1),l(),f(e.resultJson?2:-1)}}function Rh(t,o){if(t&1){let e=M();r(0,"div",73)(1,"div",74)(2,"code",75),d(3),s(),r(4,"span",76),d(5),s(),r(6,"span",77),d(7),s(),m(8,Eh,2,1,"span",187),r(9,"button",78),x("click",function(){let i=y(e).$index,a=p().$index,c=p(4);return w(c.toggleTool("ins-"+a+"-"+i))}),r(10,"mat-icon"),d(11),s()()(),m(12,Ih,3,2,"div",80),s()}if(t&2){let e=o.$implicit,n=o.$index,i=p().$index,a=p(4);l(3),S(e.operationId),l(),g("ngClass",a.toolStateClass(e.state)),l(),S(e.state),l(),U("write",!e.readOnly),l(),S(e.readOnly?"read":"write"),l(),f(e.elapsedMs!=null?8:-1),l(),g("matTooltip",a.expandedTools["ins-"+i+"-"+n]?"Hide arguments and result":"Show arguments and result"),l(2),S(a.expandedTools["ins-"+i+"-"+n]?"expand_less":"expand_more"),l(),f(a.expandedTools["ins-"+i+"-"+n]?12:-1)}}function Fh(t,o){if(t&1&&(r(0,"div",179)(1,"div",180)(2,"span",181),d(3),s(),r(4,"span",182),d(5),We(6,"date"),s(),m(7,Sh,2,1,"span",183),s(),m(8,kh,2,1,"div",184),m(9,Mh,3,0,"div",184),m(10,Ph,2,1,"div",185),le(11,Rh,13,10,"div",73,It),s()),t&2){let e=o.$implicit;U("me",e.role==="user"),l(3),S(e.role),l(2),S(Ge(6,8,e.on,"MMM d, HH:mm:ss")),l(2),f(e.modelCall?7:-1),l(),f(e.page
33Context?8:-1),l(),f(e.attachments!=null&&e.attachments.length?9:-1),l(),f(e.text?10:-1),l(),ce(e.toolCalls)}}function Lh(t,o){if(t&1&&(r(0,"div",166)(1,"div",168)(2,"div",169)(3,"code"),d(4),s(),r(5,"code"),d(6),s(),r(7,"code",170),d(8),s(),r(9,"code",171),d(10),s()(),r(11,"div",172),d(12),We(13,"date"),We(14,"date"),s(),m(15,xh,5,5,"div",173),r(16,"div",174)(17,"div",175)(18,"span",176),d(19),s(),r(20,"span",177),d(21,"model calls"),s()(),r(22,"div",175)(23,"span",176),d(24),s(),r(25,"span",177),d(26,"tokens in"),s()(),r(27,"div",175)(28,"span",176),d(29),s(),r(30,"span",177),d(31,"tokens out"),s()(),le(32,yh,5,2,"div",175,xt),r(34,"div",175)(35,"span",176),d(36),s(),r(37,"span",177),d(38,"model time"),s()(),r(39,"div",175)(40,"span",176),d(41),s(),r(42,"span",177),d(43,"tool calls"),s()(),r(44,"div",175)(45,"span",176),d(46),s(),r(47,"span",177),d(48,"tool time"),s()()(),m(49,wh,5,1,"div",31),s(),r(50,"h5"),d(51,"Timeline"),s(),le(52,Fh,13,11,"div",178,It),s()),t&2){let e=p(3);l(4),S(e.chat.insights.provider),l(2),S(e.chat.insights.model),l(2),S(e.chat.insights.systemPromptVersion),l(2),S((e.chat.insights.catalogHash||"").slice(0,12)),l(2),to(" ",e.chat.insights.conversationId," \xB7 ",e.chat.insights.state," \xB7 created ",Ge(13,16,e.chat.insights.createdOn,"MMM d, HH:mm:ss")," \xB7 updated ",Ge(14,19,e.chat.insights.updatedOn,"MMM d, HH:mm:ss")," "),l(3),f(e.chat.insights.forkedFrom?15:-1),l(4),S((e.chat.insights.usage==null?null:e.chat.insights.usage.modelCalls)||0),l(5),S(e.thousands(e.chat.insights.usage==null?null:e.chat.insights.usage.inputTokens)),l(5),S(e.thousands(e.chat.insights.usage==null?null:e.chat.insights.usage.outputTokens)),l(3),ce(e.extraKeys(e.chat.insights.usage==null?null:e.chat.insights.usage.extraCounts)),l(4),S(e.seconds(e.chat.insights.usage==null?null:e.chat.insights.usage.modelDurationMs)),l(5),S((e.chat.insights.usage==null?null:e.chat.insights.usage.toolCalls)||0),l(5),S(e.seconds(e.chat.insights.usage==null?null:e.chat.insights.usage.toolDurationMs)),l(3),f(e.chat.insights.needsAttention?49:-1),l(3),ce(e.chat.insights.transcript)}}function Dh(t,o){if(t&1){let e=M();r(0,"div",52)(1,"div",163)(2,"mat-icon"),d(3,"query_stats"),s(),r(4,"strong"),d(5,"Under the hood"),s(),b(6,"span",18),r(7,"button",164),x("click",function(){y(e);let i=p(2);return w(i.copyInsights())}),r(8,"mat-icon"),d(9),s(),d(10," Copy JSON "),s(),r(11,"button",165),x("click",function(){y(e);let i=p(2);return w(i.closeInsights())}),r(12,"mat-icon"),d(13,"close"),s()()(),m(14,Ch,2,0,"div",25)(15,vh,5,0,"div",26)(16,Lh,54,22,"div",166),s()}if(t&2){let e=p(2);l(7),g("disabled",!e.chat.insights),l(2),S(e.copiedKey==="insights"?"check":"content_copy"),l(5),f(e.chat.insightsLoading?14:e.chat.insights?16:15)}}function Nh(t,o){if(t&1&&(m(0,Nf,8,1,"div",31),r(1,"div",32,1),le(3,i0,8,10,"div",33,It,!1,a0,1,1),m(6,r0,3,1,"div",34),m(7,c0,3,0,"ul",35),m(8,h0,6,2,"section",36),m(9,_0,5,1,"div",37),m(10,b0,4,0,"div",38),s(),m(11,k0,24,10,"section",39)(12,A0,30,15,"div",40),m(13,O0,4,1,"div",41),m(14,N0,3,0,"div",42),m(15,U0,5,4,"div",43),m(16,Y0,7,6,"div",44),m(17,lh,12,13,"div",45),m(18,ch,5,1,"p",46),m(19,dh,5,1,"p",47),m(20,ph,5,1,"p",48),m(21,uh,7,0,"div",49),r(22,"mat-menu",50,2)(24,"div",51),d(25,"Microphone"),s(),m(26,fh,6,1)(27,gh,2,0),s(),E(28,_h,4,2,"ng-template",null,3,ne)(30,bh,2,3,"ng-template",null,4,ne),m(32,Dh,17,3,"div",52)),t&2){let e=p();f(e.chat.needsAttention?0:-1),l(3),ce(e.chat.transcript),l(3),f(e.bar.active&&e.bar.liveText()?6:-1),l(),f(e.chat.actionRows.length?7:-1),l(),f(e.chat.chainResult?8:-1),l(),f(e.chat.requestInFlight?9:-1),l(),f(e.chat.resyncing?10:-1),l(),f((e.chat.pendingProposal==null?null:e.chat.pendingProposal.kind)==="chain"?11:e.chat.pendingProposal?12:-1),l(2),f(e.chat.harnessNote?13:-1),l(),f(e.chat.pendingAttachments.length?14:-1),l(),f(e.chat.voiceEnabled?15:-1),l(),f(e.chat.conversationEnabled||e.chat.voiceEngineEnabled?16:-1),l(),f(e.bar.active?-1:17),l(),f(e.conv.state()==="error"?18:-1),l(),f(e.engine.state()==="error"?19:-1),l(),f(e.chat.voiceEnabled&&e.chat.voice.state()==="error"?20:-1),l(),f(e.noInputWarning()?21:-1),l(5),f(e.mic.needsPermission()?26:27),l(6),f(e.insightsOpen?32:-1)}}function Vh(t,o){if(t&1){let e=M();r(0,"div",189),x("click",function(){y(e);let i=p(2);return w(i.closePreview())}),r(1,"figure",190),x("click",function(i){return y(e),w(i.stopPropagation())}),b(2,"img",191),r(3,"figcaption")(4,"span",192),d(5),s(),r(6,"button",193),x("click",function(){y(e);let i=p(2);return w(i.closePreview())}),r(7,"mat-icon"),d(8,"close"),s()()()()()}if(t&2){let e=p(2);l(2),g("src",e.preview.src,B)("alt",e.preview.caption),l(3),S(e.preview.caption)}}function zh(t,o){if(t&1&&m(0,Vh,9,3,"div",188),t&2){let e=p();f(e.preview?0:-1)}}var Js=(()=>{class t{chat=R(gt);conv=R(Ai);engine=R(Gs);mic=R(In);sidebars=R(je);notify=R(Te);router=R(re);pageContext=R(On);overlay=R(di);
33viewContainerRef=R(sa);_unsubscribeAll=new O;expandedTools={};dropActive=!1;preview=null;previewPortal;previewOverlayRef;fileInput;transcriptEl;composerEl;voiceMirror;talkBtn;engineBtn;orbBtn;confirmCard;micTrigger;micMenu;ngOnInit(){this.chat.transcriptChanged.pipe(T(this._unsubscribeAll)).subscribe(()=>this.scrollToBottom()),this.chat.draftRestored.pipe(T(this._unsubscribeAll)).subscribe(()=>{this.remeasureComposer(),setTimeout(()=>{let e=this.composerEl?.nativeElement;e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))})}),this.chat.voice.textChanged.pipe(T(this._unsubscribeAll)).subscribe(()=>setTimeout(()=>{this.autosizeComposer(),this.syncVoiceMirror()})),this.conv.changed.pipe(T(this._unsubscribeAll)).subscribe(()=>this.onConversationChanged(this.conv)),this.conv.ended.pipe(T(this._unsubscribeAll)).subscribe(()=>setTimeout(()=>this.talkBtn?.nativeElement.focus())),this.engine.changed.pipe(T(this._unsubscribeAll)).subscribe(()=>this.onConversationChanged(this.engine)),this.engine.ended.pipe(T(this._unsubscribeAll)).subscribe(()=>setTimeout(()=>this.engineBtn?.nativeElement.focus())),this.sidebars.getSidebar("agentPanel")?.openedChanged?.pipe(T(this._unsubscribeAll)).subscribe(e=>{e||(this.conv.end(),this.engine.end())}),this.router.events.pipe(we(e=>e instanceof Ee),T(this._unsubscribeAll)).subscribe(()=>{this.pageContext.suppressed()&&this.close()})}ngAfterViewInit(){this.remeasureComposer()}ngDoCheck(){this.chat.requestInFlight!==this.working&&(this.working=this.chat.requestInFlight,this.working?this.startElapsed():this.stopElapsed())}ngOnDestroy(){this.chat.voice.cancel(),this.conv.end(),this.engine.end(),this._unsubscribeAll.next(!0),this._unsubscribeAll.complete(),this.previewOverlayRef?.dispose(),this.stopElapsed(),this.disarmGoBack(),clearTimeout(this.copiedTimer)}working=!1;elapsedTimer=null;elapsedSeconds=0;startElapsed(){this.stopElapsed(),this.elapsedSeconds=0,this.elapsedTimer=setInterval(()=>this.elapsedSeconds++,1e3)}stopElapsed(){this.elapsedTimer&&(clearInterval(this.elapsedTimer),this.elapsedTimer=null)}copiedKey=null;copiedTimer=null;armedGoBackKey=null;armedTimer=null;messageKey(e,n){return e?.id!=null?String(e.id):`i${n}`}hasActions(e){return!!e?.text}canGoBack(e){return e?.role==="user"&&!!e?.id}copy(e,n){if(!e)return;let i=navigator.clipboard?.writeText?.bind(navigator.clipboard);if(!i){this.notify.openToaster("Could not copy","error");return}i(e).then(()=>{this.copiedKey=n,clearTimeout(this.copiedTimer),this.copiedTimer=setTimeout(()=>{this.copiedKey===n&&(this.copiedKey=null)},1500)},()=>this.notify.openToaster("Could not copy","error"))}armGoBack(e,n){n.stopPropagation(),!(this.chat.pendingProposal||this.chat.requestInFlight||this.chat.resyncing||this.chat.forking)&&(this.armedGoBackKey=e,clearTimeout(this.armedTimer),this.armedTimer=setTimeout(()=>this.disarmGoBack(),4e3))}disarmGoBack(){this.armedGoBackKey=null,clearTimeout(this.armedTimer),this.armedTimer=null}goBack(e,n){n.stopPropagation(),this.disarmGoBack(),this.expandedTools={},this.closePreview(),this.chat.fork(e?.id)}onDocumentClick(){this.armedGoBackKey&&this.disarmGoBack()}insightsOpen=!1;openInsights(){this.insightsOpen=!0,this.chat.loadInsights()}closeInsights(){this.insightsOpen=!1}copyInsights(){this.copy(JSON.stringify(this.chat.insights||{},null,2),"insights")}thousands(e){return e==null?"\u2014":`${(e/1e3).toFixed(1)}k`}seconds(e){return e==null?"\u2014":e>=1e3?`${(e/1e3).toFixed(1)}s`:`${Math.round(e)}ms`}modelCallLine(e){if(!e)return"";let n=[e.model||e.provider||"model",this.seconds(e.durationMs)];(e.inputTokens!=null||e.outputTokens!=null)&&n.push(`in ${this.thousands(e.inputTokens||0)} / out ${this.thousands(e.outputTokens||0)}`);let i=Object.keys(e.extraCounts||{});return i.length&&n.push(i.map(a=>`${this.extraLabel(a)} ${this.thousands(e.extraCounts[a])}`).join(" \xB7 ")),n.join(" \xB7 ")}extraLabel(e){return(e||"").replace(/TokenCount$|Count$|Tokens$/,"").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().trim()}extraKeys(e){return Object.keys(e||{})}close(){this.chat.voice.cancel(),this.conv.end(),this.engine.end(),this.closePreview(),this.closeInsights(),this.disarmGoBack(),this.chat.fullScreen=!1,this.sidebars.getSidebar("agentPanel")?.close()}toggleFullScreen(){this.chat.fullScreen=!this.chat.fullScreen,this.remeasureComposer()}onComposerEnter(e){let n=e;n.shiftKey||(n.preventDefault(),this.send())}send(){this.chat.send(),this.remeasureComposer()}static maxComposerRows=20;autosizeComposer(){let e=this.composerEl?.nativeElement;if(!e)return;let n=getComputedStyle(e),i=parseFloat(n.lineHeight)||parseFloat(n.fontSize)*1.2,a=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),c=i*t.maxComposerRows+a;e.style.height="auto";let u=e.scrollHeight;e.style.height=Math.min(u,c)+"px",e.style.overflowY=u>c?"auto":"hidden"}remeasureComposer(){setTimeout(()=>this.autosizeComposer())}confirmProposal(e){this.chat.confirmProposal(e)}newConversation(){this.chat.requestInFlight||this.chat.resyncing||this.chat.pen
33dingProposal||(this.chat.newConversation(),this.expandedTools={},this.disarmGoBack(),this.closeInsights(),this.closePreview())}onPanelEscape(e){if(this.bar.active){this.bar.end(),e.preventDefault(),e.stopPropagation();return}let n=this.chat.voice.state();if(n==="listening")this.chat.voice.stop();else if(n==="connecting")this.chat.voice.cancel();else return;e.preventDefault(),e.stopPropagation()}startConversation(){this.conv.clearError(),this.engine.clearError(),this.conv.start()}startEngine(){this.conv.clearError(),this.engine.clearError(),this.engine.start()}get bar(){return this.engine.active?this.engine:this.conv}orbInterruptible(){return this.bar===this.conv&&this.conv.state()==="speaking"}orbTransform(){let e=this.bar===this.engine,n=this.bar.state();return n==="speaking"?"scale("+(1+(e?this.engine.outputLevel():this.conv.speech.level())*.14)+")":n==="listening"&&!this.bar.muted()?"scale("+(.94+(e?this.engine.inputLevel():this.conv.voice.level())*.14)+")":null}barMicLevel(){return this.micLevel(this.bar===this.engine?{level:this.engine.inputLevel}:this.conv.voice)}orbIcon(){switch(this.bar.state()){case"thinking":return"more_horiz";case"speaking":return"graphic_eq";case"card-waiting":return"pause";default:return this.bar.muted()?"mic_off":"mic"}}barStates=new Map;onConversationChanged(e){e.liveText()&&this.scrollToBottom();let n=this.barStates.get(e)||"off",i=e.state();n!==i&&(this.barStates.set(e,i),setTimeout(()=>{e.state()===i&&(i==="connecting"?this.orbBtn?.nativeElement.focus():i==="card-waiting"?this.confirmCard?.nativeElement.focus():i==="listening"&&(!document.activeElement||document.activeElement===document.body)&&this.orbBtn?.nativeElement.focus())}))}noInputWarning(){return this.engine.active?!1:this.conv.active?this.conv.state()==="listening"&&!this.conv.muted()&&this.conv.voice.noInput():this.chat.voice.state()==="listening"&&this.chat.voice.noInput()}micLevel(e){return Math.round(e.level()*100)}openMicPicker(){this.micTrigger?.openMenu()}allowMic(e){return ee(this,null,function*(){e.stopPropagation(),yield this.mic.allow(),setTimeout(()=>this.micMenu?.focusFirstItem("keyboard"))})}chooseMic(e){e!==this.mic.selectedId()&&(this.mic.choose(e),this.chat.voice.switchMicrophone(),this.conv.voice.switchMicrophone(),this.engine.switchMicrophone())}voiceErrorText(e){switch(e){case"blocked":return"Your browser blocked the microphone. Allow it from the icon in the address bar, then try again.";case"no-speech":return"I didn't hear anything. Try again a little closer to the microphone.";case"limited":return"You have used voice input a lot in the last hour. Type your message, or try again later.";default:return"Voice input is not available right now. Type your message instead."}}syncVoiceMirror(){let e=this.composerEl?.nativeElement,n=this.voiceMirror?.nativeElement;!e||!n||(e.scrollTop=e.scrollHeight,n.style.overflowY=e.style.overflowY,n.scrollTop=e.scrollTop)}browseForImages(){this.fileInput?.nativeElement.click()}onFilesPicked(e){let n=e.target;this.chat.addFiles(n.files),n.value=""}onDragOver(e){!this.canAttach()||!this.carriesFiles(e)||(e.preventDefault(),e.stopPropagation(),this.dropActive=!0)}onDragLeave(e){e.currentTarget===e.target&&(this.dropActive=!1)}onDrop(e){this.carriesFiles(e)&&(e.preventDefault(),e.stopPropagation(),this.dropActive=!1,this.canAttach()&&this.chat.addFiles(e.dataTransfer.files))}onPaste(e){if(!this.canAttach())return;let i=Array.from(e.clipboardData?.items||[]).filter(a=>a.kind==="file"&&a.type?.startsWith("image/")).map(a=>a.getAsFile()).filter(a=>!!a);i.length&&(e.preventDefault(),this.chat.addFiles(i))}canAttach(){return this.chat.enabled===!0&&this.chat.imagesEnabled&&!this.chat.composerDisabled}carriesFiles(e){return Array.from(e.dataTransfer?.types||[]).includes("Files")}openPreview(e,n){e&&(this.preview={src:e,caption:n},this.previewOverlayRef||(this.previewOverlayRef=this.overlay.create({hasBackdrop:!0,backdropClass:"agent-preview-backdrop",panelClass:"agent-preview-pane",width:"100vw",height:"100vh",positionStrategy:this.overlay.position().global().top("0").left("0"),scrollStrategy:this.overlay.scrollStrategies.block()}),this.previewOverlayRef.backdropClick().pipe(T(this._unsubscribeAll)).subscribe(()=>this.closePreview()),this.previewOverlayRef.keydownEvents().pipe(T(this._unsubscribeAll)).subscribe(i=>{i.key==="Escape"&&this.closePreview()})),this.previewOverlayRef.hasAttached()||this.previewOverlayRef.attach(new Da(this.previewPortal,this.viewContainerRef)))}closePreview(){this.preview=null,this.previewOverlayRef?.hasAttached()&&this.previewOverlayRef.detach()}chipSrc(e){return e?.objectUrl||this.chat.thumbnailFor(e?.attachmentId)}attachmentCaption(e){let n=(e?.mediaType||"").replace("image/","").toUpperCase(),i=e?.width&&e?.height?`${e.width} \xD7 ${e.height}`:"";
33return[n,i].filter(Boolean).join(" \xB7 ")||"Attached image"}pretty(e){if(!e)return"";try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}toolKey(e,n,i){return i?.stepID!=null?String(i.stepID):`${e}-${n}`}toggleTool(e){this.expandedTools[e]=!this.expandedTools[e]}toolStateClass(e){switch(e){case"Succeeded":return"ok";case"Failed":case"Rejected":return"err";case"OutcomeUnknown":return"warn";case"Cancelled":case"NotExecuted":return"muted";default:return"busy"}}actionStateLabel(e){switch(e){case"done":return"Done";case"running":return"Working";case"failed":return"Could not finish";default:return"Not run"}}actionChipClass(e){switch(e){case"done":return"rpui-chip--ok";case"running":return"rpui-chip--info";case"failed":return"rpui-chip--danger";default:return"rpui-chip--neutral"}}actionIcon(e){switch(e){case"navigate":return"open_in_browser";case"open_tab":return"tab";case"click":return"touch_app";case"fill":return"edit_note";default:return"bolt"}}chainGroups(e){let n=[];for(let i of e||[]){let a=i?.group||"",c=n.find(u=>u.key===a);
33c||(c={key:a,title:a.replace(/^div-/,""),steps:[]},n.push(c)),c.steps.push(i)}return n}stepStateLabel(e){switch(e){case"succeeded":return"Succeeded";case"failed":return"Failed";case"skipped":return"Skipped";case"outcomeUnknown":return"Outcome unknown";default:return"Not run"}}stepChipClass(e){switch(e){case"succeeded":return"rpui-chip--ok";case"failed":return"rpui-chip--danger";case"outcomeUnknown":return"rpui-chip--warn";default:return"rpui-chip--neutral"}}chainResultTitle(e){let n=e?.steps||[];return n.length?n.every(i=>i.state==="succeeded")?"All steps done":"Some steps did not finish":"No steps ran"}showOptions(e,n){return e?.role==="assistant"&&e?.options?.length>0&&n===this.chat.transcript.length-1}contextChip(e){return e?.type?`from ${e.type.charAt(0).toUpperCase()+e.type.slice(1)}: ${e.label||e.key}`:""}entityChip(e){return e?.type?`Open ${e.label||e.type+" "+e.key}`:""}scrollToBottom(){setTimeout(()=>{let e=this.transcriptEl?.nativeElement;e&&(e.scrollTop=e.scrollHeight)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=z({type:t,selectors:[["agent-panel"]],viewQuery:function(n,i){if(n&1&&(ve(hf,5),ve(gf,5),ve(_f,5),ve(bf,5),ve(Cf,5),ve(vf,5,vt),ve(xf,5,vt),ve(yf,5),ve(wf,5),ve(Sf,5,mi),ve(kf,5)),n&2){let a;xe(a=ye())&&(i.previewPortal=a.first),xe(a=ye())&&(i.fileInput=a.first),xe(a=ye())&&(i.transcriptEl=a.first),xe(a=ye())&&(i.composerEl=a.first),xe(a=ye())&&(i.voiceMirror=a.first),xe(a=ye())&&(i.talkBtn=a.first),xe(a=ye())&&(i.engineBtn=a.first),xe(a=ye())&&(i.orbBtn=a.first),xe(a=ye())&&(i.confirmCard=a.first),xe(a=ye())&&(i.micTrigger=a.first),xe(a=ye())&&(i.micMenu=a.first)}},hostBindings:function(n,i){n&1&&x("click",function(){return i.onDocumentClick()},oa)},decls:25,vars:12,consts:[["previewPortal",""],["transcriptEl",""],["micMenu","matMenu"],["micPickButton",""],["micMeter",""],["confirmCard",""],["orbBtn",""],["composerEl",""],["fileInput",""],["voiceMirror",""],["talkBtn",""],["engineBtn",""],["micTrigger",""],[1,"agent-panel",3,"keydown.escape"],[1,"agent-panel-header"],[1,"brand-icon"],[1,"title-block"],[1,"caption",3,"matTooltip"],[1,"spacer"],["mat-icon-button","","matTooltip","Under the hood \u2014 tool calls, model calls, tokens and timings","aria-label","Under the hood"],["mat-icon-button","","aria-label","New conversation",3,"disabled","matTooltip"],["mat-icon-button","",3,"click","matTooltip"],["mat-icon-button","","matTooltip","Close","aria-label","Close the RP AI Agent",3,"click"],[1,"agent-panel-body",3,"dragover","dragleave","drop"],[1,"drop-overlay"],[1,"loading-wrap"],[1,"empty-state"],["mat-icon-button","","matTooltip","Under the hood \u2014 tool calls, model calls, tokens and timings","aria-label","Under the hood",3,"click"],["mat-icon-button","","aria-label","New conversation",3,"click","disabled","matTooltip"],["diameter","36"],["mat-flat-button","","color","primary",3,"click"],[1,"banner","attention"],[1,"transcript"],[1,"message-row",3,"me","assistant"],[1,"message-row","me","live-row"],["aria-label","What the assistant did on the page","aria-live","polite",1,"action-rows"],["aria-labelledby","agent-chain-result-title",1,"chain-result"],[1,"thinking","working"],[1,"thinking"],["tabindex","-1","aria-labelledby","agent-chain-card-title",1,"confirm-card","chain-card"],["tabindex","-1",1,"confirm-card"],[1,"banner","info"],[1,"attachment-chips"],[1,"voice-line",3,"active"],[1,"conversation-bar",3,"active"],[1,"composer"],["role","alert",1,"voice-error","conv-error"],["role","alert",1,"voice-error","conv-error","engine-error"],["role","alert",1,"voice-error"],["role","alert",1,"voice-noinput"],["aria-label","Microphone","xPosition","before","yPosition","above",1,"agent-mic-menu"],["aria-hidden","true",1,"mic-menu-title"],[1,"insights-overlay"],[1,"message-row"],["matTooltip","The page this message was sent from \u2014 the agent's default referent for 'this event'",1,"context-chip"],[1,"attachment-strip"],[1,"bubble","markdown",3,"innerHTML"],[1,"bubble"],["role","group","aria-label","Choose an answer",1,"choice-chips"],[1,"msg-actions",3,"armed"],[1,"tool-calls"],["alt","Attached image","matTooltip","Open full size",1,"attachment-thumb",3,"src"],["matTooltip","This image is no longer available",1,"attachment-thumb","missing"],["alt","Attached image","matTooltip","Open full size",1,"attachment-thumb",3,"click","
33src"],["type","button","mat-stroked-button","",1,"choice-chip",3,"disabled"],["type","button","mat-stroked-button","",1,"choice-chip",3,"click","disabled"],[1,"msg-actions"],[1,"arm-question"],["mat-flat-button","","color","primary",1,"arm-go",3,"click","disabled"],["mat-button","",1,"arm-cancel",3,"click"],["mat-icon-button","",1,"msg-action",3,"click","matTooltip"],["mat-icon-button","",1,"msg-action",3,"disabled","matTooltip"],["mat-icon-button","",1,"msg-action",3,"click","disabled","matTooltip"],[1,"tool-call"],[1,"tool-call-head"],[1,"op"],[1,"state-chip",3,"ngClass"],[1,"rw-tag"],["mat-icon-button","",1,"expand-btn",3,"click","matTooltip"],["mat-stroked-button","",1,"entity-chip"],[1,"tool-call-detail"],["mat-stroked-button","",1,"entity-chip",3,"click"],[1,"empty-transcript"],[1,"bubble","live-bubble"],[1,"action-row",3,"failed"],[1,"action-row"],["aria-hidden","true",1,"action-row-icon"],[1,"action-row-text"],[1,"action-row-label"],[1,"action-row-detail"],[1,"rpui-chip",3,"ngClass"],["id","agent-chain-result-title",1,"chain-title"],[1,"chain-empty"],[1,"chain-group"],[1,"chain-steps","result"],[1,"chain-step"],[1,"chain-step-text"],[1,"chain-step-summary"],[1,"pulse-dot"],[1,"shimmer"],[1,"elapsed"],["diameter","18"],[1,"confirm-head"],["aria-hidden","true"],["id","agent-chain-card-title",1,"chain-title"],[1,"banner","reconfirm"],[1,"summary"],[1,"chain-note"],[1,"expiry"],["role","status",1,"chain-running"],[1,"confirm-actions"],["mat-flat-button","","color","primary",3,"click","disabled"],["mat-stroked-button","",3,"click","disabled"],[1,"chain-steps"],[1,"op-line"],[1,"method"],[1,"banner","warn"],[1,"attachment-chip",3,"ngClass"],["matTooltip","Open full size \u2014 check it is the right file",3,"src","alt"],[1,"chip-placeholder"],[1,"chip-overlay"],[1,"chip-overlay",3,"matTooltip"],["mat-icon-button","","matTooltip","Remove this image","aria-label","Remove this image",1,"chip-remove",3,"click"],["matTooltip","Open full size \u2014 check it is the right file",3,"click","src","alt"],[1,"voice-line"],["role","status","aria-live","polite",1,"voice-status"],["aria-hidden","true",1,"rec-dot"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"conversation-bar"],["type","button","aria-describedby","agent-conv-caption",1,"conv-orb",3,"ngClass","muted"],[1,"conv-text"],["id","agent-conv-caption","role","status","aria-live","polite",1,"conv-caption"],["type","button","aria-describedby","agent-conv-caption",1,"conv-orb",3,"click","ngClass"],["aria-hidden","true",1,"orb-disc"],["diameter","28"],["type","button","mat-icon-button","","aria-label","Mute",1,"conv-btn","conv-mute",3,"click","matTooltip"],["type","button","mat-icon-button","","aria-label","End","matTooltip","End the conversation",1,"conv-btn","conv-end",3,"click"],[1,"composer-box"],["aria-hidden","true",1,"voice-mirror"],["rows","2",3,"ngModelChange","keydown.enter","paste","input","ngModel","disabled","readonly","placeholder"],["type","button","mat-icon-button","","aria-label","Talk with the agent","matTooltip","Talk with the agent",1,"talk-btn",3,"disabled"],["type","button","mat-icon-button","","aria-label","Talk with the ElevenLabs engine","matTooltip","Talk (ElevenLabs engine)",1,"talk-btn","engine-btn",3,"disabled"],["type","button","mat-icon-button","",1,"voice-btn",3,"listening","aria-disabled","disabled","matTooltip"],["mat-stroked-button","","color","warn","matTooltip","Abort the in-flight turn \u2014 the server treats it as a cancellation",1,"send-btn"],["mat-flat-button","","color","primary",1,"send-btn",3,"disabled","matTooltip"],["type","file","multiple","",1,"hidden-file-input",3,"change","accept"],["mat-icon-button","",1,"attach-btn",3,"click","disabled","matTooltip"],[1,"voice-pending"],["type","button","mat-icon-button","","aria-label","Talk with the agent","matTooltip","Talk with the agent",1,"talk-btn",3,"click","disabled"],["type","button","mat-icon-button","","aria-label","Talk with the ElevenLabs engine","matTooltip","Talk (ElevenLabs engine)",1,"talk-btn","engine-btn",3,"click","disabled"],["type","button","mat-icon-button","",1,"voice-btn",3,"click","aria-disabled","disabled","matTooltip"],["diameter","18","aria-hidden","true"],["mat-stroked-button","","color","warn","matTooltip","Abort the in-flight turn \u2014 the server treats it as a cancellation",1,"send-btn",3,"click"],["mat-flat-button","","color","primary",1,"send-btn",3,"click","disabled","matTooltip"],[1,"voice-noinput-text"],["type","button","mat-stroked-button","",1,"mic-choose-btn",3,"click"],["mat-menu-item","","type","button",1,"mic-allow",3,"click"],["role","alert",1,"mic-menu-note"],["mat-menu-item","","type","button","role","menuitemradio",1,"mic-option"],["mat-menu-item","","type","button","role","menuitemradio",1,"mic-option",3,"click"],["type","button","mat-icon-button","","aria-label","Choose microphone","matTooltip","Choose microphone",1,"mic-pick",3,"menuOpened","ngClass","matMenuTriggerFor"],["role","meter","aria-label","Microphone level","aria-valuemin","0","aria-valuemax","100",1,"mic-meter"],[1,"mic-meter-fill"],[1,"insights-head"],["mat-stroked-button","",1,"copy-json",3,"click","disabled"],["mat-icon-button","","matTooltip","Close","aria-label","Close under the hood",3,"click"],[1,"insights-body"],["diameter","32"],[1,"summary-card"],[1,"summary-line"],["matTooltip","System prompt version"],["matTooltip","Catalog hash"],[1,"summary-meta"],[1,"summary-meta","fork-line"],[1,"totals"],[1,"total"],[1,"n"],[1,"l"],[1,"insight-entry",3,"me"],[1,"insight-entry"],[1,"insight-entry-head"],[1,"role"],[1,"when"],[1,"model-line"],[1,"insight-meta"],[1,"insight-text"],[1,"att"],[1,"ms-chip"],[1,"agent-image-preview"],[1,"agent-image-preview",3,"click"],[1,"preview-frame",3,"click"],[3,"src","alt"],[1,"preview-caption"],["mat-icon-button","","matTooltip","Close (Esc)",1,"preview-close",3,"click"]],template:function(n,i){if
33(n&1){let a=M();r(0,"div",13),x("keydown.escape",function(u){return y(a),w(i.onPanelEscape(u))}),r(1,"div",14)(2,"mat-icon",15),d(3,"smart_toy"),s(),r(4,"div",16)(5,"strong"),d(6,"RP AI Agent"),s(),m(7,Af,2,5,"span",17),s(),b(8,"span",18),m(9,Of,3,0,"button",19),m(10,If,3,2,"button",20),r(11,"button",21),x("click",function(){return y(a),w(i.toggleFullScreen())}),r(12,"mat-icon"),d(13),s()(),r(14,"button",22),x("click",function(){return y(a),w(i.close())}),r(15,"mat-icon"),d(16,"close"),s()()(),r(17,"div",23),x("dragover",function(u){return y(a),w(i.onDragOver(u))})("dragleave",function(u){return y(a),w(i.onDragLeave(u))})("drop",function(u){return y(a),w(i.onDrop(u))}),m(18,Rf,5,0,"div",24),m(19,Ff,2,0,"div",25)(20,Lf,11,0,"div",26)(21,Df,7,0,"div",26)(22,Nh,33,19),s()(),E(23,zh,1,1,"ng-template",null,0,ne)}n&2&&(U("full-screen",i.chat.fullScreen),l(7),f(i.chat.enabled===!0&&(i.chat.status==null?null:i.chat.status.audience)==="regply"?7:-1),l(2),f(i.chat.enabled===!0&&i.chat.insightsEnabled?9:-1),l(),f(i.chat.enabled===!0?10:-1),l(),g("matTooltip",i.chat.fullScreen?"Back to the side panel":"Full screen"),Xt("aria-label",i.chat.fullScreen?"Back to the side panel":"Full screen"),l(2),S(i.chat.fullScreen?"close_fullscreen":"open_in_full"),l(4),U("drop-active",i.dropActive),l(),f(i.dropActive?18:-1),l(),f(i.chat.statusLoading?19:i.chat.statusError?20:i.chat.enabled!==!0?21:22))},dependencies:[G,ae,pt,me,ci,Dt,Nt,pe,Le,Vt,_e,Be,Bt,zt,xi,vi,fi,Ga,Wa,mi,Cn],styles:[`:root{--rp-navy-900: #10243f;--rp-navy-800: #143b67;--rp-navy-700: #1a3668;--rp-navy-600: #244f7e;--rp-text: #122033;--rp-text-muted: #64798c;--rp-text-subtle: #667085;--rp-divider: #dce5ee;--rp-divider-soft: #e8edf3;--rp-border-control: #8792a5;--rp-surface: #ffffff;--rp-surface-tint: #f2f7fc;--rp-surface-head: #eef2f6;--rp-surface-sunken: #f7f9fc;--rp-ok-bg: #eaf6ea;--rp-ok-border: #7fb583;--rp-ok-fg: #2e7d32;--rp-warn-bg: #fff3e0;--rp-warn-border: #c9922f;--rp-warn-fg: #9a4a00;--rp-danger-bg: #ffebee;--rp-danger-border: #d97b7b;--rp-danger-fg: #c62828;--rp-info-bg: #eef2fb;--rp-info-border: #8fa6cf;--rp-info-fg: #244f7e;--rp-neutral-bg: #f1f3f6;--rp-neutral-border: #9aa4b2;--rp-neutral-fg: #5a6b7d;--rp-gold-bg: #fdf6e3;--rp-gold-ring: #d4a531;--rp-gold-fg: #6b4700;--rp-silver-bg: #f1f3f6;--rp-silver-ring: #9ba5b1;--rp-silver-fg: #48535f;--rp-bronze-bg: #f8ede6;--rp-bronze-ring: #c4855f;--rp-bronze-fg: #6e3b1d;--rp-focus-ring: #244f7e;--rp-radius-control: 6px;--rp-radius-card: 8px;--rp-radius-row: 10px;--rp-radius-panel: 16px;--rp-shadow-card: 0 1px 3px rgba(15, 31, 53, .05);--rp-shadow-panel: 0 1px 3px rgba(15, 31, 53, .04), 0 8px 32px rgba(15, 31, 53, .07)}@media screen and (min-width:960px){.agent-panel-host .fuse-sidebar-overlay{background-color:transparent;pointer-events:none}}.agent-panel-host.agent-panel-full-screen .fuse-sidebar-overlay{background-color:#0009;pointer-events:auto}.agent-panel-host fuse-sidebar.agent-panel-sidebar{width:420px;min-width:420px;max-width:420px;background:#fff;transition:transform .15s ease-in-out;overflow:hidden}.agent-panel-host fuse-sidebar.agent-panel-sidebar agent-panel{display:flex;flex:1 1 auto;min-height:0;width:100%}@media screen and (max-width:959px){.agent-panel-host fuse-sidebar.agent-panel-sidebar{width:92vw!important;min-width:0!important;max-width:92vw!important}}.agent-panel-host.agent-panel-full-screen fuse-sidebar.agent-panel-sidebar{width:95vw;min-width:95vw;max-width:95vw}.agent-panel{display:flex;flex-direction:column;height:100%;min-height:0;flex:1 1 auto;width:100%;min-width:0;background:#fff}.agent-panel .agent-panel-header{display:flex;align-items:center;gap:6px;padding:8px 6px 8px 14px;border-bottom:1px solid rgba(0,0,0,.1);flex:0 0 auto}.agent-panel .agent-panel-header .brand-icon{color:#3f51b5e6}.agent-panel .agent-panel-header .title-block{display:flex;flex-direction:column;line-height:1.2;min-width:0}.agent-panel .agent-panel-header .caption{font-size:11px;color:#0000008c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-panel .agent-panel-header .spacer{flex:1}.agent-panel .agent-panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:10px 12px 12px;overflow:hidden}.agent-panel.full-screen pre{max-height:420px}.agent-panel .loading-wrap{display:flex;justify-content:center;padding:48px 0}.agent-panel .empty-state{text-align:center;padding:48px 8px;color:#0000008c}.agent-panel .empty-state mat-icon{font-size:48px;width:48px;height:48px;opacity:.4}.agent-panel .empty-state h3{margin:12px 0 4px;font-size:15px;color:#000000b3}.agent-panel .empty-state p{margin:0 0 12px;font-size:13px}.agent-panel .banner{display:flex;align-items:flex-start;gap:8px;border-radius:6px;padding:8px 10px;margin-bottom:10px;font-size:13px;flex:0 0 auto}.agent-panel .banner mat-icon{flex:0 0 auto;font-size:20px;width:20px;height:20px}.agent-panel .banner.attention{background:#f443361a;border:1px solid rgba(244,67,54,.4)}.agent-panel .banner.reconfirm{background:#ff98001f;border:1px solid rgba(255,152,0,.5)}.agent-panel .banner.warn{background:#ff98001f;border:1px solid rgba(255,152,0,.4)}.agent-panel .banner.info{background:#2196f314;border:1px solid rgba(33,150,243,.3);color:#000000a6}.agent-panel .transcript{flex:1 1 auto;min-height:80px;overflow-y:auto;border:1px solid rgba(0,0,0,.1);border-radius:8px;padding:12px;margin-bottom:10px;background:#00000004}.agent-panel .transcript .empty-transcript{display:flex;flex-direction:column;align-items:center;gap:8px;padding:36px 12px;text-align:center;color:#667085;font-size:13px}.agent-panel .transcript .empty-transcript mat-icon{opacity:.4}.agent-panel .transcript .empty-transcript p{margin:0;max-width:460px}.agent-panel .transcript .message-row{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:14px}.agent-panel .transcript .message-row.me{align-items:flex-end}.agent-panel .transcript .message-row.me .bubble{background:#3f51b524}.agent-panel .transcript .message-row .bubble{max-width:100%;background:#0000000d;border-radius:10px;padding:8px 12px;font-size:14px;white-space:pre-wrap;word-break:break-word}.agent-panel .transcript .message-row .bubble.markdown{white-space:normal}.agent-panel .transcript .message-row .bubble.markdown>*:first-child{margin-top:0}.agent-panel .transcript .message-row .bubble.markdown>*:last-child{margin-bottom:0}.agent-panel .transcript .message-row .bubble.markdown p{margin:0 0 8px}.agent-panel .transcript .message-row .bubble.markdown h1,.agent-panel .transcript .message-row .bubble.markdown h2,.agent-panel .transcript .message-row .bubble.markdown h3,.agent-panel .transcript .message-row .bubble.markdown h4{margin:10px 0 4px;font-weight:600;line-height:1.3}.agent-panel .transcript .message-row .bubble.markdown h1{font-size:16px}.agent-panel .transcript .message-row .bubble.markdown h2{font-size:15px}.agent-panel .transcript .message-row .bubble.markdown h3,.agent-panel .transcript .message-row .bubble.markdown h4{font-size:14px}.agent-panel .transcript .message-row .bubble.markdown ul,.agent-panel .transcript .message-row .bubble.markdown ol{margin:0 0 8px;padding-left:20px}.agent-panel .transcript .message-row .bubble.markdown li{margin:2px 0}.agent-panel .transcript .message-row .bubble.markdown blockquote{margin:6px 0;padding:2px 0 2px 10px;border-left:3px solid rgba(0,0,0,.15);color:#000000a6}.agent-panel .transcript .message-row .bubble.markdown code{font-size:12.5px;background:#0000000f;padding:1px 4px;border-radius:4px;word-break:break-word}.agent-panel .transcript .message-row .bubble.markdown pre{margin:6px 0;max-height:320px;overflow-x:auto}.agent-panel .transcript .message-row .bubble.markdown pre code{background:none;padding:0}.agent-panel .transcript .message-row .bubble.markdown table{display:block;overflow-x:auto;border-collapse:collapse;margin:6px 0;font-size:13px}.agent-panel .transcript .message-row .bubble.markdown table th,.agent-panel .transcript .message-row .bubble.markdown table td{border:1px solid rgba(0,0,0,.12);padding:3px 8px;text-align:left}.agent-panel .transcript .message-row .bubble.markdown table th{background:#0000000a}.agent-panel .transcript .message-row .bubble.markdown hr{border:none;border-top:1px solid rgba(0,0,0,.12);margin:10px 0}.agent-panel .transcript .message-row .bubble.markdown a{text-decoration:underline}.agent-panel .transcript .message-row .msg-actions{display:flex;align-items:center;gap:2px;margin-top:1px;min-height:24px;opacity:0;transition:opacity .12s ease-in-out}.agent-panel .transcript .message-row:hover .msg-actions,.agent-panel .transcript .message-row .msg-actions.armed{opacity:1}@media(hover:none){.agent-panel .transcript .message-row .msg-actions{opacity:.55}}.agent-panel .transcript .message-row .msg-action{width:24px;height:24px;line-height:24px;padding:0;color:#00000073}.agent-panel .transcript .message-row .msg-action mat-icon{font-size:16px;width:16px;height:16px;line-height:16px}.agent-panel .transcript .message-row .msg-actions.armed{flex-wrap:wrap;gap:6px;padding:6px 8px;border:1px solid rgba(63,81,181,.35);border-radius:6px;background:#3f51b50f}.agent-panel .transcript .message-row .msg-actions.armed .arm-question{font-size:12px;color:#000000b3}.agent-panel .transcript .message-row .msg-actions.armed .arm-go,.agent-panel .transcript .message-row .msg-actions.armed .arm-cancel{line-height:26px;min-height:26px;padding:0 10px;font-size:12px}.agent-panel .transcript .context-chip{display:inline-flex;align-items:center;gap:4px;margin-bottom:3px;font-size:11px;color:#00000080}.agent-panel .transcript .context-chip mat-icon{font-size:13px;width:13px;height:13px;line-height:13px}.agent-panel .transcript .tool-calls{margin-top:6px;width:100%;display:flex;flex-direction:column;gap:4px}.agent-panel .transcript .tool-call{border:1px solid rgba(0,0,0,.1);border-radius:6px;background:#fff}.agent-panel .transcript .tool-call .tool-call-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:2px 4px 2px 10px}.agent-panel .transcript .tool-call .tool-call-head .op{font-size:12px;background:#0000000d;padding:1px 6px;border-radius:4px;word-break:break-all}.agent-panel .transcript .tool-call .tool-call-head .expand-btn{margin-left:auto;width:32px;height:32px;line-height:32px;padding:0}.agent-panel .transcript .tool-call .tool-call-head .expand-btn mat-icon{font-size:20px;width:20px;height:20px;line-height:20px}.agent-panel .transcript .tool-call .entity-chip{margin:0 10px 8px;font-size:12px;line-height:28px;min-height:28px;padding:0 10px}.agent-panel .transcript .tool-call .entity-chip mat-icon{font-size:16px;width:16px;height:16px;margin-right:4px;vertical-align:middle}.agent-panel .transcript .tool-call .tool-call-detail{padding:0 12px 10px}.agent-panel .transcript .thinking{display:flex;align-items:center;gap:8px;font-size:13px;color:#0000008c;padding:4px 0}.agent-panel .transcript .thinking.working{display:inline-flex;gap:10px;align-items:center;padding:6px 14px 6px 8px;border-radius:999px;background:#3f51b514;border:1px solid rgba(63,81,181,.22);min-height:34px}.agent-panel .transcript .thinking.working .pulse-dot{position:relative;flex:0 0 auto;width:10px;height:10px;border-radius:50%;background:#3f51b5f2;margin:0 9px;animation:agent-pulse 1.6s ease-in-out infinite}.agent-panel .transcript .thinking.working .pulse-dot:before,.agent-panel .transcript .thinking.working .pulse-dot:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid rgba(63,81,181,.6);animation:agent-ripple 1.6s ease-out infinite}.agent-panel .transcript .thinking.working .pulse-dot:after{animation-delay:.8s}.agent-panel .transcript .thinking.working .shimmer{font-size:14px;font-weight:600;background:linear-gradient(100deg,#3f51b580 20%,#3f51b5,#3f51b580 70%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:agent-shimmer 2.1s linear infinite}.agent-panel .transcript .thinking.working .elapsed{font-size:13px;font-variant-numeric:tabular-nums;color:#3f51b5bf}@media(prefers-reduced-motion:reduce){.agent-panel .transcript .thinking.working .pulse-dot{animation:none}.agent-panel .transcript .thinking.working .pulse-dot:before,.agent-panel .transcript .thinking.working .pulse-dot:after{display:none}.agent-panel .transcript .thinking.working .shimmer{animation:none;background:none;-webkit-background-clip:border-box;background-clip:border-box;color:#3f51b5f2}}
33.agent-panel .state-chip{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;white-space:nowrap;background:#00000014}.agent-panel .state-chip.ok{background:#4caf5026}.agent-panel .state-chip.err{background:#f4433626}.agent-panel .state-chip.warn{background:#ff98002e}.agent-panel .state-chip.muted{background:#00000014;color:#0000008c}.agent-panel .state-chip.busy{background:#2196f326}.agent-panel .rw-tag{display:inline-block;padding:2px 6px;border-radius:10px;font-size:10px;text-transform:uppercase;letter-spacing:.04em;background:#0000000f;color:#0000008c}.agent-panel .rw-tag.write{background:#ff98002e;color:#000000b3}.agent-panel h5{margin:8px 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#0000008c}.agent-panel pre{margin:0;max-height:220px;overflow:auto;background:#0000000b;border-radius:6px;padding:8px 10px;font-size:12px;line-height:1.45}.agent-panel .confirm-card{flex:0 1 auto;overflow-y:auto;max-height:55%;border:1px solid rgba(63,81,181,.35);border-radius:8px;box-shadow:0 2px 10px #00000029;background:#fff;padding:12px 14px;margin-bottom:10px}.agent-panel .confirm-card .confirm-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.agent-panel .confirm-card .summary{margin:0 0 8px;font-size:14px}.agent-panel .confirm-card .op-line{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}.agent-panel .confirm-card .op-line code{font-size:12px;background:#0000000d;padding:2px 6px;border-radius:4px;word-break:break-all}.agent-panel .confirm-card .op-line .method{background:#3f51b51a}.agent-panel .confirm-card .expiry{margin-top:8px;font-size:12px;color:#0000008c}.agent-panel .confirm-card .confirm-actions{display:flex;gap:8px;margin-top:12px}.agent-panel .agent-panel-body{position:relative}.agent-panel .drop-overlay{position:absolute;inset:8px;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:2px dashed rgba(63,81,181,.7);border-radius:10px;background:#3f51b514;color:#3f51b5f2;font-size:15px;font-weight:600;pointer-events:none}.agent-panel .drop-overlay mat-icon{font-size:34px;width:34px;height:34px}.agent-panel .attachment-strip{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px;justify-content:flex-end}.agent-panel .attachment-thumb{width:92px;height:68px;object-fit:cover;border-radius:6px;border:1px solid rgba(0,0,0,.15);cursor:pointer;background:#00000008;transition:width .15s ease,height .15s ease}.agent-panel .attachment-thumb.missing{display:flex;align-items:center;justify-content:center;color:#00000059;cursor:default}.agent-panel .attachment-chips{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 4px;flex:0 0 auto}.agent-panel .attachment-chip{position:relative;width:76px;height:58px;border-radius:6px;overflow:hidden;border:1px solid rgba(0,0,0,.15)}.agent-panel .attachment-chip img{width:100%;height:100%;object-fit:cover;display:block;cursor:pointer}.agent-panel .attachment-chip.failed{border-color:#f44336cc}.agent-panel .attachment-chip .chip-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#0000000d;color:#0000004d}.agent-panel .attachment-chip .chip-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#ffffffb8}.agent-panel .attachment-chip .chip-overlay mat-icon{color:#f44336}.agent-panel .attachment-chip .chip-remove{position:absolute;top:-6px;right:-6px;width:26px;height:26px;line-height:26px;background:#fffffff2;border:1px solid rgba(0,0,0,.15)}.agent-panel .attachment-chip .chip-remove mat-icon{font-size:15px;width:15px;height:15px;line-height:15px}.agent-panel .hidden-file-input{display:none}.agent-panel .composer .attach-btn{flex:0 0 auto;margin-bottom:2px}.agent-panel .composer{display:flex;align-items:flex-end;gap:8px;flex:0 0 auto}.agent-panel .composer textarea{flex:1;min-width:0;resize:none;transition:none;overflow-y:hidden;border:1px solid rgba(0,0,0,.25);border-radius:6px;padding:8px 10px;font-size:14px;font-family:inherit;min-height:44px}.agent-panel .composer textarea:disabled{background:#0000000a;color:#00000073}.agent-panel .composer .send-btn{flex:0 0 auto}@keyframes agent-pulse{0%,to{opacity:.55;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}@keyframes agent-ripple{0%{transform:scale(1);opacity:.7}80%{opacity:0}
33to{transform:scale(2.9);opacity:0}}@keyframes agent-shimmer{0%{background-position:140% 0}to{background-position:-40% 0}}.agent-panel .insights-overlay{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;background:#fff}.agent-panel .insights-overlay .insights-head{display:flex;align-items:center;gap:8px;padding:8px 6px 8px 12px;border-bottom:1px solid rgba(0,0,0,.1);flex:0 0 auto}.agent-panel .insights-overlay .insights-head .spacer{flex:1}.agent-panel .insights-overlay .insights-head .copy-json{line-height:30px;min-height:30px;padding:0 10px;font-size:12px}.agent-panel .insights-overlay .insights-head .copy-json mat-icon{font-size:16px;width:16px;height:16px;margin-right:4px;vertical-align:middle}.agent-panel .insights-overlay .insights-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:12px}.agent-panel .insights-overlay .summary-card{border:1px solid rgba(0,0,0,.1);border-radius:8px;padding:10px 12px;margin-bottom:12px;background:#00000004}.agent-panel .insights-overlay .summary-card .summary-line{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}.agent-panel .insights-overlay .summary-card .summary-line code{font-size:12px;background:#3f51b51a;padding:1px 6px;border-radius:4px;word-break:break-all}.agent-panel .insights-overlay .summary-card .summary-meta{font-size:11px;color:#0000008c;word-break:break-word}.agent-panel .insights-overlay .summary-card .fork-line{display:flex;align-items:center;gap:4px;margin-top:3px}.agent-panel .insights-overlay .summary-card .fork-line mat-icon{font-size:13px;width:13px;height:13px;line-height:13px}.agent-panel .insights-overlay .summary-card .totals{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.agent-panel .insights-overlay .summary-card .total{display:flex;flex-direction:column;min-width:72px;padding:5px 8px;border-radius:6px;background:#fff;border:1px solid rgba(0,0,0,.08)}.agent-panel .insights-overlay .summary-card .total .n{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.agent-panel .insights-overlay .summary-card .total .l{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#00000080}.agent-panel .insights-overlay .insight-entry{border-left:3px solid rgba(0,0,0,.1);padding:0 0 0 8px;margin-bottom:12px}.agent-panel .insights-overlay .insight-entry.me{border-left-color:#3f51b580}.agent-panel .insights-overlay .insight-entry .insight-entry-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;font-size:11px;color:#0000008c}.agent-panel .insights-overlay .insight-entry .role{text-transform:uppercase;letter-spacing:.04em;font-weight:600}.agent-panel .insights-overlay .insight-entry .model-line{font-variant-numeric:tabular-nums;color:#3f51b5f2}.agent-panel .insights-overlay .insight-entry .insight-meta{font-size:11px;color:#00000080;margin-top:2px;word-break:break-all}.agent-panel .insights-overlay .insight-entry .insight-meta .att{margin-right:8px}.agent-panel .insights-overlay .insight-entry .insight-text{font-size:13px;white-space:pre-wrap;word-break:break-word;margin:3px 0 4px}.agent-panel .insights-overlay .insight-entry .tool-call{margin-top:4px}.agent-panel .insights-overlay .insight-entry .ms-chip{font-size:10px;font-variant-numeric:tabular-nums;padding:2px 6px;border-radius:10px;background:#0000000f;color:#0009}.agent-preview-backdrop{background:#000000b8}.agent-image-preview{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px}.agent-image-preview .preview-frame{margin:0;display:flex;flex-direction:column;max-width:92vw;max-height:90vh;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 12px 48px #00000073}.agent-image-preview img{display:block;max-width:100%;max-height:calc(90vh - 52px);width:auto;height:auto;object-fit:contain;background:#0000000a}.agent-image-preview figcaption{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 14px;border-top:1px solid rgba(0,0,0,.1);font-size:13px;color:#000000b3}.agent-image-preview .preview-caption{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
33.agent-panel .choice-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.agent-panel .choice-chips .choice-chip.mat-mdc-outlined-button{--mat-button-outlined-outline-color: #244f7e;min-height:24px;height:auto;padding:4px 12px;border-radius:999px;color:#1a3668;white-space:normal;text-align:left;line-height:1.35}.agent-panel .action-rows{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:4px}.agent-panel .action-row{display:flex;align-items:flex-start;gap:8px;padding:8px 12px;border:1px solid #dce5ee;border-radius:6px;background:#f7f9fc;color:#122033;font-size:13px}.agent-panel .action-row.failed{border-color:#d97b7b}.agent-panel .action-row .action-row-icon{flex:0 0 auto;font-size:18px;width:18px;height:18px;color:#244f7e}.agent-panel .action-row .action-row-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;overflow-wrap:anywhere}.agent-panel .action-row .action-row-detail{font-size:12px;color:#64798c}.agent-panel .action-row .rpui-chip{flex:0 0 auto}.agent-panel .chain-title{margin:0;font-size:16px;font-weight:700;color:#10243f}.agent-panel .chain-card{border-color:#244f7e}.agent-panel .chain-group{margin:12px 0 4px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#244f7e}.agent-panel .chain-steps{margin:0;padding-left:24px;font-size:13px;line-height:1.5;color:#122033}.agent-panel .chain-steps.result{list-style:none;padding-left:0;display:flex;flex-direction:column;gap:4px}.agent-panel .chain-step{overflow-wrap:anywhere}.agent-panel .chain-steps.result .chain-step{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid #e8edf3}.agent-panel .chain-steps.result .chain-step .chain-step-text{display:flex;flex-direction:column;min-width:0}.agent-panel .chain-steps.result .chain-step .chain-step-summary{font-size:12px;color:#64798c}.agent-panel .chain-steps.result .chain-step .rpui-chip{flex:0 0 auto}.agent-panel .chain-note,.agent-panel .chain-empty,.agent-panel .chain-running{margin:12px 0 0;font-size:12px;color:#64798c}.agent-panel .chain-running{color:#244f7e}.agent-panel .chain-result{margin:8px 0;padding:12px 16px;border:1px solid #dce5ee;border-radius:8px;background:#fff}.agent-panel .choice-chip:focus-visible,.agent-panel .chain-card button:focus-visible{outline:2px solid #244f7e;outline-offset:2px}.agent-panel .voice-line{display:flex;align-items:center;gap:12px}.agent-panel .voice-line.active{margin-bottom:8px}.agent-panel .voice-status{flex:1 1 auto;min-width:0;margin:0;font-size:13px;color:#122033;display:flex;align-items:center;gap:8px}.agent-panel .voice-status .rec-dot{flex:0 0 auto;width:10px;height:10px;border-radius:999px;background:#c62828;animation:agent-pulse 1.4s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.agent-panel .voice-status .rec-dot{animation:none}}.agent-panel .composer .composer-box{flex:1;min-width:0;display:flex;position:relative}.agent-panel .composer .composer-box textarea{position:relative}.agent-panel .composer .composer-box .voice-mirror{position:absolute;inset:0;box-sizing:border-box;border:1px solid transparent;border-radius:6px;padding:8px 10px;font-family:inherit;font-size:14px;font-weight:400;font-style:normal;line-height:normal;letter-spacing:normal;word-spacing:normal;white-space:pre-wrap;overflow-wrap:break-word;overflow:hidden;color:#122033;background:#fff}.agent-panel .composer .composer-box .voice-mirror .voice-pending{color:#64798c}.agent-panel .composer .composer-box.voice-live textarea{background:transparent;color:transparent;caret-color:transparent}@media(forced-colors:active){.agent-panel .composer .composer-box .voice-mirror{display:none}}.agent-panel .composer .voice-btn.mat-mdc-icon-button,.agent-panel .composer .talk-btn.mat-mdc-icon-button,.agent-panel .composer .mic-pick-btn.mat-mdc-icon-button{--mat-icon-button-state-layer-size: 40px;flex:0 0 auto;box-sizing:border-box;width:40px;height:40px;padding:7px;margin-bottom:2px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #8792a5;border-radius:999px;color:#244f7e}.agent-panel .composer .voice-btn.mat-mdc-icon-button.listening,.agent-panel .composer .talk-btn.mat-mdc-icon-button.listening,.agent-panel .composer .mic-pick-btn.mat-mdc-icon-button.listening{border-color:#c62828;background:#ffebee;color:#c62828}.agent-panel .composer .voice-btn.mat-mdc-icon-button[aria-disabled=true],.agent-panel .composer .talk-btn.mat-mdc-icon-button[aria-disabled=true],.agent-panel .composer .mic-pick-btn.mat-mdc-icon-button[aria-disabled=true]{curs
33or:progress}.agent-panel .composer .voice-btn.mat-mdc-icon-button:focus-visible,.agent-panel .composer .talk-btn.mat-mdc-icon-button:focus-visible,.agent-panel .composer .mic-pick-btn.mat-mdc-icon-button:focus-visible{outline:2px solid #244f7e;outline-offset:2px}.agent-panel .composer .mic-pick-btn.mat-mdc-icon-button{--mat-icon-button-state-layer-size: 32px;width:32px;height:32px;padding:3px;margin-bottom:6px}.agent-panel .composer{flex-wrap:wrap;container-type:inline-size}@container (max-width: 359px){.agent-panel .composer .composer-box{order:-1;flex-basis:100%}.agent-panel .composer .send-btn{margin-left:auto}}@container (max-width: 407px){.agent-panel .composer:has(.engine-btn) .composer-box{order:-1;flex-basis:100%}.agent-panel .composer:has(.engine-btn) .send-btn{margin-left:auto}}.agent-panel .mic-meter{flex:0 0 auto;box-sizing:border-box;display:inline-block;width:56px;height:8px;border:1px solid #8792a5;border-radius:999px;background:#fff;overflow:hidden}.agent-panel .mic-meter .mic-meter-fill{display:block;height:100%;background:#244f7e;transition:none}@media(forced-colors:active){.agent-panel .mic-meter .mic-meter-fill{background:CanvasText}}.agent-panel .voice-noinput{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0;padding:8px 12px;border:1px solid #c9922f;border-radius:6px;background:#fff3e0;color:#9a4a00;font-size:13px}.agent-panel .voice-noinput mat-icon{flex:0 0 auto;font-size:18px;width:18px;height:18px}.agent-panel .voice-noinput .voice-noinput-text{flex:1 1 200px;min-width:0}.agent-panel .voice-noinput .mic-choose-btn{flex:0 0 auto;margin-left:auto;--mat-button-outlined-outline-color: #9a4a00;--mat-button-outlined-label-text-color: #9a4a00;background:#fff}.agent-panel .voice-error{display:flex;align-items:flex-start;gap:8px;margin:8px 0 0;font-size:13px;color:#c62828}.agent-panel .voice-error mat-icon{flex:0 0 auto;font-size:18px;width:18px;height:18px}.agent-panel .conversation-bar.active{display:flex;align-items:center;gap:8px;padding:8px 0}.agent-panel .conv-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}.agent-panel .conversation-bar{container-type:inline-size}.agent-panel .conversation-bar.active{flex-wrap:wrap}@container (max-width: 359px){.agent-panel .conversation-bar .conv-text{order:1;flex-basis:100%}}.agent-panel .conv-caption{margin:0;font-size:14px;font-weight:600;color:#122033;overflow-wrap:break-word}.agent-panel .conv-orb{flex:0 0 auto;box-sizing:border-box;width:64px;height:64px;padding:0;border:0;border-radius:999px;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:default}.agent-panel .conv-orb.speaking{cursor:pointer}.agent-panel .conv-orb:focus-visible{outline:2px solid #244f7e;outline-offset:2px}.agent-panel .conv-orb .orb-disc{box-sizing:border-box;width:56px;height:56px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#244f7e;color:#fff;border:3px solid #244f7e;transition:transform .08s linear}.agent-panel .conv-orb .orb-disc mat-icon{font-size:28px;width:28px;height:28px}.agent-panel .conv-orb.connecting .orb-disc,.agent-panel .conv-orb.thinking .orb-disc{background:#f2f7fc;color:#244f7e}.agent-panel .conv-orb.listening.muted .orb-disc,.agent-panel .conv-orb.card-waiting .orb-disc{animation:none;background:#f1f3f6;border-color:#9aa4b2;color:#5a6b7d}.agent-panel .conv-orb.thinking .orb-disc{border-color:#dce5ee;border-top-color:#244f7e;animation:agent-orb-spin 1.1s linear infinite}.agent-panel .conv-orb.thinking .orb-disc mat-icon{animation:agent-orb-spin 1.1s linear infinite reverse}@media(forced-colors:active){.agent-panel .conv-orb .orb-disc{border-color:CanvasText}}@media(prefers-reduced-motion:reduce){.agent-panel .conv-orb .orb-disc,.agent-panel .conv-orb .orb-disc mat-icon{animation:none!important;transform:none!important;transition:none}}.agent-panel .conversation-bar .conv-btn.mat-mdc-icon-button{--mat-icon-button-state-layer-size: 40px;flex:0 0 auto;box-sizing:border-box;width:40px;height:40px;padding:7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #8792a5;border-radius:999px;color:#244f7e}.agent-panel .conversation-bar .conv-btn.mat-mdc-icon-button.pressed{background:#f2f7fc;border-color:#244f7e}.agent-panel .conversation-bar .conv-btn.mat-mdc-icon-button.conv-end{border-color:#c62828;color:#c62828}.agent-panel .conversation-bar .conv-btn.mat-mdc-icon-button:focus-visible{outline:2px solid #244f7e;outline-offset:2px}.agent-panel .transcript .message-row.me .bubble.live-bubble{background:#fff;border:1px dashed #8792a5;color:#64798c}.agent-panel .confirm-card:focus{outline:2px solid #244f7e;outline-offset:2px}@keyframes agent-orb-spin{to{transform:rotate(360deg)}}.agent-mic-menu.mat-mdc-menu-panel{max-width:min(320px,92vw)}.agent-mic-menu.mat-mdc-menu-panel .mic-menu-title{padding:8px 16px 4px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#64798c}.agent-mic-menu.mat-mdc-menu-panel .mat-mdc-menu-item .mat-mdc-menu-item-text{white-space:normal;overflow-wrap:anywhere}.agent-mic-menu.mat-mdc-menu-panel .mic-option mat-icon{color:#244f7e}.agent-mic-menu.mat-mdc-menu-panel .mic-option mat-icon.mic-unchecked{visibility:hidden}.agent-mic-menu.mat-mdc-menu-panel .mic-menu-note{margin:0;padding:8px 16px;font-size:13px;color:#c62828} 34`],encapsulation:2})}return t})();function Bh(t,o){if(t&1&&b(0,"rp-state",3),t&2){let e=p();
34g("inline",!0)("body",e.error())}}function Zs(t,o,e,n=ao){return!!t&&t.termsVersion!==n&&!e&&!o.startsWith("/pages/agreement/")}var jh="We couldn't save your acceptance. Please check your connection and try again.",el=(()=>{class t{dialogRef=R(pi);api=R(X);membership=R(Me);router=R(re);version=ao;agreed=J(!1);saving=J(!1);error=J("");accept(){this.saving.set(!0),this.error.set(""),this.api.post("Membership/acceptTerms",{version:this.version},!0).subscribe({next:e=>{let n={termsVersion:e?.termsVersion??this.version,termsAcceptedOn:e?.termsAcceptedOn};Object.assign(this.membership.currentUser,n);let i=JSON.parse(localStorage.getItem("person")??"null");i&&localStorage.setItem("person",JSON.stringify(ze(ze({},i),n))),this.dialogRef.close(!0)},error:e=>{let n=typeof e?.error=="string"?e.error:e?.error?.message;this.error.set(n||jh),this.saving.set(!1)}})}signOut(){this.dialogRef.close(!1),this.membership.logout(),this.router.navigateByUrl("/auth/logout")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=z({type:t,selectors:[["rp-terms-prompt"]],decls:20,vars:11,consts:[["title","Terms of Use","titleId","terms-prompt-title",3,"closable"],["target","_blank","rel","noopener",1,"rpui-focusable",3,"routerLink"],["required","",3,"change","checked"],["mode","error",3,"inline","body"],["role","status",1,"cdk-visually-hidden"],[1,"rpui-dialog-actions"],[1,"rpui-spacer"],["mat-stroked-button","","type","button",3,"click"],["mat-flat-button","","color","primary","type","button",3,"click","disabled"]],template:function(n,i){n&1&&(b(0,"rp-dialog-header",0),r(1,"mat-dialog-content")(2,"p"),d(3,"We've updated our Terms of Use. Please take a moment to review them and accept to continue."),s(),r(4,"p"),d(5),We(6,"date"),r(7,"a",1),d(8,"Read the Terms of Use (opens in a new tab)"),s()(),r(9,"mat-checkbox",2),x("change",function(c){return i.agreed.set(c.checked)}),d(10,"Yes, I have read and agree to the Terms of Use."),s(),m(11,Bh,1,2,"rp-state",3),r(12,"span",4),d(13),s()(),r(14,"mat-dialog-actions",5),b(15,"span",6),r(16,"button",7),x("click",function(){return i.signOut()}),d(17,"Sign out"),s(),r(18,"button",8),x("click",function(){return i.accept()}),d(19),s()()),n&2&&(g("closable",!1),l(5),Ne(" Last updated ",Ge(6,8,i.version,"MMMM d, y"),". "),l(2),g("routerLink","/pages/agreement/terms"),l(2),g("checked",i.agreed()),l(2),f(i.error()?11:-1),l(2),S(i.saving()?"Saving your acceptance":""),l(5),g("disabled",!i.agreed()||i.saving()),l(),Ne(" ",i.saving()?"Saving\u2026":"Accept and continue"," "))},dependencies:[Re,pe,Le,Sn,wn,yn,xn,vn,Xr,Jr,Cn],styles:["[_ngcontent-%COMP%]:root{--rp-navy-900: #10243f;--rp-navy-800: #143b67;--rp-navy-700: #1a3668;--rp-navy-600: #244f7e;--rp-text: #122033;--rp-text-muted: #64798c;--rp-text-subtle: #667085;--rp-divider: #dce5ee;--rp-divider-soft: #e8edf3;--rp-border-control: #8792a5;--rp-surface: #ffffff;--rp-surface-tint: #f2f7fc;--rp-surface-head: #eef2f6;--rp-surface-sunken: #f7f9fc;--rp-ok-bg: #eaf6ea;--rp-ok-border: #7fb583;--rp-ok-fg: #2e7d32;--rp-warn-bg: #fff3e0;--rp-warn-border: #c9922f;--rp-warn-fg: #9a4a00;--rp-danger-bg: #ffebee;--rp-danger-border: #d97b7b;--rp-danger-fg: #c62828;--rp-info-bg: #eef2fb;--rp-info-border: #8fa6cf;--rp-info-fg: #244f7e;--rp-neutral-bg: #f1f3f6;--rp-neutral-border: #9aa4b2;--rp-neutral-fg: #5a6b7d;--rp-gold-bg: #fdf6e3;--rp-gold-ring: #d4a531;--rp-gold-fg: #6b4700;--rp-silver-bg: #f1f3f6;--rp-silver-ring: #9ba5b1;--rp-silver-fg: #48535f;--rp-bronze-bg: #f8ede6;--rp-bronze-ring: #c4855f;--rp-bronze-fg: #6e3b1d;--rp-focus-ring: #244f7e;--rp-radius-control: 6px;--rp-radius-card: 8px;--rp-radius-row: 10px;--rp-radius-panel: 16px;--rp-shadow-card: 0 1px 3px rgba(15, 31, 53, .05);--rp-shadow-panel: 0 1px 3px rgba(15, 31, 53, .04), 0 8px 32px rgba(15, 31, 53, .07)}mat-dialog-content[_ngcontent-%COMP%]{max-height:72vh;overflow-x:hidden;color:#122033}p[_ngcontent-%COMP%]{margin:0 0 12px}a[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:44px;color:#1a3668;text-decoration:underline}mat-checkbox[_ngcontent-%COMP%]{display:block}rp-state[_ngcontent-%COMP%]{display:block;margin-top:12px}.rpui-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-height:44px}@media screen and (max-width:599px){.rpui-dialog-actions[_ngcontent-%COMP%] .rpui-spacer[_ngcontent-%COMP%]{display:none}.rpui-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-basis:100%;margin:0}}"]})}return t})();var tl="usasb-md-front-20261009-221849";var Uh=1200*1e3,nl=(()=>{class t{document;zone;currentBuild=tl;newVersion$=new un(null);timerId=null;visibilityHandler=null;started=!1;updateAvailable$=this.newVersion$.asObservable();constructor(e,n){this.document=e,this.zone=n}start(){this.started||(this.started=!0,this.zone.runOutsideAngular(()=>{this.check(!0),this.timerId=setInterval(()=>{this.document.visibilityState==="visible"&&this.check()},Uh),this.visibilityHandler=()=>{this.document.visibilityState==="visible"&&this.check()},this.document.addEventListener("visibilitychange",this.visibilityHandler)}))}ngOnDestroy(){this.timerId!=null&&clearInterval(this.timerId),this.visibilityHandler&&this.document.removeEventListener("visibilitychange",this.visibilityHandler)}reload=()=>window.location.reload();check(e=!1){return ee(this,null,function*(){try{let n=yield fetch(`/version.json?t=${Date.now()}`,{cache:"no-store"});if(!n.ok)return;let i=yield n.json();if(!i?.buildId||i.buildId===this.currentBuild)return;if(i.force||e&&this.firstReloadFor(i.buildId)){this.reload();return}this.zone.run(()=>this.newVersion$.next(i))}catch{}})}firstReloadFor(e){let n="rp.versionReloadFor",i=window.location.pathname;try{let a=null;try{a=JSON.parse(sessionStorage.getItem(n)||"null")}catch{a=null}return(!a||a.build!==e||!Array.isArray(a.paths))&&(a={build:e,paths:[]}),a.paths.indexOf(i)>-1||a.paths.length>=200?!1:(a.paths.push(i),sessionStorage.setItem(n,JSON.stringify(a)),!0)}catch{return!1}}static \u0275fac=function(n){return new(n||t)(be(Ot),be(gn))};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var il=(()=>{class t{_document;_router;splashScreenEl;constructor(e,n){this._document=e,this._router=n,this._init()}_init(){this.splashScreenEl=this._document.body.querySelector("#fuse-splash-screen"),this.splashScreenEl&&this._router.events.pipe(we(e=>e instanceof Ee),Et(1)).subscribe(()=>{setTimeout(()=>{this.hide()})})}show(){this.splashScreenEl&&(this.splashScreenEl.style.zIndex="99999",this.splashScreenEl.style.opacity="1")}
34hide(){if(!this.splashScreenEl)return;this.splashScreenEl.style.opacity="0";let e=()=>{this.splashScreenEl?.removeEventListener("transitionend",e),this.splashScreenEl?.remove(),this.splashScreenEl=null};this.splashScreenEl.addEventListener("transitionend",e,{once:!0}),setTimeout(e,500)}static \u0275fac=function(n){return new(n||t)(be(Ot),be(re))};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ol=(()=>{class t{zone;hooked=new WeakSet;mobileMql=window.matchMedia("(max-width: 959px)");constructor(e){this.zone=e}init(){this.zone.runOutsideAngular(()=>{this.scan(document.body),new MutationObserver(n=>{for(let i of n)i.addedNodes.forEach(a=>{a instanceof HTMLElement&&this.scan(a)})}).observe(document.body,{childList:!0,subtree:!0})})}scan(e){let n=[];e.matches?.(".mat-mdc-tab-header")&&n.push(e),e.querySelectorAll?.(".mat-mdc-tab-header").forEach(i=>n.push(i)),n.forEach(i=>this.hookHeader(i))}hookHeader(e){if(this.hooked.has(e))return;let n=e.querySelector(".mat-mdc-tab-label-container"),i=e.querySelector(".mat-mdc-tab-labels");if(!n||!i)return;this.hooked.add(e),e.querySelectorAll(".mat-mdc-tab-header-pagination").forEach(h=>{let _=h.classList.contains("mat-mdc-tab-header-pagination-before");h.addEventListener("click",v=>{if(!this.mobileMql.matches)return;v.stopImmediatePropagation();let k=n.clientWidth*.7*(_?-1:1);n.scrollBy({left:k,behavior:"smooth"})},{capture:!0})});let a=()=>{if(!this.mobileMql.matches)return;let h=n.scrollWidth-n.clientWidth,_=n.scrollLeft>1,v=n.scrollLeft<h-1,k=e.querySelector(".mat-mdc-tab-header-pagination-before"),N=e.querySelector(".mat-mdc-tab-header-pagination-after");k?.classList.toggle("mat-mdc-tab-header-pagination-disabled",!_),N?.classList.toggle("mat-mdc-tab-header-pagination-disabled",!v)};n.addEventListener("scroll",a,{passive:!0});let c=()=>{this.mobileMql.matches&&setTimeout(()=>{requestAnimationFrame(()=>{let h=i.querySelector(".mdc-tab--active");if(!h)return;let _=h.offsetLeft+h.offsetWidth/2-n.clientWidth/2;n.scrollTo({left:Math.max(0,_),behavior:"instant"}),a()})},100)};new MutationObserver(c).observe(i,{attributes:!0,attributeFilter:["class"],subtree:!0}),c()}static \u0275fac=function(n){return new(n||t)(be(gn))};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hh(t,o){t&1&&b(0,"vertical-layout-1")}function Wh(t,o){t&1&&b(0,"vertical-layout-2")}function Gh(t,o){t&1&&b(0,"vertical-layout-3")}function Qh(t,o){t&1&&b(0,"horizontal-layout-1")}function Yh(t,o){t&1&&(r(0,"fuse-sidebar",0),b(1,"fuse-theme-options"),s()),t&2&&g("invisibleOverlay",!0)}function Xh(t,o){if(t&1){let e=M();r(0,"div",8)(1,"fuse-sidebar",9),x("openedChanged",function(i){y(e);let a=p();return w(a.onAgentPanelOpenedChanged(i))}),b(2,"agent-panel"),s()()}if(t&2){let e=p();U("agent-panel-full-screen",e.agentChat.fullScreen)}}function Jh(t,o){t&1&&(r(0,"fuse-sidebar",2),b(1,"rp-shortcuts-panel"),s()),t&2&&g("invisibleOverlay",!0)}function Zh(t,o){t&1&&(r(0,"fuse-sidebar",3),b(1,"cms-upload-file",10),s())}function eg(t,o){t&1&&(r(0,"fuse-sidebar",4),b(1,"login-v2"),s())}function tg(t,o){t&1&&b(0,"register",11),t&2&&g("sidebar",!0)}function ng(t,o){if(t&1&&(r(0,"fuse-sidebar",5),m(1,tg,1,1,"register",11),s()),t&2){let e=p();l(),f(e.inMobileApp?-1:1)}}var al=(()=>{class t{document;_fuseConfigService;_fuseSidebarService;_platform;breakpointObserver;mediaMatcher;router;activatedRoute;metaService;dialog;_membershipService;api;notify;renderer;_detectDevice;_versionCheck;title;sanitizer;_help;_bottomSheet;_window;_fuseSplashScreenService;_matTabSwipe;agentChat;fuseConfig;navigation;isDirector=!1;isLoggedIn=!1;isMobile=!1;faFacebook=Tn;faInstagram=bi;faTwitter=Mn;_unsubscribeAll;inMobileApp=localStorage.getItem("mobileAppModeV2")=="true";adminSidebarsVisible=!1;loginRegisterSidebarsVisible=!1;agentPanelVisible=!1;messageIDs=[];fbURL;twtURL;lastAdUpdate=new Date;shareOnHidden=!1;constructor(e,n,i,a,c,u,h,_,v,k,N,V,A,F,te,ie,fe,Ce,he,Tt,Ye,Pe,Oe,bt){this.document=e,this._fuseConfigService=n,this._fuseSidebarService=i,this._platform=a,this.breakpointObserver=c,this.mediaMatcher=u,this.router=h,this.activatedRoute=_,this.metaService=v,this.dialog=k,this._membershipService=N,this.api=V,this.notify=A,this.renderer=F,this._detectDevice=te,this._versionCheck=ie,this.title=fe,this.sanitizer=Ce,this._help=he,this._bottomSheet=Tt,this._window=Ye,this._fuseSplashScreenService=Pe,this._matTabSwipe=Oe,this.agentChat=bt,this._unsubscribeAll=new O,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(T(this._unsubscribeAll)).subscribe(Mt=>{Mt.matches?this.isMobile=!0:this.isMobile=!1});let Ct=["cms-admin"];h.events.pipe(we(Mt=>Mt instanceof Ee)).pipe(T(this._unsubscribeAll)).subscribe(Mt=>{this.checkTermsPrompt(),setTimeout(()=>
34{this.shareOnHidden=!1;for(let dn=0;dn<Ct.length;dn++)if(window.location.href.indexOf(Ct[dn])>-1){this.shareOnHidden=!0;break}let ct=encodeURIComponent(this.title.getTitle()),cn=encodeURIComponent(window.location.href);this.fbURL=`https://www.facebook.com/sharer.php?s=100&p[title]=${ct}&p[url]=${cn}`,this.twtURL=`https://twitter.com/intent/tweet?text=${ct}&url=${cn}`},500)}),this._membershipService.userChanged?.pipe(T(this._unsubscribeAll)).subscribe(Mt=>{this.isDirector=this._membershipService.persona?.director,this.isLoggedIn=this._membershipService.isLoggedIn,this.loginRegisterSidebarsVisible=!this._membershipService.isLoggedIn,this.adminSidebarsVisible=this._membershipService.persona?.hq||this._membershipService.persona?.tinc||this._membershipService.persona?.siteAdmin||this._membershipService.persona?.hasCMSAccess,this.probeAgentAccess(this._membershipService.persona),this._membershipService.isLoggedIn&&this.loadChatbotScript(),this.checkTermsPrompt()})}termsPromptOpen=!1;checkTermsPrompt(){let e=localStorage.getItem("person0")!=null||localStorage.getItem("impersonateReturnURL")!=null,n=this._membershipService.isLoggedIn?this._membershipService.currentUser:null;this.termsPromptOpen||!Zs(n,this.router.url,e)||(this.termsPromptOpen=!0,this.dialog.open(el,{width:"480px",maxWidth:"94vw",disableClose:!0,closeOnNavigation:!1,autoFocus:"first-heading",ariaLabelledBy:"terms-prompt-title"}).afterClosed().subscribe(()=>this.termsPromptOpen=!1))}initPWA(){if($.pwaReady!==!0)return;"serviceWorker"in navigator&&navigator.serviceWorker.register("sw.js").catch(()=>{});let e=this.document.head,n=this.renderer.createElement("link");this.renderer.setAttribute(n,"rel","manifest"),this.renderer.setAttribute(n,"href","assets/pwa/manifest.webmanifest"),this.renderer.appendChild(e,n);let i=this.renderer.createElement("link");this.renderer.setAttribute(i,"rel","apple-touch-icon"),this.renderer.setAttribute(i,"href","assets/pwa/apple-touch-icon-180.png"),this.renderer.appendChild(e,i);let a=this.renderer.createElement("meta");this.renderer.setAttribute(a,"name","apple-mobile-web-app-capable"),this.renderer.setAttribute(a,"content","yes"),this.renderer.appendChild(e,a)}ngOnInit(){localStorage.getItem("mobileAppModeV2")!="true"&&window.location.href.indexOf("myas.registerplay")>-1&&(window.location.href=window.location.href.replace("myas.registerplay","myasrp")),this._matTabSwipe.init(),this.initPWA(),this._versionCheck.updateAvailable$.pipe(T(this._unsubscribeAll)).subscribe(n=>{n&&(this.messageIDs.indexOf("app-update")>-1||(this.messageIDs.push("app-update"),this.notify.openHelloBar(this.renderer,{_key:"app-update",message:'A new version is available. <a class="link" onclick="window.location.reload()" style="text-decoration:underline;cursor:pointer;font-weight:600;margin-left:8px">
34Refresh now</a>',color:"#000000",bgColor:"#84ffff"})))}),this._versionCheck.start();let e=JSON.parse(localStorage.getItem("person"))?.persona;this._membershipService.isLoggedIn&&this.loadChatbotScript(),this.loginRegisterSidebarsVisible=e==null,this.isLoggedIn=this._membershipService.isLoggedIn,this.isDirector=e?.director,this.adminSidebarsVisible=e?.hq||e?.tinc||e?.siteAdmin||e?.hasCMSAccess,this.agentChat.panelAccess.pipe(T(this._unsubscribeAll)).subscribe(n=>this.agentPanelVisible=n),this.probeAgentAccess(e),this._fuseConfigService.config.pipe(T(this._unsubscribeAll)).subscribe(n=>{this.fuseConfig=n,this.fuseConfig.bgMain&&document.getElementById("appBody")?.setAttribute("style","background-image: url("+this.fuseConfig?.bgMain+");background-repeat: no-repeat;background-size: cover;background-position-x: center;"),this.fuseConfig?.layout?.width==="boxed"?this.document.body.classList.add("boxed"):this.document.body.classList.remove("boxed"),this.fuseConfig?.layout?.pageheader?.transparentBG!=!0?this.document.body.classList.add("boxedWithShadow"):this.document.body.classList.remove("boxedWithShadow");for(let i=0;i<this.document.body.classList.length;i++){let a=this.document.body.classList[i];a.startsWith("theme-")&&this.document.body.classList.remove(a)}this.document.body.classList.add(this.fuseConfig.colorTheme)}),this.metaService.getTags(this.router,this.activatedRoute),this.api.get("Announcement",!1).pipe(T(this._unsubscribeAll)).subscribe({next:n=>{if(n?.length==0||window.location.hostname==="localhost")return;if(localStorage.getItem("mobileAppModeV2")!=null)n.forEach(a=>{this._platform.IOS?window.announcement.postMessage(a.messageTextOnly):window.announcement.postMessage(a.message)});else{let a=[];n?.forEach(c=>{a.push(Pa(c))}),this._help.announcementDisplay(a,this._bottomSheet)}},error:n=>{}})}chatbotScriptLoaded=!1;loadChatbotScript(){}eventFeedBack(){let e=/\/pages\/event\/(\d+)/;this.router.url.indexOf("/pages/event/detail/")>-1&&(e=/\/pages\/event\/detail\/(\d+)/);let n=this.router.url.match(e),i=null;if(n&&n[1])i=n[1];else{alert("An error has occured, please try again later");return}this.dialog.open(sr,{panelClass:"feedback-dialog",width:"500px",height:"auto",maxHeight:"90vh",data:{eventID:i}})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete(),this._membershipService.userChanged.unsubscribe()}probeAgentAccess(e){let n=null;try{n=JSON.parse(localStorage.getItem("person"))?.personID??null}catch{}this.agentChat.probeAccess(e,n)}onAgentPanelOpenedChanged(e){e?this.agentChat.ensureStatus():this.agentChat.fullScreen=!1}toggleSidebarOpen(e){let n=this._fuseSidebarService.getSidebar(e);n?n?.toggleOpen():console.error(`AppComponent.Sidebar with key '${e}' not found.`)}shareLink(e){var n=null;switch(e){case"facebook":n="https://www.facebook.com/sharer/sharer.php?u=";break;case"twitter":n="https://twitter.com/intent/tweet?url=";break}n!=null&&window.open(n+encodeURI(window.location.href))}recordEvent(e){gtag("event","shareOn",{event_category:"Share On",event_label:"Share On Click",value:e})}go2help(){this.router.navigate(["/pages/help"])}static \u0275fac=function(n){return new(n||t)(C(Ot),C(Z),C(je),C(Lt),C(ke),C(Na),C(re),C(Aa),C(Ti),C(Fe),C(Me),C(X),C(Te),C(Yt),C(nt),C(nl),C(li),C(ut),C(Wr),C(lr),C(Si),C(il),C(ol),C(gt))};static \u0275cmp=z({type:t,selectors:[["app-root"]],decls:15,vars:10,consts:[["name","themeOptionsPanel","position","right",1,"theme-options-sidebar","no-print",3,"invisibleOverlay"],[1,"agent-panel-host","no-print",3,"agent-panel-full-screen"],["name","shortcutsPanel","position","right",1,"shortcuts-panel","no-print",3,"invisibleOverlay"],["name","uploadFile","position","right",1,"uploadFile-panel","no-print"],["name","loginPanel","position","right",1,"login-panel","no-print"],["name","registerPanel","position","right",1,"register-panel","no-print"],[2,"display","none"],["id","eventFeedbackButton","data-html2canvas-ignore","",1,"no-print",3,"click"],[1,"agent-panel-host","no-print"],["name","agentPanel","position","right",1,"agent-panel-sidebar","no-print",3,"openedChanged"],["sidebar","true"],[3,"sidebar"]],template:function(n,i){n&1&&(b(0,"rp-score-ticker")(1,"fuse-progress-bar"),m(2,Hh,1,0,"vertical-layout-1"),m(3,Wh,1,0,"vertical-layout-2"),m(4,Gh,1,0,"vertical-layout-3"),m(5,Qh,1,0,"horizontal-layout-1"),m(6,Yh,2,1,"fuse-sidebar",0),m(7,Xh,3,2,"div",1),m(8,Jh,2,1,"fuse-sidebar",2),m(9,Zh,2,0,"fuse-sidebar",3),m(10,eg,2,0,"fuse-sidebar",4),m(11,ng,2,1,"fuse-sidebar",5),r(12,"div",6)(13,"div",7),x("click",function(){return i.eventFeedBack()}),s()(),b(14,"app-confetti")),n&2&&(l(2),f((i.fuseConfig==null||i.fuseConfig.layout==null?null:i.fuseConfig.layout.style)==="vertical-layout-1"?2:-1),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null?null:i.fuseConfig.layout.style)==="vertical-layout-2"?3:-1),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null?null:i.fuseConfig.layout.style)==="vertical-layout-3"?4:-1),l(),f((i.fuseConfig==null||i.fuseConfig.layout==null?null:i.fuseConfig.layout.style)==="horizontal-layout-1"?5:-1),l(),f(i.adminSidebarsVisible?6:-1),l(),f(i.agentPanelVisible?7:-1),l(),f(i.isLoggedIn?8:-1),l(),f(i.adminSidebarsVisible||i.isDirector?9:-1),l(),f(i.loginRegisterSidebarsVisible?10:-1),l(),f(i.loginRegisterSidebarsVisible?11:-1))},dependencies:[de,hi,nr,tr,Ea,Ma,wi,br,ht,kr,or,_e,pe,cr,Pn,Bs,yi,Pr,Ds,zs,Vs,Ns,kn,js,Us,$s,Js],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;width:100%;height:100%;min-width:0}[_nghost-%COMP%] .theme-options-button[_ngcontent-%COMP%]{position:absolute;bottom:15%;right:2px;width:35px;height:35px;line-height:35px;text-align:center;cursor:pointer;border-radius:0;margin:0;pointer-events:auto;opacity:.9;z-index:998}@media screen and (min-width:960px){[_nghost-%COMP%] .theme-options-button[_ngcontent-%COMP%]{bottom:20%}}[_nghost-%COMP%] .theme-options-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:24px;color:#fff}[_nghost-%COMP%] .theme-options-button[_ngcontent-%COMP%]:hover{opacity:1}[_nghost-%COMP%] .theme-options-sidebar[_ngcontent-%COMP%]{width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] .socialShareButton[_ngcontent-%COMP%]{position:absolute;z-index:10000}@media screen and (max-width:959px){[_nghost-%COMP%] .socialShareButton[_ngcontent-%COMP%]{bottom:-5px;right:10px}[_nghost-%COMP%] .socialShareButton[_ngcontent-%COMP%] .mat-mdc-fab[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{padding:0}}@media screen and (min-width:960px){[_nghost-%COMP%] .socialShareButton[_ngcontent-%COMP%]{bottom:65px;right:20px}}@media screen and (max-width:959px){[_nghost-%COMP%] .socialShareButton .mat-mdc-fab{width:45px!important;height:45px!important}[_nghost-%COMP%] .socialShareButton .mat-mdc-fab .mat-button-wrapper{padding:0!important}}@-webkit-keyframes _ngcontent-%COMP%_come-in{0%{-webkit-transform:translatey(100px);transform:translatey(100px);opacity:0}
3430%{-webkit-transform:translateX(-50px) scale(.4);transform:translate(-50px) scale(.4)}70%{-webkit-transform:translateX(0px) scale(1.2);transform:translate(0) scale(1.2)}to{-webkit-transform:translatey(0px) scale(1);transform:translatey(0) scale(1);opacity:1}}@keyframes _ngcontent-%COMP%_come-in{0%{-webkit-transform:translatey(100px);transform:translatey(100px);opacity:0}30%{-webkit-transform:translateX(-50px) scale(.4);transform:translate(-50px) scale(.4)}70%{-webkit-transform:translateX(0px) scale(1.2);transform:translate(0) scale(1.2)}to{-webkit-transform:translatey(0px) scale(1);transform:translatey(0) scale(1);opacity:1}}*[_ngcontent-%COMP%]{margin:0;padding:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{background:#eaedf2;font-family:Roboto,sans-serif}.floating-container[_ngcontent-%COMP%]{z-index:1;position:fixed;width:100px;height:100px;bottom:0;right:0;margin:35px 25px}.floating-container[_ngcontent-%COMP%]:hover{height:300px}.floating-container[_ngcontent-%COMP%]:hover .floating-button[_ngcontent-%COMP%]{box-shadow:0 10px 25px #2cb3f099;-webkit-transform:translatey(5px);transform:translatey(5px);-webkit-transition:all .3s;transition:all .3s}.floating-container[_ngcontent-%COMP%]:hover .element-container[_ngcontent-%COMP%] .float-element[_ngcontent-%COMP%]:nth-child(1){-webkit-animation:_ngcontent-%COMP%_come-in .4s forwards .2s;animation:_ngcontent-%COMP%_come-in .4s forwards .2s}.floating-container[_ngcontent-%COMP%]:hover .element-container[_ngcontent-%COMP%] .float-element[_ngcontent-%COMP%]:nth-child(2){-webkit-animation:_ngcontent-%COMP%_come-in .4s forwards .4s;animation:_ngcontent-%COMP%_come-in .4s forwards .4s}.floating-container[_ngcontent-%COMP%]:hover .element-container[_ngcontent-%COMP%] .float-element[_ngcontent-%COMP%]:nth-child(3){-webkit-animation:_ngcontent-%COMP%_come-in .4s forwards .6s;animation:_ngcontent-%COMP%_come-in .4s forwards .6s}.floating-container[_ngcontent-%COMP%] .floating-button[_ngcontent-%COMP%]{position:absolute;width:45px;height:45px;background:#2cb3f0;bottom:10%;border-radius:50%;left:75px;margin:auto;color:#fff;line-height:50px;text-align:center;font-size:23px;z-index:100;box-shadow:0 10px 25px -5px #2cb3f099;cursor:pointer;-webkit-transition:all .3s;transition:all .3s}.floating-container[_ngcontent-%COMP%] .float-element[_ngcontent-%COMP%]{position:relative;display:block;border-radius:50%;width:50px;height:50px;margin:15px auto;color:#fff;font-weight:500;text-align:center;line-height:50px;z-index:0;opacity:0;-webkit-transform:translateY(100px);transform:translateY(100px)}.floating-container[_ngcontent-%COMP%] .float-element[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{vertical-align:middle;font-size:16px}.floating-container[_ngcontent-%COMP%] .float-element[_ngcontent-%COMP%]:nth-child(1){background:#42a5f5;box-shadow:0 20px 20px -10px #42a5f580}.floating-container[_ngcontent-%COMP%] .float-element[_ngcontent-%COMP%]:nth-child(2){background:#4caf50;box-shadow:0 20px 20px -10px #4caf5080}.floating-container[_ngcontent-%COMP%] .float-element[_ngcontent-%COMP%]:nth-child(3){background:#ff9800;box-shadow:0 20px 20px -10px #ff980080}"]})}return t})();var rl=(()=>{class t{api;_unsubscribeAll;static reportWindowMs=6e4;static maxReportsPerWindow=5;static duplicateWindowMs=3e4;static reportTimestamps=[];static lastSignature="";static lastSignatureAt=0;static isHandling=!1;constructor(e){this.api=e,this._unsubscribeAll=new O}handleError(e){try{if(t.isHandling||(t.isHandling=!0,this.isBugsterError(e)))return;let n=Date.now(),i=this.getErrorSignature(e);if(this.isDuplicateError(i,n)||!this.canReportNow(n))return;let a={message:e?.message,stack:e?.stack,location:window.location.href,userAgent:navigator.userAgent,error:e};this.api.post("Monitor/bugster",a).pipe(T(this._unsubscribeAll)).subscribe({next:c=>{console.error("Error payload:",a)}})}catch(n){console.error("GlobalErrorHandler failed:",n)}finally{t.isHandling=!1}}isBugsterError(e){let n=e?.url||e?.rejection?.url;return typeof n=="string"&&n.includes("Monitor/bugster")}getErrorSignature(e){let n=typeof e?.message=="string"?e.message:String(e),i=typeof e?.stack=="str
34ing"?e.stack.split(` 35`)[0]:"";return`${n}|${i}`}isDuplicateError(e,n){return e?e===t.lastSignature&&n-t.lastSignatureAt<t.duplicateWindowMs?!0:(t.lastSignature=e,t.lastSignatureAt=n,!1):!1}canReportNow(e){let n=e-t.reportWindowMs;return t.reportTimestamps=t.reportTimestamps.filter(i=>i>n),t.reportTimestamps.length>=t.maxReportsPerWindow?!1:(t.reportTimestamps.push(e),!0)}static \u0275fac=function(n){return new(n||t)(be(X))};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var sl=(()=>{class t{_injector;constructor(e){this._injector=e}intercept(e,n){return e.method!=="PUT"&&e.method!=="DELETE"||!/\/WatchList\//i.test(e.url)?n.handle(e):n.handle(e).pipe(ea(i=>{i instanceof wa&&i.ok&&this._injector.get(rs).invalidateAll()}))}static \u0275fac=function(n){return new(n||t)(be(At))};static \u0275prov=H({token:t,factory:t.\u0275fac})}return t})();var ll=(()=>{class t{injector;refreshTokenInProgress=!1;refreshTokenSubject=new un(null);constructor(e){this.injector=e}get http(){return this.injector.get(ri)}get apiService(){return this.injector.get(X)}get membership(){return this.injector.get(Me)}intercept(e,n){return n.handle(e).pipe(Nn(i=>{if(!(i.error instanceof ErrorEvent)){if(i.headers.get("Refresh-Token-Expired")==="true")return this.membership.logout(!0),ot(()=>i);if(i.headers.get("Access-Token-Expired")==="true"){let a=e.url.toLowerCase();return a.indexOf("membership/refreshtokens")>=0||a.indexOf("membership/logout")>=0?(this.membership.logout(!0),ot(()=>i)):this.refreshTokenInProgress?this.refreshTokenSubject.pipe(we(c=>c!==null),Et(1),Ji(c=>c?(e=e.clone({setHeaders:{SecondAttemptWithNewToken:"true"}}),n.handle(e)):ot(()=>i))):(this.refreshTokenInProgress=!0,this.refreshTokenSubject.next(null),this.http.get($.apiUrl+$.baseUrl+"membership/refreshTokens",{withCredentials:!0,headers:this.apiService.getCommonHeaders(!0,!0)}).pipe(Zo({count:1,delay:c=>c.status===503?Xo(1e3):ot(()=>c)}),Nn(c=>((c.headers?.get("Refresh-Token-Expired")==="true"||c.status===401||c.status===403)&&this.membership.logout(!0),this.refreshTokenInProgress=!1,this.refreshTokenSubject.next(!1),ot(()=>c))),Ji(c=>(this.refreshTokenInProgress=!1,c?(this.refreshTokenSubject.next(!0),window.tokenUpdate?.postMessage(JSON.stringify(c)),e=e.clone({setHeaders:{SecondAttemptWithNewToken:"true"}}),n.handle(e)):(this.refreshTokenSubject.next(!1),ot(()=>i)))),Jo(()=>{this.refreshTokenInProgress&&(this.refreshTokenInProgress=!1,this.refreshTokenSubject.next(!1))})))}}return ot(()=>i)}))}static \u0275fac=function(n){return new(n||t)(be(At))};static \u0275prov=H({token:t,factory:t.\u0275fac})}return t})();var cl=(()=>{class t{intercept(e,n){return n.handle(e).pipe(Nn(i=>i.status===409&&i.error?.reason==="eventCompleted"?ot(()=>new Sa({error:'This event is finished and is part of your permanent history, so it can no longer be changed. To set up next season, use "Duplicate Event" on the event dashboard.',headers:i.headers,status:i.status,statusText:i.statusText,url:i.url??void 0})):ot(()=>i)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac})}return t})();function ig(t,o){if(t&1){let e=M();r(0,"p",8),d(1,"You need to be logged in to delete your account."),s(),r(2,"div",9)(3,"login-v2",10),x("reload",function(){y(e);let i=p();return w(i.reloadAfterLogin())}),s()()}t&2&&(l(3),g("dontRedirect",!0)("accountDeletionMode",!0))}function og(t,o){if(t&1){let e=M();r(0,"mat-dialog-content")(1,"div",11)(2,"h1",12),d(3,"YOU ARE ABOUT TO DELETE YOUR ACCOUNT PERMANENTLY!"),s(),r(4,"p"),b(5,"img",13),s(),r(6,"p",14),d(7,"If you are having any issues with your account, we encourage you to contact [email protected]"),b(8,"br"),d(9,"rather than opting for account deletion."),s(),r(10,"p",15),d(11,"Once deleted, you cannot log in and reinstating your account will not be an option."),s(),r(12,"p",15),d(13,"Do you still want to delete your account?"),b(14,"br")(15,"br"),r(16,"u"),d(17,"This action cannot be undone!"),s()()()(),r(18,"mat-dialog-actions")(19,"div",16)(20,"div",17)(21,"mat-checkbox",18),St("ngModelChange",function(i){y(e);let a=p();return wt(a.deleteAccountConsent,i)||(a.deleteAccountConsent=i),w(i)}),r(22,"span",19),d(23,"Yes, I understand the consequences and still want to delete my account"),s()()(),r(24,"div",20)(25,"button",21),d(26,"Cancel"),s(),r(27,"button",7),x("click",function(){y(e);let i=p();return w(i.deleteAccount())}),d(28,"DELETE MY DATA PERMANENTLY"),s()()()()}if(t&2){let e=p();l(21),yt("ngModel",e.deleteAccountConsent),l(6),U("spinner",e.loading),g("disabled",!e.deleteAccountConsent||e.loading)}}var dl=(()=>{class t{breakpointObserver;dialog;api;_membership;router;notify;env=$;isMobile=!1;isLoggedIn=!1;deleteAccountRequirement=!1;_unsubscribeAll;constructor(e,n,i,a,c,u){this.breakpointObserver=e,this.dialog=n,this.api=i,this._membership=a,this.router=c,this.notify=u,this._unsubscribeAll=new O,this.deleteAccountRequirement=$.deleteAccountRequirement==!0,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(T(this._unsubscribeAll)).subscribe(h=>{this.isMobile=!!h.matches}),this.isLoggedIn=this._membership.isLoggedIn}deleteAccountConsent=!1;dialogRef4Delete;deleteAccountPopup(e){this.dialogRef4Delete=this.dialog.open(e,{panelClass:"p12-dialog-container",width:this.isMobile?"100%":"65%",maxWidth:"100%",height:"auto",maxHeight:"90vh",autoFocus:!0})}reloadAfterLogin(){this.isLoggedIn=this._membership.isLoggedIn}deletionData={};loading=!1;deleteAccount(){this.loading=!0,this.deleteAccountRequirement?this.api.delete("Membership/deleteAccount"+(this._membership.persona.app==!0?"/true":""),!0).pipe(T(this._unsubscribeAll)).subscribe({next:e=>{this.loading=!1,this.notify.openInfoModal("Your account permanently deleted!"),this.dialogRef4Delete.close(),setTimeout(()=>{this._membership.logout(),this.router.navigateByUrl("/")},250)},error:e=>{this.loading=!1,this.notify.openAlertModal(e.error?e.error:"An error has occured",gi.ERROR)}}):setTimeout(()=>{this.loading=!1,this.notify.openWarningModal("Your account deleti
35on failed! Please reach out to support to delete your account.")},3e3)}static \u0275fac=function(n){return new(n||t)(C(ke),C(Fe),C(X),C(Me),C(re),C(Te))};static \u0275cmp=z({type:t,selectors:[["account-deletion"]],decls:20,vars:3,consts:[["deleteAccountDialog",""],[1,"body",2,"background-color","#fff","width","100% !important"],[2,"font-size","26px","margin-top","20px"],["data-custom-class","title"],[1,"mx-auto","grey-200","p-16","border-radius-4","mt-20",3,"ngClass"],[1,"p-8"],[1,"text-center"],["mat-button","",1,"red",3,"click","disabled"],[1,"text-center","mt-32","red-fg","h3","bold"],[1,"flex-center"],[3,"reload","dontRedirect","accountDeletionMode"],[1,"text-center","red-fg","p-24"],[1,"red","p-24"],["src","/assets/images/account-warning.webp"],[1,"fuse-navy-fg","font-size-16","my-20"],[1,"font-size-16"],[1,"w-100-p"],[1,"py-12","text-center"],[3,"ngModelChange","ngModel"],[1,"red-fg"],[1,"text-center","w-100-p"],["mat-button","",1,"grey-300",3,"mat-dialog-close"]],template:function(n,i){if(n&1){let a=M();r(0,"div",1)(1,"div")(2,"strong")(3,"span",2)(4,"span",3),d(5,"User Account Deletion"),s()()()(),r(6,"div",4)(7,"div",5)(8,"p"),d(9,"You have right to delete your information from our platform."),s(),r(10,"p"),d(11,"We're sad to see you go. If you decide to proceed, all your data and account information will be permanently removed."),s(),r(12,"p"),d(13,"Should you need any assistance or have questions, our support team is here to help."),s()(),r(14,"div",6)(15,"button",7),x("click",function(){y(a);let u=D(19);return w(i.deleteAccountPopup(u))}
35),d(16,"Delete My Account"),s()(),m(17,ig,4,2),s()(),E(18,og,29,4,"ng-template",null,0,ne)}n&2&&(l(6),g("ngClass",i.isMobile?"w-100-p":"w-65-p"),l(9),g("disabled",!i.isLoggedIn),l(2),f(i.isLoggedIn?-1:17))},dependencies:[G,ae,yn,ja,xn,vn,Sn,wn,me,Dt,Nt,pe,Le,yi],styles:[".body[_ngcontent-%COMP%]{font-family:Arial!important;font-size:11pt;line-height:115%;color:#595959;padding:24px}.body[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{font-size:14px!important;margin:24px 0 12px;font-weight:700}.body[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:19px!important;color:#000!important;margin-top:50px}ul[_ngcontent-%COMP%]{list-style-type:square}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{list-style-type:circle}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{list-style-type:square}"]})}return t})();var pl=[{path:"auth",loadChildren:Un(()=>import("./chunk-YYNZVRGD.js").then(t=>t.authRoutes))},{path:"pages",loadChildren:Un(()=>import("./chunk-VO4X44U6.js").then(t=>t.pagesRoutes))},{path:"tinc",canActivate:[ls],loadChildren:Un(()=>import("./chunk-6FU7O22J.js").then(t=>t.tincRoutes))},{path:"account-deletion",component:dl,data:{metaTags:[{property:"og:title",content:"Account Deletion"}]}},{path:"start",loadChildren:Un(()=>import("./chunk-3M3N3IO3.js").then(t=>t.startRoutes))},{path:"**",redirectTo:"pages/home"}];function ul(t){return new Y(3e3,!1)}function ag(){return new Y(3100,!1)}function rg(){return new Y(3101,!1)}function sg(t){return new Y(3001,!1)}function lg(t){return new Y(3003,!1)}function cg(t){return new Y(3004,!1)}function fl(t,o){return new Y(3005,!1)}function hl(){return new Y(3006,!1)}function gl(){return new Y(3007,!1)}function _l(t,o){return new Y(3008,!1)}function bl(t){return new Y(3002,!1)}function Cl(t,o,e,n,i){return new Y(3010,!1)}function vl(){return new Y(3011,!1)}function xl(){return new Y(3012,!1)}function yl(){return new Y(3200,!1)}function wl(){return new Y(3202,!1)}function Sl(){return new Y(3013,!1)}function kl(t){return new Y(3014,!1)}function Tl(t){return new Y(3015,!1)}function Ml(t){return new Y(3016,!1)}function Pl(t,o){return new Y(3404,!1)}function dg(t){return new Y(3502,!1)}function El(t){return new Y(3503,!1)}function Al(){return new Y(3300,!1)}function Ol(t){return new Y(3504,!1)}function Il(t){return new Y(3301,!1)}function Rl(t,o){return new Y(3302,!1)}function Fl(t){return new Y(3303,!1)}function Ll(t,o){return new Y(3400,!1)}function Dl(t){return new Y(3401,!1)}function Nl(t){return new Y(3402,!1)}function Vl(t,o){return new Y(3505,!1)}function kt(t){switch(t.length){case 0:return new Zt;case 1:return t[0];default:return new _i(t)}}function yo(t,o,e=new Map,n=new Map){let i=[],a=[],c=-1,u=null;if(o.forEach(h=>{let _=h.get("offset"),v=_==c,k=v&&u||new Map;h.forEach((N,V)=>{let A=V,F=N;if(V!=="offset")switch(A=t.normalizePropertyName(A,i),F){case jn:F=e.get(V);break;case at:F=n.get(V);break;default:F=t.normalizeStyleValue(V,A,F,i);break}k.set(A,F)}),v||a.push(k),u=k,c=_}),i.length)throw dg(i);return a}function Oi(t,o,e,n){switch(o){case"start":t.onStart(()=>n(e&&Co(e,"start",t)));break;case"done":t.onDone(()=>n(e&&Co(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&Co(e,"destroy",t)));break}}function Co(t,o,e){let n=e.totalTime,i=!!e.disabled,a=Ii(t.element,t.triggerName,t.fromState,t.toState,o||t.phaseName,n??t.totalTime,i),c=t._data;return c!=null&&(a._data=c),a}function Ii(t,o,e,n,i="",a=0,c){return{element:t,triggerName:o,fromState:e,toState:n,phaseName:i,totalTime:a,disabled:!!c}}function qe(t,o,e){let n=t.get(o);return n||t.set(o,n=e),n}function wo(t){let o=t.indexOf(":"),e=t.substring(1,o),n=t.slice(o+1);return[e,n]}var pg=typeof document>"u"?null:document.documentElement;function Ri(t){let o=t.parentNode||t.host||null;return o===pg?null:o}function ug(t){return t.substring(1,6)=="ebkit"}var an=null,ml=!1;function zl(t){an||(an=mg()||{},ml=an.style?"WebkitAppearance"in an.style:!1);let o=!0;return an.style&&!ug(t)&&(o=t in an.style,!o&&ml&&(o="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in an.style)),o}function mg(){return typeof document<"u"?document.body:null}function So(t,o){for(;o;){if(o===t)return!0;o=Ri(o)}return!1}
vendor: 56,147 bytes, line 35
35function ko(t,o,e){if(e)return Array.from(t.querySelectorAll(o));let n=t.querySelector(o);return n?[n]:[]}var fg=1e3,To="{{",hg="}}",Mo="ng-enter",Fi="ng-leave",Jn="ng-trigger",Zn=".ng-trigger",Po="ng-animating",Li=".ng-animating";function _t(t){if(typeof t=="number")return t;let o=t.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:vo(parseFloat(o[1]),o[2])}function vo(t,o){return o==="s"?t*fg:t}function ei(t,o,e){return t.hasOwnProperty("duration")?t:_g(t,o,e)}var gg=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function _g(t,o,e){let n,i=0,a="";if(typeof t=="string"){let c=t.match(gg);if(c===null)return o.push(ul(t)),{duration:0,delay:0,easing:""};n=vo(parseFloat(c[1]),c[2]);let u=c[3];u!=null&&(i=vo(parseFloat(u),c[4]));let h=c[5];h&&(a=h)}else n=t;if(!e){let c=!1,u=o.length;n<0&&(o.push(ag()),c=!0),i<0&&(o.push(rg()),c=!0),c&&o.splice(u,0,ul(t))}return{duration:n,delay:i,easing:a}}function Bl(t){return t.length?t[0]instanceof Map?t:t.map(o=>new Map(Object.entries(o))):[]}function st(t,o,e){o.forEach((n,i)=>{let a=Di(i);e&&!e.has(i)&&e.set(i,t.style[a]),t.style[a]=n})}function Gt(t,o){o.forEach((e,n)=>{let i=Di(n);t.style[i]=""})}function Rn(t){return Array.isArray(t)?t.length==1?t[0]:ar(t):t}function jl(t,o,e){let n=o.params||{},i=Eo(t);i.length&&i.forEach(a=>{n.hasOwnProperty(a)||e.push(sg(a))})}var xo=new RegExp(`${To}\\s*(.+?)\\s*${hg}`,"g");function Eo(t){let o=[];if(typeof t=="string"){let e;for(;e=xo.exec(t);)o.push(e[1]);xo.lastIndex=0}return o}function Fn(t,o,e){let n=`${t}`,i=n.replace(xo,(a,c)=>{let u=o[c];return u==null&&(e.push(lg(c)),u=""),u.toString()});return i==n?t:i}var bg=/-+([a-z0-9])/g;function Di(t){return t.replace(bg,(...o)=>o[1].toUpperCase())}function Ul(t,o){return t===0||o===0}function $l(t,o,e){if(e.size&&o.length){let n=o[0],i=[];if(e.forEach((a,c)=>{n.has(c)||i.push(c),n.set(c,a)}),i.length)for(let a=1;a<o.length;a++){let c=o[a];i.forEach(u=>c.set(u,Ni(t,u)))}}return o}function Ke(t,o,e){switch(o.type){case W.Trigger:return t.visitTrigger(o,e);case W.State:return t.visitState(o,e);case W.Transition:return t.visitTransition(o,e);case W.Sequence:return t.visitSequence(o,e);case W.Group:return t.visitGroup(o,e);case W.Animate:return t.visitAnimate(o,e);case W.Keyframes:return t.visitKeyframes(o,e);case W.Style:return t.visitStyle(o,e);case W.Reference:return t.visitReference(o,e);case W.AnimateChild:return t.visitAnimateChild(o,e);case W.AnimateRef:return t.visitAnimateRef(o,e);case W.Query:return t.visitQuery(o,e);case W.Stagger:return t.visitStagger(o,e);default:throw cg(o.type)}}function Ni(t,o){return window.getComputedStyle(t)[o]}var Ho=(()=>{class t{validateStyleProperty(e){return zl(e)}containsElement(e,n){return So(e,n)}getParentElement(e){return Ri(e)}query(e,n,i){return ko(e,n,i)}computeStyle(e,n,i){return i||""}animate(e,n,i,a,c,u=[],h){return new Zt(i,a)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=H({token:t,factory:t.\u0275fac})}return t})(),sn=class{static NOOP=new Ho},ln=class{};var Cg=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"]),Ui=class extends ln{normalizePropertyName(o,e){return Di(o)}normalizeStyleValue(o,e,n,i){let a="",c=n.toString().trim();if(Cg.has(e)&&n!==0&&n!=="0")if(typeof n=="number")a="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&i.push(fl(o,n))}return c+a}};var $i="*";function vg(t,o){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>xg(n,e,o)):e.push(t),e}function xg(t,o,e){if(t[0]==":"){let h=yg(t,e);if(typeof h=="function"){o.push(h);return}t=h}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(Tl(t)),o;let i=n[1],a=n[2],c=n[3];o.push(ql(i,c));let u=i==$i&&c==$i;a[0]=="<"&&!u&&o.push(ql(c,i))}function yg(t,o){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return o.push(Ml(t)),"* => *"}}var Vi=new Set(["true","1"]),zi=new Set(["false","0"]);function ql(t,o){let e=Vi.has(t)||zi.has(t),n=Vi.has(o)||zi.has(o);return(i,a)=>{let c=t==$i||t==i,u=o==$i||o==a;return!c&&e&&typeof i=="boolean"&&(c=i?Vi.has(t):zi.has(t)),!u&&n&&typeof a=="boolean"&&(u=a?Vi.has(o):zi.has(o)),c&&u}}var ec=":self",wg=new RegExp(`s*${ec}s*,?`,"g");function tc(t,o,e,n){return new Lo(t).build(o,e,n)}var Kl="",Lo=class{_driver;constructor(o){this._driver=o}build(o,e,n){let i=new Do(e);return this._resetContextStyleTimingState(i),Ke(this,Rn(o),i)}_resetContextStyleTimingState(o){o.currentQuerySelector=Kl,o.collectedStyles=new Map,o.collectedStyles.set(Kl,new Map),o.currentTime=0}visitTrigger(o,e){let n=e.queryCount=0,i=e.depCount=0,a=[],c=[];return o.name.charAt(0)=="@"&&e.errors.push(hl()),o.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),u.type==W.State){let h=u,_=h.name;_.toString().split(/\s*,\s*/).forEach(v=>{h.name=v,a.push(this.visitState(h,e))}),h.name=_}else if(u.type==W.Transition){let h=this.visitTransition(u,e);n+=h.queryCount,i+=h.depCount,c.push(h)}else e.errors.push(gl())}),{type:W.Trigger,name:o.name,states:a,transitions:c,queryCount:n,depCount:i,options:null}}visitState(o,e){let n=this.visitStyle(o.styles,e),i=o.options&&o.options.params||null;if(n.containsDynamicStyles){let a=new Set,c=i||{};n.styles.forEach(u=>{u instanceof Map&&u.forEach(h=>{Eo(h).forEach(_=>{c.hasOwnProperty(_)||a.add(_)})})}),a.size&&e.errors.push(_l(o.name,[...a.values()]))}return{type:W.State,name:o.name,style:n,options:i?{params:i}:null}}visitTransition(o,e){e.queryCount=0,e.depCount=0;let n=Ke(this,Rn(o.animation),e),i=vg(o.expr,e.errors);return{type:W.Transition,matchers:i,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:rn(o.options)}}visitSequence(o,e){return{type:W.Sequence,steps:o.steps.map(n=>Ke(this,n,e)),options:rn(o.options)}}visitGroup(o,e){let n=e.currentTime,i=0,a=o.steps.map(c=>{e.currentTime=n;let u=Ke(this,c,e);return i=Math.max(i,e.currentTime),u});return e.currentTime=i,{type:W.Group,steps:a,options:rn(o.options)}}visitAnimate(o,e){let n=Mg(o.timings,e.errors);e.currentAnimateTimings=n;let i,a=o.styles?o.styles:oo({});if(a.type==W.Keyframes)i=this.visitKeyframes(a,e);else{let c=o.styles,u=!1;if(!c){u=!0;let _={};n.easing&&(_.easing=n.easing),c=oo(_)}e.currentTime+=n.duration+n.delay;let h=this.visitStyle(c,e);h.isEmptyStep=u,i=h}return e.currentAnimateTimings=null,{type:W.Animate,timings:n,style:i,options:null}}visitStyle(o,e){let n=this._makeStyleAst(o,e);return this._validateStyleAst(n,e),n}_makeStyleAst(o,e){let n=[],i=Array.isArray(o.styles)?o.styles:[o.styles];for(let u of i)typeof u=="string"?u===at?n.push(u):e.errors.push(bl(u)):n.push(new Map(Object.entries(u)));let a=!1,c=null;return n.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(c=u.get("easing"),u.delete("easing")),!a)){for(let h of u.values())if(h.toString().indexOf(To)>=0){a=!0;break}}}),{type:W.Style,styles:n,easing:c,offset:o.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(o,e){let n=e.currentAnimateTimings,i=e.currentTime,a=e.currentTime;n&&a>0&&(a-=n.duration+n.delay),o.styles.forEach(c=>{typeof c!="string"&&c.forEach((u,h)=>{let _=e.collectedStyles.get(e.currentQuerySelector),v=_.get(h),k=!0;v&&(a!=i&&a>=v.startTime&&i<=v.endTime&&(e.errors.push(Cl(h,v.startTime,v.endTime,a,i)),k=!1),a=v.startTime),k&&_.set(h,{startTime:a,endTime:i}),e.options&&jl(u,e.options,e.errors)})})}visitKeyframes(o,e){let n={type:W.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(vl()),n;let i=1,a=0,c=[],u=!1,h=!1,_=0,v=o.steps.map(ie=>{let fe=this._makeStyleAst(ie,e),Ce=fe.offset!=null?fe.offset:Tg(fe.styles),he=0;return Ce!=null&&(a++,he=fe.offset=Ce),h=h||he<0||he>1,u=u||he<_,_=he,c.push(he),fe});h&&e.errors.push(xl()),u&&e.errors.push(yl());let k=o.steps.length,N=0;a>0&&a<k?e.errors.push(wl()):a==0&&(N=i/(k-1));let V=k-1,A=e.currentTime,F=e.currentAnimateTimings,te=F.duration;return v.forEach((ie,fe)=>{let Ce=N>0?fe==V?1:N*fe:c[fe],he=Ce*te;e.currentTime=A+F.delay+he,F.duration=he,this._validateStyleAst(ie,e),ie.offset=Ce,n.styles.push(ie)}),n}visitReference(o,e){return{type:W.Reference,animation:Ke(this,Rn(o.animation),e),options:rn(o.options)}}visitAnimateChild(o,e){return e.depCount++,{type:W.AnimateChild,options:rn(o.options)}}visitAnimateRef(o,e){return{type:W.AnimateRef,animation:this.visitReference(o.animation,e),options:rn(o.options)}}visitQuery(o,e){let n=e.currentQuerySelector,i=o.options||{};e.queryCount++,e.currentQuery=o;let[a,c]=Sg(o.selector);e.currentQuerySelector=n.length?n+" "+a:a,qe(e.collectedStyles,e.currentQuerySelector,new Map);let u=Ke(this,Rn(o.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:W.Query,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:c,animation:u,originalSelector:o.selector,options:rn(o.options)}}visitStagger(o,e){e.currentQuery||e.errors.push(Sl());let n=o.timings==="full"?{duration:0,delay:0,easing:"full"}:ei(o.timings,e.errors,!0);return{type:W.Stagger,animation:Ke(this,Rn(o.animation),e),timings:n,options:null}}};function Sg(t){let o=!!t.split(/\s*,\s*/).find(e=>e==ec);return o&&(t=t.replace(wg,"")),t=t.replace(/@\*/g,Zn).replace(/@\w+/g,e=>Zn+"-"+e.slice(1)).replace(/:animating/g,Li),[t,o]}function kg(t){return t?ze({},t):null}var Do=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(o){this.errors=o}};function Tg(t){if(typeof t=="string")return null;let o=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;o=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;o=parseFloat(e.get("offset")),e.delete("offset")}return o}function Mg(t,o){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let a=ei(t,o).duration;return Ao(a,0,"")}let e=t;if(e.split(/\s+/).some(a=>a.charAt(0)=="{"&&a.charAt(1)=="{")){let a=Ao(0,0,"");return a.dynamic=!0,a.strValue=e,a}let i=ei(e,o);return Ao(i.duration,i.delay,i.easing)}function rn(t){return t?(t=ze({},t),t.params&&(t.params=kg(t.params))):t={},t}function Ao(t,o,e){return{duration:t,delay:o,easing:e}}function Wo(t,o,e,n,i,a,c=null,u=!1){return{type:1,element:t,keyframes:o,preStyleProps:e,postStyleProps:n,duration:i,delay:a,totalTime:i+a,easing:c,subTimeline:u}}var ni=class{_map=new Map;get(o){return this._map.get(o)||[]}append(o,e){let n=this._map.get(o);n||this._map.set(o,n=[]),n.push(...e)}has(o){return this._map.has(o)}clear(){this._map.clear()}},Pg=1,Eg=":enter",Ag=new RegExp(Eg,"g"),Og=":leave",Ig=new RegExp(Og,"g");function nc(t,o,e,n,i,a=new Map,c=new Map,u,h,_=[]){return new No().buildKeyframes(t,o,e,n,i,a,c,u,h,_)}var No=class{buildKeyframes(o,e,n,i,a,c,u,h,_,v=[]){_=_||new ni;let k=new Vo(o,e,_,i,a,v,[]);k.options=h;let N=h.delay?_t(h.delay):0;k.currentTimeline.delayNextStep(N),k.currentTimeline.setStyles([c],null,k.errors,h),Ke(this,n,k);let V=k.timelines.filter(A=>A.containsAnimation());if(V.length&&u.size){let A;for(let F=V.length-1;F>=0;F--){let te=V[F];if(te.element===e){A=te;break}}A&&!A.allowOnlyTimelineStyles()&&A.setStyles([u],null,k.errors,h)}return V.length?V.map(A=>A.buildKeyframes()):[Wo(e,[],[],[],0,N,"",!1)]}visitTrigger(o,e){}visitState(o,e){}visitTransition(o,e){}visitAnimateChild(o,e){let n=e.subInstructions.get(e.element);if(n){let i=e.createSubContext(o.options),a=e.currentTimeline.currentTime,c=this._visitSubInstructions(n,i,i.options);a!=c&&e.transformIntoNewTimeline(c)}e.previousNode=o}visitAnimateRef(o,e){let n=e.createSubContext(o.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],e,n),this.visitReference(o.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=o}_applyAnimationRefDelays(o,e,n){for(let i of o){let a=i?.delay;if(a){let c=typeof a=="number"?a:_t(Fn(a,i?.params??{},e.errors));n.delayNextStep(c)}}}_visitSubInstructions(o,e,n){let a=e.currentTimeline.currentTime,c=n.duration!=null?_t(n.duration):null,u=n.delay!=null?_t(n.delay):null;return c!==0&&o.forEach(h=>{let _=e.appendInstructionToTimeline(h,c,u);a=Math.max(a,_.duration+_.delay)}),a}visitReference(o,e){e.updateOptions(o.options,!0),Ke(this,o.animation,e),e.previousNode=o}visitSequence(o,e){let n=e.subContextCount,i=e,a=o.options;if(a&&(a.params||a.delay)&&(i=e.createSubContext(a),i.transformIntoNewTimeline(),a.delay!=null)){i.previousNode.type==W.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=qi);let c=_t(a.delay);i.delayNextStep(c)}o.steps.length&&(o.steps.forEach(c=>Ke(this,c,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=o}visitGroup(o,e){let n=[],i=e.currentTimeline.currentTime,a=o.options&&o.options.delay?_t(o.options.delay):0;o.steps.forEach(c=>{let u=e.createSubContext(o.options);a&&u.delayNextStep(a),Ke(this,c,u),i=Math.max(i,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(i),e.previousNode=o}_visitTiming(o,e){if(o.dynamic){let n=o.strValue,i=e.params?Fn(n,e.params,e.errors):n;return ei(i,e.errors)}else return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,e){let n=e.currentAnimateTimings=this._visitTiming(o.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());let a=o.style;a.type==W.Keyframes?this.visitKeyframes(a,e):(e.incrementTime(n.duration),this.visitStyle(a,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=o}visitStyle(o,e){let n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let a=i&&i.easing||o.easing;o.isEmptyStep?n.applyEmptyStep(a):n.setStyles(o.styles,a,e.errors,e.options),e.previousNode=o}visitKeyframes(o,e){let n=e.currentAnimateTimings,i=e.currentTimeline.duration,a=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,o.styles.forEach(h=>{let _=h.offset||0;u.forwardTime(_*a),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(i+a),e.previousNode=o}visitQuery(o,e){let n=e.currentTimeline.currentTime,i=o.options||{},a=i.delay?_t(i.delay):0;a&&(e.previousNode.type===W.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=qi);let c=n,u=e.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=u.length;let h=null;u.forEach((_,v)=>{e.currentQueryIndex=v;let k=e.createSubContext(o.options,_);a&&k.delayNextStep(a),_===e.element&&(h=k.currentTimeline),Ke(this,o.animation,k),k.currentTimeline.applyStylesToKeyframe();let N=k.currentTimeline.currentTime;c=Math.max(c,N)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=o}visitStagger(o,e){let n=e.parentContext,i=e.currentTimeline,a=o.timings,c=Math.abs(a.duration),u=c*(e.currentQueryTotal-1),h=c*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime;break}let v=e.currentTimeline;h&&v.delayNextStep(h);let k=v.currentTime;Ke(this,o.animation,e),e.previousNode=o,n.currentStaggerTime=i.currentTime-k+(i.startTime-n.currentTimeline.startTime)}},qi={},Vo=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=qi;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(o,e,n,i,a,c,u,h){this._driver=o,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=a,this.errors=c,this.timelines=u,this.currentTimeline=h||new Ki(this._driver,e,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,e){if(!o)return;let n=o,i=this.options;n.duration!=null&&(i.duration=_t(n.duration)),n.delay!=null&&(i.delay=_t(n.delay));let a=n.params;if(a){let c=i.params;c||(c=this.options.params={}),Object.keys(a).forEach(u=>{(!e||!c.hasOwnProperty(u))&&(c[u]=Fn(a[u],c,this.errors))})}}_copyOptions(){let o={};if(this.options){let e=this.options.params;if(e){let n=o.params={};Object.keys(e).forEach(i=>{n[i]=e[i]})}}return o}createSubContext(o=null,e,n){let i=e||this.element,a=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(o),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(o){return this.previousNode=qi,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,e,n){let i={duration:e??o.duration,delay:this.currentTimeline.currentTime+(n??0)+o.delay,easing:""},a=new zo(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,i,o.stretchStartingKeyframe);return this.timelines.push(a),i}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,e,n,i,a,c){let u=[];if(i&&u.push(this.element),o.length>0){o=o.replace(Ag,"."+this._enterClassName),o=o.replace(Ig,"."+this._leaveClassName);let h=n!=1,_=this._driver.query(this.element,o,h);n!==0&&(_=n<0?_.slice(_.length+n,_.length):_.slice(0,n)),u.push(..._)}return!a&&u.length==0&&c.push(kl(e)),u}},Ki=class t{_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(o,e,n,i){this._driver=o,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+o),e&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,e){return this.applyStylesToKeyframe(),new t(this._driver,o,e||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+=Pg,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,e){this._localTimelineStyles.set(o,e),this._globalTimelineStyles.set(o,e),this._styleSummary.set(o,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||at),this._currentKeyframe.set(e,at);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,e,n,i){e&&this._previousKeyframe.set("easing",e);let a=i&&i.params||{},c=Rg(o,this._globalTimelineStyles);for(let[u,h]of c){let _=Fn(h,a,n);this._pendingStyles.set(u,_),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??at),this._updateStyle(u,_)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((o,e)=>{this._currentKeyframe.set(e,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,o)}))}snapshotCurrentStyles(){for(let[o,e]of this._localTimelineStyles)this._pendingStyles.set(o,e),this._updateStyle(o,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let o=[];for(let e in this._currentKeyframe)o.push(e);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((e,n)=>{let i=this._styleSummary.get(n);(!i||e.time>i.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let o=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((u,h)=>{let _=new Map([...this._backFill,...u]);_.forEach((v,k)=>{v===jn?o.add(k):v===at&&e.add(k)}),n||_.set("offset",h/this.duration),i.push(_)});let a=[...o.values()],c=[...e.values()];if(n){let u=i[0],h=new Map(u);u.set("offset",0),h.set("offset",1),i=[u,h]}return Wo(this.element,i,a,c,this.duration,this.startTime,this.easing,!1)}},zo=class extends Ki{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(o,e,n,i,a,c,u=!1){super(o,e,c.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=a,this._stretchStartingKeyframe=u,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){let a=[],c=n+e,u=e/c,h=new Map(o[0]);h.set("offset",0),a.push(h);let _=new Map(o[0]);_.set("offset",Hl(u)),a.push(_);let v=o.length-1;for(let k=1;k<=v;k++){let N=new Map(o[k]),V=N.get("offset"),A=e+V*n;N.set("offset",Hl(A/c)),a.push(N)}n=c,e=0,i="",o=a}return Wo(this.element,o,this.preStyleProps,this.postStyleProps,n,e,i,!0)}};function Hl(t,o=3){let e=Math.pow(10,o-1);return Math.round(t*e)/e}function Rg(t,o){let e=new Map,n;return t.forEach(i=>{if(i==="*"){n??=o.keys();for(let a of n)e.set(a,at)}else for(let[a,c]of i)e.set(a,c)}),e}function Wl(t,o,e,n,i,a,c,u,h,_,v,k,N){return{type:0,element:t,triggerName:o,isRemovalTransition:i,fromState:e,fromStyles:a,toState:n,toStyles:c,timelines:u,queriedElements:h,preStyleProps:_,postStyleProps:v,totalTime:k,errors:N}}var Oo={},Hi=class{_triggerName;ast;_stateStyles;constructor(o,e,n){this._triggerName=o,this.ast=e,this._stateStyles=n}match(o,e,n,i){return Fg(this.ast.matchers,o,e,n,i)}buildStyles(o,e,n){let i=this._stateStyles.get("*");return o!==void 0&&(i=this._stateStyles.get(o?.toString())||i),i?i.buildStyles(e,n):new Map}build(o,e,n,i,a,c,u,h,_,v){let k=[],N=this.ast.options&&this.ast.options.params||Oo,V=u&&u.params||Oo,A=this.buildStyles(n,V,k),F=h&&h.params||Oo,te=this.buildStyles(i,F,k),ie=new Set,fe=new Map,Ce=new Map,he=i==="void",Tt={params:ic(F,N),delay:this.ast.options?.delay},Ye=v?[]:nc(o,e,this.ast.animation,a,c,A,te,Tt,_,k),Pe=0;return Ye.forEach(Oe=>{Pe=Math.max(Oe.duration+Oe.delay,Pe)}),k.length?Wl(e,this._triggerName,n,i,he,A,te,[],[],fe,Ce,Pe,k):(Ye.forEach(Oe=>{let bt=Oe.element,Ct=qe(fe,bt,new Set);Oe.preStyleProps.forEach(ct=>Ct.add(ct));let Mt=qe(Ce,bt,new Set);Oe.postStyleProps.forEach(ct=>Mt.add(ct)),bt!==e&&ie.add(bt)}),Wl(e,this._triggerName,n,i,he,A,te,Ye,[...ie.values()],fe,Ce,Pe))}};function Fg(t,o,e,n,i){return t.some(a=>a(o,e,n,i))}function ic(t,o){let e=ze({},o);return Object.entries(t).forEach(([n,i])=>{i!=null&&(e[n]=i)}),e}var Bo=class{styles;defaultParams;normalizer;constructor(o,e,n){this.styles=o,this.defaultParams=e,this.normalizer=n}buildStyles(o,e){let n=new Map,i=ic(o,this.defaultParams);return this.styles.styles.forEach(a=>{typeof a!="string"&&a.forEach((c,u)=>{c&&(c=Fn(c,i,e));let h=this.normalizer.normalizePropertyName(u,e);c=this.normalizer.normalizeStyleValue(u,h,c,e),n.set(u,c)})}),n}};function Lg(t,o,e){return new jo(t,o,e)}var jo=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(o,e,n){this.name=o,this.ast=e,this._normalizer=n,e.states.forEach(i=>{let a=i.options&&i.options.params||{};this.states.set(i.name,new Bo(i.style,a,n))}),Gl(this.states,"true","1"),Gl(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new Hi(o,i,this.states))}),this.fallbackTransition=Dg(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,e,n,i){return this.transitionFactories.find(c=>c.match(o,e,n,i))||null}matchStyles(o,e,n){return this.fallbackTransition.buildStyles(o,e,n)}};function Dg(t,o,e){let n=[(c,u)=>!0],i={type:W.Sequence,steps:[],options:null},a={type:W.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Hi(t,a,o)}function Gl(t,o,e){t.has(o)?t.has(e)||t.set(e,t.get(o)):t.has(e)&&t.set(o,t.get(e))}var Ng=new ni,Uo=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(o,e,n){this.bodyNode=o,this._driver=e,this._normalizer=n}register(o,e){let n=[],i=[],a=tc(this._driver,e,n,i);if(n.length)throw El(n);this._animations.set(o,a)}_buildPlayer(o,e,n){let i=o.element,a=yo(this._normalizer,o.keyframes,e,n);return this._driver.animate(i,a,o.duration,o.delay,o.easing,[],!0)}create(o,e,n={}){let i=[],a=this._animations.get(o),c,u=new Map;if(a?(c=nc(this._driver,e,a,Mo,Fi,new Map,new Map,n,Ng,i),c.forEach(v=>{let k=qe(u,v.element,new Map);v.postStyleProps.forEach(N=>k.set(N,null))})):(i.push(Al()),c=[]),i.length)throw Ol(i);u.forEach((v,k)=>{v.forEach((N,V)=>{v.set(V,this._driver.computeStyle(k,V,at))})});let h=c.map(v=>{let k=u.get(v.element);return this._buildPlayer(v,new Map,k)}),_=kt(h);return this._playersById.set(o,_),_.onDestroy(()=>this.destroy(o)),this.players.push(_),_}destroy(o){let e=this._getPlayer(o);e.destroy(),this._playersById.delete(o);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(o){let e=this._playersById.get(o);if(!e)throw Il(o);return e}listen(o,e,n,i){let a=Ii(e,"","","");return Oi(this._getPlayer(o),n,a,i),()=>{}}command(o,e,n,i){if(n=="register"){this.register(o,i[0]);return}if(n=="create"){let c=i[0]||{};this.create(o,e,c);return}let a=this._getPlayer(o);switch(n){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(o);break}}},Ql="ng-animate-queued",Vg=".ng-animate-queued",Io="ng-animate-disabled",zg=".ng-animate-disabled",Bg="ng-star-inserted",jg=".ng-star-inserted",Ug=[],oc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$g={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},lt="__ng_removed",ii=class{namespaceId;value;options;get params(){return this.options.params}constructor(o,e=""){this.namespaceId=e;let n=o&&o.hasOwnProperty("value"),i=n?o.value:o;if(this.value=Kg(i),n){let a=o,{value:c}=a,u=Yo(a,["value"]);this.options=u}else this.options={};this.options.params||(this.options.params={})}absorbOptions(o){let e=o.params;if(e){let n=this.options.params;Object.keys(e).forEach(i=>{n[i]==null&&(n[i]=e[i])})}}},ti="void",Ro=new ii(ti),$o=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(o,e,n){this.id=o,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+o,it(e,this._hostClassName)}listen(o,e,n,i){if(!this._triggers.has(e))throw Rl(n,e);if(n==null||n.length==0)throw Fl(e);if(!Hg(n))throw Ll(n,e);let a=qe(this._elementListeners,o,[]),c={name:e,phase:n,callback:i};a.push(c);let u=qe(this._engine.statesByElement,o,new Map);return u.has(e)||(it(o,Jn),it(o,Jn+"-"+e),u.set(e,Ro)),()=>{this._engine.afterFlush(()=>{let h=a.indexOf(c);h>=0&&a.splice(h,1),this._triggers.has(e)||u.delete(e)})}}register(o,e){return this._triggers.has(o)?!1:(this._triggers.set(o,e),!0)}_getTrigger(o){let e=this._triggers.get(o);if(!e)throw Dl(o);return e}trigger(o,e,n,i=!0){let a=this._getTrigger(e),c=new oi(this.id,e,o),u=this._engine.statesByElement.get(o);u||(it(o,Jn),it(o,Jn+"-"+e),this._engine.statesByElement.set(o,u=new Map));let h=u.get(e),_=new ii(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&_.absorbOptions(h.options),u.set(e,_),h||(h=Ro),!(_.value===ti)&&h.value===_.value){if(!Qg(h.params,_.params)){let F=[],te=a.matchStyles(h.value,h.params,F),ie=a.matchStyles(_.value,_.params,F);F.length?this._engine.reportError(F):this._engine.afterFlush(()=>{Gt(o,te),st(o,ie)})}return}let N=qe(this._engine.playersByElement,o,[]);N.forEach(F=>{F.namespaceId==this.id&&F.triggerName==e&&F.queued&&F.destroy()});let V=a.matchTransition(h.value,_.value,o,_.params),A=!1;if(!V){if(!i)return;V=a.fallbackTransition,A=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:e,transition:V,fromState:h,toState:_,player:c,isFallbackTransition:A}),A||(it(o,Ql),c.onStart(()=>{Ln(o,Ql)})),c.onDone(()=>{let F=this.players.indexOf(c);F>=0&&this.players.splice(F,1);let te=this._engine.playersByElement.get(o);if(te){let ie=te.indexOf(c);ie>=0&&te.splice(ie,1)}}),this.players.push(c),N.push(c),c}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(e=>e.delete(o)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(i=>i.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);let e=this._engine.playersByElement.get(o);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,e){let n=this._engine.driver.query(o,Zn,!0);n.forEach(i=>{if(i[lt])return;let a=this._engine.fetchNamespacesByElement(i);a.size?a.forEach(c=>c.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(o,e,n,i){let a=this._engine.statesByElement.get(o),c=new Map;if(a){let u=[];if(a.forEach((h,_)=>{if(c.set(_,h.value),this._triggers.has(_)){let v=this.trigger(o,_,ti,i);v&&u.push(v)}}),u.length)return this._engine.markElementAsRemoved(this.id,o,!0,e,c),n&&kt(u).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){let e=this._elementListeners.get(o),n=this._engine.statesByElement.get(o);if(e&&n){let i=new Set;e.forEach(a=>{let c=a.name;if(i.has(c))return;i.add(c);let h=this._triggers.get(c).fallbackTransition,_=n.get(c)||Ro,v=new ii(ti),k=new oi(this.id,c,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:c,transition:h,fromState:_,toState:v,player:k,isFallbackTransition:!0})})}}removeNode(o,e){let n=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,e),this.triggerLeaveAnimation(o,e,!0))return;let i=!1;if(n.totalAnimations){let a=n.players.length?n.playersByQueriedElement.get(o):[];if(a&&a.length)i=!0;else{let c=o;for(;c=c.parentNode;)if(n.statesByElement.get(c)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(o),i)n.markElementAsRemoved(this.id,o,!1,e);else{let a=o[lt];(!a||a===oc)&&(n.afterFlush(()=>this.clearElementCache(o)),n.destroyInnerAnimations(o),n._onRemovalComplete(o,e))}}insertNode(o,e){it(o,this._hostClassName)}drainQueuedTransitions(o){let e=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let a=n.element,c=this._elementListeners.get(a);c&&c.forEach(u=>{if(u.name==n.triggerName){let h=Ii(a,n.triggerName,n.fromState.value,n.toState.value);h._data=o,Oi(n.player,u.phase,h,u.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((n,i)=>{let a=n.transition.ast.depCount,c=i.transition.ast.depCount;return a==0||c==0?a-c:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(o){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}},qo=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=(o,e)=>{};_onRemovalComplete(o,e){this.onRemovalComplete(o,e)}constructor(o,e,n){this.bodyNode=o,this.driver=e,this._normalizer=n}get queuedPlayers(){let o=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&o.push(n)})}),o}createNamespace(o,e){let n=new $o(o,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[o]=n}_balanceNamespaceList(o,e){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let c=!1,u=this.driver.getParentElement(e);for(;u;){let h=i.get(u);if(h){let _=n.indexOf(h);n.splice(_+1,0,o),c=!0;break}u=this.driver.getParentElement(u)}c||n.unshift(o)}else n.push(o);return i.set(e,o),o}register(o,e){let n=this._namespaceLookup[o];return n||(n=this.createNamespace(o,e)),n}registerTrigger(o,e,n){let i=this._namespaceLookup[o];i&&i.register(e,n)&&this.totalAnimations++}destroy(o,e){o&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(o);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(e),delete this._namespaceLookup[o]}))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){let e=new Set,n=this.statesByElement.get(o);if(n){for(let i of n.values())if(i.namespaceId){let a=this._fetchNamespace(i.namespaceId);a&&e.add(a)}}return e}trigger(o,e,n,i){if(Bi(e)){let a=this._fetchNamespace(o);if(a)return a.trigger(e,n,i),!0}return!1}insertNode(o,e,n,i){if(!Bi(e))return;let a=e[lt];if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;let c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(o){let c=this._fetchNamespace(o);c&&c.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,e){e?this.disabledNodes.has(o)||(this.disabledNodes.add(o),it(o,Io)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),Ln(o,Io))}removeNode(o,e,n){if(Bi(e)){let i=o?this._fetchNamespace(o):null;i?i.removeNode(e,n):this.markElementAsRemoved(o,e,!1,n);let a=this.namespacesByHostElement.get(e);a&&a.id!==o&&a.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(o,e,n,i,a){this.collectedLeaveElements.push(e),e[lt]={namespaceId:o,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:a}}listen(o,e,n,i,a){return Bi(e)?this._fetchNamespace(o).listen(e,n,i,a):()=>{}}_buildInstruction(o,e,n,i,a){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,n,i,o.fromState.options,o.toState.options,e,a)}destroyInnerAnimations(o){let e=this.driver.query(o,Zn,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(o,Li,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(o){let e=this.playersByElement.get(o);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(o){let e=this.playersByQueriedElement.get(o);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return kt(this.players).onDone(()=>o());o()})}processLeaveNode(o){let e=o[lt];if(e&&e.setForRemoval){if(o[lt]=oc,e.namespaceId){this.destroyInnerAnimations(o);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(o)}this._onRemovalComplete(o,e.setForRemoval)}o.classList?.contains(Io)&&this.markElementAsDisabled(o,!1),this.driver.query(o,zg,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(o=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];it(i,Bg)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,o)}finally{for(let i=0;i<n.length;i++)n[i]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?kt(e).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(o){throw Nl(o)}_flushAnimations(o,e){let n=new ni,i=[],a=new Map,c=[],u=new Map,h=new Map,_=new Map,v=new Set;this.disabledNodes.forEach(P=>{v.add(P);let I=this.driver.query(P,Vg,!0);for(let L=0;L<I.length;L++)v.add(I[L])});let k=this.bodyNode,N=Array.from(this.statesByElement.keys()),V=Jl(N,this.collectedEnterElements),A=new Map,F=0;V.forEach((P,I)=>{let L=Mo+F++;A.set(I,L),P.forEach(Q=>it(Q,L))});let te=[],ie=new Set,fe=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){let I=this.collectedLeaveElements[P],L=I[lt];L&&L.setForRemoval&&(te.push(I),ie.add(I),L.hasAnimation?this.driver.query(I,jg,!0).forEach(Q=>ie.add(Q)):fe.add(I))}let Ce=new Map,he=Jl(N,Array.from(ie));he.forEach((P,I)=>{let L=Fi+F++;Ce.set(I,L),P.forEach(Q=>it(Q,L))}),o.push(()=>{V.forEach((P,I)=>{let L=A.get(I);P.forEach(Q=>Ln(Q,L))}),he.forEach((P,I)=>{let L=Ce.get(I);P.forEach(Q=>Ln(Q,L))}),te.forEach(P=>{this.processLeaveNode(P)})});let Tt=[],Ye=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(L=>{let Q=L.player,Se=L.element;if(Tt.push(Q),this.collectedEnterElements.length){let Ie=Se[lt];if(Ie&&Ie.setForMove){if(Ie.previousTriggersValues&&Ie.previousTriggersValues.has(L.triggerName)){let Qt=Ie.previousTriggersValues.get(L.triggerName),Xe=this.statesByElement.get(L.element);if(Xe&&Xe.has(L.triggerName)){let ai=Xe.get(L.triggerName);ai.value=Qt,Xe.set(L.triggerName,ai)}}Q.destroy();return}}let dt=!k||!this.driver.containsElement(k,Se),He=Ce.get(Se),Pt=A.get(Se),ge=this._buildInstruction(L,n,Pt,He,dt);if(ge.errors&&ge.errors.length){Ye.push(ge);return}if(dt){Q.onStart(()=>Gt(Se,ge.fromStyles)),Q.onDestroy(()=>st(Se,ge.toStyles)),i.push(Q);return}if(L.isFallbackTransition){Q.onStart(()=>Gt(Se,ge.fromStyles)),Q.onDestroy(()=>st(Se,ge.toStyles)),i.push(Q);return}let Qo=[];ge.timelines.forEach(Ie=>{Ie.stretchStartingKeyframe=!0,this.disabledNodes.has(Ie.element)||Qo.push(Ie)}),ge.timelines=Qo,n.append(Se,ge.timelines);let dc={instruction:ge,player:Q,element:Se};c.push(dc),ge.queriedElements.forEach(Ie=>qe(u,Ie,[]).push(Q)),ge.preStyleProps.forEach((Ie,Qt)=>{if(Ie.size){let Xe=h.get(Qt);Xe||h.set(Qt,Xe=new Set),Ie.forEach((ai,Xi)=>Xe.add(Xi))}}),ge.postStyleProps.forEach((Ie,Qt)=>{let Xe=_.get(Qt);Xe||_.set(Qt,Xe=new Set),Ie.forEach((ai,Xi)=>Xe.add(Xi))})});if(Ye.length){let P=[];Ye.forEach(I=>{P.push(Vl(I.triggerName,I.errors))}),Tt.forEach(I=>I.destroy()),this.reportError(P)}let Pe=new Map,Oe=new Map;c.forEach(P=>{let I=P.element;n.has(I)&&(Oe.set(I,I),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,Pe))}),i.forEach(P=>{let I=P.element;this._getPreviousPlayers(I,!1,P.namespaceId,P.triggerName,null).forEach(Q=>{qe(Pe,I,[]).push(Q),Q.destroy()})});let bt=te.filter(P=>Zl(P,h,_)),Ct=new Map;Xl(Ct,this.driver,fe,_,at).forEach(P=>{Zl(P,h,_)&&bt.push(P)});let ct=new Map;V.forEach((P,I)=>{Xl(ct,this.driver,new Set(P),h,jn)}),bt.forEach(P=>{let I=Ct.get(P),L=ct.get(P);Ct.set(P,new Map([...I?.entries()??[],...L?.entries()??[]]))});let cn=[],dn=[],Go={};c.forEach(P=>{let{element:I,player:L,instruction:Q}=P;if(n.has(I)){if(v.has(I)){L.onDestroy(()=>st(I,Q.toStyles)),L.disabled=!0,L.overrideTotalTime(Q.totalTime),i.push(L);return}let Se=Go;if(Oe.size>1){let He=I,Pt=[];for(;He=He.parentNode;){let ge=Oe.get(He);if(ge){Se=ge;break}Pt.push(He)}Pt.forEach(ge=>Oe.set(ge,Se))}let dt=this._buildAnimation(L.namespaceId,Q,Pe,a,ct,Ct);if(L.setRealPlayer(dt),Se===Go)cn.push(L);else{let He=this.playersByElement.get(Se);He&&He.length&&(L.parentPlayer=kt(He)),i.push(L)}}else Gt(I,Q.fromStyles),L.onDestroy(()=>st(I,Q.toStyles)),dn.push(L),v.has(I)&&i.push(L)}),dn.forEach(P=>{let I=a.get(P.element);if(I&&I.length){let L=kt(I);P.setRealPlayer(L)}}),i.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P<te.length;P++){let I=te[P],L=I[lt];if(Ln(I,Fi),L&&L.hasAnimation)continue;let Q=[];if(u.size){let dt=u.get(I);dt&&dt.length&&Q.push(...dt);let He=this.driver.query(I,Li,!0);for(let Pt=0;Pt<He.length;Pt++){let ge=u.get(He[Pt]);ge&&ge.length&&Q.push(...ge)}}let Se=Q.filter(dt=>!dt.destroyed);Se.length?Wg(this,I,Se):this.processLeaveNode(I)}return te.length=0,cn.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();let I=this.players.indexOf(P);this.players.splice(I,1)}),P.play()}),cn}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,e,n,i,a){let c=[];if(e){let u=this.playersByQueriedElement.get(o);u&&(c=u)}else{let u=this.playersByElement.get(o);if(u){let h=!a||a==ti;u.forEach(_=>{_.queued||!h&&_.triggerName!=i||c.push(_)})}}return(n||i)&&(c=c.filter(u=>!(n&&n!=u.namespaceId||i&&i!=u.triggerName))),c}_beforeAnimationBuild(o,e,n){let i=e.triggerName,a=e.element,c=e.isRemovalTransition?void 0:o,u=e.isRemovalTransition?void 0:i;for(let h of e.timelines){let _=h.element,v=_!==a,k=qe(n,_,[]);this._getPreviousPlayers(_,v,c,u,e.toState).forEach(V=>{let A=V.getRealPlayer();A.beforeDestroy&&A.beforeDestroy(),V.destroy(),k.push(V)})}Gt(a,e.fromStyles)}_buildAnimation(o,e,n,i,a,c){let u=e.triggerName,h=e.element,_=[],v=new Set,k=new Set,N=e.timelines.map(A=>{let F=A.element;v.add(F);let te=F[lt];if(te&&te.removedBeforeQueried)return new Zt(A.duration,A.delay);let ie=F!==h,fe=Gg((n.get(F)||Ug).map(Pe=>Pe.getRealPlayer())).filter(Pe=>{let Oe=Pe;return Oe.element?Oe.element===F:!1}),Ce=a.get(F),he=c.get(F),Tt=yo(this._normalizer,A.keyframes,Ce,he),Ye=this._buildPlayer(A,Tt,fe);if(A.subTimeline&&i&&k.add(F),ie){let Pe=new oi(o,u,F);Pe.setRealPlayer(Ye),_.push(Pe)}return Ye});_.forEach(A=>{qe(this.playersByQueriedElement,A.element,[]).push(A),A.onDone(()=>qg(this.playersByQueriedElement,A.element,A))}),v.forEach(A=>it(A,Po));let V=kt(N);return V.onDestroy(()=>{v.forEach(A=>Ln(A,Po)),st(h,e.toStyles)}),k.forEach(A=>{qe(i,A,[]).push(V)}),V}_buildPlayer(o,e,n){return e.length>0?this.driver.animate(o.element,e,o.duration,o.delay,o.easing,n):new Zt(o.duration,o.delay)}},oi=class{namespaceId;triggerName;element;_player=new Zt;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(o,e,n){this.namespaceId=o,this.triggerName=e,this.element=n}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((e,n)=>{e.forEach(i=>Oi(o,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){let e=this._player;e.triggerCallback&&o.onStart(()=>e.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,e){qe(this._queuedCallbacks,o,[]).push(e)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){let e=this._player;e.triggerCallback&&e.triggerCallback(o)}};function qg(t,o,e){let n=t.get(o);if(n){if(n.length){let i=n.indexOf(e);n.splice(i,1)}n.length==0&&t.delete(o)}return n}function Kg(t){return t??null}function Bi(t){return t&&t.nodeType===1}function Hg(t){return t=="start"||t=="done"}function Yl(t,o){let e=t.style.display;return t.style.display=o??"none",e}function Xl(t,o,e,n,i){let a=[];e.forEach(h=>a.push(Yl(h)));let c=[];n.forEach((h,_)=>{let v=new Map;h.forEach(k=>{let N=o.computeStyle(_,k,i);v.set(k,N),(!N||N.length==0)&&(_[lt]=$g,c.push(_))}),t.set(_,v)});let u=0;return e.forEach(h=>Yl(h,a[u++])),c}function Jl(t,o){let e=new Map;if(t.forEach(u=>e.set(u,[])),o.length==0)return e;let n=1,i=new Set(o),a=new Map;function c(u){if(!u)return n;let h=a.get(u);if(h)return h;let _=u.parentNode;return e.has(_)?h=_:i.has(_)?h=n:h=c(_),a.set(u,h),h}return o.forEach(u=>{let h=c(u);h!==n&&e.get(h).push(u)}),e}function it(t,o){t.classList?.add(o)}function Ln(t,o){t.classList?.remove(o)}function Wg(t,o,e){kt(e).onDone(()=>t.processLeaveNode(o))}function Gg(t){let o=[];return ac(t,o),o}function ac(t,o){for(let e=0;e<t.length;e++){let n=t[e];n instanceof _i?ac(n.players,o):o.push(n)}}function Qg(t,o){let e=Object.keys(t),n=Object.keys(o);if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++){let a=e[i];if(!o.hasOwnProperty(a)||t[a]!==o[a])return!1}return!0}function Zl(t,o,e){let n=e.get(t);if(!n)return!1;let i=o.get(t);return i?n.forEach(a=>i.add(a)):o.set(t,n),e.delete(t),!0}var Dn=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(o,e)=>{};constructor(o,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new qo(o.body,e,n),this._timelineEngine=new Uo(o.body,e,n),this._transitionEngine.onRemovalComplete=(i,a)=>this.onRemovalComplete(i,a)}registerTrigger(o,e,n,i,a){let c=o+"-"+i,u=this._triggerCache[c];if(!u){let h=[],_=[],v=tc(this._driver,a,h,_);if(h.length)throw Pl(i,h);u=Lg(i,v,this._normalizer),this._triggerCache[c]=u}this._transitionEngine.registerTrigger(e,i,u)}register(o,e){this._transitionEngine.register(o,e)}destroy(o,e){this._transitionEngine.destroy(o,e)}onInsert(o,e,n,i){this._transitionEngine.insertNode(o,e,n,i)}onRemove(o,e,n){this._transitionEngine.removeNode(o,e,n)}disableAnimations(o,e){this._transitionEngine.markElementAsDisabled(o,e)}process(o,e,n,i){if(n.charAt(0)=="@"){let[a,c]=wo(n),u=i;this._timelineEngine.command(a,e,c,u)}else this._transitionEngine.trigger(o,e,n,i)}listen(o,e,n,i,a){if(n.charAt(0)=="@"){let[c,u]=wo(n);return this._timelineEngine.listen(c,e,u,a)}return this._transitionEngine.listen(o,e,n,i,a)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(o){this._transitionEngine.afterFlushAnimationsDone(o)}};function Yg(t,o){let e=null,n=null;return Array.isArray(o)&&o.length?(e=Fo(o[0]),o.length>1&&(n=Fo(o[o.length-1]))):o instanceof Map&&(e=Fo(o)),e||n?new Xg(t,e,n):null}var Xg=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i;let a=t.initialStylesByElement.get(e);a||t.initialStylesByElement.set(e,a=new Map),this._initialStyles=a}start(){this._state<1&&(this._startStyles&&st(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(st(this._element,this._initialStyles),this._endStyles&&(st(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Gt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gt(this._element,this._endStyles),this._endStyles=null),st(this._element,this._initialStyles),this._state=3)}}return t})();function Fo(t){let o=null;return t.forEach((e,n)=>{Jg(n)&&(o=o||new Map,o.set(n,e))}),o}function Jg(t){return t==="display"||t==="position"}var Wi=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(o,e,n,i){this.element=o,this.keyframes=e,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let o=this.keyframes,e=this._triggerWebAnimation(this.element,o,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=o.length?o[o.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(o){let e=[];return o.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(o,e,n){let i=this._convertKeyframesToObject(e);try{return o.animate(i,n)}catch{return null}}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){let o=this._buildPlayer();o&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),o.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=!1,this._finished=!1,this._started=!1,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=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=o*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 o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&o.set(i,this._finished?n:Ni(this.element,i))}),this.currentSnapshot=o}triggerCallback(o){let e=o==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Gi=class{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}containsElement(o,e){return So(o,e)}getParentElement(o){return Ri(o)}query(o,e,n){return ko(o,e,n)}computeStyle(o,e,n){return Ni(o,e)}animate(o,e,n,i,a,c=[]){let u=i==0?"both":"forwards",h={duration:n,delay:i,fill:u};a&&(h.easing=a);let _=new Map,v=c.filter(V=>V instanceof Wi);Ul(n,i)&&v.forEach(V=>{V.currentSnapshot.forEach((A,F)=>_.set(F,A))});let k=Bl(e).map(V=>new Map(V));k=$l(o,k,_);let N=Yg(o,k);return new Wi(o,k,h,N)}};var ji="@",rc="@.disabled",Qi=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(o,e,n,i){this.namespaceId=o,this.delegate=e,this.engine=n,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(o){this.delegate.destroyNode?.(o)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(o,e){return this.delegate.createElement(o,e)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,e){this.delegate.appendChild(o,e),this.engine.onInsert(this.namespaceId,e,o,!1)}insertBefore(o,e,n,i=!0){this.delegate.insertBefore(o,e,n),this.engine.onInsert(this.namespaceId,e,o,i)}removeChild(o,e,n,i){if(i){this.delegate.removeChild(o,e,n,i);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(o,e){return this.delegate.selectRootElement(o,e)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,e,n,i){this.delegate.setAttribute(o,e,n,i)}removeAttribute(o,e,n){this.delegate.removeAttribute(o,e,n)}addClass(o,e){this.delegate.addClass(o,e)}removeClass(o,e){this.delegate.removeClass(o,e)}setStyle(o,e,n,i){this.delegate.setStyle(o,e,n,i)}removeStyle(o,e,n){this.delegate.removeStyle(o,e,n)}setProperty(o,e,n){e.charAt(0)==ji&&e==rc?this.disableAnimations(o,!!n):this.delegate.setProperty(o,e,n)}setValue(o,e){this.delegate.setValue(o,e)}listen(o,e,n,i){return this.delegate.listen(o,e,n,i)}disableAnimations(o,e){this.engine.disableAnimations(o,e)}},Ko=class extends Qi{factory;constructor(o,e,n,i,a){super(e,n,i,a),this.factory=o,this.namespaceId=e}setProperty(o,e,n){e.charAt(0)==ji?e.charAt(1)=="."&&e==rc?(n=n===void 0?!0:!!n,this.disableAnimations(o,n)):this.engine.process(this.namespaceId,o,e.slice(1),n):this.delegate.setProperty(o,e,n)}listen(o,e,n,i){if(e.charAt(0)==ji){let a=Zg(o),c=e.slice(1),u="";return c.charAt(0)!=ji&&([c,u]=e_(c)),this.engine.listen(this.namespaceId,a,c,u,h=>{let _=h._data||-1;this.factory.scheduleListenerCallback(_,n,h)})}return this.delegate.listen(o,e,n,i)}};function Zg(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function e_(t){let o=t.indexOf("."),e=t.substring(0,o),n=t.slice(o+1);return[e,n]}var Yi=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(o,e,n){this.delegate=o,this.engine=e,this._zone=n,e.onRemovalComplete=(i,a)=>{a?.removeChild(null,i)}}createRenderer(o,e){let i=this.delegate.createRenderer(o,e);if(!o||!e?.data?.animation){let _=this._rendererCache,v=_.get(i);if(!v){let k=()=>_.delete(i);v=new Qi("",i,this.engine,k),_.set(i,v)}return v}let a=e.id,c=e.id+"-"+this._currentId;this._currentId++,this.engine.register(c,o);let u=_=>{Array.isArray(_)?_.forEach(u):this.engine.registerTrigger(a,c,o,_.name,_)};return e.data.animation.forEach(u),new Ko(this,c,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(o,e,n){if(o>=0&&o<this._microtaskId){this._zone.run(()=>e(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>
35{i.forEach(a=>{let[c,u]=a;c(u)}),this._animationCallbacksBuffer=[]})}),i.push([e,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(o){this.engine.flush(),this.delegate.componentReplaced?.(o)}};var n_=(()=>{class t extends Dn{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(be(Ot),be(sn),be(ln))};static \u0275prov=H({token:t,factory:t.\u0275fac})}return t})();function i_(){return new Ui}function o_(t,o,e){return new Yi(t,o,e)}var sc=[{provide:ln,useFactory:i_},{provide:Dn,useClass:n_},{provide:ra,useFactory:o_,deps:[xa,Dn,gn]}],a_=[{provide:sn,useClass:Ho},{provide:eo,useValue:"NoopAnimations"},...sc],sw=[{provide:sn,useFactory:()=>new Gi},{provide:eo,useFactory:()=>"BrowserAnimations"},...sc];function lc(){return[...a_]}var r_={bgsColor:"red",bgsPosition:Za.centerCenter,bgsSize:40,bgsType:no.rectangleBounce,fgsType:no.threeStrings,fgsSize:150,fgsColor:"#fff",pbDirection:er.leftToRight,pbThickness:4,text:"Loading..."},s_={validation:!1}
35,l_={timeOut:5e3,positionClass:"toast-top-right",preventDuplicates:!0,progressBar:!0,closeButton:!0,newestOnTop:!0},c_={colorTheme:"theme-default",customScrollbars:!0,banner:"",bannerWidth:"fullwidth",pageWidth:100,bgPage:"",bgMain:"",directorLogo:"",hqLogo:"",smallLogo:"",foldedLogo:"",layout:{style:"vertical-layout-1",width:"fullwidth",navbar:{primaryBackground:"custom-primary-900",secondaryBackground:"grey-100",customPrimaryBackground:"",customPrimaryForeground:"",customSecondaryBackground:"",customSecondaryForeground:"",folded:!1,hidden:!1,position:"left",variant:"vertical-style-2"},toolbar:{toolBarLogo:"",customBackgroundColor:!1,background:"fuse-white-500",customToolbarBackground:"",customToolbarForeground:"",hidden:!1,position:"below-static"},footer:{background:"",customFooterBackground:"",customFooterForeground:"",customBackgroundColor:!0,hidden:!1,position:"below-static",email:"",facebook:"",instagram:"",twitter:"",youtube:"",linkedin:"",forum:""},sidepanel:{hidden:!1,position:"right"},pageheader:{primaryBackground:"custom-warn-500",customHeaderPrimaryBackground:"",customHeaderPrimaryForeground:""},linkActiveColor:{primaryBackground:"custom-accent-500",customLinkBackground:"",customLinkForeground:""}}},cc={providers:[lc(),ka(Ta()),Ia(pl,Ra({scrollPositionRestoration:"enabled"}),Fa(t=>{console.error("Navigation failed:",t)})),gr(),{provide:hr,useClass:cs},is(s_),Cn,Me,Ti,os,X,Te,ds,ro,{provide:la,useFactory:t=>()=>t.initializeAsync(),deps:[ro],multi:!0},ca(()=>{R(as)}),{provide:si,useClass:ll,multi:!0},{provide:si,useClass:cl,multi:!0},{provide:si,useClass:sl,multi:!0},{provide:_a,useClass:ba},{provide:ga,useValue:"USD"},{provide:ps,useValue:$.tinymce.scriptUrl},{provide:Zi,useFactory:t=>$.production?new rl(t):new Zi,deps:[X]},Mr,rr(l_),ta(hi.forRoot(r_),wi.forRoot({provide:Er,useFactory:ss})),...us.forRoot().providers,{provide:io,useValue:c_},{provide:Z,useClass:Z,deps:[Lt,re,ri,ft,io]}]};$.production&&void 0;ya(al,cc).catch(t=>console.error(t));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.