mirror of
https://github.com/block-core/angor-hub-old.git
synced 2025-12-17 09:54:19 +01:00
1 line
1.9 MiB
1 line
1.9 MiB
(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{3365:(o,s,r)=>{"use strict";r.d(s,{F:()=>st});let i=(()=>{class ht{static{this.standard="cubic-bezier(0.4, 0.0, 0.2, 1)"}static{this.deceleration="cubic-bezier(0.0, 0.0, 0.2, 1)"}static{this.acceleration="cubic-bezier(0.4, 0.0, 1, 1)"}static{this.sharp="cubic-bezier(0.4, 0.0, 0.6, 1)"}}return ht})(),a=(()=>{class ht{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return ht})();var c=r(9969);const ae=(ht,vt,at,Xt,ln=`${a.entering} ${i.deceleration}`,yn=`${a.exiting} ${i.acceleration}`)=>(0,c.hZ)(ht,[(0,c.wk)("void",(0,c.iF)(vt)),(0,c.wk)("*",(0,c.iF)(at)),(0,c.kY)("void => false, * => false",[]),(0,c.kY)("void => *",(0,c.i0)(Xt||ln),{params:{timings:ln}}),(0,c.kY)("* => void",(0,c.i0)(Xt||yn),{params:{timings:yn}})]),st=[(0,c.hZ)("expandCollapse",[(0,c.wk)("void, collapsed",(0,c.iF)({height:"0"})),(0,c.wk)("*, expanded",(0,c.iF)("*")),(0,c.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,c.kY)("void <=> *, collapsed <=> expanded",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeIn",[(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInTop",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInBottom",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInLeft",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInRight",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeOut",[(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutTop",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutBottom",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutLeft",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutRight",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("shake",[(0,c.kY)("void => false",[]),(0,c.kY)("void => *, * => true",[(0,c.i0)("{{timings}}",(0,c.i7)([(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,c.hZ)("slideInTop",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInBottom",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInLeft",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInRight",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideOutTop",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutBottom",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutLeft",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutRight",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),ae("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),ae("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},7857:(o,s,r)=>{"use strict";r.d(s,{$w:()=>At,lX:()=>c,Tv:()=>Xa});var i=r(3365),a=r(4438);let c=(()=>{class Y{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(re,Xe){this._componentRegistry.set(re,Xe)}deregisterComponent(re){this._componentRegistry.delete(re)}getComponent(re){return this._componentRegistry.get(re)}storeNavigation(re,Xe){this._navigationStore.set(re,Xe)}getNavigation(re){return this._navigationStore.get(re)??[]}deleteNavigation(re){this._navigationStore.has(re)||console.warn(`Navigation with the key '${re}' does not exist.`),this._navigationStore.delete(re)}getFlatNavigation(re,Xe=[]){for(const wt of re)"basic"===wt.type?Xe.push(wt):wt.children&&this.getFlatNavigation(wt.children,Xe);return Xe}getItem(re,Xe){for(const wt of Xe){if(wt.id===re)return wt;if(wt.children){const Ln=this.getItem(re,wt.children);if(Ln)return Ln}}return null}getItemParent(re,Xe,wt){for(const Ln of Xe){if(Ln.id===re)return wt;if(Ln.children){const hn=this.getItemParent(re,Ln.children,Ln);if(hn)return hn}}return null}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();var y=r(7209),w=r(2771),C=r(1413),T=r(177),S=r(9213),A=r(9115),I=r(4823),N=r(5245),G=r(6977);const Z=Y=>({"angor-horizontal-navigation-item-active-forced":Y}),te=Y=>[Y];function be(Y,je){1&Y&&a.eu8(0)}function me(Y,je){if(1&Y&&(a.j41(0,"div",2),a.DNE(1,be,1,0,"ng-container",7),a.k0s()),2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,hn.item.active))("routerLink",a.eq3(12,te,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function pe(Y,je){1&Y&&a.eu8(0)}function Te(Y,je){if(1&Y&&(a.j41(0,"a",3),a.DNE(1,pe,1,0,"ng-container",7),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function xe(Y,je){1&Y&&a.eu8(0)}function Re(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",8),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,xe,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Me(Y,je){1&Y&&a.eu8(0)}function Ce(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",9),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,Me,1,0,"ng-container",7),a.k0s()}if(2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,hn.item.active))("routerLink",a.eq3(12,te,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function le(Y,je){1&Y&&a.eu8(0)}function ae(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",10),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,le,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Ie(Y,je){1&Y&&a.eu8(0)}function $e(Y,je){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,Ie,1,0,"ng-container",7),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function st(Y,je){1&Y&&a.eu8(0)}function ht(Y,je){if(1&Y&&(a.j41(0,"div",6),a.DNE(1,st,1,0,"ng-container",7),a.k0s()),2&Y){a.XpG();const re=a.sdS(9);a.R7$(),a.Y8G("ngTemplateOutlet",re)}}function vt(Y,je){if(1&Y&&a.nrm(0,"mat-icon",11),2&Y){const re=a.XpG(2);a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function at(Y,je){if(1&Y&&(a.j41(0,"div",15)(1,"span",14),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Xt(Y,je){if(1&Y&&(a.j41(0,"div",16)(1,"div",17),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function ln(Y,je){if(1&Y&&(a.DNE(0,vt,1,2,"mat-icon",11),a.j41(1,"div",12)(2,"div",13)(3,"span",14),a.EFF(4),a.k0s()(),a.DNE(5,at,3,2,"div",15),a.k0s(),a.DNE(6,Xt,3,2,"div",16)),2&Y){const re=a.XpG();a.vxM(re.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.title),a.R7$(),a.SpI(" ",re.item.title," "),a.R7$(),a.vxM(re.item.subtitle?5:-1),a.R7$(),a.vxM(re.item.badge?6:-1)}}let yn=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.B}ngOnInit(){this.isActiveMatchOptions=this.item.isActiveMatchOptions??this.item.exactMatch?this._angorUtilsService.exactMatchOptions:this._angorUtilsService.subsetMatchOptions,this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._changeDetectorRef.markForCheck(),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item","angor-horizontal-navigation-item-disabled"],[4,"ngTemplateOutlet"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",1),a.DNE(1,me,2,14,"div",2)(2,Te,2,4,"a",3)(3,Re,2,5,"div",4)(4,Ce,2,14,"div",2)(5,ae,2,4,"a",5)(6,$e,2,5,"div",4)(7,ht,2,1,"div",6),a.k0s(),a.DNE(8,ln,7,5,"ng-template",null,0,a.C5r)),2&Xe&&(a.AVh("angor-horizontal-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.vxM(!wt.item.link||wt.item.externalLink||wt.item.function||wt.item.disabled?-1:1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&!wt.item.function&&!wt.item.disabled?2:-1),a.R7$(),a.vxM(wt.item.link||!wt.item.function||wt.item.disabled?-1:3),a.R7$(),a.vxM(wt.item.link&&!wt.item.externalLink&&wt.item.function&&!wt.item.disabled?4:-1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&wt.item.function&&!wt.item.disabled?5:-1),a.R7$(),a.vxM(wt.item.link||wt.item.function||wt.item.disabled?-1:6),a.R7$(),a.vxM(wt.item.disabled?7:-1))},dependencies:[T.YU,N.Wk,N.wQ,I.uc,I.oV,T.T3,A.Cn,A.fb,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),$n=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();const bn=["matMenu"],Qe=(Y,je)=>({"angor-horizontal-navigation-menu-active":Y,"angor-horizontal-navigation-menu-active-forced":je}),bt=Y=>({$implicit:Y}),ze=(Y,je)=>({"angor-horizontal-navigation-item-disabled":Y,"angor-horizontal-navigation-item-active-forced":je});function Fe(Y,je){1&Y&&a.eu8(0)}function Ft(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",6,2),a.bIt("onMenuOpen",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.triggerChangeDetection())})("onMenuClose",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.triggerChangeDetection())}),a.DNE(2,Fe,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.sdS(1),Xe=a.XpG(),wt=a.sdS(2),Ln=a.sdS(6);a.Y8G("ngClass",a.l_i(4,Qe,re.menuOpen,Xe.item.active))("matMenuTriggerFor",wt),a.R7$(2),a.Y8G("ngTemplateOutlet",Ln)("ngTemplateOutletContext",a.eq3(7,bt,Xe.item))}}function Ke(Y,je){if(1&Y&&(a.j41(0,"div",8),a.nrm(1,"angor-horizontal-navigation-basic-item",11),a.k0s()),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("disabled",re.disabled),a.R7$(),a.Y8G("item",re)("name",Xe.name)}}function dt(Y,je){1&Y&&a.eu8(0)}function Ge(Y,je){if(1&Y&&(a.j41(0,"div",9),a.DNE(1,dt,1,0,"ng-container",7),a.nrm(2,"angor-horizontal-navigation-branch-item",12,3),a.k0s()),2&Y){const re=a.sdS(3),Xe=a.XpG(2).$implicit,wt=a.XpG(),Ln=a.sdS(6);a.Y8G("disabled",Xe.disabled)("matMenuTriggerFor",re.matMenu),a.R7$(),a.Y8G("ngTemplateOutlet",Ln)("ngTemplateOutletContext",a.eq3(7,bt,Xe)),a.R7$(),a.Y8G("child",!0)("item",Xe)("name",wt.name)}}function He(Y,je){if(1&Y&&(a.j41(0,"div",10),a.nrm(1,"angor-horizontal-navigation-divider-item",11),a.k0s()),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.R7$(),a.Y8G("item",re)("name",Xe.name)}}function mt(Y,je){if(1&Y&&a.DNE(0,Ke,2,3,"div",8)(1,Ge,4,9,"div",9)(2,He,2,2,"div",10),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("aside"===re.type||"collapsable"===re.type||"group"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1)}}function se(Y,je){if(1&Y&&a.DNE(0,mt,3,3),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Ze(Y,je){if(1&Y&&a.nrm(0,"mat-icon",15),2&Y){const re=a.XpG().$implicit;a.Y8G("ngClass",null==re.classes?null:re.classes.icon)("svgIcon",re.icon)}}function Rt(Y,je){if(1&Y&&(a.j41(0,"div",19)(1,"span",18),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",null==re.classes?null:re.classes.subtitle),a.R7$(),a.SpI(" ",re.subtitle," ")}}function Jt(Y,je){if(1&Y&&(a.j41(0,"div",20)(1,"div",21),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",re.badge.classes),a.R7$(),a.SpI(" ",re.badge.title," ")}}function fn(Y,je){if(1&Y&&(a.j41(0,"div",13)(1,"div",14),a.DNE(2,Ze,1,2,"mat-icon",15),a.j41(3,"div",16)(4,"div",17)(5,"span",18),a.EFF(6),a.k0s()(),a.DNE(7,Rt,3,2,"div",19),a.k0s(),a.DNE(8,Jt,3,2,"div",20),a.k0s()()),2&Y){const re=je.$implicit;a.AVh("angor-horizontal-navigation-item-has-subtitle",!!re.subtitle),a.Y8G("ngClass",null==re.classes?null:re.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.l_i(10,ze,re.disabled,re.active))("matTooltip",re.tooltip||""),a.R7$(),a.vxM(re.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==re.classes?null:re.classes.title),a.R7$(),a.SpI(" ",re.title," "),a.R7$(),a.vxM(re.subtitle?7:-1),a.R7$(),a.vxM(re.badge?8:-1)}}let Gn=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this.child=!1,this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(Xe,wt){if(1&Xe&&a.GBs(bn,7),2&Xe){let Ln;a.mGM(Ln=a.lsd())&&(wt.matMenu=Ln.first)}},inputs:{child:"child",item:"item",name:"name"},decls:7,vars:2,consts:[["matMenu","matMenu"],["itemTemplate",""],["trigger","matMenuTrigger"],["branch",""],[3,"ngClass","matMenuTriggerFor"],[1,"angor-horizontal-navigation-menu-panel",3,"overlapTrigger"],[3,"onMenuOpen","onMenuClose","ngClass","matMenuTriggerFor"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item"],[3,"item","name"],[3,"child","item","name"],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.DNE(0,Ft,3,9,"div",4),a.j41(1,"mat-menu",5,0),a.Z7z(3,se,1,1,null,null,wt.trackByFn,!0),a.k0s(),a.DNE(5,fn,9,13,"ng-template",null,1,a.C5r)),2&Xe&&(a.vxM(wt.child?-1:0),a.R7$(),a.Y8G("overlapTrigger",!1),a.R7$(2),a.Dyx(wt.item.children))},dependencies:()=>[Y,T.YU,A.Cn,A.kk,A.fb,A.Cp,T.T3,yn,$n,I.uc,I.oV,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),Nt=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();function Qt(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-basic-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function an(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-branch-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function Xn(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function En(Y,je){if(1&Y&&a.DNE(0,Qt,1,2,"angor-horizontal-navigation-basic-item",1)(1,an,1,2,"angor-horizontal-navigation-branch-item",1)(2,Xn,1,2,"angor-horizontal-navigation-spacer-item",1),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("aside"===re.type||"collapsable"===re.type||"group"===re.type?1:-1),a.R7$(),a.vxM("spacer"===re.type?2:-1)}}function Gt(Y,je){if(1&Y&&a.DNE(0,En,3,3),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}let At=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new w.m(1),this._unsubscribeAll=new C.B}ngOnChanges(re){"navigation"in re&&this._changeDetectorRef.markForCheck()}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this)}ngOnDestroy(){this._angorNavigationService.deregisterComponent(this.name),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}refresh(){this._changeDetectorRef.markForCheck(),this.onRefreshed.next(!0)}trackByFn(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],features:[a.OA$],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0),a.Z7z(1,Gt,1,1,null,null,wt.trackByFn,!0),a.k0s()),2&Xe&&(a.R7$(),a.Dyx(wt.navigation))},dependencies:[yn,Gn,Nt],styles:["angor-horizontal-navigation .angor-horizontal-navigation-wrapper{display:flex;align-items:center}@media (min-width: 600px){angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item:hover .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item:hover .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper{border-radius:4px;overflow:hidden}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{padding:0 16px;cursor:pointer;-webkit-user-select:none;user-select:none}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon{margin-right:12px}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active-forced .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-spacer-item{margin:12px 0}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item{height:auto;min-height:0;line-height:normal;white-space:normal}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-branch-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{display:flex;flex:1 1 auto}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{margin:8px -16px}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item .angor-horizontal-navigation-item-wrapper{height:1px;box-shadow:0 1px}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper{width:100%}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper.angor-horizontal-navigation-item-has-subtitle .angor-horizontal-navigation-item{min-height:56px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:48px;width:100%;font-size:13px;font-weight:500;text-decoration:none}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-title-wrapper .angor-horizontal-navigation-item-subtitle{font-size:12px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge{margin-left:auto}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge .angor-horizontal-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}\n"],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})();const Kt=Y=>({"angor-vertical-navigation-item-active-forced":Y}),xn=Y=>[Y];function Yn(Y,je){1&Y&&a.eu8(0)}function tt(Y,je){if(1&Y&&(a.j41(0,"a",2),a.DNE(1,Yn,1,0,"ng-container",6),a.k0s()),2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Kt,hn.item.active))("routerLink",a.eq3(12,xn,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function ke(Y,je){1&Y&&a.eu8(0)}function B(Y,je){if(1&Y&&(a.j41(0,"a",3),a.DNE(1,ke,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function k(Y,je){1&Y&&a.eu8(0)}function j(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",7),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,k,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Kt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function De(Y,je){1&Y&&a.eu8(0)}function it(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",8),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,De,1,0,"ng-container",6),a.k0s()}if(2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Kt,hn.item.active))("routerLink",a.eq3(12,xn,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function ot(Y,je){1&Y&&a.eu8(0)}function Tt(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",9),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,ot,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function In(Y,je){1&Y&&a.eu8(0)}function Vt(Y,je){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,In,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Kt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function dn(Y,je){1&Y&&a.eu8(0)}function Pn(Y,je){if(1&Y&&(a.j41(0,"div",5),a.DNE(1,dn,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Fn(Y,je){if(1&Y&&a.nrm(0,"mat-icon",10),2&Y){const re=a.XpG(2);a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function Bn(Y,je){if(1&Y&&(a.j41(0,"div",14)(1,"span",13),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function cr(Y,je){if(1&Y&&(a.j41(0,"div",15)(1,"div",16),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function Jr(Y,je){if(1&Y&&(a.DNE(0,Fn,1,2,"mat-icon",10),a.j41(1,"div",11)(2,"div",12)(3,"span",13),a.EFF(4),a.k0s()(),a.DNE(5,Bn,3,2,"div",14),a.k0s(),a.DNE(6,cr,3,2,"div",15)),2&Y){const re=a.XpG();a.vxM(re.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.title),a.R7$(),a.SpI(" ",re.item.title," "),a.R7$(),a.vxM(re.item.subtitle?5:-1),a.R7$(),a.vxM(re.item.badge?6:-1)}}let Xr=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.B}ngOnInit(){this.isActiveMatchOptions=this.item.isActiveMatchOptions??this.item.exactMatch?this._angorUtilsService.exactMatchOptions:this._angorUtilsService.subsetMatchOptions,this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"href","target","matTooltip"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item","angor-vertical-navigation-item-disabled",3,"matTooltip"],[4,"ngTemplateOutlet"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",1),a.DNE(1,tt,2,14,"a",2)(2,B,2,4,"a",3)(3,j,2,5,"div",4)(4,it,2,14,"a",2)(5,Tt,2,4,"a",3)(6,Vt,2,5,"div",4)(7,Pn,2,2,"div",5),a.k0s(),a.DNE(8,Jr,7,5,"ng-template",null,0,a.C5r)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.vxM(!wt.item.link||wt.item.externalLink||wt.item.function||wt.item.disabled?-1:1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&!wt.item.function&&!wt.item.disabled?2:-1),a.R7$(),a.vxM(wt.item.link||!wt.item.function||wt.item.disabled?-1:3),a.R7$(),a.vxM(wt.item.link&&!wt.item.externalLink&&wt.item.function&&!wt.item.disabled?4:-1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&wt.item.function&&!wt.item.disabled?5:-1),a.R7$(),a.vxM(wt.item.link||wt.item.function||wt.item.disabled?-1:6),a.R7$(),a.vxM(wt.item.disabled?7:-1))},dependencies:[T.YU,N.Wk,N.wQ,I.uc,I.oV,T.T3,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),_t=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})(),Bt=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();function Ee(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function lt(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Pe(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",8),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function kt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function ft(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Pt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function mn(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function or(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function Mr(Y,je){if(1&Y&&a.DNE(0,kt,1,2,"angor-vertical-navigation-basic-item",9)(1,ft,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Pt,1,2,"angor-vertical-navigation-divider-item",9)(3,mn,1,2,"angor-vertical-navigation-group-item",9)(4,or,1,2,"angor-vertical-navigation-spacer-item",9),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function ii(Y,je){if(1&Y&&a.DNE(0,Mr,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}let ci=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},decls:11,vars:8,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Ee,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,lt,3,2,"div",6),a.k0s(),a.DNE(8,Pe,3,2,"div",7),a.k0s()(),a.Z7z(9,ii,1,1,null,null,wt.trackByFn,!0)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(2),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.Dyx(wt.item.children))},dependencies:()=>[Y,T.YU,S.m_,S.An,Xr,ao,_t,Bt],encapsulation:2,changeDetection:0})}}return Y})();var Si=r(5964);const rn=Y=>({"angor-vertical-navigation-item-disabled":Y});function St(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function qe(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Dt(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",10),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function Wt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Hn(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function fr(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function fo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Oi(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Uo(Y,je){if(1&Y&&a.DNE(0,Wt,1,2,"angor-vertical-navigation-basic-item",11)(1,Hn,1,3,"angor-vertical-navigation-collapsable-item",12)(2,fr,1,2,"angor-vertical-navigation-divider-item",11)(3,fo,1,2,"angor-vertical-navigation-group-item",11)(4,Oi,1,2,"angor-vertical-navigation-spacer-item",11),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function oi(Y,je){if(1&Y&&a.DNE(0,Uo,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ts(Y,je){if(1&Y&&(a.j41(0,"div",9),a.Z7z(1,oi,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.Y8G("@expandCollapse",void 0),a.R7$(),a.Dyx(re.item.children)}}let ao=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(N.Ix),this._angorNavigationService=(0,a.WQX)(c),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new C.B}get classList(){return{"angor-vertical-navigation-item-collapsed":this.isCollapsed,"angor-vertical-navigation-item-expanded":this.isExpanded}}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._hasActiveChild(this.item,this._router.url)?this.expand():this.autoCollapse&&this.collapse(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(re=>{null!==re&&this._isChildrenOf(re,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(re=>{null!==re&&(this._isChildrenOf(this.item,re)||this._hasActiveChild(this.item,this._router.url)||this.item!==re&&this.collapse())}),this._router.events.pipe((0,Si.p)(re=>re instanceof N.wF),(0,G.Q)(this._unsubscribeAll)).subscribe(re=>{this._hasActiveChild(this.item,re.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}collapse(){this.item.disabled||this.isCollapsed||(this.isCollapsed=!0,this.isExpanded=!this.isCollapsed,this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.next(this.item))}expand(){this.item.disabled||this.isCollapsed&&(this.isCollapsed=!1,this.isExpanded=!this.isCollapsed,this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onCollapsableItemExpanded.next(this.item))}toggleCollapsable(){this.isCollapsed?this.expand():this.collapse()}trackByFn(re,Xe){return Xe.id||re}_hasActiveChild(re,Xe){const wt=re.children;if(!wt)return!1;for(const Ln of wt)if(Ln.children&&this._hasActiveChild(Ln,Xe)||Ln.link&&this._router.isActive(Ln.link,Ln.exactMatch||!1))return!0;return!1}_isChildrenOf(re,Xe){const wt=re.children;if(!wt)return!1;if(wt.indexOf(Xe)>-1)return!0;for(const Ln of wt)if(Ln.children&&this._isChildrenOf(Ln,Xe))return!0;return!1}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(Xe,wt){2&Xe&&a.HbH(wt.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},decls:11,vars:14,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-arrow","icon-size-4",3,"svgIcon"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.bIt("click",function(){return wt.toggleCollapsable()}),a.DNE(2,St,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,qe,3,2,"div",6),a.k0s(),a.DNE(8,Dt,3,2,"div",7),a.nrm(9,"mat-icon",8),a.k0s()(),a.DNE(10,ts,3,1,"div",9)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.eq3(12,rn,wt.item.disabled))("matTooltip",wt.item.tooltip||""),a.R7$(),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.Y8G("svgIcon","heroicons_solid:chevron-right"),a.R7$(),a.vxM(wt.isCollapsed?-1:10))},dependencies:()=>[Y,T.YU,I.uc,I.oV,S.m_,S.An,Xr,_t,ci,Bt],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})();const wo=(Y,je,re)=>({"angor-vertical-navigation-item-active":Y,"angor-vertical-navigation-item-disabled":je,"angor-vertical-navigation-item-active-forced":re});function Xo(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function Do(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Ts(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",9),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function eo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function oo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Bi(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Mo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Je(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function ct(Y,je){if(1&Y&&a.DNE(0,eo,1,2,"angor-vertical-navigation-basic-item",10)(1,oo,1,3,"angor-vertical-navigation-collapsable-item",11)(2,Bi,1,2,"angor-vertical-navigation-divider-item",10)(3,Mo,1,2,"angor-vertical-navigation-group-item",10)(4,Je,1,2,"angor-vertical-navigation-spacer-item",10),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function Et(Y,je){if(1&Y&&a.DNE(0,ct,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ve(Y,je){if(1&Y&&(a.j41(0,"div",8),a.Z7z(1,Et,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.R7$(),a.Dyx(re.item.children)}}let et=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(N.Ix),this._angorNavigationService=(0,a.WQX)(c),this.active=!1,this._unsubscribeAll=new C.B}ngOnChanges(re){"activeItemId"in re&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,Si.p)(re=>re instanceof N.wF),(0,G.Q)(this._unsubscribeAll)).subscribe(re=>{this._markIfActive(re.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(re,Xe){return Xe.id||re}_hasActiveChild(re,Xe){const wt=re.children;if(!wt)return!1;for(const Ln of wt){if(Ln.children&&this._hasActiveChild(Ln,Xe))return!0;if("basic"===Ln.type&&Ln.link&&this._router.isActive(Ln.link,Ln.exactMatch||!1))return!0}return!1}_markIfActive(re){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,re)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},features:[a.OA$],decls:10,vars:15,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Xo,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Do,3,2,"div",6),a.k0s(),a.DNE(8,Ts,3,2,"div",7),a.k0s()(),a.DNE(9,ve,3,0,"div",8)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.sMw(11,wo,wt.active,wt.item.disabled,wt.item.active))("matTooltip",wt.item.tooltip||""),a.R7$(),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.vxM(wt.skipChildren?-1:9))},dependencies:[T.YU,I.uc,I.oV,S.m_,S.An,Xr,ao,_t,ci,Bt],encapsulation:2,changeDetection:0})}}return Y})();class Oe{constructor(je,re,Xe,wt){this.x=je,this.y=re,this.w=Xe,this.h=wt}}class pt{constructor(je,re){this.x=je,this.y=re}}var $t=r(4085),Mt=r(6860),un=r(2401);function Cn(Y){return getComputedStyle(Y)}function Sn(Y,je){for(var re in je){var Xe=je[re];"number"==typeof Xe&&(Xe+="px"),Y.style[re]=Xe}return Y}function kn(Y){var je=document.createElement("div");return je.className=Y,je}var Un=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jn(Y,je){if(!Un)throw new Error("No element matching method supported");return Un.call(Y,je)}function sr(Y){Y.remove?Y.remove():Y.parentNode&&Y.parentNode.removeChild(Y)}function kr(Y,je){return Array.prototype.filter.call(Y.children,function(re){return Jn(re,je)})}var mr_element_thumb=function(Y){return"ps__thumb-"+Y},mr_element_rail=function(Y){return"ps__rail-"+Y},mr_element_consuming="ps__child--consume",mr_state_focus="ps--focus",mr_state_clicking="ps--clicking",mr_state_active=function(Y){return"ps--active-"+Y},mr_state_scrolling=function(Y){return"ps--scrolling-"+Y},bi={x:null,y:null};function si(Y,je){var re=Y.element.classList,Xe=mr_state_scrolling(je);re.contains(Xe)?clearTimeout(bi[je]):re.add(Xe)}function gr(Y,je){bi[je]=setTimeout(function(){return Y.isAlive&&Y.element.classList.remove(mr_state_scrolling(je))},Y.settings.scrollingThreshold)}var yo=function(je){this.element=je,this.handlers={}},$r={isEmpty:{configurable:!0}};yo.prototype.bind=function(je,re){typeof this.handlers[je]>"u"&&(this.handlers[je]=[]),this.handlers[je].push(re),this.element.addEventListener(je,re,!1)},yo.prototype.unbind=function(je,re){var Xe=this;this.handlers[je]=this.handlers[je].filter(function(wt){return!(!re||wt===re)||(Xe.element.removeEventListener(je,wt,!1),!1)})},yo.prototype.unbindAll=function(){for(var je in this.handlers)this.unbind(je)},$r.isEmpty.get=function(){var Y=this;return Object.keys(this.handlers).every(function(je){return 0===Y.handlers[je].length})},Object.defineProperties(yo.prototype,$r);var Ki=function(){this.eventElements=[]};function ls(Y){if("function"==typeof window.CustomEvent)return new CustomEvent(Y);var je=document.createEvent("CustomEvent");return je.initCustomEvent(Y,!1,!1,void 0),je}function bs(Y,je,re,Xe,wt){var Ln;if(void 0===Xe&&(Xe=!0),void 0===wt&&(wt=!1),"top"===je)Ln=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==je)throw new Error("A proper axis should be provided");Ln=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function na(Y,je,re,Xe,wt){var Ln=re[0],hn=re[1],ur=re[2],hr=re[3],Gr=re[4],zi=re[5];void 0===Xe&&(Xe=!0),void 0===wt&&(wt=!1);var Or=Y.element;Y.reach[hr]=null,Or[ur]<1&&(Y.reach[hr]="start"),Or[ur]>Y[Ln]-Y[hn]-1&&(Y.reach[hr]="end"),je&&(Or.dispatchEvent(ls("ps-scroll-"+hr)),je<0?Or.dispatchEvent(ls("ps-scroll-"+Gr)):je>0&&Or.dispatchEvent(ls("ps-scroll-"+zi)),Xe&&function ai(Y,je){si(Y,je),gr(Y,je)}(Y,hr)),Y.reach[hr]&&(je||wt)&&Or.dispatchEvent(ls("ps-"+hr+"-reach-"+Y.reach[hr]))}(Y,re,Ln,Xe,wt)}function Sr(Y){return parseInt(Y,10)||0}Ki.prototype.eventElement=function(je){var re=this.eventElements.filter(function(Xe){return Xe.element===je})[0];return re||(re=new yo(je),this.eventElements.push(re)),re},Ki.prototype.bind=function(je,re,Xe){this.eventElement(je).bind(re,Xe)},Ki.prototype.unbind=function(je,re,Xe){var wt=this.eventElement(je);wt.unbind(re,Xe),wt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(wt),1)},Ki.prototype.unbindAll=function(){this.eventElements.forEach(function(je){return je.unbindAll()}),this.eventElements=[]},Ki.prototype.once=function(je,re,Xe){var wt=this.eventElement(je),Ln=function(hn){wt.unbind(re,Ln),Xe(hn)};wt.bind(re,Ln)};var Eo={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function Rs(Y){var je=Y.element,re=Math.floor(je.scrollTop),Xe=je.getBoundingClientRect();Y.containerWidth=Math.floor(Xe.width),Y.containerHeight=Math.floor(Xe.height),Y.contentWidth=je.scrollWidth,Y.contentHeight=je.scrollHeight,je.contains(Y.scrollbarXRail)||(kr(je,mr_element_rail("x")).forEach(function(wt){return sr(wt)}),je.appendChild(Y.scrollbarXRail)),je.contains(Y.scrollbarYRail)||(kr(je,mr_element_rail("y")).forEach(function(wt){return sr(wt)}),je.appendChild(Y.scrollbarYRail)),!Y.settings.suppressScrollX&&Y.containerWidth+Y.settings.scrollXMarginOffset<Y.contentWidth?(Y.scrollbarXActive=!0,Y.railXWidth=Y.containerWidth-Y.railXMarginWidth,Y.railXRatio=Y.containerWidth/Y.railXWidth,Y.scrollbarXWidth=Ns(Y,Sr(Y.railXWidth*Y.containerWidth/Y.contentWidth)),Y.scrollbarXLeft=Sr((Y.negativeScrollAdjustment+je.scrollLeft)*(Y.railXWidth-Y.scrollbarXWidth)/(Y.contentWidth-Y.containerWidth))):Y.scrollbarXActive=!1,!Y.settings.suppressScrollY&&Y.containerHeight+Y.settings.scrollYMarginOffset<Y.contentHeight?(Y.scrollbarYActive=!0,Y.railYHeight=Y.containerHeight-Y.railYMarginHeight,Y.railYRatio=Y.containerHeight/Y.railYHeight,Y.scrollbarYHeight=Ns(Y,Sr(Y.railYHeight*Y.containerHeight/Y.contentHeight)),Y.scrollbarYTop=Sr(re*(Y.railYHeight-Y.scrollbarYHeight)/(Y.contentHeight-Y.containerHeight))):Y.scrollbarYActive=!1,Y.scrollbarXLeft>=Y.railXWidth-Y.scrollbarXWidth&&(Y.scrollbarXLeft=Y.railXWidth-Y.scrollbarXWidth),Y.scrollbarYTop>=Y.railYHeight-Y.scrollbarYHeight&&(Y.scrollbarYTop=Y.railYHeight-Y.scrollbarYHeight),function zs(Y,je){var re={width:je.railXWidth},Xe=Math.floor(Y.scrollTop);re.left=je.isRtl?je.negativeScrollAdjustment+Y.scrollLeft+je.containerWidth-je.contentWidth:Y.scrollLeft,je.isScrollbarXUsingBottom?re.bottom=je.scrollbarXBottom-Xe:re.top=je.scrollbarXTop+Xe,Sn(je.scrollbarXRail,re);var wt={top:Xe,height:je.railYHeight};je.isScrollbarYUsingRight?wt.right=je.isRtl?je.contentWidth-(je.negativeScrollAdjustment+Y.scrollLeft)-je.scrollbarYRight-je.scrollbarYOuterWidth-9:je.scrollbarYRight-Y.scrollLeft:wt.left=je.isRtl?je.negativeScrollAdjustment+Y.scrollLeft+2*je.containerWidth-je.contentWidth-je.scrollbarYLeft-je.scrollbarYOuterWidth:je.scrollbarYLeft+Y.scrollLeft,Sn(je.scrollbarYRail,wt),Sn(je.scrollbarX,{left:je.scrollbarXLeft,width:je.scrollbarXWidth-je.railBorderXWidth}),Sn(je.scrollbarY,{top:je.scrollbarYTop,height:je.scrollbarYHeight-je.railBorderYWidth})}(je,Y),Y.scrollbarXActive?je.classList.add(mr_state_active("x")):(je.classList.remove(mr_state_active("x")),Y.scrollbarXWidth=0,Y.scrollbarXLeft=0,je.scrollLeft=!0===Y.isRtl?Y.contentWidth:0),Y.scrollbarYActive?je.classList.add(mr_state_active("y")):(je.classList.remove(mr_state_active("y")),Y.scrollbarYHeight=0,Y.scrollbarYTop=0,je.scrollTop=0)}function Ns(Y,je){return Y.settings.minScrollbarLength&&(je=Math.max(je,Y.settings.minScrollbarLength)),Y.settings.maxScrollbarLength&&(je=Math.min(je,Y.settings.maxScrollbarLength)),je}var Ks=null;function Ls(Y,je){var re=je[0],Xe=je[1],wt=je[2],Ln=je[3],hn=je[4],ur=je[5],hr=je[6],Gr=je[7],zi=je[8],Or=Y.element,Dr=null,Ei=null,ui=null;function po(Oo){Oo.touches&&Oo.touches[0]&&(Oo[wt]=Oo.touches[0]["page"+Gr.toUpperCase()]),Ks===hn&&(Or[hr]=Dr+ui*(Oo[wt]-Ei),si(Y,Gr),Rs(Y),Oo.stopPropagation(),Oo.preventDefault())}function co(){gr(Y,Gr),Y[zi].classList.remove(mr_state_clicking),document.removeEventListener("mousemove",po),document.removeEventListener("mouseup",co),document.removeEventListener("touchmove",po),document.removeEventListener("touchend",co),Ks=null}function Ho(Oo){null===Ks&&(Ks=hn,Dr=Or[hr],Oo.touches&&(Oo[wt]=Oo.touches[0]["page"+Gr.toUpperCase()]),Ei=Oo[wt],ui=(Y[Xe]-Y[re])/(Y[Ln]-Y[ur]),Oo.touches?(document.addEventListener("touchmove",po,{passive:!1}),document.addEventListener("touchend",co)):(document.addEventListener("mousemove",po),document.addEventListener("mouseup",co)),Y[zi].classList.add(mr_state_clicking)),Oo.stopPropagation(),Oo.cancelable&&Oo.preventDefault()}Y[hn].addEventListener("mousedown",Ho),Y[hn].addEventListener("touchstart",Ho)}var to={"click-rail":function Gi(Y){Y.event.bind(Y.scrollbarY,"mousedown",function(je){return je.stopPropagation()}),Y.event.bind(Y.scrollbarYRail,"mousedown",function(je){var re=je.pageY-window.pageYOffset-Y.scrollbarYRail.getBoundingClientRect().top;Y.element.scrollTop+=(re>Y.scrollbarYTop?1:-1)*Y.containerHeight,Rs(Y),je.stopPropagation()}),Y.event.bind(Y.scrollbarX,"mousedown",function(je){return je.stopPropagation()}),Y.event.bind(Y.scrollbarXRail,"mousedown",function(je){var re=je.pageX-window.pageXOffset-Y.scrollbarXRail.getBoundingClientRect().left;Y.element.scrollLeft+=(re>Y.scrollbarXLeft?1:-1)*Y.containerWidth,Rs(Y),je.stopPropagation()})},"drag-thumb":function Ni(Y){Ls(Y,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Ls(Y,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])},keyboard:function ns(Y){var je=Y.element;Y.event.bind(Y.ownerDocument,"keydown",function(Ln){if(!(Ln.isDefaultPrevented&&Ln.isDefaultPrevented()||Ln.defaultPrevented)&&(Jn(je,":hover")||Jn(Y.scrollbarX,":focus")||Jn(Y.scrollbarY,":focus"))){var hn=document.activeElement?document.activeElement:Y.ownerDocument.activeElement;if(hn){if("IFRAME"===hn.tagName)hn=hn.contentDocument.activeElement;else for(;hn.shadowRoot;)hn=hn.shadowRoot.activeElement;if(function ra(Y){return Jn(Y,"input,[contenteditable]")||Jn(Y,"select,[contenteditable]")||Jn(Y,"textarea,[contenteditable]")||Jn(Y,"button,[contenteditable]")}(hn))return}var ur=0,hr=0;switch(Ln.which){case 37:ur=Ln.metaKey?-Y.contentWidth:Ln.altKey?-Y.containerWidth:-30;break;case 38:hr=Ln.metaKey?Y.contentHeight:Ln.altKey?Y.containerHeight:30;break;case 39:ur=Ln.metaKey?Y.contentWidth:Ln.altKey?Y.containerWidth:30;break;case 40:hr=Ln.metaKey?-Y.contentHeight:Ln.altKey?-Y.containerHeight:-30;break;case 32:hr=Ln.shiftKey?Y.containerHeight:-Y.containerHeight;break;case 33:hr=Y.containerHeight;break;case 34:hr=-Y.containerHeight;break;case 36:hr=Y.contentHeight;break;case 35:hr=-Y.contentHeight;break;default:return}Y.settings.suppressScrollX&&0!==ur||Y.settings.suppressScrollY&&0!==hr||(je.scrollTop-=hr,je.scrollLeft+=ur,Rs(Y),function wt(Ln,hn){var ur=Math.floor(je.scrollTop);if(0===Ln){if(!Y.scrollbarYActive)return!1;if(0===ur&&hn>0||ur>=Y.contentHeight-Y.containerHeight&&hn<0)return!Y.settings.wheelPropagation}var hr=je.scrollLeft;if(0===hn){if(!Y.scrollbarXActive)return!1;if(0===hr&&Ln<0||hr>=Y.contentWidth-Y.containerWidth&&Ln>0)return!Y.settings.wheelPropagation}return!0}(ur,hr)&&Ln.preventDefault())}})},wheel:function qr(Y){var je=Y.element;function Ln(hn){var ur=function Xe(hn){var ur=hn.deltaX,hr=-1*hn.deltaY;return(typeof ur>"u"||typeof hr>"u")&&(ur=-1*hn.wheelDeltaX/6,hr=hn.wheelDeltaY/6),hn.deltaMode&&1===hn.deltaMode&&(ur*=10,hr*=10),ur!=ur&&hr!=hr&&(ur=0,hr=hn.wheelDelta),hn.shiftKey?[-hr,-ur]:[ur,hr]}(hn),hr=ur[0],Gr=ur[1];if(!function wt(hn,ur,hr){if(!Eo.isWebKit&&je.querySelector("select:focus"))return!0;if(!je.contains(hn))return!1;for(var Gr=hn;Gr&&Gr!==je;){if(Gr.classList.contains(mr_element_consuming))return!0;var zi=Cn(Gr);if(hr&&zi.overflowY.match(/(scroll|auto)/)){var Or=Gr.scrollHeight-Gr.clientHeight;if(Or>0&&(Gr.scrollTop>0&&hr<0||Gr.scrollTop<Or&&hr>0))return!0}if(ur&&zi.overflowX.match(/(scroll|auto)/)){var Dr=Gr.scrollWidth-Gr.clientWidth;if(Dr>0&&(Gr.scrollLeft>0&&ur<0||Gr.scrollLeft<Dr&&ur>0))return!0}Gr=Gr.parentNode}return!1}(hn.target,hr,Gr)){var zi=!1;Y.settings.useBothWheelAxes?Y.scrollbarYActive&&!Y.scrollbarXActive?(Gr?je.scrollTop-=Gr*Y.settings.wheelSpeed:je.scrollTop+=hr*Y.settings.wheelSpeed,zi=!0):Y.scrollbarXActive&&!Y.scrollbarYActive&&(hr?je.scrollLeft+=hr*Y.settings.wheelSpeed:je.scrollLeft-=Gr*Y.settings.wheelSpeed,zi=!0):(je.scrollTop-=Gr*Y.settings.wheelSpeed,je.scrollLeft+=hr*Y.settings.wheelSpeed),Rs(Y),zi=zi||function re(hn,ur){var hr=Math.floor(je.scrollTop),Gr=0===je.scrollTop,zi=hr+je.offsetHeight===je.scrollHeight,Or=0===je.scrollLeft,Dr=je.scrollLeft+je.offsetWidth===je.scrollWidth;return!(Math.abs(ur)>Math.abs(hn)?Gr||zi:Or||Dr)||!Y.settings.wheelPropagation}(hr,Gr),zi&&!hn.ctrlKey&&(hn.stopPropagation(),hn.preventDefault())}}typeof window.onwheel<"u"?Y.event.bind(je,"wheel",Ln):typeof window.onmousewheel<"u"&&Y.event.bind(je,"mousewheel",Ln)},touch:function rs(Y){if(Eo.supportsTouch||Eo.supportsIePointer){var je=Y.element,re={startOffset:{},startTime:0,speed:{},easingLoop:null};Eo.supportsTouch?(Y.event.bind(je,"touchstart",ur),Y.event.bind(je,"touchmove",Gr),Y.event.bind(je,"touchend",zi)):Eo.supportsIePointer&&(window.PointerEvent?(Y.event.bind(je,"pointerdown",ur),Y.event.bind(je,"pointermove",Gr),Y.event.bind(je,"pointerup",zi)):window.MSPointerEvent&&(Y.event.bind(je,"MSPointerDown",ur),Y.event.bind(je,"MSPointerMove",Gr),Y.event.bind(je,"MSPointerUp",zi)))}function wt(Or,Dr){je.scrollTop-=Dr,je.scrollLeft-=Or,Rs(Y)}function Ln(Or){return Or.targetTouches?Or.targetTouches[0]:Or}function hn(Or){return!(Or.target===Y.scrollbarX||Or.target===Y.scrollbarY||Or.pointerType&&"pen"===Or.pointerType&&0===Or.buttons||!(Or.targetTouches&&1===Or.targetTouches.length||Or.pointerType&&"mouse"!==Or.pointerType&&Or.pointerType!==Or.MSPOINTER_TYPE_MOUSE))}function ur(Or){if(hn(Or)){var Dr=Ln(Or);re.startOffset.pageX=Dr.pageX,re.startOffset.pageY=Dr.pageY,re.startTime=(new Date).getTime(),null!==re.easingLoop&&clearInterval(re.easingLoop)}}function Gr(Or){if(hn(Or)){var Dr=Ln(Or),Ei={pageX:Dr.pageX,pageY:Dr.pageY},ui=Ei.pageX-re.startOffset.pageX,po=Ei.pageY-re.startOffset.pageY;if(function hr(Or,Dr,Ei){if(!je.contains(Or))return!1;for(var ui=Or;ui&&ui!==je;){if(ui.classList.contains(mr_element_consuming))return!0;var po=Cn(ui);if(Ei&&po.overflowY.match(/(scroll|auto)/)){var co=ui.scrollHeight-ui.clientHeight;if(co>0&&(ui.scrollTop>0&&Ei<0||ui.scrollTop<co&&Ei>0))return!0}if(Dr&&po.overflowX.match(/(scroll|auto)/)){var Ho=ui.scrollWidth-ui.clientWidth;if(Ho>0&&(ui.scrollLeft>0&&Dr<0||ui.scrollLeft<Ho&&Dr>0))return!0}ui=ui.parentNode}return!1}(Or.target,ui,po))return;wt(ui,po),re.startOffset=Ei;var co=(new Date).getTime(),Ho=co-re.startTime;Ho>0&&(re.speed.x=ui/Ho,re.speed.y=po/Ho,re.startTime=co),function Xe(Or,Dr){var Ei=Math.floor(je.scrollTop),ui=je.scrollLeft,po=Math.abs(Or),co=Math.abs(Dr);if(co>po){if(Dr<0&&Ei===Y.contentHeight-Y.containerHeight||Dr>0&&0===Ei)return 0===window.scrollY&&Dr>0&&Eo.isChrome}else if(po>co&&(Or<0&&ui===Y.contentWidth-Y.containerWidth||Or>0&&0===ui))return!0;return!0}(ui,po)&&Or.cancelable&&Or.preventDefault()}}function zi(){Y.settings.swipeEasing&&(clearInterval(re.easingLoop),re.easingLoop=setInterval(function(){Y.isInitialized?clearInterval(re.easingLoop):re.speed.x||re.speed.y?Math.abs(re.speed.x)<.01&&Math.abs(re.speed.y)<.01?clearInterval(re.easingLoop):(wt(30*re.speed.x,30*re.speed.y),re.speed.x*=.8,re.speed.y*=.8):clearInterval(re.easingLoop)},10))}}},Wi=function(je,re){var Xe=this;if(void 0===re&&(re={}),"string"==typeof je&&(je=document.querySelector(je)),!je||!je.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var wt in this.element=je,je.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},re)this.settings[wt]=re[wt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var zi,Gr,Ln=function(){return je.classList.add(mr_state_focus)},hn=function(){return je.classList.remove(mr_state_focus)};this.isRtl="rtl"===Cn(je).direction,!0===this.isRtl&&je.classList.add("ps__rtl"),this.isNegativeScroll=(Gr=je.scrollLeft,je.scrollLeft=-1,zi=je.scrollLeft<0,je.scrollLeft=Gr,zi),this.negativeScrollAdjustment=this.isNegativeScroll?je.scrollWidth-je.clientWidth:0,this.event=new Ki,this.ownerDocument=je.ownerDocument||document,this.scrollbarXRail=kn(mr_element_rail("x")),je.appendChild(this.scrollbarXRail),this.scrollbarX=kn(mr_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ln),this.event.bind(this.scrollbarX,"blur",hn),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var ur=Cn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(ur.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Sr(ur.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Sr(ur.borderLeftWidth)+Sr(ur.borderRightWidth),Sn(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Sr(ur.marginLeft)+Sr(ur.marginRight),Sn(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=kn(mr_element_rail("y")),je.appendChild(this.scrollbarYRail),this.scrollbarY=kn(mr_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ln),this.event.bind(this.scrollbarY,"blur",hn),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var hr=Cn(this.scrollbarYRail);this.scrollbarYRight=parseInt(hr.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Sr(hr.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function ga(Y){var je=Cn(Y);return Sr(je.width)+Sr(je.paddingLeft)+Sr(je.paddingRight)+Sr(je.borderLeftWidth)+Sr(je.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Sr(hr.borderTopWidth)+Sr(hr.borderBottomWidth),Sn(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Sr(hr.marginTop)+Sr(hr.marginBottom),Sn(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:je.scrollLeft<=0?"start":je.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:je.scrollTop<=0?"start":je.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Gr){return to[Gr](Xe)}),this.lastScrollTop=Math.floor(je.scrollTop),this.lastScrollLeft=je.scrollLeft,this.event.bind(this.element,"scroll",function(Gr){return Xe.onScroll(Gr)}),Rs(this)};Wi.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Sn(this.scrollbarXRail,{display:"block"}),Sn(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Sr(Cn(this.scrollbarXRail).marginLeft)+Sr(Cn(this.scrollbarXRail).marginRight),this.railYMarginHeight=Sr(Cn(this.scrollbarYRail).marginTop)+Sr(Cn(this.scrollbarYRail).marginBottom),Sn(this.scrollbarXRail,{display:"none"}),Sn(this.scrollbarYRail,{display:"none"}),Rs(this),bs(this,"top",0,!1,!0),bs(this,"left",0,!1,!0),Sn(this.scrollbarXRail,{display:""}),Sn(this.scrollbarYRail,{display:""}))},Wi.prototype.onScroll=function(je){this.isAlive&&(Rs(this),bs(this,"top",this.element.scrollTop-this.lastScrollTop),bs(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Wi.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),sr(this.scrollbarX),sr(this.scrollbarY),sr(this.scrollbarXRail),sr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Wi.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(je){return!je.match(/^ps([-_].+|)$/)}).join(" ")};const ws=Wi;var Io=r(3726),va=r(152);let tr=(()=>{class Y{constructor(){this._elementRef=(0,a.WQX)(a.aKT),this._platform=(0,a.WQX)(Mt.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new C.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(re){"angorScrollbar"in re&&(this.angorScrollbar=(0,$t.he)(re.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in re&&(this._options=(0,un.A)({},this._options,re.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,Io.R)(window,"resize").pipe((0,G.Q)(this._unsubscribeAll),(0,va.B)(150)).subscribe(()=>this.update())}ngOnDestroy(){this._destroyScrollbar(),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}isEnabled(){return this.angorScrollbar}update(){this._ps?.update()}destroy(){this.ngOnDestroy()}geometry(re="scroll"){return new Oe(this._elementRef.nativeElement[`${re}Left`],this._elementRef.nativeElement[`${re}Top`],this._elementRef.nativeElement[`${re}Width`],this._elementRef.nativeElement[`${re}Height`])}position(re=!1){return!re&&this._ps?new pt(this._ps.reach.x||0,this._ps.reach.y||0):new pt(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(re,Xe,wt){null==Xe&&null==wt?this.animateScrolling("scrollTop",re,wt):(null!=re&&this.scrollToX(re,wt),null!=Xe&&this.scrollToY(Xe,wt))}scrollToX(re,Xe){this.animateScrolling("scrollLeft",re,Xe)}scrollToY(re,Xe){this.animateScrolling("scrollTop",re,Xe)}scrollToTop(re=0,Xe){this.animateScrolling("scrollTop",re,Xe)}scrollToBottom(re=0,Xe){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-re,Xe)}scrollToLeft(re=0,Xe){this.animateScrolling("scrollLeft",re,Xe)}scrollToRight(re=0,Xe){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-re,Xe)}scrollToElement(re,Xe=0,wt=!1,Ln){const hn=this._elementRef.nativeElement.querySelector(re);if(!hn)return;const ur=hn.getBoundingClientRect(),hr=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(ur.left,hr.left,"scrollLeft",Xe,wt,Ln),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(ur.top,hr.top,"scrollTop",Xe,wt,Ln)}animateScrolling(re,Xe,wt){this._animation&&window.cancelAnimationFrame(this._animation),!wt||typeof window>"u"?this._elementRef.nativeElement[re]=Xe:Xe!==this._elementRef.nativeElement[re]&&this._smoothScroll(re,Xe,wt)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new ws(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(re,Xe,wt,Ln,hn,ur){hn&&re<=Xe-Math.abs(Ln)||this.animateScrolling(wt,re-Xe+this._elementRef.nativeElement[wt]+Ln,ur)}_smoothScroll(re,Xe,wt){let Ln=0,hn=this._elementRef.nativeElement[re];const ur=(hn-Xe)/2;let hr=performance.now();const Gr=zi=>{Ln+=Math.PI/(wt/(zi-hr));const Or=Math.round(Xe+ur+ur*Math.cos(Ln));this._elementRef.nativeElement[re]===hn&&(Ln>=Math.PI?this.animateScrolling(re,Xe,0):(this._elementRef.nativeElement[re]=Or,hn=this._elementRef.nativeElement[re],hr=zi,this._animation=window.requestAnimationFrame(Gr)))};window.requestAnimationFrame(Gr)}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275dir=a.FsC({type:Y,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],features:[a.OA$]})}}return Y})();var xo=r(9969),os=r(6969),Ms=r(7786),Ps=r(1986);const ya=["navigationContent"],Yo=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Ai=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],ia=Y=>({wheelPropagation:Y,suppressScrollX:!0}),bl=()=>({wheelPropagation:!1,suppressScrollX:!0});function Qo(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"angor-vertical-navigation-aside-item",10),a.bIt("click",function(){a.eBV(re);const wt=a.XpG(2).$implicit,Ln=a.XpG();return a.Njj(Ln.toggleAside(wt))}),a.k0s()}if(2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("activeItemId",Xe.activeAsideItemId)("autoCollapse",Xe.autoCollapse)("skipChildren",!0)}}function oa(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function lo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function ss(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function bo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Zo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function _i(Y,je){if(1&Y&&a.DNE(0,Qo,1,5,"angor-vertical-navigation-aside-item",7)(1,oa,1,2,"angor-vertical-navigation-basic-item",8)(2,lo,1,3,"angor-vertical-navigation-collapsable-item",9)(3,ss,1,2,"angor-vertical-navigation-divider-item",8)(4,bo,1,3,"angor-vertical-navigation-group-item",9)(5,Zo,1,2,"angor-vertical-navigation-spacer-item",8),2&Y){const re=a.XpG().$implicit;a.vxM("aside"===re.type?0:-1),a.R7$(),a.vxM("basic"===re.type?1:-1),a.R7$(),a.vxM("collapsable"===re.type?2:-1),a.R7$(),a.vxM("divider"===re.type?3:-1),a.R7$(),a.vxM("group"===re.type?4:-1),a.R7$(),a.vxM("spacer"===re.type?5:-1)}}function La(Y,je){if(1&Y&&a.DNE(0,_i,6,6),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ko(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Gs(Y,je){if(1&Y&&a.DNE(0,ko,1,3,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG().$implicit,Xe=a.XpG(2);a.vxM("aside"===re.type&&re.id===Xe.activeAsideItemId?0:-1)}}function wl(Y,je){if(1&Y&&a.DNE(0,Gs,1,1),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Ga(Y,je){if(1&Y&&(a.j41(0,"div",6),a.Z7z(1,wl,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.Y8G("angorScrollbarOptions",a.lJ4(5,bl))("@fadeInLeft","left"===re.position)("@fadeInRight","right"===re.position)("@fadeOutLeft","left"===re.position)("@fadeOutRight","right"===re.position),a.R7$(),a.Dyx(re.navigation)}}let Xa=(()=>{class Y{constructor(){this._animationBuilder=(0,a.WQX)(xo.S6),this._changeDetectorRef=(0,a.WQX)(a.gRc),this._document=(0,a.WQX)(T.qQ),this._elementRef=(0,a.WQX)(a.aKT),this._renderer2=(0,a.WQX)(a.sFG),this._router=(0,a.WQX)(N.Ix),this._scrollStrategyOptions=(0,a.WQX)(os.Tv),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.appearance="default",this.autoCollapse=!0,this.inner=!1,this.mode="side",this.name=this._angorUtilsService.randomId(),this.opened=!0,this.position="left",this.transparentOverlay=!1,this.appearanceChanged=new a.bkB,this.modeChanged=new a.bkB,this.openedChanged=new a.bkB,this.positionChanged=new a.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new w.m(1),this.onCollapsableItemExpanded=new w.m(1),this.onRefreshed=new w.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new C.B,this._handleAsideOverlayClick=()=>{this.closeAside()},this._handleOverlayClick=()=>{this.close()}}get classList(){return{"angor-vertical-navigation-animations-enabled":this._animationsEnabled,[`angor-vertical-navigation-appearance-${this.appearance}`]:!0,"angor-vertical-navigation-hover":this._hovered,"angor-vertical-navigation-inner":this.inner,"angor-vertical-navigation-mode-over":"over"===this.mode,"angor-vertical-navigation-mode-side":"side"===this.mode,"angor-vertical-navigation-opened":this.opened,"angor-vertical-navigation-position-left":"left"===this.position,"angor-vertical-navigation-position-right":"right"===this.position}}get styleList(){return{visibility:this.opened?"visible":"hidden"}}set angorScrollbarDirectives(re){this._angorScrollbarDirectives=re,0!==re.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,Ms.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,G.Q)(this._unsubscribeAll),(0,Ps.c)(250)).subscribe(()=>{re.forEach(Xe=>{Xe.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(re){if("appearance"in re&&this.appearanceChanged.next(re.appearance.currentValue),"inner"in re&&(this.inner=(0,$t.he)(re.inner.currentValue)),"mode"in re){const Xe=re.mode.currentValue,wt=re.mode.previousValue;this._disableAnimations(),"over"===wt&&"side"===Xe&&this._hideOverlay(),"side"===wt&&"over"===Xe&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(Xe),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in re&&this._changeDetectorRef.markForCheck(),"opened"in re&&(this.opened=(0,$t.he)(re.opened.currentValue),this._toggleOpened(this.opened)),"position"in re&&this.positionChanged.next(re.position.currentValue),"transparentOverlay"in re&&(this.transparentOverlay=(0,$t.he)(re.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,Si.p)(re=>re instanceof N.wF),(0,G.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(re=>{re.forEach(Xe=>{const wt=Xe.target;if("class"===Xe.attributeName)if(wt.classList.contains("cdk-global-scrollblock")){const Ln=parseInt(wt.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(Ln)}px`)}else this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",null)})}),this._mutationObserver.observe(this._document.documentElement,{attributes:!0,attributeFilter:["class"]}),setTimeout(()=>{if(this._navigationContentEl)if(this._navigationContentEl.nativeElement.classList.contains("ps"))this._angorScrollbarDirectives.forEach(re=>{re.isEnabled()&&re.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const re=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");re&&re.scrollIntoView()}})}ngOnDestroy(){this._mutationObserver.disconnect(),this.close(),this.closeAside(),this._angorNavigationService.deregisterComponent(this.name),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}refresh(){this._changeDetectorRef.markForCheck(),this.onRefreshed.next(!0)}open(){this.opened||this._toggleOpened(!0)}close(){this.opened&&(this.closeAside(),this._toggleOpened(!1))}toggle(){this.opened?this.close():this.open()}openAside(re){re.disabled||!re.id||(this.activeAsideItemId=re.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(re){this.activeAsideItemId===re.id?this.closeAside():this.openAside(re)}trackByFn(re,Xe){return Xe.id||re}_enableAnimations(){this._animationsEnabled||(this._animationsEnabled=!0)}_disableAnimations(){this._animationsEnabled&&(this._animationsEnabled=!1)}_showOverlay(){this._asideOverlay||(this._overlay=this._renderer2.createElement("div"),this._overlay.classList.add("angor-vertical-navigation-overlay"),this.transparentOverlay&&this._overlay.classList.add("angor-vertical-navigation-overlay-transparent"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._overlay),this._scrollStrategy.enable(),this._player=this._animationBuilder.build([(0,xo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,xo.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,xo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,xo.iF)({opacity:0}))]).create(this._overlay),this._player.play(),this._player.onDone(()=>{this._overlay&&(this._overlay.removeEventListener("click",this._handleOverlayClick),this._overlay.parentNode.removeChild(this._overlay),this._overlay=null),this._scrollStrategy.disable()}))}_showAsideOverlay(){this._asideOverlay||(this._asideOverlay=this._renderer2.createElement("div"),this._asideOverlay.classList.add("angor-vertical-navigation-aside-overlay"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._asideOverlay),this._player=this._animationBuilder.build([(0,xo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,xo.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,xo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,xo.iF)({opacity:0}))]).create(this._asideOverlay),this._player.play(),this._player.onDone(()=>{this._asideOverlay&&(this._asideOverlay.removeEventListener("click",this._handleAsideOverlayClick),this._asideOverlay.parentNode.removeChild(this._asideOverlay),this._asideOverlay=null)}))}_toggleOpened(re){this.opened=re,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(re)}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation"]],viewQuery:function(Xe,wt){if(1&Xe&&(a.GBs(ya,5),a.GBs(tr,5)),2&Xe){let Ln;a.mGM(Ln=a.lsd())&&(wt._navigationContentEl=Ln.first),a.mGM(Ln=a.lsd())&&(wt.angorScrollbarDirectives=Ln)}},hostVars:4,hostBindings:function(Xe,wt){1&Xe&&a.bIt("mouseenter",function(){return wt._onMouseenter()})("mouseleave",function(){return wt._onMouseleave()}),2&Xe&&(a.Aen(wt.styleList),a.HbH(wt.classList))},inputs:{appearance:"appearance",autoCollapse:"autoCollapse",inner:"inner",mode:"mode",name:"name",navigation:"navigation",opened:"opened",position:"position",transparentOverlay:"transparentOverlay"},outputs:{appearanceChanged:"appearanceChanged",modeChanged:"modeChanged",openedChanged:"openedChanged",positionChanged:"positionChanged"},exportAs:["angorVerticalNavigation"],features:[a.OA$],ngContentSelectors:Ai,decls:12,vars:4,consts:[["navigationContent",""],[1,"angor-vertical-navigation-wrapper"],[1,"angor-vertical-navigation-header"],["angorScrollbar","",1,"angor-vertical-navigation-content",3,"angorScrollbarOptions"],[1,"angor-vertical-navigation-content-header"],[1,"angor-vertical-navigation-footer"],["angorScrollbar","",1,"angor-vertical-navigation-aside-wrapper",3,"angorScrollbarOptions"],[3,"item","name","activeItemId","autoCollapse","skipChildren"],[3,"item","name"],[3,"item","name","autoCollapse"],[3,"click","item","name","activeItemId","autoCollapse","skipChildren"]],template:function(Xe,wt){1&Xe&&(a.NAR(Yo),a.j41(0,"div",1)(1,"div",2),a.SdG(2),a.k0s(),a.j41(3,"div",3,0)(5,"div",4),a.SdG(6,1),a.k0s(),a.Z7z(7,La,1,1,null,null,wt.trackByFn,!0),a.k0s(),a.j41(9,"div",5),a.SdG(10,2),a.k0s()(),a.DNE(11,Ga,3,6,"div",6)),2&Xe&&(a.R7$(3),a.Y8G("angorScrollbarOptions",a.eq3(2,ia,wt.inner)),a.R7$(4),a.Dyx(wt.navigation),a.R7$(4),a.vxM(wt.activeAsideItemId?11:-1))},dependencies:[tr,et,Xr,ao,_t,ci,Bt],styles:[':root{--angor-vertical-navigation-width: 280px}angor-vertical-navigation{position:sticky;display:flex;flex-direction:column;flex:1 0 auto;top:0;width:var(--angor-vertical-navigation-width);min-width:var(--angor-vertical-navigation-width);max-width:var(--angor-vertical-navigation-width);height:100vh;min-height:100vh;max-height:100vh;z-index:200}angor-vertical-navigation.angor-vertical-navigation-animations-enabled{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:visibility,margin-left,margin-right,transform,width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-animations-enabled .angor-vertical-navigation-wrapper{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-mode-over{position:fixed;top:0;bottom:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over{left:0;transform:translate3d(-100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-left .angor-vertical-navigation-wrapper{left:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over{right:0;transform:translate3d(100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-wrapper{right:0}angor-vertical-navigation.angor-vertical-navigation-inner{position:relative;width:auto;min-width:0;max-width:none;height:auto;min-height:0;max-height:none;box-shadow:none}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper{position:relative;overflow:visible;height:auto}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{overflow:visible!important}angor-vertical-navigation .angor-vertical-navigation-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;width:100%;height:100%;overflow:hidden;z-index:10;background:inherit;box-shadow:inset -1px 0 0 var(--angor-border)}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-divider-item{margin:24px 0}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item{margin-top:24px}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;left:var(--angor-vertical-navigation-width);width:var(--angor-vertical-navigation-width);height:100%;z-index:5;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;transition-duration:.4s;transition-property:left,right;transition-timing-function:cubic-bezier(.25,.8,.25,1);background:inherit}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item{padding:24px 0}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper{display:none!important}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item,angor-vertical-navigation angor-vertical-navigation-divider-item,angor-vertical-navigation angor-vertical-navigation-group-item,angor-vertical-navigation angor-vertical-navigation-spacer-item{display:flex;flex-direction:column;flex:1 0 auto;-webkit-user-select:none;user-select:none}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;padding:10px 16px;font-size:13px;font-weight:500;line-height:20px;text-decoration:none;border-radius:6px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled{cursor:default;opacity:.4}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:16px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{font-size:11px;line-height:1.5}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{margin-left:auto}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}angor-vertical-navigation angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{margin:0 12px}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item{margin-bottom:4px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item{cursor:pointer}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge+.angor-vertical-navigation-item-arrow{margin-left:8px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{height:20px;line-height:20px;margin-left:auto;transition:transform .3s cubic-bezier(.25,.8,.25,1),color 375ms cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{transform:rotate(90deg)}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:first-child{margin-top:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:0}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{overflow:hidden}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:56px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:72px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:88px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:104px}angor-vertical-navigation angor-vertical-navigation-divider-item{margin:12px 0}angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper{height:1px;box-shadow:0 1px}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{display:none!important}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}angor-vertical-navigation angor-vertical-navigation-spacer-item{margin:6px 0}.angor-vertical-navigation-overlay{position:absolute;inset:0;z-index:170;opacity:0;background-color:#0009}.angor-vertical-navigation-overlay+.angor-vertical-navigation-aside-overlay{background-color:transparent}.angor-vertical-navigation-aside-overlay{position:absolute;inset:0;z-index:169;opacity:0;background-color:#0000004d}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{color:currentColor}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{color:currentColor;opacity:.6}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{color:currentColor;opacity:.8}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{color:currentColor;opacity:.5}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced{background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover{background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1));opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title:is(.dark *){--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}:root{--angor-vertical-navigation-compact-width: 112px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact{width:var(--angor-vertical-navigation-compact-width);min-width:var(--angor-vertical-navigation-compact-width);max-width:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{margin:4px 8px 0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{flex-direction:column;justify-content:center;padding:12px;border-radius:6px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{margin-top:8px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:500;text-align:center;line-height:16px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{display:none!important}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{position:absolute;top:12px;left:64px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-collapsable-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-compact-width)}:root{--angor-vertical-navigation-width: 280px;--angor-vertical-navigation-dense-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over){width:var(--angor-vertical-navigation-dense-width);min-width:var(--angor-vertical-navigation-dense-width);max-width:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-dense-width) - 24px);min-width:calc(var(--angor-vertical-navigation-dense-width) - 24px);max-width:calc(var(--angor-vertical-navigation-dense-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item:first-of-type{margin-top:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;opacity:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:before{content:"";position:absolute;top:20px;width:23px;border-top-width:2px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper{width:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-width) - 24px);min-width:calc(var(--angor-vertical-navigation-width) - 24px);max-width:calc(var(--angor-vertical-navigation-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;animation:removeWhiteSpaceNoWrap 1ms linear .35s;animation-fill-mode:forwards}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-width)}@keyframes removeWhiteSpaceNoWrap{0%{white-space:nowrap}99%{white-space:nowrap}to{white-space:normal}}:root{--angor-vertical-navigation-thin-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin{width:var(--angor-vertical-navigation-thin-width);min-width:var(--angor-vertical-navigation-thin-width);max-width:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item{flex-direction:column;justify-content:center;height:64px;min-height:64px;max-height:64px;padding:0 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{display:flex;align-items:center;justify-content:center}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{justify-content:center;padding:12px;border-radius:4px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-thin-width)}\n'],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})()},9097:(o,s,r)=>{"use strict";r.d(s,{t:()=>a});const a=new(r(4438).nKC)("ANGOR_APP_CONFIG")},881:(o,s,r)=>{"use strict";r.d(s,{P:()=>w});var i=r(9097),a=r(4438),c=r(2401),y=r(4412);let w=(()=>{class C{constructor(){this._defaultConfig=(0,a.WQX)(i.t),this._configSubject=new y.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(S){const A=(0,c.A)({},this._configSubject.getValue(),S);this._configSubject.next(A)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(A){return new(A||C)}}static{this.\u0275prov=a.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},9979:(o,s,r)=>{"use strict";r.d(s,{m:()=>pe});var i=r(177),a=r(4438),c=r(8834),y=r(5351),w=r(9213);const C=(Te,xe,Re,Me,Ce,le,ae,Ie)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":Te,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":xe,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":Re,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Me,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":Ce,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":le,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":ae,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":Ie});function T(Te,xe){1&Te&&(a.j41(0,"div",1)(1,"button",6),a.nrm(2,"mat-icon",7),a.k0s()()),2&Te&&(a.R7$(),a.Y8G("matDialogClose",void 0),a.R7$(),a.Y8G("svgIcon","heroicons_outline:x-mark"))}function S(Te,xe){if(1&Te&&(a.j41(0,"div",3),a.nrm(1,"mat-icon",8),a.k0s()),2&Te){const Re=a.XpG();a.Y8G("ngClass",a.lV(2,C,"primary"===Re.data.icon.color,"accent"===Re.data.icon.color,"warn"===Re.data.icon.color,"basic"===Re.data.icon.color,"info"===Re.data.icon.color,"success"===Re.data.icon.color,"warning"===Re.data.icon.color,"error"===Re.data.icon.color)),a.R7$(),a.Y8G("svgIcon",Re.data.icon.name)}}function A(Te,xe){if(1&Te&&a.nrm(0,"div",9),2&Te){const Re=a.XpG(2);a.Y8G("innerHTML",Re.data.title,a.npT)}}function I(Te,xe){if(1&Te&&a.nrm(0,"div",10),2&Te){const Re=a.XpG(2);a.Y8G("innerHTML",Re.data.message,a.npT)}}function N(Te,xe){if(1&Te&&(a.j41(0,"div",4),a.DNE(1,A,1,1,"div",9)(2,I,1,1,"div",10),a.k0s()),2&Te){const Re=a.XpG();a.R7$(),a.vxM(Re.data.title?1:-1),a.R7$(),a.vxM(Re.data.message?2:-1)}}function G(Te,xe){if(1&Te&&(a.j41(0,"button",11),a.EFF(1),a.k0s()),2&Te){const Re=a.XpG(2);a.Y8G("matDialogClose","cancelled"),a.R7$(),a.SpI(" ",Re.data.actions.cancel.label," ")}}function Z(Te,xe){if(1&Te&&(a.j41(0,"button",12),a.EFF(1),a.k0s()),2&Te){const Re=a.XpG(2);a.Y8G("color",Re.data.actions.confirm.color)("matDialogClose","confirmed"),a.R7$(),a.SpI(" ",Re.data.actions.confirm.label," ")}}function te(Te,xe){if(1&Te&&(a.j41(0,"div",5),a.DNE(1,G,2,2,"button",11)(2,Z,2,3,"button",12),a.k0s()),2&Te){const Re=a.XpG();a.R7$(),a.vxM(Re.data.actions.cancel.show?1:-1),a.R7$(),a.vxM(Re.data.actions.confirm.show?2:-1)}}let be=(()=>{class Te{constructor(){this.data=(0,a.WQX)(y.Vh)}static{this.\u0275fac=function(Me){return new(Me||Te)}}static{this.\u0275cmp=a.VBU({type:Te,selectors:[["angor-confirmation-dialog"]],decls:6,vars:4,consts:[[1,"relative","flex","h-full","w-full","flex-col"],[1,"absolute","right-0","top-0","pr-4","pt-4"],[1,"flex","flex-auto","flex-col","items-center","p-8","pb-6","sm:flex-row","sm:items-start","sm:pb-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","rounded-full","sm:mr-4",3,"ngClass"],[1,"mt-4","flex","flex-col","items-center","space-y-1","text-center","sm:mt-0","sm:items-start","sm:pr-8","sm:text-left"],[1,"flex","items-center","justify-center","space-x-3","bg-gray-50","px-6","py-4","dark:bg-black","dark:bg-opacity-10","sm:justify-end"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[1,"text-current",3,"svgIcon"],[1,"text-xl","font-medium","leading-6",3,"innerHTML"],[1,"text-secondary",3,"innerHTML"],["mat-stroked-button","",3,"matDialogClose"],["mat-flat-button","",3,"color","matDialogClose"]],template:function(Me,Ce){1&Me&&(a.j41(0,"div",0),a.DNE(1,T,3,2,"div",1),a.j41(2,"div",2),a.DNE(3,S,2,11,"div",3)(4,N,3,2,"div",4),a.k0s(),a.DNE(5,te,3,2,"div",5),a.k0s()),2&Me&&(a.R7$(),a.vxM(Ce.data.dismissible?1:-1),a.R7$(2),a.vxM(Ce.data.icon.show?3:-1),a.R7$(),a.vxM(Ce.data.title||Ce.data.message?4:-1),a.R7$(),a.vxM(Ce.data.actions.confirm.show||Ce.data.actions.cancel.show?5:-1))},dependencies:[c.Hl,c.$z,c.iY,y.hM,y.tx,w.m_,w.An,i.YU],styles:["@media (min-width: 960px){.angor-confirmation-dialog-panel{width:32rem}}.angor-confirmation-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:0!important}\n"],encapsulation:2})}}return Te})();var me=r(2401);let pe=(()=>{class Te{constructor(){this._matDialog=(0,a.WQX)(y.bZ),this._defaultConfig={title:"Confirm action",message:"Are you sure you want to confirm this action?",icon:{show:!0,name:"heroicons_outline:exclamation-triangle",color:"warn"},actions:{confirm:{show:!0,label:"Confirm",color:"warn"},cancel:{show:!0,label:"Cancel"}},dismissible:!1}}open(Re={}){const Me=(0,me.A)({},this._defaultConfig,Re);return this._matDialog.open(be,{autoFocus:!1,disableClose:!Me.dismissible,data:Me,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Me){return new(Me||Te)}}static{this.\u0275prov=a.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})()},4977:(o,s,r)=>{"use strict";r.d(s,{l:()=>S});var i=r(881),a=r(9327),c=r(4438),y=r(7680),w=r(2771),C=r(6354),T=r(5558);let S=(()=>{class A{constructor(){this._breakpointObserver=(0,c.WQX)(a.QP),this._angorConfigService=(0,c.WQX)(i.P),this._onMediaChange=new w.m(1),this._angorConfigService.config$.pipe((0,C.T)(N=>(0,y.A)(Object.entries(N.screens).map(([G,Z])=>[G,`(min-width: ${Z})`]))),(0,T.n)(N=>this._breakpointObserver.observe(Object.values(N)).pipe((0,C.T)(G=>{const Z=[],te={},be=Object.entries(G.breakpoints).filter(([me,pe])=>pe)??[];for(const[me]of be){const pe=Object.entries(N).find(([Te,xe])=>xe===me)[0];pe&&(Z.push(pe),te[pe]=me)}this._onMediaChange.next({matchingAliases:Z,matchingQueries:te})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(N){return this._breakpointObserver.observe(N)}static{this.\u0275fac=function(G){return new(G||A)}}static{this.\u0275prov=c.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},7209:(o,s,r)=>{"use strict";r.d(s,{Q:()=>a});var i=r(4438);let a=(()=>{class c{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(w=10){let T="";for(let S=0;S<10;S++)T+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return T}static{this.\u0275fac=function(C){return new(C||c)}}static{this.\u0275prov=i.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},2332:(o,s,r)=>{"use strict";r.d(s,{v:()=>y});var i=r(5373),a=r(1413),c=r(4438);let y=(()=>{class w{constructor(){this.publicKeySubject=new a.B,this.previousPublicKey=null,this.initializeNostrLogin(),this.setupEventListeners()}initializeNostrLogin(){(0,i.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(T,S)=>{this.handleAuthSuccess(T,S)}})}setupEventListeners(){document.addEventListener("nlAuth",this.handleNlAuthEvent.bind(this)),document.addEventListener("nlLogout",this.handleNlLogoutEvent.bind(this)),document.addEventListener("nlDarkMode",this.handleNlDarkModeEvent.bind(this)),document.addEventListener("nlLaunch",this.handleNlLaunchEvent.bind(this))}handleNlLogoutEvent(){console.log("Logout event detected"),this.handleLogout()}handleNlAuthEvent(T){const{type:S,pubkey:A,options:I}=T.detail;switch(S){case"login":console.log("User logged in:",A),this.handleAuthSuccess(A,I);break;case"signup":console.log("User signed up:",A),this.handleSignupSuccess(A,I);break;case"logout":console.log("User logged out"),this.handleLogout();break;case"switch-account":console.log("User switched account:",A),this.handleAccountSwitch(A,I);break;default:console.warn("Unknown nlAuth event type:",S)}this.previousPublicKey&&this.previousPublicKey!==A&&(console.log("Account switched to:",A),this.handleAccountSwitch(A,I)),this.previousPublicKey=A}handleAuthSuccess(T,S){console.log("Authenticated successfully with public key:",T),this.publicKeySubject.next(T)}handleSignupSuccess(T,S){console.log("Signup successful with public key:",T),this.publicKeySubject.next(T)}handleAccountSwitch(T,S){console.log("Account switched to:",T),this.publicKeySubject.next(T),window.location.reload()}handleLogout(){console.log("Logged out"),this.publicKeySubject.next("")}handleNlDarkModeEvent(T){const S=T.detail;console.log("Dark mode changed to:",S?"enabled":"disabled"),this.updateDarkMode(S)}handleNlLaunchEvent(T){const S=T.detail||"welcome";console.log(`Launching Nostr login screen: ${S}`),this.launchScreen(S)}launchScreen(T){(0,i.ql)(T)}updateDarkMode(T){document.body.classList.toggle("dark-mode",T),console.log("Dark mode is now "+(T?"enabled":"disabled"))}getPublicKeyObservable(){return this.publicKeySubject.asObservable()}launchWelcomeScreen(){(0,i.ql)("welcome")}launchSignupScreen(){(0,i.ql)("welcome-signup")}launchLoginScreen(){(0,i.ql)("welcome-login")}switchAccount(){document.dispatchEvent(new CustomEvent("nlLaunch",{detail:"switch-account"}))}logout(){document.dispatchEvent(new Event("nlLogout"))}toggleDarkMode(T){document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:T}))}static{this.\u0275fac=function(S){return new(S||w)}}static{this.\u0275prov=c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},6231:(o,s,r)=>{"use strict";r.d(s,{b:()=>T});var i=r(467),a=r(4438),c=r(5462),y=r(4412),w=r(1413),C=r(177);let T=(()=>{class S{constructor(I,N){this.document=I,this.platformId=N,this.pool=new c.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new y.t(null),this.relaysSubject=new y.t([]),this.destroy$=new w.B,this.initializeRelays(),this.setupVisibilityHandling()}initializeRelays(){this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const I=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return I.length>0?I.map(G=>({...G,connected:!1,retries:0,retryTimeout:null,ws:void 0})):[{url:"wss://relay.primal.net",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://nos.lol",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"}]}saveRelaysToLocalStorage(){const I=this.relays.map(N=>({url:N.url,accessType:N.accessType,connected:N.connected,retries:N.retries,retryTimeout:N.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(I)),this.relaysSubject.next(this.relays)}connectToRelay(I){I.connected||(I.ws=new WebSocket(I.url),I.ws.onopen=()=>{I.connected=!0,I.retries=0,clearTimeout(I.retryTimeout),this.saveRelaysToLocalStorage()},I.ws.onerror=()=>this.handleRelayError(I),I.ws.onclose=()=>{I.connected=!1,this.handleRelayError(I)},I.ws.onmessage=({data:N})=>{try{const G=JSON.parse("string"==typeof N?N:N.toString("utf-8"));this.eventSubject.next(G)}catch(G){console.warn("Error parsing WebSocket message:",G)}})}handleRelayError(I){I.retries>=this.maxRetries?console.warn(`Max retries reached for relay: ${I.url}. No further attempts will be made.`):(I.retries++,I.retryTimeout=setTimeout(()=>this.connectToRelay(I),this.retryDelay*I.retries))}connectToRelays(){this.relays.forEach(I=>!I.connected&&this.connectToRelay(I))}ensureConnectedRelays(){var I=this;return(0,i.A)(function*(){return I.connectToRelays(),new Promise(N=>{const G=setInterval(()=>{I.getConnectedRelays().length>0&&(clearInterval(G),N())},1e3)})})()}setupVisibilityHandling(){(0,C.UE)(this.platformId)&&(this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(I=>I.ws?.close())}))}getConnectedRelays(){return this.relays.filter(I=>I.connected).map(I=>I.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(I){var N=this;return(0,i.A)(function*(){const G=N.relays.filter(Z=>["write","read-write"].includes(Z.accessType)&&Z.connected);if(!G.length)throw new Error("No connected write relays available");try{return yield Promise.any(G.map(Z=>N.pool.publish([Z.url],I))),N.eventSubject.next(I),I}catch(Z){throw console.error("Failed to publish event to relays:",Z),Z}})()}addRelay(I,N="read-write"){if(!this.relays.some(G=>G.url===I)){const G={url:I,connected:!1,retries:0,retryTimeout:null,accessType:N};this.relays.push(G),this.connectToRelay(G),this.saveRelaysToLocalStorage()}}removeRelay(I){const N=this.relays.find(G=>G.url===I);N&&(N.ws?.close(),clearTimeout(N.retryTimeout)),this.relays=this.relays.filter(G=>G.url!==I),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const I=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays.forEach(N=>{I.includes(N.url)||(N.ws?.close(),clearTimeout(N.retryTimeout))}),this.relays=this.relays.filter(N=>I.includes(N.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(I,N){const G=this.relays.find(Z=>Z.url===I);G&&(G.accessType=N,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.relays.forEach(I=>I.ws?.close())}static{this.\u0275fac=function(N){return new(N||S)(a.KVO(C.qQ,8),a.KVO(a.Agw))}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},6324:(o,s,r)=>{"use strict";r.d(s,{A:()=>Va});var i={};r.r(i),r.d(i,{OG:()=>$a,My:()=>Ca,Ph:()=>Ar,lX:()=>Ao,Id:()=>Fr,fg:()=>Di,qj:()=>Po,aT:()=>zn,lq:()=>no,z:()=>$o,Q5:()=>aa});var a=r(467),c=r(5766),y=r(7292),w=r(3838),C=r(5462);function A(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function G(R,...U){if(!function N(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}function Z(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");A(R.outputLen),A(R.blockLen)}function te(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")}r(6391),"abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n");const Me=R=>new DataView(R.buffer,R.byteOffset,R.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function yn(R){if("string"==typeof R&&(R=function ln(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}(R)),!function Re(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("expected Uint8Array, got "+typeof R);return R}class bn{clone(){return this._cloneInto()}}const Qe={}.toString;function ze(R){const U=oe=>R().update(yn(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}class dt extends bn{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,Z(U);const oe=yn(V);if(this.iHash=U.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gt<Be.length;gt++)Be[gt]^=54;this.iHash.update(Be),this.oHash=U.create();for(let gt=0;gt<Be.length;gt++)Be[gt]^=106;this.oHash.update(Be),Be.fill(0)}update(U){return te(this),this.iHash.update(U),this}digestInto(U){te(this),G(U,this.outputLen),this.finished=!0,this.iHash.digestInto(U),this.oHash.update(U),this.oHash.digestInto(U),this.destroy()}digest(){const U=new Uint8Array(this.oHash.outputLen);return this.digestInto(U),U}_cloneInto(U){U||(U=Object.create(Object.getPrototypeOf(this),{}));const{oHash:V,iHash:oe,finished:Ae,destroyed:Be,blockLen:gt,outputLen:It}=this;return U.finished=Ae,U.destroyed=Be,U.blockLen=gt,U.outputLen=It,U.oHash=V._cloneInto(U.oHash),U.iHash=oe._cloneInto(U.iHash),U}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ge=(R,U,V)=>new dt(R,U).update(V).digest();Ge.create=(R,U)=>new dt(R,U);class fn extends bn{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=Me(this.buffer)}update(U){te(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=yn(U)).length;for(let gt=0;gt<Be;){const It=Math.min(Ae-this.pos,Be-gt);if(It!==Ae)oe.set(U.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process(V,0),this.pos=0);else{const Ht=Me(U);for(;Ae<=Be-gt;gt+=Ae)this.process(Ht,gt)}}return this.length+=U.length,this.roundClean(),this}digestInto(U){te(this),function be(R,U){G(R);const V=U.outputLen;if(R.length<V)throw new Error(`digestInto() expects output buffer of length at least ${V}`)}(U,this),this.finished=!0;const{buffer:V,view:oe,blockLen:Ae,isLE:Be}=this;let{pos:gt}=this;V[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt<Ae;Zt++)V[Zt]=0;(function Jt(R,U,V,oe){if("function"==typeof R.setBigUint64)return R.setBigUint64(U,V,oe);const Ae=BigInt(32),Be=BigInt(4294967295),gt=Number(V>>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=Me(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;Zt<on;Zt++)It.setUint32(4*Zt,An[Zt],Be)}digest(){const{buffer:U,outputLen:V}=this;this.digestInto(U);const oe=U.slice(0,V);return this.destroy(),oe}_cloneInto(U){U||(U=new this.constructor),U.set(...this.get());const{blockLen:V,buffer:oe,length:Ae,finished:Be,destroyed:gt,pos:It}=this;return U.length=Ae,U.pos=It,U.finished=Be,U.destroyed=gt,Ae%V&&U.buffer.set(oe),U}}const Gn=BigInt(2**32-1),Nt=BigInt(32);function Qt(R,U=!1){return U?{h:Number(R&Gn),l:Number(R>>Nt&Gn)}:{h:0|Number(R>>Nt&Gn),l:0|Number(R&Gn)}}const Bn_split=function an(R,U=!1){let V=new Uint32Array(R.length),oe=new Uint32Array(R.length);for(let Ae=0;Ae<R.length;Ae++){const{h:Be,l:gt}=Qt(R[Ae],U);[V[Ae],oe[Ae]]=[Be,gt]}return[V,oe]},Bn_shrSH=(R,U,V)=>R>>>V,Bn_shrSL=(R,U,V)=>R<<32-V|U>>>V,Bn_rotrSH=(R,U,V)=>R>>>V|U<<32-V,Bn_rotrSL=(R,U,V)=>R<<32-V|U>>>V,Bn_rotrBH=(R,U,V)=>R<<64-V|U>>>V-32,Bn_rotrBL=(R,U,V)=>R>>>V-32|U<<64-V,Bn_add=function it(R,U,V,oe){const Ae=(U>>>0)+(oe>>>0);return{h:R+V+(Ae/2**32|0)|0,l:0|Ae}},Bn_add3L=(R,U,V)=>(R>>>0)+(U>>>0)+(V>>>0),Bn_add3H=(R,U,V,oe)=>U+V+oe+(R/2**32|0)|0,Bn_add4L=(R,U,V,oe)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0),Bn_add4H=(R,U,V,oe,Ae)=>U+V+oe+Ae+(R/2**32|0)|0,Bn_add5H=(R,U,V,oe,Ae,Be)=>U+V+oe+Ae+Be+(R/2**32|0)|0,Bn_add5L=(R,U,V,oe,Ae)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0)+(Ae>>>0),[cr,Jr]=Bn_split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(R=>BigInt(R))),Xr=new Uint32Array(80),_t=new Uint32Array(80);class Bt extends fn{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:U,Al:V,Bh:oe,Bl:Ae,Ch:Be,Cl:gt,Dh:It,Dl:Ht,Eh:on,El:An,Fh:Zt,Fl:Kn,Gh:Wn,Gl:nr,Hh:Mn,Hl:jn}=this;return[U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn]}set(U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn){this.Ah=0|U,this.Al=0|V,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|Be,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Ht,this.Eh=0|on,this.El=0|An,this.Fh=0|Zt,this.Fl=0|Kn,this.Gh=0|Wn,this.Gl=0|nr,this.Hh=0|Mn,this.Hl=0|jn}process(U,V){for(let Vn=0;Vn<16;Vn++,V+=4)Xr[Vn]=U.getUint32(V),_t[Vn]=U.getUint32(V+=4);for(let Vn=16;Vn<80;Vn++){const dr=0|Xr[Vn-15],Pr=0|_t[Vn-15],Ir=Bn_rotrSH(dr,Pr,1)^Bn_rotrSH(dr,Pr,8)^Bn_shrSH(dr,Pr,7),zr=Bn_rotrSL(dr,Pr,1)^Bn_rotrSL(dr,Pr,8)^Bn_shrSL(dr,Pr,7),Ur=0|Xr[Vn-2],Yi=0|_t[Vn-2],Qi=Bn_rotrSH(Ur,Yi,19)^Bn_rotrBH(Ur,Yi,61)^Bn_shrSH(Ur,Yi,6),Mi=Bn_rotrSL(Ur,Yi,19)^Bn_rotrBL(Ur,Yi,61)^Bn_shrSL(Ur,Yi,6),Zi=Bn_add4L(zr,Mi,_t[Vn-7],_t[Vn-16]),Bo=Bn_add4H(Zi,Ir,Qi,Xr[Vn-7],Xr[Vn-16]);Xr[Vn]=0|Bo,_t[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:Be,Bl:gt,Ch:It,Cl:Ht,Dh:on,Dl:An,Eh:Zt,El:Kn,Fh:Wn,Fl:nr,Gh:Mn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const dr=Bn_rotrSH(Zt,Kn,14)^Bn_rotrSH(Zt,Kn,18)^Bn_rotrBH(Zt,Kn,41),Pr=Bn_rotrSL(Zt,Kn,14)^Bn_rotrSL(Zt,Kn,18)^Bn_rotrBL(Zt,Kn,41),Ir=Zt&Wn^~Zt&Mn,Ur=Bn_add5L(ir,Pr,Kn&nr^~Kn&jn,Jr[Vn],_t[Vn]),Yi=Bn_add5H(Ur,Qn,dr,Ir,cr[Vn],Xr[Vn]),Qi=0|Ur,Mi=Bn_rotrSH(oe,Ae,28)^Bn_rotrBH(oe,Ae,34)^Bn_rotrBH(oe,Ae,39),Zi=Bn_rotrSL(oe,Ae,28)^Bn_rotrBL(oe,Ae,34)^Bn_rotrBL(oe,Ae,39),Bo=oe&Be^oe&It^Be&It,Cs=Ae>^Ae&Ht^gt&Ht;Qn=0|Mn,ir=0|jn,Mn=0|Wn,jn=0|nr,Wn=0|Zt,nr=0|Kn,({h:Zt,l:Kn}=Bn_add(0|on,0|An,0|Yi,0|Qi)),on=0|It,An=0|Ht,It=0|Be,Ht=0|gt,Be=0|oe,gt=0|Ae;const yr=Bn_add3L(Qi,Zi,Cs);oe=Bn_add3H(yr,Yi,Mi,Bo),Ae=0|yr}({h:oe,l:Ae}=Bn_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:Be,l:gt}=Bn_add(0|this.Bh,0|this.Bl,0|Be,0|gt)),({h:It,l:Ht}=Bn_add(0|this.Ch,0|this.Cl,0|It,0|Ht)),({h:on,l:An}=Bn_add(0|this.Dh,0|this.Dl,0|on,0|An)),({h:Zt,l:Kn}=Bn_add(0|this.Eh,0|this.El,0|Zt,0|Kn)),({h:Wn,l:nr}=Bn_add(0|this.Fh,0|this.Fl,0|Wn,0|nr)),({h:Mn,l:jn}=Bn_add(0|this.Gh,0|this.Gl,0|Mn,0|jn)),({h:Qn,l:ir}=Bn_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn,Qn,ir)}roundClean(){Xr.fill(0),_t.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const kt=ze(()=>new Bt);var or=r(3813);function ii(R){if("string"!=typeof R)throw new TypeError("Invalid mnemonic type: "+typeof R);return R.normalize("NFKD")}function Oi(R,U=""){return function se(R,U,V,oe){const{c:Ae,dkLen:Be,DK:gt,PRF:It,PRFSalt:Ht}=function He(R,U,V,oe){Z(R);const Ae=function bt(R,U){if(void 0!==U&&"[object Object]"!==Qe.call(U))throw new Error("Options should be object or undefined");return Object.assign(R,U)}({dkLen:32,asyncTick:10},oe),{c:Be,dkLen:gt,asyncTick:It}=Ae;if(A(Be),A(gt),A(It),Be<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const Ht=yn(U),on=yn(V),An=new Uint8Array(gt),Zt=Ge.create(R,Ht),Kn=Zt._cloneInto().update(on);return{c:Be,dkLen:gt,asyncTick:It,DK:An,PRF:Zt,PRFSalt:Kn}}(R,U,V,oe);let on;const An=new Uint8Array(4),Zt=Me(An),Kn=new Uint8Array(It.outputLen);for(let Wn=1,nr=0;nr<Be;Wn++,nr+=It.outputLen){const Mn=gt.subarray(nr,nr+It.outputLen);Zt.setInt32(0,Wn,!1),(on=Ht._cloneInto(on)).update(An).digestInto(Kn),Mn.set(Kn.subarray(0,Mn.length));for(let jn=1;jn<Ae;jn++){It._cloneInto(on).update(Kn).digestInto(Kn);for(let Qn=0;Qn<Mn.length;Qn++)Mn[Qn]^=Kn[Qn]}}return function mt(R,U,V,oe,Ae){return R.destroy(),U.destroy(),oe&&oe.destroy(),Ae.fill(0),V}(It,Ht,gt,on,Kn)}(kt,function ci(R){const U=ii(R),V=U.split(" ");if(![12,15,18,21,24].includes(V.length))throw new Error("Invalid mnemonic");return{nfkd:U,words:V}}(R).nfkd,(R=>ii(`mnemonic${R}`))(U),{c:2048,dkLen:64})}function Uo(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function ao(R,...U){if(!function ts(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}function Xo(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")}function Mo(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}const Je=R=>new DataView(R.buffer,R.byteOffset,R.byteLength),ct=(R,U)=>R<<32-U|R>>>U;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const ve=Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));function pt(R){return R>=48&&R<=57?R-48:R>=65&&R<=70?R-55:R>=97&&R<=102?R-87:void 0}function Sn(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}function kn(R){if("string"==typeof R&&(R=Sn(R)),!Mo(R))throw new Error("expected Uint8Array, got "+typeof R);return R}function Un(...R){let U=0;for(let oe=0;oe<R.length;oe++){const Ae=R[oe];if(!Mo(Ae))throw new Error("Uint8Array expected");U+=Ae.length}const V=new Uint8Array(U);for(let oe=0,Ae=0;oe<R.length;oe++){const Be=R[oe];V.set(Be,Ae),Ae+=Be.length}return V}class Jn{clone(){return this._cloneInto()}}function mr(R){const U=oe=>R().update(kn(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}class ai extends Jn{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,function wo(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Uo(R.outputLen),Uo(R.blockLen)}(U);const oe=kn(V);if(this.iHash=U.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gt<Be.length;gt++)Be[gt]^=54;this.iHash.update(Be),this.oHash=U.create();for(let gt=0;gt<Be.length;gt++)Be[gt]^=106;this.oHash.update(Be),Be.fill(0)}update(U){return Xo(this),this.iHash.update(U),this}digestInto(U){Xo(this),ao(U,this.outputLen),this.finished=!0,this.iHash.digestInto(U),this.oHash.update(U),this.oHash.digestInto(U),this.destroy()}digest(){const U=new Uint8Array(this.oHash.outputLen);return this.digestInto(U),U}_cloneInto(U){U||(U=Object.create(Object.getPrototypeOf(this),{}));const{oHash:V,iHash:oe,finished:Ae,destroyed:Be,blockLen:gt,outputLen:It}=this;return U.finished=Ae,U.destroyed=Be,U.blockLen=gt,U.outputLen=It,U.oHash=V._cloneInto(U.oHash),U.iHash=oe._cloneInto(U.iHash),U}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const yo=(R,U,V)=>new ai(R,U).update(V).digest();yo.create=(R,U)=>new ai(R,U);class Ki extends Jn{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=Je(this.buffer)}update(U){Xo(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=kn(U)).length;for(let gt=0;gt<Be;){const It=Math.min(Ae-this.pos,Be-gt);if(It!==Ae)oe.set(U.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process(V,0),this.pos=0);else{const Ht=Je(U);for(;Ae<=Be-gt;gt+=Ae)this.process(Ht,gt)}}return this.length+=U.length,this.roundClean(),this}digestInto(U){Xo(this),function Do(R,U){ao(R);const V=U.outputLen;if(R.length<V)throw new Error(`digestInto() expects output buffer of length at least ${V}`)}(U,this),this.finished=!0;const{buffer:V,view:oe,blockLen:Ae,isLE:Be}=this;let{pos:gt}=this;V[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt<Ae;Zt++)V[Zt]=0;(function $r(R,U,V,oe){if("function"==typeof R.setBigUint64)return R.setBigUint64(U,V,oe);const Ae=BigInt(32),Be=BigInt(4294967295),gt=Number(V>>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=Je(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;Zt<on;Zt++)It.setUint32(4*Zt,An[Zt],Be)}digest(){const{buffer:U,outputLen:V}=this;this.digestInto(U);const oe=U.slice(0,V);return this.destroy(),oe}_cloneInto(U){U||(U=new this.constructor),U.set(...this.get());const{blockLen:V,buffer:oe,length:Ae,finished:Be,destroyed:gt,pos:It}=this;return U.length=Ae,U.pos=It,U.finished=Be,U.destroyed=gt,Ae%V&&U.buffer.set(oe),U}}const ls=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),bs=Uint8Array.from({length:16},(R,U)=>U);let Sr=[bs],ra=[bs.map(R=>(9*R+5)%16)];for(let R=0;R<4;R++)for(let U of[Sr,ra])U.push(U[R].map(V=>ls[V]));const ga=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(R=>new Uint8Array(R)),Eo=Sr.map((R,U)=>R.map(V=>ga[U][V])),Rs=ra.map((R,U)=>R.map(V=>ga[U][V])),Ns=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),zs=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Gi=(R,U)=>R<<U|R>>>32-U;function Ks(R,U,V,oe){return 0===R?U^V^oe:1===R?U&V|~U&oe:2===R?(U|~V)^oe:3===R?U&oe|V&~oe:U^(V|~oe)}const Ni=new Uint32Array(16);class Ls extends Ki{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:U,h1:V,h2:oe,h3:Ae,h4:Be}=this;return[U,V,oe,Ae,Be]}set(U,V,oe,Ae,Be){this.h0=0|U,this.h1=0|V,this.h2=0|oe,this.h3=0|Ae,this.h4=0|Be}process(U,V){for(let Wn=0;Wn<16;Wn++,V+=4)Ni[Wn]=U.getUint32(V,!0);let oe=0|this.h0,Ae=oe,Be=0|this.h1,gt=Be,It=0|this.h2,Ht=It,on=0|this.h3,An=on,Zt=0|this.h4,Kn=Zt;for(let Wn=0;Wn<5;Wn++){const nr=4-Wn,Mn=Ns[Wn],jn=zs[Wn],Qn=Sr[Wn],ir=ra[Wn],Vn=Eo[Wn],dr=Rs[Wn];for(let Pr=0;Pr<16;Pr++){const Ir=Gi(oe+Ks(Wn,Be,It,on)+Ni[Qn[Pr]]+Mn,Vn[Pr])+Zt|0;oe=Zt,Zt=on,on=0|Gi(It,10),It=Be,Be=Ir}for(let Pr=0;Pr<16;Pr++){const Ir=Gi(Ae+Ks(nr,gt,Ht,An)+Ni[ir[Pr]]+jn,dr[Pr])+Kn|0;Ae=Kn,Kn=An,An=0|Gi(Ht,10),Ht=gt,gt=Ir}}this.set(this.h1+It+An|0,this.h2+on+Kn|0,this.h3+Zt+Ae|0,this.h4+oe+gt|0,this.h0+Be+Ht|0)}roundClean(){Ni.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ns=mr(()=>new Ls),qr=(R,U,V)=>R&U^~R&V,rs=(R,U,V)=>R&U^R&V^U&V,is=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),to=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Wi=new Uint32Array(64);class ws extends Ki{constructor(){super(64,32,8,!1),this.A=0|to[0],this.B=0|to[1],this.C=0|to[2],this.D=0|to[3],this.E=0|to[4],this.F=0|to[5],this.G=0|to[6],this.H=0|to[7]}get(){const{A:U,B:V,C:oe,D:Ae,E:Be,F:gt,G:It,H:Ht}=this;return[U,V,oe,Ae,Be,gt,It,Ht]}set(U,V,oe,Ae,Be,gt,It,Ht){this.A=0|U,this.B=0|V,this.C=0|oe,this.D=0|Ae,this.E=0|Be,this.F=0|gt,this.G=0|It,this.H=0|Ht}process(U,V){for(let Zt=0;Zt<16;Zt++,V+=4)Wi[Zt]=U.getUint32(V,!1);for(let Zt=16;Zt<64;Zt++){const Kn=Wi[Zt-15],Wn=Wi[Zt-2],nr=ct(Kn,7)^ct(Kn,18)^Kn>>>3,Mn=ct(Wn,17)^ct(Wn,19)^Wn>>>10;Wi[Zt]=Mn+Wi[Zt-7]+nr+Wi[Zt-16]|0}let{A:oe,B:Ae,C:Be,D:gt,E:It,F:Ht,G:on,H:An}=this;for(let Zt=0;Zt<64;Zt++){const Wn=An+(ct(It,6)^ct(It,11)^ct(It,25))+qr(It,Ht,on)+is[Zt]+Wi[Zt]|0,Mn=(ct(oe,2)^ct(oe,13)^ct(oe,22))+rs(oe,Ae,Be)|0;An=on,on=Ht,Ht=It,It=gt+Wn|0,gt=Be,Be=Ae,Ae=oe,oe=Wn+Mn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,Be=Be+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Ht=Ht+this.F|0,on=on+this.G|0,An=An+this.H|0,this.set(oe,Ae,Be,gt,It,Ht,on,An)}roundClean(){Wi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const va=mr(()=>new ws),xo=BigInt(2**32-1),os=BigInt(32);function Ms(R,U=!1){return U?{h:Number(R&xo),l:Number(R>>os&xo)}:{h:0|Number(R>>os&xo),l:0|Number(R&xo)}}const Xe_split=function Ps(R,U=!1){let V=new Uint32Array(R.length),oe=new Uint32Array(R.length);for(let Ae=0;Ae<R.length;Ae++){const{h:Be,l:gt}=Ms(R[Ae],U);[V[Ae],oe[Ae]]=[Be,gt]}return[V,oe]},Xe_shrSH=(R,U,V)=>R>>>V,Xe_shrSL=(R,U,V)=>R<<32-V|U>>>V,Xe_rotrSH=(R,U,V)=>R>>>V|U<<32-V,Xe_rotrSL=(R,U,V)=>R<<32-V|U>>>V,Xe_rotrBH=(R,U,V)=>R<<64-V|U>>>V-32,Xe_rotrBL=(R,U,V)=>R>>>V-32|U<<64-V,Xe_add=function ko(R,U,V,oe){const Ae=(U>>>0)+(oe>>>0);return{h:R+V+(Ae/2**32|0)|0,l:0|Ae}},Xe_add3L=(R,U,V)=>(R>>>0)+(U>>>0)+(V>>>0),Xe_add3H=(R,U,V,oe)=>U+V+oe+(R/2**32|0)|0,Xe_add4L=(R,U,V,oe)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0),Xe_add4H=(R,U,V,oe,Ae)=>U+V+oe+Ae+(R/2**32|0)|0,Xe_add5H=(R,U,V,oe,Ae,Be)=>U+V+oe+Ae+Be+(R/2**32|0)|0,Xe_add5L=(R,U,V,oe,Ae)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0)+(Ae>>>0),[wt,Ln]=Xe_split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(R=>BigInt(R))),hn=new Uint32Array(80),ur=new Uint32Array(80);class hr extends Ki{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:U,Al:V,Bh:oe,Bl:Ae,Ch:Be,Cl:gt,Dh:It,Dl:Ht,Eh:on,El:An,Fh:Zt,Fl:Kn,Gh:Wn,Gl:nr,Hh:Mn,Hl:jn}=this;return[U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn]}set(U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn){this.Ah=0|U,this.Al=0|V,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|Be,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Ht,this.Eh=0|on,this.El=0|An,this.Fh=0|Zt,this.Fl=0|Kn,this.Gh=0|Wn,this.Gl=0|nr,this.Hh=0|Mn,this.Hl=0|jn}process(U,V){for(let Vn=0;Vn<16;Vn++,V+=4)hn[Vn]=U.getUint32(V),ur[Vn]=U.getUint32(V+=4);for(let Vn=16;Vn<80;Vn++){const dr=0|hn[Vn-15],Pr=0|ur[Vn-15],Ir=Xe_rotrSH(dr,Pr,1)^Xe_rotrSH(dr,Pr,8)^Xe_shrSH(dr,Pr,7),zr=Xe_rotrSL(dr,Pr,1)^Xe_rotrSL(dr,Pr,8)^Xe_shrSL(dr,Pr,7),Ur=0|hn[Vn-2],Yi=0|ur[Vn-2],Qi=Xe_rotrSH(Ur,Yi,19)^Xe_rotrBH(Ur,Yi,61)^Xe_shrSH(Ur,Yi,6),Mi=Xe_rotrSL(Ur,Yi,19)^Xe_rotrBL(Ur,Yi,61)^Xe_shrSL(Ur,Yi,6),Zi=Xe_add4L(zr,Mi,ur[Vn-7],ur[Vn-16]),Bo=Xe_add4H(Zi,Ir,Qi,hn[Vn-7],hn[Vn-16]);hn[Vn]=0|Bo,ur[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:Be,Bl:gt,Ch:It,Cl:Ht,Dh:on,Dl:An,Eh:Zt,El:Kn,Fh:Wn,Fl:nr,Gh:Mn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const dr=Xe_rotrSH(Zt,Kn,14)^Xe_rotrSH(Zt,Kn,18)^Xe_rotrBH(Zt,Kn,41),Pr=Xe_rotrSL(Zt,Kn,14)^Xe_rotrSL(Zt,Kn,18)^Xe_rotrBL(Zt,Kn,41),Ir=Zt&Wn^~Zt&Mn,Ur=Xe_add5L(ir,Pr,Kn&nr^~Kn&jn,Ln[Vn],ur[Vn]),Yi=Xe_add5H(Ur,Qn,dr,Ir,wt[Vn],hn[Vn]),Qi=0|Ur,Mi=Xe_rotrSH(oe,Ae,28)^Xe_rotrBH(oe,Ae,34)^Xe_rotrBH(oe,Ae,39),Zi=Xe_rotrSL(oe,Ae,28)^Xe_rotrBL(oe,Ae,34)^Xe_rotrBL(oe,Ae,39),Bo=oe&Be^oe&It^Be&It,Cs=Ae>^Ae&Ht^gt&Ht;Qn=0|Mn,ir=0|jn,Mn=0|Wn,jn=0|nr,Wn=0|Zt,nr=0|Kn,({h:Zt,l:Kn}=Xe_add(0|on,0|An,0|Yi,0|Qi)),on=0|It,An=0|Ht,It=0|Be,Ht=0|gt,Be=0|oe,gt=0|Ae;const yr=Xe_add3L(Qi,Zi,Cs);oe=Xe_add3H(yr,Yi,Mi,Bo),Ae=0|yr}({h:oe,l:Ae}=Xe_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:Be,l:gt}=Xe_add(0|this.Bh,0|this.Bl,0|Be,0|gt)),({h:It,l:Ht}=Xe_add(0|this.Ch,0|this.Cl,0|It,0|Ht)),({h:on,l:An}=Xe_add(0|this.Dh,0|this.Dl,0|on,0|An)),({h:Zt,l:Kn}=Xe_add(0|this.Eh,0|this.El,0|Zt,0|Kn)),({h:Wn,l:nr}=Xe_add(0|this.Fh,0|this.Fl,0|Wn,0|nr)),({h:Mn,l:jn}=Xe_add(0|this.Gh,0|this.Gl,0|Mn,0|jn)),({h:Qn,l:ir}=Xe_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn,Qn,ir)}roundClean(){hn.fill(0),ur.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Dr=mr(()=>new hr);function co(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function Oo(R,...U){if(!(R instanceof Uint8Array))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}const ce={number:co,bool:function Ho(R){if("boolean"!=typeof R)throw new Error(`Expected boolean, not ${R}`)},bytes:Oo,hash:function Wl(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");co(R.outputLen),co(R.blockLen)},exists:function Ya(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")},output:function ba(R,U){Oo(R);const V=U.outputLen;if(R.length<V)throw new Error(`digestInto() expects output buffer of length at least ${V}`)}},Q="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,Le=R=>R instanceof Uint8Array,ni=R=>new DataView(R.buffer,R.byteOffset,R.byteLength),So=(R,U)=>R<<32-U|R>>>U;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Lo(R){if("string"==typeof R&&(R=function Fa(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}(R)),!Le(R))throw new Error("expected Uint8Array, got "+typeof R);return R}Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));class xl{clone(){return this._cloneInto()}}function Ba(R){const U=oe=>R().update(Lo(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}function ic(R=32){if(Q&&"function"==typeof Q.getRandomValues)return Q.getRandomValues(new Uint8Array(R));throw new Error("crypto.getRandomValues must be defined")}class zl extends xl{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=ni(this.buffer)}update(U){ce.exists(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=Lo(U)).length;for(let gt=0;gt<Be;){const It=Math.min(Ae-this.pos,Be-gt);if(It!==Ae)oe.set(U.subarray(gt,gt+It),this.pos),this.pos+=It,gt+=It,this.pos===Ae&&(this.process(V,0),this.pos=0);else{const Ht=ni(U);for(;Ae<=Be-gt;gt+=Ae)this.process(Ht,gt)}}return this.length+=U.length,this.roundClean(),this}digestInto(U){ce.exists(this),ce.output(U,this),this.finished=!0;const{buffer:V,view:oe,blockLen:Ae,isLE:Be}=this;let{pos:gt}=this;V[gt++]=128,this.buffer.subarray(gt).fill(0),this.padOffset>Ae-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt<Ae;Zt++)V[Zt]=0;(function Ua(R,U,V,oe){if("function"==typeof R.setBigUint64)return R.setBigUint64(U,V,oe);const Ae=BigInt(32),Be=BigInt(4294967295),gt=Number(V>>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=ni(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;Zt<on;Zt++)It.setUint32(4*Zt,An[Zt],Be)}digest(){const{buffer:U,outputLen:V}=this;this.digestInto(U);const oe=U.slice(0,V);return this.destroy(),oe}_cloneInto(U){U||(U=new this.constructor),U.set(...this.get());const{blockLen:V,buffer:oe,length:Ae,finished:Be,destroyed:gt,pos:It}=this;return U.length=Ae,U.pos=It,U.finished=Be,U.destroyed=gt,Ae%V&&U.buffer.set(oe),U}}const wa=(R,U,V)=>R&U^~R&V,Za=(R,U,V)=>R&U^R&V^U&V,Dl=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ro=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),uo=new Uint32Array(64);class Ea extends zl{constructor(){super(64,32,8,!1),this.A=0|Ro[0],this.B=0|Ro[1],this.C=0|Ro[2],this.D=0|Ro[3],this.E=0|Ro[4],this.F=0|Ro[5],this.G=0|Ro[6],this.H=0|Ro[7]}get(){const{A:U,B:V,C:oe,D:Ae,E:Be,F:gt,G:It,H:Ht}=this;return[U,V,oe,Ae,Be,gt,It,Ht]}set(U,V,oe,Ae,Be,gt,It,Ht){this.A=0|U,this.B=0|V,this.C=0|oe,this.D=0|Ae,this.E=0|Be,this.F=0|gt,this.G=0|It,this.H=0|Ht}process(U,V){for(let Zt=0;Zt<16;Zt++,V+=4)uo[Zt]=U.getUint32(V,!1);for(let Zt=16;Zt<64;Zt++){const Kn=uo[Zt-15],Wn=uo[Zt-2],nr=So(Kn,7)^So(Kn,18)^Kn>>>3,Mn=So(Wn,17)^So(Wn,19)^Wn>>>10;uo[Zt]=Mn+uo[Zt-7]+nr+uo[Zt-16]|0}let{A:oe,B:Ae,C:Be,D:gt,E:It,F:Ht,G:on,H:An}=this;for(let Zt=0;Zt<64;Zt++){const Wn=An+(So(It,6)^So(It,11)^So(It,25))+wa(It,Ht,on)+Dl[Zt]+uo[Zt]|0,Mn=(So(oe,2)^So(oe,13)^So(oe,22))+Za(oe,Ae,Be)|0;An=on,on=Ht,Ht=It,It=gt+Wn|0,gt=Be,Be=Ae,Ae=oe,oe=Wn+Mn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,Be=Be+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Ht=Ht+this.F|0,on=on+this.G|0,An=An+this.H|0,this.set(oe,Ae,Be,gt,It,Ht,on,An)}roundClean(){uo.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class xa extends Ea{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const Jo=Ba(()=>new Ea),Sl=(Ba(()=>new xa),BigInt(0),BigInt(1)),Gl=BigInt(2),Al=R=>R instanceof Uint8Array,Xl=Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));function Ca(R){if(!Al(R))throw new Error("Uint8Array expected");let U="";for(let V=0;V<R.length;V++)U+=Xl[R[V]];return U}function Ui(R){if("string"!=typeof R)throw new Error("hex string expected, got "+typeof R);return BigInt(""===R?"0":`0x${R}`)}function zn(R){if("string"!=typeof R)throw new Error("hex string expected, got "+typeof R);const U=R.length;if(U%2)throw new Error("padded hex string expected, got unpadded hex of length "+U);const V=new Uint8Array(U/2);for(let oe=0;oe<V.length;oe++){const Ae=2*oe,Be=R.slice(Ae,Ae+2),gt=Number.parseInt(Be,16);if(Number.isNaN(gt)||gt<0)throw new Error("Invalid byte sequence");V[oe]=gt}return V}function Ar(R){return Ui(Ca(R))}function Ao(R){if(!Al(R))throw new Error("Uint8Array expected");return Ui(Ca(Uint8Array.from(R).reverse()))}function no(R,U){return zn(R.toString(16).padStart(2*U,"0"))}function $o(R,U){return no(R,U).reverse()}function Po(R,U,V){let oe;if("string"==typeof U)try{oe=zn(U)}catch(Be){throw new Error(`${R} must be valid hex string, got "${U}". Cause: ${Be}`)}else{if(!Al(U))throw new Error(`${R} must be hex string or Uint8Array`);oe=Uint8Array.from(U)}const Ae=oe.length;if("number"==typeof V&&Ae!==V)throw new Error(`${R} expected ${V} bytes, got ${Ae}`);return oe}function Fr(...R){const U=new Uint8Array(R.reduce((oe,Ae)=>oe+Ae.length,0));let V=0;return R.forEach(oe=>{if(!Al(oe))throw new Error("Uint8Array expected");U.set(oe,V),V+=oe.length}),U}const $a=R=>(Gl<<BigInt(R-1))-Sl,ro=R=>new Uint8Array(R),ja=R=>Uint8Array.from(R);function Di(R,U,V){if("number"!=typeof R||R<2)throw new Error("hashLen must be a number");if("number"!=typeof U||U<2)throw new Error("qByteLen must be a number");if("function"!=typeof V)throw new Error("hmacFn must be a function");let oe=ro(R),Ae=ro(R),Be=0;const gt=()=>{oe.fill(1),Ae.fill(0),Be=0},It=(...Zt)=>V(Ae,oe,...Zt),Ht=(Zt=ro())=>{Ae=It(ja([0]),Zt),oe=It(),0!==Zt.length&&(Ae=It(ja([1]),Zt),oe=It())},on=()=>{if(Be++>=1e3)throw new Error("drbg: tried 1000 values");let Zt=0;const Kn=[];for(;Zt<U;){oe=It();const Wn=oe.slice();Kn.push(Wn),Zt+=oe.length}return Fr(...Kn)};return(Zt,Kn)=>{let Wn;for(gt(),Ht(Zt);!(Wn=Kn(on()));)Ht();return gt(),Wn}}const Bs={bigint:R=>"bigint"==typeof R,function:R=>"function"==typeof R,boolean:R=>"boolean"==typeof R,string:R=>"string"==typeof R,isSafeInteger:R=>Number.isSafeInteger(R),array:R=>Array.isArray(R),field:(R,U)=>U.Fp.isValid(R),hash:R=>"function"==typeof R&&Number.isSafeInteger(R.outputLen)};function aa(R,U,V={}){const oe=(Ae,Be,gt)=>{const It=Bs[Be];if("function"!=typeof It)throw new Error(`Invalid validator "${Be}", expected function`);const Ht=R[Ae];if(!(gt&&void 0===Ht||It(Ht,R)))throw new Error(`Invalid param ${String(Ae)}=${Ht} (${typeof Ht}), expected ${Be}`)};for(const[Ae,Be]of Object.entries(U))oe(Ae,Be,!1);for(const[Ae,Be]of Object.entries(V))oe(Ae,Be,!0);return R}const No=BigInt(0),$=BigInt(1),de=BigInt(2),q=BigInt(3),_e=BigInt(4),nt=BigInt(5),_n=BigInt(8);function Yr(R,U){const V=R%U;return V>=No?V:U+V}function Li(R,U,V){if(V<=No||U<No)throw new Error("Expected power/modulo > 0");if(V===$)return No;let oe=$;for(;U>No;)U&$&&(oe=oe*R%V),R=R*R%V,U>>=$;return oe}function Hr(R,U,V){let oe=R;for(;U-- >No;)oe*=oe,oe%=V;return oe}function xi(R,U){if(R===No||U<=No)throw new Error(`invert: expected positive integers, got n=${R} mod=${U}`);let V=Yr(R,U),oe=U,Ae=No,Be=$,gt=$,It=No;for(;V!==No;){const on=oe/V,An=oe%V,Zt=Ae-gt*on,Kn=Be-It*on;oe=V,V=An,Ae=gt,Be=It,gt=Zt,It=Kn}if(oe!==$)throw new Error("invert: does not exist");return Yr(Ae,U)}BigInt(9),BigInt(16);const Wo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Xs(R,U){const V=void 0!==U?U:R.toString(2).length;return{nBitLength:V,nByteLength:Math.ceil(V/8)}}const la=BigInt(0),Yl=BigInt(1);function fd(R){return function ds(R){aa(R,Wo.reduce((oe,Ae)=>(oe[Ae]="function",oe),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(R.Fp),aa(R,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Xs(R.n,R.nBitLength),...R,p:R.Fp.ORDER})}const{Ph:To,aT:qa}=i,Ja={Err:class extends Error{constructor(U=""){super(U)}},_parseInt(R){const{Err:U}=Ja;if(R.length<2||2!==R[0])throw new U("Invalid signature integer tag");const V=R[1],oe=R.subarray(2,V+2);if(!V||oe.length!==V)throw new U("Invalid signature integer: wrong length");if(128&oe[0])throw new U("Invalid signature integer: negative");if(0===oe[0]&&!(128&oe[1]))throw new U("Invalid signature integer: unnecessary leading zero");return{d:To(oe),l:R.subarray(V+2)}},toSig(R){const{Err:U}=Ja,V="string"==typeof R?qa(R):R;if(!(V instanceof Uint8Array))throw new Error("ui8a expected");let oe=V.length;if(oe<2||48!=V[0])throw new U("Invalid signature tag");if(V[1]!==oe-2)throw new U("Invalid signature: incorrect length");const{d:Ae,l:Be}=Ja._parseInt(V.subarray(2)),{d:gt,l:It}=Ja._parseInt(Be);if(It.length)throw new U("Invalid signature: left bytes after parsing");return{r:Ae,s:gt}},hexFromSig(R){const U=on=>8&Number.parseInt(on[0],16)?"00"+on:on,V=on=>{const An=on.toString(16);return 1&An.length?`0${An}`:An},oe=U(V(R.s)),Ae=U(V(R.r)),Be=oe.length/2,gt=Ae.length/2,It=V(Be),Ht=V(gt);return`30${V(gt+Be+4)}02${Ht}${Ae}02${It}${oe}`}},Ys=BigInt(0),zo=BigInt(1),Os=(BigInt(2),BigInt(3));function pd(R){const U=function nh(R){const U=fd(R);return aa(U,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...U})}(R),{Fp:V,n:oe}=U,Ae=V.BYTES+1,Be=2*V.BYTES+1;function It(yr){return Yr(yr,oe)}function Ht(yr){return xi(yr,oe)}const{ProjectivePoint:on,normPrivateKeyToScalar:An,weierstrassEquation:Zt,isWithinCurveOrder:Kn}=function bc(R){const U=function sc(R){const U=fd(R);aa(U,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:V,Fp:oe,a:Ae}=U;if(V){if(!oe.eql(Ae,oe.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof V||"bigint"!=typeof V.beta||"function"!=typeof V.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...U})}(R),{Fp:V}=U,oe=U.toBytes||((nr,Mn,jn)=>{const Qn=Mn.toAffine();return Fr(Uint8Array.from([4]),V.toBytes(Qn.x),V.toBytes(Qn.y))}),Ae=U.fromBytes||(nr=>{const Mn=nr.subarray(1);return{x:V.fromBytes(Mn.subarray(0,V.BYTES)),y:V.fromBytes(Mn.subarray(V.BYTES,2*V.BYTES))}});function Be(nr){const{a:Mn,b:jn}=U,Qn=V.sqr(nr),ir=V.mul(Qn,nr);return V.add(V.add(ir,V.mul(nr,Mn)),jn)}if(!V.eql(V.sqr(U.Gy),Be(U.Gx)))throw new Error("bad generator point: equation left != right");function gt(nr){return"bigint"==typeof nr&&Ys<nr&&nr<U.n}function It(nr){if(!gt(nr))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function Ht(nr){const{allowedPrivateKeyLengths:Mn,nByteLength:jn,wrapPrivateKey:Qn,n:ir}=U;if(Mn&&"bigint"!=typeof nr){if(nr instanceof Uint8Array&&(nr=Ca(nr)),"string"!=typeof nr||!Mn.includes(nr.length))throw new Error("Invalid key");nr=nr.padStart(2*jn,"0")}let Vn;try{Vn="bigint"==typeof nr?nr:Ar(Po("private key",nr,jn))}catch{throw new Error(`private key must be ${jn} bytes, hex or bigint, not ${typeof nr}`)}return Qn&&(Vn=Yr(Vn,ir)),It(Vn),Vn}const on=new Map;function An(nr){if(!(nr instanceof Zt))throw new Error("ProjectivePoint expected")}class Zt{constructor(Mn,jn,Qn){if(this.px=Mn,this.py=jn,this.pz=Qn,null==Mn||!V.isValid(Mn))throw new Error("x required");if(null==jn||!V.isValid(jn))throw new Error("y required");if(null==Qn||!V.isValid(Qn))throw new Error("z required")}static fromAffine(Mn){const{x:jn,y:Qn}=Mn||{};if(!Mn||!V.isValid(jn)||!V.isValid(Qn))throw new Error("invalid affine point");if(Mn instanceof Zt)throw new Error("projective point not allowed");const ir=Vn=>V.eql(Vn,V.ZERO);return ir(jn)&&ir(Qn)?Zt.ZERO:new Zt(jn,Qn,V.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Mn){const jn=V.invertBatch(Mn.map(Qn=>Qn.pz));return Mn.map((Qn,ir)=>Qn.toAffine(jn[ir])).map(Zt.fromAffine)}static fromHex(Mn){const jn=Zt.fromAffine(Ae(Po("pointHex",Mn)));return jn.assertValidity(),jn}static fromPrivateKey(Mn){return Zt.BASE.multiply(Ht(Mn))}_setWindowSize(Mn){this._WINDOW_SIZE=Mn,on.delete(this)}assertValidity(){if(this.is0()){if(U.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Mn,y:jn}=this.toAffine();if(!V.isValid(Mn)||!V.isValid(jn))throw new Error("bad point: x or y not FE");const Qn=V.sqr(jn),ir=Be(Mn);if(!V.eql(Qn,ir))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Mn}=this.toAffine();if(V.isOdd)return!V.isOdd(Mn);throw new Error("Field doesn't support isOdd")}equals(Mn){An(Mn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:dr,pz:Pr}=Mn,Ir=V.eql(V.mul(jn,Pr),V.mul(Vn,ir)),zr=V.eql(V.mul(Qn,Pr),V.mul(dr,ir));return Ir&&zr}negate(){return new Zt(this.px,V.neg(this.py),this.pz)}double(){const{a:Mn,b:jn}=U,Qn=V.mul(jn,Os),{px:ir,py:Vn,pz:dr}=this;let Pr=V.ZERO,Ir=V.ZERO,zr=V.ZERO,Ur=V.mul(ir,ir),Yi=V.mul(Vn,Vn),Qi=V.mul(dr,dr),Mi=V.mul(ir,Vn);return Mi=V.add(Mi,Mi),zr=V.mul(ir,dr),zr=V.add(zr,zr),Pr=V.mul(Mn,zr),Ir=V.mul(Qn,Qi),Ir=V.add(Pr,Ir),Pr=V.sub(Yi,Ir),Ir=V.add(Yi,Ir),Ir=V.mul(Pr,Ir),Pr=V.mul(Mi,Pr),zr=V.mul(Qn,zr),Qi=V.mul(Mn,Qi),Mi=V.sub(Ur,Qi),Mi=V.mul(Mn,Mi),Mi=V.add(Mi,zr),zr=V.add(Ur,Ur),Ur=V.add(zr,Ur),Ur=V.add(Ur,Qi),Ur=V.mul(Ur,Mi),Ir=V.add(Ir,Ur),Qi=V.mul(Vn,dr),Qi=V.add(Qi,Qi),Ur=V.mul(Qi,Mi),Pr=V.sub(Pr,Ur),zr=V.mul(Qi,Yi),zr=V.add(zr,zr),zr=V.add(zr,zr),new Zt(Pr,Ir,zr)}add(Mn){An(Mn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:dr,pz:Pr}=Mn;let Ir=V.ZERO,zr=V.ZERO,Ur=V.ZERO;const Yi=U.a,Qi=V.mul(U.b,Os);let Mi=V.mul(jn,Vn),Zi=V.mul(Qn,dr),Bo=V.mul(ir,Pr),Cs=V.add(jn,Qn),yr=V.add(Vn,dr);Cs=V.mul(Cs,yr),yr=V.add(Mi,Zi),Cs=V.sub(Cs,yr),yr=V.add(jn,ir);let jr=V.add(Vn,Pr);return yr=V.mul(yr,jr),jr=V.add(Mi,Bo),yr=V.sub(yr,jr),jr=V.add(Qn,ir),Ir=V.add(dr,Pr),jr=V.mul(jr,Ir),Ir=V.add(Zi,Bo),jr=V.sub(jr,Ir),Ur=V.mul(Yi,yr),Ir=V.mul(Qi,Bo),Ur=V.add(Ir,Ur),Ir=V.sub(Zi,Ur),Ur=V.add(Zi,Ur),zr=V.mul(Ir,Ur),Zi=V.add(Mi,Mi),Zi=V.add(Zi,Mi),Bo=V.mul(Yi,Bo),yr=V.mul(Qi,yr),Zi=V.add(Zi,Bo),Bo=V.sub(Mi,Bo),Bo=V.mul(Yi,Bo),yr=V.add(yr,Bo),Mi=V.mul(Zi,yr),zr=V.add(zr,Mi),Mi=V.mul(jr,yr),Ir=V.mul(Cs,Ir),Ir=V.sub(Ir,Mi),Mi=V.mul(Cs,Zi),Ur=V.mul(jr,Ur),Ur=V.add(Ur,Mi),new Zt(Ir,zr,Ur)}subtract(Mn){return this.add(Mn.negate())}is0(){return this.equals(Zt.ZERO)}wNAF(Mn){return Wn.wNAFCached(this,on,Mn,jn=>{const Qn=V.invertBatch(jn.map(ir=>ir.pz));return jn.map((ir,Vn)=>ir.toAffine(Qn[Vn])).map(Zt.fromAffine)})}multiplyUnsafe(Mn){const jn=Zt.ZERO;if(Mn===Ys)return jn;if(It(Mn),Mn===zo)return this;const{endo:Qn}=U;if(!Qn)return Wn.unsafeLadder(this,Mn);let{k1neg:ir,k1:Vn,k2neg:dr,k2:Pr}=Qn.splitScalar(Mn),Ir=jn,zr=jn,Ur=this;for(;Vn>Ys||Pr>Ys;)Vn&zo&&(Ir=Ir.add(Ur)),Pr&zo&&(zr=zr.add(Ur)),Ur=Ur.double(),Vn>>=zo,Pr>>=zo;return ir&&(Ir=Ir.negate()),dr&&(zr=zr.negate()),zr=new Zt(V.mul(zr.px,Qn.beta),zr.py,zr.pz),Ir.add(zr)}multiply(Mn){It(Mn);let Qn,ir,jn=Mn;const{endo:Vn}=U;if(Vn){const{k1neg:dr,k1:Pr,k2neg:Ir,k2:zr}=Vn.splitScalar(jn);let{p:Ur,f:Yi}=this.wNAF(Pr),{p:Qi,f:Mi}=this.wNAF(zr);Ur=Wn.constTimeNegate(dr,Ur),Qi=Wn.constTimeNegate(Ir,Qi),Qi=new Zt(V.mul(Qi.px,Vn.beta),Qi.py,Qi.pz),Qn=Ur.add(Qi),ir=Yi.add(Mi)}else{const{p:dr,f:Pr}=this.wNAF(jn);Qn=dr,ir=Pr}return Zt.normalizeZ([Qn,ir])[0]}multiplyAndAddUnsafe(Mn,jn,Qn){const ir=Zt.BASE,Vn=(Pr,Ir)=>Ir!==Ys&&Ir!==zo&&Pr.equals(ir)?Pr.multiply(Ir):Pr.multiplyUnsafe(Ir),dr=Vn(this,jn).add(Vn(Mn,Qn));return dr.is0()?void 0:dr}toAffine(Mn){const{px:jn,py:Qn,pz:ir}=this,Vn=this.is0();null==Mn&&(Mn=Vn?V.ONE:V.inv(ir));const dr=V.mul(jn,Mn),Pr=V.mul(Qn,Mn),Ir=V.mul(ir,Mn);if(Vn)return{x:V.ZERO,y:V.ZERO};if(!V.eql(Ir,V.ONE))throw new Error("invZ was invalid");return{x:dr,y:Pr}}isTorsionFree(){const{h:Mn,isTorsionFree:jn}=U;if(Mn===zo)return!0;if(jn)return jn(Zt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Mn,clearCofactor:jn}=U;return Mn===zo?this:jn?jn(Zt,this):this.multiplyUnsafe(U.h)}toRawBytes(Mn=!0){return this.assertValidity(),oe(Zt,this,Mn)}toHex(Mn=!0){return Ca(this.toRawBytes(Mn))}}Zt.BASE=new Zt(U.Gx,U.Gy,V.ONE),Zt.ZERO=new Zt(V.ZERO,V.ONE,V.ZERO);const Kn=U.nBitLength,Wn=function Pc(R,U){const V=(Ae,Be)=>{const gt=Be.negate();return Ae?gt:Be},oe=Ae=>({windows:Math.ceil(U/Ae)+1,windowSize:2**(Ae-1)});return{constTimeNegate:V,unsafeLadder(Ae,Be){let gt=R.ZERO,It=Ae;for(;Be>la;)Be&Yl&&(gt=gt.add(It)),It=It.double(),Be>>=Yl;return gt},precomputeWindow(Ae,Be){const{windows:gt,windowSize:It}=oe(Be),Ht=[];let on=Ae,An=on;for(let Zt=0;Zt<gt;Zt++){An=on,Ht.push(An);for(let Kn=1;Kn<It;Kn++)An=An.add(on),Ht.push(An);on=An.double()}return Ht},wNAF(Ae,Be,gt){const{windows:It,windowSize:Ht}=oe(Ae);let on=R.ZERO,An=R.BASE;const Zt=BigInt(2**Ae-1),Kn=2**Ae,Wn=BigInt(Ae);for(let nr=0;nr<It;nr++){const Mn=nr*Ht;let jn=Number(gt&Zt);gt>>=Wn,jn>Ht&&(jn-=Kn,gt+=Yl);const Qn=Mn,ir=Mn+Math.abs(jn)-1,dr=jn<0;0===jn?An=An.add(V(nr%2!=0,Be[Qn])):on=on.add(V(dr,Be[ir]))}return{p:on,f:An}},wNAFCached(Ae,Be,gt,It){const Ht=Ae._WINDOW_SIZE||1;let on=Be.get(Ae);return on||(on=this.precomputeWindow(Ae,Ht),1!==Ht&&Be.set(Ae,It(on))),this.wNAF(Ht,on,gt)}}}(Zt,U.endo?Math.ceil(Kn/2):Kn);return{CURVE:U,ProjectivePoint:Zt,normPrivateKeyToScalar:Ht,weierstrassEquation:Be,isWithinCurveOrder:gt}}({...U,toBytes(yr,jr,Fi){const $i=jr.toAffine(),vo=V.toBytes($i.x),fs=Fr;return Fi?fs(Uint8Array.from([jr.hasEvenY()?2:3]),vo):fs(Uint8Array.from([4]),vo,V.toBytes($i.y))},fromBytes(yr){const jr=yr.length,Fi=yr[0],$i=yr.subarray(1);if(jr!==Ae||2!==Fi&&3!==Fi){if(jr===Be&&4===Fi)return{x:V.fromBytes($i.subarray(0,V.BYTES)),y:V.fromBytes($i.subarray(V.BYTES,2*V.BYTES))};throw new Error(`Point of length ${jr} was invalid. Expected ${Ae} compressed bytes or ${Be} uncompressed bytes`)}{const vo=Ar($i);if(!function gt(yr){return Ys<yr&&yr<V.ORDER}(vo))throw new Error("Point is not on curve");const fs=Zt(vo);let ps=V.sqrt(fs);return!(1&~Fi)!=((ps&zo)===zo)&&(ps=V.neg(ps)),{x:vo,y:ps}}}}),Wn=yr=>Ca(no(yr,U.nByteLength));function nr(yr){return yr>oe>>zo}const jn=(yr,jr,Fi)=>Ar(yr.slice(jr,Fi));class Qn{constructor(jr,Fi,$i){this.r=jr,this.s=Fi,this.recovery=$i,this.assertValidity()}static fromCompact(jr){const Fi=U.nByteLength;return jr=Po("compactSignature",jr,2*Fi),new Qn(jn(jr,0,Fi),jn(jr,Fi,2*Fi))}static fromDER(jr){const{r:Fi,s:$i}=Ja.toSig(Po("DER",jr));return new Qn(Fi,$i)}assertValidity(){if(!Kn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Kn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(jr){return new Qn(this.r,this.s,jr)}recoverPublicKey(jr){const{r:Fi,s:$i,recovery:vo}=this,fs=zr(Po("msgHash",jr));if(null==vo||![0,1,2,3].includes(vo))throw new Error("recovery id invalid");const ps=2===vo||3===vo?Fi+U.n:Fi;if(ps>=V.ORDER)throw new Error("recovery id 2 or 3 invalid");const cc=on.fromHex((1&vo?"03":"02")+Wn(ps)),tl=Ht(ps),uc=It(-fs*tl),jc=It($i*tl),dc=on.BASE.multiplyAndAddUnsafe(cc,uc,jc);if(!dc)throw new Error("point at infinify");return dc.assertValidity(),dc}hasHighS(){return nr(this.s)}normalizeS(){return this.hasHighS()?new Qn(this.r,It(-this.s),this.recovery):this}toDERRawBytes(){return zn(this.toDERHex())}toDERHex(){return Ja.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return zn(this.toCompactHex())}toCompactHex(){return Wn(this.r)+Wn(this.s)}}const ir={isValidPrivateKey(yr){try{return An(yr),!0}catch{return!1}},normPrivateKeyToScalar:An,randomPrivateKey:()=>{const jr=function cl(R,U,V=!1){const oe=(R=Po("privateHash",R)).length,Ae=Xs(U).nByteLength+8;if(Ae<24||oe<Ae||oe>1024)throw new Error(`hashToPrivateScalar: expected ${Ae}-1024 bytes of input, got ${oe}`);return Yr(V?Ao(R):Ar(R),U-$)+$}(U.randomBytes(V.BYTES+8),oe);return no(jr,U.nByteLength)},precompute:(yr=8,jr=on.BASE)=>(jr._setWindowSize(yr),jr.multiply(BigInt(3)),jr)};function dr(yr){const jr=yr instanceof Uint8Array,Fi="string"==typeof yr,$i=(jr||Fi)&&yr.length;return jr?$i===Ae||$i===Be:Fi?$i===2*Ae||$i===2*Be:yr instanceof on}const Ir=U.bits2int||function(yr){const jr=Ar(yr),Fi=8*yr.length-U.nBitLength;return Fi>0?jr>>BigInt(Fi):jr},zr=U.bits2int_modN||function(yr){return It(Ir(yr))},Ur=$a(U.nBitLength);function Yi(yr){if("bigint"!=typeof yr)throw new Error("bigint expected");if(!(Ys<=yr&&yr<Ur))throw new Error(`bigint expected < 2^${U.nBitLength}`);return no(yr,U.nByteLength)}const Mi={lowS:U.lowS,prehash:!1},Zi={lowS:U.lowS,prehash:!1};return on.BASE._setWindowSize(8),{CURVE:U,getPublicKey:function Vn(yr,jr=!0){return on.fromPrivateKey(yr).toRawBytes(jr)},getSharedSecret:function Pr(yr,jr,Fi=!0){if(dr(yr))throw new Error("first arg must be private key");if(!dr(jr))throw new Error("second arg must be public key");return on.fromHex(jr).multiply(An(yr)).toRawBytes(Fi)},sign:function Bo(yr,jr,Fi=Mi){const{seed:$i,k2sig:vo}=function Qi(yr,jr,Fi=Mi){if(["recovered","canonical"].some(hc=>hc in Fi))throw new Error("sign() legacy options not supported");const{hash:$i,randomBytes:vo}=U;let{lowS:fs,prehash:ps,extraEntropy:Ds}=Fi;null==fs&&(fs=!0),yr=Po("msgHash",yr),ps&&(yr=Po("prehashed msgHash",$i(yr)));const cc=zr(yr),tl=An(jr),uc=[Yi(tl),Yi(cc)];if(null!=Ds){const hc=!0===Ds?vo(V.BYTES):Ds;uc.push(Po("extraEntropy",hc,V.BYTES))}const jc=Fr(...uc),dc=cc;return{seed:jc,k2sig:function Dc(hc){const Vc=Ir(hc);if(!Kn(Vc))return;const Hc=Ht(Vc),da=on.BASE.multiply(Vc).toAffine(),Ha=It(da.x);if(Ha===Ys)return;const fl=It(Hc*It(dc+Ha*tl));if(fl===Ys)return;let uu=(da.x===Ha?0:2)|Number(da.y&zo),Zl=fl;return fs&&nr(fl)&&(Zl=function Mn(yr){return nr(yr)?It(-yr):yr}(fl),uu^=1),new Qn(Ha,Zl,uu)}}}(yr,jr,Fi);return Di(U.hash.outputLen,U.nByteLength,U.hmac)($i,vo)},verify:function Cs(yr,jr,Fi,$i=Zi){const vo=yr;if(jr=Po("msgHash",jr),Fi=Po("publicKey",Fi),"strict"in $i)throw new Error("options.strict was renamed to lowS");const{lowS:fs,prehash:ps}=$i;let Ds,cc;try{if("string"==typeof vo||vo instanceof Uint8Array)try{Ds=Qn.fromDER(vo)}catch(da){if(!(da instanceof Ja.Err))throw da;Ds=Qn.fromCompact(vo)}else{if("object"!=typeof vo||"bigint"!=typeof vo.r||"bigint"!=typeof vo.s)throw new Error("PARSE");{const{r:da,s:Ha}=vo;Ds=new Qn(da,Ha)}}cc=on.fromHex(Fi)}catch(da){if("PARSE"===da.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(fs&&Ds.hasHighS())return!1;ps&&(jr=U.hash(jr));const{r:tl,s:uc}=Ds,jc=zr(jr),dc=Ht(uc),Dc=It(jc*dc),hc=It(tl*dc),Vc=on.BASE.multiplyAndAddUnsafe(cc,Dc,hc)?.toAffine();return!!Vc&&It(Vc.x)===tl},ProjectivePoint:on,Signature:Qn,utils:ir}}BigInt(4);class Ec extends xl{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,ce.hash(U);const oe=Lo(V);if(this.iHash=U.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gt<Be.length;gt++)Be[gt]^=54;this.iHash.update(Be),this.oHash=U.create();for(let gt=0;gt<Be.length;gt++)Be[gt]^=106;this.oHash.update(Be),Be.fill(0)}update(U){return ce.exists(this),this.iHash.update(U),this}digestInto(U){ce.exists(this),ce.bytes(U,this.outputLen),this.finished=!0,this.iHash.digestInto(U),this.oHash.update(U),this.oHash.digestInto(U),this.destroy()}digest(){const U=new Uint8Array(this.oHash.outputLen);return this.digestInto(U),U}_cloneInto(U){U||(U=Object.create(Object.getPrototypeOf(this),{}));const{oHash:V,iHash:oe,finished:Ae,destroyed:Be,blockLen:gt,outputLen:It}=this;return U.finished=Ae,U.destroyed=Be,U.blockLen=gt,U.outputLen=It,U.oHash=V._cloneInto(U.oHash),U.iHash=oe._cloneInto(U.iHash),U}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const au=(R,U,V)=>new Ec(R,U).update(V).digest();function Xi(R){return{hash:R,hmac:(U,...V)=>au(R,U,function Qa(...R){const U=new Uint8Array(R.reduce((oe,Ae)=>oe+Ae.length,0));let V=0;return R.forEach(oe=>{if(!Le(oe))throw new Error("Uint8Array expected");U.set(oe,V),V+=oe.length}),U}(...V)),randomBytes:ic}}au.create=(R,U)=>new Ec(R,U);const Tr=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Es=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Uc=BigInt(1),L=BigInt(2),K=(R,U)=>(R+U/L)/U;const X=function Sa(R,U,V=!1,oe={}){if(R<=No)throw new Error(`Expected Fp ORDER > 0, got ${R}`);const{nBitLength:Ae,nByteLength:Be}=Xs(R,U);if(Be>2048)throw new Error("Field lengths over 2048 bytes are not supported");const gt=function di(R){if(R%_e===q){const U=(R+$)/_e;return function(oe,Ae){const Be=oe.pow(Ae,U);if(!oe.eql(oe.sqr(Be),Ae))throw new Error("Cannot find square root");return Be}}if(R%_n===nt){const U=(R-nt)/_n;return function(oe,Ae){const Be=oe.mul(Ae,de),gt=oe.pow(Be,U),It=oe.mul(Ae,gt),Ht=oe.mul(oe.mul(It,de),gt),on=oe.mul(It,oe.sub(Ht,oe.ONE));if(!oe.eql(oe.sqr(on),Ae))throw new Error("Cannot find square root");return on}}return function Qr(R){const U=(R-$)/de;let V,oe,Ae;for(V=R-$,oe=0;V%de===No;V/=de,oe++);for(Ae=de;Ae<R&&Li(Ae,U,R)!==R-$;Ae++);if(1===oe){const gt=(R+$)/_e;return function(Ht,on){const An=Ht.pow(on,gt);if(!Ht.eql(Ht.sqr(An),on))throw new Error("Cannot find square root");return An}}const Be=(V+$)/de;return function(It,Ht){if(It.pow(Ht,U)===It.neg(It.ONE))throw new Error("Cannot find square root");let on=oe,An=It.pow(It.mul(It.ONE,Ae),V),Zt=It.pow(Ht,Be),Kn=It.pow(Ht,V);for(;!It.eql(Kn,It.ONE);){if(It.eql(Kn,It.ZERO))return It.ZERO;let Wn=1;for(let Mn=It.sqr(Kn);Wn<on&&!It.eql(Mn,It.ONE);Wn++)Mn=It.sqr(Mn);const nr=It.pow(An,$<<BigInt(on-Wn-1));An=It.sqr(nr),Zt=It.mul(Zt,nr),Kn=It.mul(Kn,An),on=Wn}return Zt}}(R)}(R),It=Object.freeze({ORDER:R,BITS:Ae,BYTES:Be,MASK:$a(Ae),ZERO:No,ONE:$,create:Ht=>Yr(Ht,R),isValid:Ht=>{if("bigint"!=typeof Ht)throw new Error("Invalid field element: expected bigint, got "+typeof Ht);return No<=Ht&&Ht<R},is0:Ht=>Ht===No,isOdd:Ht=>(Ht&$)===$,neg:Ht=>Yr(-Ht,R),eql:(Ht,on)=>Ht===on,sqr:Ht=>Yr(Ht*Ht,R),add:(Ht,on)=>Yr(Ht+on,R),sub:(Ht,on)=>Yr(Ht-on,R),mul:(Ht,on)=>Yr(Ht*on,R),pow:(Ht,on)=>function jo(R,U,V){if(V<No)throw new Error("Expected power > 0");if(V===No)return R.ONE;if(V===$)return U;let oe=R.ONE,Ae=U;for(;V>No;)V&$&&(oe=R.mul(oe,Ae)),Ae=R.sqr(Ae),V>>=$;return oe}(It,Ht,on),div:(Ht,on)=>Yr(Ht*xi(on,R),R),sqrN:Ht=>Ht*Ht,addN:(Ht,on)=>Ht+on,subN:(Ht,on)=>Ht-on,mulN:(Ht,on)=>Ht*on,inv:Ht=>xi(Ht,R),sqrt:oe.sqrt||(Ht=>gt(It,Ht)),invertBatch:Ht=>function ks(R,U){const V=new Array(U.length),oe=U.reduce((Be,gt,It)=>R.is0(gt)?Be:(V[It]=Be,R.mul(Be,gt)),R.ONE),Ae=R.inv(oe);return U.reduceRight((Be,gt,It)=>R.is0(gt)?Be:(V[It]=R.mul(Be,V[It]),R.mul(Be,gt)),Ae),V}(It,Ht),cmov:(Ht,on,An)=>An?on:Ht,toBytes:Ht=>V?$o(Ht,Be):no(Ht,Be),fromBytes:Ht=>{if(Ht.length!==Be)throw new Error(`Fp.fromBytes: expected ${Be}, got ${Ht.length}`);return V?Ao(Ht):Ar(Ht)}});return Object.freeze(It)}(Tr,void 0,void 0,{sqrt:function P(R){const U=Tr,V=BigInt(3),oe=BigInt(6),Ae=BigInt(11),Be=BigInt(22),gt=BigInt(23),It=BigInt(44),Ht=BigInt(88),on=R*R*R%U,An=on*on*R%U,Zt=Hr(An,V,U)*An%U,Kn=Hr(Zt,V,U)*An%U,Wn=Hr(Kn,L,U)*on%U,nr=Hr(Wn,Ae,U)*Wn%U,Mn=Hr(nr,Be,U)*nr%U,jn=Hr(Mn,It,U)*Mn%U,Qn=Hr(jn,Ht,U)*jn%U,ir=Hr(Qn,It,U)*Mn%U,Vn=Hr(ir,V,U)*An%U,dr=Hr(Vn,gt,U)*nr%U,Pr=Hr(dr,oe,U)*on%U,Ir=Hr(Pr,L,U);if(!X.eql(X.sqr(Ir),R))throw new Error("Cannot find square root");return Ir}}),he=function Bu(R,U){const V=oe=>pd({...R,...Xi(oe)});return Object.freeze({...V(U),create:V})}({a:BigInt(0),b:BigInt(7),Fp:X,n:Es,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const U=Es,V=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),oe=-Uc*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Ae=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Be=V,gt=BigInt("0x100000000000000000000000000000000"),It=K(Be*R,U),Ht=K(-oe*R,U);let on=Yr(R-It*V-Ht*Ae,U),An=Yr(-It*oe-Ht*Be,U);const Zt=on>gt,Kn=An>gt;if(Zt&&(on=U-on),Kn&&(An=U-An),on>gt||An>gt)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:Zt,k1:on,k2neg:Kn,k2:An}}}},Jo);BigInt(0);const lu=he.ProjectivePoint,Uu=(0,or.Tq)(va);function md(R){return BigInt(`0x${function et(R){if(!Mo(R))throw new Error("Uint8Array expected");let U="";for(let V=0;V<R.length;V++)U+=ve[R[V]];return U}(R)}`)}const gi=Sn("Bitcoin seed"),$u={private:76066276,public:76067358},cu=2147483648,kl=R=>{if(!Number.isSafeInteger(R)||R<0||R>2**32-1)throw new Error(`Invalid number=${R}. Should be from 0 to 2 ** 32 - 1`);const U=new Uint8Array(4);return Je(U).setUint32(0,R,!1),U};class hs{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return Je(this.pubHash).getUint32(0,!1)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const U=this.privateKey;if(!U)throw new Error("No private key");return Uu.encode(this.serialize(this.versions.private,Un(new Uint8Array([0]),U)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Uu.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(U,V=$u){if(ao(U),8*U.length<128||8*U.length>512)throw new Error(`HDKey: wrong seed length=${U.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const oe=yo(Dr,gi,U);return new hs({versions:V,chainCode:oe.slice(32),privateKey:oe.slice(0,32)})}static fromExtendedKey(U,V=$u){const oe=Uu.decode(U),Ae=Je(oe),Be=Ae.getUint32(0,!1),gt={versions:V,depth:oe[4],parentFingerprint:Ae.getUint32(5,!1),index:Ae.getUint32(9,!1),chainCode:oe.slice(13,45)},It=oe.slice(45),Ht=0===It[0];if(Be!==V[Ht?"private":"public"])throw new Error("Version mismatch");return new hs(Ht?{...gt,privateKey:It.slice(1)}:{...gt,publicKey:It})}static fromJSON(U){return hs.fromExtendedKey(U.xpriv)}constructor(U){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!U||"object"!=typeof U)throw new Error("HDKey.constructor must not be called directly");if(this.versions=U.versions||$u,this.depth=U.depth||0,this.chainCode=U.chainCode,this.index=U.index||0,this.parentFingerprint=U.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(U.publicKey&&U.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(U.privateKey){if(!he.utils.isValidPrivateKey(U.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof U.privateKey?U.privateKey:md(U.privateKey),this.privKeyBytes=function wn(R){return function $t(R){if("string"!=typeof R)throw new Error("hex string expected, got "+typeof R);const U=R.length,V=U/2;if(U%2)throw new Error("padded hex string expected, got unpadded hex of length "+U);const oe=new Uint8Array(V);for(let Ae=0,Be=0;Ae<V;Ae++,Be+=2){const gt=pt(R.charCodeAt(Be)),It=pt(R.charCodeAt(Be+1));if(void 0===gt||void 0===It)throw new Error('hex string expected, got non-hex character "'+(R[Be]+R[Be+1])+'" at index '+Be);oe[Ae]=16*gt+It}return oe}(R.toString(16).padStart(64,"0"))}(this.privKey),this.pubKey=he.getPublicKey(U.privateKey,!0)}else{if(!U.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=lu.fromHex(U.publicKey).toRawBytes(!0)}this.pubHash=ns(va(this.pubKey))}derive(U){if(!/^[mM]'?/.test(U))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(U))return this;const V=U.replace(/^[mM]'?\//,"").split("/");let oe=this;for(const Ae of V){const Be=/^(\d+)('?)$/.exec(Ae);if(!Be||3!==Be.length)throw new Error(`Invalid child index: ${Ae}`);let gt=+Be[1];if(!Number.isSafeInteger(gt)||gt>=cu)throw new Error("Invalid index");"'"===Be[2]&&(gt+=cu),oe=oe.deriveChild(gt)}return oe}deriveChild(U){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let V=kl(U);if(U>=cu){const It=this.privateKey;if(!It)throw new Error("Could not derive hardened child key");V=Un(new Uint8Array([0]),It,V)}else V=Un(this.pubKey,V);const oe=yo(Dr,this.chainCode,V),Ae=md(oe.slice(0,32)),Be=oe.slice(32);if(!he.utils.isValidPrivateKey(Ae))throw new Error("Tweak bigger than curve order");const gt={versions:this.versions,chainCode:Be,depth:this.depth+1,parentFingerprint:this.fingerprint,index:U};try{if(this.privateKey){const It=Yr(this.privKey+Ae,he.CURVE.n);if(!he.utils.isValidPrivateKey(It))throw new Error("The tweak was out of range or the resulted private key is invalid");gt.privateKey=It}else{const It=lu.fromHex(this.pubKey).add(lu.fromPrivateKey(Ae));if(It.equals(lu.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");gt.publicKey=It.toRawBytes(!0)}return new hs(gt)}catch{return this.deriveChild(U+1)}}sign(U){if(!this.privateKey)throw new Error("No privateKey set!");return ao(U,32),he.sign(U,this.privKey).toCompactRawBytes()}verify(U,V){if(ao(U,32),ao(V,64),!this.publicKey)throw new Error("No publicKey set!");let oe;try{oe=he.Signature.fromCompact(V)}catch{return!1}return he.verify(oe,U,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(U,V){if(!this.chainCode)throw new Error("No chainCode set");return ao(V,33),Un(kl(U),new Uint8Array([this.depth]),kl(this.parentFingerprint),kl(this.index),this.chainCode,V)}}var Zs=r(4438);let Us=(()=>{class R{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey(V){var oe=this;return(0,a.A)(function*(){return window.crypto.subtle.importKey("raw",oe.encoder.encode(V),"PBKDF2",!1,["deriveKey"])})()}deriveKey(V,oe,Ae){return(0,a.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:oe,iterations:25e4,hash:"SHA-256"},V,{name:"AES-GCM",length:256},!1,Ae)})()}encryptData(V,oe){var Ae=this;return(0,a.A)(function*(){try{const Be=window.crypto.getRandomValues(new Uint8Array(16)),gt=window.crypto.getRandomValues(new Uint8Array(12)),It=yield Ae.getPasswordKey(oe),Ht=yield Ae.deriveKey(It,Be,["encrypt"]),on=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:gt},Ht,Ae.encoder.encode(V))),An=new Uint8Array(Be.length+gt.length+on.length);return An.set(Be,0),An.set(gt,Be.length),An.set(on,Be.length+gt.length),or.K3.encode(An)}catch(Be){throw console.error("Encryption failed:",Be),new Error("Failed to encrypt data.")}})()}decryptData(V,oe){var Ae=this;return(0,a.A)(function*(){try{const Be=or.K3.decode(V),gt=Be.slice(0,16),It=Be.slice(16,28),Ht=Be.slice(28),on=yield Ae.getPasswordKey(oe),An=yield Ae.deriveKey(on,gt,["decrypt"]),Zt=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:It},An,Ht);return Ae.decoder.decode(Zt)}catch(Be){throw console.error("Decryption failed:",Be),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(oe){return new(oe||R)}}static{this.\u0275prov=Zs.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})();var Ol=r(5351),Vu=r(2332);let Va=(()=>{class R{constructor(V,oe,Ae){this.securityService=V,this.dialog=oe,this._nostrLoginService=Ae,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword(V,oe){const Ae=Date.now()+60*oe*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:V,expirationTime:Ae}))}getPassword(){const V=sessionStorage.getItem(this.storageKey);if(!V)return null;const{password:oe,expirationTime:Ae}=JSON.parse(V);return Date.now()>Ae?(this.clearPassword(),null):oe}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(V,oe,Ae){var Be=this;return(0,a.A)(function*(){try{const gt=yield Be.getSecretKey(V);if(!gt)throw new Error("Incorrect current password.");yield Be.setSecretKey(gt,oe);const It=yield Be.getNsec(V);return It&&(yield Be.setNsec(It,oe)),Be.clearPassword(),Ae&&Be.savePassword(oe,60),!0}catch(gt){return console.error("Failed to change password: ",gt),!1}})()}getUsername(V){return V.startsWith("npub")&&(V=C.Qe.decode(V).data.toString()),`@${localStorage.getItem(`${V}`)||C.Qe.npubEncode(V)}`}npub(){let V=this.getPublicKey();return C.Qe.npubEncode(V)}requestPassword(){var V=this;return(0,a.A)(function*(){return V.dialog.open(y.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec(V){var oe=this;return(0,a.A)(function*(){if(oe.usingSecretKey()){let Ae=yield oe.getSecretKey(V);const Be=Uint8Array.from(w.hp.from(Ae,"hex"));return C.Qe.nsecEncode(Be)}return""})()}pubkey(V){return C.Qe.decode(V).data.toString()}setPublicKey(V){const oe=C.Qe.npubEncode(V);window.localStorage.setItem(this.localStoragePublicKeyName,V),window.localStorage.setItem(this.localStorageNpubName,oe)}getPublicKey(){const V=localStorage.getItem("__nostrlogin_nip46");if(V)try{return JSON.parse(V).pubkey||""}catch(oe){console.error("Error parsing nostr login data:",oe)}return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub(V){localStorage.setItem(this.localStorageNpubName,V)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey(V,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageSecretKeyName,V),localStorage.setItem("usePassword","false");else{const Be=yield Ae.securityService.encryptData(V,oe);localStorage.setItem(Ae.localStorageSecretKeyName,Be),localStorage.setItem("usePassword","true")}})()}getSecretKey(V=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageSecretKeyName),Be="true"===localStorage.getItem("usePassword");return Ae?Be?yield oe.securityService.decryptData(Ae,V):Ae:null})()}getDecryptedSecretKey(){var V=this;return(0,a.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return V.getSecretKey();const Ae=V.getPassword();if(Ae)return yield V.getSecretKey(Ae);const Be=yield V.requestPassword();if(Be?.password){const gt=yield V.getSecretKey(Be.password);return 0!==Be.duration&&V.savePassword(Be.password,Be.duration),gt}return console.error("Password not provided"),null}catch(oe){return console.error("Error decrypting private key:",oe),null}})()}setNsec(V,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageNsecName,V),localStorage.setItem("usePassword","false");else{const Be=yield Ae.securityService.encryptData(V,oe);localStorage.setItem(Ae.localStorageNsecName,Be),localStorage.setItem("usePassword","true")}})()}getNsec(V=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageNsecName),Be="true"===localStorage.getItem("usePassword");return Ae?Be?yield oe.securityService.decryptData(Ae,V):Ae:null})()}setPublicKeyFromExtension(V){this.setPublicKey(V)}handleLoginWithKey(V,oe=""){let Ae,Be,gt,It;try{if(V.startsWith(this.localStorageNsecName)){const on=C.Qe.decode(V);if(on.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Ae=w.hp.from(on.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test(V))throw new Error("Invalid key format. Must be either nsec or hex.");Ae=V}const Ht=new Uint8Array(w.hp.from(Ae,"hex"));return Be=(0,C.lG)(Ht),It=C.Qe.npubEncode(Be),gt=C.Qe.nsecEncode(Ht),this.setSecretKey(Ae,oe),this.setNsec(It,oe),this.setPublicKey(Be),this.setNpub(It),!0}catch(Ht){return console.error("Error during key handling: ",Ht),!1}}handleLoginWithMnemonic(V,oe="",Ae=""){try{const gt=function $c(R,U,V=0){let Ae=hs.fromMasterSeed(Oi(R,U)).derive(`m/44'/1237'/${V}'/0/0`).privateKey;if(!Ae)throw new Error("could not derive private key");return Ae}(V,oe,0),It=(0,c.My)(gt),Ht=(0,C.lG)(gt),on=C.Qe.npubEncode(Ht),An=C.Qe.nsecEncode(gt);return this.setSecretKey(It,Ae),this.setNsec(An,Ae),this.setPublicKey(Ht),this.setNpub(on),window.localStorage.setItem(this.localStorageNsecName,An),!0}catch(Be){return console.error("Error during login with mnemonic:",Be),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName),this._nostrLoginService.logout()}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys(V=""){try{const oe=(0,C.Bq)(),Ae=w.hp.from(oe).toString("hex"),Be=(0,C.lG)(oe),gt=C.Qe.npubEncode(Be),It=C.Qe.nsecEncode(oe);return this.setSecretKey(Ae,V),this.setNsec(It,V),this.setPublicKey(Be),this.setNpub(gt),{secretKey:Ae,pubkey:Be,npub:gt,nsec:It}}catch(oe){return console.error("Error during key generation:",oe),null}}handleLoginWithExtension(){var V=this;return(0,a.A)(function*(){const oe=globalThis;if(!oe.nostr)return!1;try{const Ae=yield oe.nostr.getPublicKey();if(!Ae)throw new Error("Public key not available from Nostr extension.");return V.setPublicKeyFromExtension(Ae),!0}catch(Ae){return console.error("Failed to connect to Nostr extension:",Ae),!1}})()}encryptMessage(V,oe,Ae){return(0,a.A)(function*(){console.log(Ae);try{return yield C.sh.encrypt(V,oe,Ae)}catch(Be){throw console.error("Error encrypting message:",Be),Be}})()}encryptMessageWithExtension(V,oe){return(0,a.A)(function*(){return yield globalThis.nostr.nip04.encrypt(oe,V)})()}decryptMessageWithExtension(V,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&"function"==typeof Ae.nostr.nip04?.decrypt)try{return yield Ae.nostr.nip04.decrypt(V,oe)}catch(Be){return console.error("Decryption failed:",Be),"*Failed to decrypt content: "+Be.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage(V,oe,Ae){return(0,a.A)(function*(){try{if(!V||!oe||!Ae)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const Be=yield C.sh.decrypt(V,oe,Ae);if(!Be)throw new Error("Decryption returned an empty message.");return Be}catch(Be){throw Be}})()}getUnsignedEvent(V,oe,Ae){return{kind:V,pubkey:this.getPublicKey(),tags:oe,content:Ae,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent(V,oe){const Ae=(0,c.aT)(oe);return(0,C.pC)(V,Ae)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags(V){let oe=[];V.forEach(Ae=>{oe.push(Ae[1])}),this.setMuteList(oe)}setMuteList(V){if(0===V.length)localStorage.setItem("muteList","");else{let oe=Array.from(new Set(V));localStorage.setItem("muteList",oe.filter(Ae=>Ae).join(","))}}signEventWithExtension(V){return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr)return yield oe.nostr.signEvent(V);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension(V,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&Ae.nostr.nip04?.encrypt)return yield Ae.nostr.nip04.encrypt(V,oe);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var V=this;return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr&&oe.nostr.getPublicKey)try{return!localStorage.getItem(V.localStorageSecretKeyName)}catch(Ae){return console.error("Failed to check Nostr extension:",Ae),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}getNpubFromPubkey(V){try{return C.Qe.npubEncode(V)}catch(oe){return console.error("Error converting hex to npub:",oe),""}}getNsecFromSeckey(V){try{const oe=Uint8Array.from(w.hp.from(V,"hex"));return C.Qe.nsecEncode(oe)}catch(oe){return console.error("Error converting hex to nsec:",oe),""}}getHexFromNpub(V){try{const oe=C.Qe.decode(V);if("npub"!==oe.type)throw new Error("Invalid npub format.");return oe.data.toString()}catch(oe){return console.error("Error converting npub to hex:",oe),""}}processKey(V){try{if(V.startsWith("npub")){const oe=this.getHexFromNpub(V);if(!oe)throw new Error("Failed to convert npub to hex.");return oe}if(/^[0-9a-fA-F]{64}$/.test(V))return V;throw new Error("Invalid key format. Must be either hex or npub.")}catch(oe){return console.error("Error processing key:",oe),""}}static{this.\u0275fac=function(oe){return new(oe||R)(Zs.KVO(Us),Zs.KVO(Ol.bZ),Zs.KVO(Vu.v))}}static{this.\u0275prov=Zs.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},2083:(o,s,r)=>{"use strict";r.d(s,{d:()=>C});var i=r(467),a=r(8418),c=r(4438),y=r(5645),w=r(7291);let C=(()=>{class T{constructor(A,I){this.subscriptionService=A,this.storageService=I,this.isProfileLoaded=!1}loadUserProfile(A){var I=this;return(0,i.A)(function*(){I.isProfileLoaded||(yield I.subscribeToUserProfile(A),yield I.subscribeToUserChats(A),yield I.subscribeToUserPosts(A),yield I.subscribeToMyLikes(A),I.isProfileLoaded=!0)})()}subscribeToUserProfile(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("users"),G={kinds:[0],authors:[A],limit:1};N&&(G.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([G],Z=>{const te=I.parseMetadataEvent(Z);I.storageService.saveProfile(A,te)})})()}subscribeToUserChats(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("chats"),G=[{kinds:[a.rV],authors:[A],limit:300},{kinds:[a.rV],"#p":[A],limit:300}];if(N){const Z=parseInt(N,10);G.forEach(te=>te.since=Z)}else I.storageService.removeAllChats();I.subscriptionService.addSubscriptions(G,Z=>{const te=I.parseChatEvent(Z);I.storageService.saveChatEvent(te)})})()}subscribeToUserPosts(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("posts"),G={kinds:[a.av],authors:[A]};N&&(G.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([G],Z=>{I.isReply(Z)||I.storageService.savePost(Z)})})()}isReply(A){return A.tags.filter(N=>"e"===N[0]||"p"===N[0]).length>0}subscribeToMyLikes(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("myLikes"),G={kinds:[a.qT],authors:[A]};N&&(G.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([G],Z=>{I.storageService.saveLike(Z)})})()}parseMetadataEvent(A){try{return JSON.parse(A.content)}catch(I){return console.error("Error parsing metadata event:",I),null}}parseChatEvent(A){try{const I=A.content.split("?iv=");return{id:A.id,kind:A.kind,pubkey:A.pubkey,created_at:A.created_at,tags:A.tags,content:I[0],iv:I[1],IsRead:!1}}catch(I){return console.error("Error parsing chat event:",I),null}}static{this.\u0275fac=function(I){return new(I||T)(c.KVO(y.n),c.KVO(w.n))}}static{this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},7291:(o,s,r)=>{"use strict";r.d(s,{n:()=>C});var i=r(467),a=r(119),c=r.n(a),y=r(4412),w=r(4438);let C=(()=>{class T{constructor(){this.profileSubject=new y.t(null),this.projectsSubject=new y.t([]),this.projectStatsSubject=new y.t({}),this.chatEventsSubject=new y.t([]),this.unreadChatCountSubject=new y.t(0),this.contactsSubject=new y.t({pubKey:"",contacts:[]}),this.postsSubject=new y.t(null),this.myLikesSubject=new y.t([]),this.notificationsSubject=new y.t([]),this.contactStatsSubject=new y.t({totalContacts:0,followersCount:0,followingCount:0}),this.investorsSubject=new y.t([]),this.projectDetailsSubject=new y.t([]),this.contactStatsMap={},this.profileStore=this.createStore("profiles"),this.updateHistoryStore=this.createStore("updateHistory"),this.contactsStore=this.createStore("contacts"),this.chatsStore=this.createStore("chats"),this.postsStore=this.createStore("posts"),this.myLikesStore=this.createStore("myLikes"),this.notificationsStore=this.createStore("notifications"),this.projectsStore=this.createStore("projects"),this.projectDetailsStore=this.createStore("projectDetails"),this.projectStatsStore=this.createStore("projectStatistics"),this.investorsStore=this.createStore("investors"),this.loadAllProjectsFromDB(),this.loadAllProjectDetailsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllInvestorsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.calculateAndStoreAllContactStats()}createStore(A){return c().createInstance({driver:c().INDEXEDDB,name:"angor-hub",version:1,storeName:A})}get profile$(){return this.profileSubject.asObservable()}get projects$(){return this.projectsSubject.asObservable()}get projectStats$(){return this.projectStatsSubject.asObservable()}get chatEvents$(){return this.chatEventsSubject.asObservable()}get unreadChatCount$(){return this.unreadChatCountSubject.asObservable()}get contacts$(){return this.contactsSubject.asObservable()}get posts$(){return this.postsSubject.asObservable()}get contactStats$(){return this.contactStatsSubject.asObservable()}get myLikes$(){return this.myLikesSubject.asObservable()}get notifications$(){return this.notificationsSubject.asObservable()}get investors$(){return this.investorsSubject.asObservable()}get projectDetails$(){return this.projectDetailsSubject.asObservable()}saveInvestor(A){var I=this;return(0,i.A)(function*(){try{const N=`${A.projectIdentifier}-${A.investorPublicKey}`;yield I.investorsStore.setItem(N,A);const Z=[...I.investorsSubject.value.filter(te=>te.projectIdentifier!==A.projectIdentifier||te.investorPublicKey!==A.investorPublicKey),A];I.investorsSubject.next(Z),console.log("Investor saved successfully:",A)}catch(N){console.error("Error saving investor:",N)}})()}getInvestor(A,I){var N=this;return(0,i.A)(function*(){try{const G=`${A}-${I}`;return(yield N.investorsStore.getItem(G))||null}catch(G){return console.error("Error retrieving investor:",G),null}})()}getAllInvestors(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.investorsStore.iterate(N=>{I.push(N)}),console.log("Retrieved all investors:",I),I}catch(I){return console.error("Error retrieving all investors:",I),[]}})()}saveProjectDetails(A){var I=this;return(0,i.A)(function*(){try{const N=A.projectIdentifier;yield I.projectDetailsStore.setItem(N,A);const Z=[...I.projectDetailsSubject.value.filter(te=>te.projectIdentifier!==A.projectIdentifier),A];I.projectDetailsSubject.next(Z),console.log("Project details saved successfully:",A)}catch(N){console.error("Error saving project details:",N)}})()}getProjectDetails(A){var I=this;return(0,i.A)(function*(){try{return(yield I.projectDetailsStore.getItem(A))||null}catch(N){return console.error("Error retrieving project details:",N),null}})()}getAllProjectDetails(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.projectDetailsStore.iterate(N=>{I.push(N)}),console.log("Retrieved all project details:",I),I}catch(I){return console.error("Error retrieving all project details:",I),[]}})()}saveContacts(A,I){var N=this;return(0,i.A)(function*(){try{const G=[];for(const Z of I){const te=`${A}:${Z.id}`;yield N.contactsStore.setItem(te,Z),G.push(Z)}N.contactsSubject.next({pubKey:A,contacts:G}),yield N.calculateAndStoreAllContactStats(),yield N.setUpdateHistory("contacts")}catch(G){console.error("Error saving contacts:",G)}})()}calculateAndStoreAllContactStats(){var A=this;return(0,i.A)(function*(){try{const I={};yield A.contactsStore.iterate((N,G)=>{const[Z]=G.split(":");I[Z]||(I[Z]={totalContacts:0,followersCount:0,followingCount:0}),I[Z].totalContacts++,N.isFollower?I[Z].followersCount++:I[Z].followingCount++});for(const N in I)A.contactStatsMap[N]||(A.contactStatsMap[N]=new y.t({pubKey:N,totalContacts:0,followersCount:0,followingCount:0})),A.contactStatsMap[N].next({pubKey:N,totalContacts:I[N].totalContacts,followersCount:I[N].followersCount,followingCount:I[N].followingCount})}catch(I){console.error("Error calculating and storing contact stats:",I)}})()}getContactStats$(A){return this.contactStatsMap[A]||(this.contactStatsMap[A]=new y.t({pubKey:A,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[A].asObservable()}getAllContactsPaginated(A,I,N){var G=this;return(0,i.A)(function*(){try{const Z=[];yield G.contactsStore.iterate((pe,Te)=>{const[xe]=Te.split(":");xe===A&&Z.push(pe)});const te=Z.length,be=(I-1)*N;return{contacts:Z.slice(be,be+N),totalCount:te}}catch(Z){return console.error("Error retrieving paginated contacts for pubKey:",Z),{contacts:[],totalCount:0}}})()}getAllContacts(A=""){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.contactsStore.iterate((G,Z)=>{const[te,be]=Z.split(":");(""===A||te===A)&&N.push({pubKey:te,contact:G})}),N}catch(N){return console.error("Error retrieving contacts:",N),[]}})()}getContactStats(A){var I=this;return(0,i.A)(function*(){try{let N=0,G=0,Z=0;return yield I.contactsStore.iterate((te,be)=>{const[me,pe]=be.split(":");me===A&&(N++,te.isFollower?G++:Z++)}),{totalContacts:N,followersCount:G,followingCount:Z}}catch(N){return console.error("Error retrieving contact stats for pubKey:",N),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(A){var I=this;return(0,i.A)(function*(){try{const N=[];yield I.contactsStore.iterate((G,Z)=>{const[te]=Z.split(":");te===A&&N.push(Z)});for(const G of N)yield I.contactsStore.removeItem(G);yield I.contactsStore.clear(),I.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),I.contactsSubject.next({pubKey:A,contacts:[]}),yield I.setUpdateHistory("contacts")}catch(N){console.error("Error removing all contacts for pubKey:",N)}})()}saveProfile(A,I){var N=this;return(0,i.A)(function*(){try{if(!A||!I)return void console.error("Invalid pubKey or metadata:",A,I);I.pubKey=A,yield N.profileStore.setItem(A,I),N.profileSubject.next({pubKey:A,metadata:I}),yield N.setUpdateHistory("profiles")}catch(G){console.error("Error saving profile",G)}})()}getProfile(A){var I=this;return(0,i.A)(function*(){try{return(yield I.profileStore.getItem(A))||null}catch(N){return console.error("Error retrieving profile metadata:",N),null}})()}getAllProfiles(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.profileStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all Profile:",I),[]}})()}searchProfile(A){var I=this;return(0,i.A)(function*(){try{const N=[],G=A.toLowerCase();return yield I.profileStore.iterate((Z,te)=>{JSON.stringify(Z).toLowerCase().includes(G)&&N.push({pubKey:te,profile:Z})}),N}catch(N){return console.error("Error searching profiles by metadata:",N),[]}})()}getLastUpdateDate(A){var I=this;return(0,i.A)(function*(){try{return(yield I.updateHistoryStore.getItem(A))||null}catch(N){return console.error("Error retrieving last update date:",N),null}})()}saveProject(A){var I=this;return(0,i.A)(function*(){try{yield I.projectsStore.setItem(A.projectIdentifier,A);const N=yield I.getAllProjects();I.projectsSubject.next(N),yield I.setUpdateHistory("projects")}catch(N){console.error("Error saving project:",N)}})()}getProjectsByNostrPubKeys(A){var I=this;return(0,i.A)(function*(){if(!A||0===A.length)return[];const N=[],G=yield I.projectDetailsStore.keys();for(const Z of G){const te=yield I.projectDetailsStore.getItem(Z);te&&A.includes(te.nostrPubKey)&&N.push(te)}return N})()}getAllProjects(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.projectsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all projects:",I),[]}})()}getProjectStats(A){var I=this;return(0,i.A)(function*(){try{return(yield I.projectStatsStore.getItem(A))||null}catch(N){return console.error("Error retrieving project stats:",N),null}})()}saveProjectStats(A,I){var N=this;return(0,i.A)(function*(){try{yield N.projectStatsStore.setItem(A,I);const G=yield N.getAllProjectStats();N.projectStatsSubject.next(G),yield N.setUpdateHistory("projectStats")}catch(G){console.error("Error saving project stats:",G)}})()}getAllProjectStats(){var A=this;return(0,i.A)(function*(){try{const I={};return yield A.projectStatsStore.iterate((N,G)=>{I[G]=N}),I}catch(I){return console.error("Error retrieving all project stats:",I),{}}})()}savePost(A){var I=this;return(0,i.A)(function*(){try{yield I.postsStore.setItem(A.id,A),yield I.setUpdateHistory("posts"),I.postsSubject.next(A)}catch(N){console.error("Error saving event type 1 and sending it to clients:",N)}})()}getPostsByPubKey(A){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.postsStore.iterate(G=>{G.pubkey===A&&1===G.kind&&N.push(G)}),N.sort((G,Z)=>Z.createdAt-G.createdAt)}catch(N){return console.error("Error retrieving events for pubKey:",N),[]}})()}getPostById(A){var I=this;return(0,i.A)(function*(){try{let N=null;return yield I.postsStore.iterate(G=>{if(G.id===A&&1===G.kind)return N=G,N}),N}catch(N){return console.error("Error retrieving post by ID:",N),null}})()}getAllPostsWithPagination(A,I=10){var N=this;return(0,i.A)(function*(){try{const G=[],Z=(A-1)*I;return yield N.postsStore.iterate(te=>{1===te.kind&&G.push(te)}),G.sort((te,be)=>be.created_at-te.created_at).slice(Z,Z+I)}catch(G){return console.error("Error retrieving all posts with pagination:",G),[]}})()}getPostsByPubKeysWithPagination(A,I,N=10){var G=this;return(0,i.A)(function*(){try{const Z=[],te=(I-1)*N;return yield G.postsStore.iterate(be=>{A.includes(be.pubkey)&&1===be.kind&&Z.push(be)}),Z.sort((be,me)=>me.created_at-be.created_at).slice(te,te+N)}catch(Z){return console.error("Error retrieving events for pubKeys with pagination:",Z),[]}})()}saveLike(A){var I=this;return(0,i.A)(function*(){try{yield I.myLikesStore.setItem(A.id,A);const N=yield I.getAllMyLikes();I.myLikesSubject.next(N),yield I.setUpdateHistory("myLikes")}catch(N){console.error("Error saving like:",N)}})()}getAllMyLikes(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.myLikesStore.iterate(N=>{try{const G=N.tags.find(Z=>"e"===Z[0]);G&&I.push(G[1])}catch(G){console.warn("Error parsing like:",N,G)}}),I}catch(I){return console.error("Error retrieving all likes:",I),[]}})()}saveNotification(A){var I=this;return(0,i.A)(function*(){try{yield I.notificationsStore.setItem(A.id,A);const N=yield I.getAllNotifications();I.notificationsSubject.next(N),yield I.setUpdateHistory("notifications")}catch(N){console.error("Error saving notification:",N)}})()}getAllNotifications(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.notificationsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all notifications:",I),[]}})()}saveChatEvent(A){var I=this;return(0,i.A)(function*(){try{yield I.chatsStore.setItem(A.id,A),yield I.setUpdateHistory("chats");const N=yield I.getAllChatEvents();I.chatEventsSubject.next(N),I.updateUnreadChatCount(N)}catch(N){console.error("Error saving chat event:",N)}})()}getAllChatEvents(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.chatsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all chat events:",I),[]}})()}getChatEventsByPubKey(A){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.chatsStore.iterate(G=>{const Z=I.getReceiverPubKeyFromTags(G.tags);(G.pubkey===A||Z===A)&&N.push(G)}),N}catch(N){return console.error("Error retrieving chat events by pubkey:",N),[]}})()}updateChatEventReadStatus(A,I){var N=this;return(0,i.A)(function*(){try{const G=yield N.chatsStore.getItem(A);if(G){G.IsRead=I,yield N.chatsStore.setItem(A,G);const Z=yield N.getAllChatEvents();N.chatEventsSubject.next(Z),N.updateUnreadChatCount(Z)}}catch(G){console.error("Error updating chat event read status:",G)}})()}markAllChatEventsAsRead(A){var I=this;return(0,i.A)(function*(){try{yield I.chatsStore.iterate(function(){var G=(0,i.A)(function*(Z,te){const be=I.getReceiverPubKeyFromTags(Z.tags);(Z.pubkey===A||be===A)&&!Z.IsRead&&(Z.IsRead=!0,yield I.chatsStore.setItem(te,Z))});return function(Z,te){return G.apply(this,arguments)}}());const N=yield I.getAllChatEvents();I.chatEventsSubject.next(N),I.updateUnreadChatCount(N)}catch(N){console.error("Error marking all chat events as read:",N)}})()}getReceiverPubKeyFromTags(A){for(const I of A)if("p"===I[0]&&I[1])return I[1];return null}updateUnreadChatCount(A){const I=A.filter(N=>!N.IsRead).length;this.unreadChatCountSubject.next(I)}removeAllChats(){var A=this;return(0,i.A)(function*(){try{yield A.chatsStore.clear(),A.chatEventsSubject.next([]),A.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(I){console.error("Error removing all chat events:",I)}})()}setUpdateHistory(A){var I=this;return(0,i.A)(function*(){try{const N=Math.floor(Date.now()/1e3);yield I.updateHistoryStore.setItem(A,N)}catch(N){console.error("Error updating history:",N)}})()}loadAllProjectsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllProjects();A.projectsSubject.next(I)}catch(I){console.error("Error loading projects from DB:",I)}})()}loadAllProjectStatsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllProjectStats();A.projectStatsSubject.next(I)}catch(I){console.error("Error loading project stats from DB:",I)}})()}loadAllContactsFromDB(A=""){var I=this;return(0,i.A)(function*(){try{const N=yield I.getAllContacts(A);if(N.length>0){const G={};for(const Z of N)G[Z.pubKey]||(G[Z.pubKey]=[]),G[Z.pubKey].push(Z.contact);for(const Z in G)I.contactsSubject.next({pubKey:Z,contacts:G[Z]})}}catch(N){console.error("Error loading contacts from DB:",N)}})()}loadAllChatEventsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllChatEvents();A.chatEventsSubject.next(I)}catch(I){console.error("Error loading chat events from DB:",I)}})()}loadPostsFromDB(A,I=10,N=0){var G=this;return(0,i.A)(function*(){try{const Z=[];return yield G.postsStore.iterate(te=>{A.includes(te.pubkey)&&Z.push(te)}),Z.sort((te,be)=>be.created_at-te.created_at).slice(N,N+I)}catch(Z){return console.error("Error retrieving events from DB:",Z),[]}})()}loadPosts(A,I){var N=this;return(0,i.A)(function*(){const Z=10*(I-1),te=yield N.loadPostsFromDB(A,10,Z);te.length>0&&te.forEach(be=>{N.postsSubject.next(be)})})()}loadAllMyLikesFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllMyLikes();A.myLikesSubject.next(I)}catch(I){console.error("Error loading likes from DB:",I)}})()}loadAllNotificationsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllNotifications();A.notificationsSubject.next(I)}catch(I){console.error("Error loading notifications from DB:",I)}})()}loadContactStatsFromDB(){var A=this;return(0,i.A)(function*(){try{let I=0,N=0,G=0;yield A.contactsStore.iterate((Z,te)=>{const[be]=te.split(":");I++,Z.isFollower?N++:G++}),A.contactStatsSubject.next({totalContacts:I,followersCount:N,followingCount:G})}catch(I){console.error("Error loading contact stats from DB:",I)}})()}loadAllInvestorsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=[];yield A.investorsStore.iterate(N=>{I.push(N)}),console.log("Loaded Investors:",I),A.investorsSubject.next(I)}catch(I){console.error("Error loading investors from DB:",I)}})()}loadAllProjectDetailsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=[];yield A.projectDetailsStore.iterate(N=>{I.push(N)}),console.log("Loaded Project Details:",I),A.projectDetailsSubject.next(I)}catch(I){console.error("Error loading project details from DB:",I)}})()}static{this.\u0275fac=function(I){return new(I||T)}}static{this.\u0275prov=w.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},5645:(o,s,r)=>{"use strict";r.d(s,{n:()=>me});var a,i=r(4412),c=new Uint8Array(16);function y(){if(!a&&!(a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(c)}const w=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var S=[],A=0;A<256;++A)S.push((A+256).toString(16).substr(1));const N=function I(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,xe=(S[pe[Te+0]]+S[pe[Te+1]]+S[pe[Te+2]]+S[pe[Te+3]]+"-"+S[pe[Te+4]]+S[pe[Te+5]]+"-"+S[pe[Te+6]]+S[pe[Te+7]]+"-"+S[pe[Te+8]]+S[pe[Te+9]]+"-"+S[pe[Te+10]]+S[pe[Te+11]]+S[pe[Te+12]]+S[pe[Te+13]]+S[pe[Te+14]]+S[pe[Te+15]]).toLowerCase();if(!function C(pe){return"string"==typeof pe&&w.test(pe)}(xe))throw TypeError("Stringified UUID is invalid");return xe},Z=function G(pe,Te,xe){var Re=(pe=pe||{}).random||(pe.rng||y)();if(Re[6]=15&Re[6]|64,Re[8]=63&Re[8]|128,Te){xe=xe||0;for(var Me=0;Me<16;++Me)Te[xe+Me]=Re[Me];return Te}return N(Re)};var te=r(4438),be=r(6231);let me=(()=>{class pe{constructor(xe){this.relayService=xe,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new i.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=1e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=1e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(xe,Re,Me){const Ce=this.findExistingSubscription(xe);if(Ce)return Ce.callbacks.push(Re),Ce.id;const le=Z();this.lastActionTimestamp.set(le,Date.now());const ae={filter:xe,callbacks:[Re],id:le};return this.subscriptions.set(ae.id,ae),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(ae),ae.id}findExistingSubscription(xe){return Array.from(this.subscriptions.values()).find(Re=>JSON.stringify(Re.filter)===JSON.stringify(xe))}removeSubscriptionById(xe){const Re=Date.now(),Me=this.lastActionTimestamp.get(xe);Me&&Re-Me<this.debounceInterval||(this.subscriptions.delete(xe)&&this.subscriptionsSubject.next(this.subscriptions),this.lastActionTimestamp.set(xe,Re))}addToQueue(xe){this.subscriptionQueue.push(xe)}processSubscriptionQueue(){this.isProcessingQueue||(this.isProcessingQueue=!0,setInterval(()=>{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(Me=>this.subscribeToRelays(Me.filter,Me))},this.queueInterval))}subscribeToRelays(xe,Re){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Me=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Me,xe,{onevent:Ce=>{Re.callbacks.forEach(le=>le(Ce))},onclose:()=>console.log("Subscription closed")})}).catch(Me=>{console.error("Error subscribing to relays:",Me)}):this.pendingSubscriptions.set(Re.id,Re)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(xe=>{this.subscribeToRelays(xe.filter,xe)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(xe=>{console.error("Error connecting to relays:",xe)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(Re){return new(Re||pe)(te.KVO(be.b))}}static{this.\u0275prov=te.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}}return pe})()},7292:(o,s,r)=>{"use strict";r.d(s,{b:()=>Z});var i=r(177),a=r(9417),c=r(8834),y=r(3),w=r(5351),C=r(2408),T=r(9213),S=r(9042),A=r(7250),I=r(882),N=r(4438);function G(te,be){1&te&&(N.j41(0,"mat-error"),N.EFF(1," Password is required "),N.k0s())}let Z=(()=>{class te{constructor(me,pe,Te){this.fb=me,this.dialogRef=pe,this.data=Te,this.passwordForm=this.fb.group({password:["",a.k0.required],duration:["0",a.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static{this.\u0275fac=function(pe){return new(pe||te)(N.rXU(a.ok),N.rXU(w.CP),N.rXU(w.Vh))}}static{this.\u0275cmp=N.VBU({type:te,selectors:[["password-dialog"]],decls:30,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"w-full",3,"subscriptSizing"],["matPrefix",""],["matInput","","type","password",3,"formControlName"],[4,"ngIf"],[1,"mt-5","w-full"],["formControlName","duration"],["value","0"],["value","1"],["value","5"],["value","10"],["value","60"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(pe,Te){1&pe&&(N.j41(0,"h1",0),N.EFF(1,"Enter Password"),N.k0s(),N.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),N.EFF(6,"Password"),N.k0s(),N.j41(7,"mat-icon",4),N.EFF(8,"lock"),N.k0s(),N.nrm(9,"input",5),N.DNE(10,G,2,0,"mat-error",6),N.k0s(),N.j41(11,"mat-form-field",7)(12,"mat-label"),N.EFF(13,"Duration"),N.k0s(),N.j41(14,"mat-select",8)(15,"mat-option",9),N.EFF(16,"0 Minute"),N.k0s(),N.j41(17,"mat-option",10),N.EFF(18,"1 Minute"),N.k0s(),N.j41(19,"mat-option",11),N.EFF(20,"5 Minutes"),N.k0s(),N.j41(21,"mat-option",12),N.EFF(22,"10 Minutes"),N.k0s(),N.j41(23,"mat-option",13),N.EFF(24,"1 Hour"),N.k0s()()()()(),N.j41(25,"div",14)(26,"button",15),N.bIt("click",function(){return Te.onCancel()}),N.EFF(27,"Cancel"),N.k0s(),N.j41(28,"button",16),N.bIt("click",function(){return Te.onSubmit()}),N.EFF(29," Submit "),N.k0s()()),2&pe&&(N.R7$(3),N.Y8G("formGroup",Te.passwordForm),N.R7$(),N.Y8G("subscriptSizing","dynamic"),N.R7$(5),N.Y8G("formControlName","password"),N.R7$(),N.Y8G("ngIf",Te.passwordForm.get("password").hasError("required")),N.R7$(18),N.Y8G("disabled",Te.passwordForm.invalid))},dependencies:[I.vg,c.Hl,c.$z,T.m_,T.An,a.YN,a.qT,a.me,a.BC,a.cb,y.wT,C.nJ,C.rl,a.X1,a.j4,a.JD,i.MD,i.bT,A.Ve,C.TL,C.JW,A.VO,C.RG,S.fS,S.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return te})()},4626:(o,s,r)=>{"use strict";var i=r(345),a=r(5245),c=r(4438);let y=(()=>{class _{constructor(){}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["app-root"]],decls:1,vars:0,template:function(v,D){1&v&&c.nrm(0,"router-outlet")},dependencies:[a.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return _})();var w=r(467);const C=new c.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var T=r(8810),S=r(1985),A=r(6697),I=r(7673);class N{constructor(m,d){this.url=m,this.delay=d,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,T.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,T.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,T.$)(()=>new Error("Request does not exist!"));this._replied++;const m=this._reply({request:this.request,urlParams:this.urlParams});return m instanceof S.c?m.pipe((0,A.s)(1)):(0,I.of)(m).pipe((0,A.s)(1))}reply(m){this._reply=m}replyCount(m){this._replyCount=m}}var G=r(7680);let Z=(()=>{class _{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(d,v){const D={handler:void 0,urlParams:{}},W=v.split("/"),ne=this._handlers[d.toLowerCase()];for(const[we,Ye]of ne){const yt=we.split("/");if(W.length===yt.length&&yt.every((pn,Er)=>pn.startsWith(":")||pn===W[Er])){D.handler=Ye,D.urlParams=(0,G.A)(yt.map((pn,Er)=>pn.startsWith(":")?[pn.substring(1),W[Er]]:void 0).filter(Boolean));break}}return D}onGet(d,v){return this._registerHandler("get",d,v)}onPost(d,v){return this._registerHandler("post",d,v)}onPatch(d,v){return this._registerHandler("patch",d,v)}onDelete(d,v){return this._registerHandler("delete",d,v)}onPut(d,v){return this._registerHandler("put",d,v)}onHead(d,v){return this._registerHandler("head",d,v)}onJsonp(d,v){return this._registerHandler("jsonp",d,v)}onOptions(d,v){return this._registerHandler("options",d,v)}_registerHandler(d,v,D){const W=new N(v,D);return this._handlers[d].set(v,W),W}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var te=r(1626),be=r(1986),me=r(5558);const pe=(_,m)=>{const d=(0,c.WQX)(C),v=(0,c.WQX)(Z),{handler:D,urlParams:W}=v.findHandler(_.method.toUpperCase(),_.url);return D?(D.request=_,D.urlParams=W,D.response.pipe((0,be.c)(D.delay??d??0),(0,me.n)(ne=>{if(!ne)return(0,T.$)(()=>new te.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const we={status:ne[0],body:ne[1]};return we.status>=200&&we.status<300?(0,I.of)(new te.cS({body:we.body,status:we.status,statusText:"OK"})):(0,T.$)(()=>new te.yz({error:we.body?.error,status:we.status,statusText:"ERROR"}))}))):m(_)};var Te=r(9097),xe=r(9979),Re=r(4412);let Me=(()=>{class _{constructor(){this._auto$=new Re.t(!0),this._mode$=new Re.t("indeterminate"),this._progress$=new Re.t(0),this._show$=new Re.t(!1),this._urlMap=new Map}get auto$(){return this._auto$.asObservable()}get mode$(){return this._mode$.asObservable()}get progress$(){return this._progress$.asObservable()}get show$(){return this._show$.asObservable()}show(){this._show$.next(!0)}hide(){this._show$.next(!1)}setAutoMode(d){this._auto$.next(d)}setMode(d){this._mode$.next(d)}setProgress(d){d<0||d>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(d)}_setLoadingStatus(d,v){v?(!0===d?(this._urlMap.set(v,d),this._show$.next(!0)):!1===d&&this._urlMap.has(v)&&this._urlMap.delete(v),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Ce=r(980);const le=(_,m)=>{const d=(0,c.WQX)(Me);let v=!1;return d.auto$.pipe((0,A.s)(1)).subscribe(D=>{v=D}),v?(d._setLoadingStatus(!0,_.url),m(_).pipe((0,Ce.j)(()=>{d._setLoadingStatus(!1,_.url)}))):m(_)};var ae=r(4977),Ie=r(6860);let $e=(()=>{class _{constructor(){this._platform=(0,c.WQX)(Ie.OD),this.osName="os-unknown",this._platform.isBrowser&&(navigator.userAgent.includes("Win")&&(this.osName="os-windows"),navigator.userAgent.includes("Mac")&&(this.osName="os-mac"),navigator.userAgent.includes("X11")&&(this.osName="os-unix"),navigator.userAgent.includes("Linux")&&(this.osName="os-linux"),this._platform.IOS&&(this.osName="os-ios"),this._platform.ANDROID&&(this.osName="os-android"))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var st=r(177),ht=r(5964);let vt=(()=>{class _{constructor(){this._document=(0,c.WQX)(st.qQ),this._router=(0,c.WQX)(a.Ix),this._router.events.pipe((0,ht.p)(d=>d instanceof a.wF),(0,A.s)(1)).subscribe(()=>{this.hide()})}show(){this._document.body.classList.remove("angor-splash-screen-hidden")}hide(){this._document.body.classList.add("angor-splash-screen-hidden")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var at=r(7209),Xt=r(3),ln=r(5351),yn=r(2408);class bn extends Error{}class Qe extends bn{constructor(m){super(`Invalid DateTime: ${m.toMessage()}`)}}class bt extends bn{constructor(m){super(`Invalid Interval: ${m.toMessage()}`)}}class ze extends bn{constructor(m){super(`Invalid Duration: ${m.toMessage()}`)}}class Fe extends bn{}class Ft extends bn{constructor(m){super(`Invalid unit ${m}`)}}class Ke extends bn{}class dt extends bn{constructor(){super("Zone is an abstract class")}}const Ge="numeric",He="short",mt="long",se={year:Ge,month:Ge,day:Ge},Ze={year:Ge,month:He,day:Ge},Rt={year:Ge,month:He,day:Ge,weekday:He},Jt={year:Ge,month:mt,day:Ge},fn={year:Ge,month:mt,day:Ge,weekday:mt},Gn={hour:Ge,minute:Ge},Nt={hour:Ge,minute:Ge,second:Ge},Qt={hour:Ge,minute:Ge,second:Ge,timeZoneName:He},an={hour:Ge,minute:Ge,second:Ge,timeZoneName:mt},Xn={hour:Ge,minute:Ge,hourCycle:"h23"},En={hour:Ge,minute:Ge,second:Ge,hourCycle:"h23"},Gt={hour:Ge,minute:Ge,second:Ge,hourCycle:"h23",timeZoneName:He},At={hour:Ge,minute:Ge,second:Ge,hourCycle:"h23",timeZoneName:mt},Kt={year:Ge,month:Ge,day:Ge,hour:Ge,minute:Ge},xn={year:Ge,month:Ge,day:Ge,hour:Ge,minute:Ge,second:Ge},Yn={year:Ge,month:He,day:Ge,hour:Ge,minute:Ge},tt={year:Ge,month:He,day:Ge,hour:Ge,minute:Ge,second:Ge},ke={year:Ge,month:He,day:Ge,weekday:He,hour:Ge,minute:Ge},B={year:Ge,month:mt,day:Ge,hour:Ge,minute:Ge,timeZoneName:He},k={year:Ge,month:mt,day:Ge,hour:Ge,minute:Ge,second:Ge,timeZoneName:He},j={year:Ge,month:mt,day:Ge,weekday:mt,hour:Ge,minute:Ge,timeZoneName:mt},De={year:Ge,month:mt,day:Ge,weekday:mt,hour:Ge,minute:Ge,second:Ge,timeZoneName:mt};class it{get type(){throw new dt}get name(){throw new dt}get ianaName(){return this.name}get isUniversal(){throw new dt}offsetName(m,d){throw new dt}formatOffset(m,d){throw new dt}offset(m){throw new dt}equals(m){throw new dt}get isValid(){throw new dt}}let ot=null;class Tt extends it{static get instance(){return null===ot&&(ot=new Tt),ot}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(m,{format:d,locale:v}){return xo(m,d,v)}formatOffset(m,d){return ya(this.offset(m),d)}offset(m){return-new Date(m).getTimezoneOffset()}equals(m){return"system"===m.type}get isValid(){return!0}}let In={};const dn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Bn={};class cr extends it{static create(m){return Bn[m]||(Bn[m]=new cr(m)),Bn[m]}static resetCache(){Bn={},In={}}static isValidSpecifier(m){return this.isValidZone(m)}static isValidZone(m){if(!m)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:m}).format(),!0}catch{return!1}}constructor(m){super(),this.zoneName=m,this.valid=cr.isValidZone(m)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(m,{format:d,locale:v}){return xo(m,d,v,this.name)}formatOffset(m,d){return ya(this.offset(m),d)}offset(m){const d=new Date(m);if(isNaN(d))return NaN;const v=function Vt(_){return In[_]||(In[_]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),In[_]}(this.name);let[D,W,ne,we,Ye,yt,sn]=v.formatToParts?function Fn(_,m){const d=_.formatToParts(m),v=[];for(let D=0;D<d.length;D++){const{type:W,value:ne}=d[D],we=dn[W];"era"===W?v[we]=ne:$r(we)||(v[we]=parseInt(ne,10))}return v}(v,d):function Pn(_,m){const d=_.format(m).replace(/\u200E/g,""),v=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(d),[,D,W,ne,we,Ye,yt,sn]=v;return[ne,D,W,we,Ye,yt,sn]}(v,d);"BC"===we&&(D=1-Math.abs(D));let Zn=+d;const vr=Zn%1e3;return Zn-=vr>=0?vr:1e3+vr,(ws({year:D,month:W,day:ne,hour:24===Ye?0:Ye,minute:yt,second:sn,millisecond:0})-Zn)/6e4}equals(m){return"iana"===m.type&&m.name===this.name}get isValid(){return this.valid}}let Jr={},_t={};function Bt(_,m={}){const d=JSON.stringify([_,m]);let v=_t[d];return v||(v=new Intl.DateTimeFormat(_,m),_t[d]=v),v}let Ee={},Pe={},ft=null,mn={};function rn(_,m,d,v){const D=_.listingMode();return"error"===D?null:"en"===D?d(m):v(m)}class qe{constructor(m,d,v){this.padTo=v.padTo||0,this.floor=v.floor||!1;const{padTo:D,floor:W,...ne}=v;if(!d||Object.keys(ne).length>0){const we={useGrouping:!1,...v};v.padTo>0&&(we.minimumIntegerDigits=v.padTo),this.inf=function lt(_,m={}){const d=JSON.stringify([_,m]);let v=Ee[d];return v||(v=new Intl.NumberFormat(_,m),Ee[d]=v),v}(m,we)}}format(m){if(this.inf){const d=this.floor?Math.floor(m):m;return this.inf.format(d)}return Ni(this.floor?Math.floor(m):rs(m,3),this.padTo)}}class Dt{constructor(m,d,v){let D;if(this.opts=v,this.originalZone=void 0,this.opts.timeZone)this.dt=m;else if("fixed"===m.zone.type){const ne=m.offset/60*-1,we=ne>=0?`Etc/GMT+${ne}`:`Etc/GMT${ne}`;0!==m.offset&&cr.create(we).valid?(D=we,this.dt=m):(D="UTC",this.dt=0===m.offset?m:m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone)}else"system"===m.zone.type?this.dt=m:"iana"===m.zone.type?(this.dt=m,D=m.zone.name):(D="UTC",this.dt=m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone);const W={...this.opts};W.timeZone=W.timeZone||D,this.dtf=Bt(d,W)}format(){return this.originalZone?this.formatToParts().map(({value:m})=>m).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const m=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?m.map(d=>{if("timeZoneName"===d.type){const v=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...d,value:v}}return d}):m}resolvedOptions(){return this.dtf.resolvedOptions()}}class Wt{constructor(m,d,v){this.opts={style:"long",...v},!d&&Sr()&&(this.rtf=function kt(_,m={}){const{base:d,...v}=m,D=JSON.stringify([_,v]);let W=Pe[D];return W||(W=new Intl.RelativeTimeFormat(_,m),Pe[D]=W),W}(m,v))}format(m,d){return this.rtf?this.rtf.format(m,d):function re(_,m,d="always",v=!1){const D={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},W=-1===["hours","minutes","seconds"].indexOf(_);if("auto"===d&&W){const pn="days"===_;switch(m){case 1:return pn?"tomorrow":`next ${D[_][0]}`;case-1:return pn?"yesterday":`last ${D[_][0]}`;case 0:return pn?"today":`this ${D[_][0]}`}}const ne=Object.is(m,-0)||m<0,we=Math.abs(m),Ye=1===we,yt=D[_],sn=v?Ye?yt[1]:yt[2]||yt[1]:Ye?D[_][0]:_;return ne?`${we} ${sn} ago`:`in ${we} ${sn}`}(d,m,this.opts.numeric,"long"!==this.opts.style)}formatToParts(m,d){return this.rtf?this.rtf.formatToParts(m,d):[]}}const Hn={firstDay:1,minimalDays:4,weekend:[6,7]};class fr{static fromOpts(m){return fr.create(m.locale,m.numberingSystem,m.outputCalendar,m.weekSettings,m.defaultToEN)}static create(m,d,v,D,W=!1){const ne=m||Oe.defaultLocale,we=ne||(W?"en-US":function Pt(){return ft||(ft=(new Intl.DateTimeFormat).resolvedOptions().locale,ft)}()),Ye=d||Oe.defaultNumberingSystem,yt=v||Oe.defaultOutputCalendar,sn=zs(D)||Oe.defaultWeekSettings;return new fr(we,Ye,yt,sn,ne)}static resetCache(){ft=null,_t={},Ee={},Pe={}}static fromObject({locale:m,numberingSystem:d,outputCalendar:v,weekSettings:D}={}){return fr.create(m,d,v,D)}constructor(m,d,v,D,W){const[ne,we,Ye]=function Mr(_){const m=_.indexOf("-x-");-1!==m&&(_=_.substring(0,m));const d=_.indexOf("-u-");if(-1===d)return[_];{let v,D;try{v=Bt(_).resolvedOptions(),D=_}catch{const Ye=_.substring(0,d);v=Bt(Ye).resolvedOptions(),D=Ye}const{numberingSystem:W,calendar:ne}=v;return[D,W,ne]}}(m);this.locale=ne,this.numberingSystem=d||we||null,this.outputCalendar=v||Ye||null,this.weekSettings=D,this.intl=function ii(_,m,d){return(d||m)&&(_.includes("-u-")||(_+="-u"),d&&(_+=`-ca-${d}`),m&&(_+=`-nu-${m}`)),_}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=W,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function St(_){return(!_.numberingSystem||"latn"===_.numberingSystem)&&("latn"===_.numberingSystem||!_.locale||_.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(_.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(m){return m&&0!==Object.getOwnPropertyNames(m).length?fr.create(m.locale||this.specifiedLocale,m.numberingSystem||this.numberingSystem,m.outputCalendar||this.outputCalendar,zs(m.weekSettings)||this.weekSettings,m.defaultToEN||!1):this}redefaultToEN(m={}){return this.clone({...m,defaultToEN:!0})}redefaultToSystem(m={}){return this.clone({...m,defaultToEN:!1})}months(m,d=!1){return rn(this,m,oa,()=>{const v=d?{month:m,day:"numeric"}:{month:m},D=d?"format":"standalone";return this.monthsCache[D][m]||(this.monthsCache[D][m]=function ci(_){const m=[];for(let d=1;d<=12;d++){const v=Lr.utc(2009,d,1);m.push(_(v))}return m}(W=>this.extract(W,v,"month"))),this.monthsCache[D][m]})}weekdays(m,d=!1){return rn(this,m,Zo,()=>{const v=d?{weekday:m,year:"numeric",month:"long",day:"numeric"}:{weekday:m},D=d?"format":"standalone";return this.weekdaysCache[D][m]||(this.weekdaysCache[D][m]=function Si(_){const m=[];for(let d=1;d<=7;d++){const v=Lr.utc(2016,11,13+d);m.push(_(v))}return m}(W=>this.extract(W,v,"weekday"))),this.weekdaysCache[D][m]})}meridiems(){return rn(this,void 0,()=>_i,()=>{if(!this.meridiemCache){const m={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Lr.utc(2016,11,13,9),Lr.utc(2016,11,13,19)].map(d=>this.extract(d,m,"dayperiod"))}return this.meridiemCache})}eras(m){return rn(this,m,wl,()=>{const d={era:m};return this.eraCache[m]||(this.eraCache[m]=[Lr.utc(-40,1,1),Lr.utc(2017,1,1)].map(v=>this.extract(v,d,"era"))),this.eraCache[m]})}extract(m,d,v){const ne=this.dtFormatter(m,d).formatToParts().find(we=>we.type.toLowerCase()===v);return ne?ne.value:null}numberFormatter(m={}){return new qe(this.intl,m.forceSimple||this.fastNumbers,m)}dtFormatter(m,d={}){return new Dt(m,this.intl,d)}relFormatter(m={}){return new Wt(this.intl,this.isEnglish(),m)}listFormatter(m={}){return function Xr(_,m={}){const d=JSON.stringify([_,m]);let v=Jr[d];return v||(v=new Intl.ListFormat(_,m),Jr[d]=v),v}(this.intl,m)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ra()?function or(_){let m=mn[_];if(!m){const d=new Intl.Locale(_);m="getWeekInfo"in d?d.getWeekInfo():d.weekInfo,mn[_]=m}return m}(this.locale):Hn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(m){return this.locale===m.locale&&this.numberingSystem===m.numberingSystem&&this.outputCalendar===m.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let fo=null;class Oi extends it{static get utcInstance(){return null===fo&&(fo=new Oi(0)),fo}static instance(m){return 0===m?Oi.utcInstance:new Oi(m)}static parseSpecifier(m){if(m){const d=m.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(d)return new Oi(os(d[1],d[2]))}return null}constructor(m){super(),this.fixed=m}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ya(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ya(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(m,d){return ya(this.fixed,d)}get isUniversal(){return!0}offset(){return this.fixed}equals(m){return"fixed"===m.type&&m.fixed===this.fixed}get isValid(){return!0}}class Uo extends it{constructor(m){super(),this.zoneName=m}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function oi(_,m){if($r(_)||null===_)return m;if(_ instanceof it)return _;if(function bs(_){return"string"==typeof _}(_)){const v=_.toLowerCase();return"default"===v?m:"local"===v||"system"===v?Tt.instance:"utc"===v||"gmt"===v?Oi.utcInstance:Oi.parseSpecifier(v)||cr.create(_)}return Ki(_)?Oi.instance(_):"object"==typeof _&&"offset"in _&&"function"==typeof _.offset?_:new Uo(_)}const ts={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},ao={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},wo=ts.hanidec.replace(/[\[|\]]/g,"").split("");let Do={};function eo({numberingSystem:_},m=""){const d=_||"latn";return Do[d]||(Do[d]={}),Do[d][m]||(Do[d][m]=new RegExp(`${ts[d]}${m}`)),Do[d][m]}let ve,oo=()=>Date.now(),Bi="system",Mo=null,Je=null,ct=null,Et=60,et=null;class Oe{static get now(){return oo}static set now(m){oo=m}static set defaultZone(m){Bi=m}static get defaultZone(){return oi(Bi,Tt.instance)}static get defaultLocale(){return Mo}static set defaultLocale(m){Mo=m}static get defaultNumberingSystem(){return Je}static set defaultNumberingSystem(m){Je=m}static get defaultOutputCalendar(){return ct}static set defaultOutputCalendar(m){ct=m}static get defaultWeekSettings(){return et}static set defaultWeekSettings(m){et=zs(m)}static get twoDigitCutoffYear(){return Et}static set twoDigitCutoffYear(m){Et=m%100}static get throwOnInvalid(){return ve}static set throwOnInvalid(m){ve=m}static resetCaches(){fr.resetCache(),cr.resetCache(),Lr.resetCache(),function Ts(){Do={}}()}}class pt{constructor(m,d){this.reason=m,this.explanation=d}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const $t=[0,31,59,90,120,151,181,212,243,273,304,334],Mt=[0,31,60,91,121,152,182,213,244,274,305,335];function un(_,m){return new pt("unit out of range",`you specified ${m} (of type ${typeof m}) as a ${_}, which is invalid`)}function Cn(_,m,d){const v=new Date(Date.UTC(_,m-1,d));_<100&&_>=0&&v.setUTCFullYear(v.getUTCFullYear()-1900);const D=v.getUTCDay();return 0===D?7:D}function Sn(_,m,d){return d+(is(_)?Mt:$t)[m-1]}function kn(_,m){const d=is(_)?Mt:$t,v=d.findIndex(W=>W<m);return{month:v+1,day:m-d[v]}}function Un(_,m){return(_-m+7)%7+1}function Jn(_,m=4,d=1){const{year:v,month:D,day:W}=_,ne=Sn(v,D,W),we=Un(Cn(v,D,W),d);let yt,Ye=Math.floor((ne-we+14-m)/7);return Ye<1?(yt=v-1,Ye=va(yt,m,d)):Ye>va(v,m,d)?(yt=v+1,Ye=1):yt=v,{weekYear:yt,weekNumber:Ye,weekday:we,...Yo(_)}}function sr(_,m=4,d=1){const{weekYear:v,weekNumber:D,weekday:W}=_,ne=Un(Cn(v,1,m),d),we=to(v);let yt,Ye=7*D+W-ne-7+m;Ye<1?(yt=v-1,Ye+=to(yt)):Ye>we?(yt=v+1,Ye-=to(v)):yt=v;const{month:sn,day:pn}=kn(yt,Ye);return{year:yt,month:sn,day:pn,...Yo(_)}}function kr(_){const{year:m,month:d,day:v}=_;return{year:m,ordinal:Sn(m,d,v),...Yo(_)}}function mr(_){const{year:m,ordinal:d}=_,{month:v,day:D}=kn(m,d);return{year:m,month:v,day:D,...Yo(_)}}function bi(_,m){if($r(_.localWeekday)&&$r(_.localWeekNumber)&&$r(_.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!$r(_.weekday)||!$r(_.weekNumber)||!$r(_.weekYear))throw new Fe("Cannot mix locale-based week fields with ISO-based week fields");return $r(_.localWeekday)||(_.weekday=_.localWeekday),$r(_.localWeekNumber)||(_.weekNumber=_.localWeekNumber),$r(_.localWeekYear)||(_.weekYear=_.localWeekYear),delete _.localWeekday,delete _.localWeekNumber,delete _.localWeekYear,{minDaysInFirstWeek:m.getMinDaysInFirstWeek(),startOfWeek:m.getStartOfWeek()}}function ai(_){const m=ls(_.year),d=Gi(_.month,1,12),v=Gi(_.day,1,Wi(_.year,_.month));return m?d?!v&&un("day",_.day):un("month",_.month):un("year",_.year)}function yo(_){const{hour:m,minute:d,second:v,millisecond:D}=_,W=Gi(m,0,23)||24===m&&0===d&&0===v&&0===D,ne=Gi(d,0,59),we=Gi(v,0,59),Ye=Gi(D,0,999);return W?ne?we?!Ye&&un("millisecond",D):un("second",v):un("minute",d):un("hour",m)}function $r(_){return typeof _>"u"}function Ki(_){return"number"==typeof _}function ls(_){return"number"==typeof _&&_%1==0}function Sr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ra(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Eo(_,m,d){if(0!==_.length)return _.reduce((v,D)=>{const W=[m(D),D];return v&&d(v[0],W[0])===v[0]?v:W},null)[1]}function Ns(_,m){return Object.prototype.hasOwnProperty.call(_,m)}function zs(_){if(null==_)return null;if("object"!=typeof _)throw new Ke("Week settings must be an object");if(!Gi(_.firstDay,1,7)||!Gi(_.minimalDays,1,7)||!Array.isArray(_.weekend)||_.weekend.some(m=>!Gi(m,1,7)))throw new Ke("Invalid week settings");return{firstDay:_.firstDay,minimalDays:_.minimalDays,weekend:Array.from(_.weekend)}}function Gi(_,m,d){return ls(_)&&_>=m&&_<=d}function Ni(_,m=2){let v;return v=_<0?"-"+(""+-_).padStart(m,"0"):(""+_).padStart(m,"0"),v}function Ls(_){if(!$r(_)&&null!==_&&""!==_)return parseInt(_,10)}function ns(_){if(!$r(_)&&null!==_&&""!==_)return parseFloat(_)}function qr(_){if(!$r(_)&&null!==_&&""!==_){const m=1e3*parseFloat("0."+_);return Math.floor(m)}}function rs(_,m,d=!1){const v=10**m;return(d?Math.trunc:Math.round)(_*v)/v}function is(_){return _%4==0&&(_%100!=0||_%400==0)}function to(_){return is(_)?366:365}function Wi(_,m){const d=function Ks(_,m){return _-m*Math.floor(_/m)}(m-1,12)+1;return 2===d?is(_+(m-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function ws(_){let m=Date.UTC(_.year,_.month-1,_.day,_.hour,_.minute,_.second,_.millisecond);return _.year<100&&_.year>=0&&(m=new Date(m),m.setUTCFullYear(_.year,_.month-1,_.day)),+m}function Io(_,m,d){return-Un(Cn(_,1,m),d)+m-1}function va(_,m=4,d=1){const v=Io(_,m,d),D=Io(_+1,m,d);return(to(_)-v+D)/7}function tr(_){return _>99?_:_>Oe.twoDigitCutoffYear?1900+_:2e3+_}function xo(_,m,d,v=null){const D=new Date(_),W={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};v&&(W.timeZone=v);const ne={timeZoneName:m,...W},we=new Intl.DateTimeFormat(d,ne).formatToParts(D).find(Ye=>"timezonename"===Ye.type.toLowerCase());return we?we.value:null}function os(_,m){let d=parseInt(_,10);Number.isNaN(d)&&(d=0);const v=parseInt(m,10)||0;return 60*d+(d<0||Object.is(d,-0)?-v:v)}function Ms(_){const m=Number(_);if("boolean"==typeof _||""===_||Number.isNaN(m))throw new Ke(`Invalid unit value ${_}`);return m}function Ps(_,m){const d={};for(const v in _)if(Ns(_,v)){const D=_[v];if(null==D)continue;d[m(v)]=Ms(D)}return d}function ya(_,m){const d=Math.trunc(Math.abs(_/60)),v=Math.trunc(Math.abs(_%60)),D=_>=0?"+":"-";switch(m){case"short":return`${D}${Ni(d,2)}:${Ni(v,2)}`;case"narrow":return`${D}${d}${v>0?`:${v}`:""}`;case"techie":return`${D}${Ni(d,2)}${Ni(v,2)}`;default:throw new RangeError(`Value format ${m} is out of range for property format`)}}function Yo(_){return function Rs(_,m){return m.reduce((d,v)=>(d[v]=_[v],d),{})}(_,["hour","minute","second","millisecond"])}const ia=["January","February","March","April","May","June","July","August","September","October","November","December"],bl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qo=["J","F","M","A","M","J","J","A","S","O","N","D"];function oa(_){switch(_){case"narrow":return[...Qo];case"short":return[...bl];case"long":return[...ia];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const lo=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ss=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],bo=["M","T","W","T","F","S","S"];function Zo(_){switch(_){case"narrow":return[...bo];case"short":return[...ss];case"long":return[...lo];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const _i=["AM","PM"],La=["Before Christ","Anno Domini"],ko=["BC","AD"],Gs=["B","A"];function wl(_){switch(_){case"narrow":return[...Gs];case"short":return[...ko];case"long":return[...La];default:return null}}function wt(_,m){let d="";for(const v of _)d+=v.literal?v.val:m(v.val);return d}const Ln={D:se,DD:Ze,DDD:Jt,DDDD:fn,t:Gn,tt:Nt,ttt:Qt,tttt:an,T:Xn,TT:En,TTT:Gt,TTTT:At,f:Kt,ff:Yn,fff:B,ffff:j,F:xn,FF:tt,FFF:k,FFFF:De};class hn{static create(m,d={}){return new hn(m,d)}static parseFormat(m){let d=null,v="",D=!1;const W=[];for(let ne=0;ne<m.length;ne++){const we=m.charAt(ne);"'"===we?(v.length>0&&W.push({literal:D||/^\s+$/.test(v),val:v}),d=null,v="",D=!D):D||we===d?v+=we:(v.length>0&&W.push({literal:/^\s+$/.test(v),val:v}),v=we,d=we)}return v.length>0&&W.push({literal:D||/^\s+$/.test(v),val:v}),W}static macroTokenToFormatOpts(m){return Ln[m]}constructor(m,d){this.opts=d,this.loc=m,this.systemLoc=null}formatWithSystemDefault(m,d){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(m,{...this.opts,...d}).format()}dtFormatter(m,d={}){return this.loc.dtFormatter(m,{...this.opts,...d})}formatDateTime(m,d){return this.dtFormatter(m,d).format()}formatDateTimeParts(m,d){return this.dtFormatter(m,d).formatToParts()}formatInterval(m,d){return this.dtFormatter(m.start,d).dtf.formatRange(m.start.toJSDate(),m.end.toJSDate())}resolvedOptions(m,d){return this.dtFormatter(m,d).resolvedOptions()}num(m,d=0){if(this.opts.forceSimple)return Ni(m,d);const v={...this.opts};return d>0&&(v.padTo=d),this.loc.numberFormatter(v).format(m)}formatDateTimeFromString(m,d){const v="en"===this.loc.listingMode(),D=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,W=(Zn,vr)=>this.loc.extract(m,Zn,vr),ne=Zn=>m.isOffsetFixed&&0===m.offset&&Zn.allowZ?"Z":m.isValid?m.zone.formatOffset(m.ts,Zn.format):"",Ye=(Zn,vr)=>v?function Y(_,m){return oa(m)[_.month-1]}(m,Zn):W(vr?{month:Zn}:{month:Zn,day:"numeric"},"month"),yt=(Zn,vr)=>v?function Xa(_,m){return Zo(m)[_.weekday-1]}(m,Zn):W(vr?{weekday:Zn}:{weekday:Zn,month:"long",day:"numeric"},"weekday"),sn=Zn=>{const vr=hn.macroTokenToFormatOpts(Zn);return vr?this.formatWithSystemDefault(m,vr):Zn},pn=Zn=>v?function je(_,m){return wl(m)[_.year<0?0:1]}(m,Zn):W({era:Zn},"era");return wt(hn.parseFormat(d),Zn=>{switch(Zn){case"S":return this.num(m.millisecond);case"u":case"SSS":return this.num(m.millisecond,3);case"s":return this.num(m.second);case"ss":return this.num(m.second,2);case"uu":return this.num(Math.floor(m.millisecond/10),2);case"uuu":return this.num(Math.floor(m.millisecond/100));case"m":return this.num(m.minute);case"mm":return this.num(m.minute,2);case"h":return this.num(m.hour%12==0?12:m.hour%12);case"hh":return this.num(m.hour%12==0?12:m.hour%12,2);case"H":return this.num(m.hour);case"HH":return this.num(m.hour,2);case"Z":return ne({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return ne({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return ne({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return m.zone.offsetName(m.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return m.zone.offsetName(m.ts,{format:"long",locale:this.loc.locale});case"z":return m.zoneName;case"a":return v?function Ga(_){return _i[_.hour<12?0:1]}(m):W({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return D?W({day:"numeric"},"day"):this.num(m.day);case"dd":return D?W({day:"2-digit"},"day"):this.num(m.day,2);case"c":case"E":return this.num(m.weekday);case"ccc":return yt("short",!0);case"cccc":return yt("long",!0);case"ccccc":return yt("narrow",!0);case"EEE":return yt("short",!1);case"EEEE":return yt("long",!1);case"EEEEE":return yt("narrow",!1);case"L":return D?W({month:"numeric",day:"numeric"},"month"):this.num(m.month);case"LL":return D?W({month:"2-digit",day:"numeric"},"month"):this.num(m.month,2);case"LLL":return Ye("short",!0);case"LLLL":return Ye("long",!0);case"LLLLL":return Ye("narrow",!0);case"M":return D?W({month:"numeric"},"month"):this.num(m.month);case"MM":return D?W({month:"2-digit"},"month"):this.num(m.month,2);case"MMM":return Ye("short",!1);case"MMMM":return Ye("long",!1);case"MMMMM":return Ye("narrow",!1);case"y":return D?W({year:"numeric"},"year"):this.num(m.year);case"yy":return D?W({year:"2-digit"},"year"):this.num(m.year.toString().slice(-2),2);case"yyyy":return D?W({year:"numeric"},"year"):this.num(m.year,4);case"yyyyyy":return D?W({year:"numeric"},"year"):this.num(m.year,6);case"G":return pn("short");case"GG":return pn("long");case"GGGGG":return pn("narrow");case"kk":return this.num(m.weekYear.toString().slice(-2),2);case"kkkk":return this.num(m.weekYear,4);case"W":return this.num(m.weekNumber);case"WW":return this.num(m.weekNumber,2);case"n":return this.num(m.localWeekNumber);case"nn":return this.num(m.localWeekNumber,2);case"ii":return this.num(m.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(m.localWeekYear,4);case"o":return this.num(m.ordinal);case"ooo":return this.num(m.ordinal,3);case"q":return this.num(m.quarter);case"qq":return this.num(m.quarter,2);case"X":return this.num(Math.floor(m.ts/1e3));case"x":return this.num(m.ts);default:return sn(Zn)}})}formatDurationFromString(m,d){const v=Ye=>{switch(Ye[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},W=hn.parseFormat(d),ne=W.reduce((Ye,{literal:yt,val:sn})=>yt?Ye:Ye.concat(sn),[]);return wt(W,(Ye=>yt=>{const sn=v(yt);return sn?this.num(Ye.get(sn),yt.length):yt})(m.shiftTo(...ne.map(v).filter(Ye=>Ye))))}}const ur=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function hr(..._){const m=_.reduce((d,v)=>d+v.source,"");return RegExp(`^${m}$`)}function Gr(..._){return m=>_.reduce(([d,v,D],W)=>{const[ne,we,Ye]=W(m,D);return[{...d,...ne},we||v,Ye]},[{},null,1]).slice(0,2)}function zi(_,...m){if(null==_)return[null,null];for(const[d,v]of m){const D=d.exec(_);if(D)return v(D)}return[null,null]}function Or(..._){return(m,d)=>{const v={};let D;for(D=0;D<_.length;D++)v[_[D]]=Ls(m[d+D]);return[v,null,d+D]}}const Dr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ui=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,po=RegExp(`${ui.source}(?:${Dr.source}?(?:\\[(${ur.source})\\])?)?`),co=RegExp(`(?:T${po.source})?`),Ya=Or("weekYear","weekNumber","weekDay"),ba=Or("year","ordinal"),ce=RegExp(`${ui.source} ?(?:${Dr.source}|(${ur.source}))?`),Q=RegExp(`(?: ${ce.source})?`);function Le(_,m,d){const v=_[m];return $r(v)?d:Ls(v)}function _r(_,m){return[{hours:Le(_,m,0),minutes:Le(_,m+1,0),seconds:Le(_,m+2,0),milliseconds:qr(_[m+3])},null,m+4]}function ni(_,m){const d=!_[m]&&!_[m+1],v=os(_[m+1],_[m+2]);return[{},d?null:Oi.instance(v),m+3]}function So(_,m){return[{},_[m]?cr.create(_[m]):null,m+1]}const qo=RegExp(`^T?${ui.source}$`),Pa=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Lu(_){const[m,d,v,D,W,ne,we,Ye,yt]=_,sn="-"===m[0],pn=Ye&&"-"===Ye[0],Er=(Zn,vr=!1)=>void 0!==Zn&&(vr||Zn&&sn)?-Zn:Zn;return[{years:Er(ns(d)),months:Er(ns(v)),weeks:Er(ns(D)),days:Er(ns(W)),hours:Er(ns(ne)),minutes:Er(ns(we)),seconds:Er(ns(Ye),"-0"===Ye),milliseconds:Er(qr(yt),pn)}]}const rc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function El(_,m,d,v,D,W,ne){const we={year:2===m.length?tr(Ls(m)):Ls(m),month:bl.indexOf(d)+1,day:Ls(v),hour:Ls(D),minute:Ls(W)};return ne&&(we.second=Ls(ne)),_&&(we.weekday=_.length>3?lo.indexOf(_)+1:ss.indexOf(_)+1),we}const cs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Fs(_){const[,m,d,v,D,W,ne,we,Ye,yt,sn,pn]=_,Er=El(m,D,v,d,W,ne,we);let Zn;return Zn=Ye?rc[Ye]:yt?0:os(sn,pn),[Er,new Oi(Zn)]}const Lo=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Qa=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,xl=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Cl(_){const[,m,d,v,D,W,ne,we]=_;return[El(m,D,v,d,W,ne,we),Oi.utcInstance]}function sa(_){const[,m,d,v,D,W,ne,we]=_;return[El(m,we,d,v,D,W,ne),Oi.utcInstance]}const Ba=hr(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,co),_c=hr(/(\d{4})-?W(\d\d)(?:-?(\d))?/,co),Pu=hr(/(\d{4})-?(\d{3})/,co),ic=hr(po),Ua=Gr(function Ut(_,m){return[{year:Le(_,m),month:Le(_,m+1,1),day:Le(_,m+2,1)},null,m+3]},_r,ni,So),zl=Gr(Ya,_r,ni,So),wa=Gr(ba,_r,ni,So),Za=Gr(_r,ni,So),xa=Gr(_r),yc=hr(/(\d{4})-(\d\d)-(\d\d)/,Q),al=hr(ce),Sl=Gr(_r,ni,So),Al="Invalid Duration",Xl={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Ca={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Xl},us=365.2425,Ui=30.436875,zn={years:{quarters:4,months:12,weeks:us/7,days:us,hours:24*us,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:us/28,days:us/4,hours:24*us/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Ui/7,days:Ui,hours:24*Ui,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Xl},Ar=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ao=Ar.slice(0).reverse();function no(_,m,d=!1){const v={values:d?m.values:{..._.values,...m.values||{}},loc:_.loc.clone(m.loc),conversionAccuracy:m.conversionAccuracy||_.conversionAccuracy,matrix:m.matrix||_.matrix};return new Fr(v)}function $o(_,m){let d=m.milliseconds??0;for(const v of Ao.slice(1))m[v]&&(d+=m[v]*_[v].milliseconds);return d}function es(_,m){const d=$o(_,m)<0?-1:1;Ar.reduceRight((v,D)=>{if($r(m[D]))return v;if(v){const ne=_[D][v],we=Math.floor(m[v]*d/ne);m[D]+=we*d,m[v]-=we*ne*d}return D},null),Ar.reduce((v,D)=>{if($r(m[D]))return v;if(v){const W=m[v]%1;m[v]-=W,m[D]+=W*_[v][D]}return D},null)}class Fr{constructor(m){const d="longterm"===m.conversionAccuracy||!1;let v=d?zn:Ca;m.matrix&&(v=m.matrix),this.values=m.values,this.loc=m.loc||fr.create(),this.conversionAccuracy=d?"longterm":"casual",this.invalid=m.invalid||null,this.matrix=v,this.isLuxonDuration=!0}static fromMillis(m,d){return Fr.fromObject({milliseconds:m},d)}static fromObject(m,d={}){if(null==m||"object"!=typeof m)throw new Ke("Duration.fromObject: argument expected to be an object, got "+(null===m?"null":typeof m));return new Fr({values:Ps(m,Fr.normalizeUnit),loc:fr.fromObject(d),conversionAccuracy:d.conversionAccuracy,matrix:d.matrix})}static fromDurationLike(m){if(Ki(m))return Fr.fromMillis(m);if(Fr.isDuration(m))return m;if("object"==typeof m)return Fr.fromObject(m);throw new Ke(`Unknown duration argument ${m} of type ${typeof m}`)}static fromISO(m,d){const[v]=function Ea(_){return zi(_,[Pa,Lu])}(m);return v?Fr.fromObject(v,d):Fr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static fromISOTime(m,d){const[v]=function Jo(_){return zi(_,[qo,xa])}(m);return v?Fr.fromObject(v,d):Fr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the Duration is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new ze(v);return new Fr({invalid:v})}static normalizeUnit(m){const d={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[m&&m.toLowerCase()];if(!d)throw new Ft(m);return d}static isDuration(m){return m&&m.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(m,d={}){const v={...d,floor:!1!==d.round&&!1!==d.floor};return this.isValid?hn.create(this.loc,v).formatDurationFromString(this,m):Al}toHuman(m={}){if(!this.isValid)return Al;const d=Ar.map(v=>{const D=this.values[v];return $r(D)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...m,unit:v.slice(0,-1)}).format(D)}).filter(v=>v);return this.loc.listFormatter({type:"conjunction",style:m.listStyle||"narrow",...m}).format(d)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let m="P";return 0!==this.years&&(m+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(m+=this.months+3*this.quarters+"M"),0!==this.weeks&&(m+=this.weeks+"W"),0!==this.days&&(m+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(m+="T"),0!==this.hours&&(m+=this.hours+"H"),0!==this.minutes&&(m+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(m+=rs(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===m&&(m+="T0S"),m}toISOTime(m={}){if(!this.isValid)return null;const d=this.toMillis();return d<0||d>=864e5?null:(m={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...m,includeOffset:!1},Lr.fromMillis(d,{zone:"UTC"}).toISOTime(m))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?$o(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(m){if(!this.isValid)return this;const d=Fr.fromDurationLike(m),v={};for(const D of Ar)(Ns(d.values,D)||Ns(this.values,D))&&(v[D]=d.get(D)+this.get(D));return no(this,{values:v},!0)}minus(m){if(!this.isValid)return this;const d=Fr.fromDurationLike(m);return this.plus(d.negate())}mapUnits(m){if(!this.isValid)return this;const d={};for(const v of Object.keys(this.values))d[v]=Ms(m(this.values[v],v));return no(this,{values:d},!0)}get(m){return this[Fr.normalizeUnit(m)]}set(m){return this.isValid?no(this,{values:{...this.values,...Ps(m,Fr.normalizeUnit)}}):this}reconfigure({locale:m,numberingSystem:d,conversionAccuracy:v,matrix:D}={}){return no(this,{loc:this.loc.clone({locale:m,numberingSystem:d}),matrix:D,conversionAccuracy:v})}as(m){return this.isValid?this.shiftTo(m).get(m):NaN}normalize(){if(!this.isValid)return this;const m=this.toObject();return es(this.matrix,m),no(this,{values:m},!0)}rescale(){return this.isValid?no(this,{values:function Po(_){const m={};for(const[d,v]of Object.entries(_))0!==v&&(m[d]=v);return m}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...m){if(!this.isValid)return this;if(0===m.length)return this;m=m.map(ne=>Fr.normalizeUnit(ne));const d={},v={},D=this.toObject();let W;for(const ne of Ar)if(m.indexOf(ne)>=0){W=ne;let we=0;for(const yt in v)we+=this.matrix[yt][ne]*v[yt],v[yt]=0;Ki(D[ne])&&(we+=D[ne]);const Ye=Math.trunc(we);d[ne]=Ye,v[ne]=(1e3*we-1e3*Ye)/1e3}else Ki(D[ne])&&(v[ne]=D[ne]);for(const ne in v)0!==v[ne]&&(d[W]+=ne===W?v[ne]:v[ne]/this.matrix[W][ne]);return es(this.matrix,d),no(this,{values:d},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const m={};for(const d of Object.keys(this.values))m[d]=0===this.values[d]?0:-this.values[d];return no(this,{values:m},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(m){if(!this.isValid||!m.isValid||!this.loc.equals(m.loc))return!1;function d(v,D){return void 0===v||0===v?void 0===D||0===D:v===D}for(const v of Ar)if(!d(this.values[v],m.values[v]))return!1;return!0}}const mo="Invalid Interval";class Rr{constructor(m){this.s=m.start,this.e=m.end,this.invalid=m.invalid||null,this.isLuxonInterval=!0}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the Interval is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new bt(v);return new Rr({invalid:v})}static fromDateTimes(m,d){const v=el(m),D=el(d),W=function Is(_,m){return _&&_.isValid?m&&m.isValid?m<_?Rr.invalid("end before start",`The end of an interval must be after its start, but you had start=${_.toISO()} and end=${m.toISO()}`):null:Rr.invalid("missing or invalid end"):Rr.invalid("missing or invalid start")}(v,D);return W??new Rr({start:v,end:D})}static after(m,d){const v=Fr.fromDurationLike(d),D=el(m);return Rr.fromDateTimes(D,D.plus(v))}static before(m,d){const v=Fr.fromDurationLike(d),D=el(m);return Rr.fromDateTimes(D.minus(v),D)}static fromISO(m,d){const[v,D]=(m||"").split("/",2);if(v&&D){let W,ne,we,Ye;try{W=Lr.fromISO(v,d),ne=W.isValid}catch{ne=!1}try{we=Lr.fromISO(D,d),Ye=we.isValid}catch{Ye=!1}if(ne&&Ye)return Rr.fromDateTimes(W,we);if(ne){const yt=Fr.fromISO(D,d);if(yt.isValid)return Rr.after(W,yt)}else if(Ye){const yt=Fr.fromISO(v,d);if(yt.isValid)return Rr.before(we,yt)}}return Rr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static isInterval(m){return m&&m.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(m="milliseconds"){return this.isValid?this.toDuration(m).get(m):NaN}count(m="milliseconds",d){if(!this.isValid)return NaN;const v=this.start.startOf(m,d);let D;return D=d?.useLocaleWeeks?this.end.reconfigure({locale:v.locale}):this.end,D=D.startOf(m,d),Math.floor(D.diff(v,m).get(m))+(D.valueOf()!==this.end.valueOf())}hasSame(m){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,m))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(m){return!!this.isValid&&this.s>m}isBefore(m){return!!this.isValid&&this.e<=m}contains(m){return!!this.isValid&&this.s<=m&&this.e>m}set({start:m,end:d}={}){return this.isValid?Rr.fromDateTimes(m||this.s,d||this.e):this}splitAt(...m){if(!this.isValid)return[];const d=m.map(el).filter(ne=>this.contains(ne)).sort((ne,we)=>ne.toMillis()-we.toMillis()),v=[];let{s:D}=this,W=0;for(;D<this.e;){const ne=d[W]||this.e,we=+ne>+this.e?this.e:ne;v.push(Rr.fromDateTimes(D,we)),D=we,W+=1}return v}splitBy(m){const d=Fr.fromDurationLike(m);if(!this.isValid||!d.isValid||0===d.as("milliseconds"))return[];let W,{s:v}=this,D=1;const ne=[];for(;v<this.e;){const we=this.start.plus(d.mapUnits(Ye=>Ye*D));W=+we>+this.e?this.e:we,ne.push(Rr.fromDateTimes(v,W)),v=W,D+=1}return ne}divideEqually(m){return this.isValid?this.splitBy(this.length()/m).slice(0,m):[]}overlaps(m){return this.e>m.s&&this.s<m.e}abutsStart(m){return!!this.isValid&&+this.e==+m.s}abutsEnd(m){return!!this.isValid&&+m.e==+this.s}engulfs(m){return!!this.isValid&&this.s<=m.s&&this.e>=m.e}equals(m){return!(!this.isValid||!m.isValid)&&this.s.equals(m.s)&&this.e.equals(m.e)}intersection(m){if(!this.isValid)return this;const d=this.s>m.s?this.s:m.s,v=this.e<m.e?this.e:m.e;return d>=v?null:Rr.fromDateTimes(d,v)}union(m){return this.isValid?Rr.fromDateTimes(this.s<m.s?this.s:m.s,this.e>m.e?this.e:m.e):this}static merge(m){const[d,v]=m.sort((D,W)=>D.s-W.s).reduce(([D,W],ne)=>W?W.overlaps(ne)||W.abutsStart(ne)?[D,W.union(ne)]:[D.concat([W]),ne]:[D,ne],[[],null]);return v&&d.push(v),d}static xor(m){let d=null,v=0;const D=[],W=m.map(Ye=>[{time:Ye.s,type:"s"},{time:Ye.e,type:"e"}]),we=Array.prototype.concat(...W).sort((Ye,yt)=>Ye.time-yt.time);for(const Ye of we)v+="s"===Ye.type?1:-1,1===v?d=Ye.time:(d&&+d!=+Ye.time&&D.push(Rr.fromDateTimes(d,Ye.time)),d=null);return Rr.merge(D)}difference(...m){return Rr.xor([this].concat(m)).map(d=>this.intersection(d)).filter(d=>d&&!d.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:mo}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(m=se,d={}){return this.isValid?hn.create(this.s.loc.clone(d),m).formatInterval(this):mo}toISO(m){return this.isValid?`${this.s.toISO(m)}/${this.e.toISO(m)}`:mo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:mo}toISOTime(m){return this.isValid?`${this.s.toISOTime(m)}/${this.e.toISOTime(m)}`:mo}toFormat(m,{separator:d=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(m)}${d}${this.e.toFormat(m)}`:mo}toDuration(m,d){return this.isValid?this.e.diff(this.s,m,d):Fr.invalid(this.invalidReason)}mapEndpoints(m){return Rr.fromDateTimes(m(this.s),m(this.e))}}class go{static hasDST(m=Oe.defaultZone){const d=Lr.now().setZone(m).set({month:12});return!m.isUniversal&&d.offset!==d.set({month:6}).offset}static isValidIANAZone(m){return cr.isValidZone(m)}static normalizeZone(m){return oi(m,Oe.defaultZone)}static getStartOfWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getWeekendDays().slice()}static months(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,v,W)).months(m)}static monthsFormat(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,v,W)).months(m,!0)}static weekdays(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null}={}){return(D||fr.create(d,v,null)).weekdays(m)}static weekdaysFormat(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null}={}){return(D||fr.create(d,v,null)).weekdays(m,!0)}static meridiems({locale:m=null}={}){return fr.create(m).meridiems()}static eras(m="short",{locale:d=null}={}){return fr.create(d,null,"gregory").eras(m)}static features(){return{relative:Sr(),localeWeek:ra()}}}function oc(_,m){const d=D=>D.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),v=d(m)-d(_);return Math.floor(Fr.fromMillis(v).as("days"))}function Di(_,m=d=>d){return{regex:_,deser:([d])=>m(function Xo(_){let m=parseInt(_,10);if(isNaN(m)){m="";for(let d=0;d<_.length;d++){const v=_.charCodeAt(d);if(-1!==_[d].search(ts.hanidec))m+=wo.indexOf(_[d]);else for(const D in ao){const[W,ne]=ao[D];v>=W&&v<=ne&&(m+=v-W)}}return parseInt(m,10)}return m}(d))}}const No=new RegExp("[ \xa0]","g");function $(_){return _.replace(/\./g,"\\.?").replace(No,"[ \xa0]")}function de(_){return _.replace(/\./g,"").replace(No," ").toLowerCase()}function q(_,m){return null===_?null:{regex:RegExp(_.map($).join("|")),deser:([d])=>_.findIndex(v=>de(d)===de(v))+m}}function _e(_,m){return{regex:_,deser:([,d,v])=>os(d,v),groups:m}}function nt(_){return{regex:_,deser:([m])=>m}}function _n(_){return _.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const Cr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Qr=null;function Wo(_,m){return Array.prototype.concat(..._.map(d=>function Fo(_,m){if(_.literal)return _;const v=Tl(hn.macroTokenToFormatOpts(_.val),m);return null==v||v.includes(void 0)?_:v}(d,m)))}class ds{constructor(m,d){if(this.locale=m,this.format=d,this.tokens=Wo(hn.parseFormat(d),m),this.units=this.tokens.map(v=>function On(_,m){const d=eo(m),v=eo(m,"{2}"),D=eo(m,"{3}"),W=eo(m,"{4}"),ne=eo(m,"{6}"),we=eo(m,"{1,2}"),Ye=eo(m,"{1,3}"),yt=eo(m,"{1,6}"),sn=eo(m,"{1,9}"),pn=eo(m,"{2,4}"),Er=eo(m,"{4,6}"),Zn=yi=>({regex:RegExp(_n(yi.val)),deser:([_o])=>_o,literal:!0}),ti=(yi=>{if(_.literal)return Zn(yi);switch(yi.val){case"G":return q(m.eras("short"),0);case"GG":return q(m.eras("long"),0);case"y":return Di(yt);case"yy":case"kk":return Di(pn,tr);case"yyyy":case"kkkk":return Di(W);case"yyyyy":return Di(Er);case"yyyyyy":return Di(ne);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Di(we);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Di(v);case"MMM":return q(m.months("short",!0),1);case"MMMM":return q(m.months("long",!0),1);case"LLL":return q(m.months("short",!1),1);case"LLLL":return q(m.months("long",!1),1);case"o":case"S":return Di(Ye);case"ooo":case"SSS":return Di(D);case"u":return nt(sn);case"uu":return nt(we);case"uuu":case"E":case"c":return Di(d);case"a":return q(m.meridiems(),0);case"EEE":return q(m.weekdays("short",!1),1);case"EEEE":return q(m.weekdays("long",!1),1);case"ccc":return q(m.weekdays("short",!0),1);case"cccc":return q(m.weekdays("long",!0),1);case"Z":case"ZZ":return _e(new RegExp(`([+-]${we.source})(?::(${v.source}))?`),2);case"ZZZ":return _e(new RegExp(`([+-]${we.source})(${v.source})?`),2);case"z":return nt(/[a-z_+-/]{1,256}?/i);case" ":return nt(/[^\S\n\r]/);default:return Zn(yi)}})(_)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return ti.token=_,ti}(v,m)),this.disqualifyingUnit=this.units.find(v=>v.invalidReason),!this.disqualifyingUnit){const[v,D]=function Li(_){return[`^${_.map(d=>d.regex).reduce((d,v)=>`${d}(${v.source})`,"")}$`,_]}(this.units);this.regex=RegExp(v,"i"),this.handlers=D}}explainFromTokens(m){if(this.isValid){const[d,v]=function Hr(_,m,d){const v=_.match(m);if(v){const D={};let W=1;for(const ne in d)if(Ns(d,ne)){const we=d[ne],Ye=we.groups?we.groups+1:1;!we.literal&&we.token&&(D[we.token.val[0]]=we.deser(v.slice(W,W+Ye))),W+=Ye}return[v,D]}return[v,{}]}(m,this.regex,this.handlers),[D,W,ne]=v?function xi(_){let v,d=null;return $r(_.z)||(d=cr.create(_.z)),$r(_.Z)||(d||(d=new Oi(_.Z)),v=_.Z),$r(_.q)||(_.M=3*(_.q-1)+1),$r(_.h)||(_.h<12&&1===_.a?_.h+=12:12===_.h&&0===_.a&&(_.h=0)),0===_.G&&_.y&&(_.y=-_.y),$r(_.u)||(_.S=qr(_.u)),[Object.keys(_).reduce((W,ne)=>{const we=(W=>{switch(W){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(ne);return we&&(W[we]=_[ne]),W},{}),d,v]}(v):[null,null,void 0];if(Ns(v,"a")&&Ns(v,"H"))throw new Fe("Can't include meridiem when specifying 24-hour format");return{input:m,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:v,result:D,zone:W,specificOffset:ne}}return{input:m,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function jo(_,m,d){return new ds(_,d).explainFromTokens(m)}function Tl(_,m){if(!_)return null;const v=hn.create(m,_).dtFormatter(function di(){return Qr||(Qr=Lr.fromMillis(1555555555555)),Qr}()),D=v.formatToParts(),W=v.resolvedOptions();return D.map(ne=>function Yr(_,m,d){const{type:v,value:D}=_;if("literal"===v){const Ye=/^\s+$/.test(D);return{literal:!Ye,val:Ye?" ":D}}let ne=v;"hour"===v&&(ne=null!=m.hour12?m.hour12?"hour12":"hour24":null!=m.hourCycle?"h11"===m.hourCycle||"h12"===m.hourCycle?"hour12":"hour24":d.hour12?"hour12":"hour24");let we=Cr[ne];if("object"==typeof we&&(we=we[m[v]]),we)return{literal:!1,val:we}}(ne,_,W))}const Da="Invalid DateTime",Xs=864e13;function Sa(_){return new pt("unsupported zone",`the zone "${_.name}" is not supported`)}function ll(_){return null===_.weekData&&(_.weekData=Jn(_.c)),_.weekData}function Ml(_){return null===_.localWeekData&&(_.localWeekData=Jn(_.c,_.loc.getMinDaysInFirstWeek(),_.loc.getStartOfWeek())),_.localWeekData}function cl(_,m){const d={ts:_.ts,zone:_.zone,c:_.c,o:_.o,loc:_.loc,invalid:_.invalid};return new Lr({...d,...m,old:d})}function la(_,m,d){let v=_-60*m*1e3;const D=d.offset(v);if(m===D)return[v,m];v-=60*(D-m)*1e3;const W=d.offset(v);return D===W?[v,D]:[_-60*Math.min(D,W)*1e3,Math.max(D,W)]}function Yl(_,m){const d=new Date(_+=60*m*1e3);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function Pc(_,m,d){return la(ws(_),m,d)}function fd(_,m){const d=_.o,v=_.c.year+Math.trunc(m.years),D=_.c.month+Math.trunc(m.months)+3*Math.trunc(m.quarters),W={..._.c,year:v,month:D,day:Math.min(_.c.day,Wi(v,D))+Math.trunc(m.days)+7*Math.trunc(m.weeks)},ne=Fr.fromObject({years:m.years-Math.trunc(m.years),quarters:m.quarters-Math.trunc(m.quarters),months:m.months-Math.trunc(m.months),weeks:m.weeks-Math.trunc(m.weeks),days:m.days-Math.trunc(m.days),hours:m.hours,minutes:m.minutes,seconds:m.seconds,milliseconds:m.milliseconds}).as("milliseconds"),we=ws(W);let[Ye,yt]=la(we,d,_.zone);return 0!==ne&&(Ye+=ne,yt=_.zone.offset(Ye)),{ts:Ye,o:yt}}function sc(_,m,d,v,D,W){const{setZone:ne,zone:we}=d;if(_&&0!==Object.keys(_).length||m){const Ye=m||we,yt=Lr.fromObject(_,{...d,zone:Ye,specificOffset:W});return ne?yt:yt.setZone(we)}return Lr.invalid(new pt("unparsable",`the input "${D}" can't be parsed as ${v}`))}function To(_,m,d=!0){return _.isValid?hn.create(fr.create("en-US"),{allowZ:d,forceSimple:!0}).formatDateTimeFromString(_,m):null}function qa(_,m){const d=_.c.year>9999||_.c.year<0;let v="";return d&&_.c.year>=0&&(v+="+"),v+=Ni(_.c.year,d?6:4),m?(v+="-",v+=Ni(_.c.month),v+="-",v+=Ni(_.c.day)):(v+=Ni(_.c.month),v+=Ni(_.c.day)),v}function Ja(_,m,d,v,D,W){let ne=Ni(_.c.hour);return m?(ne+=":",ne+=Ni(_.c.minute),(0!==_.c.millisecond||0!==_.c.second||!d)&&(ne+=":")):ne+=Ni(_.c.minute),(0!==_.c.millisecond||0!==_.c.second||!d)&&(ne+=Ni(_.c.second),(0!==_.c.millisecond||!v)&&(ne+=".",ne+=Ni(_.c.millisecond,3))),D&&(_.isOffsetFixed&&0===_.offset&&!W?ne+="Z":_.o<0?(ne+="-",ne+=Ni(Math.trunc(-_.o/60)),ne+=":",ne+=Ni(Math.trunc(-_.o%60))):(ne+="+",ne+=Ni(Math.trunc(_.o/60)),ne+=":",ne+=Ni(Math.trunc(_.o%60)))),W&&(ne+="["+_.zone.ianaName+"]"),ne}const Ys={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},zo={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ql={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Os=["year","month","day","hour","minute","second","millisecond"],Qs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],bc=["year","ordinal","hour","minute","second","millisecond"];function pd(_){switch(_.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function nh(_){const m={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[_.toLowerCase()];if(!m)throw new Ft(_);return m}(_)}}function su(_,m){const d=oi(m.zone,Oe.defaultZone);if(!d.isValid)return Lr.invalid(Sa(d));const v=fr.fromObject(m);let D,W;if($r(_.year))D=Oe.now();else{for(const Ye of Os)$r(_[Ye])&&(_[Ye]=Ys[Ye]);const ne=ai(_)||yo(_);if(ne)return Lr.invalid(ne);const we=function ou(_){return ul[_]||(void 0===ca&&(ca=Oe.now()),ul[_]=_.offset(ca)),ul[_]}(d);[D,W]=Pc(_,we,d)}return new Lr({ts:D,zone:d,loc:v,o:W})}function Fc(_,m,d){const v=!!$r(d.round)||d.round,D=(ne,we)=>(ne=rs(ne,v||d.calendary?0:2,!0),m.loc.clone(d).relFormatter(d).format(ne,we)),W=ne=>d.calendary?m.hasSame(_,ne)?0:m.startOf(ne).diff(_.startOf(ne),ne).get(ne):m.diff(_,ne).get(ne);if(d.unit)return D(W(d.unit),d.unit);for(const ne of d.units){const we=W(ne);if(Math.abs(we)>=1)return D(we,ne)}return D(_>m?-0:0,d.units[d.units.length-1])}function wc(_){let d,m={};return _.length>0&&"object"==typeof _[_.length-1]?(m=_[_.length-1],d=Array.from(_).slice(0,_.length-1)):d=Array.from(_),[m,d]}let ca,ul={};class Lr{constructor(m){const d=m.zone||Oe.defaultZone;let v=m.invalid||(Number.isNaN(m.ts)?new pt("invalid input"):null)||(d.isValid?null:Sa(d));this.ts=$r(m.ts)?Oe.now():m.ts;let D=null,W=null;if(!v)if(m.old&&m.old.ts===this.ts&&m.old.zone.equals(d))[D,W]=[m.old.c,m.old.o];else{const we=Ki(m.o)&&!m.old?m.o:d.offset(this.ts);D=Yl(this.ts,we),v=Number.isNaN(D.year)?new pt("invalid input"):null,D=v?null:D,W=v?null:we}this._zone=d,this.loc=m.loc||fr.create(),this.invalid=v,this.weekData=null,this.localWeekData=null,this.c=D,this.o=W,this.isLuxonDateTime=!0}static now(){return new Lr({})}static local(){const[m,d]=wc(arguments),[v,D,W,ne,we,Ye,yt]=d;return su({year:v,month:D,day:W,hour:ne,minute:we,second:Ye,millisecond:yt},m)}static utc(){const[m,d]=wc(arguments),[v,D,W,ne,we,Ye,yt]=d;return m.zone=Oi.utcInstance,su({year:v,month:D,day:W,hour:ne,minute:we,second:Ye,millisecond:yt},m)}static fromJSDate(m,d={}){const v=function na(_){return"[object Date]"===Object.prototype.toString.call(_)}(m)?m.valueOf():NaN;if(Number.isNaN(v))return Lr.invalid("invalid input");const D=oi(d.zone,Oe.defaultZone);return D.isValid?new Lr({ts:v,zone:D,loc:fr.fromObject(d)}):Lr.invalid(Sa(D))}static fromMillis(m,d={}){if(Ki(m))return m<-Xs||m>Xs?Lr.invalid("Timestamp out of range"):new Lr({ts:m,zone:oi(d.zone,Oe.defaultZone),loc:fr.fromObject(d)});throw new Ke(`fromMillis requires a numerical input, but received a ${typeof m} with value ${m}`)}static fromSeconds(m,d={}){if(Ki(m))return new Lr({ts:1e3*m,zone:oi(d.zone,Oe.defaultZone),loc:fr.fromObject(d)});throw new Ke("fromSeconds requires a numerical input")}static fromObject(m,d={}){m=m||{};const v=oi(d.zone,Oe.defaultZone);if(!v.isValid)return Lr.invalid(Sa(v));const D=fr.fromObject(d),W=Ps(m,pd),{minDaysInFirstWeek:ne,startOfWeek:we}=bi(W,D),Ye=Oe.now(),yt=$r(d.specificOffset)?v.offset(Ye):d.specificOffset,sn=!$r(W.ordinal),pn=!$r(W.year),Er=!$r(W.month)||!$r(W.day),Zn=pn||Er,vr=W.weekYear||W.weekNumber;if((Zn||sn)&&vr)throw new Fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Er&&sn)throw new Fe("Can't mix ordinal dates with month/day");const ti=vr||W.weekday&&!Zn;let yi,_o,so=Yl(Ye,yt);ti?(yi=Qs,_o=zo,so=Jn(so,ne,we)):sn?(yi=bc,_o=Ql,so=kr(so)):(yi=Os,_o=Ys);let fa=!1;for(const ec of yi)$r(W[ec])?W[ec]=fa?_o[ec]:so[ec]:fa=!0;const qs=ti?function si(_,m=4,d=1){const v=ls(_.weekYear),D=Gi(_.weekNumber,1,va(_.weekYear,m,d)),W=Gi(_.weekday,1,7);return v?D?!W&&un("weekday",_.weekday):un("week",_.weekNumber):un("weekYear",_.weekYear)}(W,ne,we):sn?function gr(_){const m=ls(_.year),d=Gi(_.ordinal,1,to(_.year));return m?!d&&un("ordinal",_.ordinal):un("year",_.year)}(W):ai(W),ku=qs||yo(W);if(ku)return Lr.invalid(ku);const yl=ti?sr(W,ne,we):sn?mr(W):W,[pa,Ka]=Pc(yl,yt,v),Vl=new Lr({ts:pa,zone:v,o:Ka,loc:D});return W.weekday&&Zn&&m.weekday!==Vl.weekday?Lr.invalid("mismatched weekday",`you can't specify both a weekday of ${W.weekday} and a date of ${Vl.toISO()}`):Vl.isValid?Vl:Lr.invalid(Vl.invalid)}static fromISO(m,d={}){const[v,D]=function Dl(_){return zi(_,[Ba,Ua],[_c,zl],[Pu,wa],[ic,Za])}(m);return sc(v,D,d,"ISO 8601",m)}static fromRFC2822(m,d={}){const[v,D]=function Ro(_){return zi(function Fa(_){return _.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(_),[cs,Fs])}(m);return sc(v,D,d,"RFC 2822",m)}static fromHTTP(m,d={}){const[v,D]=function uo(_){return zi(_,[Lo,Cl],[Qa,Cl],[xl,sa])}(m);return sc(v,D,d,"HTTP",d)}static fromFormat(m,d,v={}){if($r(m)||$r(d))throw new Ke("fromFormat requires an input string and a format");const{locale:D=null,numberingSystem:W=null}=v,ne=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),[we,Ye,yt,sn]=function ks(_,m,d){const{result:v,zone:D,specificOffset:W,invalidReason:ne}=jo(_,m,d);return[v,D,W,ne]}(ne,m,d);return sn?Lr.invalid(sn):sc(we,Ye,v,`format ${d}`,m,yt)}static fromString(m,d,v={}){return Lr.fromFormat(m,d,v)}static fromSQL(m,d={}){const[v,D]=function Gl(_){return zi(_,[yc,Ua],[al,Sl])}(m);return sc(v,D,d,"SQL",m)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the DateTime is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new Qe(v);return new Lr({invalid:v})}static isDateTime(m){return m&&m.isLuxonDateTime||!1}static parseFormatForOpts(m,d={}){const v=Tl(m,fr.fromObject(d));return v?v.map(D=>D?D.val:null).join(""):null}static expandFormat(m,d={}){return Wo(hn.parseFormat(m),fr.fromObject(d)).map(D=>D.val).join("")}static resetCache(){ca=void 0,ul={}}get(m){return this[m]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ll(this).weekYear:NaN}get weekNumber(){return this.isValid?ll(this).weekNumber:NaN}get weekday(){return this.isValid?ll(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ml(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ml(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ml(this).weekYear:NaN}get ordinal(){return this.isValid?kr(this.c).ordinal:NaN}get monthShort(){return this.isValid?go.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?go.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?go.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?go.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const m=864e5,d=6e4,v=ws(this.c),D=this.zone.offset(v-m),W=this.zone.offset(v+m),ne=this.zone.offset(v-D*d),we=this.zone.offset(v-W*d);if(ne===we)return[this];const Ye=v-ne*d,yt=v-we*d,sn=Yl(Ye,ne),pn=Yl(yt,we);return sn.hour===pn.hour&&sn.minute===pn.minute&&sn.second===pn.second&&sn.millisecond===pn.millisecond?[cl(this,{ts:Ye}),cl(this,{ts:yt})]:[this]}get isInLeapYear(){return is(this.year)}get daysInMonth(){return Wi(this.year,this.month)}get daysInYear(){return this.isValid?to(this.year):NaN}get weeksInWeekYear(){return this.isValid?va(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?va(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(m={}){const{locale:d,numberingSystem:v,calendar:D}=hn.create(this.loc.clone(m),m).resolvedOptions(this);return{locale:d,numberingSystem:v,outputCalendar:D}}toUTC(m=0,d={}){return this.setZone(Oi.instance(m),d)}toLocal(){return this.setZone(Oe.defaultZone)}setZone(m,{keepLocalTime:d=!1,keepCalendarTime:v=!1}={}){if((m=oi(m,Oe.defaultZone)).equals(this.zone))return this;if(m.isValid){let D=this.ts;if(d||v){const W=m.offset(this.ts),ne=this.toObject();[D]=Pc(ne,W,m)}return cl(this,{ts:D,zone:m})}return Lr.invalid(Sa(m))}reconfigure({locale:m,numberingSystem:d,outputCalendar:v}={}){return cl(this,{loc:this.loc.clone({locale:m,numberingSystem:d,outputCalendar:v})})}setLocale(m){return this.reconfigure({locale:m})}set(m){if(!this.isValid)return this;const d=Ps(m,pd),{minDaysInFirstWeek:v,startOfWeek:D}=bi(d,this.loc),W=!$r(d.weekYear)||!$r(d.weekNumber)||!$r(d.weekday),ne=!$r(d.ordinal),we=!$r(d.year),Ye=!$r(d.month)||!$r(d.day);if((we||Ye||ne)&&(d.weekYear||d.weekNumber))throw new Fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ye&&ne)throw new Fe("Can't mix ordinal dates with month/day");let pn;W?pn=sr({...Jn(this.c,v,D),...d},v,D):$r(d.ordinal)?(pn={...this.toObject(),...d},$r(d.day)&&(pn.day=Math.min(Wi(pn.year,pn.month),pn.day))):pn=mr({...kr(this.c),...d});const[Er,Zn]=Pc(pn,this.o,this.zone);return cl(this,{ts:Er,o:Zn})}plus(m){return this.isValid?cl(this,fd(this,Fr.fromDurationLike(m))):this}minus(m){return this.isValid?cl(this,fd(this,Fr.fromDurationLike(m).negate())):this}startOf(m,{useLocaleWeeks:d=!1}={}){if(!this.isValid)return this;const v={},D=Fr.normalizeUnit(m);switch(D){case"years":v.month=1;case"quarters":case"months":v.day=1;case"weeks":case"days":v.hour=0;case"hours":v.minute=0;case"minutes":v.second=0;case"seconds":v.millisecond=0}if("weeks"===D)if(d){const W=this.loc.getStartOfWeek(),{weekday:ne}=this;ne<W&&(v.weekNumber=this.weekNumber-1),v.weekday=W}else v.weekday=1;if("quarters"===D){const W=Math.ceil(this.month/3);v.month=3*(W-1)+1}return this.set(v)}endOf(m,d){return this.isValid?this.plus({[m]:1}).startOf(m,d).minus(1):this}toFormat(m,d={}){return this.isValid?hn.create(this.loc.redefaultToEN(d)).formatDateTimeFromString(this,m):Da}toLocaleString(m=se,d={}){return this.isValid?hn.create(this.loc.clone(d),m).formatDateTime(this):Da}toLocaleParts(m={}){return this.isValid?hn.create(this.loc.clone(m),m).formatDateTimeParts(this):[]}toISO({format:m="extended",suppressSeconds:d=!1,suppressMilliseconds:v=!1,includeOffset:D=!0,extendedZone:W=!1}={}){if(!this.isValid)return null;const ne="extended"===m;let we=qa(this,ne);return we+="T",we+=Ja(this,ne,d,v,D,W),we}toISODate({format:m="extended"}={}){return this.isValid?qa(this,"extended"===m):null}toISOWeekDate(){return To(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:m=!1,suppressSeconds:d=!1,includeOffset:v=!0,includePrefix:D=!1,extendedZone:W=!1,format:ne="extended"}={}){return this.isValid?(D?"T":"")+Ja(this,"extended"===ne,d,m,v,W):null}toRFC2822(){return To(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return To(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?qa(this,!0):null}toSQLTime({includeOffset:m=!0,includeZone:d=!1,includeOffsetSpace:v=!0}={}){let D="HH:mm:ss.SSS";return(d||m)&&(v&&(D+=" "),d?D+="z":m&&(D+="ZZ")),To(this,D,!0)}toSQL(m={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(m)}`:null}toString(){return this.isValid?this.toISO():Da}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(m={}){if(!this.isValid)return{};const d={...this.c};return m.includeConfig&&(d.outputCalendar=this.outputCalendar,d.numberingSystem=this.loc.numberingSystem,d.locale=this.loc.locale),d}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(m,d="milliseconds",v={}){if(!this.isValid||!m.isValid)return Fr.invalid("created by diffing an invalid DateTime");const D={locale:this.locale,numberingSystem:this.numberingSystem,...v},W=function ga(_){return Array.isArray(_)?_:[_]}(d).map(Fr.normalizeUnit),ne=m.valueOf()>this.valueOf(),yt=function ro(_,m,d,v){let[D,W,ne,we]=function $a(_,m,d){const v=[["years",(Ye,yt)=>yt.year-Ye.year],["quarters",(Ye,yt)=>yt.quarter-Ye.quarter+4*(yt.year-Ye.year)],["months",(Ye,yt)=>yt.month-Ye.month+12*(yt.year-Ye.year)],["weeks",(Ye,yt)=>{const sn=oc(Ye,yt);return(sn-sn%7)/7}],["days",oc]],D={},W=_;let ne,we;for(const[Ye,yt]of v)d.indexOf(Ye)>=0&&(ne=Ye,D[Ye]=yt(_,m),we=W.plus(D),we>m?(D[Ye]--,(_=W.plus(D))>m&&(we=_,D[Ye]--,_=W.plus(D))):_=we);return[_,D,we,ne]}(_,m,d);const Ye=m-D,yt=d.filter(pn=>["hours","minutes","seconds","milliseconds"].indexOf(pn)>=0);0===yt.length&&(ne<m&&(ne=D.plus({[we]:1})),ne!==D&&(W[we]=(W[we]||0)+Ye/(ne-D)));const sn=Fr.fromObject(W,v);return yt.length>0?Fr.fromMillis(Ye,v).shiftTo(...yt).plus(sn):sn}(ne?this:m,ne?m:this,W,D);return ne?yt.negate():yt}diffNow(m="milliseconds",d={}){return this.diff(Lr.now(),m,d)}until(m){return this.isValid?Rr.fromDateTimes(this,m):this}hasSame(m,d,v){if(!this.isValid)return!1;const D=m.valueOf(),W=this.setZone(m.zone,{keepLocalTime:!0});return W.startOf(d,v)<=D&&D<=W.endOf(d,v)}equals(m){return this.isValid&&m.isValid&&this.valueOf()===m.valueOf()&&this.zone.equals(m.zone)&&this.loc.equals(m.loc)}toRelative(m={}){if(!this.isValid)return null;const d=m.base||Lr.fromObject({},{zone:this.zone}),v=m.padding?this<d?-m.padding:m.padding:0;let D=["years","months","days","hours","minutes","seconds"],W=m.unit;return Array.isArray(m.unit)&&(D=m.unit,W=void 0),Fc(d,this.plus(v),{...m,numeric:"always",units:D,unit:W})}toRelativeCalendar(m={}){return this.isValid?Fc(m.base||Lr.fromObject({},{zone:this.zone}),this,{...m,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...m){if(!m.every(Lr.isDateTime))throw new Ke("min requires all arguments be DateTimes");return Eo(m,d=>d.valueOf(),Math.min)}static max(...m){if(!m.every(Lr.isDateTime))throw new Ke("max requires all arguments be DateTimes");return Eo(m,d=>d.valueOf(),Math.max)}static fromFormatExplain(m,d,v={}){const{locale:D=null,numberingSystem:W=null}=v;return jo(fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),m,d)}static fromStringExplain(m,d,v={}){return Lr.fromFormatExplain(m,d,v)}static buildFormatParser(m,d={}){const{locale:v=null,numberingSystem:D=null}=d,W=fr.fromOpts({locale:v,numberingSystem:D,defaultToEN:!0});return new ds(W,m)}static fromFormatParser(m,d,v={}){if($r(m)||$r(d))throw new Ke("fromFormatParser requires an input string and a format parser");const{locale:D=null,numberingSystem:W=null}=v,ne=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0});if(!ne.equals(d.locale))throw new Ke(`fromFormatParser called with a locale of ${ne}, but the format parser was created for ${d.locale}`);const{result:we,zone:Ye,specificOffset:yt,invalidReason:sn}=d.explainFromTokens(m);return sn?Lr.invalid(sn):sc(we,Ye,v,`format ${d.format}`,m,yt)}static get DATE_SHORT(){return se}static get DATE_MED(){return Ze}static get DATE_MED_WITH_WEEKDAY(){return Rt}static get DATE_FULL(){return Jt}static get DATE_HUGE(){return fn}static get TIME_SIMPLE(){return Gn}static get TIME_WITH_SECONDS(){return Nt}static get TIME_WITH_SHORT_OFFSET(){return Qt}static get TIME_WITH_LONG_OFFSET(){return an}static get TIME_24_SIMPLE(){return Xn}static get TIME_24_WITH_SECONDS(){return En}static get TIME_24_WITH_SHORT_OFFSET(){return Gt}static get TIME_24_WITH_LONG_OFFSET(){return At}static get DATETIME_SHORT(){return Kt}static get DATETIME_SHORT_WITH_SECONDS(){return xn}static get DATETIME_MED(){return Yn}static get DATETIME_MED_WITH_SECONDS(){return tt}static get DATETIME_MED_WITH_WEEKDAY(){return ke}static get DATETIME_FULL(){return B}static get DATETIME_FULL_WITH_SECONDS(){return k}static get DATETIME_HUGE(){return j}static get DATETIME_HUGE_WITH_SECONDS(){return De}}function el(_){if(Lr.isDateTime(_))return _;if(_&&_.valueOf&&Ki(_.valueOf()))return Lr.fromJSDate(_);if(_&&"object"==typeof _)return Lr.fromObject(_);throw new Ke(`Unknown datetime argument: ${_}, of type ${typeof _}`)}const ua=new c.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function dl(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let Aa=(()=>{class _ extends Xt.MJ{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();const d=(0,c.WQX)(Xt.Ju,{optional:!0}),v=(0,c.WQX)(ua,{optional:!0});this._useUTC=!!v?.useUtc,this._firstDayOfWeek=v?.firstDayOfWeek||0,this._defaultOutputCalendar=v?.defaultOutputCalendar||"gregory",this.setLocale(d||Lr.local().locale)}getYear(d){return d.year}getMonth(d){return d.month-1}getDate(d){return d.day}getDayOfWeek(d){return d.weekday}getMonthNames(d){return go.months(d,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const d=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function Fu(_,m){const d=Array(_);for(let v=0;v<_;v++)d[v]=m(v);return d}(31,v=>d.format(Lr.utc(2017,1,v+1).toJSDate()))}getDayOfWeekNames(d){const v=go.weekdays(d,{locale:this.locale});return v.unshift(v.pop()),v}getYearName(d){return d.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(d){return d.daysInMonth}clone(d){return Lr.fromObject(d.toObject(),this._getOptions())}createDate(d,v,D){const W=this._getOptions();if(v<0||v>11)throw Error(`Invalid month index "${v}". Month index has to be between 0 and 11.`);if(D<1)throw Error(`Invalid date "${D}". Date has to be greater than 0.`);const ne=this._useUTC?Lr.utc(d,v+1,D,W):Lr.local(d,v+1,D,W);if(!this.isValid(ne))throw Error(`Invalid date "${D}". Reason: "${ne.invalidReason}".`);return ne}today(){const d=this._getOptions();return this._useUTC?Lr.utc(d):Lr.local(d)}parse(d,v){const D=this._getOptions();if("string"==typeof d&&d.length>0){const W=Lr.fromISO(d,D);if(this.isValid(W))return W;const ne=Array.isArray(v)?v:[v];if(!v.length)throw Error("Formats array must not be empty.");for(const we of ne){const Ye=Lr.fromFormat(d,we,D);if(this.isValid(Ye))return Ye}return this.invalid()}return"number"==typeof d?Lr.fromMillis(d,D):d instanceof Date?Lr.fromJSDate(d,D):d instanceof Lr?Lr.fromMillis(d.toMillis(),D):null}format(d,v){if(!this.isValid(d))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?d.setLocale(this.locale).setZone("utc").toFormat(v):d.setLocale(this.locale).toFormat(v)}addCalendarYears(d,v){return d.reconfigure(this._getOptions()).plus({years:v})}addCalendarMonths(d,v){return d.reconfigure(this._getOptions()).plus({months:v})}addCalendarDays(d,v){return d.reconfigure(this._getOptions()).plus({days:v})}toIso8601(d){return d.toISO()}deserialize(d){const v=this._getOptions();let D;if(d instanceof Date&&(D=Lr.fromJSDate(d,v)),"string"==typeof d){if(!d)return null;D=Lr.fromISO(d,v)}return D&&this.isValid(D)?D:super.deserialize(d)}isDateInstance(d){return d instanceof Lr}isValid(d){return d.isValid}invalid(){return Lr.invalid("Invalid Luxon DateTime object.")}setTime(d,v,D,W){return this.clone(d).set({hour:v,minute:D,second:W,millisecond:0})}getHours(d){return d.hour}getMinutes(d){return d.minute}getSeconds(d){return d.second}parseTime(d,v){const D=this.parse(d,v);return(!D||!this.isValid(D))&&"string"==typeof d&&this.parse(d.replace(/[^0-9:(AM|PM)]/gi,""),v)||D}addSeconds(d,v){return d.reconfigure(this._getOptions()).plus({seconds:v})}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();var Tr=r(9969);function Uc(_){return new c.wOt(3e3,!1)}function Il(_){switch(_.length){case 0:return new Tr.sf;case 1:return _[0];default:return new Tr.ui(_)}}function kl(_,m,d=new Map,v=new Map){const D=[],W=[];let ne=-1,we=null;if(m.forEach(Ye=>{const yt=Ye.get("offset"),sn=yt==ne,pn=sn&&we||new Map;Ye.forEach((Er,Zn)=>{let vr=Zn,ti=Er;if("offset"!==Zn)switch(vr=_.normalizePropertyName(vr,D),ti){case Tr.FX:ti=d.get(Zn);break;case Tr.kp:ti=v.get(Zn);break;default:ti=_.normalizeStyleValue(Zn,vr,ti,D)}pn.set(vr,ti)}),sn||W.push(pn),we=pn,ne=yt}),D.length)throw function uf(){return new c.wOt(3502,!1)}();return W}function hs(_,m,d,v){switch(m){case"start":_.onStart(()=>v(d&&lc(d,"start",_)));break;case"done":_.onDone(()=>v(d&&lc(d,"done",_)));break;case"destroy":_.onDestroy(()=>v(d&&lc(d,"destroy",_)))}}function lc(_,m,d){const W=$c(_.element,_.triggerName,_.fromState,_.toState,m||_.phaseName,d.totalTime??_.totalTime,!!d.disabled),ne=_._data;return null!=ne&&(W._data=ne),W}function $c(_,m,d,v,D="",W=0,ne){return{element:_,triggerName:m,fromState:d,toState:v,phaseName:D,totalTime:W,disabled:!!ne}}function Ta(_,m,d){let v=_.get(m);return v||_.set(m,v=d),v}function ff(_){const m=_.indexOf(":");return[_.substring(1,m),_.slice(m+1)]}const Ip=typeof document>"u"?null:document.documentElement;function ju(_){const m=_.parentNode||_.host||null;return m===Ip?null:m}let Zs=null,Us=!1;function R(_,m){for(;m;){if(m===_)return!0;m=ju(m)}return!1}function U(_,m,d){if(d)return Array.from(_.querySelectorAll(m));const v=_.querySelector(m);return v?[v]:[]}let oe=(()=>{class _{validateStyleProperty(d){return function Ol(_){Zs||(Zs=function Va(){return typeof document<"u"?document.body:null}()||{},Us=!!Zs.style&&"WebkitAppearance"in Zs.style);let m=!0;return Zs.style&&!function gd(_){return"ebkit"==_.substring(1,6)}(_)&&(m=_ in Zs.style,!m&&Us&&(m="Webkit"+_.charAt(0).toUpperCase()+_.slice(1)in Zs.style)),m}(d)}containsElement(d,v){return R(d,v)}getParentElement(d){return ju(d)}query(d,v,D){return U(d,v,D)}computeStyle(d,v,D){return D||""}animate(d,v,D,W,ne,we=[],Ye){return new Tr.sf(D,W)}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();class Ae{static NOOP=new oe}class Be{}const An="ng-enter",Zt="ng-leave",Kn="ng-trigger",Wn=".ng-trigger",nr="ng-animating",Mn=".ng-animating";function jn(_){if("number"==typeof _)return _;const m=_.match(/^(-?[\.\d]+)(m?s)/);return!m||m.length<2?0:Qn(parseFloat(m[1]),m[2])}function Qn(_,m){return"s"===m?1e3*_:_}function ir(_,m,d){return _.hasOwnProperty("duration")?_:function Vn(_,m,d){let D,W=0,ne="";if("string"==typeof _){const we=_.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===we)return m.push(Uc()),{duration:0,delay:0,easing:""};D=Qn(parseFloat(we[1]),we[2]);const Ye=we[3];null!=Ye&&(W=Qn(parseFloat(Ye),we[4]));const yt=we[5];yt&&(ne=yt)}else D=_;if(!d){let we=!1,Ye=m.length;D<0&&(m.push(function L(){return new c.wOt(3100,!1)}()),we=!0),W<0&&(m.push(function K(){return new c.wOt(3101,!1)}()),we=!0),we&&m.splice(Ye,0,Uc())}return{duration:D,delay:W,easing:ne}}(_,m,d)}function Ir(_,m,d){m.forEach((v,D)=>{const W=Cs(D);d&&!d.has(D)&&d.set(D,_.style[W]),_.style[W]=v})}function zr(_,m){m.forEach((d,v)=>{const D=Cs(v);_.style[D]=""})}function Ur(_){return Array.isArray(_)?1==_.length?_[0]:(0,Tr.K2)(_):_}const Qi=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mi(_){let m=[];if("string"==typeof _){let d;for(;d=Qi.exec(_);)m.push(d[1]);Qi.lastIndex=0}return m}function Zi(_,m,d){const v=`${_}`,D=v.replace(Qi,(W,ne)=>{let we=m[ne];return null==we&&(d.push(function X(){return new c.wOt(3003,!1)}()),we=""),we.toString()});return D==v?_:D}const Bo=/-+([a-z0-9])/g;function Cs(_){return _.replace(Bo,(...m)=>m[1].toUpperCase())}function $i(_,m,d){switch(m.type){case Tr.If.Trigger:return _.visitTrigger(m,d);case Tr.If.State:return _.visitState(m,d);case Tr.If.Transition:return _.visitTransition(m,d);case Tr.If.Sequence:return _.visitSequence(m,d);case Tr.If.Group:return _.visitGroup(m,d);case Tr.If.Animate:return _.visitAnimate(m,d);case Tr.If.Keyframes:return _.visitKeyframes(m,d);case Tr.If.Style:return _.visitStyle(m,d);case Tr.If.Reference:return _.visitReference(m,d);case Tr.If.AnimateChild:return _.visitAnimateChild(m,d);case Tr.If.AnimateRef:return _.visitAnimateRef(m,d);case Tr.If.Query:return _.visitQuery(m,d);case Tr.If.Stagger:return _.visitStagger(m,d);default:throw function he(){return new c.wOt(3004,!1)}()}}function vo(_,m){return window.getComputedStyle(_)[m]}const fs=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"]);class ps extends Be{normalizePropertyName(m,d){return Cs(m)}normalizeStyleValue(m,d,v,D){let W="";const ne=v.toString().trim();if(fs.has(d)&&0!==v&&"0"!==v)if("number"==typeof v)W="px";else{const we=v.match(/^[+-]?[\d\.]+([a-z]*)$/);we&&0==we[1].length&&D.push(function We(){return new c.wOt(3005,!1)}())}return ne+W}}const da=new Set(["true","1"]),Ha=new Set(["false","0"]);function fl(_,m){const d=da.has(_)||Ha.has(_),v=da.has(m)||Ha.has(m);return(D,W)=>{let ne="*"==_||_==D,we="*"==m||m==W;return!ne&&d&&"boolean"==typeof D&&(ne=D?da.has(_):Ha.has(_)),!we&&v&&"boolean"==typeof W&&(we=W?da.has(m):Ha.has(m)),ne&&we}}const Zl=new RegExp("s*:selfs*,?","g");function Rl(_,m,d,v){return new Hu(_).build(m,d,v)}class Hu{_driver;constructor(m){this._driver=m}build(m,d,v){const D=new _d(d);return this._resetContextStyleTimingState(D),$i(this,Ur(m),D)}_resetContextStyleTimingState(m){m.currentQuerySelector="",m.collectedStyles=new Map,m.collectedStyles.set("",new Map),m.currentTime=0}visitTrigger(m,d){let v=d.queryCount=0,D=d.depCount=0;const W=[],ne=[];return"@"==m.name.charAt(0)&&d.errors.push(function Ct(){return new c.wOt(3006,!1)}()),m.definitions.forEach(we=>{if(this._resetContextStyleTimingState(d),we.type==Tr.If.State){const Ye=we,yt=Ye.name;yt.toString().split(/\s*,\s*/).forEach(sn=>{Ye.name=sn,W.push(this.visitState(Ye,d))}),Ye.name=yt}else if(we.type==Tr.If.Transition){const Ye=this.visitTransition(we,d);v+=Ye.queryCount,D+=Ye.depCount,ne.push(Ye)}else d.errors.push(function vn(){return new c.wOt(3007,!1)}())}),{type:Tr.If.Trigger,name:m.name,states:W,transitions:ne,queryCount:v,depCount:D,options:null}}visitState(m,d){const v=this.visitStyle(m.styles,d),D=m.options&&m.options.params||null;if(v.containsDynamicStyles){const W=new Set,ne=D||{};v.styles.forEach(we=>{we instanceof Map&&we.forEach(Ye=>{Mi(Ye).forEach(yt=>{ne.hasOwnProperty(yt)||W.add(yt)})})}),W.size&&d.errors.push(function nn(){return new c.wOt(3008,!1)}(0,W.values()))}return{type:Tr.If.State,name:m.name,style:v,options:D?{params:D}:null}}visitTransition(m,d){d.queryCount=0,d.depCount=0;const v=$i(this,Ur(m.animation),d),D=function hc(_,m){const d=[];return"string"==typeof _?_.split(/\s*,\s*/).forEach(v=>function Vc(_,m,d){if(":"==_[0]){const Ye=function Hc(_,m){switch(_){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,v)=>parseFloat(v)>parseFloat(d);case":decrement":return(d,v)=>parseFloat(v)<parseFloat(d);default:return m.push(function ac(){return new c.wOt(3016,!1)}()),"* => *"}}(_,d);if("function"==typeof Ye)return void m.push(Ye);_=Ye}const v=_.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return d.push(function xc(){return new c.wOt(3015,!1)}()),m;const D=v[1],W=v[2],ne=v[3];m.push(fl(D,ne)),"<"==W[0]&&("*"!=D||"*"!=ne)&&m.push(fl(ne,D))}(v,d,m)):d.push(_),d}(m.expr,d.errors);return{type:Tr.If.Transition,matchers:D,animation:v,queryCount:d.queryCount,depCount:d.depCount,options:du(m.options)}}visitSequence(m,d){return{type:Tr.If.Sequence,steps:m.steps.map(v=>$i(this,v,d)),options:du(m.options)}}visitGroup(m,d){const v=d.currentTime;let D=0;const W=m.steps.map(ne=>{d.currentTime=v;const we=$i(this,ne,d);return D=Math.max(D,d.currentTime),we});return d.currentTime=D,{type:Tr.If.Group,steps:W,options:du(m.options)}}visitAnimate(m,d){const v=function yd(_,m){if(_.hasOwnProperty("duration"))return _;if("number"==typeof _)return hu(ir(_,m).duration,0,"");const d=_;if(d.split(/\s+/).some(W=>"{"==W.charAt(0)&&"{"==W.charAt(1))){const W=hu(0,0,"");return W.dynamic=!0,W.strValue=d,W}const D=ir(d,m);return hu(D.duration,D.delay,D.easing)}(m.timings,d.errors);d.currentAnimateTimings=v;let D,W=m.styles?m.styles:(0,Tr.iF)({});if(W.type==Tr.If.Keyframes)D=this.visitKeyframes(W,d);else{let ne=m.styles,we=!1;if(!ne){we=!0;const yt={};v.easing&&(yt.easing=v.easing),ne=(0,Tr.iF)(yt)}d.currentTime+=v.duration+v.delay;const Ye=this.visitStyle(ne,d);Ye.isEmptyStep=we,D=Ye}return d.currentAnimateTimings=null,{type:Tr.If.Animate,timings:v,style:D,options:null}}visitStyle(m,d){const v=this._makeStyleAst(m,d);return this._validateStyleAst(v,d),v}_makeStyleAst(m,d){const v=[],D=Array.isArray(m.styles)?m.styles:[m.styles];for(let we of D)"string"==typeof we?we===Tr.kp?v.push(we):d.errors.push(new c.wOt(3002,!1)):v.push(new Map(Object.entries(we)));let W=!1,ne=null;return v.forEach(we=>{if(we instanceof Map&&(we.has("easing")&&(ne=we.get("easing"),we.delete("easing")),!W))for(let Ye of we.values())if(Ye.toString().indexOf("{{")>=0){W=!0;break}}),{type:Tr.If.Style,styles:v,easing:ne,offset:m.offset,containsDynamicStyles:W,options:null}}_validateStyleAst(m,d){const v=d.currentAnimateTimings;let D=d.currentTime,W=d.currentTime;v&&W>0&&(W-=v.duration+v.delay),m.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((we,Ye)=>{const yt=d.collectedStyles.get(d.currentQuerySelector),sn=yt.get(Ye);let pn=!0;sn&&(W!=D&&W>=sn.startTime&&D<=sn.endTime&&(d.errors.push(function hi(){return new c.wOt(3010,!1)}()),pn=!1),W=sn.startTime),pn&&yt.set(Ye,{startTime:W,endTime:D}),d.options&&function Yi(_,m,d){const v=m.params||{},D=Mi(_);D.length&&D.forEach(W=>{v.hasOwnProperty(W)||d.push(function P(){return new c.wOt(3001,!1)}())})}(we,d.options,d.errors)})})}visitKeyframes(m,d){const v={type:Tr.If.Keyframes,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push(function io(){return new c.wOt(3011,!1)}()),v;let W=0;const ne=[];let we=!1,Ye=!1,yt=0;const sn=m.steps.map(_o=>{const so=this._makeStyleAst(_o,d);let fa=null!=so.offset?so.offset:function oh(_){if("string"==typeof _)return null;let m=null;if(Array.isArray(_))_.forEach(d=>{if(d instanceof Map&&d.has("offset")){const v=d;m=parseFloat(v.get("offset")),v.delete("offset")}});else if(_ instanceof Map&&_.has("offset")){const d=_;m=parseFloat(d.get("offset")),d.delete("offset")}return m}(so.styles),qs=0;return null!=fa&&(W++,qs=so.offset=fa),Ye=Ye||qs<0||qs>1,we=we||qs<yt,yt=qs,ne.push(qs),so});Ye&&d.errors.push(function as(){return new c.wOt(3012,!1)}()),we&&d.errors.push(function Ko(){return new c.wOt(3200,!1)}());const pn=m.steps.length;let Er=0;W>0&&W<pn?d.errors.push(function xs(){return new c.wOt(3202,!1)}()):0==W&&(Er=1/(pn-1));const Zn=pn-1,vr=d.currentTime,ti=d.currentAnimateTimings,yi=ti.duration;return sn.forEach((_o,so)=>{const fa=Er>0?so==Zn?1:Er*so:ne[so],qs=fa*yi;d.currentTime=vr+ti.delay+qs,ti.duration=qs,this._validateStyleAst(_o,d),_o.offset=fa,v.styles.push(_o)}),v}visitReference(m,d){return{type:Tr.If.Reference,animation:$i(this,Ur(m.animation),d),options:du(m.options)}}visitAnimateChild(m,d){return d.depCount++,{type:Tr.If.AnimateChild,options:du(m.options)}}visitAnimateRef(m,d){return{type:Tr.If.AnimateRef,animation:this.visitReference(m.animation,d),options:du(m.options)}}visitQuery(m,d){const v=d.currentQuerySelector,D=m.options||{};d.queryCount++,d.currentQuery=m;const[W,ne]=function kp(_){const m=!!_.split(/\s*,\s*/).find(d=>":self"==d);return m&&(_=_.replace(Zl,"")),_=_.replace(/@\*/g,Wn).replace(/@\w+/g,d=>Wn+"-"+d.slice(1)).replace(/:animating/g,Mn),[_,m]}(m.selector);d.currentQuerySelector=v.length?v+" "+W:W,Ta(d.collectedStyles,d.currentQuerySelector,new Map);const we=$i(this,Ur(m.animation),d);return d.currentQuery=null,d.currentQuerySelector=v,{type:Tr.If.Query,selector:W,limit:D.limit||0,optional:!!D.optional,includeSelf:ne,animation:we,originalSelector:m.selector,options:du(m.options)}}visitStagger(m,d){d.currentQuery||d.errors.push(function Wr(){return new c.wOt(3013,!1)}());const v="full"===m.timings?{duration:0,delay:0,easing:"full"}:ir(m.timings,d.errors,!0);return{type:Tr.If.Stagger,animation:$i(this,Ur(m.animation),d),timings:v,options:null}}}class _d{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(m){this.errors=m}}function du(_){return _?(_={..._}).params&&(_.params=function Sc(_){return _?{..._}:null}(_.params)):_={},_}function hu(_,m,d){return{duration:_,delay:m,easing:d}}function bd(_,m,d,v,D,W,ne=null,we=!1){return{type:1,element:_,keyframes:m,preStyleProps:d,postStyleProps:v,duration:D,delay:W,totalTime:D+W,easing:ne,subTimeline:we}}class sh{_map=new Map;get(m){return this._map.get(m)||[]}append(m,d){let v=this._map.get(m);v||this._map.set(m,v=[]),v.push(...d)}has(m){return this._map.has(m)}clear(){this._map.clear()}}const fu=new RegExp(":enter","g"),wd=new RegExp(":leave","g");function Wc(_,m,d,v,D,W=new Map,ne=new Map,we,Ye,yt=[]){return(new lh).buildKeyframes(_,m,d,v,D,W,ne,we,Ye,yt)}class lh{buildKeyframes(m,d,v,D,W,ne,we,Ye,yt,sn=[]){yt=yt||new sh;const pn=new Ed(m,d,yt,D,W,sn,[]);pn.options=Ye;const Er=Ye.delay?jn(Ye.delay):0;pn.currentTimeline.delayNextStep(Er),pn.currentTimeline.setStyles([ne],null,pn.errors,Ye),$i(this,v,pn);const Zn=pn.timelines.filter(vr=>vr.containsAnimation());if(Zn.length&&we.size){let vr;for(let ti=Zn.length-1;ti>=0;ti--){const yi=Zn[ti];if(yi.element===d){vr=yi;break}}vr&&!vr.allowOnlyTimelineStyles()&&vr.setStyles([we],null,pn.errors,Ye)}return Zn.length?Zn.map(vr=>vr.buildKeyframes()):[bd(d,[],[],[],0,Er,"",!1)]}visitTrigger(m,d){}visitState(m,d){}visitTransition(m,d){}visitAnimateChild(m,d){const v=d.subInstructions.get(d.element);if(v){const D=d.createSubContext(m.options),W=d.currentTimeline.currentTime,ne=this._visitSubInstructions(v,D,D.options);W!=ne&&d.transformIntoNewTimeline(ne)}d.previousNode=m}visitAnimateRef(m,d){const v=d.createSubContext(m.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([m.options,m.animation.options],d,v),this.visitReference(m.animation,v),d.transformIntoNewTimeline(v.currentTimeline.currentTime),d.previousNode=m}_applyAnimationRefDelays(m,d,v){for(const D of m){const W=D?.delay;if(W){const ne="number"==typeof W?W:jn(Zi(W,D?.params??{},d.errors));v.delayNextStep(ne)}}}_visitSubInstructions(m,d,v){let W=d.currentTimeline.currentTime;const ne=null!=v.duration?jn(v.duration):null,we=null!=v.delay?jn(v.delay):null;return 0!==ne&&m.forEach(Ye=>{const yt=d.appendInstructionToTimeline(Ye,ne,we);W=Math.max(W,yt.duration+yt.delay)}),W}visitReference(m,d){d.updateOptions(m.options,!0),$i(this,m.animation,d),d.previousNode=m}visitSequence(m,d){const v=d.subContextCount;let D=d;const W=m.options;if(W&&(W.params||W.delay)&&(D=d.createSubContext(W),D.transformIntoNewTimeline(),null!=W.delay)){D.previousNode.type==Tr.If.Style&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=pu);const ne=jn(W.delay);D.delayNextStep(ne)}m.steps.length&&(m.steps.forEach(ne=>$i(this,ne,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>v&&D.transformIntoNewTimeline()),d.previousNode=m}visitGroup(m,d){const v=[];let D=d.currentTimeline.currentTime;const W=m.options&&m.options.delay?jn(m.options.delay):0;m.steps.forEach(ne=>{const we=d.createSubContext(m.options);W&&we.delayNextStep(W),$i(this,ne,we),D=Math.max(D,we.currentTimeline.currentTime),v.push(we.currentTimeline)}),v.forEach(ne=>d.currentTimeline.mergeTimelineCollectedStyles(ne)),d.transformIntoNewTimeline(D),d.previousNode=m}_visitTiming(m,d){if(m.dynamic){const v=m.strValue;return ir(d.params?Zi(v,d.params,d.errors):v,d.errors)}return{duration:m.duration,delay:m.delay,easing:m.easing}}visitAnimate(m,d){const v=d.currentAnimateTimings=this._visitTiming(m.timings,d),D=d.currentTimeline;v.delay&&(d.incrementTime(v.delay),D.snapshotCurrentStyles());const W=m.style;W.type==Tr.If.Keyframes?this.visitKeyframes(W,d):(d.incrementTime(v.duration),this.visitStyle(W,d),D.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=m}visitStyle(m,d){const v=d.currentTimeline,D=d.currentAnimateTimings;!D&&v.hasCurrentStyleProperties()&&v.forwardFrame();const W=D&&D.easing||m.easing;m.isEmptyStep?v.applyEmptyStep(W):v.setStyles(m.styles,W,d.errors,d.options),d.previousNode=m}visitKeyframes(m,d){const v=d.currentAnimateTimings,D=d.currentTimeline.duration,W=v.duration,we=d.createSubContext().currentTimeline;we.easing=v.easing,m.styles.forEach(Ye=>{we.forwardTime((Ye.offset||0)*W),we.setStyles(Ye.styles,Ye.easing,d.errors,d.options),we.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(we),d.transformIntoNewTimeline(D+W),d.previousNode=m}visitQuery(m,d){const v=d.currentTimeline.currentTime,D=m.options||{},W=D.delay?jn(D.delay):0;W&&(d.previousNode.type===Tr.If.Style||0==v&&d.currentTimeline.hasCurrentStyleProperties())&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=pu);let ne=v;const we=d.invokeQuery(m.selector,m.originalSelector,m.limit,m.includeSelf,!!D.optional,d.errors);d.currentQueryTotal=we.length;let Ye=null;we.forEach((yt,sn)=>{d.currentQueryIndex=sn;const pn=d.createSubContext(m.options,yt);W&&pn.delayNextStep(W),yt===d.element&&(Ye=pn.currentTimeline),$i(this,m.animation,pn),pn.currentTimeline.applyStylesToKeyframe(),ne=Math.max(ne,pn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(ne),Ye&&(d.currentTimeline.mergeTimelineCollectedStyles(Ye),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=m}visitStagger(m,d){const v=d.parentContext,D=d.currentTimeline,W=m.timings,ne=Math.abs(W.duration),we=ne*(d.currentQueryTotal-1);let Ye=ne*d.currentQueryIndex;switch(W.duration<0?"reverse":W.easing){case"reverse":Ye=we-Ye;break;case"full":Ye=v.currentStaggerTime}const sn=d.currentTimeline;Ye&&sn.delayNextStep(Ye);const pn=sn.currentTime;$i(this,m.animation,d),d.previousNode=m,v.currentStaggerTime=D.currentTime-pn+(D.startTime-v.currentTimeline.startTime)}}const pu={};class Ed{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=pu;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(m,d,v,D,W,ne,we,Ye){this._driver=m,this.element=d,this.subInstructions=v,this._enterClassName=D,this._leaveClassName=W,this.errors=ne,this.timelines=we,this.currentTimeline=Ye||new Ac(this._driver,d,0),we.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(m,d){if(!m)return;const v=m;let D=this.options;null!=v.duration&&(D.duration=jn(v.duration)),null!=v.delay&&(D.delay=jn(v.delay));const W=v.params;if(W){let ne=D.params;ne||(ne=this.options.params={}),Object.keys(W).forEach(we=>{(!d||!ne.hasOwnProperty(we))&&(ne[we]=Zi(W[we],ne,this.errors))})}}_copyOptions(){const m={};if(this.options){const d=this.options.params;if(d){const v=m.params={};Object.keys(d).forEach(D=>{v[D]=d[D]})}}return m}createSubContext(m=null,d,v){const D=d||this.element,W=new Ed(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,v||0));return W.previousNode=this.previousNode,W.currentAnimateTimings=this.currentAnimateTimings,W.options=this._copyOptions(),W.updateOptions(m),W.currentQueryIndex=this.currentQueryIndex,W.currentQueryTotal=this.currentQueryTotal,W.parentContext=this,this.subContextCount++,W}transformIntoNewTimeline(m){return this.previousNode=pu,this.currentTimeline=this.currentTimeline.fork(this.element,m),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(m,d,v){const D={duration:d??m.duration,delay:this.currentTimeline.currentTime+(v??0)+m.delay,easing:""},W=new mf(this._driver,m.element,m.keyframes,m.preStyleProps,m.postStyleProps,D,m.stretchStartingKeyframe);return this.timelines.push(W),D}incrementTime(m){this.currentTimeline.forwardTime(this.currentTimeline.duration+m)}delayNextStep(m){m>0&&this.currentTimeline.delayNextStep(m)}invokeQuery(m,d,v,D,W,ne){let we=[];if(D&&we.push(this.element),m.length>0){m=(m=m.replace(fu,"."+this._enterClassName)).replace(wd,"."+this._leaveClassName);let yt=this._driver.query(this.element,m,1!=v);0!==v&&(yt=v<0?yt.slice(yt.length+v,yt.length):yt.slice(0,v)),we.push(...yt)}return!W&&0==we.length&&ne.push(function hl(){return new c.wOt(3014,!1)}()),we}}class Ac{_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(m,d,v,D){this._driver=m,this.element=d,this.startTime=v,this._elementTimelineStylesLookup=D,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,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(m){const d=1===this._keyframes.size&&this._pendingStyles.size;this.duration||d?(this.forwardTime(this.currentTime+m),d&&this.snapshotCurrentStyles()):this.startTime+=m}fork(m,d){return this.applyStylesToKeyframe(),new Ac(this._driver,m,d||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+=1,this._loadKeyframe()}forwardTime(m){this.applyStylesToKeyframe(),this.duration=m,this._loadKeyframe()}_updateStyle(m,d){this._localTimelineStyles.set(m,d),this._globalTimelineStyles.set(m,d),this._styleSummary.set(m,{time:this.currentTime,value:d})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(m){m&&this._previousKeyframe.set("easing",m);for(let[d,v]of this._globalTimelineStyles)this._backFill.set(d,v||Tr.kp),this._currentKeyframe.set(d,Tr.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(m,d,v,D){d&&this._previousKeyframe.set("easing",d);const W=D&&D.params||{},ne=function uh(_,m){const d=new Map;let v;return _.forEach(D=>{if("*"===D){v??=m.keys();for(let W of v)d.set(W,Tr.kp)}else for(let[W,ne]of D)d.set(W,ne)}),d}(m,this._globalTimelineStyles);for(let[we,Ye]of ne){const yt=Zi(Ye,W,v);this._pendingStyles.set(we,yt),this._localTimelineStyles.has(we)||this._backFill.set(we,this._globalTimelineStyles.get(we)??Tr.kp),this._updateStyle(we,yt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((m,d)=>{this._currentKeyframe.set(d,m)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((m,d)=>{this._currentKeyframe.has(d)||this._currentKeyframe.set(d,m)}))}snapshotCurrentStyles(){for(let[m,d]of this._localTimelineStyles)this._pendingStyles.set(m,d),this._updateStyle(m,d)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const m=[];for(let d in this._currentKeyframe)m.push(d);return m}mergeTimelineCollectedStyles(m){m._styleSummary.forEach((d,v)=>{const D=this._styleSummary.get(v);(!D||d.time>D.time)&&this._updateStyle(v,d.value)})}buildKeyframes(){this.applyStylesToKeyframe();const m=new Set,d=new Set,v=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((we,Ye)=>{const yt=new Map([...this._backFill,...we]);yt.forEach((sn,pn)=>{sn===Tr.FX?m.add(pn):sn===Tr.kp&&d.add(pn)}),v||yt.set("offset",Ye/this.duration),D.push(yt)});const W=[...m.values()],ne=[...d.values()];if(v){const we=D[0],Ye=new Map(we);we.set("offset",0),Ye.set("offset",1),D=[we,Ye]}return bd(this.element,D,W,ne,this.duration,this.startTime,this.easing,!1)}}class mf extends Ac{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(m,d,v,D,W,ne,we=!1){super(m,d,ne.delay),this.keyframes=v,this.preStyleProps=D,this.postStyleProps=W,this._stretchStartingKeyframe=we,this.timings={duration:ne.duration,delay:ne.delay,easing:ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let m=this.keyframes,{delay:d,duration:v,easing:D}=this.timings;if(this._stretchStartingKeyframe&&d){const W=[],ne=v+d,we=d/ne,Ye=new Map(m[0]);Ye.set("offset",0),W.push(Ye);const yt=new Map(m[0]);yt.set("offset",ch(we)),W.push(yt);const sn=m.length-1;for(let pn=1;pn<=sn;pn++){let Er=new Map(m[pn]);const Zn=Er.get("offset");Er.set("offset",ch((d+Zn*v)/ne)),W.push(Er)}v=ne,d=0,D="",m=W}return bd(this.element,m,this.preStyleProps,this.postStyleProps,v,d,D,!0)}}function ch(_,m=3){const d=Math.pow(10,m-1);return Math.round(_*d)/d}function mu(_,m,d,v,D,W,ne,we,Ye,yt,sn,pn,Er){return{type:0,element:_,triggerName:m,isRemovalTransition:D,fromState:d,fromStyles:W,toState:v,toStyles:ne,timelines:we,queriedElements:Ye,preStyleProps:yt,postStyleProps:sn,totalTime:pn,errors:Er}}const Ll={};class gf{_triggerName;ast;_stateStyles;constructor(m,d,v){this._triggerName=m,this.ast=d,this._stateStyles=v}match(m,d,v,D){return function vf(_,m,d,v,D){return _.some(W=>W(m,d,v,D))}(this.ast.matchers,m,d,v,D)}buildStyles(m,d,v){let D=this._stateStyles.get("*");return void 0!==m&&(D=this._stateStyles.get(m?.toString())||D),D?D.buildStyles(d,v):new Map}build(m,d,v,D,W,ne,we,Ye,yt,sn){const pn=[],Er=this.ast.options&&this.ast.options.params||Ll,vr=this.buildStyles(v,we&&we.params||Ll,pn),ti=Ye&&Ye.params||Ll,yi=this.buildStyles(D,ti,pn),_o=new Set,so=new Map,fa=new Map,qs="void"===D,ku={params:zc(ti,Er),delay:this.ast.options?.delay},yl=sn?[]:Wc(m,d,this.ast.animation,W,ne,vr,yi,ku,yt,pn);let pa=0;return yl.forEach(Ka=>{pa=Math.max(Ka.duration+Ka.delay,pa)}),pn.length?mu(d,this._triggerName,v,D,qs,vr,yi,[],[],so,fa,pa,pn):(yl.forEach(Ka=>{const Vl=Ka.element,ec=Ta(so,Vl,new Set);Ka.preStyleProps.forEach(dd=>ec.add(dd));const Zh=Ta(fa,Vl,new Set);Ka.postStyleProps.forEach(dd=>Zh.add(dd)),Vl!==d&&_o.add(Vl)}),mu(d,this._triggerName,v,D,qs,vr,yi,yl,[..._o.values()],so,fa,pa))}}function zc(_,m){const d={...m};return Object.entries(_).forEach(([v,D])=>{null!=D&&(d[v]=D)}),d}class gu{styles;defaultParams;normalizer;constructor(m,d,v){this.styles=m,this.defaultParams=d,this.normalizer=v}buildStyles(m,d){const v=new Map,D=zc(m,this.defaultParams);return this.styles.styles.forEach(W=>{"string"!=typeof W&&W.forEach((ne,we)=>{ne&&(ne=Zi(ne,D,d));const Ye=this.normalizer.normalizePropertyName(we,d);ne=this.normalizer.normalizeStyleValue(we,Ye,ne,d),v.set(we,ne)})}),v}}class Op{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(m,d,v){this.name=m,this.ast=d,this._normalizer=v,d.states.forEach(D=>{this.states.set(D.name,new gu(D.style,D.options&&D.options.params||{},v))}),vu(this.states,"true","1"),vu(this.states,"false","0"),d.transitions.forEach(D=>{this.transitionFactories.push(new gf(m,D,this.states))}),this.fallbackTransition=function _f(_,m){return new gf(_,{type:Tr.If.Transition,animation:{type:Tr.If.Sequence,steps:[],options:null},matchers:[(ne,we)=>!0],options:null,queryCount:0,depCount:0},m)}(m,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(m,d,v,D){return this.transitionFactories.find(ne=>ne.match(m,d,v,D))||null}matchStyles(m,d,v){return this.fallbackTransition.buildStyles(m,d,v)}}function vu(_,m,d){_.has(m)?_.has(d)||_.set(d,_.get(m)):_.has(d)&&_.set(m,_.get(d))}const Rp=new sh;class hh{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(m,d,v){this.bodyNode=m,this._driver=d,this._normalizer=v}register(m,d){const v=[],W=Rl(this._driver,d,v,[]);if(v.length)throw function ih(){return new c.wOt(3503,!1)}();this._animations.set(m,W)}_buildPlayer(m,d,v){const D=m.element,W=kl(this._normalizer,m.keyframes,d,v);return this._driver.animate(D,W,m.duration,m.delay,m.easing,[],!0)}create(m,d,v={}){const D=[],W=this._animations.get(m);let ne;const we=new Map;if(W?(ne=Wc(this._driver,d,W,An,Zt,new Map,new Map,v,Rp,D),ne.forEach(sn=>{const pn=Ta(we,sn.element,new Map);sn.postStyleProps.forEach(Er=>pn.set(Er,null))})):(D.push(function Cc(){return new c.wOt(3300,!1)}()),ne=[]),D.length)throw function df(){return new c.wOt(3504,!1)}();we.forEach((sn,pn)=>{sn.forEach((Er,Zn)=>{sn.set(Zn,this._driver.computeStyle(pn,Zn,Tr.kp))})});const yt=Il(ne.map(sn=>{const pn=we.get(sn.element);return this._buildPlayer(sn,new Map,pn)}));return this._playersById.set(m,yt),yt.onDestroy(()=>this.destroy(m)),this.players.push(yt),yt}destroy(m){const d=this._getPlayer(m);d.destroy(),this._playersById.delete(m);const v=this.players.indexOf(d);v>=0&&this.players.splice(v,1)}_getPlayer(m){const d=this._playersById.get(m);if(!d)throw function hf(){return new c.wOt(3301,!1)}();return d}listen(m,d,v,D){const W=$c(d,"","","");return hs(this._getPlayer(m),v,W,D),()=>{}}command(m,d,v,D){if("register"==v)return void this.register(m,D[0]);if("create"==v)return void this.create(m,d,D[0]||{});const W=this._getPlayer(m);switch(v){case"play":W.play();break;case"pause":W.pause();break;case"reset":W.reset();break;case"restart":W.restart();break;case"finish":W.finish();break;case"init":W.init();break;case"setPosition":W.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(m)}}}const Wu="ng-animate-queued",xd="ng-animate-disabled",Np=[],Ku={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pl="__ng_removed";class ph{namespaceId;value;options;get params(){return this.options.params}constructor(m,d=""){this.namespaceId=d;const v=m&&m.hasOwnProperty("value");if(this.value=function As(_){return _??null}(v?m.value:m),v){const{value:W,...ne}=m;this.options=ne}else this.options={};this.options.params||(this.options.params={})}absorbOptions(m){const d=m.params;if(d){const v=this.options.params;Object.keys(d).forEach(D=>{null==v[D]&&(v[D]=d[D])})}}}const _u="void",mh=new ph(_u);class Pp{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(m,d,v){this.id=m,this.hostElement=d,this._engine=v,this._hostClassName="ng-tns-"+m,nl(d,this._hostClassName)}listen(m,d,v,D){if(!this._triggers.has(d))throw function lu(){return new c.wOt(3302,!1)}();if(null==v||0==v.length)throw function Uu(){return new c.wOt(3303,!1)}();if(!function Bp(_){return"start"==_||"done"==_}(v))throw function md(){return new c.wOt(3400,!1)}();const W=Ta(this._elementListeners,m,[]),ne={name:d,phase:v,callback:D};W.push(ne);const we=Ta(this._engine.statesByElement,m,new Map);return we.has(d)||(nl(m,Kn),nl(m,Kn+"-"+d),we.set(d,mh)),()=>{this._engine.afterFlush(()=>{const Ye=W.indexOf(ne);Ye>=0&&W.splice(Ye,1),this._triggers.has(d)||we.delete(d)})}}register(m,d){return!this._triggers.has(m)&&(this._triggers.set(m,d),!0)}_getTrigger(m){const d=this._triggers.get(m);if(!d)throw function wn(){return new c.wOt(3401,!1)}();return d}trigger(m,d,v,D=!0){const W=this._getTrigger(d),ne=new Cd(this.id,d,m);let we=this._engine.statesByElement.get(m);we||(nl(m,Kn),nl(m,Kn+"-"+d),this._engine.statesByElement.set(m,we=new Map));let Ye=we.get(d);const yt=new ph(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Ye&&yt.absorbOptions(Ye.options),we.set(d,yt),Ye||(Ye=mh),yt.value!==_u&&Ye.value===yt.value){if(!function xf(_,m){const d=Object.keys(_),v=Object.keys(m);if(d.length!=v.length)return!1;for(let D=0;D<d.length;D++){const W=d[D];if(!m.hasOwnProperty(W)||_[W]!==m[W])return!1}return!0}(Ye.params,yt.params)){const ti=[],yi=W.matchStyles(Ye.value,Ye.params,ti),_o=W.matchStyles(yt.value,yt.params,ti);ti.length?this._engine.reportError(ti):this._engine.afterFlush(()=>{zr(m,yi),Ir(m,_o)})}return}const Er=Ta(this._engine.playersByElement,m,[]);Er.forEach(ti=>{ti.namespaceId==this.id&&ti.triggerName==d&&ti.queued&&ti.destroy()});let Zn=W.matchTransition(Ye.value,yt.value,m,yt.params),vr=!1;if(!Zn){if(!D)return;Zn=W.fallbackTransition,vr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:d,transition:Zn,fromState:Ye,toState:yt,player:ne,isFallbackTransition:vr}),vr||(nl(m,Wu),ne.onStart(()=>{Kc(m,Wu)})),ne.onDone(()=>{let ti=this.players.indexOf(ne);ti>=0&&this.players.splice(ti,1);const yi=this._engine.playersByElement.get(m);if(yi){let _o=yi.indexOf(ne);_o>=0&&yi.splice(_o,1)}}),this.players.push(ne),Er.push(ne),ne}deregister(m){this._triggers.delete(m),this._engine.statesByElement.forEach(d=>d.delete(m)),this._elementListeners.forEach((d,v)=>{this._elementListeners.set(v,d.filter(D=>D.name!=m))})}clearElementCache(m){this._engine.statesByElement.delete(m),this._elementListeners.delete(m);const d=this._engine.playersByElement.get(m);d&&(d.forEach(v=>v.destroy()),this._engine.playersByElement.delete(m))}_signalRemovalForInnerTriggers(m,d){const v=this._engine.driver.query(m,Wn,!0);v.forEach(D=>{if(D[pl])return;const W=this._engine.fetchNamespacesByElement(D);W.size?W.forEach(ne=>ne.triggerLeaveAnimation(D,d,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(m,d,v,D){const W=this._engine.statesByElement.get(m),ne=new Map;if(W){const we=[];if(W.forEach((Ye,yt)=>{if(ne.set(yt,Ye.value),this._triggers.has(yt)){const sn=this.trigger(m,yt,_u,D);sn&&we.push(sn)}}),we.length)return this._engine.markElementAsRemoved(this.id,m,!0,d,ne),v&&Il(we).onDone(()=>this._engine.processLeaveNode(m)),!0}return!1}prepareLeaveAnimationListeners(m){const d=this._elementListeners.get(m),v=this._engine.statesByElement.get(m);if(d&&v){const D=new Set;d.forEach(W=>{const ne=W.name;if(D.has(ne))return;D.add(ne);const Ye=this._triggers.get(ne).fallbackTransition,yt=v.get(ne)||mh,sn=new ph(_u),pn=new Cd(this.id,ne,m);this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:ne,transition:Ye,fromState:yt,toState:sn,player:pn,isFallbackTransition:!0})})}}removeNode(m,d){const v=this._engine;if(m.childElementCount&&this._signalRemovalForInnerTriggers(m,d),this.triggerLeaveAnimation(m,d,!0))return;let D=!1;if(v.totalAnimations){const W=v.players.length?v.playersByQueriedElement.get(m):[];if(W&&W.length)D=!0;else{let ne=m;for(;ne=ne.parentNode;)if(v.statesByElement.get(ne)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(m),D)v.markElementAsRemoved(this.id,m,!1,d);else{const W=m[pl];(!W||W===Ku)&&(v.afterFlush(()=>this.clearElementCache(m)),v.destroyInnerAnimations(m),v._onRemovalComplete(m,d))}}insertNode(m,d){nl(m,this._hostClassName)}drainQueuedTransitions(m){const d=[];return this._queue.forEach(v=>{const D=v.player;if(D.destroyed)return;const W=v.element,ne=this._elementListeners.get(W);ne&&ne.forEach(we=>{if(we.name==v.triggerName){const Ye=$c(W,v.triggerName,v.fromState.value,v.toState.value);Ye._data=m,hs(v.player,we.phase,Ye,we.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):d.push(v)}),this._queue=[],d.sort((v,D)=>{const W=v.transition.ast.depCount,ne=D.transition.ast.depCount;return 0==W||0==ne?W-ne:this._engine.driver.containsElement(v.element,D.element)?1:-1})}destroy(m){this.players.forEach(d=>d.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,m)}}class wf{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=(m,d)=>{};_onRemovalComplete(m,d){this.onRemovalComplete(m,d)}constructor(m,d,v){this.bodyNode=m,this.driver=d,this._normalizer=v}get queuedPlayers(){const m=[];return this._namespaceList.forEach(d=>{d.players.forEach(v=>{v.queued&&m.push(v)})}),m}createNamespace(m,d){const v=new Pp(m,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(v,d):(this.newHostElements.set(d,v),this.collectEnterElement(d)),this._namespaceLookup[m]=v}_balanceNamespaceList(m,d){const v=this._namespaceList,D=this.namespacesByHostElement;if(v.length-1>=0){let ne=!1,we=this.driver.getParentElement(d);for(;we;){const Ye=D.get(we);if(Ye){const yt=v.indexOf(Ye);v.splice(yt+1,0,m),ne=!0;break}we=this.driver.getParentElement(we)}ne||v.unshift(m)}else v.push(m);return D.set(d,m),m}register(m,d){let v=this._namespaceLookup[m];return v||(v=this.createNamespace(m,d)),v}registerTrigger(m,d,v){let D=this._namespaceLookup[m];D&&D.register(d,v)&&this.totalAnimations++}destroy(m,d){m&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(m);this.namespacesByHostElement.delete(v.hostElement);const D=this._namespaceList.indexOf(v);D>=0&&this._namespaceList.splice(D,1),v.destroy(d),delete this._namespaceLookup[m]}))}_fetchNamespace(m){return this._namespaceLookup[m]}fetchNamespacesByElement(m){const d=new Set,v=this.statesByElement.get(m);if(v)for(let D of v.values())if(D.namespaceId){const W=this._fetchNamespace(D.namespaceId);W&&d.add(W)}return d}trigger(m,d,v,D){if(Dd(d)){const W=this._fetchNamespace(m);if(W)return W.trigger(d,v,D),!0}return!1}insertNode(m,d,v,D){if(!Dd(d))return;const W=d[pl];if(W&&W.setForRemoval){W.setForRemoval=!1,W.setForMove=!0;const ne=this.collectedLeaveElements.indexOf(d);ne>=0&&this.collectedLeaveElements.splice(ne,1)}if(m){const ne=this._fetchNamespace(m);ne&&ne.insertNode(d,v)}D&&this.collectEnterElement(d)}collectEnterElement(m){this.collectedEnterElements.push(m)}markElementAsDisabled(m,d){d?this.disabledNodes.has(m)||(this.disabledNodes.add(m),nl(m,xd)):this.disabledNodes.has(m)&&(this.disabledNodes.delete(m),Kc(m,xd))}removeNode(m,d,v){if(Dd(d)){const D=m?this._fetchNamespace(m):null;D?D.removeNode(d,v):this.markElementAsRemoved(m,d,!1,v);const W=this.namespacesByHostElement.get(d);W&&W.id!==m&&W.removeNode(d,v)}else this._onRemovalComplete(d,v)}markElementAsRemoved(m,d,v,D,W){this.collectedLeaveElements.push(d),d[pl]={namespaceId:m,setForRemoval:D,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:W}}listen(m,d,v,D,W){return Dd(d)?this._fetchNamespace(m).listen(d,v,D,W):()=>{}}_buildInstruction(m,d,v,D,W){return m.transition.build(this.driver,m.element,m.fromState.value,m.toState.value,v,D,m.fromState.options,m.toState.options,d,W)}destroyInnerAnimations(m){let d=this.driver.query(m,Wn,!0);d.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(m,Mn,!0),d.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(m){const d=this.playersByElement.get(m);d&&d.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(m){const d=this.playersByQueriedElement.get(m);d&&d.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(m=>{if(this.players.length)return Il(this.players).onDone(()=>m());m()})}processLeaveNode(m){const d=m[pl];if(d&&d.setForRemoval){if(m[pl]=Ku,d.namespaceId){this.destroyInnerAnimations(m);const v=this._fetchNamespace(d.namespaceId);v&&v.clearElementCache(m)}this._onRemovalComplete(m,d.setForRemoval)}m.classList?.contains(xd)&&this.markElementAsDisabled(m,!1),this.driver.query(m,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(m=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,D)=>this._balanceNamespaceList(v,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;v<this.collectedEnterElements.length;v++)nl(this.collectedEnterElements[v],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const v=[];try{d=this._flushAnimations(v,m)}finally{for(let D=0;D<v.length;D++)v[D]()}}else for(let v=0;v<this.collectedLeaveElements.length;v++)this.processLeaveNode(this.collectedLeaveElements[v]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(v=>v()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],d.length?Il(d).onDone(()=>{v.forEach(D=>D())}):v.forEach(D=>D())}}reportError(m){throw function gi(){return new c.wOt(3402,!1)}()}_flushAnimations(m,d){const v=new sh,D=[],W=new Map,ne=[],we=new Map,Ye=new Map,yt=new Map,sn=new Set;this.disabledNodes.forEach(ei=>{sn.add(ei);const mi=this.driver.query(ei,".ng-animate-queued",!0);for(let wi=0;wi<mi.length;wi++)sn.add(mi[wi])});const pn=this.bodyNode,Er=Array.from(this.statesByElement.keys()),Zn=fc(Er,this.collectedEnterElements),vr=new Map;let ti=0;Zn.forEach((ei,mi)=>{const wi=An+ti++;vr.set(mi,wi),ei.forEach(ho=>nl(ho,wi))});const yi=[],_o=new Set,so=new Set;for(let ei=0;ei<this.collectedLeaveElements.length;ei++){const mi=this.collectedLeaveElements[ei],wi=mi[pl];wi&&wi.setForRemoval&&(yi.push(mi),_o.add(mi),wi.hasAnimation?this.driver.query(mi,".ng-star-inserted",!0).forEach(ho=>_o.add(ho)):so.add(mi))}const fa=new Map,qs=fc(Er,Array.from(_o));qs.forEach((ei,mi)=>{const wi=Zt+ti++;fa.set(mi,wi),ei.forEach(ho=>nl(ho,wi))}),m.push(()=>{Zn.forEach((ei,mi)=>{const wi=vr.get(mi);ei.forEach(ho=>Kc(ho,wi))}),qs.forEach((ei,mi)=>{const wi=fa.get(mi);ei.forEach(ho=>Kc(ho,wi))}),yi.forEach(ei=>{this.processLeaveNode(ei)})});const ku=[],yl=[];for(let ei=this._namespaceList.length-1;ei>=0;ei--)this._namespaceList[ei].drainQueuedTransitions(d).forEach(wi=>{const ho=wi.player,ma=wi.element;if(ku.push(ho),this.collectedEnterElements.length){const ea=ma[pl];if(ea&&ea.setForMove){if(ea.previousTriggersValues&&ea.previousTriggersValues.has(wi.triggerName)){const tu=ea.previousTriggersValues.get(wi.triggerName),vc=this.statesByElement.get(wi.element);if(vc&&vc.has(wi.triggerName)){const qh=vc.get(wi.triggerName);qh.value=tu,vc.set(wi.triggerName,qh)}}return void ho.destroy()}}const Js=!pn||!this.driver.containsElement(pn,ma),ol=fa.get(ma),Ou=vr.get(ma),ys=this._buildInstruction(wi,v,Ou,ol,Js);if(ys.errors&&ys.errors.length)return void yl.push(ys);if(Js)return ho.onStart(()=>zr(ma,ys.fromStyles)),ho.onDestroy(()=>Ir(ma,ys.toStyles)),void D.push(ho);if(wi.isFallbackTransition)return ho.onStart(()=>zr(ma,ys.fromStyles)),ho.onDestroy(()=>Ir(ma,ys.toStyles)),void D.push(ho);const $m=[];ys.timelines.forEach(ea=>{ea.stretchStartingKeyframe=!0,this.disabledNodes.has(ea.element)||$m.push(ea)}),ys.timelines=$m,v.append(ma,ys.timelines),ne.push({instruction:ys,player:ho,element:ma}),ys.queriedElements.forEach(ea=>Ta(we,ea,[]).push(ho)),ys.preStyleProps.forEach((ea,tu)=>{if(ea.size){let vc=Ye.get(tu);vc||Ye.set(tu,vc=new Set),ea.forEach((qh,ip)=>vc.add(ip))}}),ys.postStyleProps.forEach((ea,tu)=>{let vc=yt.get(tu);vc||yt.set(tu,vc=new Set),ea.forEach((qh,ip)=>vc.add(ip))})});if(yl.length){const ei=[];yl.forEach(mi=>{ei.push(function cu(){return new c.wOt(3505,!1)}())}),ku.forEach(mi=>mi.destroy()),this.reportError(ei)}const pa=new Map,Ka=new Map;ne.forEach(ei=>{const mi=ei.element;v.has(mi)&&(Ka.set(mi,mi),this._beforeAnimationBuild(ei.player.namespaceId,ei.instruction,pa))}),D.forEach(ei=>{const mi=ei.element;this._getPreviousPlayers(mi,!1,ei.namespaceId,ei.triggerName,null).forEach(ho=>{Ta(pa,mi,[]).push(ho),ho.destroy()})});const Vl=yi.filter(ei=>yu(ei,Ye,yt)),ec=new Map;gh(ec,this.driver,so,yt,Tr.kp).forEach(ei=>{yu(ei,Ye,yt)&&Vl.push(ei)});const dd=new Map;Zn.forEach((ei,mi)=>{gh(dd,this.driver,new Set(ei),Ye,Tr.FX)}),Vl.forEach(ei=>{const mi=ec.get(ei),wi=dd.get(ei);ec.set(ei,new Map([...mi?.entries()??[],...wi?.entries()??[]]))});const Um=[],rp=[],Kv={};ne.forEach(ei=>{const{element:mi,player:wi,instruction:ho}=ei;if(v.has(mi)){if(sn.has(mi))return wi.onDestroy(()=>Ir(mi,ho.toStyles)),wi.disabled=!0,wi.overrideTotalTime(ho.totalTime),void D.push(wi);let ma=Kv;if(Ka.size>1){let ol=mi;const Ou=[];for(;ol=ol.parentNode;){const ys=Ka.get(ol);if(ys){ma=ys;break}Ou.push(ol)}Ou.forEach(ys=>Ka.set(ys,ma))}const Js=this._buildAnimation(wi.namespaceId,ho,pa,W,dd,ec);if(wi.setRealPlayer(Js),ma===Kv)Um.push(wi);else{const ol=this.playersByElement.get(ma);ol&&ol.length&&(wi.parentPlayer=Il(ol)),D.push(wi)}}else zr(mi,ho.fromStyles),wi.onDestroy(()=>Ir(mi,ho.toStyles)),rp.push(wi),sn.has(mi)&&D.push(wi)}),rp.forEach(ei=>{const mi=W.get(ei.element);if(mi&&mi.length){const wi=Il(mi);ei.setRealPlayer(wi)}}),D.forEach(ei=>{ei.parentPlayer?ei.syncPlayerEvents(ei.parentPlayer):ei.destroy()});for(let ei=0;ei<yi.length;ei++){const mi=yi[ei],wi=mi[pl];if(Kc(mi,Zt),wi&&wi.hasAnimation)continue;let ho=[];if(we.size){let Js=we.get(mi);Js&&Js.length&&ho.push(...Js);let ol=this.driver.query(mi,Mn,!0);for(let Ou=0;Ou<ol.length;Ou++){let ys=we.get(ol[Ou]);ys&&ys.length&&ho.push(...ys)}}const ma=ho.filter(Js=>!Js.destroyed);ma.length?Pl(this,mi,ma):this.processLeaveNode(mi)}return yi.length=0,Um.forEach(ei=>{this.players.push(ei),ei.onDone(()=>{ei.destroy();const mi=this.players.indexOf(ei);this.players.splice(mi,1)}),ei.play()}),Um}afterFlush(m){this._flushFns.push(m)}afterFlushAnimationsDone(m){this._whenQuietFns.push(m)}_getPreviousPlayers(m,d,v,D,W){let ne=[];if(d){const we=this.playersByQueriedElement.get(m);we&&(ne=we)}else{const we=this.playersByElement.get(m);if(we){const Ye=!W||W==_u;we.forEach(yt=>{yt.queued||!Ye&&yt.triggerName!=D||ne.push(yt)})}}return(v||D)&&(ne=ne.filter(we=>!(v&&v!=we.namespaceId||D&&D!=we.triggerName))),ne}_beforeAnimationBuild(m,d,v){const W=d.element,ne=d.isRemovalTransition?void 0:m,we=d.isRemovalTransition?void 0:d.triggerName;for(const Ye of d.timelines){const yt=Ye.element,sn=yt!==W,pn=Ta(v,yt,[]);this._getPreviousPlayers(yt,sn,ne,we,d.toState).forEach(Zn=>{const vr=Zn.getRealPlayer();vr.beforeDestroy&&vr.beforeDestroy(),Zn.destroy(),pn.push(Zn)})}zr(W,d.fromStyles)}_buildAnimation(m,d,v,D,W,ne){const we=d.triggerName,Ye=d.element,yt=[],sn=new Set,pn=new Set,Er=d.timelines.map(vr=>{const ti=vr.element;sn.add(ti);const yi=ti[pl];if(yi&&yi.removedBeforeQueried)return new Tr.sf(vr.duration,vr.delay);const _o=ti!==Ye,so=function Gu(_){const m=[];return $p(_,m),m}((v.get(ti)||Np).map(pa=>pa.getRealPlayer())).filter(pa=>!!pa.element&&pa.element===ti),fa=W.get(ti),qs=ne.get(ti),ku=kl(this._normalizer,vr.keyframes,fa,qs),yl=this._buildPlayer(vr,ku,so);if(vr.subTimeline&&D&&pn.add(ti),_o){const pa=new Cd(m,we,ti);pa.setRealPlayer(yl),yt.push(pa)}return yl});yt.forEach(vr=>{Ta(this.playersByQueriedElement,vr.element,[]).push(vr),vr.onDone(()=>function Ef(_,m,d){let v=_.get(m);if(v){if(v.length){const D=v.indexOf(d);v.splice(D,1)}0==v.length&&_.delete(m)}return v}(this.playersByQueriedElement,vr.element,vr))}),sn.forEach(vr=>nl(vr,nr));const Zn=Il(Er);return Zn.onDestroy(()=>{sn.forEach(vr=>Kc(vr,nr)),Ir(Ye,d.toStyles)}),pn.forEach(vr=>{Ta(D,vr,[]).push(Zn)}),Zn}_buildPlayer(m,d,v){return d.length>0?this.driver.animate(m.element,d,m.duration,m.delay,m.easing,v):new Tr.sf(m.duration,m.delay)}}class Cd{namespaceId;triggerName;element;_player=new Tr.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(m,d,v){this.namespaceId=m,this.triggerName=d,this.element=v}setRealPlayer(m){this._containsRealPlayer||(this._player=m,this._queuedCallbacks.forEach((d,v)=>{d.forEach(D=>hs(m,v,void 0,D))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(m.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(m){this.totalTime=m}syncPlayerEvents(m){const d=this._player;d.triggerCallback&&m.onStart(()=>d.triggerCallback("start")),m.onDone(()=>this.finish()),m.onDestroy(()=>this.destroy())}_queueEvent(m,d){Ta(this._queuedCallbacks,m,[]).push(d)}onDone(m){this.queued&&this._queueEvent("done",m),this._player.onDone(m)}onStart(m){this.queued&&this._queueEvent("start",m),this._player.onStart(m)}onDestroy(m){this.queued&&this._queueEvent("destroy",m),this._player.onDestroy(m)}init(){this._player.init()}hasStarted(){return!this.queued&&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(m){this.queued||this._player.setPosition(m)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(m){const d=this._player;d.triggerCallback&&d.triggerCallback(m)}}function Dd(_){return _&&1===_.nodeType}function Up(_,m){const d=_.style.display;return _.style.display=m??"none",d}function gh(_,m,d,v,D){const W=[];d.forEach(Ye=>W.push(Up(Ye)));const ne=[];v.forEach((Ye,yt)=>{const sn=new Map;Ye.forEach(pn=>{const Er=m.computeStyle(yt,pn,D);sn.set(pn,Er),(!Er||0==Er.length)&&(yt[pl]=Lp,ne.push(yt))}),_.set(yt,sn)});let we=0;return d.forEach(Ye=>Up(Ye,W[we++])),ne}function fc(_,m){const d=new Map;if(_.forEach(we=>d.set(we,[])),0==m.length)return d;const D=new Set(m),W=new Map;function ne(we){if(!we)return 1;let Ye=W.get(we);if(Ye)return Ye;const yt=we.parentNode;return Ye=d.has(yt)?yt:D.has(yt)?1:ne(yt),W.set(we,Ye),Ye}return m.forEach(we=>{const Ye=ne(we);1!==Ye&&d.get(Ye).push(we)}),d}function nl(_,m){_.classList?.add(m)}function Kc(_,m){_.classList?.remove(m)}function Pl(_,m,d){Il(d).onDone(()=>_.processLeaveNode(m))}function $p(_,m){for(let d=0;d<_.length;d++){const v=_[d];v instanceof Tr.ui?$p(v.players,m):m.push(v)}}function yu(_,m,d){const v=d.get(_);if(!v)return!1;let D=m.get(_);return D?v.forEach(W=>D.add(W)):m.set(_,v),d.delete(_),!0}class rl{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(m,d)=>{};constructor(m,d,v){this._driver=d,this._normalizer=v,this._transitionEngine=new wf(m.body,d,v),this._timelineEngine=new hh(m.body,d,v),this._transitionEngine.onRemovalComplete=(D,W)=>this.onRemovalComplete(D,W)}registerTrigger(m,d,v,D,W){const ne=m+"-"+D;let we=this._triggerCache[ne];if(!we){const Ye=[],sn=Rl(this._driver,W,Ye,[]);if(Ye.length)throw function cf(){return new c.wOt(3404,!1)}();we=function Ss(_,m,d){return new Op(_,m,d)}(D,sn,this._normalizer),this._triggerCache[ne]=we}this._transitionEngine.registerTrigger(d,D,we)}register(m,d){this._transitionEngine.register(m,d)}destroy(m,d){this._transitionEngine.destroy(m,d)}onInsert(m,d,v,D){this._transitionEngine.insertNode(m,d,v,D)}onRemove(m,d,v){this._transitionEngine.removeNode(m,d,v)}disableAnimations(m,d){this._transitionEngine.markElementAsDisabled(m,d)}process(m,d,v,D){if("@"==v.charAt(0)){const[W,ne]=ff(v);this._timelineEngine.command(W,d,ne,D)}else this._transitionEngine.trigger(m,d,v,D)}listen(m,d,v,D,W){if("@"==v.charAt(0)){const[ne,we]=ff(v);return this._timelineEngine.listen(ne,d,we,W)}return this._transitionEngine.listen(m,d,v,D,W)}flush(m=-1){this._transitionEngine.flush(m)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(m){this._transitionEngine.afterFlushAnimationsDone(m)}}let vh=(()=>{class _{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(d,v,D){this._element=d,this._startStyles=v,this._endStyles=D;let W=_.initialStylesByElement.get(d);W||_.initialStylesByElement.set(d,W=new Map),this._initialStyles=W}start(){this._state<1&&(this._startStyles&&Ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ir(this._element,this._initialStyles),this._endStyles&&(Ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_.initialStylesByElement.delete(this._element),this._startStyles&&(zr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zr(this._element,this._endStyles),this._endStyles=null),Ir(this._element,this._initialStyles),this._state=3)}}return _})();function Fl(_){let m=null;return _.forEach((d,v)=>{(function bu(_){return"display"===_||"position"===_})(v)&&(m=m||new Map,m.set(v,d))}),m}class Sd{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(m,d,v,D){this.element=m,this.keyframes=d,this.options=v,this._specialStyles=D,this._duration=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const m=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,m,this.options),this._finalKeyframe=m.length?m[m.length-1]:new Map;const d=()=>this._onFinish();this.domPlayer.addEventListener("finish",d),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",d)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(m){const d=[];return m.forEach(v=>{d.push(Object.fromEntries(v))}),d}_triggerWebAnimation(m,d,v){return m.animate(this._convertKeyframesToObject(d),v)}onStart(m){this._originalOnStartFns.push(m),this._onStartFns.push(m)}onDone(m){this._originalOnDoneFns.push(m),this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(m=>m()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(m=>m()),this._onDestroyFns=[])}setPosition(m){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=m*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const m=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,D)=>{"offset"!==D&&m.set(D,this._finished?v:vo(this.element,D))}),this.currentSnapshot=m}triggerCallback(m){const d="start"===m?this._onStartFns:this._onDoneFns;d.forEach(v=>v()),d.length=0}}class Xu{validateStyleProperty(m){return!0}validateAnimatableStyleProperty(m){return!0}containsElement(m,d){return R(m,d)}getParentElement(m){return ju(m)}query(m,d,v){return U(m,d,v)}computeStyle(m,d,v){return vo(m,d)}animate(m,d,v,D,W,ne=[]){const Ye={duration:v,delay:D,fill:0==D?"both":"forwards"};W&&(Ye.easing=W);const yt=new Map,sn=ne.filter(Zn=>Zn instanceof Sd);(function jr(_,m){return 0===_||0===m})(v,D)&&sn.forEach(Zn=>{Zn.currentSnapshot.forEach((vr,ti)=>yt.set(ti,vr))});let pn=function dr(_){return _.length?_[0]instanceof Map?_:_.map(m=>new Map(Object.entries(m))):[]}(d).map(Zn=>new Map(Zn));pn=function Fi(_,m,d){if(d.size&&m.length){let v=m[0],D=[];if(d.forEach((W,ne)=>{v.has(ne)||D.push(ne),v.set(ne,W)}),D.length)for(let W=1;W<m.length;W++){let ne=m[W];D.forEach(we=>ne.set(we,vo(_,we)))}}return m}(m,pn,yt);const Er=function jp(_,m){let d=null,v=null;return Array.isArray(m)&&m.length?(d=Fl(m[0]),m.length>1&&(v=Fl(m[m.length-1]))):m instanceof Map&&(d=Fl(m)),d||v?new vh(_,d,v):null}(m,pn);return new Sd(m,pn,Ye,Er)}}const Cf="@.disabled";class Vo{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(m,d,v,D){this.namespaceId=m,this.delegate=d,this.engine=v,this._onDestroy=D}get data(){return this.delegate.data}destroyNode(m){this.delegate.destroyNode?.(m)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(m,d){return this.delegate.createElement(m,d)}createComment(m){return this.delegate.createComment(m)}createText(m){return this.delegate.createText(m)}appendChild(m,d){this.delegate.appendChild(m,d),this.engine.onInsert(this.namespaceId,d,m,!1)}insertBefore(m,d,v,D=!0){this.delegate.insertBefore(m,d,v),this.engine.onInsert(this.namespaceId,d,m,D)}removeChild(m,d,v){this.parentNode(d)&&this.engine.onRemove(this.namespaceId,d,this.delegate)}selectRootElement(m,d){return this.delegate.selectRootElement(m,d)}parentNode(m){return this.delegate.parentNode(m)}nextSibling(m){return this.delegate.nextSibling(m)}setAttribute(m,d,v,D){this.delegate.setAttribute(m,d,v,D)}removeAttribute(m,d,v){this.delegate.removeAttribute(m,d,v)}addClass(m,d){this.delegate.addClass(m,d)}removeClass(m,d){this.delegate.removeClass(m,d)}setStyle(m,d,v,D){this.delegate.setStyle(m,d,v,D)}removeStyle(m,d,v){this.delegate.removeStyle(m,d,v)}setProperty(m,d,v){"@"==d.charAt(0)&&d==Cf?this.disableAnimations(m,!!v):this.delegate.setProperty(m,d,v)}setValue(m,d){this.delegate.setValue(m,d)}listen(m,d,v){return this.delegate.listen(m,d,v)}disableAnimations(m,d){this.engine.disableAnimations(m,d)}}class Df extends Vo{factory;constructor(m,d,v,D,W){super(d,v,D,W),this.factory=m,this.namespaceId=d}setProperty(m,d,v){"@"==d.charAt(0)?"."==d.charAt(1)&&d==Cf?this.disableAnimations(m,v=void 0===v||!!v):this.engine.process(this.namespaceId,m,d.slice(1),v):this.delegate.setProperty(m,d,v)}listen(m,d,v){if("@"==d.charAt(0)){const D=function _h(_){switch(_){case"body":return document.body;case"document":return document;case"window":return window;default:return _}}(m);let W=d.slice(1),ne="";return"@"!=W.charAt(0)&&([W,ne]=function yh(_){const m=_.indexOf(".");return[_.substring(0,m),_.slice(m+1)]}(W)),this.engine.listen(this.namespaceId,D,W,ne,we=>{this.factory.scheduleListenerCallback(we._data||-1,v,we)})}return this.delegate.listen(m,d,v)}}class bh{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(m,d,v){this.delegate=m,this.engine=d,this._zone=v,d.onRemovalComplete=(D,W)=>{W?.removeChild(null,D)}}createRenderer(m,d){const D=this.delegate.createRenderer(m,d);if(!m||!d?.data?.animation){const yt=this._rendererCache;let sn=yt.get(D);return sn||(sn=new Vo("",D,this.engine,()=>yt.delete(D)),yt.set(D,sn)),sn}const W=d.id,ne=d.id+"-"+this._currentId;this._currentId++,this.engine.register(ne,m);const we=yt=>{Array.isArray(yt)?yt.forEach(we):this.engine.registerTrigger(W,ne,m,yt.name,yt)};return d.data.animation.forEach(we),new Df(this,ne,D,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(m,d,v){if(m>=0&&m<this._microtaskId)return void this._zone.run(()=>d(v));const D=this._animationCallbacksBuffer;0==D.length&&queueMicrotask(()=>{this._zone.run(()=>{D.forEach(W=>{const[ne,we]=W;ne(we)}),this._animationCallbacksBuffer=[]})}),D.push([d,v])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Td=[{provide:Be,useFactory:function Sf(){return new ps}},{provide:rl,useClass:(()=>{class _ extends rl{constructor(d,v,D){super(d,v,D)}ngOnDestroy(){this.flush()}static \u0275fac=function(v){return new(v||_)(c.KVO(st.qQ),c.KVO(Ae),c.KVO(Be))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})()},{provide:c._9s,useFactory:function Af(_,m,d){return new bh(_,m,d)},deps:[i.B7,rl,c.SKi]}],Eh=[{provide:Ae,useFactory:()=>new Xu},{provide:c.bc$,useValue:"BrowserAnimations"},...Td];var Md=r(9030),kd=r(3726),wg=r(8793),Wa=r(1413),Wp=r(5343);const Xc=new S.c(Wp.l);var ml=r(7786),Mc=r(6648),$s=r(6354),Mf=r(17),Od=r(8071),wu=r(8750),Ch=r(9974);const Sh={connector:()=>new Wa.B};function Eu(_,m=Sh){const{connector:d}=m;return(0,Ch.N)((v,D)=>{const W=d();(0,wu.Tg)(_(function Dh(_){return new S.c(m=>_.subscribe(m))}(W))).subscribe(D),D.add(v.subscribe(W))})}var Ic=r(8141);const ql="Service workers are disabled or not supported by this browser";class xu{serviceWorker;worker;registration;events;constructor(m){if(this.serviceWorker=m,m){const v=(0,kd.R)(m,"controllerchange").pipe((0,$s.T)(()=>m.controller)),D=(0,Md.v)(()=>(0,I.of)(m.controller)),W=(0,wg.x)(D,v);this.worker=W.pipe((0,ht.p)(sn=>!!sn)),this.registration=this.worker.pipe((0,me.n)(()=>m.getRegistration()));const yt=(0,kd.R)(m,"message").pipe((0,$s.T)(sn=>sn.data)).pipe((0,ht.p)(sn=>sn&&sn.type)).pipe(function Ah(_){return _?m=>Eu(_)(m):m=>function Yu(_,m){const d=(0,Od.T)(_)?_:()=>_;return(0,Od.T)(m)?Eu(m,{connector:d}):v=>new Mf.G(v,d)}(new Wa.B)(m)}());yt.connect(),this.events=yt}else this.worker=this.events=this.registration=function Kp(_){return(0,Md.v)(()=>(0,T.$)(new Error(_)))}(ql)}postMessage(m,d){return this.worker.pipe((0,A.s)(1),(0,Ic.M)(v=>{v.postMessage({action:m,...d})})).toPromise().then(()=>{})}postMessageWithOperation(m,d,v){const D=this.waitForOperationCompleted(v),W=this.postMessage(m,d);return Promise.all([W,D]).then(([,ne])=>ne)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(m){let d;return d="string"==typeof m?v=>v.type===m:v=>m.includes(v.type),this.events.pipe((0,ht.p)(d))}nextEventOfType(m){return this.eventsOfType(m).pipe((0,A.s)(1))}waitForOperationCompleted(m){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,ht.p)(d=>d.nonce===m),(0,A.s)(1),(0,$s.T)(d=>{if(void 0!==d.result)return d.result;throw new Error(d.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let If=(()=>{class _{sw;messages;notificationClicks;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new Wa.B;constructor(d){if(this.sw=d,!d.isEnabled)return this.messages=Xc,this.notificationClicks=Xc,void(this.subscription=Xc);this.messages=this.sw.eventsOfType("PUSH").pipe((0,$s.T)(D=>D.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,$s.T)(D=>D.data)),this.pushManager=this.sw.registration.pipe((0,$s.T)(D=>D.pushManager));const v=this.pushManager.pipe((0,me.n)(D=>D.getSubscription()));this.subscription=(0,ml.h)(v,this.subscriptionChanges)}requestSubscription(d){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(ql));const v={userVisibleOnly:!0};let D=this.decodeBase64(d.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),W=new Uint8Array(new ArrayBuffer(D.length));for(let ne=0;ne<D.length;ne++)W[ne]=D.charCodeAt(ne);return v.applicationServerKey=W,this.pushManager.pipe((0,me.n)(ne=>ne.subscribe(v)),(0,A.s)(1)).toPromise().then(ne=>(this.subscriptionChanges.next(ne),ne))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,A.s)(1),(0,me.n)(v=>{if(null===v)throw new Error("Not subscribed to push notifications.");return v.unsubscribe().then(D=>{if(!D)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(ql))}decodeBase64(d){return atob(d)}static \u0275fac=function(v){return new(v||_)(c.KVO(xu))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})(),Qu=(()=>{class _{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(d){if(this.sw=d,!d.isEnabled)return this.versionUpdates=Xc,void(this.unrecoverable=Xc);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ql));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:d},d)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ql));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:d},d)}static \u0275fac=function(v){return new(v||_)(c.KVO(xu))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Zu=new c.nKC("");function kf(_,m,d,v){return()=>{if(!(0,st.UE)(v)||!("serviceWorker"in navigator)||!1===d.enabled)return;const D=_.get(c.SKi),W=_.get(c.o8S);let ne;if(D.runOutsideAngular(()=>{const we=navigator.serviceWorker,Ye=()=>we.controller?.postMessage({action:"INITIALIZE"});we.addEventListener("controllerchange",Ye),W.onDestroy(()=>{we.removeEventListener("controllerchange",Ye)})}),"function"==typeof d.registrationStrategy)ne=d.registrationStrategy();else{const[we,...Ye]=(d.registrationStrategy||"registerWhenStable:30000").split(":");switch(we){case"registerImmediately":ne=(0,I.of)(null);break;case"registerWithDelay":ne=Th(+Ye[0]||0);break;case"registerWhenStable":const yt=(0,Mc.H)(_.get(c.o8S).whenStable());ne=Ye[0]?(0,ml.h)(yt,Th(+Ye[0])):yt;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${d.registrationStrategy}`)}}D.runOutsideAngular(()=>ne.pipe((0,A.s)(1)).subscribe(()=>navigator.serviceWorker.register(m,{scope:d.scope}).catch(we=>console.error("Service worker registration failed with:",we))))}}function Th(_){return(0,I.of)(null).pipe((0,be.c)(_))}function Ma(_,m){return new xu((0,st.UE)(m)&&!1!==_.enabled?navigator.serviceWorker:void 0)}class Yc{enabled;scope;registrationStrategy}var qu=r(7468),b=r(2498),x=r(9437),M=r(4668),z=r(4572),J=r(983);function ye(_){return _&&_.constructor&&"function"==typeof _.constructor.isBuffer&&_.constructor.isBuffer(_)}function Ne(_){return _}function Ue(_,m){const d=(m=m||{}).delimiter||".",v=m.maxDepth,D=m.transformKey||Ne,W={};return function ne(we,Ye,yt){yt=yt||1,Object.keys(we).forEach(function(sn){const pn=we[sn],Er=m.safe&&Array.isArray(pn),Zn=Object.prototype.toString.call(pn),vr=ye(pn),ti="[object Object]"===Zn||"[object Array]"===Zn,yi=Ye?Ye+d+D(sn):D(sn);if(!Er&&!vr&&ti&&Object.keys(pn).length&&(!m.maxDepth||yt<v))return ne(pn,yi,yt+1);W[yi]=pn})}(_),W}function rt(_,m){const d=(m=m||{}).delimiter||".",v=m.overwrite||!1,D=m.transformKey||Ne,W={};if(ye(_)||"[object Object]"!==Object.prototype.toString.call(_))return _;function we(sn){const pn=Number(sn);return isNaN(pn)||-1!==sn.indexOf(".")||m.object?sn:pn}return _=Object.keys(_).reduce(function(sn,pn){const Er=Object.prototype.toString.call(_[pn]);return"[object Object]"!==Er&&"[object Array]"!==Er||function yt(sn){const pn=Object.prototype.toString.call(sn);return!sn||("[object Array]"===pn?!sn.length:"[object Object]"===pn?!Object.keys(sn).length:void 0)}(_[pn])?(sn[pn]=_[pn],sn):function Ye(sn,pn,Er){return Object.keys(Er).reduce(function(Zn,vr){return Zn[sn+d+vr]=Er[vr],Zn},pn)}(pn,sn,Ue(_[pn],m))},{}),Object.keys(_).forEach(function(sn){const pn=sn.split(d).map(D);let Er=we(pn.shift()),Zn=we(pn[0]),vr=W;for(;void 0!==Zn;){if("__proto__"===Er)return;const ti=Object.prototype.toString.call(vr[Er]),yi="[object Object]"===ti||"[object Array]"===ti;if(!v&&!yi&&typeof vr[Er]<"u")return;(v&&!yi||!v&&null==vr[Er])&&(vr[Er]="number"!=typeof Zn||m.object?{}:[]),vr=vr[Er],pn.length>0&&(Er=we(pn.shift()),Zn=we(pn[0]))}vr[Er]=rt(_[sn],m)}),W}class xt{translations;constructor(m){this.translations=m}getTranslation(m){return(0,I.of)(this.translations.get(m)||{})}}const zt=new c.nKC("TRANSLOCO_LOADER");function jt(_,m){return _&&(Object.prototype.hasOwnProperty.call(_,m)?_[m]:m.split(".").reduce((d,v)=>d?.[v],_))}function gn(_){return _?Array.isArray(_)?_.length:Tn(_)?Object.keys(_).length:_?_.length:0:0}function qt(_){return"string"==typeof _}function Tn(_){return!!_&&"object"==typeof _&&!Array.isArray(_)}function br(_){return null==_}function Nr(_){return!1===br(_)}function Ci(_){return _&&"string"==typeof _.scope}function ji(_){return Ue(_,{safe:!0})}const qi=new c.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>er}),er={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function wr(_={}){return{...er,..._,missingHandler:{...er.missingHandler,..._.missingHandler},flatten:{...er.flatten,..._.flatten}}}const Zr=new c.nKC("TRANSLOCO_TRANSPILER");let pi=(()=>{class _{interpolationMatcher;constructor(d){this.interpolationMatcher=function xr(_){const[m,d]=_.interpolation;return new RegExp(`${m}(.*?)${d}`,"g")}(d??er)}transpile(d,v={},D,W){return qt(d)?d.replace(this.interpolationMatcher,(ne,we)=>(we=we.trim(),Nr(v[we])?v[we]:Nr(D[we])?this.transpile(D[we],v,D,W):"")):(v&&(Tn(d)?d=this.handleObject(d,v,D,W):Array.isArray(d)&&(d=this.handleArray(d,v,D,W))),d)}handleObject(d,v={},D,W){let ne=d;return Object.keys(v).forEach(we=>{const Ye=jt(ne,we),yt=jt(v,we),sn=this.transpile(Ye,yt,D,W);ne=function cn(_,m,d){_={..._};const v=m.split("."),D=v.length-1;return v.reduce((W,ne,we)=>(W[ne]=we===D?d:Array.isArray(W[ne])?W[ne].slice():{...W[ne]},W&&W[ne]),_),_}(ne,we,sn)}),ne}handleArray(d,v={},D,W){return d.map(ne=>this.transpile(ne,v,D,W))}static \u0275fac=function(v){return new(v||_)(c.KVO(qi,8))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Ri=new c.nKC("TRANSLOCO_MISSING_HANDLER");let js=(()=>{class _{handle(d,v){return v.missingHandler.logMissingKey&&!v.prodMode&&console.warn(`%c Missing translation for '${d}'`,"font-size: 12px; color: red"),d}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Vs=new c.nKC("TRANSLOCO_INTERCEPTOR");let Ia=(()=>{class _{preSaveTranslation(d){return d}preSaveTranslationKey(d,v){return v}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const gl=new c.nKC("TRANSLOCO_FALLBACK_STRATEGY");let Ld,ka=(()=>{class _{userConfig;constructor(d){this.userConfig=d}getNextLangs(){const d=this.userConfig.fallbackLang;if(!d)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(d)?d:[d]}static \u0275fac=function(v){return new(v||_)(c.KVO(qi))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();function za(_){if(!_)return"";const m=_.split("/");return m.pop(),m.join("/")}function gs(_){return _?_.split("/").pop():""}function Du(_){return{scope:za(_)||null,langName:gs(_)}}function Ju(_){const{path:m,inlineLoader:d,mainLoader:v,data:D}=_;if(d){if(!1===function Yt(_){return"function"==typeof _}(d[m]))throw`You're using an inline loader but didn't provide a loader for ${m}`;return d[m]().then(ne=>ne.default?ne.default:ne)}return v.getTranslation(m,D)}let Pd=(()=>{class _{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;subscription=null;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new Wa.B;events$=this.events.asObservable();config;constructor(d,v,D,W,ne,we){this.loader=d,this.parser=v,this.missingHandler=D,this.interceptor=W,this.fallbackStrategy=we,this.loader||(this.loader=new xt(this.translations)),Ld=this,this.config=JSON.parse(JSON.stringify(ne)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Re.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(Ye=>{"translationLoadSuccess"===Ye.type&&Ye.wasFailure&&this.setActiveLang(Ye.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(d){this.defaultLang=d}getActiveLang(){return this.lang.getValue()}setActiveLang(d){return this.parser.onLangChanged?.(d),this.lang.next(d),this.events.next({type:"langChanged",payload:Du(d)}),this}setAvailableLangs(d){this.availableLangs=d}getAvailableLangs(){return this.availableLangs}load(d,v={}){const D=this.cache.get(d);if(D)return D;let W;const ne=this._isLangScoped(d);let we;ne&&(we=za(d));const Ye={path:d,mainLoader:this.loader,inlineLoader:v.inlineLoader,data:ne?{scope:we}:void 0};if(this.useFallbackTranslation(d)){const sn=ne?`${we}/${this.firstFallbackLang}`:this.firstFallbackLang,pn=function Nd({mainLoader:_,path:m,data:d,fallbackPath:v,inlineLoader:D}){return(v?[m,v]:[m]).map(ne=>{const we=Ju({path:ne,mainLoader:_,inlineLoader:D,data:d});return(0,Mc.H)(we).pipe((0,$s.T)(Ye=>({translation:Ye,lang:ne})))})}({...Ye,fallbackPath:sn});W=(0,qu.p)(pn)}else{const sn=Ju(Ye);W=(0,Mc.H)(sn)}const yt=W.pipe((0,b.L)(this.config.failedRetries),(0,Ic.M)(sn=>{Array.isArray(sn)?sn.forEach(pn=>{this.handleSuccess(pn.lang,pn.translation),pn.lang!==d&&this.cache.set(pn.lang,(0,I.of)({}))}):this.handleSuccess(d,sn)}),(0,x.W)(sn=>(this.config.prodMode||console.error(`Error while trying to load "${d}"`,sn),this.handleFailure(d,v))),(0,M.t)(1));return this.cache.set(d,yt),yt}translate(d,v={},D=this.getActiveLang()){if(!d)return d;const{scope:W,resolveLang:ne}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(yt=>this.translate(W?`${W}.${yt}`:yt,v,ne));d=W?`${W}.${d}`:d;const we=this.getTranslation(ne),Ye=we[d];return Ye?this.parser.transpile(Ye,v,we,d):this._handleMissingKey(d,Ye,v)}selectTranslate(d,v,D,W=!1){let ne;const we=(yt,sn)=>this.load(yt,sn).pipe((0,$s.T)(()=>W?this.translateObject(d,v,yt):this.translate(d,v,yt)));if(br(D))return this.langChanges$.pipe((0,me.n)(yt=>we(yt)));if(function fi(_){return Array.isArray(_)&&_.every(Ci)}(D)||Ci(D)){const yt=Array.isArray(D)?D[0]:D;D=yt.scope,ne=function Cu(_,m){return function li(_){return _&&Tn(_.loader)}(_)?function Ul(_,m){return Object.keys(_).reduce((d,v)=>(d[`${m}/${v}`]=_[v],d),{})}(_.loader,m):void 0}(yt,yt.scope)}if(this.isLang(D)||this.isScopeWithLang(D))return we(D);const Ye=D;return this.langChanges$.pipe((0,me.n)(yt=>we(`${Ye}/${yt}`,{inlineLoader:ne})))}isScopeWithLang(d){return this.isLang(gs(d))}translateObject(d,v={},D=this.getActiveLang()){if(qt(d)||Array.isArray(d)){const{resolveLang:ne,scope:we}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(sn=>this.translateObject(we?`${we}.${sn}`:sn,v,ne));const Ye=this.getTranslation(ne),yt=function Ji(_){return rt(_)}(this.getObjectByKey(Ye,d=we?`${we}.${d}`:d));return function tn(_){return 0===gn(_)}(yt)?this.translate(d,v,D):this.parser.transpile(yt,v,Ye,d)}const W=[];for(const[ne,we]of this.getEntries(d))W.push(this.translateObject(ne,we,D));return W}selectTranslateObject(d,v,D){if(qt(d)||Array.isArray(d))return this.selectTranslate(d,v,D,!0);const[[W,ne],...we]=this.getEntries(d);return this.selectTranslateObject(W,ne,D).pipe((0,$s.T)(Ye=>{const yt=[Ye];for(const[sn,pn]of we)yt.push(this.translateObject(sn,pn,D));return yt}))}getTranslation(d){if(d){if(this.isLang(d))return this.translations.get(d)||{};{const{scope:v,resolveLang:D}=this.resolveLangAndScope(d),W=this.translations.get(D)||{};return this.getObjectByKey(W,v)}}return this.translations}selectTranslation(d){let v=this.langChanges$;if(d){const D=gs(d)!==d;v=this.isLang(d)||D?(0,I.of)(d):this.langChanges$.pipe((0,$s.T)(W=>`${d}/${W}`))}return v.pipe((0,me.n)(D=>this.load(D).pipe((0,$s.T)(()=>this.getTranslation(D)))))}setTranslation(d,v=this.getActiveLang(),D={}){const ne={merge:!0,emitChange:!0,...D},we=za(v);let Ye=d;if(we){const Zn=this.getMappedScope(we);Ye=ji({[Zn]:d})}const yt=we?gs(v):v,sn={...ne.merge&&this.getTranslation(yt),...Ye},pn=this.config.flatten.aot?sn:ji(sn),Er=this.interceptor.preSaveTranslation(pn,yt);this.translations.set(yt,Er),ne.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(d,v,D=this.getActiveLang(),W={}){const ne=this.interceptor.preSaveTranslationKey(d,v,D);this.setTranslation({[d]:ne},D,{...W,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:d}){const v=Array.isArray(d)?d[0]:d;d&&this.useFallbackTranslation(v)&&(this.firstFallbackLang=v)}_handleMissingKey(d,v,D){if(this.config.missingHandler.allowEmpty&&""===v)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const W=this.translate(d,D,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,W}return this.missingHandler.handle(d,this.getMissingHandlerData(),D)}_isLangScoped(d){return-1===this.getAvailableLangsIds().indexOf(d)}isLang(d){return-1!==this.getAvailableLangsIds().indexOf(d)}_loadDependencies(d,v){const D=gs(d);return this._isLangScoped(d)&&!this.isLoadedTranslation(D)?(0,z.z)([this.load(D),this.load(d,{inlineLoader:v})]):this.load(d,{inlineLoader:v})}_completeScopeWithLang(d){return this._isLangScoped(d)&&!this.isLang(gs(d))?`${d}/${this.getActiveLang()}`:d}_setScopeAlias(d,v){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[d]=v}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(d){return gn(this.getTranslation(d))}getAvailableLangsIds(){return qt(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(v=>v.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(d){return this.config.missingHandler.useFallbackTranslation&&d!==this.firstFallbackLang}handleSuccess(d,v){this.setTranslation(v,d,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Du(d)}),this.failedLangs.forEach(D=>this.cache.delete(D)),this.failedLangs.clear()}handleFailure(d,v){br(v.failedCounter)&&(v.failedCounter=0,v.fallbackLangs||(v.fallbackLangs=this.fallbackStrategy.getNextLangs(d)));const D=d.split("/"),ne=v.fallbackLangs[v.failedCounter];if(this.failedLangs.add(d),this.cache.has(ne))return this.handleSuccess(ne,this.getTranslation(ne)),J.w;if(!ne||ne===D[D.length-1]){let yt="Unable to load translation and all the fallback languages";throw D.length>1&&(yt+=", did you misspelled the scope name?"),new Error(yt)}let Ye=ne;return D.length>1&&(D[D.length-1]=ne,Ye=D.join("/")),v.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Du(d)}),this.load(Ye,v)}getMappedScope(d){const{scopeMapping:v={}}=this.config;return v[d]||function ar(_){return _.replace(/(?:^\w|[A-Z]|\b\w)/g,(m,d)=>0==d?m.toLowerCase():m.toUpperCase()).replace(/\s+|_|-|\//g,"")}(d)}resolveLangAndScope(d){let D,v=d;if(this._isLangScoped(d)){const W=gs(d),ne=this.isLang(W);v=ne?W:this.getActiveLang(),D=this.getMappedScope(ne?za(d):d)}return{scope:D,resolveLang:v}}getObjectByKey(d,v){const D={},W=`${v}.`;for(const ne in d)ne.startsWith(W)&&(D[ne.replace(W,"")]=d[ne]);return D}getEntries(d){return d instanceof Map?d.entries():Object.entries(d)}static \u0275fac=function(v){return new(v||_)(c.KVO(zt,8),c.KVO(Zr),c.KVO(Ri),c.KVO(Vs),c.KVO(qi),c.KVO(gl))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})();function Tg(_){return(0,c.EmA)([{provide:Zr,useClass:_,deps:[qi]}])}function Xp(_){return(0,c.EmA)([{provide:gl,useClass:_,deps:[qi]}])}function Yp(_){return(0,c.EmA)([{provide:Ri,useClass:_}])}function Rh(_){return(0,c.EmA)([{provide:Vs,useClass:_}])}new c.nKC("TRANSLOCO_LANG"),new c.nKC("TRANSLOCO_LOADING_TEMPLATE"),new c.nKC("TRANSLOCO_SCOPE"),new c.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new c.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var kg=r(2771);let ed=(()=>{class _{constructor(){this._httpClient=(0,c.WQX)(te.Qq),this._navigation=new kg.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,Ic.M)(d=>{this._navigation.next(d)}))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),Y_=(()=>{class _{constructor(d){this._httpClient=d,this._chat=new Re.t(null),this._chats=new Re.t(null)}get chat$(){return this._chat.asObservable()}get chats$(){return this._chats.asObservable()}getChats(){return this._httpClient.get("api/apps/chat/chats").pipe((0,Ic.M)(d=>{this._chats.next(d)}))}getChatById(d){return this._httpClient.get("api/apps/chat/chat",{params:{id:d}}).pipe((0,$s.T)(v=>(this._chat.next(v),v)),(0,me.n)(v=>v?(0,I.of)(v):(0,T.$)("Could not found chat with id of "+d+"!")))}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const vs=new class vw{constructor(m){this.version=m,this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}("0.0.13").full;var vl=r(6977),Q_=r(4085),_s=r(7575);function Nh(_,m){if(1&_&&c.nrm(0,"mat-progress-bar",0),2&_){const d=c.XpG();c.Y8G("mode",d.mode)("value",d.progress)}}let Au=(()=>{class _{constructor(){this._angorLoadingService=(0,c.WQX)(Me),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new Wa.B}ngOnChanges(d){"autoMode"in d&&this._angorLoadingService.setAutoMode((0,Q_.he)(d.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.mode=d}),this._angorLoadingService.progress$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.progress=d}),this._angorLoadingService.show$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.show=d})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],features:[c.OA$],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(v,D){1&v&&c.DNE(0,Nh,1,2,"mat-progress-bar",0),2&v&&c.vxM(D.show?0:-1)},dependencies:[_s.PO,_s.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}}return _})();function td(_,m){1&_&&c.nrm(0,"router-outlet")}let Lh=(()=>{class _{constructor(){this._unsubscribeAll=new Wa.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["empty-layout"]],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"div",0)(2,"div",1),c.DNE(3,td,1,0,"router-outlet"),c.k0s()()),2&v&&(c.R7$(3),c.vxM(3))},dependencies:[Au,a.n3],encapsulation:2})}}return _})();var Tu=r(7857),_l=r(8834),il=r(9213),Qc=r(6969),Rg=r(6939),pc=r(4823),Z_=r(6231);let Ng=(()=>{class _{constructor(d){this.relayService=d,this.notificationSubject=new Re.t([]),this.notificationCount=new Re.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const d=localStorage.getItem("notificationCount");return d?parseInt(d,10):0}loadTimestampFromLocalStorage(){const d=localStorage.getItem("lastNotificationTimestamp");return d?parseInt(d,10):null}saveNotificationData(d,v){localStorage.setItem("notificationCount",d.toString()),localStorage.setItem("lastNotificationTimestamp",v.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const d=localStorage.getItem("notificationSettings");return d?JSON.parse(d):[1,3,4,7,9735]}subscribeToNotifications(d){var v=this;return(0,w.A)(function*(){yield v.relayService.ensureConnectedRelays();const D=v.relayService.getPool(),W=v.relayService.getConnectedRelays();if(0===W.length)throw new Error("No connected relays");const ne=v.loadTimestampFromLocalStorage(),we=v.loadFilterPreferences();0===we.length&&we.push(1,3,4,7,9735);const Ye={kinds:we,"#p":[d],limit:50,since:ne||void 0};return new Promise(yt=>{D.subscribeMany(W,[Ye],{onevent:pn=>v.handleNotificationEvent(pn,d),oneose(){yt()}})})})()}handleNotificationEvent(d,v){if(this.isNotificationEvent(d,v)){const W=new Date(1e3*d.created_at);let ne="",we="",Ye="";switch(d.kind){case 1:ne="Mention",we="Mentioned you in an event.",Ye="heroicons_outline:at-symbol";break;case 4:ne="Private Message",we="Sent a private message.",Ye="heroicons_outline:envelope-open";break;case 9735:ne="Zap",we="Received a zap event.",Ye="feather:zap";break;case 3:ne="New Follower",we="You have a new follower.",Ye="heroicons_outline:user-plus";break;case 7:ne="New Like",we="You have a new Like.",Ye="heroicons_outline:hand-thumb-up";break;default:ne="Notification",Ye="heroicons_outline:bell"}const pn=[{id:d.id,icon:Ye,title:ne,description:we,time:W,kind:d.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(pn),this.incrementNotificationCount(d.created_at)}}incrementNotificationCount(d){const v=this.notificationCount.value+1;this.notificationCount.next(v),this.saveNotificationData(v,d)}markAllAsRead(){this.notificationSubject.value.map(D=>({...D,read:!0})),this.notificationSubject.next([]),this.notificationCount.next(0);const v=Math.floor(Date.now()/1e3);this.saveNotificationData(0,v)}isNotificationEvent(d,v){return d.tags.some(D=>"p"===D[0]&&D[1]===v)}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(Z_.b))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Oc=r(6324);const Lf=["notificationsOrigin"],Lg=["notificationsPanel"],Pg=_=>({unread:_});function Ph(_,m){if(1&_&&(c.j41(0,"span",4)(1,"span",6),c.EFF(2),c.k0s()()),2&_){const d=c.XpG();c.R7$(2),c.SpI(" ",d.unreadCount()," ")}}function $l(_,m){1&_&&c.eu8(0)}function q_(_,m){if(1&_&&(c.j41(0,"a",18),c.DNE(1,$l,1,0,"ng-container",20),c.k0s()),2&_){const d=c.XpG(2).$implicit,v=c.sdS(4);c.Y8G("href",d.link,c.B4B),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function Oa(_,m){1&_&&c.eu8(0)}function J_(_,m){if(1&_&&(c.j41(0,"a",19),c.DNE(1,Oa,1,0,"ng-container",20),c.k0s()),2&_){const d=c.XpG(2).$implicit,v=c.sdS(4);c.Y8G("routerLink",d.link),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function ey(_,m){if(1&_&&c.DNE(0,q_,2,2,"a",18)(1,J_,2,2,"a",19),2&_){const d=c.XpG().$implicit;c.vxM(d.useRouter?-1:0),c.R7$(),c.vxM(d.useRouter?1:-1)}}function Qp(_,m){1&_&&c.eu8(0)}function Fg(_,m){if(1&_&&(c.j41(0,"div",17),c.DNE(1,Qp,1,0,"ng-container",20),c.k0s()),2&_){c.XpG();const d=c.sdS(4);c.R7$(),c.Y8G("ngTemplateOutlet",d)}}function Bg(_,m){if(1&_&&(c.j41(0,"div",21),c.nrm(1,"mat-icon",27),c.k0s()),2&_){const d=c.XpG(2).$implicit;c.R7$(),c.Y8G("svgIcon",d.icon)}}function ty(_,m){if(1&_&&c.nrm(0,"img",22),2&_){const d=c.XpG(2).$implicit;c.Y8G("src",d.image,c.B4B)("alt","Notification image")}}function _w(_,m){if(1&_&&c.nrm(0,"div",24),2&_){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.title,c.npT)}}function Ug(_,m){if(1&_&&c.nrm(0,"div",25),2&_){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.description,c.npT)}}function ny(_,m){if(1&_&&(c.DNE(0,Bg,2,1,"div",21)(1,ty,1,2,"img",22),c.j41(2,"div",23),c.DNE(3,_w,1,1,"div",24)(4,Ug,1,1,"div",25),c.j41(5,"div",26),c.EFF(6),c.nI1(7,"date"),c.k0s()()),2&_){const d=c.XpG().$implicit;c.vxM(d.icon&&!d.image?0:-1),c.R7$(),c.vxM(d.image?1:-1),c.R7$(2),c.vxM(d.title?3:-1),c.R7$(),c.vxM(d.description?4:-1),c.R7$(2),c.SpI(" ",c.i5U(7,5,d.time,"MMM dd, h:mm a")," ")}}function Pf(_,m){if(1&_&&(c.j41(0,"div",16),c.DNE(1,ey,2,2)(2,Fg,2,1,"div",17),c.k0s(),c.DNE(3,ny,8,8,"ng-template",null,2,c.C5r)),2&_){const d=m.$implicit;c.Y8G("ngClass",c.eq3(3,Pg,!d.read)),c.R7$(),c.vxM(d.link?1:-1),c.R7$(),c.vxM(d.link?-1:2)}}function Zp(_,m){1&_&&(c.j41(0,"div",15)(1,"div",28),c.nrm(2,"mat-icon",29),c.k0s(),c.j41(3,"div",30),c.EFF(4," No notifications "),c.k0s(),c.j41(5,"div",31),c.EFF(6," When you have notifications, they will appear here. "),c.k0s()()),2&_&&(c.R7$(2),c.Y8G("svgIcon","heroicons_outline:bell"))}function qp(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.closePanel())}),c.nrm(4,"mat-icon",10),c.k0s()(),c.j41(5,"div",11),c.EFF(6,"Notifications"),c.k0s(),c.j41(7,"div",12)(8,"button",13),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.markAllAsRead())}),c.nrm(9,"mat-icon",10),c.k0s()()(),c.j41(10,"div",14),c.Z7z(11,Pf,5,5,null,null,c.BUC().trackByFn,!0),c.DNE(13,Zp,7,1,"div",15),c.k0s()()}if(2&_){const d=c.XpG();c.R7$(4),c.Y8G("svgIcon","heroicons_solid:x-mark"),c.R7$(4),c.Y8G("matTooltip","Mark all as read")("disabled",0===d.unreadCount()),c.R7$(),c.Y8G("svgIcon","heroicons_solid:envelope-open"),c.R7$(2),c.Dyx(d.notifications()),c.R7$(2),c.vxM(d.notifications()&&d.notifications().length?-1:13)}}let nd=(()=>{class _{constructor(){this.notifications=(0,c.vPA)([]),this.unreadCount=(0,c.vPA)(0),this._unsubscribeAll=new Wa.B,this._notificationService=(0,c.WQX)(Ng),this._changeDetectorRef=(0,c.WQX)(c.gRc),this._overlay=(0,c.WQX)(Qc.hJ),this._viewContainerRef=(0,c.WQX)(c.c1b),this._signerService=(0,c.WQX)(Oc.A)}ngOnInit(){const d=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(d).then(()=>{this._notificationService.getNotificationObservable().pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(v=>{this.notifications.set(v),this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(v=>{this.unreadCount.set(v),this._changeDetectorRef.markForCheck()})})}deleteNotification(d){throw new Error("Method not implemented.")}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new Rg.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead(),this.notifications.set([]),this._changeDetectorRef.markForCheck()}trackByFn(d,v){return v.id}_createOverlay(){this._overlayRef=this._overlay.create({hasBackdrop:!0,backdropClass:"angor-backdrop-on-mobile",scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().flexibleConnectedTo(this._notificationsOrigin._elementRef.nativeElement).withLockedPosition(!0).withPush(!0).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["notifications"]],viewQuery:function(v,D){if(1&v&&(c.GBs(Lf,5),c.GBs(Lg,5)),2&v){let W;c.mGM(W=c.lsd())&&(D._notificationsOrigin=W.first),c.mGM(W=c.lsd())&&(D._notificationsPanel=W.first)}},exportAs:["notifications"],decls:6,vars:2,consts:[["notificationsOrigin",""],["notificationsPanel",""],["notificationContent",""],["mat-icon-button","",3,"click"],[1,"absolute","left-0","right-0","top-0","flex","h-3","items-center","justify-center"],[3,"svgIcon"],[1,"ml-4","mt-2.5","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded-full","bg-teal-600","px-1","text-xs","font-medium","text-indigo-50"],[1,"fixed","inset-0","flex","flex-col","overflow-hidden","shadow-lg","sm:static","sm:inset-auto","sm:w-90","sm:min-w-90","sm:rounded-2xl"],[1,"flex","shrink-0","items-center","bg-primary","py-4","pl-6","pr-4","text-on-primary"],[1,"-ml-1","mr-3","sm:hidden"],[1,"text-current","icon-size-5",3,"svgIcon"],[1,"text-lg","font-medium","leading-10"],[1,"ml-auto"],["mat-icon-button","",1,"dark:text-white",3,"click","matTooltip","disabled"],[1,"bg-card","relative","flex","flex-auto","flex-col","divide-y","overflow-y-auto","sm:max-h-120"],[1,"flex","flex-auto","flex-col","items-center","justify-center","px-8","py-12","sm:justify-start"],[1,"group","flex","hover:bg-gray-50","dark:hover:bg-black","dark:hover:bg-opacity-5",3,"ngClass"],[1,"flex","flex-auto","py-5","pl-6"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"href"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"routerLink"],[4,"ngTemplateOutlet"],[1,"mr-4","flex","h-8","w-8","shrink-0","items-center","justify-center","rounded-full","bg-gray-100","dark:bg-gray-700"],[1,"mr-4","h-8","w-8","shrink-0","overflow-hidden","rounded-full","object-cover","object-center",3,"src","alt"],[1,"flex","flex-auto","flex-col"],[1,"line-clamp-1","font-semibold",3,"innerHTML"],[1,"line-clamp-2",3,"innerHTML"],[1,"text-secondary","mt-2","text-sm","leading-none"],[1,"icon-size-5",3,"svgIcon"],[1,"flex","h-14","w-14","flex-0","items-center","justify-center","rounded-full","bg-primary-100","dark:bg-primary-600"],[1,"text-primary-700","dark:text-primary-50",3,"svgIcon"],[1,"mt-5","text-2xl","font-semibold","tracking-tight"],[1,"text-secondary","mt-1","w-full","max-w-60","text-center","text-md"]],template:function(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",3,0),c.bIt("click",function(){return c.eBV(W),c.Njj(D.openPanel())}),c.DNE(2,Ph,3,1,"span",4),c.nrm(3,"mat-icon",5),c.k0s(),c.DNE(4,qp,14,5,"ng-template",null,1,c.C5r)}2&v&&(c.R7$(2),c.vxM(D.unreadCount()>0?2:-1),c.R7$(),c.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[_l.Hl,_l.iY,il.m_,il.An,pc.uc,pc.oV,st.YU,st.T3,a.Wk,st.vh],encapsulation:2,changeDetection:0})}}return _})();var Zc=r(9417),Fh=r(5542),Jl=r(9888),Bh=r(8359),Jp=r(8203),mc=r(7336),em=r(9327),tm=r(9172);const ry=["panel"],iy=["*"];function $d(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",1,0),c.bIt("@panelAnimation.done",function(D){c.eBV(d);const W=c.XpG();return c.Njj(W._animationDone.next(D))}),c.SdG(2),c.k0s()}if(2&_){const d=m.id,v=c.XpG();c.HbH(v._classList),c.AVh("mat-mdc-autocomplete-visible",v.showPanel)("mat-mdc-autocomplete-hidden",!v.showPanel)("mat-primary","primary"===v._color)("mat-accent","accent"===v._color)("mat-warn","warn"===v._color),c.Y8G("id",v.id)("@panelAnimation",v.isOpen?"visible":"hidden"),c.BMQ("aria-label",v.ariaLabel||null)("aria-labelledby",v._getPanelAriaLabelledby(d))}}const Uh=(0,Tr.hZ)("panelAnimation",[(0,Tr.wk)("void, hidden",(0,Tr.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,Tr.kY)(":enter, hidden => visible",[(0,Tr.Os)([(0,Tr.i0)("0.03s linear",(0,Tr.iF)({opacity:1})),(0,Tr.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Tr.iF)({transform:"scaleY(1)"}))])]),(0,Tr.kY)(":leave, visible => hidden",[(0,Tr.i0)("0.075s linear",(0,Tr.iF)({opacity:0}))])]);class yw{source;option;constructor(m,d){this.source=m,this.option=d}}const nm=new c.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function oy(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let $g=(()=>{class _{_changeDetectorRef=(0,c.WQX)(c.gRc);_elementRef=(0,c.WQX)(c.aKT);_defaults=(0,c.WQX)(nm);_activeOptionChanges=Bh.yU.EMPTY;_animationDone=new c.bkB;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(d){this._color=d,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new c.bkB;opened=new c.bkB;closed=new c.bkB;optionActivated=new c.bkB;set classList(d){this._classList=d,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(d){this._hideSingleSelectionIndicator=d,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const d of this.options)d._changeDetectorRef.markForCheck()}id=(0,c.WQX)(Jl.g7).getId("mat-autocomplete-");inertGroups;constructor(){const d=(0,c.WQX)(Ie.OD);this.inertGroups=d?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Jl.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(d=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[d]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(d){this.panel&&(this.panel.nativeElement.scrollTop=d)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(d){const v=new yw(this,d);this.optionSelected.emit(v)}_getPanelAriaLabelledby(d){return this.ariaLabel?null:this.ariaLabelledby?(d?d+" ":"")+this.ariaLabelledby:d}_skipPredicate(){return!1}static \u0275fac=function(v){return new(v||_)};static \u0275cmp=c.VBU({type:_,selectors:[["mat-autocomplete"]],contentQueries:function(v,D,W){if(1&v&&(c.wni(W,Xt.wT,5),c.wni(W,Xt.QC,5)),2&v){let ne;c.mGM(ne=c.lsd())&&(D.options=ne),c.mGM(ne=c.lsd())&&(D.optionGroups=ne)}},viewQuery:function(v,D){if(1&v&&(c.GBs(c.C4Q,7),c.GBs(ry,5)),2&v){let W;c.mGM(W=c.lsd())&&(D.template=W.first),c.mGM(W=c.lsd())&&(D.panel=W.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",c.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",c.L39],requireSelection:[2,"requireSelection","requireSelection",c.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",c.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",c.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[c.Jv_([{provide:Xt.is,useExisting:_}]),c.GFd],ngContentSelectors:iy,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(v,D){1&v&&(c.NAR(),c.DNE(0,$d,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Uh]},changeDetection:0})}return _})();const jg={provide:Zc.kq,useExisting:(0,c.Rfq)(()=>ay),multi:!0},rm=new c.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const _=(0,c.WQX)(Qc.hJ);return()=>_.scrollStrategies.reposition()}}),sy={provide:rm,deps:[Qc.hJ],useFactory:function rd(_){return()=>_.scrollStrategies.reposition()}};let ay=(()=>{class _{_element=(0,c.WQX)(c.aKT);_overlay=(0,c.WQX)(Qc.hJ);_viewContainerRef=(0,c.WQX)(c.c1b);_zone=(0,c.WQX)(c.SKi);_changeDetectorRef=(0,c.WQX)(c.gRc);_dir=(0,c.WQX)(Jp.dS,{optional:!0});_formField=(0,c.WQX)(yn.xb,{optional:!0,host:!0});_document=(0,c.WQX)(st.qQ);_viewportRuler=(0,c.WQX)(Fh.Xj);_defaults=(0,c.WQX)(nm,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=(0,c.WQX)(rm);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Bh.yU.EMPTY;_breakpointObserver=(0,c.WQX)(em.QP);_handsetLandscapeSubscription=Bh.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new Wa.B;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;_initialized=new Wa.B;_injector=(0,c.WQX)(c.zZn);constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const d=this._getWindow();typeof d<"u"&&this._zone.runOutsideAngular(()=>d.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(d){d.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const d=this._getWindow();typeof d<"u"&&d.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,Jl.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,ml.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ht.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ht.p)(()=>this._overlayAttached)):(0,I.of)()).pipe((0,$s.T)(d=>d instanceof Xt.MI?d:null))}optionSelections=(0,Md.v)(()=>{const d=this.autocomplete?this.autocomplete.options:null;return d?d.changes.pipe((0,tm.Z)(d),(0,me.n)(()=>(0,ml.h)(...d.map(v=>v.onSelectionChange)))):this._initialized.pipe((0,me.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,ml.h)((0,kd.R)(this._document,"click"),(0,kd.R)(this._document,"auxclick"),(0,kd.R)(this._document,"touchend")).pipe((0,ht.p)(d=>{const v=(0,Ie.Fb)(d),D=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,W=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&v!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!D||!D.contains(v))&&(!W||!W.contains(v))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(v)}))}writeValue(d){Promise.resolve(null).then(()=>this._assignOptionValue(d))}registerOnChange(d){this._onChange=d}registerOnTouched(d){this._onTouched=d}setDisabledState(d){this._element.nativeElement.disabled=d}_handleKeydown(d){const v=d.keyCode,D=(0,mc.rp)(d);if(v===mc._f&&!D&&d.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&v===mc.Fm&&this.panelOpen&&!D)this.activeOption._selectViaInteraction(),this._resetActiveItem(),d.preventDefault();else if(this.autocomplete){const W=this.autocomplete._keyManager.activeItem,ne=v===mc.i7||v===mc.n6;v===mc.wn||ne&&!D&&this.panelOpen?this.autocomplete._keyManager.onKeydown(d):ne&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(ne||this.autocomplete._keyManager.activeItem!==W)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(d){let v=d.target,D=v.value;if("number"===v.type&&(D=""==D?null:parseFloat(D)),this._previousValue!==D){if(this._previousValue=D,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(D),D){if(this.panelOpen&&!this.autocomplete.requireSelection){const W=this.autocomplete.options?.find(ne=>ne.selected);W&&D!==this._getDisplayValue(W.value)&&W.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===d.target){const W=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(W)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(d=!1){this._formField&&"auto"===this._formField.floatLabel&&(d?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const d=new S.c(D=>{(0,c.mal)(()=>{D.next()},{injector:this._injector})}),v=this.autocomplete.options.changes.pipe((0,Ic.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,be.c)(0));return(0,ml.h)(d,v).pipe((0,me.n)(()=>this._zone.run(()=>{const D=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),D!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,A.s)(1)).subscribe(D=>this._setValueAndClose(D))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(d){const v=this.autocomplete;return v&&v.displayWith?v.displayWith(d):d}_assignOptionValue(d){const v=this._getDisplayValue(d);null==d&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(v??"")}_updateNativeInputValue(d){this._formField?this._formField._control.value=d:this._element.nativeElement.value=d,this._previousValue=d}_setValueAndClose(d){const v=this.autocomplete,D=d?d.source:this._pendingAutoselectedOption;D?(this._clearPreviousSelectedOption(D),this._assignOptionValue(D.value),this._onChange(D.value),v._emitSelectEvent(D),this._element.nativeElement.focus()):v.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),v._animationDone?v._animationDone.pipe((0,A.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(d,v){this.autocomplete?.options?.forEach(D=>{D!==d&&D.selected&&D.deselect(v)})}_openPanelInternal(d=this._element.nativeElement.value){this._attachOverlay(d),this._floatLabel(),this._trackedModal&&(0,Jl.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(d){let v=this._overlayRef;v?(this._positionStrategy.setOrigin(this._getConnectedElement()),v.updateSize({width:this._getPanelWidth()})):(this._portal=new Rg.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),v=this._overlay.create(this._getOverlayConfig()),this._overlayRef=v,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&v&&v.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(em.Rp.HandsetLandscape).subscribe(W=>{W.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),v&&!v.hasAttached()&&(v.attach(this._portal),this._valueOnAttach=d,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const D=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&D!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=d=>{(d.keyCode===mc._f&&!(0,mc.rp)(d)||d.keyCode===mc.i7&&(0,mc.rp)(d,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),d.stopPropagation(),d.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const d=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=d.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=d.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Qc.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const d=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(d),this._positionStrategy=d,d}_setStrategyPositions(d){const v=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],D=this._aboveClass,W=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:D},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:D}];let ne;ne="above"===this.position?W:"below"===this.position?v:[...v,...W],d.withPositions(ne)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const d=this.autocomplete;if(d.autoActiveFirstOption){let v=-1;for(let D=0;D<d.options.length;D++)if(!d.options.get(D).disabled){v=D;break}d._keyManager.setActiveItem(v)}else d._keyManager.setActiveItem(-1)}_canOpen(){const d=this._element.nativeElement;return!d.readOnly&&!d.disabled&&!this.autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(d){const v=this.autocomplete,D=(0,Xt.jb)(d,v.options,v.optionGroups);if(0===d&&1===D)v._setScrollTop(0);else if(v.panel){const W=v.options.toArray()[d];if(W){const ne=W._getHostElement(),we=(0,Xt.TL)(ne.offsetTop,ne.offsetHeight,v._getScrollTop(),v.panel.nativeElement.offsetHeight);v._setScrollTop(we)}}}_trackedModal=null;_applyModalPanelOwnership(){const d=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!d)return;const v=this.autocomplete.id;this._trackedModal&&(0,Jl.Ae)(this._trackedModal,"aria-owns",v),(0,Jl.px)(d,"aria-owns",v),this._trackedModal=d}_clearFromModal(){this._trackedModal&&((0,Jl.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(v){return new(v||_)};static \u0275dir=c.FsC({type:_,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(v,D){1&v&&c.bIt("focusin",function(){return D._handleFocus()})("blur",function(){return D._onTouched()})("input",function(ne){return D._handleInput(ne)})("keydown",function(ne){return D._handleKeydown(ne)})("click",function(){return D._handleClick()}),2&v&&c.BMQ("autocomplete",D.autocompleteAttribute)("role",D.autocompleteDisabled?null:"combobox")("aria-autocomplete",D.autocompleteDisabled?null:"list")("aria-activedescendant",D.panelOpen&&D.activeOption?D.activeOption.id:null)("aria-expanded",D.autocompleteDisabled?null:D.panelOpen.toString())("aria-controls",D.autocompleteDisabled||!D.panelOpen||null==D.autocomplete?null:D.autocomplete.id)("aria-haspopup",D.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",c.L39]},exportAs:["matAutocompleteTrigger"],features:[c.Jv_([jg]),c.GFd,c.OA$]})}return _})(),im=(()=>{class _{static \u0275fac=function(v){return new(v||_)};static \u0275mod=c.$C({type:_});static \u0275inj=c.G2t({providers:[sy],imports:[Qc.z_,Xt.Sy,Xt.yE,Fh.Gj,Xt.Sy,Xt.yE]})}return _})();var ww=r(9042),$h=r(7291),jh=r(152);const ly=["barSearchInput"],Vg=["matAutocomplete"],Hg=(_,m)=>m.id;function cy(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",4),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.open())}),c.nrm(1,"mat-icon",5),c.k0s()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function om(_,m){1&_&&(c.j41(0,"mat-option",9),c.EFF(1," No results found! "),c.k0s())}function Wg(_,m){if(1&_){const d=c.RV6();c.j41(0,"img",19),c.bIt("error",function(D){c.eBV(d);const W=c.XpG(5);return c.Njj(W.handleImageError(D))}),c.k0s()}if(2&_){const d=c.XpG().$implicit;c.FS9("alt",d.name),c.Y8G("src",d.avatar,c.B4B)}}function uy(_,m){1&_&&c.nrm(0,"mat-icon",15),2&_&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function dy(_,m){if(1&_&&(c.j41(0,"div",18),c.EFF(1),c.k0s()),2&_){const d=c.XpG().$implicit;c.R7$(),c.JRh(d.about)}}function Vh(_,m){if(1&_&&(c.j41(0,"mat-option",11)(1,"div",12)(2,"div",13),c.DNE(3,Wg,1,2,"img",14)(4,uy,1,1,"mat-icon",15),c.k0s(),c.j41(5,"div",16)(6,"span",17),c.EFF(7),c.k0s(),c.DNE(8,dy,2,1,"div",18),c.k0s()()()),2&_){const d=m.$implicit;c.Y8G("routerLink",d.link)("value",d.name),c.R7$(3),c.vxM(d.avatar?3:4),c.R7$(4),c.JRh(d.name),c.R7$(),c.vxM(d.about?8:-1)}}function zg(_,m){1&_&&c.Z7z(0,Vh,9,5,"mat-option",11,Hg),2&_&&c.Dyx(m.$implicit.results)}function sm(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",3),c.nrm(1,"mat-icon",6),c.j41(2,"input",7,0),c.bIt("keydown",function(D){c.eBV(d);const W=c.XpG(2);return c.Njj(W.onKeydown(D))}),c.k0s(),c.j41(4,"mat-autocomplete",8,1),c.DNE(6,om,2,0,"mat-option",9),c.Z7z(7,zg,2,0,null,null,Hg),c.k0s(),c.j41(9,"button",10),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.close())}),c.nrm(10,"mat-icon",5),c.k0s()()}if(2&_){let d;const v=c.sdS(5),D=c.XpG(2);c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"),c.R7$(),c.Y8G("formControl",D.searchControl)("matAutocomplete",v),c.R7$(4),c.vxM(0===(null==(d=D.resultSets())?null:d.length)?6:-1),c.R7$(),c.Dyx(D.resultSets()),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:x-mark")}}function hy(_,m){if(1&_&&c.DNE(0,cy,2,1,"button",2)(1,sm,11,5,"div",3),2&_){const d=c.XpG();c.vxM(d.opened()?-1:0),c.R7$(),c.vxM(d.opened()?1:-1)}}let fy=(()=>{class _{constructor(){this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new c.bkB,this.searchControl=new Zc.hs,this.resultSets=(0,c.vPA)([]),this.opened=(0,c.vPA)(!1),this.unsubscribeAll=new Wa.B,this.storageService=(0,c.WQX)($h.n)}ngOnInit(){this.initializeSearch()}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}initializeSearch(){var d=this;this.searchControl.valueChanges.pipe((0,jh.B)(this.debounce),(0,vl.Q)(this.unsubscribeAll),(0,$s.T)(v=>((!v||v.length<this.minLength)&&this.resultSets.set([]),v)),(0,ht.p)(v=>v&&v.length>=this.minLength)).subscribe(function(){var v=(0,w.A)(function*(D){const ne=(yield d.storageService.searchProfile(D)).map(we=>({label:"Project",results:[{name:we.profile.name||we.profile.displayName||we.pubKey,pubkey:we.pubKey,about:we.profile.about?.replace(/<\/?[^>]+(>|$)/g,"")||"",avatar:we.profile.picture||null,link:`/profile/${we.pubKey}`}]}));d.resultSets.set(ne),d.search.emit(ne)});return function(D){return v.apply(this,arguments)}}())}onKeydown(d){"Escape"===d.key&&this.close()}open(){this.opened()||this.opened.set(!0)}close(){this.opened()&&(this.searchControl.setValue(""),this.opened.set(!1))}handleImageError(d){const v=d.target;v.onerror=null,v.src="images/avatars/avatar-placeholder.png"}trackByFn(d,v){return v.id||d}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["search"]],viewQuery:function(v,D){if(1&v&&(c.GBs(ly,5),c.GBs(Vg,5)),2&v){let W;c.mGM(W=c.lsd())&&(D.barSearchInput=W.first),c.mGM(W=c.lsd())&&(D.matAutocomplete=W.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},decls:2,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],["mat-icon-button",""],[1,"bg-card","absolute","inset-0","z-99","flex","items-center"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],["placeholder","Search...",1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete"],[1,"max-h-128","rounded-b","border-t","shadow-md"],[1,"text-secondary","pointer-events-none"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5",3,"click"],[3,"routerLink","value"],[1,"flex","items-center"],[1,"h-8","w-8","rounded-full","bg-primary-100","dark:bg-primary-800"],[1,"h-full","w-full","object-cover",3,"src","alt"],[1,"m-0","text-primary",3,"svgIcon"],[1,"ml-3","truncate"],[1,"font-semibold"],[1,"text-sm","text-gray-500"],[1,"h-full","w-full","object-cover",3,"error","src","alt"]],template:function(v,D){1&v&&(c.j41(0,"div"),c.DNE(1,hy,2,2),c.k0s()),2&v&&(c.R7$(),c.vxM("bar"===D.appearance?1:-1))},dependencies:[_l.Hl,_l.iY,il.m_,il.An,Zc.X1,Zc.me,Zc.BC,Zc.l_,im,$g,Xt.wT,ay,Xt.Sy,a.Wk,yn.RG,ww.fS,st.MD],encapsulation:2})}}return _})();var py=r(881),jd=r(1997),Ff=r(9115),Bf=r(2332);let Hh=(()=>{class _{constructor(){this.signerService=(0,c.WQX)(Oc.A),this.router=(0,c.WQX)(a.Ix),this.angorConfirmationService=(0,c.WQX)(xe.m)}isLoggedIn(){return!!this.signerService.getPublicKey()}promptLogin(){this.angorConfirmationService.open({title:"Login",message:"Would you like to login now?",icon:{show:!0,name:"heroicons_solid:user",color:"primary"},actions:{confirm:{show:!0,label:"Yes, Login",color:"primary"},cancel:{show:!0,label:"No, Thanks"}},dismissible:!0}).afterClosed().subscribe(v=>{"confirmed"===v&&this.router.navigate(["/login"])})}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const Uf=()=>["/settings"];function Ew(_,m){if(1&_&&c.nrm(0,"img",5),2&_){let d;const v=c.XpG();c.Y8G("src",v.getSafeUrl(null==(d=v.user())?null:d.picture),c.B4B)}}function xw(_,m){1&_&&c.nrm(0,"mat-icon",6),2&_&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function Kg(_,m){if(1&_){const d=c.RV6();c.qex(0),c.j41(1,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.Switch())}),c.nrm(2,"mat-icon",6),c.j41(3,"span"),c.EFF(4,"Switch account"),c.k0s()(),c.j41(5,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.profile())}),c.nrm(6,"mat-icon",6),c.j41(7,"span"),c.EFF(8,"Profile"),c.k0s()(),c.j41(9,"button",11),c.nrm(10,"mat-icon",6),c.j41(11,"span"),c.EFF(12,"Options"),c.k0s()(),c.nrm(13,"mat-divider",12),c.j41(14,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.logout())}),c.nrm(15,"mat-icon",6),c.j41(16,"span"),c.EFF(17,"logout"),c.k0s()(),c.bVm()}if(2&_){c.XpG();const d=c.sdS(10);c.R7$(2),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(4),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(3),c.Y8G("matMenuTriggerFor",d),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),c.R7$(5),c.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle")}}function my(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.authService.promptLogin())}),c.nrm(1,"mat-icon",6),c.j41(2,"span"),c.EFF(3,"Login"),c.k0s()()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:user"))}let am=(()=>{class _{constructor(){this.user=(0,c.vPA)(null),this.config=(0,c.vPA)(null),this.userPubKey=(0,c.vPA)(""),this.signerService=(0,c.WQX)(Oc.A),this.storageService=(0,c.WQX)($h.n),this.angorConfigService=(0,c.WQX)(py.P),this.router=(0,c.WQX)(a.Ix),this.sanitizer=(0,c.WQX)(i.up),this.nostrLoginService=(0,c.WQX)(Bf.v),this.authService=(0,c.WQX)(Hh),this.userPubKey.set(this.signerService.getPublicKey()),this.authService.isLoggedIn()&&this.loadUserProfile(),(0,c.QZP)(()=>{this.config.set(this.angorConfigService.config),this.config()&&localStorage.setItem("angorConfig",JSON.stringify(this.config()))}),this.storageService.profile$.subscribe(d=>{d&&d.pubKey===this.userPubKey()&&this.user.set(d.metadata||{})})}loadUserProfile(){this.storageService.getProfile(this.userPubKey()).then(d=>{this.user.set(d||{})})}logout(){this.router.navigate(["/logout"])}Switch(){this.nostrLoginService.switchAccount()}profile(){this.router.navigate(["/profile"])}setScheme(d){this.angorConfigService.config={scheme:d}}setTheme(d){this.angorConfigService.config={theme:d}}getSafeUrl(d){return this.sanitizer.bypassSecurityTrustUrl(d)}switchAccount(){this.nostrLoginService.switchAccount()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["user"]],decls:28,vars:11,consts:[["userActions","matMenu"],["loginMenu",""],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"],[3,"svgIcon"],[3,"xPosition"],[4,"ngIf","ngIfElse"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"matMenuTriggerFor"],[1,"my-2"]],template:function(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",3)(1,"span",4),c.DNE(2,Ew,1,1,"img",5)(3,xw,1,1,"mat-icon",6),c.k0s()(),c.j41(4,"mat-menu",7,0),c.DNE(6,Kg,18,5,"ng-container",8)(7,my,4,1,"ng-template",null,1,c.C5r),c.k0s(),c.j41(9,"mat-menu",null,2)(11,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("auto"))}),c.nrm(12,"mat-icon",6),c.j41(13,"span"),c.EFF(14,"Auto Theme"),c.k0s()(),c.j41(15,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("light"))}),c.nrm(16,"mat-icon",6),c.j41(17,"span"),c.EFF(18,"Light Theme"),c.k0s()(),c.j41(19,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("dark"))}),c.nrm(20,"mat-icon",6),c.j41(21,"span"),c.EFF(22,"Dark Theme"),c.k0s()(),c.nrm(23,"mat-divider"),c.j41(24,"button",10),c.nrm(25,"mat-icon",6),c.j41(26,"span"),c.EFF(27,"Settings"),c.k0s()()()}if(2&v){let W;const ne=c.sdS(5),we=c.sdS(8);c.Y8G("matMenuTriggerFor",ne),c.R7$(2),c.vxM(null!=(W=D.user())&&W.picture?2:3),c.R7$(2),c.Y8G("xPosition","before"),c.R7$(2),c.Y8G("ngIf",D.authService.isLoggedIn())("ngIfElse",we),c.R7$(6),c.Y8G("svgIcon","heroicons_solid:bolt"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:sun"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:moon"),c.R7$(4),c.Y8G("routerLink",c.lJ4(10,Uf)),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth")}},dependencies:[_l.Hl,_l.iY,Ff.Cn,Ff.kk,Ff.fb,Ff.Cp,il.m_,il.An,jd.w,jd.q,st.MD,st.bT,a.iI,a.Wk],encapsulation:2,changeDetection:0})}}return _})();var lm=r(605);let Gg=(()=>{class _{constructor(d,v){this.swUpdate=d,this.zone=v,this.newVersionAvailableSubject=new Re.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=(0,lm.Y)(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(d=>console.error("Failed to apply updates:",d))}checkForUpdateOnInterval(){var d=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,w.A)(function*(){try{(yield d.swUpdate.checkForUpdate())&&d.newVersionAvailableSubject.next(!0)}catch(v){console.error("Failed to check for updates:",v)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(d=>{switch(d.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${d.version.hash}': ${d.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(Qu),c.KVO(c.SKi))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();function id(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.applyUpdate())}),c.nrm(1,"mat-icon",2),c.k0s()}if(2&_){const d=c.XpG();c.Y8G("matTooltip",d.tooltip()),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let cm=(()=>{class _{constructor(){this.tooltip=(0,c.vPA)("Update App"),this.isNewVersionAvailable=(0,c.vPA)(!1),this.updateService=(0,c.WQX)(Gg),this.updateService.isNewVersionAvailable$.subscribe(d=>{this.isNewVersionAvailable.set(d)})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["update"]],decls:1,vars:1,consts:[["mat-icon-button","",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(v,D){1&v&&c.DNE(0,id,2,2,"button",0),2&v&&c.vxM(D.isNewVersionAvailable()?0:-1)},dependencies:[st.MD,_l.Hl,_l.iY,il.m_,il.An,pc.uc,pc.oV],encapsulation:2,changeDetection:0})}}return _})();const um=()=>["/"];function gy(_,m){if(1&_&&(c.j41(0,"angor-vertical-navigation",0),c.qex(1,9),c.j41(2,"div",10)(3,"a",11),c.nrm(4,"img",12),c.k0s()(),c.bVm(),c.k0s()),2&_){const d=c.XpG();c.Y8G("mode","over")("name","mainNavigation")("navigation",d.navigation.default)("opened",!1),c.R7$(3),c.Y8G("routerLink",c.lJ4(5,um))}}function vy(_,m){if(1&_&&(c.j41(0,"div",13)(1,"div",14)(2,"a",11),c.nrm(3,"img",15)(4,"img",16),c.k0s()(),c.j41(5,"a",11),c.nrm(6,"img",17),c.k0s()(),c.nrm(7,"angor-horizontal-navigation",18)),2&_){const d=c.XpG();c.R7$(2),c.Y8G("routerLink",c.lJ4(4,um)),c.R7$(3),c.Y8G("routerLink",c.lJ4(5,um)),c.R7$(2),c.Y8G("name","mainNavigation")("navigation",d.navigation.horizontal)}}function _y(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",19),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.toggleNavigation("mainNavigation"))}),c.nrm(1,"mat-icon",20),c.k0s()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:bars-3"))}function Xg(_,m){1&_&&c.nrm(0,"router-outlet")}let yy=(()=>{class _{constructor(d,v,D,W,ne){this._activatedRoute=d,this._router=v,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=ne,this._unsubscribeAll=new Wa.B,this.version=vs}ngOnInit(){this._navigationService.navigation$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const v=this._angorNavigationService.getComponent(d);v&&v.toggle()}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(ed),c.rXU(ae.l),c.rXU(Tu.lX))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["modern-layout"]],decls:16,vars:6,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","sm:h-20","md:px-6","print:hidden"],["mat-icon-button",""],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[3,"appearance"],[1,"flex","w-full","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","border-t","px-4","dark:bg-transparent","sm:h-20","md:px-6","print:hidden"],[1,"text-secondary","font-medium"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","px-8","pt-6"],[3,"routerLink"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.DNE(1,gy,5,6,"angor-vertical-navigation",0),c.j41(2,"div",1)(3,"div",2),c.DNE(4,vy,8,6)(5,_y,2,1,"button",3),c.j41(6,"div",4),c.nrm(7,"update")(8,"search",5)(9,"notifications")(10,"user"),c.k0s()(),c.j41(11,"div",6),c.DNE(12,Xg,1,0,"router-outlet"),c.k0s(),c.j41(13,"div",7)(14,"span",8),c.EFF(15),c.k0s()()()),2&v&&(c.R7$(),c.vxM(D.isScreenSmall?1:-1),c.R7$(3),c.vxM(D.isScreenSmall?-1:4),c.R7$(),c.vxM(D.isScreenSmall?5:-1),c.R7$(3),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(12),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Au,Tu.Tv,Tu.$w,_l.Hl,_l.iY,il.m_,il.An,fy,nd,am,a.n3,cm,a.iI,a.Wk],encapsulation:2})}}return _})();function by(_,m){1&_&&c.nrm(0,"mat-icon",3)}let wy=(()=>{class _{constructor(){this._document=(0,c.WQX)(st.qQ)}toggleFullscreen(){this._document.fullscreenEnabled?this._document.fullscreenElement?this._document.exitFullscreen():this._document.documentElement.requestFullscreen().catch(()=>{console.error("Entering fullscreen mode failed.")}):console.log("Fullscreen is not available in this browser.")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){return c.eBV(W),c.Njj(D.toggleFullscreen())}),c.eu8(1,2),c.k0s(),c.DNE(2,by,1,0,"ng-template",null,0,c.C5r)}if(2&v){const W=c.sdS(3);c.Y8G("matTooltip",D.tooltip||"Toggle Fullscreen"),c.R7$(),c.Y8G("ngTemplateOutlet",D.iconTpl||W)}},dependencies:[_l.Hl,_l.iY,pc.uc,pc.oV,st.T3,il.m_,il.An],encapsulation:2,changeDetection:0})}}return _})();function Ey(_,m){1&_&&c.nrm(0,"router-outlet")}let xy=(()=>{class _{constructor(d,v,D,W,ne){this._activatedRoute=d,this._router=v,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=ne,this._unsubscribeAll=new Wa.B,this.version=vs}ngOnInit(){this._navigationService.navigation$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const v=this._angorNavigationService.getComponent(d);v&&v.toggle()}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(ed),c.rXU(ae.l),c.rXU(Tu.lX))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["classic-layout"]],decls:22,vars:8,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","p-6"],["routerLink","/home"],["src","images/logo/logo-text.svg","alt","Angor Hub",1,"w-30","dark:hidden"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"hidden","w-30","dark:flex"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","md:px-6","print:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","justify-start","border-t","px-4","dark:bg-transparent","md:px-6","print:hidden"],[1,"text-secondary","font-medium"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"angor-vertical-navigation",0),c.qex(2,1),c.j41(3,"div",2)(4,"a",3),c.nrm(5,"img",4)(6,"img",5),c.k0s()(),c.bVm(),c.k0s(),c.j41(7,"div",6)(8,"div",7)(9,"button",8),c.bIt("click",function(){return D.toggleNavigation("mainNavigation")}),c.nrm(10,"mat-icon",9),c.k0s(),c.j41(11,"div",10),c.nrm(12,"update")(13,"angor-fullscreen",11)(14,"search",12)(15,"notifications")(16,"user"),c.k0s()(),c.j41(17,"div",13),c.DNE(18,Ey,1,0,"router-outlet"),c.k0s(),c.j41(19,"div",14)(20,"span",15),c.EFF(21),c.k0s()()()),2&v&&(c.R7$(),c.Y8G("mode",D.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",D.navigation.default)("opened",!D.isScreenSmall),c.R7$(9),c.Y8G("svgIcon","heroicons_outline:bars-3"),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(18),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Au,Tu.Tv,_l.Hl,_l.iY,il.m_,il.An,wy,fy,nd,am,a.n3,cm],encapsulation:2})}}return _})();function dm(_,m){1&_&&c.nrm(0,"empty-layout")}function Cy(_,m){1&_&&c.nrm(0,"modern-layout")}function Dy(_,m){1&_&&c.nrm(0,"classic-layout")}let Rc=(()=>{class _{constructor(d,v,D,W,ne,we,Ye){this._activatedRoute=d,this._document=v,this._renderer2=D,this._router=W,this._angorConfigService=ne,this._angorMediaWatcherService=we,this._angorPlatformService=Ye,this._unsubscribeAll=new Wa.B}ngOnInit(){(0,z.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,vl.Q)(this._unsubscribeAll),(0,$s.T)(([d,v])=>{const D={scheme:d.scheme,theme:d.theme};return"auto"===d.scheme&&(D.scheme=v.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),D})).subscribe(d=>{this.scheme=d.scheme,this.theme=d.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.config=d,this._updateLayout()}),this._router.events.pipe((0,ht.p)(d=>d instanceof a.wF),(0,vl.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",vs),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let d=this._activatedRoute;for(;d.firstChild;)d=d.firstChild;this.layout=this.config.layout;const v=d.snapshot.queryParamMap.get("layout");v&&(this.layout=v,this.config&&(this.config.layout=v)),d.pathFromRoot.forEach(W=>{W.routeConfig&&W.routeConfig.data&&W.routeConfig.data.layout&&(this.layout=W.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(d=>{d.startsWith("theme-")&&this._document.body.classList.remove(d,d.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(st.qQ),c.rXU(c.sFG),c.rXU(a.Ix),c.rXU(py.P),c.rXU(ae.l),c.rXU($e))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["layout"]],decls:3,vars:3,template:function(v,D){1&v&&c.DNE(0,dm,1,0,"empty-layout")(1,Cy,1,0,"modern-layout")(2,Dy,1,0,"classic-layout"),2&v&&(c.vxM("empty"===D.layout?0:-1),c.R7$(),c.vxM("modern"===D.layout?1:-1),c.R7$(),c.vxM("classic"===D.layout?2:-1))},dependencies:[Lh,yy,xy],styles:["layout{display:flex;flex:1 1 auto;width:100%;max-width:100%;min-width:0}layout>*{position:relative;display:flex;flex:1 1 auto;width:100%}layout router-outlet+*{position:relative;display:flex;flex:1 1 auto;width:100%}\n"],encapsulation:2})}}return _})();const od=()=>((0,c.WQX)(Oc.A),!0),hm=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:Rc,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([r.e(588),r.e(770)]).then(r.bind(r,770))},{path:"create",loadChildren:()=>Promise.all([r.e(588),r.e(408)]).then(r.bind(r,1408))}]},{path:"",canActivate:[od],canActivateChild:[od],component:Rc,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>r.e(514).then(r.bind(r,1514))}]},{path:"",canActivate:[od],canActivateChild:[od],component:Rc,resolve:{initialData:()=>{const _=(0,c.WQX)(ed);return(0,c.WQX)(Y_),(0,qu.p)([_.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(888),r.e(541)]).then(r.bind(r,5541))},{path:"explore",loadChildren:()=>Promise.all([r.e(735),r.e(450),r.e(218),r.e(206)]).then(r.bind(r,7206))},{path:"zap",loadChildren:()=>Promise.all([r.e(416),r.e(551)]).then(r.bind(r,8551))},{path:"bookmark",loadChildren:()=>Promise.all([r.e(735),r.e(450),r.e(218),r.e(364)]).then(r.bind(r,8364))},{path:"profile",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"profile/:pubkey/:project",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"post",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(865),r.e(888),r.e(837)]).then(r.bind(r,2218))},{path:"post/:id",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(865),r.e(888),r.e(837)]).then(r.bind(r,2218))},{path:"settings",loadChildren:()=>Promise.all([r.e(416),r.e(450),r.e(740)]).then(r.bind(r,1740))},{path:"settings/:id",loadChildren:()=>Promise.all([r.e(416),r.e(450),r.e(740)]).then(r.bind(r,1740))},{path:"chat",loadChildren:()=>Promise.all([r.e(416),r.e(861),r.e(865),r.e(307)]).then(r.bind(r,6307))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>r.e(258).then(r.bind(r,5258))},{path:"**",redirectTo:"404-not-found"}]}];let Vd=(()=>{class _{constructor(){const d=(0,c.WQX)(i.up),v=(0,c.WQX)(il.tp);v.addSvgIconSet(d.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),v.addSvgIconSetInNamespace("mat_outline",d.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),v.addSvgIconSetInNamespace("mat_solid",d.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),v.addSvgIconSetInNamespace("feather",d.bypassSecurityTrustResourceUrl("icons/feather.svg")),v.addSvgIconSetInNamespace("heroicons_outline",d.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),v.addSvgIconSetInNamespace("heroicons_solid",d.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),v.addSvgIconSetInNamespace("heroicons_mini",d.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Ay=r(9350),Cw=r(7707);let fm=(()=>{class _{constructor(d){this.httpClient=d}getTranslation(d){return this.httpClient.get(`./i18n/${d}.json`)}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const Yg=[{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark",requiresLogin:!0},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",requiresLogin:!0},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile",requiresLogin:!0},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings",requiresLogin:!0}],Qg=[{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark",requiresLogin:!0},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",requiresLogin:!0},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile",requiresLogin:!0},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings",requiresLogin:!0}];var Zg=r(7730);var My=r(1984),jf=r(7517),Iy=r(6726),ky=r(5776);const Oy=(0,r(8992).A)(Object.keys,Object);var Ny=Object.prototype.hasOwnProperty;var Fy=r(1287);const pm=function qg(_){return(0,Fy.A)(_)?(0,Iy.A)(_):function Ly(_){if(!(0,ky.A)(_))return Oy(_);var m=[];for(var d in Object(_))Ny.call(_,d)&&"constructor"!=d&&m.push(d);return m}(_)};var mm=r(133);var Wh=r(9933),Jg=r(4528);const $y=function Dw(){return[]};var gm=Object.prototype.propertyIsEnumerable,Hf=Object.getOwnPropertySymbols;const nv=Hf?function(_){return null==_?[]:(_=Object(_),function ev(_,m){for(var d=-1,v=null==_?0:_.length,D=0,W=[];++d<v;){var ne=_[d];m(ne,d,_)&&(W[D++]=ne)}return W}(Hf(_),function(m){return gm.call(_,m)}))}:$y,iv=function Vy(_,m){for(var d=-1,v=m.length,D=_.length;++d<v;)_[D+d]=m[d];return _};var Hy=r(8010);const vm=Object.getOwnPropertySymbols?function(_){for(var m=[];_;)iv(m,nv(_)),_=(0,Hy.A)(_);return m}:$y;var _m=r(3744);const ym=function Wf(_,m,d){var v=m(_);return(0,_m.A)(_)?v:iv(v,d(_))},Gy=function bm(_){return ym(_,pm,nv)},sv=function ad(_){return ym(_,mm.A,vm)};var zf=r(4713),Wd=r(1860);const Em=(0,zf.A)(Wd.A,"DataView");var xm=r(6568);const Cm=(0,zf.A)(Wd.A,"Promise"),lv=(0,zf.A)(Wd.A,"Set"),ld=(0,zf.A)(Wd.A,"WeakMap");var cv=r(5281),zd=r(8736),uv="[object Map]",hv="[object Promise]",fv="[object Set]",pv="[object WeakMap]",mv="[object DataView]",Yy=(0,zd.A)(Em),Qy=(0,zd.A)(xm.A),Dm=(0,zd.A)(Cm),Mw=(0,zd.A)(lv),Iw=(0,zd.A)(ld),eu=cv.A;(Em&&eu(new Em(new ArrayBuffer(1)))!=mv||xm.A&&eu(new xm.A)!=uv||Cm&&eu(Cm.resolve())!=hv||lv&&eu(new lv)!=fv||ld&&eu(new ld)!=pv)&&(eu=function(_){var m=(0,cv.A)(_),d="[object Object]"==m?_.constructor:void 0,v=d?(0,zd.A)(d):"";if(v)switch(v){case Yy:return mv;case Qy:return uv;case Dm:return hv;case Mw:return fv;case Iw:return pv}return m});const gv=eu;var Ow=Object.prototype.hasOwnProperty;var vv=r(9750);var _v=/\w*$/;var wv=r(6944),Ev=wv.A?wv.A.prototype:void 0,Sm=Ev?Ev.valueOf:void 0;var xv=r(4314);const eb=function Tv(_,m,d){var v=_.constructor;switch(m){case"[object ArrayBuffer]":return(0,vv.A)(_);case"[object Boolean]":case"[object Date]":return new v(+_);case"[object DataView]":return function Kf(_,m){var d=m?(0,vv.A)(_.buffer):_.buffer;return new _.constructor(d,_.byteOffset,_.byteLength)}(_,d);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,xv.A)(_,d);case"[object Map]":case"[object Set]":return new v;case"[object Number]":case"[object String]":return new v(_);case"[object RegExp]":return function yv(_){var m=new _.constructor(_.source,_v.exec(_));return m.lastIndex=_.lastIndex,m}(_);case"[object Symbol]":return function Kd(_){return Sm?Object(Sm.call(_)):{}}(_)}};var tb=r(923),Mv=r(9377),Qf=r(2661);var Iv=r(778),Zf=r(3340),qf=Zf.A&&Zf.A.isMap;const cd=qf?(0,Iv.A)(qf):function Kh(_){return(0,Qf.A)(_)&&"[object Map]"==gv(_)};var Ov=r(554);var Rm=Zf.A&&Zf.A.isSet;const Lv=Rm?(0,Iv.A)(Rm):function Om(_){return(0,Qf.A)(_)&&"[object Set]"==gv(_)};var Iu="[object Arguments]",ep="[object Function]",$v="[object Object]",Go={};Go[Iu]=Go["[object Array]"]=Go["[object ArrayBuffer]"]=Go["[object DataView]"]=Go["[object Boolean]"]=Go["[object Date]"]=Go["[object Float32Array]"]=Go["[object Float64Array]"]=Go["[object Int8Array]"]=Go["[object Int16Array]"]=Go["[object Int32Array]"]=Go["[object Map]"]=Go["[object Number]"]=Go[$v]=Go["[object RegExp]"]=Go["[object Set]"]=Go["[object String]"]=Go["[object Symbol]"]=Go["[object Uint8Array]"]=Go["[object Uint8ClampedArray]"]=Go["[object Uint16Array]"]=Go["[object Uint32Array]"]=!0,Go["[object Error]"]=Go[ep]=Go["[object WeakMap]"]=!1;const pb=function Xh(_,m,d,v,D,W){var ne,we=1&m,Ye=2&m,yt=4&m;if(d&&(ne=D?d(_,v,D,W):d(_)),void 0!==ne)return ne;if(!(0,Ov.A)(_))return _;var sn=(0,_m.A)(_);if(sn){if(ne=function Rw(_){var m=_.length,d=new _.constructor(m);return m&&"string"==typeof _[0]&&Ow.call(_,"index")&&(d.index=_.index,d.input=_.input),d}(_),!we)return(0,Jg.A)(_,ne)}else{var pn=gv(_),Er=pn==ep||"[object GeneratorFunction]"==pn;if((0,Mv.A)(_))return(0,Wh.A)(_,we);if(pn==$v||pn==Iu||Er&&!D){if(ne=Ye||Er?{}:(0,tb.A)(_),!we)return Ye?function zy(_,m){return(0,jf.A)(_,vm(_),m)}(_,function Vf(_,m){return _&&(0,jf.A)(m,(0,mm.A)(m),_)}(ne,_)):function rv(_,m){return(0,jf.A)(_,nv(_),m)}(_,function By(_,m){return _&&(0,jf.A)(m,pm(m),_)}(ne,_))}else{if(!Go[pn])return D?_:{};ne=eb(_,pn,we)}}W||(W=new Zg.A);var Zn=W.get(_);if(Zn)return Zn;W.set(_,ne),Lv(_)?_.forEach(function(yi){ne.add(Xh(yi,m,d,yi,_,W))}):cd(_)&&_.forEach(function(yi,_o){ne.set(_o,Xh(yi,m,d,_o,_,W))});var ti=sn?void 0:(yt?Ye?sv:Gy:Ye?mm.A:pm)(_);return function sd(_,m){for(var d=-1,v=null==_?0:_.length;++d<v&&!1!==m(_[d],d,_););}(ti||_,function(yi,_o){ti&&(yi=_[_o=yi]),(0,My.A)(ne,_o,Xh(yi,m,d,_o,_,W))}),ne},np=function ki(_){return pb(_,5)},Xd=[(()=>{class _{constructor(d,v){this._angorMockApiService=d,this._authService=v,this._defaultNavigation=Yg,this._horizontalNavigation=Qg,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>{const d=this._authService.isLoggedIn(),v=this._defaultNavigation.filter(W=>!W.requiresLogin||d),D=this._horizontalNavigation.filter(W=>!W.requiresLogin||d);return this._horizontalNavigation.forEach(W=>{this._defaultNavigation.forEach(ne=>{ne.id===W.id&&(W.children=np(ne.children))})}),[200,{default:np(v),horizontal:np(D)}]})}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(Z),c.KVO(Hh))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),Hh];let zv=(()=>{class _{constructor(d){this.http=d,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var d=this;return(0,w.A)(function*(){try{const v=yield d.http.get(d.ngswFilePath).toPromise();v&&v.timestamp?(d.timestamp=v.timestamp,console.log("Timestamp successfully loaded:",d.timestamp)):console.error("Invalid data format in ngsw.json")}catch(v){console.error("Error loading ngsw.json:",v)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,$s.T)(d=>d.timestamp||null),(0,x.W)(d=>(console.error("Error fetching ngsw.json hash:",d),(0,T.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(te.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Fm=r(2083),_b=r(5373);const Qh={providers:[function Hp(){return(0,c.ngT)("NgEagerAnimations"),[...Eh]}(),(0,te.$R)(),function Mh(_,m={}){return(0,c.EmA)([If,Qu,{provide:Zu,useValue:_},{provide:Yc,useValue:m},{provide:xu,useFactory:Ma,deps:[Yc,c.Agw]},{provide:c.hnV,useFactory:kf,deps:[c.zZn,Zu,Yc,c.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,c.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:c.hnV,useFactory:function Bm(_){return()=>_.load()},deps:[zv,Oc.A,Fm.d],multi:!0},{provide:c.hnV,useFactory:function Yh(_,m){return(0,w.A)(function*(){const d=_.getPublicKey();d&&(yield m.loadUserProfile(d))})},deps:[Oc.A,Fm.d],multi:!0},{provide:c.hnV,useFactory:function ud(){return()=>{(0,_b.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(_,m)=>{}})}},multi:!0},(0,a.lh)(hm,(0,a.oH)({scrollPositionRestoration:"enabled"})),{provide:Xt.MJ,useClass:Aa},{provide:Xt.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function Cg(_){const m=[Tg(pi),Yp(js),Rh(Ia),Xp(ka)];return _.config&&m.push(function Dg(_){return(0,c.EmA)([{provide:qi,useValue:wr(_)}])}(_.config)),_.loader&&m.push(function Sg(_){return(0,c.EmA)([{provide:zt,useClass:_}])}(_.loader)),m}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:fm}),{provide:c.hnV,useFactory:()=>{const _=(0,c.WQX)(Pd),m=_.getDefaultLang();return _.setActiveLang(m),()=>function $f(_,m){const d="object"==typeof m;return new Promise((v,D)=>{const W=new Cw.Ms({next:ne=>{v(ne),W.unsubscribe()},error:D,complete:()=>{d?v(m.defaultValue):D(new Ay.G)}});_.subscribe(W)})}(_.load(m))},multi:!0},[{provide:c.Z63,useValue:()=>(0,c.WQX)(Vd),multi:!0}],(_=>{const m=[{provide:Xt.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:yn.U$,useValue:{appearance:"fill"}},{provide:C,useValue:_?.mockApi?.delay??0},{provide:Te.t,useValue:_?.angor??{}},(0,c.oKB)(ln.hM),{provide:c.Z63,useValue:()=>(0,c.WQX)(xe.m),multi:!0},(0,te.$R)((0,te.b$)([le])),{provide:c.Z63,useValue:()=>(0,c.WQX)(Me),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(ae.l),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)($e),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(vt),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(at.Q),multi:!0}];return _?.mockApi?.services&&m.push((0,te.$R)((0,te.b$)([pe])),{provide:c.hnV,deps:[..._.mockApi.services],useFactory:()=>()=>null,multi:!0}),m})({mockApi:{delay:0,services:Xd},angor:JSON.parse(localStorage.getItem("angorConfig"))??{layout:"modern",scheme:"light",screens:{sm:"600px",md:"960px",lg:"1280px",xl:"1440px"},theme:"theme-brand",themes:[{id:"theme-brand",name:"Brand"},{id:"theme-default",name:"Default"},{id:"theme-teal",name:"Teal"},{id:"theme-rose",name:"Rose"},{id:"theme-purple",name:"Purple"},{id:"theme-amber",name:"Amber"}]}})]};(0,i.B8)(y,Qh).catch(_=>console.error(_))},3981:(o,s)=>{"use strict";s.byteLength=function T(Z){var te=C(Z),me=te[1];return 3*(te[0]+me)/4-me},s.toByteArray=function A(Z){var te,Me,be=C(Z),me=be[0],pe=be[1],Te=new a(function S(Z,te,be){return 3*(te+be)/4-be}(0,me,pe)),xe=0,Re=pe>0?me-4:me;for(Me=0;Me<Re;Me+=4)te=i[Z.charCodeAt(Me)]<<18|i[Z.charCodeAt(Me+1)]<<12|i[Z.charCodeAt(Me+2)]<<6|i[Z.charCodeAt(Me+3)],Te[xe++]=te>>16&255,Te[xe++]=te>>8&255,Te[xe++]=255&te;return 2===pe&&(te=i[Z.charCodeAt(Me)]<<2|i[Z.charCodeAt(Me+1)]>>4,Te[xe++]=255&te),1===pe&&(te=i[Z.charCodeAt(Me)]<<10|i[Z.charCodeAt(Me+1)]<<4|i[Z.charCodeAt(Me+2)]>>2,Te[xe++]=te>>8&255,Te[xe++]=255&te),Te},s.fromByteArray=function G(Z){for(var te,be=Z.length,me=be%3,pe=[],xe=0,Re=be-me;xe<Re;xe+=16383)pe.push(N(Z,xe,xe+16383>Re?Re:xe+16383));return 1===me?pe.push(r[(te=Z[be-1])>>2]+r[te<<4&63]+"=="):2===me&&pe.push(r[(te=(Z[be-2]<<8)+Z[be-1])>>10]+r[te>>4&63]+r[te<<2&63]+"="),pe.join("")};for(var r=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0;y<64;++y)r[y]=c[y],i[c.charCodeAt(y)]=y;function C(Z){var te=Z.length;if(te%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var be=Z.indexOf("=");return-1===be&&(be=te),[be,be===te?0:4-be%4]}function I(Z){return r[Z>>18&63]+r[Z>>12&63]+r[Z>>6&63]+r[63&Z]}function N(Z,te,be){for(var pe=[],Te=te;Te<be;Te+=3)pe.push(I((Z[Te]<<16&16711680)+(Z[Te+1]<<8&65280)+(255&Z[Te+2])));return pe.join("")}i[45]=62,i[95]=63},3838:(o,s,r)=>{"use strict";const a=r(3981),c=r(2020),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;s.hp=S,s.IS=50;const w=2147483647;function T(B){if(B>w)throw new RangeError('The value "'+B+'" is invalid for option "size"');const k=new Uint8Array(B);return Object.setPrototypeOf(k,S.prototype),k}function S(B,k,j){if("number"==typeof B){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return G(B)}return A(B,k,j)}function A(B,k,j){if("string"==typeof B)return function Z(B,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!S.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const j=0|Re(B,k);let De=T(j);const it=De.write(B,k);return it!==j&&(De=De.slice(0,it)),De}(B,k);if(ArrayBuffer.isView(B))return function be(B){if(Kt(B,Uint8Array)){const k=new Uint8Array(B);return me(k.buffer,k.byteOffset,k.byteLength)}return te(B)}(B);if(null==B)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(Kt(B,ArrayBuffer)||B&&Kt(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Kt(B,SharedArrayBuffer)||B&&Kt(B.buffer,SharedArrayBuffer)))return me(B,k,j);if("number"==typeof B)throw new TypeError('The "value" argument must not be of type number. Received type number');const De=B.valueOf&&B.valueOf();if(null!=De&&De!==B)return S.from(De,k,j);const it=function pe(B){if(S.isBuffer(B)){const k=0|Te(B.length),j=T(k);return 0===j.length||B.copy(j,0,0,k),j}return void 0!==B.length?"number"!=typeof B.length||xn(B.length)?T(0):te(B):"Buffer"===B.type&&Array.isArray(B.data)?te(B.data):void 0}(B);if(it)return it;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof B[Symbol.toPrimitive])return S.from(B[Symbol.toPrimitive]("string"),k,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}function I(B){if("number"!=typeof B)throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function G(B){return I(B),T(B<0?0:0|Te(B))}function te(B){const k=B.length<0?0:0|Te(B.length),j=T(k);for(let De=0;De<k;De+=1)j[De]=255&B[De];return j}function me(B,k,j){if(k<0||B.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<k+(j||0))throw new RangeError('"length" is outside of buffer bounds');let De;return De=void 0===k&&void 0===j?new Uint8Array(B):void 0===j?new Uint8Array(B,k):new Uint8Array(B,k,j),Object.setPrototypeOf(De,S.prototype),De}function Te(B){if(B>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|B}function Re(B,k){if(S.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||Kt(B,ArrayBuffer))return B.byteLength;if("string"!=typeof B)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const j=B.length,De=arguments.length>2&&!0===arguments[2];if(!De&&0===j)return 0;let it=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return an(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j;case"hex":return j>>>1;case"base64":return Gt(B).length;default:if(it)return De?-1:an(B).length;k=(""+k).toLowerCase(),it=!0}}function Me(B,k,j){let De=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===j||j>this.length)&&(j=this.length),j<=0)||(j>>>=0)<=(k>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return Qe(this,k,j);case"utf8":case"utf-8":return Xt(this,k,j);case"ascii":return $n(this,k,j);case"latin1":case"binary":return bn(this,k,j);case"base64":return at(this,k,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,k,j);default:if(De)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),De=!0}}function Ce(B,k,j){const De=B[k];B[k]=B[j],B[j]=De}function le(B,k,j,De,it){if(0===B.length)return-1;if("string"==typeof j?(De=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),xn(j=+j)&&(j=it?0:B.length-1),j<0&&(j=B.length+j),j>=B.length){if(it)return-1;j=B.length-1}else if(j<0){if(!it)return-1;j=0}if("string"==typeof k&&(k=S.from(k,De)),S.isBuffer(k))return 0===k.length?-1:ae(B,k,j,De,it);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?it?Uint8Array.prototype.indexOf.call(B,k,j):Uint8Array.prototype.lastIndexOf.call(B,k,j):ae(B,[k],j,De,it);throw new TypeError("val must be string, number or Buffer")}function ae(B,k,j,De,it){let dn,ot=1,Tt=B.length,In=k.length;if(void 0!==De&&("ucs2"===(De=String(De).toLowerCase())||"ucs-2"===De||"utf16le"===De||"utf-16le"===De)){if(B.length<2||k.length<2)return-1;ot=2,Tt/=2,In/=2,j/=2}function Vt(Pn,Fn){return 1===ot?Pn[Fn]:Pn.readUInt16BE(Fn*ot)}if(it){let Pn=-1;for(dn=j;dn<Tt;dn++)if(Vt(B,dn)===Vt(k,-1===Pn?0:dn-Pn)){if(-1===Pn&&(Pn=dn),dn-Pn+1===In)return Pn*ot}else-1!==Pn&&(dn-=dn-Pn),Pn=-1}else for(j+In>Tt&&(j=Tt-In),dn=j;dn>=0;dn--){let Pn=!0;for(let Fn=0;Fn<In;Fn++)if(Vt(B,dn+Fn)!==Vt(k,Fn)){Pn=!1;break}if(Pn)return dn}return-1}function Ie(B,k,j,De){j=Number(j)||0;const it=B.length-j;De?(De=Number(De))>it&&(De=it):De=it;const ot=k.length;let Tt;for(De>ot/2&&(De=ot/2),Tt=0;Tt<De;++Tt){const In=parseInt(k.substr(2*Tt,2),16);if(xn(In))return Tt;B[j+Tt]=In}return Tt}function $e(B,k,j,De){return At(an(k,B.length-j),B,j,De)}function st(B,k,j,De){return At(function Xn(B){const k=[];for(let j=0;j<B.length;++j)k.push(255&B.charCodeAt(j));return k}(k),B,j,De)}function ht(B,k,j,De){return At(Gt(k),B,j,De)}function vt(B,k,j,De){return At(function En(B,k){let j,De,it;const ot=[];for(let Tt=0;Tt<B.length&&!((k-=2)<0);++Tt)j=B.charCodeAt(Tt),De=j>>8,it=j%256,ot.push(it),ot.push(De);return ot}(k,B.length-j),B,j,De)}function at(B,k,j){return a.fromByteArray(0===k&&j===B.length?B:B.slice(k,j))}function Xt(B,k,j){j=Math.min(B.length,j);const De=[];let it=k;for(;it<j;){const ot=B[it];let Tt=null,In=ot>239?4:ot>223?3:ot>191?2:1;if(it+In<=j){let Vt,dn,Pn,Fn;switch(In){case 1:ot<128&&(Tt=ot);break;case 2:Vt=B[it+1],128==(192&Vt)&&(Fn=(31&ot)<<6|63&Vt,Fn>127&&(Tt=Fn));break;case 3:Vt=B[it+1],dn=B[it+2],128==(192&Vt)&&128==(192&dn)&&(Fn=(15&ot)<<12|(63&Vt)<<6|63&dn,Fn>2047&&(Fn<55296||Fn>57343)&&(Tt=Fn));break;case 4:Vt=B[it+1],dn=B[it+2],Pn=B[it+3],128==(192&Vt)&&128==(192&dn)&&128==(192&Pn)&&(Fn=(15&ot)<<18|(63&Vt)<<12|(63&dn)<<6|63&Pn,Fn>65535&&Fn<1114112&&(Tt=Fn))}}null===Tt?(Tt=65533,In=1):Tt>65535&&(Tt-=65536,De.push(Tt>>>10&1023|55296),Tt=56320|1023&Tt),De.push(Tt),it+=In}return function yn(B){const k=B.length;if(k<=ln)return String.fromCharCode.apply(String,B);let j="",De=0;for(;De<k;)j+=String.fromCharCode.apply(String,B.slice(De,De+=ln));return j}(De)}!(S.TYPED_ARRAY_SUPPORT=function C(){try{const B=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(B,k),42===B.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(S.prototype,"parent",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.buffer}}),Object.defineProperty(S.prototype,"offset",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.byteOffset}}),S.poolSize=8192,S.from=function(B,k,j){return A(B,k,j)},Object.setPrototypeOf(S.prototype,Uint8Array.prototype),Object.setPrototypeOf(S,Uint8Array),S.alloc=function(B,k,j){return function N(B,k,j){return I(B),B<=0?T(B):void 0!==k?"string"==typeof j?T(B).fill(k,j):T(B).fill(k):T(B)}(B,k,j)},S.allocUnsafe=function(B){return G(B)},S.allocUnsafeSlow=function(B){return G(B)},S.isBuffer=function(k){return null!=k&&!0===k._isBuffer&&k!==S.prototype},S.compare=function(k,j){if(Kt(k,Uint8Array)&&(k=S.from(k,k.offset,k.byteLength)),Kt(j,Uint8Array)&&(j=S.from(j,j.offset,j.byteLength)),!S.isBuffer(k)||!S.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===j)return 0;let De=k.length,it=j.length;for(let ot=0,Tt=Math.min(De,it);ot<Tt;++ot)if(k[ot]!==j[ot]){De=k[ot],it=j[ot];break}return De<it?-1:it<De?1:0},S.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},S.concat=function(k,j){if(!Array.isArray(k))throw new TypeError('"list" argument must be an Array of Buffers');if(0===k.length)return S.alloc(0);let De;if(void 0===j)for(j=0,De=0;De<k.length;++De)j+=k[De].length;const it=S.allocUnsafe(j);let ot=0;for(De=0;De<k.length;++De){let Tt=k[De];if(Kt(Tt,Uint8Array))ot+Tt.length>it.length?(S.isBuffer(Tt)||(Tt=S.from(Tt)),Tt.copy(it,ot)):Uint8Array.prototype.set.call(it,Tt,ot);else{if(!S.isBuffer(Tt))throw new TypeError('"list" argument must be an Array of Buffers');Tt.copy(it,ot)}ot+=Tt.length}return it},S.byteLength=Re,S.prototype._isBuffer=!0,S.prototype.swap16=function(){const k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<k;j+=2)Ce(this,j,j+1);return this},S.prototype.swap32=function(){const k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<k;j+=4)Ce(this,j,j+3),Ce(this,j+1,j+2);return this},S.prototype.swap64=function(){const k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<k;j+=8)Ce(this,j,j+7),Ce(this,j+1,j+6),Ce(this,j+2,j+5),Ce(this,j+3,j+4);return this},S.prototype.toLocaleString=S.prototype.toString=function(){const k=this.length;return 0===k?"":0===arguments.length?Xt(this,0,k):Me.apply(this,arguments)},S.prototype.equals=function(k){if(!S.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||0===S.compare(this,k)},S.prototype.inspect=function(){let k="";const j=s.IS;return k=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(k+=" ... "),"<Buffer "+k+">"},y&&(S.prototype[y]=S.prototype.inspect),S.prototype.compare=function(k,j,De,it,ot){if(Kt(k,Uint8Array)&&(k=S.from(k,k.offset,k.byteLength)),!S.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===j&&(j=0),void 0===De&&(De=k?k.length:0),void 0===it&&(it=0),void 0===ot&&(ot=this.length),j<0||De>k.length||it<0||ot>this.length)throw new RangeError("out of range index");if(it>=ot&&j>=De)return 0;if(it>=ot)return-1;if(j>=De)return 1;if(this===k)return 0;let Tt=(ot>>>=0)-(it>>>=0),In=(De>>>=0)-(j>>>=0);const Vt=Math.min(Tt,In),dn=this.slice(it,ot),Pn=k.slice(j,De);for(let Fn=0;Fn<Vt;++Fn)if(dn[Fn]!==Pn[Fn]){Tt=dn[Fn],In=Pn[Fn];break}return Tt<In?-1:In<Tt?1:0},S.prototype.includes=function(k,j,De){return-1!==this.indexOf(k,j,De)},S.prototype.indexOf=function(k,j,De){return le(this,k,j,De,!0)},S.prototype.lastIndexOf=function(k,j,De){return le(this,k,j,De,!1)},S.prototype.write=function(k,j,De,it){if(void 0===j)it="utf8",De=this.length,j=0;else if(void 0===De&&"string"==typeof j)it=j,De=this.length,j=0;else{if(!isFinite(j))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j>>>=0,isFinite(De)?(De>>>=0,void 0===it&&(it="utf8")):(it=De,De=void 0)}const ot=this.length-j;if((void 0===De||De>ot)&&(De=ot),k.length>0&&(De<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");let Tt=!1;for(;;)switch(it){case"hex":return Ie(this,k,j,De);case"utf8":case"utf-8":return $e(this,k,j,De);case"ascii":case"latin1":case"binary":return st(this,k,j,De);case"base64":return ht(this,k,j,De);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,k,j,De);default:if(Tt)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),Tt=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ln=4096;function $n(B,k,j){let De="";j=Math.min(B.length,j);for(let it=k;it<j;++it)De+=String.fromCharCode(127&B[it]);return De}function bn(B,k,j){let De="";j=Math.min(B.length,j);for(let it=k;it<j;++it)De+=String.fromCharCode(B[it]);return De}function Qe(B,k,j){const De=B.length;(!k||k<0)&&(k=0),(!j||j<0||j>De)&&(j=De);let it="";for(let ot=k;ot<j;++ot)it+=Yn[B[ot]];return it}function bt(B,k,j){const De=B.slice(k,j);let it="";for(let ot=0;ot<De.length-1;ot+=2)it+=String.fromCharCode(De[ot]+256*De[ot+1]);return it}function ze(B,k,j){if(B%1!=0||B<0)throw new RangeError("offset is not uint");if(B+k>j)throw new RangeError("Trying to access beyond buffer length")}function Fe(B,k,j,De,it,ot){if(!S.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>it||k<ot)throw new RangeError('"value" argument is out of bounds');if(j+De>B.length)throw new RangeError("Index out of range")}function Ft(B,k,j,De,it){Jt(k,De,it,B,j,7);let ot=Number(k&BigInt(4294967295));B[j++]=ot,ot>>=8,B[j++]=ot,ot>>=8,B[j++]=ot,ot>>=8,B[j++]=ot;let Tt=Number(k>>BigInt(32)&BigInt(4294967295));return B[j++]=Tt,Tt>>=8,B[j++]=Tt,Tt>>=8,B[j++]=Tt,Tt>>=8,B[j++]=Tt,j}function Ke(B,k,j,De,it){Jt(k,De,it,B,j,7);let ot=Number(k&BigInt(4294967295));B[j+7]=ot,ot>>=8,B[j+6]=ot,ot>>=8,B[j+5]=ot,ot>>=8,B[j+4]=ot;let Tt=Number(k>>BigInt(32)&BigInt(4294967295));return B[j+3]=Tt,Tt>>=8,B[j+2]=Tt,Tt>>=8,B[j+1]=Tt,Tt>>=8,B[j]=Tt,j+8}function dt(B,k,j,De,it,ot){if(j+De>B.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function Ge(B,k,j,De,it){return k=+k,j>>>=0,it||dt(B,0,j,4),c.write(B,k,j,De,23,4),j+4}function He(B,k,j,De,it){return k=+k,j>>>=0,it||dt(B,0,j,8),c.write(B,k,j,De,52,8),j+8}S.prototype.slice=function(k,j){const De=this.length;(k=~~k)<0?(k+=De)<0&&(k=0):k>De&&(k=De),(j=void 0===j?De:~~j)<0?(j+=De)<0&&(j=0):j>De&&(j=De),j<k&&(j=k);const it=this.subarray(k,j);return Object.setPrototypeOf(it,S.prototype),it},S.prototype.readUintLE=S.prototype.readUIntLE=function(k,j,De){k>>>=0,j>>>=0,De||ze(k,j,this.length);let it=this[k],ot=1,Tt=0;for(;++Tt<j&&(ot*=256);)it+=this[k+Tt]*ot;return it},S.prototype.readUintBE=S.prototype.readUIntBE=function(k,j,De){k>>>=0,j>>>=0,De||ze(k,j,this.length);let it=this[k+--j],ot=1;for(;j>0&&(ot*=256);)it+=this[k+--j]*ot;return it},S.prototype.readUint8=S.prototype.readUInt8=function(k,j){return k>>>=0,j||ze(k,1,this.length),this[k]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(k,j){return k>>>=0,j||ze(k,2,this.length),this[k]|this[k+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(k,j){return k>>>=0,j||ze(k,2,this.length),this[k]<<8|this[k+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(k,j){return k>>>=0,j||ze(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(k,j){return k>>>=0,j||ze(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},S.prototype.readBigUInt64LE=tt(function(k){fn(k>>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Gn(k,this.length-8);const it=j+256*this[++k]+65536*this[++k]+this[++k]*2**24,ot=this[++k]+256*this[++k]+65536*this[++k]+De*2**24;return BigInt(it)+(BigInt(ot)<<BigInt(32))}),S.prototype.readBigUInt64BE=tt(function(k){fn(k>>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Gn(k,this.length-8);const it=j*2**24+65536*this[++k]+256*this[++k]+this[++k],ot=this[++k]*2**24+65536*this[++k]+256*this[++k]+De;return(BigInt(it)<<BigInt(32))+BigInt(ot)}),S.prototype.readIntLE=function(k,j,De){k>>>=0,j>>>=0,De||ze(k,j,this.length);let it=this[k],ot=1,Tt=0;for(;++Tt<j&&(ot*=256);)it+=this[k+Tt]*ot;return ot*=128,it>=ot&&(it-=Math.pow(2,8*j)),it},S.prototype.readIntBE=function(k,j,De){k>>>=0,j>>>=0,De||ze(k,j,this.length);let it=j,ot=1,Tt=this[k+--it];for(;it>0&&(ot*=256);)Tt+=this[k+--it]*ot;return ot*=128,Tt>=ot&&(Tt-=Math.pow(2,8*j)),Tt},S.prototype.readInt8=function(k,j){return k>>>=0,j||ze(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},S.prototype.readInt16LE=function(k,j){k>>>=0,j||ze(k,2,this.length);const De=this[k]|this[k+1]<<8;return 32768&De?4294901760|De:De},S.prototype.readInt16BE=function(k,j){k>>>=0,j||ze(k,2,this.length);const De=this[k+1]|this[k]<<8;return 32768&De?4294901760|De:De},S.prototype.readInt32LE=function(k,j){return k>>>=0,j||ze(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},S.prototype.readInt32BE=function(k,j){return k>>>=0,j||ze(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},S.prototype.readBigInt64LE=tt(function(k){fn(k>>>=0,"offset");const j=this[k],De=this[k+7];return(void 0===j||void 0===De)&&Gn(k,this.length-8),(BigInt(this[k+4]+256*this[k+5]+65536*this[k+6]+(De<<24))<<BigInt(32))+BigInt(j+256*this[++k]+65536*this[++k]+this[++k]*2**24)}),S.prototype.readBigInt64BE=tt(function(k){fn(k>>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Gn(k,this.length-8);const it=(j<<24)+65536*this[++k]+256*this[++k]+this[++k];return(BigInt(it)<<BigInt(32))+BigInt(this[++k]*2**24+65536*this[++k]+256*this[++k]+De)}),S.prototype.readFloatLE=function(k,j){return k>>>=0,j||ze(k,4,this.length),c.read(this,k,!0,23,4)},S.prototype.readFloatBE=function(k,j){return k>>>=0,j||ze(k,4,this.length),c.read(this,k,!1,23,4)},S.prototype.readDoubleLE=function(k,j){return k>>>=0,j||ze(k,8,this.length),c.read(this,k,!0,52,8)},S.prototype.readDoubleBE=function(k,j){return k>>>=0,j||ze(k,8,this.length),c.read(this,k,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(k,j,De,it){k=+k,j>>>=0,De>>>=0,it||Fe(this,k,j,De,Math.pow(2,8*De)-1,0);let ot=1,Tt=0;for(this[j]=255&k;++Tt<De&&(ot*=256);)this[j+Tt]=k/ot&255;return j+De},S.prototype.writeUintBE=S.prototype.writeUIntBE=function(k,j,De,it){k=+k,j>>>=0,De>>>=0,it||Fe(this,k,j,De,Math.pow(2,8*De)-1,0);let ot=De-1,Tt=1;for(this[j+ot]=255&k;--ot>=0&&(Tt*=256);)this[j+ot]=k/Tt&255;return j+De},S.prototype.writeUint8=S.prototype.writeUInt8=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,1,255,0),this[j]=255&k,j+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,65535,0),this[j]=255&k,this[j+1]=k>>>8,j+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,65535,0),this[j]=k>>>8,this[j+1]=255&k,j+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,4294967295,0),this[j+3]=k>>>24,this[j+2]=k>>>16,this[j+1]=k>>>8,this[j]=255&k,j+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,4294967295,0),this[j]=k>>>24,this[j+1]=k>>>16,this[j+2]=k>>>8,this[j+3]=255&k,j+4},S.prototype.writeBigUInt64LE=tt(function(k,j=0){return Ft(this,k,j,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=tt(function(k,j=0){return Ke(this,k,j,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(k,j,De,it){if(k=+k,j>>>=0,!it){const Vt=Math.pow(2,8*De-1);Fe(this,k,j,De,Vt-1,-Vt)}let ot=0,Tt=1,In=0;for(this[j]=255&k;++ot<De&&(Tt*=256);)k<0&&0===In&&0!==this[j+ot-1]&&(In=1),this[j+ot]=(k/Tt|0)-In&255;return j+De},S.prototype.writeIntBE=function(k,j,De,it){if(k=+k,j>>>=0,!it){const Vt=Math.pow(2,8*De-1);Fe(this,k,j,De,Vt-1,-Vt)}let ot=De-1,Tt=1,In=0;for(this[j+ot]=255&k;--ot>=0&&(Tt*=256);)k<0&&0===In&&0!==this[j+ot+1]&&(In=1),this[j+ot]=(k/Tt|0)-In&255;return j+De},S.prototype.writeInt8=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,1,127,-128),k<0&&(k=255+k+1),this[j]=255&k,j+1},S.prototype.writeInt16LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,32767,-32768),this[j]=255&k,this[j+1]=k>>>8,j+2},S.prototype.writeInt16BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,32767,-32768),this[j]=k>>>8,this[j+1]=255&k,j+2},S.prototype.writeInt32LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,2147483647,-2147483648),this[j]=255&k,this[j+1]=k>>>8,this[j+2]=k>>>16,this[j+3]=k>>>24,j+4},S.prototype.writeInt32BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[j]=k>>>24,this[j+1]=k>>>16,this[j+2]=k>>>8,this[j+3]=255&k,j+4},S.prototype.writeBigInt64LE=tt(function(k,j=0){return Ft(this,k,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=tt(function(k,j=0){return Ke(this,k,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(k,j,De){return Ge(this,k,j,!0,De)},S.prototype.writeFloatBE=function(k,j,De){return Ge(this,k,j,!1,De)},S.prototype.writeDoubleLE=function(k,j,De){return He(this,k,j,!0,De)},S.prototype.writeDoubleBE=function(k,j,De){return He(this,k,j,!1,De)},S.prototype.copy=function(k,j,De,it){if(!S.isBuffer(k))throw new TypeError("argument should be a Buffer");if(De||(De=0),!it&&0!==it&&(it=this.length),j>=k.length&&(j=k.length),j||(j=0),it>0&&it<De&&(it=De),it===De||0===k.length||0===this.length)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(De<0||De>=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),k.length-j<it-De&&(it=k.length-j+De);const ot=it-De;return this===k&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(j,De,it):Uint8Array.prototype.set.call(k,this.subarray(De,it),j),ot},S.prototype.fill=function(k,j,De,it){if("string"==typeof k){if("string"==typeof j?(it=j,j=0,De=this.length):"string"==typeof De&&(it=De,De=this.length),void 0!==it&&"string"!=typeof it)throw new TypeError("encoding must be a string");if("string"==typeof it&&!S.isEncoding(it))throw new TypeError("Unknown encoding: "+it);if(1===k.length){const Tt=k.charCodeAt(0);("utf8"===it&&Tt<128||"latin1"===it)&&(k=Tt)}}else"number"==typeof k?k&=255:"boolean"==typeof k&&(k=Number(k));if(j<0||this.length<j||this.length<De)throw new RangeError("Out of range index");if(De<=j)return this;let ot;if(j>>>=0,De=void 0===De?this.length:De>>>0,k||(k=0),"number"==typeof k)for(ot=j;ot<De;++ot)this[ot]=k;else{const Tt=S.isBuffer(k)?k:S.from(k,it),In=Tt.length;if(0===In)throw new TypeError('The value "'+k+'" is invalid for argument "value"');for(ot=0;ot<De-j;++ot)this[ot+j]=Tt[ot%In]}return this};const mt={};function se(B,k,j){mt[B]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:k.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,delete this.name}get code(){return B}set code(it){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:it,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}function Ze(B){let k="",j=B.length;const De="-"===B[0]?1:0;for(;j>=De+4;j-=3)k=`_${B.slice(j-3,j)}${k}`;return`${B.slice(0,j)}${k}`}function Jt(B,k,j,De,it,ot){if(B>j||B<k){const Tt="bigint"==typeof k?"n":"";let In;throw In=ot>3?0===k||k===BigInt(0)?`>= 0${Tt} and < 2${Tt} ** ${8*(ot+1)}${Tt}`:`>= -(2${Tt} ** ${8*(ot+1)-1}${Tt}) and < 2 ** ${8*(ot+1)-1}${Tt}`:`>= ${k}${Tt} and <= ${j}${Tt}`,new mt.ERR_OUT_OF_RANGE("value",In,B)}!function Rt(B,k,j){fn(k,"offset"),(void 0===B[k]||void 0===B[k+j])&&Gn(k,B.length-(j+1))}(De,it,ot)}function fn(B,k){if("number"!=typeof B)throw new mt.ERR_INVALID_ARG_TYPE(k,"number",B)}function Gn(B,k,j){throw Math.floor(B)!==B?(fn(B,j),new mt.ERR_OUT_OF_RANGE(j||"offset","an integer",B)):k<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(j||"offset",`>= ${j?1:0} and <= ${k}`,B)}se("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),se("ERR_INVALID_ARG_TYPE",function(B,k){return`The "${B}" argument must be of type number. Received type ${typeof k}`},TypeError),se("ERR_OUT_OF_RANGE",function(B,k,j){let De=`The value of "${B}" is out of range.`,it=j;return Number.isInteger(j)&&Math.abs(j)>2**32?it=Ze(String(j)):"bigint"==typeof j&&(it=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(it=Ze(it)),it+="n"),De+=` It must be ${k}. Received ${it}`,De},RangeError);const Nt=/[^+/0-9A-Za-z-_]/g;function an(B,k){let j;k=k||1/0;const De=B.length;let it=null;const ot=[];for(let Tt=0;Tt<De;++Tt){if(j=B.charCodeAt(Tt),j>55295&&j<57344){if(!it){if(j>56319){(k-=3)>-1&&ot.push(239,191,189);continue}if(Tt+1===De){(k-=3)>-1&&ot.push(239,191,189);continue}it=j;continue}if(j<56320){(k-=3)>-1&&ot.push(239,191,189),it=j;continue}j=65536+(it-55296<<10|j-56320)}else it&&(k-=3)>-1&&ot.push(239,191,189);if(it=null,j<128){if((k-=1)<0)break;ot.push(j)}else if(j<2048){if((k-=2)<0)break;ot.push(j>>6|192,63&j|128)}else if(j<65536){if((k-=3)<0)break;ot.push(j>>12|224,j>>6&63|128,63&j|128)}else{if(!(j<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;ot.push(j>>18|240,j>>12&63|128,j>>6&63|128,63&j|128)}}return ot}function Gt(B){return a.toByteArray(function Qt(B){if((B=(B=B.split("=")[0]).trim().replace(Nt,"")).length<2)return"";for(;B.length%4!=0;)B+="=";return B}(B))}function At(B,k,j,De){let it;for(it=0;it<De&&!(it+j>=k.length||it>=B.length);++it)k[it+j]=B[it];return it}function Kt(B,k){return B instanceof k||null!=B&&null!=B.constructor&&null!=B.constructor.name&&B.constructor.name===k.name}function xn(B){return B!=B}const Yn=function(){const B="0123456789abcdef",k=new Array(256);for(let j=0;j<16;++j){const De=16*j;for(let it=0;it<16;++it)k[De+it]=B[j]+B[it]}return k}();function tt(B){return typeof BigInt>"u"?ke:B}function ke(){throw new Error("BigInt not supported")}},2020:(o,s)=>{s.read=function(r,i,a,c,y){var w,C,T=8*y-c-1,S=(1<<T)-1,A=S>>1,I=-7,N=a?y-1:0,G=a?-1:1,Z=r[i+N];for(N+=G,w=Z&(1<<-I)-1,Z>>=-I,I+=T;I>0;w=256*w+r[i+N],N+=G,I-=8);for(C=w&(1<<-I)-1,w>>=-I,I+=c;I>0;C=256*C+r[i+N],N+=G,I-=8);if(0===w)w=1-A;else{if(w===S)return C?NaN:1/0*(Z?-1:1);C+=Math.pow(2,c),w-=A}return(Z?-1:1)*C*Math.pow(2,w-c)},s.write=function(r,i,a,c,y,w){var C,T,S,A=8*w-y-1,I=(1<<A)-1,N=I>>1,G=23===y?Math.pow(2,-24)-Math.pow(2,-77):0,Z=c?0:w-1,te=c?1:-1,be=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(T=isNaN(i)?1:0,C=I):(C=Math.floor(Math.log(i)/Math.LN2),i*(S=Math.pow(2,-C))<1&&(C--,S*=2),(i+=C+N>=1?G/S:G*Math.pow(2,1-N))*S>=2&&(C++,S/=2),C+N>=I?(T=0,C=I):C+N>=1?(T=(i*S-1)*Math.pow(2,y),C+=N):(T=i*Math.pow(2,N-1)*Math.pow(2,y),C=0));y>=8;r[a+Z]=255&T,Z+=te,T/=256,y-=8);for(C=C<<y|T,A+=y;A>0;r[a+Z]=255&C,Z+=te,C/=256,A-=8);r[a+Z-te]|=128*be}},119:o=>{o.exports=function a(c,y,w){function C(A,I){if(!y[A]){if(!c[A]){if(T)return T(A,!0);var G=new Error("Cannot find module '"+A+"'");throw G.code="MODULE_NOT_FOUND",G}var Z=y[A]={exports:{}};c[A][0].call(Z.exports,function(te){return C(c[A][1][te]||te)},Z,Z.exports,a,c,y,w)}return y[A].exports}for(var T=void 0,S=0;S<w.length;S++)C(w[S]);return C}({1:[function(a,c,y){(function(w){"use strict";var T,C=w.MutationObserver||w.WebKitMutationObserver;if(C){var S=0,A=new C(te),I=w.document.createTextNode("");A.observe(I,{characterData:!0}),T=function(){I.data=S=++S%2}}else if(!w.setImmediate&&typeof w.MessageChannel<"u"){var N=new w.MessageChannel;N.port1.onmessage=te,T=function(){N.port2.postMessage(0)}}else T="document"in w&&"onreadystatechange"in w.document.createElement("script")?function(){var me=w.document.createElement("script");me.onreadystatechange=function(){te(),me.onreadystatechange=null,me.parentNode.removeChild(me),me=null},w.document.documentElement.appendChild(me)}:function(){setTimeout(te,0)};var G,Z=[];function te(){G=!0;for(var me,pe,Te=Z.length;Te;){for(pe=Z,Z=[],me=-1;++me<Te;)pe[me]();Te=Z.length}G=!1}c.exports=function be(me){1===Z.push(me)&&!G&&T()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(a,c,y){"use strict";var w=a(1);function C(){}var T={},S=["REJECTED"],A=["FULFILLED"],I=["PENDING"];function N(Me){if("function"!=typeof Me)throw new TypeError("resolver must be a function");this.state=I,this.queue=[],this.outcome=void 0,Me!==C&&be(this,Me)}function G(Me,Ce,le){this.promise=Me,"function"==typeof Ce&&(this.onFulfilled=Ce,this.callFulfilled=this.otherCallFulfilled),"function"==typeof le&&(this.onRejected=le,this.callRejected=this.otherCallRejected)}function Z(Me,Ce,le){w(function(){var ae;try{ae=Ce(le)}catch(Ie){return T.reject(Me,Ie)}ae===Me?T.reject(Me,new TypeError("Cannot resolve promise with itself")):T.resolve(Me,ae)})}function te(Me){var Ce=Me&&Me.then;if(Me&&("object"==typeof Me||"function"==typeof Me)&&"function"==typeof Ce)return function(){Ce.apply(Me,arguments)}}function be(Me,Ce){var le=!1;function ae(ht){le||(le=!0,T.reject(Me,ht))}function Ie(ht){le||(le=!0,T.resolve(Me,ht))}var st=me(function $e(){Ce(Ie,ae)});"error"===st.status&&ae(st.value)}function me(Me,Ce){var le={};try{le.value=Me(Ce),le.status="success"}catch(ae){le.status="error",le.value=ae}return le}c.exports=N,N.prototype.catch=function(Me){return this.then(null,Me)},N.prototype.then=function(Me,Ce){if("function"!=typeof Me&&this.state===A||"function"!=typeof Ce&&this.state===S)return this;var le=new this.constructor(C);return this.state!==I?Z(le,this.state===A?Me:Ce,this.outcome):this.queue.push(new G(le,Me,Ce)),le},G.prototype.callFulfilled=function(Me){T.resolve(this.promise,Me)},G.prototype.otherCallFulfilled=function(Me){Z(this.promise,this.onFulfilled,Me)},G.prototype.callRejected=function(Me){T.reject(this.promise,Me)},G.prototype.otherCallRejected=function(Me){Z(this.promise,this.onRejected,Me)},T.resolve=function(Me,Ce){var le=me(te,Ce);if("error"===le.status)return T.reject(Me,le.value);var ae=le.value;if(ae)be(Me,ae);else{Me.state=A,Me.outcome=Ce;for(var Ie=-1,$e=Me.queue.length;++Ie<$e;)Me.queue[Ie].callFulfilled(Ce)}return Me},T.reject=function(Me,Ce){Me.state=S,Me.outcome=Ce;for(var le=-1,ae=Me.queue.length;++le<ae;)Me.queue[le].callRejected(Ce);return Me},N.resolve=function pe(Me){return Me instanceof this?Me:T.resolve(new this(C),Me)},N.reject=function Te(Me){var Ce=new this(C);return T.reject(Ce,Me)},N.all=function xe(Me){var Ce=this;if("[object Array]"!==Object.prototype.toString.call(Me))return this.reject(new TypeError("must be an array"));var le=Me.length,ae=!1;if(!le)return this.resolve([]);for(var Ie=new Array(le),$e=0,st=-1,ht=new this(C);++st<le;)vt(Me[st],st);return ht;function vt(at,Xt){Ce.resolve(at).then(function ln(yn){Ie[Xt]=yn,++$e===le&&!ae&&(ae=!0,T.resolve(ht,Ie))},function(yn){ae||(ae=!0,T.reject(ht,yn))})}},N.race=function Re(Me){var Ce=this;if("[object Array]"!==Object.prototype.toString.call(Me))return this.reject(new TypeError("must be an array"));var le=Me.length,ae=!1;if(!le)return this.resolve([]);for(var Ie=-1,$e=new this(C);++Ie<le;)Ce.resolve(Me[Ie]).then(function(vt){ae||(ae=!0,T.resolve($e,vt))},function(vt){ae||(ae=!0,T.reject($e,vt))});return $e}},{1:1}],3:[function(a,c,y){(function(w){"use strict";"function"!=typeof w.Promise&&(w.Promise=a(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(a,c,y){"use strict";var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ve){return typeof ve}:function(ve){return ve&&"function"==typeof Symbol&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve};var S=function T(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}();function I(ve,et){ve=ve||[],et=et||{};try{return new Blob(ve,et)}catch(Mt){if("TypeError"!==Mt.name)throw Mt;for(var pt=new(typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder),$t=0;$t<ve.length;$t+=1)pt.append(ve[$t]);return pt.getBlob(et.type)}}typeof Promise>"u"&&a(3);var N=Promise;function G(ve,et){et&&ve.then(function(Oe){et(null,Oe)},function(Oe){et(Oe)})}function Z(ve,et,Oe){"function"==typeof et&&ve.then(et),"function"==typeof Oe&&ve.catch(Oe)}function te(ve){return"string"!=typeof ve&&(console.warn(ve+" used as a key, but it is not a string."),ve=String(ve)),ve}function be(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var me="local-forage-detect-blob-support",pe=void 0,Te={},xe=Object.prototype.toString,Re="readonly",Me="readwrite";function Ce(ve){for(var et=ve.length,Oe=new ArrayBuffer(et),pt=new Uint8Array(Oe),$t=0;$t<et;$t++)pt[$t]=ve.charCodeAt($t);return Oe}function ae(ve){return"boolean"==typeof pe?N.resolve(pe):function le(ve){return new N(function(et){var Oe=ve.transaction(me,Me),pt=I([""]);Oe.objectStore(me).put(pt,"key"),Oe.onabort=function($t){$t.preventDefault(),$t.stopPropagation(),et(!1)},Oe.oncomplete=function(){var $t=navigator.userAgent.match(/Chrome\/(\d+)/),Mt=navigator.userAgent.match(/Edge\//);et(Mt||!$t||parseInt($t[1],10)>=43)}}).catch(function(){return!1})}(ve).then(function(et){return pe=et})}function Ie(ve){var et=Te[ve.name],Oe={};Oe.promise=new N(function(pt,$t){Oe.resolve=pt,Oe.reject=$t}),et.deferredOperations.push(Oe),et.dbReady=et.dbReady?et.dbReady.then(function(){return Oe.promise}):Oe.promise}function $e(ve){var Oe=Te[ve.name].deferredOperations.pop();if(Oe)return Oe.resolve(),Oe.promise}function st(ve,et){var pt=Te[ve.name].deferredOperations.pop();if(pt)return pt.reject(et),pt.promise}function ht(ve,et){return new N(function(Oe,pt){if(Te[ve.name]=Te[ve.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},ve.db){if(!et)return Oe(ve.db);Ie(ve),ve.db.close()}var $t=[ve.name];et&&$t.push(ve.version);var Mt=S.open.apply(S,$t);et&&(Mt.onupgradeneeded=function(un){var Cn=Mt.result;try{Cn.createObjectStore(ve.storeName),un.oldVersion<=1&&Cn.createObjectStore(me)}catch(Sn){if("ConstraintError"!==Sn.name)throw Sn;console.warn('The database "'+ve.name+'" has been upgraded from version '+un.oldVersion+" to version "+un.newVersion+', but the storage "'+ve.storeName+'" already exists.')}}),Mt.onerror=function(un){un.preventDefault(),pt(Mt.error)},Mt.onsuccess=function(){var un=Mt.result;un.onversionchange=function(Cn){Cn.target.close()},Oe(un),$e(ve)}})}function vt(ve){return ht(ve,!1)}function at(ve){return ht(ve,!0)}function Xt(ve,et){if(!ve.db)return!0;var Oe=!ve.db.objectStoreNames.contains(ve.storeName),$t=ve.version>ve.db.version;if(ve.version<ve.db.version&&(ve.version!==et&&console.warn('The database "'+ve.name+"\" can't be downgraded from version "+ve.db.version+" to version "+ve.version+"."),ve.version=ve.db.version),$t||Oe){if(Oe){var Mt=ve.db.version+1;Mt>ve.version&&(ve.version=Mt)}return!0}return!1}function yn(ve){return I([Ce(atob(ve.data))],{type:ve.type})}function $n(ve){return ve&&ve.__local_forage_encoded_blob}function bn(ve){var et=this,Oe=et._initReady().then(function(){var pt=Te[et._dbInfo.name];if(pt&&pt.dbReady)return pt.dbReady});return Z(Oe,ve,ve),Oe}function bt(ve,et,Oe,pt){void 0===pt&&(pt=1);try{var $t=ve.db.transaction(ve.storeName,et);Oe(null,$t)}catch(Mt){if(pt>0&&(!ve.db||"InvalidStateError"===Mt.name||"NotFoundError"===Mt.name))return N.resolve().then(function(){if(!ve.db||"NotFoundError"===Mt.name&&!ve.db.objectStoreNames.contains(ve.storeName)&&ve.version<=ve.db.version)return ve.db&&(ve.version=ve.db.version+1),at(ve)}).then(function(){return function Qe(ve){Ie(ve);for(var et=Te[ve.name],Oe=et.forages,pt=0;pt<Oe.length;pt++){var $t=Oe[pt];$t._dbInfo.db&&($t._dbInfo.db.close(),$t._dbInfo.db=null)}return ve.db=null,vt(ve).then(function(Mt){return ve.db=Mt,Xt(ve)?at(ve):Mt}).then(function(Mt){ve.db=et.db=Mt;for(var un=0;un<Oe.length;un++)Oe[un]._dbInfo.db=Mt}).catch(function(Mt){throw st(ve,Mt),Mt})}(ve).then(function(){bt(ve,et,Oe,pt-1)})}).catch(Oe);Oe(Mt)}}var Jt={_driver:"asyncStorage",_initStorage:function Fe(ve){var et=this,Oe={db:null};if(ve)for(var pt in ve)Oe[pt]=ve[pt];var $t=Te[Oe.name];$t||(Te[Oe.name]=$t={forages:[],db:null,dbReady:null,deferredOperations:[]}),$t.forages.push(et),et._initReady||(et._initReady=et.ready,et.ready=bn);var Mt=[];function un(){return N.resolve()}for(var Cn=0;Cn<$t.forages.length;Cn++){var Sn=$t.forages[Cn];Sn!==et&&Mt.push(Sn._initReady().catch(un))}var kn=$t.forages.slice(0);return N.all(Mt).then(function(){return Oe.db=$t.db,vt(Oe)}).then(function(Un){return Oe.db=Un,Xt(Oe,et._defaultConfig.version)?at(Oe):Un}).then(function(Un){Oe.db=$t.db=Un,et._dbInfo=Oe;for(var Jn=0;Jn<kn.length;Jn++){var sr=kn[Jn];sr!==et&&(sr._dbInfo.db=Oe.db,sr._dbInfo.version=Oe.version)}})},_support:function A(){try{if(!S||!S.open)return!1;var ve=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),et="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!ve||et)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}(),iterate:function Ke(ve,et){var Oe=this,pt=new N(function($t,Mt){Oe.ready().then(function(){bt(Oe._dbInfo,Re,function(un,Cn){if(un)return Mt(un);try{var kn=Cn.objectStore(Oe._dbInfo.storeName).openCursor(),Un=1;kn.onsuccess=function(){var Jn=kn.result;if(Jn){var sr=Jn.value;$n(sr)&&(sr=yn(sr));var kr=ve(sr,Jn.key,Un++);void 0!==kr?$t(kr):Jn.continue()}else $t()},kn.onerror=function(){Mt(kn.error)}}catch(Jn){Mt(Jn)}})}).catch(Mt)});return G(pt,et),pt},getItem:function Ft(ve,et){var Oe=this;ve=te(ve);var pt=new N(function($t,Mt){Oe.ready().then(function(){bt(Oe._dbInfo,Re,function(un,Cn){if(un)return Mt(un);try{var kn=Cn.objectStore(Oe._dbInfo.storeName).get(ve);kn.onsuccess=function(){var Un=kn.result;void 0===Un&&(Un=null),$n(Un)&&(Un=yn(Un)),$t(Un)},kn.onerror=function(){Mt(kn.error)}}catch(Un){Mt(Un)}})}).catch(Mt)});return G(pt,et),pt},setItem:function dt(ve,et,Oe){var pt=this;ve=te(ve);var $t=new N(function(Mt,un){var Cn;pt.ready().then(function(){return Cn=pt._dbInfo,"[object Blob]"===xe.call(et)?ae(Cn.db).then(function(Sn){return Sn?et:function ln(ve){return new N(function(et,Oe){var pt=new FileReader;pt.onerror=Oe,pt.onloadend=function($t){var Mt=btoa($t.target.result||"");et({__local_forage_encoded_blob:!0,data:Mt,type:ve.type})},pt.readAsBinaryString(ve)})}(et)}):et}).then(function(Sn){bt(pt._dbInfo,Me,function(kn,Un){if(kn)return un(kn);try{var Jn=Un.objectStore(pt._dbInfo.storeName);null===Sn&&(Sn=void 0);var sr=Jn.put(Sn,ve);Un.oncomplete=function(){void 0===Sn&&(Sn=null),Mt(Sn)},Un.onabort=Un.onerror=function(){un(sr.error?sr.error:sr.transaction.error)}}catch(kr){un(kr)}})}).catch(un)});return G($t,Oe),$t},removeItem:function Ge(ve,et){var Oe=this;ve=te(ve);var pt=new N(function($t,Mt){Oe.ready().then(function(){bt(Oe._dbInfo,Me,function(un,Cn){if(un)return Mt(un);try{var kn=Cn.objectStore(Oe._dbInfo.storeName).delete(ve);Cn.oncomplete=function(){$t()},Cn.onerror=function(){Mt(kn.error)},Cn.onabort=function(){Mt(kn.error?kn.error:kn.transaction.error)}}catch(Un){Mt(Un)}})}).catch(Mt)});return G(pt,et),pt},clear:function He(ve){var et=this,Oe=new N(function(pt,$t){et.ready().then(function(){bt(et._dbInfo,Me,function(Mt,un){if(Mt)return $t(Mt);try{var Sn=un.objectStore(et._dbInfo.storeName).clear();un.oncomplete=function(){pt()},un.onabort=un.onerror=function(){$t(Sn.error?Sn.error:Sn.transaction.error)}}catch(kn){$t(kn)}})}).catch($t)});return G(Oe,ve),Oe},length:function mt(ve){var et=this,Oe=new N(function(pt,$t){et.ready().then(function(){bt(et._dbInfo,Re,function(Mt,un){if(Mt)return $t(Mt);try{var Sn=un.objectStore(et._dbInfo.storeName).count();Sn.onsuccess=function(){pt(Sn.result)},Sn.onerror=function(){$t(Sn.error)}}catch(kn){$t(kn)}})}).catch($t)});return G(Oe,ve),Oe},key:function se(ve,et){var Oe=this,pt=new N(function($t,Mt){ve<0?$t(null):Oe.ready().then(function(){bt(Oe._dbInfo,Re,function(un,Cn){if(un)return Mt(un);try{var Sn=Cn.objectStore(Oe._dbInfo.storeName),kn=!1,Un=Sn.openKeyCursor();Un.onsuccess=function(){var Jn=Un.result;Jn?0===ve||kn?$t(Jn.key):(kn=!0,Jn.advance(ve)):$t(null)},Un.onerror=function(){Mt(Un.error)}}catch(Jn){Mt(Jn)}})}).catch(Mt)});return G(pt,et),pt},keys:function Ze(ve){var et=this,Oe=new N(function(pt,$t){et.ready().then(function(){bt(et._dbInfo,Re,function(Mt,un){if(Mt)return $t(Mt);try{var Sn=un.objectStore(et._dbInfo.storeName).openKeyCursor(),kn=[];Sn.onsuccess=function(){var Un=Sn.result;Un?(kn.push(Un.key),Un.continue()):pt(kn)},Sn.onerror=function(){$t(Sn.error)}}catch(Un){$t(Un)}})}).catch($t)});return G(Oe,ve),Oe},dropInstance:function Rt(ve,et){et=be.apply(this,arguments);var $t,Oe=this.config();return(ve="function"!=typeof ve&&ve||{}).name||(ve.name=ve.name||Oe.name,ve.storeName=ve.storeName||Oe.storeName),G($t=ve.name?(ve.name===Oe.name&&this._dbInfo.db?N.resolve(this._dbInfo.db):vt(ve).then(function(Cn){var Sn=Te[ve.name],kn=Sn.forages;Sn.db=Cn;for(var Un=0;Un<kn.length;Un++)kn[Un]._dbInfo.db=Cn;return Cn})).then(ve.storeName?function(Cn){if(Cn.objectStoreNames.contains(ve.storeName)){var Sn=Cn.version+1;Ie(ve);var kn=Te[ve.name],Un=kn.forages;Cn.close();for(var Jn=0;Jn<Un.length;Jn++){var sr=Un[Jn];sr._dbInfo.db=null,sr._dbInfo.version=Sn}return new N(function(mr,bi){var si=S.open(ve.name,Sn);si.onerror=function(gr){si.result.close(),bi(gr)},si.onupgradeneeded=function(){si.result.deleteObjectStore(ve.storeName)},si.onsuccess=function(){var gr=si.result;gr.close(),mr(gr)}}).then(function(mr){kn.db=mr;for(var bi=0;bi<Un.length;bi++){var si=Un[bi];si._dbInfo.db=mr,$e(si._dbInfo)}}).catch(function(mr){throw(st(ve,mr)||N.resolve()).catch(function(){}),mr})}}:function(Cn){Ie(ve);var Sn=Te[ve.name],kn=Sn.forages;Cn.close();for(var Un=0;Un<kn.length;Un++)kn[Un]._dbInfo.db=null;return new N(function(kr,mr){var bi=S.deleteDatabase(ve.name);bi.onerror=function(){var si=bi.result;si&&si.close(),mr(bi.error)},bi.onblocked=function(){console.warn('dropInstance blocked for database "'+ve.name+'" until all open connections are closed')},bi.onsuccess=function(){var si=bi.result;si&&si.close(),kr(si)}}).then(function(kr){Sn.db=kr;for(var mr=0;mr<kn.length;mr++)$e(kn[mr]._dbInfo)}).catch(function(kr){throw(st(ve,kr)||N.resolve()).catch(function(){}),kr})}):N.reject("Invalid arguments"),et),$t}};var Gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qt=/^~~local_forage_type~([^~]+)~/,an="__lfsc__:",En="arbf",Gt="blob",B="ui32",k="fl32",j="fl64",it=Object.prototype.toString;function ot(ve){var pt,Mt,un,Cn,Sn,et=.75*ve.length,Oe=ve.length,$t=0;"="===ve[ve.length-1]&&(et--,"="===ve[ve.length-2]&&et--);var kn=new ArrayBuffer(et),Un=new Uint8Array(kn);for(pt=0;pt<Oe;pt+=4)Mt=Gn.indexOf(ve[pt]),un=Gn.indexOf(ve[pt+1]),Cn=Gn.indexOf(ve[pt+2]),Sn=Gn.indexOf(ve[pt+3]),Un[$t++]=Mt<<2|un>>4,Un[$t++]=(15&un)<<4|Cn>>2,Un[$t++]=(3&Cn)<<6|63&Sn;return kn}function Tt(ve){var pt,et=new Uint8Array(ve),Oe="";for(pt=0;pt<et.length;pt+=3)Oe+=Gn[et[pt]>>2],Oe+=Gn[(3&et[pt])<<4|et[pt+1]>>4],Oe+=Gn[(15&et[pt+1])<<2|et[pt+2]>>6],Oe+=Gn[63&et[pt+2]];return et.length%3==2?Oe=Oe.substring(0,Oe.length-1)+"=":et.length%3==1&&(Oe=Oe.substring(0,Oe.length-2)+"=="),Oe}var dn={serialize:function In(ve,et){var Oe="";if(ve&&(Oe=it.call(ve)),ve&&("[object ArrayBuffer]"===Oe||ve.buffer&&"[object ArrayBuffer]"===it.call(ve.buffer))){var pt,$t=an;ve instanceof ArrayBuffer?(pt=ve,$t+=En):(pt=ve.buffer,"[object Int8Array]"===Oe?$t+="si08":"[object Uint8Array]"===Oe?$t+="ui08":"[object Uint8ClampedArray]"===Oe?$t+="uic8":"[object Int16Array]"===Oe?$t+="si16":"[object Uint16Array]"===Oe?$t+="ur16":"[object Int32Array]"===Oe?$t+="si32":"[object Uint32Array]"===Oe?$t+=B:"[object Float32Array]"===Oe?$t+=k:"[object Float64Array]"===Oe?$t+=j:et(new Error("Failed to get type for BinaryArray"))),et($t+Tt(pt))}else if("[object Blob]"===Oe){var Mt=new FileReader;Mt.onload=function(){var un="~~local_forage_type~"+ve.type+"~"+Tt(this.result);et(an+Gt+un)},Mt.readAsArrayBuffer(ve)}else try{et(JSON.stringify(ve))}catch(un){console.error("Couldn't convert value into a JSON string: ",ve),et(null,un)}},deserialize:function Vt(ve){if(ve.substring(0,9)!==an)return JSON.parse(ve);var pt,et=ve.substring(13),Oe=ve.substring(9,13);if(Oe===Gt&&Qt.test(et)){var $t=et.match(Qt);pt=$t[1],et=et.substring($t[0].length)}var Mt=ot(et);switch(Oe){case En:return Mt;case Gt:return I([Mt],{type:pt});case"si08":return new Int8Array(Mt);case"ui08":return new Uint8Array(Mt);case"uic8":return new Uint8ClampedArray(Mt);case"si16":return new Int16Array(Mt);case"ur16":return new Uint16Array(Mt);case"si32":return new Int32Array(Mt);case B:return new Uint32Array(Mt);case k:return new Float32Array(Mt);case j:return new Float64Array(Mt);default:throw new Error("Unkown type: "+Oe)}},stringToBuffer:ot,bufferToString:Tt};function Pn(ve,et,Oe,pt){ve.executeSql("CREATE TABLE IF NOT EXISTS "+et.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Oe,pt)}function Bn(ve,et,Oe,pt,$t,Mt){ve.executeSql(Oe,pt,$t,function(un,Cn){Cn.code===Cn.SYNTAX_ERR?un.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[et.storeName],function(Sn,kn){kn.rows.length?Mt(Sn,Cn):Pn(Sn,et,function(){Sn.executeSql(Oe,pt,$t,Mt)},Mt)},Mt):Mt(un,Cn)},Mt)}function Xr(ve,et,Oe,pt){var $t=this;ve=te(ve);var Mt=new N(function(un,Cn){$t.ready().then(function(){void 0===et&&(et=null);var Sn=et,kn=$t._dbInfo;kn.serializer.serialize(et,function(Un,Jn){Jn?Cn(Jn):kn.db.transaction(function(sr){Bn(sr,kn,"INSERT OR REPLACE INTO "+kn.storeName+" (key, value) VALUES (?, ?)",[ve,Un],function(){un(Sn)},function(kr,mr){Cn(mr)})},function(sr){if(sr.code===sr.QUOTA_ERR){if(pt>0)return void un(Xr.apply($t,[ve,Sn,Oe,pt-1]));Cn(sr)}})})}).catch(Cn)});return G(Mt,Oe),Mt}var mn={_driver:"webSQLStorage",_initStorage:function Fn(ve){var et=this,Oe={db:null};if(ve)for(var pt in ve)Oe[pt]="string"!=typeof ve[pt]?ve[pt].toString():ve[pt];var $t=new N(function(Mt,un){try{Oe.db=openDatabase(Oe.name,String(Oe.version),Oe.description,Oe.size)}catch(Cn){return un(Cn)}Oe.db.transaction(function(Cn){Pn(Cn,Oe,function(){et._dbInfo=Oe,Mt()},function(Sn,kn){un(kn)})},un)});return Oe.serializer=dn,$t},_support:function fn(){return"function"==typeof openDatabase}(),iterate:function Jr(ve,et){var Oe=this,pt=new N(function($t,Mt){Oe.ready().then(function(){var un=Oe._dbInfo;un.db.transaction(function(Cn){Bn(Cn,un,"SELECT * FROM "+un.storeName,[],function(Sn,kn){for(var Un=kn.rows,Jn=Un.length,sr=0;sr<Jn;sr++){var kr=Un.item(sr),mr=kr.value;if(mr&&(mr=un.serializer.deserialize(mr)),void 0!==(mr=ve(mr,kr.key,sr+1)))return void $t(mr)}$t()},function(Sn,kn){Mt(kn)})})}).catch(Mt)});return G(pt,et),pt},getItem:function cr(ve,et){var Oe=this;ve=te(ve);var pt=new N(function($t,Mt){Oe.ready().then(function(){var un=Oe._dbInfo;un.db.transaction(function(Cn){Bn(Cn,un,"SELECT * FROM "+un.storeName+" WHERE key = ? LIMIT 1",[ve],function(Sn,kn){var Un=kn.rows.length?kn.rows.item(0).value:null;Un&&(Un=un.serializer.deserialize(Un)),$t(Un)},function(Sn,kn){Mt(kn)})})}).catch(Mt)});return G(pt,et),pt},setItem:function _t(ve,et,Oe){return Xr.apply(this,[ve,et,Oe,1])},removeItem:function Bt(ve,et){var Oe=this;ve=te(ve);var pt=new N(function($t,Mt){Oe.ready().then(function(){var un=Oe._dbInfo;un.db.transaction(function(Cn){Bn(Cn,un,"DELETE FROM "+un.storeName+" WHERE key = ?",[ve],function(){$t()},function(Sn,kn){Mt(kn)})})}).catch(Mt)});return G(pt,et),pt},clear:function Ee(ve){var et=this,Oe=new N(function(pt,$t){et.ready().then(function(){var Mt=et._dbInfo;Mt.db.transaction(function(un){Bn(un,Mt,"DELETE FROM "+Mt.storeName,[],function(){pt()},function(Cn,Sn){$t(Sn)})})}).catch($t)});return G(Oe,ve),Oe},length:function lt(ve){var et=this,Oe=new N(function(pt,$t){et.ready().then(function(){var Mt=et._dbInfo;Mt.db.transaction(function(un){Bn(un,Mt,"SELECT COUNT(key) as c FROM "+Mt.storeName,[],function(Cn,Sn){var kn=Sn.rows.item(0).c;pt(kn)},function(Cn,Sn){$t(Sn)})})}).catch($t)});return G(Oe,ve),Oe},key:function Pe(ve,et){var Oe=this,pt=new N(function($t,Mt){Oe.ready().then(function(){var un=Oe._dbInfo;un.db.transaction(function(Cn){Bn(Cn,un,"SELECT key FROM "+un.storeName+" WHERE id = ? LIMIT 1",[ve+1],function(Sn,kn){var Un=kn.rows.length?kn.rows.item(0).key:null;$t(Un)},function(Sn,kn){Mt(kn)})})}).catch(Mt)});return G(pt,et),pt},keys:function kt(ve){var et=this,Oe=new N(function(pt,$t){et.ready().then(function(){var Mt=et._dbInfo;Mt.db.transaction(function(un){Bn(un,Mt,"SELECT key FROM "+Mt.storeName,[],function(Cn,Sn){for(var kn=[],Un=0;Un<Sn.rows.length;Un++)kn.push(Sn.rows.item(Un).key);pt(kn)},function(Cn,Sn){$t(Sn)})})}).catch($t)});return G(Oe,ve),Oe},dropInstance:function Pt(ve,et){et=be.apply(this,arguments);var Oe=this.config();(ve="function"!=typeof ve&&ve||{}).name||(ve.name=ve.name||Oe.name,ve.storeName=ve.storeName||Oe.storeName);var $t,pt=this;return G($t=ve.name?new N(function(Mt){var un;un=ve.name===Oe.name?pt._dbInfo.db:openDatabase(ve.name,"","",0),Mt(ve.storeName?{db:un,storeNames:[ve.storeName]}:function ft(ve){return new N(function(et,Oe){ve.transaction(function(pt){pt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function($t,Mt){for(var un=[],Cn=0;Cn<Mt.rows.length;Cn++)un.push(Mt.rows.item(Cn).name);et({db:ve,storeNames:un})},function($t,Mt){Oe(Mt)})},function(pt){Oe(pt)})})}(un))}).then(function(Mt){return new N(function(un,Cn){Mt.db.transaction(function(Sn){function kn(kr){return new N(function(mr,bi){Sn.executeSql("DROP TABLE IF EXISTS "+kr,[],function(){mr()},function(si,gr){bi(gr)})})}for(var Un=[],Jn=0,sr=Mt.storeNames.length;Jn<sr;Jn++)Un.push(kn(Mt.storeNames[Jn]));N.all(Un).then(function(){un()}).catch(function(kr){Cn(kr)})},function(Sn){Cn(Sn)})})}):N.reject("Invalid arguments"),et),$t}};function Mr(ve,et){var Oe=ve.name+"/";return ve.storeName!==et.storeName&&(Oe+=ve.storeName+"/"),Oe}function ci(){return!function ii(){var ve="_localforage_support_test";try{return localStorage.setItem(ve,!0),localStorage.removeItem(ve),!1}catch{return!0}}()||localStorage.length>0}var Uo={_driver:"localStorageWrapper",_initStorage:function Si(ve){var Oe={};if(ve)for(var pt in ve)Oe[pt]=ve[pt];return Oe.keyPrefix=Mr(ve,this._defaultConfig),ci()?(this._dbInfo=Oe,Oe.serializer=dn,N.resolve()):N.reject()},_support:function or(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function qe(ve,et){var Oe=this,pt=Oe.ready().then(function(){for(var $t=Oe._dbInfo,Mt=$t.keyPrefix,un=Mt.length,Cn=localStorage.length,Sn=1,kn=0;kn<Cn;kn++){var Un=localStorage.key(kn);if(0===Un.indexOf(Mt)){var Jn=localStorage.getItem(Un);if(Jn&&(Jn=$t.serializer.deserialize(Jn)),void 0!==(Jn=ve(Jn,Un.substring(un),Sn++)))return Jn}}});return G(pt,et),pt},getItem:function St(ve,et){var Oe=this;ve=te(ve);var pt=Oe.ready().then(function(){var $t=Oe._dbInfo,Mt=localStorage.getItem($t.keyPrefix+ve);return Mt&&(Mt=$t.serializer.deserialize(Mt)),Mt});return G(pt,et),pt},setItem:function fo(ve,et,Oe){var pt=this;ve=te(ve);var $t=pt.ready().then(function(){void 0===et&&(et=null);var Mt=et;return new N(function(un,Cn){var Sn=pt._dbInfo;Sn.serializer.serialize(et,function(kn,Un){if(Un)Cn(Un);else try{localStorage.setItem(Sn.keyPrefix+ve,kn),un(Mt)}catch(Jn){("QuotaExceededError"===Jn.name||"NS_ERROR_DOM_QUOTA_REACHED"===Jn.name)&&Cn(Jn),Cn(Jn)}})})});return G($t,Oe),$t},removeItem:function fr(ve,et){var Oe=this;ve=te(ve);var pt=Oe.ready().then(function(){localStorage.removeItem(Oe._dbInfo.keyPrefix+ve)});return G(pt,et),pt},clear:function rn(ve){var et=this,Oe=et.ready().then(function(){for(var pt=et._dbInfo.keyPrefix,$t=localStorage.length-1;$t>=0;$t--){var Mt=localStorage.key($t);0===Mt.indexOf(pt)&&localStorage.removeItem(Mt)}});return G(Oe,ve),Oe},length:function Hn(ve){var Oe=this.keys().then(function(pt){return pt.length});return G(Oe,ve),Oe},key:function Dt(ve,et){var Oe=this,pt=Oe.ready().then(function(){var Mt,$t=Oe._dbInfo;try{Mt=localStorage.key(ve)}catch{Mt=null}return Mt&&(Mt=Mt.substring($t.keyPrefix.length)),Mt});return G(pt,et),pt},keys:function Wt(ve){var et=this,Oe=et.ready().then(function(){for(var pt=et._dbInfo,$t=localStorage.length,Mt=[],un=0;un<$t;un++){var Cn=localStorage.key(un);0===Cn.indexOf(pt.keyPrefix)&&Mt.push(Cn.substring(pt.keyPrefix.length))}return Mt});return G(Oe,ve),Oe},dropInstance:function Oi(ve,et){if(et=be.apply(this,arguments),!(ve="function"!=typeof ve&&ve||{}).name){var Oe=this.config();ve.name=ve.name||Oe.name,ve.storeName=ve.storeName||Oe.storeName}var $t,pt=this;return G($t=ve.name?new N(function(Mt){Mt(ve.storeName?Mr(ve,pt._defaultConfig):ve.name+"/")}).then(function(Mt){for(var un=localStorage.length-1;un>=0;un--){var Cn=localStorage.key(un);0===Cn.indexOf(Mt)&&localStorage.removeItem(Cn)}}):N.reject("Invalid arguments"),et),$t}},oi=function(et,Oe){return et===Oe||"number"==typeof et&&"number"==typeof Oe&&isNaN(et)&&isNaN(Oe)},ts=function(et,Oe){for(var pt=et.length,$t=0;$t<pt;){if(oi(et[$t],Oe))return!0;$t++}return!1},ao=Array.isArray||function(ve){return"[object Array]"===Object.prototype.toString.call(ve)},wo={},Xo={},Do={INDEXEDDB:Jt,WEBSQL:mn,LOCALSTORAGE:Uo},Ts=[Do.INDEXEDDB._driver,Do.WEBSQL._driver,Do.LOCALSTORAGE._driver],eo=["dropInstance"],oo=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(eo),Bi={description:"",driver:Ts.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Mo(ve,et){ve[et]=function(){var Oe=arguments;return ve.ready().then(function(){return ve[et].apply(ve,Oe)})}}function Je(){for(var ve=1;ve<arguments.length;ve++){var et=arguments[ve];if(et)for(var Oe in et)et.hasOwnProperty(Oe)&&(arguments[0][Oe]=ao(et[Oe])?et[Oe].slice():et[Oe])}return arguments[0]}var ct=function(){function ve(et){for(var Oe in function C(ve,et){if(!(ve instanceof et))throw new TypeError("Cannot call a class as a function")}(this,ve),Do)if(Do.hasOwnProperty(Oe)){var pt=Do[Oe],$t=pt._driver;this[Oe]=$t,wo[$t]||this.defineDriver(pt)}this._defaultConfig=Je({},Bi),this._config=Je({},this._defaultConfig,et),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return ve.prototype.config=function(Oe){if("object"===(typeof Oe>"u"?"undefined":w(Oe))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var pt in Oe){if("storeName"===pt&&(Oe[pt]=Oe[pt].replace(/\W/g,"_")),"version"===pt&&"number"!=typeof Oe[pt])return new Error("Database version must be a number.");this._config[pt]=Oe[pt]}return!("driver"in Oe)||!Oe.driver||this.setDriver(this._config.driver)}return"string"==typeof Oe?this._config[Oe]:this._config},ve.prototype.defineDriver=function(Oe,pt,$t){var Mt=new N(function(un,Cn){try{var Sn=Oe._driver,kn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Oe._driver)return void Cn(kn);for(var Un=oo.concat("_initStorage"),Jn=0,sr=Un.length;Jn<sr;Jn++){var kr=Un[Jn];if((!ts(eo,kr)||Oe[kr])&&"function"!=typeof Oe[kr])return void Cn(kn)}!function(){for(var ai=function(bs){return function(){var na=new Error("Method "+bs+" is not implemented by the current driver"),Sr=N.reject(na);return G(Sr,arguments[arguments.length-1]),Sr}},yo=0,$r=eo.length;yo<$r;yo++){var Ki=eo[yo];Oe[Ki]||(Oe[Ki]=ai(Ki))}}();var si=function(ai){wo[Sn]&&console.info("Redefining LocalForage driver: "+Sn),wo[Sn]=Oe,Xo[Sn]=ai,un()};"_support"in Oe?Oe._support&&"function"==typeof Oe._support?Oe._support().then(si,Cn):si(!!Oe._support):si(!0)}catch(gr){Cn(gr)}});return Z(Mt,pt,$t),Mt},ve.prototype.driver=function(){return this._driver||null},ve.prototype.getDriver=function(Oe,pt,$t){var Mt=wo[Oe]?N.resolve(wo[Oe]):N.reject(new Error("Driver not found."));return Z(Mt,pt,$t),Mt},ve.prototype.getSerializer=function(Oe){var pt=N.resolve(dn);return Z(pt,Oe),pt},ve.prototype.ready=function(Oe){var pt=this,$t=pt._driverSet.then(function(){return null===pt._ready&&(pt._ready=pt._initDriver()),pt._ready});return Z($t,Oe,Oe),$t},ve.prototype.setDriver=function(Oe,pt,$t){var Mt=this;ao(Oe)||(Oe=[Oe]);var un=this._getSupportedDrivers(Oe);function Cn(){Mt._config.driver=Mt.driver()}function Sn(Jn){return Mt._extend(Jn),Cn(),Mt._ready=Mt._initStorage(Mt._config),Mt._ready}var Un=null!==this._driverSet?this._driverSet.catch(function(){return N.resolve()}):N.resolve();return this._driverSet=Un.then(function(){var Jn=un[0];return Mt._dbInfo=null,Mt._ready=null,Mt.getDriver(Jn).then(function(sr){Mt._driver=sr._driver,Cn(),Mt._wrapLibraryMethodsWithReady(),Mt._initDriver=function kn(Jn){return function(){var sr=0;return function kr(){for(;sr<Jn.length;){var mr=Jn[sr];return sr++,Mt._dbInfo=null,Mt._ready=null,Mt.getDriver(mr).then(Sn).catch(kr)}Cn();var bi=new Error("No available storage method found.");return Mt._driverSet=N.reject(bi),Mt._driverSet}()}}(un)})}).catch(function(){Cn();var Jn=new Error("No available storage method found.");return Mt._driverSet=N.reject(Jn),Mt._driverSet}),Z(this._driverSet,pt,$t),this._driverSet},ve.prototype.supports=function(Oe){return!!Xo[Oe]},ve.prototype._extend=function(Oe){Je(this,Oe)},ve.prototype._getSupportedDrivers=function(Oe){for(var pt=[],$t=0,Mt=Oe.length;$t<Mt;$t++){var un=Oe[$t];this.supports(un)&&pt.push(un)}return pt},ve.prototype._wrapLibraryMethodsWithReady=function(){for(var Oe=0,pt=oo.length;Oe<pt;Oe++)Mo(this,oo[Oe])},ve.prototype.createInstance=function(Oe){return new ve(Oe)},ve}(),Et=new ct;c.exports=Et},{3:3}]},{},[4])(4)},4412:(o,s,r)=>{"use strict";r.d(s,{t:()=>a});var i=r(1413);class a extends i.B{constructor(y){super(),this._value=y}get value(){return this.getValue()}_subscribe(y){const w=super._subscribe(y);return!w.closed&&y.next(this._value),w}getValue(){const{hasError:y,thrownError:w,_value:C}=this;if(y)throw w;return this._throwIfClosed(),C}next(y){super.next(this._value=y)}}},1985:(o,s,r)=>{"use strict";r.d(s,{c:()=>S});var i=r(7707),a=r(8359),c=r(3494),y=r(1203),w=r(1026),C=r(8071),T=r(9786);let S=(()=>{class G{constructor(te){te&&(this._subscribe=te)}lift(te){const be=new G;return be.source=this,be.operator=te,be}subscribe(te,be,me){const pe=function N(G){return G&&G instanceof i.vU||function I(G){return G&&(0,C.T)(G.next)&&(0,C.T)(G.error)&&(0,C.T)(G.complete)}(G)&&(0,a.Uv)(G)}(te)?te:new i.Ms(te,be,me);return(0,T.Y)(()=>{const{operator:Te,source:xe}=this;pe.add(Te?Te.call(pe,xe):xe?this._subscribe(pe):this._trySubscribe(pe))}),pe}_trySubscribe(te){try{return this._subscribe(te)}catch(be){te.error(be)}}forEach(te,be){return new(be=A(be))((me,pe)=>{const Te=new i.Ms({next:xe=>{try{te(xe)}catch(Re){pe(Re),Te.unsubscribe()}},error:pe,complete:me});this.subscribe(Te)})}_subscribe(te){var be;return null===(be=this.source)||void 0===be?void 0:be.subscribe(te)}[c.s](){return this}pipe(...te){return(0,y.m)(te)(this)}toPromise(te){return new(te=A(te))((be,me)=>{let pe;this.subscribe(Te=>pe=Te,Te=>me(Te),()=>be(pe))})}}return G.create=Z=>new G(Z),G})();function A(G){var Z;return null!==(Z=G??w.$.Promise)&&void 0!==Z?Z:Promise}},2771:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(1413),a=r(6129);class c extends i.B{constructor(w=1/0,C=1/0,T=a.U){super(),this._bufferSize=w,this._windowTime=C,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,w),this._windowTime=Math.max(1,C)}next(w){const{isStopped:C,_buffer:T,_infiniteTimeWindow:S,_timestampProvider:A,_windowTime:I}=this;C||(T.push(w),!S&&T.push(A.now()+I)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(w),{_infiniteTimeWindow:T,_buffer:S}=this,A=S.slice();for(let I=0;I<A.length&&!w.closed;I+=T?1:2)w.next(A[I]);return this._checkFinalizedStatuses(w),C}_trimBuffer(){const{_bufferSize:w,_timestampProvider:C,_buffer:T,_infiniteTimeWindow:S}=this,A=(S?1:2)*w;if(w<1/0&&A<T.length&&T.splice(0,T.length-A),!S){const I=C.now();let N=0;for(let G=1;G<T.length&&T[G]<=I;G+=2)N=G;N&&T.splice(0,N+1)}}}},1413:(o,s,r)=>{"use strict";r.d(s,{B:()=>T});var i=r(1985),a=r(8359);const y=(0,r(1853).L)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=r(7908),C=r(9786);let T=(()=>{class A extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(N){const G=new S(this,this);return G.operator=N,G}_throwIfClosed(){if(this.closed)throw new y}next(N){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const G of this.currentObservers)G.next(N)}})}error(N){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=N;const{observers:G}=this;for(;G.length;)G.shift().error(N)}})}complete(){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:N}=this;for(;N.length;)N.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var N;return(null===(N=this.observers)||void 0===N?void 0:N.length)>0}_trySubscribe(N){return this._throwIfClosed(),super._trySubscribe(N)}_subscribe(N){return this._throwIfClosed(),this._checkFinalizedStatuses(N),this._innerSubscribe(N)}_innerSubscribe(N){const{hasError:G,isStopped:Z,observers:te}=this;return G||Z?a.Kn:(this.currentObservers=null,te.push(N),new a.yU(()=>{this.currentObservers=null,(0,w.o)(te,N)}))}_checkFinalizedStatuses(N){const{hasError:G,thrownError:Z,isStopped:te}=this;G?N.error(Z):te&&N.complete()}asObservable(){const N=new i.c;return N.source=this,N}}return A.create=(I,N)=>new S(I,N),A})();class S extends T{constructor(I,N){super(),this.destination=I,this.source=N}next(I){var N,G;null===(G=null===(N=this.destination)||void 0===N?void 0:N.next)||void 0===G||G.call(N,I)}error(I){var N,G;null===(G=null===(N=this.destination)||void 0===N?void 0:N.error)||void 0===G||G.call(N,I)}complete(){var I,N;null===(N=null===(I=this.destination)||void 0===I?void 0:I.complete)||void 0===N||N.call(I)}_subscribe(I){var N,G;return null!==(G=null===(N=this.source)||void 0===N?void 0:N.subscribe(I))&&void 0!==G?G:a.Kn}}},7707:(o,s,r)=>{"use strict";r.d(s,{Ms:()=>me,vU:()=>G});var i=r(8071),a=r(8359),c=r(1026),y=r(5334),w=r(5343);const C=A("C",void 0,void 0);function A(Me,Ce,le){return{kind:Me,value:Ce,error:le}}var I=r(9270),N=r(9786);class G extends a.yU{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,a.Uv)(Ce)&&Ce.add(this)):this.destination=Re}static create(Ce,le,ae){return new me(Ce,le,ae)}next(Ce){this.isStopped?xe(function S(Me){return A("N",Me,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?xe(function T(Me){return A("E",void 0,Me)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?xe(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Z=Function.prototype.bind;function te(Me,Ce){return Z.call(Me,Ce)}class be{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:le}=this;if(le.next)try{le.next(Ce)}catch(ae){pe(ae)}}error(Ce){const{partialObserver:le}=this;if(le.error)try{le.error(Ce)}catch(ae){pe(ae)}else pe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(le){pe(le)}}}class me extends G{constructor(Ce,le,ae){let Ie;if(super(),(0,i.T)(Ce)||!Ce)Ie={next:Ce??void 0,error:le??void 0,complete:ae??void 0};else{let $e;this&&c.$.useDeprecatedNextContext?($e=Object.create(Ce),$e.unsubscribe=()=>this.unsubscribe(),Ie={next:Ce.next&&te(Ce.next,$e),error:Ce.error&&te(Ce.error,$e),complete:Ce.complete&&te(Ce.complete,$e)}):Ie=Ce}this.destination=new be(Ie)}}function pe(Me){c.$.useDeprecatedSynchronousErrorHandling?(0,N.l)(Me):(0,y.m)(Me)}function xe(Me,Ce){const{onStoppedNotification:le}=c.$;le&&I.f.setTimeout(()=>le(Me,Ce))}const Re={closed:!0,next:w.l,error:function Te(Me){throw Me},complete:w.l}},8359:(o,s,r)=>{"use strict";r.d(s,{Kn:()=>C,yU:()=>w,Uv:()=>T});var i=r(8071);const c=(0,r(1853).L)(A=>function(N){A(this),this.message=N?`${N.length} errors occurred during unsubscription:\n${N.map((G,Z)=>`${Z+1}) ${G.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=N});var y=r(7908);class w{constructor(I){this.initialTeardown=I,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let I;if(!this.closed){this.closed=!0;const{_parentage:N}=this;if(N)if(this._parentage=null,Array.isArray(N))for(const te of N)te.remove(this);else N.remove(this);const{initialTeardown:G}=this;if((0,i.T)(G))try{G()}catch(te){I=te instanceof c?te.errors:[te]}const{_finalizers:Z}=this;if(Z){this._finalizers=null;for(const te of Z)try{S(te)}catch(be){I=I??[],be instanceof c?I=[...I,...be.errors]:I.push(be)}}if(I)throw new c(I)}}add(I){var N;if(I&&I!==this)if(this.closed)S(I);else{if(I instanceof w){if(I.closed||I._hasParent(this))return;I._addParent(this)}(this._finalizers=null!==(N=this._finalizers)&&void 0!==N?N:[]).push(I)}}_hasParent(I){const{_parentage:N}=this;return N===I||Array.isArray(N)&&N.includes(I)}_addParent(I){const{_parentage:N}=this;this._parentage=Array.isArray(N)?(N.push(I),N):N?[N,I]:I}_removeParent(I){const{_parentage:N}=this;N===I?this._parentage=null:Array.isArray(N)&&(0,y.o)(N,I)}remove(I){const{_finalizers:N}=this;N&&(0,y.o)(N,I),I instanceof w&&I._removeParent(this)}}w.EMPTY=(()=>{const A=new w;return A.closed=!0,A})();const C=w.EMPTY;function T(A){return A instanceof w||A&&"closed"in A&&(0,i.T)(A.remove)&&(0,i.T)(A.add)&&(0,i.T)(A.unsubscribe)}function S(A){(0,i.T)(A)?A():A.unsubscribe()}},1026:(o,s,r)=>{"use strict";r.d(s,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(o,s,r)=>{"use strict";r.d(s,{G:()=>C});var i=r(1985),a=r(8359),c=r(9898),y=r(4360),w=r(9974);class C extends i.c{constructor(S,A){super(),this.source=S,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,(0,w.S)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new a.yU;const A=this.getSubject();S.add(this.source.subscribe((0,y._)(A,void 0,()=>{this._teardown(),A.complete()},I=>{this._teardown(),A.error(I)},()=>this._teardown()))),S.closed&&(this._connection=null,S=a.yU.EMPTY)}return S}refCount(){return(0,c.B)()(this)}}},4572:(o,s,r)=>{"use strict";r.d(s,{z:()=>I});var i=r(1985),a=r(3073),c=r(6648),y=r(3669),w=r(6450),C=r(9326),T=r(8496),S=r(4360),A=r(5225);function I(...Z){const te=(0,C.lI)(Z),be=(0,C.ms)(Z),{args:me,keys:pe}=(0,a.D)(Z);if(0===me.length)return(0,c.H)([],te);const Te=new i.c(function N(Z,te,be=y.D){return me=>{G(te,()=>{const{length:pe}=Z,Te=new Array(pe);let xe=pe,Re=pe;for(let Me=0;Me<pe;Me++)G(te,()=>{const Ce=(0,c.H)(Z[Me],te);let le=!1;Ce.subscribe((0,S._)(me,ae=>{Te[Me]=ae,le||(le=!0,Re--),Re||me.next(be(Te.slice()))},()=>{--xe||me.complete()}))},me)},me)}}(me,te,pe?xe=>(0,T.e)(pe,xe):y.D));return be?Te.pipe((0,w.I)(be)):Te}function G(Z,te,be){Z?(0,A.N)(be,Z,te):te()}},8793:(o,s,r)=>{"use strict";r.d(s,{x:()=>w});var i=r(6365),c=r(9326),y=r(6648);function w(...C){return function a(){return(0,i.U)(1)}()((0,y.H)(C,(0,c.lI)(C)))}},9030:(o,s,r)=>{"use strict";r.d(s,{v:()=>c});var i=r(1985),a=r(8750);function c(y){return new i.c(w=>{(0,a.Tg)(y()).subscribe(w)})}},983:(o,s,r)=>{"use strict";r.d(s,{w:()=>a});const a=new(r(1985).c)(w=>w.complete())},7468:(o,s,r)=>{"use strict";r.d(s,{p:()=>S});var i=r(1985),a=r(3073),c=r(8750),y=r(9326),w=r(4360),C=r(6450),T=r(8496);function S(...A){const I=(0,y.ms)(A),{args:N,keys:G}=(0,a.D)(A),Z=new i.c(te=>{const{length:be}=N;if(!be)return void te.complete();const me=new Array(be);let pe=be,Te=be;for(let xe=0;xe<be;xe++){let Re=!1;(0,c.Tg)(N[xe]).subscribe((0,w._)(te,Me=>{Re||(Re=!0,Te--),me[xe]=Me},()=>pe--,void 0,()=>{(!pe||!Re)&&(Te||te.next(G?(0,T.e)(G,me):me),te.complete())}))}});return I?Z.pipe((0,C.I)(I)):Z}},6648:(o,s,r)=>{"use strict";r.d(s,{H:()=>ae});var i=r(8750),a=r(5225),c=r(9974),y=r(4360);function w(Ie,$e=0){return(0,c.N)((st,ht)=>{st.subscribe((0,y._)(ht,vt=>(0,a.N)(ht,Ie,()=>ht.next(vt),$e),()=>(0,a.N)(ht,Ie,()=>ht.complete(),$e),vt=>(0,a.N)(ht,Ie,()=>ht.error(vt),$e)))})}function C(Ie,$e=0){return(0,c.N)((st,ht)=>{ht.add(Ie.schedule(()=>st.subscribe(ht),$e))})}var A=r(1985),N=r(4761),G=r(8071);function te(Ie,$e){if(!Ie)throw new Error("Iterable cannot be null");return new A.c(st=>{(0,a.N)(st,$e,()=>{const ht=Ie[Symbol.asyncIterator]();(0,a.N)(st,$e,()=>{ht.next().then(vt=>{vt.done?st.complete():st.next(vt.value)})},0,!0)})})}var be=r(5055),me=r(9858),pe=r(7441),Te=r(5397),xe=r(7953),Re=r(591),Me=r(5196);function ae(Ie,$e){return $e?function le(Ie,$e){if(null!=Ie){if((0,be.l)(Ie))return function T(Ie,$e){return(0,i.Tg)(Ie).pipe(C($e),w($e))}(Ie,$e);if((0,pe.X)(Ie))return function I(Ie,$e){return new A.c(st=>{let ht=0;return $e.schedule(function(){ht===Ie.length?st.complete():(st.next(Ie[ht++]),st.closed||this.schedule())})})}(Ie,$e);if((0,me.y)(Ie))return function S(Ie,$e){return(0,i.Tg)(Ie).pipe(C($e),w($e))}(Ie,$e);if((0,xe.T)(Ie))return te(Ie,$e);if((0,Te.x)(Ie))return function Z(Ie,$e){return new A.c(st=>{let ht;return(0,a.N)(st,$e,()=>{ht=Ie[N.l](),(0,a.N)(st,$e,()=>{let vt,at;try{({value:vt,done:at}=ht.next())}catch(Xt){return void st.error(Xt)}at?st.complete():st.next(vt)},0,!0)}),()=>(0,G.T)(ht?.return)&&ht.return()})}(Ie,$e);if((0,Me.U)(Ie))return function Ce(Ie,$e){return te((0,Me.C)(Ie),$e)}(Ie,$e)}throw(0,Re.L)(Ie)}(Ie,$e):(0,i.Tg)(Ie)}},3726:(o,s,r)=>{"use strict";r.d(s,{R:()=>I});var i=r(8750),a=r(1985),c=r(1397),y=r(7441),w=r(8071),C=r(6450);const T=["addListener","removeListener"],S=["addEventListener","removeEventListener"],A=["on","off"];function I(be,me,pe,Te){if((0,w.T)(pe)&&(Te=pe,pe=void 0),Te)return I(be,me,pe).pipe((0,C.I)(Te));const[xe,Re]=function te(be){return(0,w.T)(be.addEventListener)&&(0,w.T)(be.removeEventListener)}(be)?S.map(Me=>Ce=>be[Me](me,Ce,pe)):function G(be){return(0,w.T)(be.addListener)&&(0,w.T)(be.removeListener)}(be)?T.map(N(be,me)):function Z(be){return(0,w.T)(be.on)&&(0,w.T)(be.off)}(be)?A.map(N(be,me)):[];if(!xe&&(0,y.X)(be))return(0,c.Z)(Me=>I(Me,me,pe))((0,i.Tg)(be));if(!xe)throw new TypeError("Invalid event target");return new a.c(Me=>{const Ce=(...le)=>Me.next(1<le.length?le:le[0]);return xe(Ce),()=>Re(Ce)})}function N(be,me){return pe=>Te=>be[pe](me,Te)}},8750:(o,s,r)=>{"use strict";r.d(s,{Tg:()=>Z});var i=r(1635),a=r(7441),c=r(9858),y=r(1985),w=r(5055),C=r(7953),T=r(591),S=r(5397),A=r(5196),I=r(8071),N=r(5334),G=r(3494);function Z(Me){if(Me instanceof y.c)return Me;if(null!=Me){if((0,w.l)(Me))return function te(Me){return new y.c(Ce=>{const le=Me[G.s]();if((0,I.T)(le.subscribe))return le.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Me);if((0,a.X)(Me))return function be(Me){return new y.c(Ce=>{for(let le=0;le<Me.length&&!Ce.closed;le++)Ce.next(Me[le]);Ce.complete()})}(Me);if((0,c.y)(Me))return function me(Me){return new y.c(Ce=>{Me.then(le=>{Ce.closed||(Ce.next(le),Ce.complete())},le=>Ce.error(le)).then(null,N.m)})}(Me);if((0,C.T)(Me))return Te(Me);if((0,S.x)(Me))return function pe(Me){return new y.c(Ce=>{for(const le of Me)if(Ce.next(le),Ce.closed)return;Ce.complete()})}(Me);if((0,A.U)(Me))return function xe(Me){return Te((0,A.C)(Me))}(Me)}throw(0,T.L)(Me)}function Te(Me){return new y.c(Ce=>{(function Re(Me,Ce){var le,ae,Ie,$e;return(0,i.sH)(this,void 0,void 0,function*(){try{for(le=(0,i.xN)(Me);!(ae=yield le.next()).done;)if(Ce.next(ae.value),Ce.closed)return}catch(st){Ie={error:st}}finally{try{ae&&!ae.done&&($e=le.return)&&(yield $e.call(le))}finally{if(Ie)throw Ie.error}}Ce.complete()})})(Me,Ce).catch(le=>Ce.error(le))})}},605:(o,s,r)=>{"use strict";r.d(s,{Y:()=>c});var i=r(3236),a=r(1584);function c(y=0,w=i.E){return y<0&&(y=0),(0,a.O)(y,y,w)}},7786:(o,s,r)=>{"use strict";r.d(s,{h:()=>C});var i=r(6365),a=r(8750),c=r(983),y=r(9326),w=r(6648);function C(...T){const S=(0,y.lI)(T),A=(0,y.R0)(T,1/0),I=T;return I.length?1===I.length?(0,a.Tg)(I[0]):(0,i.U)(A)((0,w.H)(I,S)):c.w}},7673:(o,s,r)=>{"use strict";r.d(s,{of:()=>c});var i=r(9326),a=r(6648);function c(...y){const w=(0,i.lI)(y);return(0,a.H)(y,w)}},8810:(o,s,r)=>{"use strict";r.d(s,{$:()=>c});var i=r(1985),a=r(8071);function c(y,w){const C=(0,a.T)(y)?y:()=>y,T=S=>S.error(C());return new i.c(w?S=>w.schedule(T,0,S):T)}},1584:(o,s,r)=>{"use strict";r.d(s,{O:()=>w});var i=r(1985),a=r(3236),c=r(9470);function w(C=0,T,S=a.b){let A=-1;return null!=T&&((0,c.m)(T)?S=T:A=T),new i.c(I=>{let N=function y(C){return C instanceof Date&&!isNaN(C)}(C)?+C-S.now():C;N<0&&(N=0);let G=0;return S.schedule(function(){I.closed||(I.next(G++),0<=A?this.schedule(void 0,A):I.complete())},N)})}},4360:(o,s,r)=>{"use strict";r.d(s,{_:()=>a});var i=r(7707);function a(y,w,C,T,S){return new c(y,w,C,T,S)}class c extends i.vU{constructor(w,C,T,S,A,I){super(w),this.onFinalize=A,this.shouldUnsubscribe=I,this._next=C?function(N){try{C(N)}catch(G){w.error(G)}}:super._next,this._error=S?function(N){try{S(N)}catch(G){w.error(G)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(N){w.error(N)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},3798:(o,s,r)=>{"use strict";r.d(s,{Z:()=>T});var i=r(3236),a=r(9974),c=r(8750),y=r(4360),C=r(1584);function T(S,A=i.E){return function w(S){return(0,a.N)((A,I)=>{let N=!1,G=null,Z=null,te=!1;const be=()=>{if(Z?.unsubscribe(),Z=null,N){N=!1;const pe=G;G=null,I.next(pe)}te&&I.complete()},me=()=>{Z=null,te&&I.complete()};A.subscribe((0,y._)(I,pe=>{N=!0,G=pe,Z||(0,c.Tg)(S(pe)).subscribe(Z=(0,y._)(I,be,me))},()=>{te=!0,(!N||!Z||Z.closed)&&I.complete()}))})}(()=>(0,C.O)(S,A))}},9437:(o,s,r)=>{"use strict";r.d(s,{W:()=>y});var i=r(8750),a=r(4360),c=r(9974);function y(w){return(0,c.N)((C,T)=>{let I,S=null,A=!1;S=C.subscribe((0,a._)(T,void 0,void 0,N=>{I=(0,i.Tg)(w(N,y(w)(C))),S?(S.unsubscribe(),S=null,I.subscribe(T)):A=!0})),A&&(S.unsubscribe(),S=null,I.subscribe(T))})}},274:(o,s,r)=>{"use strict";r.d(s,{H:()=>c});var i=r(1397),a=r(8071);function c(y,w){return(0,a.T)(w)?(0,i.Z)(y,w,1):(0,i.Z)(y,1)}},152:(o,s,r)=>{"use strict";r.d(s,{B:()=>y});var i=r(3236),a=r(9974),c=r(4360);function y(w,C=i.E){return(0,a.N)((T,S)=>{let A=null,I=null,N=null;const G=()=>{if(A){A.unsubscribe(),A=null;const te=I;I=null,S.next(te)}};function Z(){const te=N+w,be=C.now();if(be<te)return A=this.schedule(void 0,te-be),void S.add(A);G()}T.subscribe((0,c._)(S,te=>{I=te,N=C.now(),A||(A=C.schedule(Z,w),S.add(A))},()=>{G(),S.complete()},void 0,()=>{I=A=null}))})}},1986:(o,s,r)=>{"use strict";r.d(s,{c:()=>Z});var i=r(3236),a=r(8793),c=r(6697),y=r(9974),w=r(4360),C=r(5343),S=r(3703),A=r(1397),I=r(8750);function N(te,be){return be?me=>(0,a.x)(be.pipe((0,c.s)(1),function T(){return(0,y.N)((te,be)=>{te.subscribe((0,w._)(be,C.l))})}()),me.pipe(N(te))):(0,A.Z)((me,pe)=>(0,I.Tg)(te(me,pe)).pipe((0,c.s)(1),(0,S.u)(me)))}var G=r(1584);function Z(te,be=i.E){const me=(0,G.O)(te,be);return N(()=>me)}},3294:(o,s,r)=>{"use strict";r.d(s,{F:()=>y});var i=r(3669),a=r(9974),c=r(4360);function y(C,T=i.D){return C=C??w,(0,a.N)((S,A)=>{let I,N=!0;S.subscribe((0,c._)(A,G=>{const Z=T(G);(N||!C(I,Z))&&(N=!1,I=Z,A.next(G))}))})}function w(C,T){return C===T}},5964:(o,s,r)=>{"use strict";r.d(s,{p:()=>c});var i=r(9974),a=r(4360);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,A=>y.call(w,A,S++)&&T.next(A)))})}},980:(o,s,r)=>{"use strict";r.d(s,{j:()=>a});var i=r(9974);function a(c){return(0,i.N)((y,w)=>{try{y.subscribe(w)}finally{w.add(c)}})}},6354:(o,s,r)=>{"use strict";r.d(s,{T:()=>c});var i=r(9974),a=r(4360);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,A=>{T.next(y.call(w,A,S++))}))})}},3703:(o,s,r)=>{"use strict";r.d(s,{u:()=>a});var i=r(6354);function a(c){return(0,i.T)(()=>c)}},6365:(o,s,r)=>{"use strict";r.d(s,{U:()=>c});var i=r(1397),a=r(3669);function c(y=1/0){return(0,i.Z)(a.D,y)}},1397:(o,s,r)=>{"use strict";r.d(s,{Z:()=>S});var i=r(6354),a=r(8750),c=r(9974),y=r(5225),w=r(4360),T=r(8071);function S(A,I,N=1/0){return(0,T.T)(I)?S((G,Z)=>(0,i.T)((te,be)=>I(G,te,Z,be))((0,a.Tg)(A(G,Z))),N):("number"==typeof I&&(N=I),(0,c.N)((G,Z)=>function C(A,I,N,G,Z,te,be,me){const pe=[];let Te=0,xe=0,Re=!1;const Me=()=>{Re&&!pe.length&&!Te&&I.complete()},Ce=ae=>Te<G?le(ae):pe.push(ae),le=ae=>{te&&I.next(ae),Te++;let Ie=!1;(0,a.Tg)(N(ae,xe++)).subscribe((0,w._)(I,$e=>{Z?.($e),te?Ce($e):I.next($e)},()=>{Ie=!0},void 0,()=>{if(Ie)try{for(Te--;pe.length&&Te<G;){const $e=pe.shift();be?(0,y.N)(I,be,()=>le($e)):le($e)}Me()}catch($e){I.error($e)}}))};return A.subscribe((0,w._)(I,Ce,()=>{Re=!0,Me()})),()=>{me?.()}}(G,Z,A,N)))}},9898:(o,s,r)=>{"use strict";r.d(s,{B:()=>c});var i=r(9974),a=r(4360);function c(){return(0,i.N)((y,w)=>{let C=null;y._refCount++;const T=(0,a._)(w,void 0,void 0,void 0,()=>{if(!y||y._refCount<=0||0<--y._refCount)return void(C=null);const S=y._connection,A=C;C=null,S&&(!A||S===A)&&S.unsubscribe(),w.unsubscribe()});y.subscribe(T),T.closed||(C=y.connect())})}},2498:(o,s,r)=>{"use strict";r.d(s,{L:()=>C});var i=r(9974),a=r(4360),c=r(3669),y=r(1584),w=r(8750);function C(T=1/0){let S;S=T&&"object"==typeof T?T:{count:T};const{count:A=1/0,delay:I,resetOnSuccess:N=!1}=S;return A<=0?c.D:(0,i.N)((G,Z)=>{let be,te=0;const me=()=>{let pe=!1;be=G.subscribe((0,a._)(Z,Te=>{N&&(te=0),Z.next(Te)},void 0,Te=>{if(te++<A){const xe=()=>{be?(be.unsubscribe(),be=null,me()):pe=!0};if(null!=I){const Re="number"==typeof I?(0,y.O)(I):(0,w.Tg)(I(Te,te)),Me=(0,a._)(Z,()=>{Me.unsubscribe(),xe()},()=>{Z.complete()});Re.subscribe(Me)}else xe()}else Z.error(Te)})),pe&&(be.unsubscribe(),be=null,me())};me()})}},6649:(o,s,r)=>{"use strict";r.d(s,{S:()=>a});var i=r(4360);function a(c,y,w,C,T){return(S,A)=>{let I=w,N=y,G=0;S.subscribe((0,i._)(A,Z=>{const te=G++;N=I?c(N,Z,te):(I=!0,Z),C&&A.next(N)},T&&(()=>{I&&A.next(N),A.complete()})))}}},7647:(o,s,r)=>{"use strict";r.d(s,{u:()=>w});var i=r(8750),a=r(1413),c=r(7707),y=r(9974);function w(T={}){const{connector:S=()=>new a.B,resetOnError:A=!0,resetOnComplete:I=!0,resetOnRefCountZero:N=!0}=T;return G=>{let Z,te,be,me=0,pe=!1,Te=!1;const xe=()=>{te?.unsubscribe(),te=void 0},Re=()=>{xe(),Z=be=void 0,pe=Te=!1},Me=()=>{const Ce=Z;Re(),Ce?.unsubscribe()};return(0,y.N)((Ce,le)=>{me++,!Te&&!pe&&xe();const ae=be=be??S();le.add(()=>{me--,0===me&&!Te&&!pe&&(te=C(Me,N))}),ae.subscribe(le),!Z&&me>0&&(Z=new c.Ms({next:Ie=>ae.next(Ie),error:Ie=>{Te=!0,xe(),te=C(Re,A,Ie),ae.error(Ie)},complete:()=>{pe=!0,xe(),te=C(Re,I),ae.complete()}}),(0,i.Tg)(Ce).subscribe(Z))})(G)}}function C(T,S,...A){if(!0===S)return void T();if(!1===S)return;const I=new c.Ms({next:()=>{I.unsubscribe(),T()}});return(0,i.Tg)(S(...A)).subscribe(I)}},4668:(o,s,r)=>{"use strict";r.d(s,{t:()=>c});var i=r(2771),a=r(7647);function c(y,w,C){let T,S=!1;return y&&"object"==typeof y?({bufferSize:T=1/0,windowTime:w=1/0,refCount:S=!1,scheduler:C}=y):T=y??1/0,(0,a.u)({connector:()=>new i.m(T,w,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:S})}},7626:(o,s,r)=>{"use strict";r.d(s,{i:()=>a});var i=r(5964);function a(c){return(0,i.p)((y,w)=>c<=w)}},9172:(o,s,r)=>{"use strict";r.d(s,{Z:()=>y});var i=r(8793),a=r(9326),c=r(9974);function y(...w){const C=(0,a.lI)(w);return(0,c.N)((T,S)=>{(C?(0,i.x)(w,T,C):(0,i.x)(w,T)).subscribe(S)})}},5558:(o,s,r)=>{"use strict";r.d(s,{n:()=>y});var i=r(8750),a=r(9974),c=r(4360);function y(w,C){return(0,a.N)((T,S)=>{let A=null,I=0,N=!1;const G=()=>N&&!A&&S.complete();T.subscribe((0,c._)(S,Z=>{A?.unsubscribe();let te=0;const be=I++;(0,i.Tg)(w(Z,be)).subscribe(A=(0,c._)(S,me=>S.next(C?C(Z,me,be,te++):me),()=>{A=null,G()}))},()=>{N=!0,G()}))})}},6697:(o,s,r)=>{"use strict";r.d(s,{s:()=>y});var i=r(983),a=r(9974),c=r(4360);function y(w){return w<=0?()=>i.w:(0,a.N)((C,T)=>{let S=0;C.subscribe((0,c._)(T,A=>{++S<=w&&(T.next(A),w<=S&&T.complete())}))})}},6977:(o,s,r)=>{"use strict";r.d(s,{Q:()=>w});var i=r(9974),a=r(4360),c=r(8750),y=r(5343);function w(C){return(0,i.N)((T,S)=>{(0,c.Tg)(C).subscribe((0,a._)(S,()=>S.complete(),y.l)),!S.closed&&T.subscribe(S)})}},8141:(o,s,r)=>{"use strict";r.d(s,{M:()=>w});var i=r(8071),a=r(9974),c=r(4360),y=r(3669);function w(C,T,S){const A=(0,i.T)(C)||T||S?{next:C,error:T,complete:S}:C;return A?(0,a.N)((I,N)=>{var G;null===(G=A.subscribe)||void 0===G||G.call(A);let Z=!0;I.subscribe((0,c._)(N,te=>{var be;null===(be=A.next)||void 0===be||be.call(A,te),N.next(te)},()=>{var te;Z=!1,null===(te=A.complete)||void 0===te||te.call(A),N.complete()},te=>{var be;Z=!1,null===(be=A.error)||void 0===be||be.call(A,te),N.error(te)},()=>{var te,be;Z&&(null===(te=A.unsubscribe)||void 0===te||te.call(A)),null===(be=A.finalize)||void 0===be||be.call(A)}))}):y.D}},6780:(o,s,r)=>{"use strict";r.d(s,{R:()=>w});var i=r(8359);class a extends i.yU{constructor(T,S){super()}schedule(T,S=0){return this}}const c={setInterval(C,T,...S){const{delegate:A}=c;return A?.setInterval?A.setInterval(C,T,...S):setInterval(C,T,...S)},clearInterval(C){const{delegate:T}=c;return(T?.clearInterval||clearInterval)(C)},delegate:void 0};var y=r(7908);class w extends a{constructor(T,S){super(T,S),this.scheduler=T,this.work=S,this.pending=!1}schedule(T,S=0){var A;if(this.closed)return this;this.state=T;const I=this.id,N=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(N,I,S)),this.pending=!0,this.delay=S,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(N,this.id,S),this}requestAsyncId(T,S,A=0){return c.setInterval(T.flush.bind(T,this),A)}recycleAsyncId(T,S,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return S;null!=S&&c.clearInterval(S)}execute(T,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(T,S);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,S){let I,A=!1;try{this.work(T)}catch(N){A=!0,I=N||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),I}unsubscribe(){if(!this.closed){const{id:T,scheduler:S}=this,{actions:A}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,y.o)(A,this),null!=T&&(this.id=this.recycleAsyncId(S,T,null)),this.delay=null,super.unsubscribe()}}}},9687:(o,s,r)=>{"use strict";r.d(s,{q:()=>c});var i=r(6129);class a{constructor(w,C=a.now){this.schedulerActionCtor=w,this.now=C}schedule(w,C=0,T){return new this.schedulerActionCtor(this,w).schedule(T,C)}}a.now=i.U.now;class c extends a{constructor(w,C=a.now){super(w,C),this.actions=[],this._active=!1}flush(w){const{actions:C}=this;if(this._active)return void C.push(w);let T;this._active=!0;do{if(T=w.execute(w.state,w.delay))break}while(w=C.shift());if(this._active=!1,T){for(;w=C.shift();)w.unsubscribe();throw T}}}},5007:(o,s,r)=>{"use strict";r.d(s,{$:()=>te});var i=r(6780);let c,a=1;const y={};function w(me){return me in y&&(delete y[me],!0)}const C={setImmediate(me){const pe=a++;return y[pe]=!0,c||(c=Promise.resolve()),c.then(()=>w(pe)&&me()),pe},clearImmediate(me){w(me)}},{setImmediate:S,clearImmediate:A}=C,I={setImmediate(...me){const{delegate:pe}=I;return(pe?.setImmediate||S)(...me)},clearImmediate(me){const{delegate:pe}=I;return(pe?.clearImmediate||A)(me)},delegate:void 0};var G=r(9687);const te=new class Z extends G.q{flush(pe){this._active=!0;const Te=this._scheduled;this._scheduled=void 0;const{actions:xe}=this;let Re;pe=pe||xe.shift();do{if(Re=pe.execute(pe.state,pe.delay))break}while((pe=xe[0])&&pe.id===Te&&xe.shift());if(this._active=!1,Re){for(;(pe=xe[0])&&pe.id===Te&&xe.shift();)pe.unsubscribe();throw Re}}}(class N extends i.R{constructor(pe,Te){super(pe,Te),this.scheduler=pe,this.work=Te}requestAsyncId(pe,Te,xe=0){return null!==xe&&xe>0?super.requestAsyncId(pe,Te,xe):(pe.actions.push(this),pe._scheduled||(pe._scheduled=I.setImmediate(pe.flush.bind(pe,void 0))))}recycleAsyncId(pe,Te,xe=0){var Re;if(null!=xe?xe>0:this.delay>0)return super.recycleAsyncId(pe,Te,xe);const{actions:Me}=pe;null!=Te&&(null===(Re=Me[Me.length-1])||void 0===Re?void 0:Re.id)!==Te&&(I.clearImmediate(Te),pe._scheduled===Te&&(pe._scheduled=void 0))}})},3236:(o,s,r)=>{"use strict";r.d(s,{E:()=>c,b:()=>y});var i=r(6780);const c=new(r(9687).q)(i.R),y=c},6129:(o,s,r)=>{"use strict";r.d(s,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},9270:(o,s,r)=>{"use strict";r.d(s,{f:()=>i});const i={setTimeout(a,c,...y){const{delegate:w}=i;return w?.setTimeout?w.setTimeout(a,c,...y):setTimeout(a,c,...y)},clearTimeout(a){const{delegate:c}=i;return(c?.clearTimeout||clearTimeout)(a)},delegate:void 0}},4761:(o,s,r)=>{"use strict";r.d(s,{l:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(o,s,r)=>{"use strict";r.d(s,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(o,s,r)=>{"use strict";r.d(s,{G:()=>a});const a=(0,r(1853).L)(c=>function(){c(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(o,s,r)=>{"use strict";r.d(s,{R0:()=>C,lI:()=>w,ms:()=>y});var i=r(8071),a=r(9470);function c(T){return T[T.length-1]}function y(T){return(0,i.T)(c(T))?T.pop():void 0}function w(T){return(0,a.m)(c(T))?T.pop():void 0}function C(T,S){return"number"==typeof c(T)?T.pop():S}},3073:(o,s,r)=>{"use strict";r.d(s,{D:()=>w});const{isArray:i}=Array,{getPrototypeOf:a,prototype:c,keys:y}=Object;function w(T){if(1===T.length){const S=T[0];if(i(S))return{args:S,keys:null};if(function C(T){return T&&"object"==typeof T&&a(T)===c}(S)){const A=y(S);return{args:A.map(I=>S[I]),keys:A}}}return{args:T,keys:null}}},7908:(o,s,r)=>{"use strict";function i(a,c){if(a){const y=a.indexOf(c);0<=y&&a.splice(y,1)}}r.d(s,{o:()=>i})},1853:(o,s,r)=>{"use strict";function i(a){const y=a(w=>{Error.call(w),w.stack=(new Error).stack});return y.prototype=Object.create(Error.prototype),y.prototype.constructor=y,y}r.d(s,{L:()=>i})},8496:(o,s,r)=>{"use strict";function i(a,c){return a.reduce((y,w,C)=>(y[w]=c[C],y),{})}r.d(s,{e:()=>i})},9786:(o,s,r)=>{"use strict";r.d(s,{Y:()=>c,l:()=>y});var i=r(1026);let a=null;function c(w){if(i.$.useDeprecatedSynchronousErrorHandling){const C=!a;if(C&&(a={errorThrown:!1,error:null}),w(),C){const{errorThrown:T,error:S}=a;if(a=null,T)throw S}}else w()}function y(w){i.$.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=w)}},5225:(o,s,r)=>{"use strict";function i(a,c,y,w=0,C=!1){const T=c.schedule(function(){y(),C?a.add(this.schedule(null,w)):this.unsubscribe()},w);if(a.add(T),!C)return T}r.d(s,{N:()=>i})},3669:(o,s,r)=>{"use strict";function i(a){return a}r.d(s,{D:()=>i})},7441:(o,s,r)=>{"use strict";r.d(s,{X:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},7953:(o,s,r)=>{"use strict";r.d(s,{T:()=>a});var i=r(8071);function a(c){return Symbol.asyncIterator&&(0,i.T)(c?.[Symbol.asyncIterator])}},8071:(o,s,r)=>{"use strict";function i(a){return"function"==typeof a}r.d(s,{T:()=>i})},5055:(o,s,r)=>{"use strict";r.d(s,{l:()=>c});var i=r(3494),a=r(8071);function c(y){return(0,a.T)(y[i.s])}},5397:(o,s,r)=>{"use strict";r.d(s,{x:()=>c});var i=r(4761),a=r(8071);function c(y){return(0,a.T)(y?.[i.l])}},4402:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(1985),a=r(8071);function c(y){return!!y&&(y instanceof i.c||(0,a.T)(y.lift)&&(0,a.T)(y.subscribe))}},9858:(o,s,r)=>{"use strict";r.d(s,{y:()=>a});var i=r(8071);function a(c){return(0,i.T)(c?.then)}},5196:(o,s,r)=>{"use strict";r.d(s,{C:()=>c,U:()=>y});var i=r(1635),a=r(8071);function c(w){return(0,i.AQ)(this,arguments,function*(){const T=w.getReader();try{for(;;){const{value:S,done:A}=yield(0,i.N3)(T.read());if(A)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(S)}}finally{T.releaseLock()}})}function y(w){return(0,a.T)(w?.getReader)}},9470:(o,s,r)=>{"use strict";r.d(s,{m:()=>a});var i=r(8071);function a(c){return c&&(0,i.T)(c.schedule)}},9974:(o,s,r)=>{"use strict";r.d(s,{N:()=>c,S:()=>a});var i=r(8071);function a(y){return(0,i.T)(y?.lift)}function c(y){return w=>{if(a(w))return w.lift(function(C){try{return y(C,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(o,s,r)=>{"use strict";r.d(s,{I:()=>y});var i=r(6354);const{isArray:a}=Array;function y(w){return(0,i.T)(C=>function c(w,C){return a(C)?w(...C):w(C)}(w,C))}},5343:(o,s,r)=>{"use strict";function i(){}r.d(s,{l:()=>i})},1203:(o,s,r)=>{"use strict";r.d(s,{F:()=>a,m:()=>c});var i=r(3669);function a(...y){return c(y)}function c(y){return 0===y.length?i.D:1===y.length?y[0]:function(C){return y.reduce((T,S)=>S(T),C)}}},5334:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(1026),a=r(9270);function c(y){a.f.setTimeout(()=>{const{onUnhandledError:w}=i.$;if(!w)throw y;w(y)})}},591:(o,s,r)=>{"use strict";function i(a){return new TypeError(`You provided ${null!==a&&"object"==typeof a?"an invalid object":`'${a}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}r.d(s,{L:()=>i})},9969:(o,s,r)=>{"use strict";r.d(s,{FX:()=>ht,If:()=>c,K2:()=>S,MA:()=>te,Os:()=>T,P:()=>me,S6:()=>Te,hZ:()=>w,i0:()=>C,i7:()=>N,iF:()=>A,kY:()=>G,kp:()=>y,sf:()=>$e,ui:()=>st,wk:()=>I});var i=r(177),a=r(4438),c=function(vt){return vt[vt.State=0]="State",vt[vt.Transition=1]="Transition",vt[vt.Sequence=2]="Sequence",vt[vt.Group=3]="Group",vt[vt.Animate=4]="Animate",vt[vt.Keyframes=5]="Keyframes",vt[vt.Style=6]="Style",vt[vt.Trigger=7]="Trigger",vt[vt.Reference=8]="Reference",vt[vt.AnimateChild=9]="AnimateChild",vt[vt.AnimateRef=10]="AnimateRef",vt[vt.Query=11]="Query",vt[vt.Stagger=12]="Stagger",vt}(c||{});const y="*";function w(vt,at){return{type:c.Trigger,name:vt,definitions:at,options:{}}}function C(vt,at=null){return{type:c.Animate,styles:at,timings:vt}}function T(vt,at=null){return{type:c.Group,steps:vt,options:at}}function S(vt,at=null){return{type:c.Sequence,steps:vt,options:at}}function A(vt){return{type:c.Style,styles:vt,offset:null}}function I(vt,at,Xt){return{type:c.State,name:vt,styles:at,options:Xt}}function N(vt){return{type:c.Keyframes,steps:vt}}function G(vt,at,Xt=null){return{type:c.Transition,expr:vt,animation:at,options:Xt}}function te(vt=null){return{type:c.AnimateChild,options:vt}}function me(vt,at,Xt=null){return{type:c.Query,selector:vt,animation:at,options:Xt}}let Te=(()=>{class vt{static \u0275fac=function(ln){return new(ln||vt)};static \u0275prov=a.jDH({token:vt,factory:()=>(0,a.WQX)(Re),providedIn:"root"})}return vt})();class xe{}let Re=(()=>{class vt extends Te{animationModuleType=(0,a.WQX)(a.bc$,{optional:!0});_nextAnimationId=0;_renderer;constructor(Xt,ln){if(super(),this._renderer=Xt.createRenderer(ln.body,{id:"0",encapsulation:a.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function Ie(vt){const at=vt.\u0275type;return 0===at||1===at}(this._renderer))throw new a.wOt(3600,!1)}build(Xt){const ln=this._nextAnimationId;this._nextAnimationId++;const yn=Array.isArray(Xt)?S(Xt):Xt;return le(this._renderer,null,ln,"register",[yn]),new Me(ln,this._renderer)}static \u0275fac=function(ln){return new(ln||vt)(a.KVO(a._9s),a.KVO(i.qQ))};static \u0275prov=a.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();class Me extends xe{_id;_renderer;constructor(at,Xt){super(),this._id=at,this._renderer=Xt}create(at,Xt){return new Ce(this._id,at,Xt||{},this._renderer)}}class Ce{id;element;_renderer;parentPlayer=null;_started=!1;constructor(at,Xt,ln,yn){this.id=at,this.element=Xt,this._renderer=yn,this._command("create",ln)}_listen(at,Xt){return this._renderer.listen(this.element,`@@${this.id}:${at}`,Xt)}_command(at,...Xt){le(this._renderer,this.element,this.id,at,Xt)}onDone(at){this._listen("done",at)}onStart(at){this._listen("start",at)}onDestroy(at){this._listen("destroy",at)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(at){this._command("setPosition",at)}getPosition(){return function ae(vt){const at=vt.\u0275type;return 0===at?vt:1===at?vt.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0}function le(vt,at,Xt,ln,yn){vt.setProperty(at,`@@${Xt}:${ln}`,yn)}class $e{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(at=0,Xt=0){this.totalTime=at+Xt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}onStart(at){this._originalOnStartFns.push(at),this._onStartFns.push(at)}onDone(at){this._originalOnDoneFns.push(at),this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(at=>at()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(at){this._position=this.totalTime?at*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(at){const Xt="start"==at?this._onStartFns:this._onDoneFns;Xt.forEach(ln=>ln()),Xt.length=0}}class st{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(at){this.players=at;let Xt=0,ln=0,yn=0;const $n=this.players.length;0==$n?queueMicrotask(()=>this._onFinish()):this.players.forEach(bn=>{bn.onDone(()=>{++Xt==$n&&this._onFinish()}),bn.onDestroy(()=>{++ln==$n&&this._onDestroy()}),bn.onStart(()=>{++yn==$n&&this._onStart()})}),this.totalTime=this.players.reduce((bn,Qe)=>Math.max(bn,Qe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}init(){this.players.forEach(at=>at.init())}onStart(at){this._onStartFns.push(at)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(at=>at()),this._onStartFns=[])}onDone(at){this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(at=>at.play())}pause(){this.players.forEach(at=>at.pause())}restart(){this.players.forEach(at=>at.restart())}finish(){this._onFinish(),this.players.forEach(at=>at.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(at=>at.destroy()),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this.players.forEach(at=>at.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(at){const Xt=at*this.totalTime;this.players.forEach(ln=>{const yn=ln.totalTime?Math.min(1,Xt/ln.totalTime):1;ln.setPosition(yn)})}getPosition(){const at=this.players.reduce((Xt,ln)=>null===Xt||ln.totalTime>Xt.totalTime?ln:Xt,null);return null!=at?at.getPosition():0}beforeDestroy(){this.players.forEach(at=>{at.beforeDestroy&&at.beforeDestroy()})}triggerCallback(at){const Xt="start"==at?this._onStartFns:this._onDoneFns;Xt.forEach(ln=>ln()),Xt.length=0}}const ht="!"},9888:(o,s,r)=>{"use strict";r.d(s,{Pd:()=>ii,Au:()=>bt,vr:()=>Xt,Bu:()=>ze,FN:()=>Pe,GX:()=>Yn,Q_:()=>Mr,Z7:()=>Ze,Ai:()=>Xr,g7:()=>Si,px:()=>ae,_G:()=>it,w6:()=>ot,Ae:()=>Ie});var i=r(177),a=r(4438),c=r(6860),y=r(9046),w=r(7336),C=r(1413),T=r(8359),A=(r(4402),r(7673)),I=r(4412),N=r(8141),G=r(152),Z=r(5964),te=r(6354),me=(r(6697),r(7626)),pe=r(3294),Te=r(6977),Re=r(2318),Me=r(4085),Ce=r(9327);const le=" ";function ae(rn,St,qe){const Dt=$e(rn,St);qe=qe.trim(),!Dt.some(Wt=>Wt.trim()===qe)&&(Dt.push(qe),rn.setAttribute(St,Dt.join(le)))}function Ie(rn,St,qe){const Dt=$e(rn,St);qe=qe.trim();const Wt=Dt.filter(Hn=>Hn!==qe);Wt.length?rn.setAttribute(St,Wt.join(le)):rn.removeAttribute(St)}function $e(rn,St){return rn.getAttribute(St)?.match(/\S+/g)??[]}const ht="cdk-describedby-message",vt="cdk-describedby-host";let at=0,Xt=(()=>{class rn{_platform=(0,a.WQX)(c.OD);_document=(0,a.WQX)(i.qQ);_messageRegistry=new Map;_messagesContainer=null;_id=""+at++;constructor(){(0,a.WQX)(y.l).load(y.Y),this._id=(0,a.WQX)(a.sZ2)+"-"+at++}describe(qe,Dt,Wt){if(!this._canBeDescribed(qe,Dt))return;const Hn=ln(Dt,Wt);"string"!=typeof Dt?(yn(Dt,this._id),this._messageRegistry.set(Hn,{messageElement:Dt,referenceCount:0})):this._messageRegistry.has(Hn)||this._createMessageElement(Dt,Wt),this._isElementDescribedByMessage(qe,Hn)||this._addMessageReference(qe,Hn)}removeDescription(qe,Dt,Wt){if(!Dt||!this._isElementNode(qe))return;const Hn=ln(Dt,Wt);if(this._isElementDescribedByMessage(qe,Hn)&&this._removeMessageReference(qe,Hn),"string"==typeof Dt){const fr=this._messageRegistry.get(Hn);fr&&0===fr.referenceCount&&this._deleteMessageElement(Hn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const qe=this._document.querySelectorAll(`[${vt}="${this._id}"]`);for(let Dt=0;Dt<qe.length;Dt++)this._removeCdkDescribedByReferenceIds(qe[Dt]),qe[Dt].removeAttribute(vt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(qe,Dt){const Wt=this._document.createElement("div");yn(Wt,this._id),Wt.textContent=qe,Dt&&Wt.setAttribute("role",Dt),this._createMessagesContainer(),this._messagesContainer.appendChild(Wt),this._messageRegistry.set(ln(qe,Dt),{messageElement:Wt,referenceCount:0})}_deleteMessageElement(qe){this._messageRegistry.get(qe)?.messageElement?.remove(),this._messageRegistry.delete(qe)}_createMessagesContainer(){if(this._messagesContainer)return;const qe="cdk-describedby-message-container",Dt=this._document.querySelectorAll(`.${qe}[platform="server"]`);for(let Hn=0;Hn<Dt.length;Hn++)Dt[Hn].remove();const Wt=this._document.createElement("div");Wt.style.visibility="hidden",Wt.classList.add(qe),Wt.classList.add("cdk-visually-hidden"),this._platform.isBrowser||Wt.setAttribute("platform","server"),this._document.body.appendChild(Wt),this._messagesContainer=Wt}_removeCdkDescribedByReferenceIds(qe){const Dt=$e(qe,"aria-describedby").filter(Wt=>0!=Wt.indexOf(ht));qe.setAttribute("aria-describedby",Dt.join(" "))}_addMessageReference(qe,Dt){const Wt=this._messageRegistry.get(Dt);ae(qe,"aria-describedby",Wt.messageElement.id),qe.setAttribute(vt,this._id),Wt.referenceCount++}_removeMessageReference(qe,Dt){const Wt=this._messageRegistry.get(Dt);Wt.referenceCount--,Ie(qe,"aria-describedby",Wt.messageElement.id),qe.removeAttribute(vt)}_isElementDescribedByMessage(qe,Dt){const Wt=$e(qe,"aria-describedby"),Hn=this._messageRegistry.get(Dt),fr=Hn&&Hn.messageElement.id;return!!fr&&-1!=Wt.indexOf(fr)}_canBeDescribed(qe,Dt){if(!this._isElementNode(qe))return!1;if(Dt&&"object"==typeof Dt)return!0;const Wt=null==Dt?"":`${Dt}`.trim(),Hn=qe.getAttribute("aria-label");return!(!Wt||Hn&&Hn.trim()===Wt)}_isElementNode(qe){return qe.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function ln(rn,St){return"string"==typeof rn?`${St||""}/${rn}`:rn}function yn(rn,St){rn.id||(rn.id=`${ht}-${St}-${at++}`)}class bn{_letterKeyStream=new C.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new C.B;selectedItem=this._selectedItem;constructor(St,qe){const Dt="number"==typeof qe?.debounceInterval?qe.debounceInterval:200;qe?.skipPredicate&&(this._skipPredicateFn=qe.skipPredicate),this.setItems(St),this._setupKeyHandler(Dt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(St){this._selectedItemIndex=St}setItems(St){this._items=St}handleKey(St){const qe=St.keyCode;St.key&&1===St.key.length?this._letterKeyStream.next(St.key.toLocaleUpperCase()):(qe>=w.A&&qe<=w.Z||qe>=w.f2&&qe<=w.bn)&&this._letterKeyStream.next(String.fromCharCode(qe))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(St){this._letterKeyStream.pipe((0,N.M)(qe=>this._pressedLetters.push(qe)),(0,G.B)(St),(0,Z.p)(()=>this._pressedLetters.length>0),(0,te.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(qe=>{for(let Dt=1;Dt<this._items.length+1;Dt++){const Hn=this._items[(this._selectedItemIndex+Dt)%this._items.length];if(!this._skipPredicateFn?.(Hn)&&0===Hn.getLabel?.().toLocaleUpperCase().trim().indexOf(qe)){this._selectedItem.next(Hn);break}}this._pressedLetters=[]})}}class Qe{_items;_activeItemIndex=-1;_activeItem=(0,a.vPA)(null);_wrap=!1;_typeaheadSubscription=T.yU.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=St=>St.disabled;constructor(St,qe){this._items=St,St instanceof a.rOR?this._itemChangesSubscription=St.changes.subscribe(Dt=>this._itemsChanged(Dt.toArray())):(0,a.Hps)(St)&&(this._effectRef=(0,a.QZP)(()=>this._itemsChanged(St()),{injector:qe}))}tabOut=new C.B;change=new C.B;skipPredicate(St){return this._skipPredicateFn=St,this}withWrap(St=!0){return this._wrap=St,this}withVerticalOrientation(St=!0){return this._vertical=St,this}withHorizontalOrientation(St){return this._horizontal=St,this}withAllowedModifierKeys(St){return this._allowedModifierKeys=St,this}withTypeAhead(St=200){this._typeaheadSubscription.unsubscribe();const qe=this._getItemsArray();return this._typeahead=new bn(qe,{debounceInterval:"number"==typeof St?St:void 0,skipPredicate:Dt=>this._skipPredicateFn(Dt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Dt=>{this.setActiveItem(Dt)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(St=!0){return this._homeAndEnd=St,this}withPageUpDown(St=!0,qe=10){return this._pageUpAndDown={enabled:St,delta:qe},this}setActiveItem(St){const qe=this._activeItem();this.updateActiveItem(St),this._activeItem()!==qe&&this.change.next(this._activeItemIndex)}onKeydown(St){const qe=St.keyCode,Wt=["altKey","ctrlKey","metaKey","shiftKey"].every(Hn=>!St[Hn]||this._allowedModifierKeys.indexOf(Hn)>-1);switch(qe){case w.wn:return void this.tabOut.next();case w.n6:if(this._vertical&&Wt){this.setNextItemActive();break}return;case w.i7:if(this._vertical&&Wt){this.setPreviousItemActive();break}return;case w.LE:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.UQ:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.yZ:if(this._homeAndEnd&&Wt){this.setFirstItemActive();break}return;case w.Kp:if(this._homeAndEnd&&Wt){this.setLastItemActive();break}return;case w.w_:if(this._pageUpAndDown.enabled&&Wt){const Hn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Hn>0?Hn:0,1);break}return;case w.dB:if(this._pageUpAndDown.enabled&&Wt){const Hn=this._activeItemIndex+this._pageUpAndDown.delta,fr=this._getItemsArray().length;this._setActiveItemByIndex(Hn<fr?Hn:fr-1,-1);break}return;default:return void((Wt||(0,w.rp)(St,"shiftKey"))&&this._typeahead?.handleKey(St))}this._typeahead?.reset(),St.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(St){const qe=this._getItemsArray(),Dt="number"==typeof St?St:qe.indexOf(St);this._activeItem.set(qe[Dt]??null),this._activeItemIndex=Dt,this._typeahead?.setCurrentSelectedItemIndex(Dt)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(St){this._wrap?this._setActiveInWrapMode(St):this._setActiveInDefaultMode(St)}_setActiveInWrapMode(St){const qe=this._getItemsArray();for(let Dt=1;Dt<=qe.length;Dt++){const Wt=(this._activeItemIndex+St*Dt+qe.length)%qe.length;if(!this._skipPredicateFn(qe[Wt]))return void this.setActiveItem(Wt)}}_setActiveInDefaultMode(St){this._setActiveItemByIndex(this._activeItemIndex+St,St)}_setActiveItemByIndex(St,qe){const Dt=this._getItemsArray();if(Dt[St]){for(;this._skipPredicateFn(Dt[St]);)if(!Dt[St+=qe])return;this.setActiveItem(St)}}_getItemsArray(){return(0,a.Hps)(this._items)?this._items():this._items instanceof a.rOR?this._items.toArray():this._items}_itemsChanged(St){this._typeahead?.setItems(St);const qe=this._activeItem();if(qe){const Dt=St.indexOf(qe);Dt>-1&&Dt!==this._activeItemIndex&&(this._activeItemIndex=Dt,this._typeahead?.setCurrentSelectedItemIndex(Dt))}}}class bt extends Qe{setActiveItem(St){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(St),this.activeItem&&this.activeItem.setActiveStyles()}}class ze extends Qe{_origin="program";setFocusOrigin(St){return this._origin=St,this}setActiveItem(St){super.setActiveItem(St),this.activeItem&&this.activeItem.focus(this._origin)}}let Ze=(()=>{class rn{_platform=(0,a.WQX)(c.OD);constructor(){}isDisabled(qe){return qe.hasAttribute("disabled")}isVisible(qe){return function Jt(rn){return!!(rn.offsetWidth||rn.offsetHeight||"function"==typeof rn.getClientRects&&rn.getClientRects().length)}(qe)&&"visible"===getComputedStyle(qe).visibility}isTabbable(qe){if(!this._platform.isBrowser)return!1;const Dt=function Rt(rn){try{return rn.frameElement}catch{return null}}(function Kt(rn){return rn.ownerDocument&&rn.ownerDocument.defaultView||window}(qe));if(Dt&&(-1===En(Dt)||!this.isVisible(Dt)))return!1;let Wt=qe.nodeName.toLowerCase(),Hn=En(qe);return qe.hasAttribute("contenteditable")?-1!==Hn:!("iframe"===Wt||"object"===Wt||this._platform.WEBKIT&&this._platform.IOS&&!function Gt(rn){let St=rn.nodeName.toLowerCase(),qe="input"===St&&rn.type;return"text"===qe||"password"===qe||"select"===St||"textarea"===St}(qe))&&("audio"===Wt?!!qe.hasAttribute("controls")&&-1!==Hn:"video"===Wt?-1!==Hn&&(null!==Hn||this._platform.FIREFOX||qe.hasAttribute("controls")):qe.tabIndex>=0)}isFocusable(qe,Dt){return function At(rn){return!function Gn(rn){return function Qt(rn){return"input"==rn.nodeName.toLowerCase()}(rn)&&"hidden"==rn.type}(rn)&&(function fn(rn){let St=rn.nodeName.toLowerCase();return"input"===St||"select"===St||"button"===St||"textarea"===St}(rn)||function Nt(rn){return function an(rn){return"a"==rn.nodeName.toLowerCase()}(rn)&&rn.hasAttribute("href")}(rn)||rn.hasAttribute("contenteditable")||Xn(rn))}(qe)&&!this.isDisabled(qe)&&(Dt?.ignoreVisibility||this.isVisible(qe))}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function Xn(rn){if(!rn.hasAttribute("tabindex")||void 0===rn.tabIndex)return!1;let St=rn.getAttribute("tabindex");return!(!St||isNaN(parseInt(St,10)))}function En(rn){if(!Xn(rn))return null;const St=parseInt(rn.getAttribute("tabindex")||"",10);return isNaN(St)?-1:St}class xn{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(St){this._enabled=St,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(St,this._startAnchor),this._toggleAnchorTabIndex(St,this._endAnchor))}_enabled=!0;constructor(St,qe,Dt,Wt,Hn=!1,fr){this._element=St,this._checker=qe,this._ngZone=Dt,this._document=Wt,this._injector=fr,Hn||this.attachAnchors()}destroy(){const St=this._startAnchor,qe=this._endAnchor;St&&(St.removeEventListener("focus",this.startAnchorListener),St.remove()),qe&&(qe.removeEventListener("focus",this.endAnchorListener),qe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusInitialElement(St)))})}focusFirstTabbableElementWhenReady(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusFirstTabbableElement(St)))})}focusLastTabbableElementWhenReady(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusLastTabbableElement(St)))})}_getRegionBoundary(St){const qe=this._element.querySelectorAll(`[cdk-focus-region-${St}], [cdkFocusRegion${St}], [cdk-focus-${St}]`);return"start"==St?qe.length?qe[0]:this._getFirstTabbableElement(this._element):qe.length?qe[qe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(St){const qe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(qe){if(!this._checker.isFocusable(qe)){const Dt=this._getFirstTabbableElement(qe);return Dt?.focus(St),!!Dt}return qe.focus(St),!0}return this.focusFirstTabbableElement(St)}focusFirstTabbableElement(St){const qe=this._getRegionBoundary("start");return qe&&qe.focus(St),!!qe}focusLastTabbableElement(St){const qe=this._getRegionBoundary("end");return qe&&qe.focus(St),!!qe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(St){if(this._checker.isFocusable(St)&&this._checker.isTabbable(St))return St;const qe=St.children;for(let Dt=0;Dt<qe.length;Dt++){const Wt=qe[Dt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(qe[Dt]):null;if(Wt)return Wt}return null}_getLastTabbableElement(St){if(this._checker.isFocusable(St)&&this._checker.isTabbable(St))return St;const qe=St.children;for(let Dt=qe.length-1;Dt>=0;Dt--){const Wt=qe[Dt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(qe[Dt]):null;if(Wt)return Wt}return null}_createAnchor(){const St=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,St),St.classList.add("cdk-visually-hidden"),St.classList.add("cdk-focus-trap-anchor"),St.setAttribute("aria-hidden","true"),St}_toggleAnchorTabIndex(St,qe){St?qe.setAttribute("tabindex","0"):qe.removeAttribute("tabindex")}toggleAnchors(St){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(St,this._startAnchor),this._toggleAnchorTabIndex(St,this._endAnchor))}_executeOnStable(St){this._injector?(0,a.mal)(St,{injector:this._injector}):setTimeout(St)}}let Yn=(()=>{class rn{_checker=(0,a.WQX)(Ze);_ngZone=(0,a.WQX)(a.SKi);_document=(0,a.WQX)(i.qQ);_injector=(0,a.WQX)(a.zZn);constructor(){(0,a.WQX)(y.l).load(y.Y)}create(qe,Dt=!1){return new xn(qe,this._checker,this._ngZone,this._document,Dt,this._injector)}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function it(rn){return 0===rn.buttons||0===rn.detail}function ot(rn){const St=rn.touches&&rn.touches[0]||rn.changedTouches&&rn.changedTouches[0];return!(!St||-1!==St.identifier||null!=St.radiusX&&1!==St.radiusX||null!=St.radiusY&&1!==St.radiusY)}const Tt=new a.nKC("cdk-input-modality-detector-options"),In={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},dn=(0,c.BQ)({passive:!0,capture:!0});let Pn=(()=>{class rn{_platform=(0,a.WQX)(c.OD);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new I.t(null);_options;_lastTouchMs=0;_onKeydown=qe=>{this._options?.ignoreKeys?.some(Dt=>Dt===qe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.Fb)(qe))};_onMousedown=qe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(it(qe)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.Fb)(qe))};_onTouchstart=qe=>{ot(qe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.Fb)(qe))};constructor(){const qe=(0,a.WQX)(a.SKi),Dt=(0,a.WQX)(i.qQ),Wt=(0,a.WQX)(Tt,{optional:!0});this._options={...In,...Wt},this.modalityDetected=this._modality.pipe((0,me.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,pe.F)()),this._platform.isBrowser&&qe.runOutsideAngular(()=>{Dt.addEventListener("keydown",this._onKeydown,dn),Dt.addEventListener("mousedown",this._onMousedown,dn),Dt.addEventListener("touchstart",this._onTouchstart,dn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,dn),document.removeEventListener("mousedown",this._onMousedown,dn),document.removeEventListener("touchstart",this._onTouchstart,dn))}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();const Fn=new a.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Bn(){return null}}),cr=new a.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Jr=0,Xr=(()=>{class rn{_ngZone=(0,a.WQX)(a.SKi);_defaultOptions=(0,a.WQX)(cr,{optional:!0});_liveElement;_document=(0,a.WQX)(i.qQ);_previousTimeout;_currentPromise;_currentResolve;constructor(){const qe=(0,a.WQX)(Fn,{optional:!0});this._liveElement=qe||this._createLiveElement()}announce(qe,...Dt){const Wt=this._defaultOptions;let Hn,fr;return 1===Dt.length&&"number"==typeof Dt[0]?fr=Dt[0]:[Hn,fr]=Dt,this.clear(),clearTimeout(this._previousTimeout),Hn||(Hn=Wt&&Wt.politeness?Wt.politeness:"polite"),null==fr&&Wt&&(fr=Wt.duration),this._liveElement.setAttribute("aria-live",Hn),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(fo=>this._currentResolve=fo)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=qe,"number"==typeof fr&&(this._previousTimeout=setTimeout(()=>this.clear(),fr)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const qe="cdk-live-announcer-element",Dt=this._document.getElementsByClassName(qe),Wt=this._document.createElement("div");for(let Hn=0;Hn<Dt.length;Hn++)Dt[Hn].remove();return Wt.classList.add(qe),Wt.classList.add("cdk-visually-hidden"),Wt.setAttribute("aria-atomic","true"),Wt.setAttribute("aria-live","polite"),Wt.id="cdk-live-announcer-"+Jr++,this._document.body.appendChild(Wt),Wt}_exposeAnnouncerToModals(qe){const Dt=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Wt=0;Wt<Dt.length;Wt++){const Hn=Dt[Wt],fr=Hn.getAttribute("aria-owns");fr?-1===fr.indexOf(qe)&&Hn.setAttribute("aria-owns",fr+" "+qe):Hn.setAttribute("aria-owns",qe)}}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();var Bt=function(rn){return rn[rn.IMMEDIATE=0]="IMMEDIATE",rn[rn.EVENTUAL=1]="EVENTUAL",rn}(Bt||{});const Ee=new a.nKC("cdk-focus-monitor-default-options"),lt=(0,c.BQ)({passive:!0,capture:!0});let Pe=(()=>{class rn{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(c.OD);_inputModalityDetector=(0,a.WQX)(Pn);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=(0,a.WQX)(i.qQ,{optional:!0});_stopInputModalityDetector=new C.B;constructor(){const qe=(0,a.WQX)(Ee,{optional:!0});this._detectionMode=qe?.detectionMode||Bt.IMMEDIATE}_rootNodeFocusAndBlurListener=qe=>{for(let Wt=(0,c.Fb)(qe);Wt;Wt=Wt.parentElement)"focus"===qe.type?this._onFocus(qe,Wt):this._onBlur(qe,Wt)};monitor(qe,Dt=!1){const Wt=(0,Me.i8)(qe);if(!this._platform.isBrowser||1!==Wt.nodeType)return(0,A.of)();const Hn=(0,c.KT)(Wt)||this._getDocument(),fr=this._elementInfo.get(Wt);if(fr)return Dt&&(fr.checkChildren=!0),fr.subject;const fo={checkChildren:Dt,subject:new C.B,rootNode:Hn};return this._elementInfo.set(Wt,fo),this._registerGlobalListeners(fo),fo.subject}stopMonitoring(qe){const Dt=(0,Me.i8)(qe),Wt=this._elementInfo.get(Dt);Wt&&(Wt.subject.complete(),this._setClasses(Dt),this._elementInfo.delete(Dt),this._removeGlobalListeners(Wt))}focusVia(qe,Dt,Wt){const Hn=(0,Me.i8)(qe);Hn===this._getDocument().activeElement?this._getClosestElementsInfo(Hn).forEach(([fo,Oi])=>this._originChanged(fo,Dt,Oi)):(this._setOrigin(Dt),"function"==typeof Hn.focus&&Hn.focus(Wt))}ngOnDestroy(){this._elementInfo.forEach((qe,Dt)=>this.stopMonitoring(Dt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(qe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(qe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:qe&&this._isLastInteractionFromInputLabel(qe)?"mouse":"program"}_shouldBeAttributedToTouch(qe){return this._detectionMode===Bt.EVENTUAL||!!qe?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(qe,Dt){qe.classList.toggle("cdk-focused",!!Dt),qe.classList.toggle("cdk-touch-focused","touch"===Dt),qe.classList.toggle("cdk-keyboard-focused","keyboard"===Dt),qe.classList.toggle("cdk-mouse-focused","mouse"===Dt),qe.classList.toggle("cdk-program-focused","program"===Dt)}_setOrigin(qe,Dt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=qe,this._originFromTouchInteraction="touch"===qe&&Dt,this._detectionMode===Bt.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(qe,Dt){const Wt=this._elementInfo.get(Dt),Hn=(0,c.Fb)(qe);!Wt||!Wt.checkChildren&&Dt!==Hn||this._originChanged(Dt,this._getFocusOrigin(Hn),Wt)}_onBlur(qe,Dt){const Wt=this._elementInfo.get(Dt);!Wt||Wt.checkChildren&&qe.relatedTarget instanceof Node&&Dt.contains(qe.relatedTarget)||(this._setClasses(Dt),this._emitOrigin(Wt,null))}_emitOrigin(qe,Dt){qe.subject.observers.length&&this._ngZone.run(()=>qe.subject.next(Dt))}_registerGlobalListeners(qe){if(!this._platform.isBrowser)return;const Dt=qe.rootNode,Wt=this._rootNodeFocusListenerCount.get(Dt)||0;Wt||this._ngZone.runOutsideAngular(()=>{Dt.addEventListener("focus",this._rootNodeFocusAndBlurListener,lt),Dt.addEventListener("blur",this._rootNodeFocusAndBlurListener,lt)}),this._rootNodeFocusListenerCount.set(Dt,Wt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Te.Q)(this._stopInputModalityDetector)).subscribe(Hn=>{this._setOrigin(Hn,!0)}))}_removeGlobalListeners(qe){const Dt=qe.rootNode;if(this._rootNodeFocusListenerCount.has(Dt)){const Wt=this._rootNodeFocusListenerCount.get(Dt);Wt>1?this._rootNodeFocusListenerCount.set(Dt,Wt-1):(Dt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,lt),Dt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,lt),this._rootNodeFocusListenerCount.delete(Dt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(qe,Dt,Wt){this._setClasses(qe,Dt),this._emitOrigin(Wt,Dt),this._lastFocusOrigin=Dt}_getClosestElementsInfo(qe){const Dt=[];return this._elementInfo.forEach((Wt,Hn)=>{(Hn===qe||Wt.checkChildren&&Hn.contains(qe))&&Dt.push([Hn,Wt])}),Dt}_isLastInteractionFromInputLabel(qe){const{_mostRecentTarget:Dt,mostRecentModality:Wt}=this._inputModalityDetector;if("mouse"!==Wt||!Dt||Dt===qe||"INPUT"!==qe.nodeName&&"TEXTAREA"!==qe.nodeName||qe.disabled)return!1;const Hn=qe.labels;if(Hn)for(let fr=0;fr<Hn.length;fr++)if(Hn[fr].contains(Dt))return!0;return!1}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();var ft=function(rn){return rn[rn.NONE=0]="NONE",rn[rn.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",rn[rn.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",rn}(ft||{});const Pt="cdk-high-contrast-black-on-white",mn="cdk-high-contrast-white-on-black",or="cdk-high-contrast-active";let Mr=(()=>{class rn{_platform=(0,a.WQX)(c.OD);_hasCheckedHighContrastMode;_document=(0,a.WQX)(i.qQ);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,a.WQX)(Ce.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ft.NONE;const qe=this._document.createElement("div");qe.style.backgroundColor="rgb(1,2,3)",qe.style.position="absolute",this._document.body.appendChild(qe);const Dt=this._document.defaultView||window,Wt=Dt&&Dt.getComputedStyle?Dt.getComputedStyle(qe):null,Hn=(Wt&&Wt.backgroundColor||"").replace(/ /g,"");switch(qe.remove(),Hn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return ft.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ft.BLACK_ON_WHITE}return ft.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const qe=this._document.body.classList;qe.remove(or,Pt,mn),this._hasCheckedHighContrastMode=!0;const Dt=this.getHighContrastMode();Dt===ft.BLACK_ON_WHITE?qe.add(or,Pt):Dt===ft.WHITE_ON_BLACK&&qe.add(or,mn)}}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})(),ii=(()=>{class rn{constructor(){(0,a.WQX)(Mr)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275mod=a.$C({type:rn});static \u0275inj=a.G2t({imports:[Re.w5]})}return rn})();const ci={};let Si=(()=>{class rn{_appId=(0,a.WQX)(a.sZ2);getId(qe){return"ng"!==this._appId&&(qe+=this._appId),ci.hasOwnProperty(qe)||(ci[qe]=0),`${qe}${ci[qe]++}`}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})()},8203:(o,s,r)=>{"use strict";r.d(s,{dS:()=>T,jI:()=>A});var i=r(4438),a=r(177);const c=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function y(){return(0,i.WQX)(a.qQ)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class I{value="ltr";change=new i.bkB;constructor(){const G=(0,i.WQX)(c,{optional:!0});G&&(this.value=function C(I){const N=I?.toLowerCase()||"";return"auto"===N&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===N?"rtl":"ltr"}((G.body?G.body.dir:null)||(G.documentElement?G.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(Z){return new(Z||I)};static \u0275prov=i.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),A=(()=>{class I{static \u0275fac=function(Z){return new(Z||I)};static \u0275mod=i.$C({type:I});static \u0275inj=i.G2t({})}return I})()},4085:(o,s,r)=>{"use strict";r.d(s,{FG:()=>w,OE:()=>c,a1:()=>C,he:()=>a,i8:()=>T});var i=r(4438);function a(A){return null!=A&&"false"!=`${A}`}function c(A,I=0){return function y(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}(A)?Number(A):2===arguments.length?I:0}function w(A){return Array.isArray(A)?A:[A]}function C(A){return null==A?"":"string"==typeof A?A:`${A}px`}function T(A){return A instanceof i.aKT?A.nativeElement:A}},7336:(o,s,r)=>{"use strict";r.d(s,{A:()=>Fe,A$:()=>S,FX:()=>C,Fm:()=>w,Ge:()=>k,Kp:()=>be,LE:()=>xe,UQ:()=>pe,W3:()=>T,Z:()=>B,_f:()=>N,bn:()=>$n,dB:()=>te,eg:()=>et,f2:()=>Ie,i7:()=>Te,n6:()=>Re,rp:()=>Oe,t6:()=>G,w_:()=>Z,wn:()=>c,yZ:()=>me});const c=9,w=13,C=16,T=17,S=18,N=27,G=32,Z=33,te=34,be=35,me=36,pe=37,Te=38,xe=39,Re=40,Ie=48,$n=57,Fe=65,B=90,k=91,et=224;function Oe(pt,...$t){return $t.length?$t.some(Mt=>pt[Mt]):pt.altKey||pt.shiftKey||pt.ctrlKey||pt.metaKey}},9327:(o,s,r)=>{"use strict";r.d(s,{QP:()=>Re,Rp:()=>Ce});var i=r(4438),a=r(4085),c=r(1413),y=r(4572),w=r(8793),C=r(1985),T=r(6697),S=r(7626),A=r(152),I=r(6354),N=r(9172),G=r(6977),Z=r(6860);const be=new Set;let me,pe=(()=>{class le{_platform=(0,i.WQX)(Z.OD);_nonce=(0,i.WQX)(i.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xe}matchMedia(Ie){return(this._platform.WEBKIT||this._platform.BLINK)&&function Te(le,ae){if(!be.has(le))try{me||(me=document.createElement("style"),ae&&me.setAttribute("nonce",ae),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${le} {body{ }}`,0),be.add(le))}catch(Ie){console.error(Ie)}}(Ie,this._nonce),this._matchMedia(Ie)}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function xe(le){return{matches:"all"===le||""===le,media:le,addListener:()=>{},removeListener:()=>{}}}let Re=(()=>{class le{_mediaMatcher=(0,i.WQX)(pe);_zone=(0,i.WQX)(i.SKi);_queries=new Map;_destroySubject=new c.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ie){return Me((0,a.FG)(Ie)).some(st=>this._registerQuery(st).mql.matches)}observe(Ie){const st=Me((0,a.FG)(Ie)).map(vt=>this._registerQuery(vt).observable);let ht=(0,y.z)(st);return ht=(0,w.x)(ht.pipe((0,T.s)(1)),ht.pipe((0,S.i)(1),(0,A.B)(0))),ht.pipe((0,I.T)(vt=>{const at={matches:!1,breakpoints:{}};return vt.forEach(({matches:Xt,query:ln})=>{at.matches=at.matches||Xt,at.breakpoints[ln]=Xt}),at}))}_registerQuery(Ie){if(this._queries.has(Ie))return this._queries.get(Ie);const $e=this._mediaMatcher.matchMedia(Ie),ht={observable:new C.c(vt=>{const at=Xt=>this._zone.run(()=>vt.next(Xt));return $e.addListener(at),()=>{$e.removeListener(at)}}).pipe((0,N.Z)($e),(0,I.T)(({matches:vt})=>({query:Ie,matches:vt})),(0,G.Q)(this._destroySubject)),mql:$e};return this._queries.set(Ie,ht),ht}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function Me(le){return le.map(ae=>ae.split(",")).reduce((ae,Ie)=>ae.concat(Ie)).map(ae=>ae.trim())}const Ce={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},2318:(o,s,r)=>{"use strict";r.d(s,{w5:()=>C});var i=r(4438);let c=(()=>{class T{create(A){return typeof MutationObserver>"u"?null:new MutationObserver(A)}static \u0275fac=function(I){return new(I||T)};static \u0275prov=i.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),C=(()=>{class T{static \u0275fac=function(I){return new(I||T)};static \u0275mod=i.$C({type:T});static \u0275inj=i.G2t({providers:[c]})}return T})()},6969:(o,s,r)=>{"use strict";r.d(s,{WB:()=>Gt,$Q:()=>En,hJ:()=>Qt,rR:()=>ht,Sf:()=>Fe,z_:()=>xn,yY:()=>Ft,Tv:()=>st});var i=r(5542),a=r(177),c=r(4438),y=r(4085),w=r(6860),C=r(5964),T=r(6977),S=r(9974),A=r(4360),N=r(8203),G=r(6939),Z=r(9888),te=r(9046),be=r(1413),me=r(8359),pe=r(7786),Te=r(7336);const xe=(0,w.CZ)();class Re{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(ke,B){this._viewportRuler=ke,this._document=B}attach(){}enable(){if(this._canBeEnabled()){const ke=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ke.style.left||"",this._previousHTMLStyles.top=ke.style.top||"",ke.style.left=(0,y.a1)(-this._previousScrollPosition.left),ke.style.top=(0,y.a1)(-this._previousScrollPosition.top),ke.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ke=this._document.documentElement,k=ke.style,j=this._document.body.style,De=k.scrollBehavior||"",it=j.scrollBehavior||"";this._isEnabled=!1,k.left=this._previousHTMLStyles.left,k.top=this._previousHTMLStyles.top,ke.classList.remove("cdk-global-scrollblock"),xe&&(k.scrollBehavior=j.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),xe&&(k.scrollBehavior=De,j.scrollBehavior=it)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const B=this._document.body,k=this._viewportRuler.getViewportSize();return B.scrollHeight>k.height||B.scrollWidth>k.width}}class Ce{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(ke,B,k,j){this._scrollDispatcher=ke,this._ngZone=B,this._viewportRuler=k,this._config=j}attach(ke){this._overlayRef=ke}enable(){if(this._scrollSubscription)return;const ke=this._scrollDispatcher.scrolled(0).pipe((0,C.p)(B=>!B||!this._overlayRef.overlayElement.contains(B.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ke.subscribe(()=>{const B=this._viewportRuler.getViewportScrollPosition().top;Math.abs(B-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ke.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class le{enable(){}disable(){}attach(){}}function ae(tt,ke){return ke.some(B=>tt.bottom<B.top||tt.top>B.bottom||tt.right<B.left||tt.left>B.right)}function Ie(tt,ke){return ke.some(B=>tt.top<B.top||tt.bottom>B.bottom||tt.left<B.left||tt.right>B.right)}class $e{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(ke,B,k,j){this._scrollDispatcher=ke,this._viewportRuler=B,this._ngZone=k,this._config=j}attach(ke){this._overlayRef=ke}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const B=this._overlayRef.overlayElement.getBoundingClientRect(),{width:k,height:j}=this._viewportRuler.getViewportSize();ae(B,[{width:k,height:j,bottom:j,right:k,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let st=(()=>{class tt{_scrollDispatcher=(0,c.WQX)(i.R);_viewportRuler=(0,c.WQX)(i.Xj);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);constructor(){}noop=()=>new le;close=B=>new Ce(this._scrollDispatcher,this._ngZone,this._viewportRuler,B);block=()=>new Re(this._viewportRuler,this._document);reposition=B=>new $e(this._scrollDispatcher,this._viewportRuler,this._ngZone,B);static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();class ht{positionStrategy;scrollStrategy=new le;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(ke){if(ke){const B=Object.keys(ke);for(const k of B)void 0!==ke[k]&&(this[k]=ke[k])}}}class Xt{connectionPair;scrollableViewProperties;constructor(ke,B){this.connectionPair=ke,this.scrollableViewProperties=B}}let $n=(()=>{class tt{_attachedOverlays=[];_document=(0,c.WQX)(a.qQ);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(B){this.remove(B),this._attachedOverlays.push(B)}remove(B){const k=this._attachedOverlays.indexOf(B);k>-1&&this._attachedOverlays.splice(k,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),bn=(()=>{class tt extends $n{_ngZone=(0,c.WQX)(c.SKi,{optional:!0});add(B){super.add(B),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}_keydownListener=B=>{const k=this._attachedOverlays;for(let j=k.length-1;j>-1;j--)if(k[j]._keydownEvents.observers.length>0){const De=k[j]._keydownEvents;this._ngZone?this._ngZone.run(()=>De.next(B)):De.next(B);break}};static \u0275fac=(()=>{let B;return function(j){return(B||(B=c.xGo(tt)))(j||tt)}})();static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Qe=(()=>{class tt extends $n{_platform=(0,c.WQX)(w.OD);_ngZone=(0,c.WQX)(c.SKi,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(B){if(super.add(B),!this._isAttached){const k=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(k)):this._addEventListeners(k),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=k.style.cursor,k.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const B=this._document.body;B.removeEventListener("pointerdown",this._pointerDownListener,!0),B.removeEventListener("click",this._clickListener,!0),B.removeEventListener("auxclick",this._clickListener,!0),B.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(B.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(B){B.addEventListener("pointerdown",this._pointerDownListener,!0),B.addEventListener("click",this._clickListener,!0),B.addEventListener("auxclick",this._clickListener,!0),B.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=B=>{this._pointerDownEventTarget=(0,w.Fb)(B)};_clickListener=B=>{const k=(0,w.Fb)(B),j="click"===B.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:k;this._pointerDownEventTarget=null;const De=this._attachedOverlays.slice();for(let it=De.length-1;it>-1;it--){const ot=De[it];if(ot._outsidePointerEvents.observers.length<1||!ot.hasAttached())continue;if(bt(ot.overlayElement,k)||bt(ot.overlayElement,j))break;const Tt=ot._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Tt.next(B)):Tt.next(B)}};static \u0275fac=(()=>{let B;return function(j){return(B||(B=c.xGo(tt)))(j||tt)}})();static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();function bt(tt,ke){const B=typeof ShadowRoot<"u"&&ShadowRoot;let k=ke;for(;k;){if(k===tt)return!0;k=B&&k instanceof ShadowRoot?k.host:k.parentNode}return!1}let ze=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275cmp=c.VBU({type:tt,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(k,j){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return tt})(),Fe=(()=>{class tt{_platform=(0,c.WQX)(w.OD);_containerElement;_document=(0,c.WQX)(a.qQ);_styleLoader=(0,c.WQX)(te.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const B="cdk-overlay-container";if(this._platform.isBrowser||(0,w.v8)()){const j=this._document.querySelectorAll(`.${B}[platform="server"], .${B}[platform="test"]`);for(let De=0;De<j.length;De++)j[De].remove()}const k=this._document.createElement("div");k.classList.add(B),(0,w.v8)()?k.setAttribute("platform","test"):this._platform.isBrowser||k.setAttribute("platform","server"),this._document.body.appendChild(k),this._containerElement=k}_loadStyles(){this._styleLoader.load(ze)}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();class Ft{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_backdropElement=null;_backdropTimeout;_backdropClick=new be.B;_attachments=new be.B;_detachments=new be.B;_positionStrategy;_scrollStrategy;_locationChanges=me.yU.EMPTY;_backdropClickHandler=ke=>this._backdropClick.next(ke);_backdropTransitionendHandler=ke=>{this._disposeBackdrop(ke.target)};_previousHostParent;_keydownEvents=new be.B;_outsidePointerEvents=new be.B;_renders=new be.B;_afterRenderRef;_afterNextRenderRef;constructor(ke,B,k,j,De,it,ot,Tt,In,Vt=!1,dn){this._portalOutlet=ke,this._host=B,this._pane=k,this._config=j,this._ngZone=De,this._keyboardDispatcher=it,this._document=ot,this._location=Tt,this._outsideClickDispatcher=In,this._animationsDisabled=Vt,this._injector=dn,j.scrollStrategy&&(this._scrollStrategy=j.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=j.positionStrategy,this._afterRenderRef=(0,c.O8t)(()=>(0,c.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ke){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const B=this._portalOutlet.attach(ke);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,c.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof B?.onDestroy&&B.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),B}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ke=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ke}dispose(){const ke=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,ke&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ke){ke!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ke,this.hasAttached()&&(ke.attach(this),this.updatePosition()))}updateSize(ke){this._config={...this._config,...ke},this._updateElementSize()}setDirection(ke){this._config={...this._config,direction:ke},this._updateElementDirection()}addPanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!0)}removePanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!1)}getDirection(){const ke=this._config.direction;return ke?"string"==typeof ke?ke:ke.value:"ltr"}updateScrollStrategy(ke){ke!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ke,this.hasAttached()&&(ke.attach(this),ke.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ke=this._pane.style;ke.width=(0,y.a1)(this._config.width),ke.height=(0,y.a1)(this._config.height),ke.minWidth=(0,y.a1)(this._config.minWidth),ke.minHeight=(0,y.a1)(this._config.minHeight),ke.maxWidth=(0,y.a1)(this._config.maxWidth),ke.maxHeight=(0,y.a1)(this._config.maxHeight)}_togglePointerEvents(ke){this._pane.style.pointerEvents=ke?"":"none"}_attachBackdrop(){const ke="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ke)})}):this._backdropElement.classList.add(ke)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ke=this._backdropElement;if(ke){if(this._animationsDisabled)return void this._disposeBackdrop(ke);ke.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ke.addEventListener("transitionend",this._backdropTransitionendHandler)}),ke.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ke)},500))}}_toggleClasses(ke,B,k){const j=(0,y.FG)(B||[]).filter(De=>!!De);j.length&&(k?ke.classList.add(...j):ke.classList.remove(...j))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const ke=this._renders.pipe((0,T.Q)((0,pe.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ke.unsubscribe())})})}_disposeScrollStrategy(){const ke=this._scrollStrategy;ke&&(ke.disable(),ke.detach&&ke.detach())}_disposeBackdrop(ke){ke&&(ke.removeEventListener("click",this._backdropClickHandler),ke.removeEventListener("transitionend",this._backdropTransitionendHandler),ke.remove(),this._backdropElement===ke&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Ke="cdk-overlay-connected-position-bounding-box",dt=/([A-Za-z%]+)$/;class Ge{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new be.B;_resizeSubscription=me.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(ke,B,k,j,De){this._viewportRuler=B,this._document=k,this._platform=j,this._overlayContainer=De,this.setOrigin(ke)}attach(ke){this._validatePositions(),ke.hostElement.classList.add(Ke),this._overlayRef=ke,this._boundingBox=ke.hostElement,this._pane=ke.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ke=this._originRect,B=this._overlayRect,k=this._viewportRect,j=this._containerRect,De=[];let it;for(let ot of this._preferredPositions){let Tt=this._getOriginPoint(ke,j,ot),In=this._getOverlayPoint(Tt,B,ot),Vt=this._getOverlayFit(In,B,k,ot);if(Vt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ot,Tt);this._canFitWithFlexibleDimensions(Vt,In,k)?De.push({position:ot,origin:Tt,overlayRect:B,boundingBoxRect:this._calculateBoundingBoxRect(Tt,ot)}):(!it||it.overlayFit.visibleArea<Vt.visibleArea)&&(it={overlayFit:Vt,overlayPoint:In,originPoint:Tt,position:ot,overlayRect:B})}if(De.length){let ot=null,Tt=-1;for(const In of De){const Vt=In.boundingBoxRect.width*In.boundingBoxRect.height*(In.position.weight||1);Vt>Tt&&(Tt=Vt,ot=In)}return this._isPushed=!1,void this._applyPosition(ot.position,ot.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(it.position,it.originPoint);this._applyPosition(it.position,it.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&He(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ke),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ke=this._lastPosition;if(ke){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const B=this._getOriginPoint(this._originRect,this._containerRect,ke);this._applyPosition(ke,B)}else this.apply()}withScrollableContainers(ke){return this._scrollables=ke,this}withPositions(ke){return this._preferredPositions=ke,-1===ke.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ke){return this._viewportMargin=ke,this}withFlexibleDimensions(ke=!0){return this._hasFlexibleDimensions=ke,this}withGrowAfterOpen(ke=!0){return this._growAfterOpen=ke,this}withPush(ke=!0){return this._canPush=ke,this}withLockedPosition(ke=!0){return this._positionLocked=ke,this}setOrigin(ke){return this._origin=ke,this}withDefaultOffsetX(ke){return this._offsetX=ke,this}withDefaultOffsetY(ke){return this._offsetY=ke,this}withTransformOriginOn(ke){return this._transformOriginSelector=ke,this}_getOriginPoint(ke,B,k){let j,De;if("center"==k.originX)j=ke.left+ke.width/2;else{const it=this._isRtl()?ke.right:ke.left,ot=this._isRtl()?ke.left:ke.right;j="start"==k.originX?it:ot}return B.left<0&&(j-=B.left),De="center"==k.originY?ke.top+ke.height/2:"top"==k.originY?ke.top:ke.bottom,B.top<0&&(De-=B.top),{x:j,y:De}}_getOverlayPoint(ke,B,k){let j,De;return j="center"==k.overlayX?-B.width/2:"start"===k.overlayX?this._isRtl()?-B.width:0:this._isRtl()?0:-B.width,De="center"==k.overlayY?-B.height/2:"top"==k.overlayY?0:-B.height,{x:ke.x+j,y:ke.y+De}}_getOverlayFit(ke,B,k,j){const De=se(B);let{x:it,y:ot}=ke,Tt=this._getOffset(j,"x"),In=this._getOffset(j,"y");Tt&&(it+=Tt),In&&(ot+=In);let Pn=0-ot,Fn=ot+De.height-k.height,Bn=this._subtractOverflows(De.width,0-it,it+De.width-k.width),cr=this._subtractOverflows(De.height,Pn,Fn),Jr=Bn*cr;return{visibleArea:Jr,isCompletelyWithinViewport:De.width*De.height===Jr,fitsInViewportVertically:cr===De.height,fitsInViewportHorizontally:Bn==De.width}}_canFitWithFlexibleDimensions(ke,B,k){if(this._hasFlexibleDimensions){const j=k.bottom-B.y,De=k.right-B.x,it=mt(this._overlayRef.getConfig().minHeight),ot=mt(this._overlayRef.getConfig().minWidth);return(ke.fitsInViewportVertically||null!=it&&it<=j)&&(ke.fitsInViewportHorizontally||null!=ot&&ot<=De)}return!1}_pushOverlayOnScreen(ke,B,k){if(this._previousPushAmount&&this._positionLocked)return{x:ke.x+this._previousPushAmount.x,y:ke.y+this._previousPushAmount.y};const j=se(B),De=this._viewportRect,it=Math.max(ke.x+j.width-De.width,0),ot=Math.max(ke.y+j.height-De.height,0),Tt=Math.max(De.top-k.top-ke.y,0),In=Math.max(De.left-k.left-ke.x,0);let Vt=0,dn=0;return Vt=j.width<=De.width?In||-it:ke.x<this._viewportMargin?De.left-k.left-ke.x:0,dn=j.height<=De.height?Tt||-ot:ke.y<this._viewportMargin?De.top-k.top-ke.y:0,this._previousPushAmount={x:Vt,y:dn},{x:ke.x+Vt,y:ke.y+dn}}_applyPosition(ke,B){if(this._setTransformOrigin(ke),this._setOverlayElementStyles(B,ke),this._setBoundingBoxStyles(B,ke),ke.panelClass&&this._addPanelClasses(ke.panelClass),this._positionChanges.observers.length){const k=this._getScrollVisibility();if(ke!==this._lastPosition||!this._lastScrollVisibility||!function Ze(tt,ke){return tt===ke||tt.isOriginClipped===ke.isOriginClipped&&tt.isOriginOutsideView===ke.isOriginOutsideView&&tt.isOverlayClipped===ke.isOverlayClipped&&tt.isOverlayOutsideView===ke.isOverlayOutsideView}(this._lastScrollVisibility,k)){const j=new Xt(ke,k);this._positionChanges.next(j)}this._lastScrollVisibility=k}this._lastPosition=ke,this._isInitialRender=!1}_setTransformOrigin(ke){if(!this._transformOriginSelector)return;const B=this._boundingBox.querySelectorAll(this._transformOriginSelector);let k,j=ke.overlayY;k="center"===ke.overlayX?"center":this._isRtl()?"start"===ke.overlayX?"right":"left":"start"===ke.overlayX?"left":"right";for(let De=0;De<B.length;De++)B[De].style.transformOrigin=`${k} ${j}`}_calculateBoundingBoxRect(ke,B){const k=this._viewportRect,j=this._isRtl();let De,it,ot,Vt,dn,Pn;if("top"===B.overlayY)it=ke.y,De=k.height-it+this._viewportMargin;else if("bottom"===B.overlayY)ot=k.height-ke.y+2*this._viewportMargin,De=k.height-ot+this._viewportMargin;else{const Fn=Math.min(k.bottom-ke.y+k.top,ke.y),Bn=this._lastBoundingBoxSize.height;De=2*Fn,it=ke.y-Fn,De>Bn&&!this._isInitialRender&&!this._growAfterOpen&&(it=ke.y-Bn/2)}if("end"===B.overlayX&&!j||"start"===B.overlayX&&j)Pn=k.width-ke.x+2*this._viewportMargin,Vt=ke.x-this._viewportMargin;else if("start"===B.overlayX&&!j||"end"===B.overlayX&&j)dn=ke.x,Vt=k.right-ke.x;else{const Fn=Math.min(k.right-ke.x+k.left,ke.x),Bn=this._lastBoundingBoxSize.width;Vt=2*Fn,dn=ke.x-Fn,Vt>Bn&&!this._isInitialRender&&!this._growAfterOpen&&(dn=ke.x-Bn/2)}return{top:it,left:dn,bottom:ot,right:Pn,width:Vt,height:De}}_setBoundingBoxStyles(ke,B){const k=this._calculateBoundingBoxRect(ke,B);!this._isInitialRender&&!this._growAfterOpen&&(k.height=Math.min(k.height,this._lastBoundingBoxSize.height),k.width=Math.min(k.width,this._lastBoundingBoxSize.width));const j={};if(this._hasExactPosition())j.top=j.left="0",j.bottom=j.right=j.maxHeight=j.maxWidth="",j.width=j.height="100%";else{const De=this._overlayRef.getConfig().maxHeight,it=this._overlayRef.getConfig().maxWidth;j.height=(0,y.a1)(k.height),j.top=(0,y.a1)(k.top),j.bottom=(0,y.a1)(k.bottom),j.width=(0,y.a1)(k.width),j.left=(0,y.a1)(k.left),j.right=(0,y.a1)(k.right),j.alignItems="center"===B.overlayX?"center":"end"===B.overlayX?"flex-end":"flex-start",j.justifyContent="center"===B.overlayY?"center":"bottom"===B.overlayY?"flex-end":"flex-start",De&&(j.maxHeight=(0,y.a1)(De)),it&&(j.maxWidth=(0,y.a1)(it))}this._lastBoundingBoxSize=k,He(this._boundingBox.style,j)}_resetBoundingBoxStyles(){He(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){He(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ke,B){const k={},j=this._hasExactPosition(),De=this._hasFlexibleDimensions,it=this._overlayRef.getConfig();if(j){const Vt=this._viewportRuler.getViewportScrollPosition();He(k,this._getExactOverlayY(B,ke,Vt)),He(k,this._getExactOverlayX(B,ke,Vt))}else k.position="static";let ot="",Tt=this._getOffset(B,"x"),In=this._getOffset(B,"y");Tt&&(ot+=`translateX(${Tt}px) `),In&&(ot+=`translateY(${In}px)`),k.transform=ot.trim(),it.maxHeight&&(j?k.maxHeight=(0,y.a1)(it.maxHeight):De&&(k.maxHeight="")),it.maxWidth&&(j?k.maxWidth=(0,y.a1)(it.maxWidth):De&&(k.maxWidth="")),He(this._pane.style,k)}_getExactOverlayY(ke,B,k){let j={top:"",bottom:""},De=this._getOverlayPoint(B,this._overlayRect,ke);return this._isPushed&&(De=this._pushOverlayOnScreen(De,this._overlayRect,k)),"bottom"===ke.overlayY?j.bottom=this._document.documentElement.clientHeight-(De.y+this._overlayRect.height)+"px":j.top=(0,y.a1)(De.y),j}_getExactOverlayX(ke,B,k){let it,j={left:"",right:""},De=this._getOverlayPoint(B,this._overlayRect,ke);return this._isPushed&&(De=this._pushOverlayOnScreen(De,this._overlayRect,k)),it=this._isRtl()?"end"===ke.overlayX?"left":"right":"end"===ke.overlayX?"right":"left","right"===it?j.right=this._document.documentElement.clientWidth-(De.x+this._overlayRect.width)+"px":j.left=(0,y.a1)(De.x),j}_getScrollVisibility(){const ke=this._getOriginRect(),B=this._pane.getBoundingClientRect(),k=this._scrollables.map(j=>j.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ie(ke,k),isOriginOutsideView:ae(ke,k),isOverlayClipped:Ie(B,k),isOverlayOutsideView:ae(B,k)}}_subtractOverflows(ke,...B){return B.reduce((k,j)=>k-Math.max(j,0),ke)}_getNarrowedViewportRect(){const ke=this._document.documentElement.clientWidth,B=this._document.documentElement.clientHeight,k=this._viewportRuler.getViewportScrollPosition();return{top:k.top+this._viewportMargin,left:k.left+this._viewportMargin,right:k.left+ke-this._viewportMargin,bottom:k.top+B-this._viewportMargin,width:ke-2*this._viewportMargin,height:B-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ke,B){return"x"===B?null==ke.offsetX?this._offsetX:ke.offsetX:null==ke.offsetY?this._offsetY:ke.offsetY}_validatePositions(){}_addPanelClasses(ke){this._pane&&(0,y.FG)(ke).forEach(B=>{""!==B&&-1===this._appliedPanelClasses.indexOf(B)&&(this._appliedPanelClasses.push(B),this._pane.classList.add(B))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ke=>{this._pane.classList.remove(ke)}),this._appliedPanelClasses=[])}_getOriginRect(){const ke=this._origin;if(ke instanceof c.aKT)return ke.nativeElement.getBoundingClientRect();if(ke instanceof Element)return ke.getBoundingClientRect();const B=ke.width||0,k=ke.height||0;return{top:ke.y,bottom:ke.y+k,left:ke.x,right:ke.x+B,height:k,width:B}}}function He(tt,ke){for(let B in ke)ke.hasOwnProperty(B)&&(tt[B]=ke[B]);return tt}function mt(tt){if("number"!=typeof tt&&null!=tt){const[ke,B]=tt.split(dt);return B&&"px"!==B?null:parseFloat(ke)}return tt||null}function se(tt){return{top:Math.floor(tt.top),right:Math.floor(tt.right),bottom:Math.floor(tt.bottom),left:Math.floor(tt.left),width:Math.floor(tt.width),height:Math.floor(tt.height)}}const fn="cdk-global-overlay-wrapper";class Gn{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(ke){const B=ke.getConfig();this._overlayRef=ke,this._width&&!B.width&&ke.updateSize({width:this._width}),this._height&&!B.height&&ke.updateSize({height:this._height}),ke.hostElement.classList.add(fn),this._isDisposed=!1}top(ke=""){return this._bottomOffset="",this._topOffset=ke,this._alignItems="flex-start",this}left(ke=""){return this._xOffset=ke,this._xPosition="left",this}bottom(ke=""){return this._topOffset="",this._bottomOffset=ke,this._alignItems="flex-end",this}right(ke=""){return this._xOffset=ke,this._xPosition="right",this}start(ke=""){return this._xOffset=ke,this._xPosition="start",this}end(ke=""){return this._xOffset=ke,this._xPosition="end",this}width(ke=""){return this._overlayRef?this._overlayRef.updateSize({width:ke}):this._width=ke,this}height(ke=""){return this._overlayRef?this._overlayRef.updateSize({height:ke}):this._height=ke,this}centerHorizontally(ke=""){return this.left(ke),this._xPosition="center",this}centerVertically(ke=""){return this.top(ke),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ke=this._overlayRef.overlayElement.style,B=this._overlayRef.hostElement.style,k=this._overlayRef.getConfig(),{width:j,height:De,maxWidth:it,maxHeight:ot}=k,Tt=!("100%"!==j&&"100vw"!==j||it&&"100%"!==it&&"100vw"!==it),In=!("100%"!==De&&"100vh"!==De||ot&&"100%"!==ot&&"100vh"!==ot),Vt=this._xPosition,dn=this._xOffset,Pn="rtl"===this._overlayRef.getConfig().direction;let Fn="",Bn="",cr="";Tt?cr="flex-start":"center"===Vt?(cr="center",Pn?Bn=dn:Fn=dn):Pn?"left"===Vt||"end"===Vt?(cr="flex-end",Fn=dn):("right"===Vt||"start"===Vt)&&(cr="flex-start",Bn=dn):"left"===Vt||"start"===Vt?(cr="flex-start",Fn=dn):("right"===Vt||"end"===Vt)&&(cr="flex-end",Bn=dn),ke.position=this._cssPosition,ke.marginLeft=Tt?"0":Fn,ke.marginTop=In?"0":this._topOffset,ke.marginBottom=this._bottomOffset,ke.marginRight=Tt?"0":Bn,B.justifyContent=cr,B.alignItems=In?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ke=this._overlayRef.overlayElement.style,B=this._overlayRef.hostElement,k=B.style;B.classList.remove(fn),k.justifyContent=k.alignItems=ke.marginTop=ke.marginBottom=ke.marginLeft=ke.marginRight=ke.position="",this._overlayRef=null,this._isDisposed=!0}}let Nt=(()=>{class tt{_viewportRuler=(0,c.WQX)(i.Xj);_document=(0,c.WQX)(a.qQ);_platform=(0,c.WQX)(w.OD);_overlayContainer=(0,c.WQX)(Fe);constructor(){}global(){return new Gn}flexibleConnectedTo(B){return new Ge(B,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Qt=(()=>{class tt{scrollStrategies=(0,c.WQX)(st);_overlayContainer=(0,c.WQX)(Fe);_positionBuilder=(0,c.WQX)(Nt);_keyboardDispatcher=(0,c.WQX)(bn);_injector=(0,c.WQX)(c.zZn);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);_directionality=(0,c.WQX)(N.dS);_location=(0,c.WQX)(a.aZ);_outsideClickDispatcher=(0,c.WQX)(Qe);_animationsModuleType=(0,c.WQX)(c.bc$,{optional:!0});_idGenerator=(0,c.WQX)(Z.g7);_appRef;_styleLoader=(0,c.WQX)(te.l);constructor(){}create(B){this._styleLoader.load(ze);const k=this._createHostElement(),j=this._createPaneElement(k),De=this._createPortalOutlet(j),it=new ht(B);return it.direction=it.direction||this._directionality.value,new Ft(De,k,j,it,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(c.uvJ))}position(){return this._positionBuilder}_createPaneElement(B){const k=this._document.createElement("div");return k.id=this._idGenerator.getId("cdk-overlay-"),k.classList.add("cdk-overlay-pane"),B.appendChild(k),k}_createHostElement(){const B=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(B),B}_createPortalOutlet(B){return this._appRef||(this._appRef=this._injector.get(c.o8S)),new G.aI(B,null,this._appRef,this._injector,this._document)}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();const an=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Xn=new c.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const tt=(0,c.WQX)(Qt);return()=>tt.scrollStrategies.reposition()}});let En=(()=>{class tt{elementRef=(0,c.WQX)(c.aKT);constructor(){}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=c.FsC({type:tt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return tt})(),Gt=(()=>{class tt{_overlay=(0,c.WQX)(Qt);_dir=(0,c.WQX)(N.dS,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=me.yU.EMPTY;_attachSubscription=me.yU.EMPTY;_detachSubscription=me.yU.EMPTY;_positionSubscription=me.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,c.WQX)(Xn);_disposeOnNavigation=!1;_ngZone=(0,c.WQX)(c.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(B){this._offsetX=B,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(B){this._offsetY=B,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(B){this._disposeOnNavigation=B}backdropClick=new c.bkB;positionChange=new c.bkB;attach=new c.bkB;detach=new c.bkB;overlayKeydown=new c.bkB;overlayOutsideClick=new c.bkB;constructor(){const B=(0,c.WQX)(c.C4Q),k=(0,c.WQX)(c.c1b);this._templatePortal=new G.VA(B,k),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(B){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),B.origin&&this.open&&this._position.apply()),B.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=an);const B=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=B.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=B.detachments().subscribe(()=>this.detach.emit()),B.keydownEvents().subscribe(k=>{this.overlayKeydown.next(k),k.keyCode===Te._f&&!this.disableClose&&!(0,Te.rp)(k)&&(k.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(k=>{const j=this._getOriginElement(),De=(0,w.Fb)(k);(!j||j!==De&&!j.contains(De))&&this.overlayOutsideClick.next(k)})}_buildConfig(){const B=this._position=this.positionStrategy||this._createPositionStrategy(),k=new ht({direction:this._dir||"ltr",positionStrategy:B,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(k.width=this.width),(this.height||0===this.height)&&(k.height=this.height),(this.minWidth||0===this.minWidth)&&(k.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(k.minHeight=this.minHeight),this.backdropClass&&(k.backdropClass=this.backdropClass),this.panelClass&&(k.panelClass=this.panelClass),k}_updatePositionStrategy(B){const k=this.positions.map(j=>({originX:j.originX,originY:j.originY,overlayX:j.overlayX,overlayY:j.overlayY,offsetX:j.offsetX||this.offsetX,offsetY:j.offsetY||this.offsetY,panelClass:j.panelClass||void 0}));return B.setOrigin(this._getOrigin()).withPositions(k).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const B=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(B),B}_getOrigin(){return this.origin instanceof En?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof En?this.origin.elementRef.nativeElement:this.origin instanceof c.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(B=>{this.backdropClick.emit(B)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function I(tt,ke=!1){return(0,S.N)((B,k)=>{let j=0;B.subscribe((0,A._)(k,De=>{const it=tt(De,j++);(it||ke)&&k.next(De),!it&&k.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(B=>{this._ngZone.run(()=>this.positionChange.emit(B)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=c.FsC({type:tt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",c.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",c.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",c.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",c.L39],push:[2,"cdkConnectedOverlayPush","push",c.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",c.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[c.GFd,c.OA$]})}return tt})();const Kt={provide:Xn,deps:[Qt],useFactory:function At(tt){return()=>tt.scrollStrategies.reposition()}};let xn=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=c.$C({type:tt});static \u0275inj=c.G2t({providers:[Qt,Kt],imports:[N.jI,G.jc,i.E9,i.E9]})}return tt})()},6860:(o,s,r)=>{"use strict";r.d(s,{BD:()=>me,BQ:()=>N,CZ:()=>be,Fb:()=>Me,KT:()=>xe,MU:()=>S,OD:()=>y,r5:()=>G,v8:()=>Ce,vc:()=>Re});var i=r(4438),a=r(177);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let C,y=(()=>{class le{_platformId=(0,i.WQX)(i.Agw);isBrowser=this._platformId?(0,a.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!c)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function S(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(T),C;let le=document.createElement("input");return C=new Set(T.filter(ae=>(le.setAttribute("type",ae),le.type===ae))),C}let A;function N(le){return function I(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?le:!!le.capture}var G=function(le){return le[le.NORMAL=0]="NORMAL",le[le.NEGATED=1]="NEGATED",le[le.INVERTED=2]="INVERTED",le}(G||{});let Z,te,pe;function be(){if(null==te){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return te=!1,te;if("scrollBehavior"in document.documentElement.style)te=!0;else{const le=Element.prototype.scrollTo;te=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return te}function me(){if("object"!=typeof document||!document)return G.NORMAL;if(null==Z){const le=document.createElement("div"),ae=le.style;le.dir="rtl",ae.width="1px",ae.overflow="auto",ae.visibility="hidden",ae.pointerEvents="none",ae.position="absolute";const Ie=document.createElement("div"),$e=Ie.style;$e.width="2px",$e.height="1px",le.appendChild(Ie),document.body.appendChild(le),Z=G.NORMAL,0===le.scrollLeft&&(le.scrollLeft=1,Z=0===le.scrollLeft?G.NEGATED:G.INVERTED),le.remove()}return Z}function xe(le){if(function Te(){if(null==pe){const le=typeof document<"u"?document.head:null;pe=!(!le||!le.createShadowRoot&&!le.attachShadow)}return pe}()){const ae=le.getRootNode?le.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ae instanceof ShadowRoot)return ae}return null}function Re(){let le=typeof document<"u"&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const ae=le.shadowRoot.activeElement;if(ae===le)break;le=ae}return le}function Me(le){return le.composedPath?le.composedPath()[0]:le.target}function Ce(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(o,s,r)=>{"use strict";r.d(s,{A8:()=>I,I3:()=>xe,VA:()=>N,aI:()=>be,jc:()=>Me,lb:()=>Z});var i=r(4438),a=r(177);class A{_attachedHost;attach(ae){return this._attachedHost=ae,ae.attach(this)}detach(){let ae=this._attachedHost;null!=ae&&(this._attachedHost=null,ae.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ae){this._attachedHost=ae}}class I extends A{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(ae,Ie,$e,st,ht){super(),this.component=ae,this.viewContainerRef=Ie,this.injector=$e,this.projectableNodes=ht}}class N extends A{templateRef;viewContainerRef;context;injector;constructor(ae,Ie,$e,st){super(),this.templateRef=ae,this.viewContainerRef=Ie,this.context=$e,this.injector=st}get origin(){return this.templateRef.elementRef}attach(ae,Ie=this.context){return this.context=Ie,super.attach(ae)}detach(){return this.context=void 0,super.detach()}}class G extends A{element;constructor(ae){super(),this.element=ae instanceof i.aKT?ae.nativeElement:ae}}class Z{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(ae){return ae instanceof I?(this._attachedPortal=ae,this.attachComponentPortal(ae)):ae instanceof N?(this._attachedPortal=ae,this.attachTemplatePortal(ae)):this.attachDomPortal&&ae instanceof G?(this._attachedPortal=ae,this.attachDomPortal(ae)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ae){this._disposeFn=ae}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class be extends Z{outletElement;_appRef;_defaultInjector;_document;constructor(ae,Ie,$e,st,ht){super(),this.outletElement=ae,this._appRef=$e,this._defaultInjector=st,this._document=ht}attachComponentPortal(ae){let Ie;if(ae.viewContainerRef){const $e=ae.injector||ae.viewContainerRef.injector,st=$e.get(i.Vns,null,{optional:!0})||void 0;Ie=ae.viewContainerRef.createComponent(ae.component,{index:ae.viewContainerRef.length,injector:$e,ngModuleRef:st,projectableNodes:ae.projectableNodes||void 0}),this.setDisposeFn(()=>Ie.destroy())}else Ie=(0,i.a0P)(ae.component,{elementInjector:ae.injector||this._defaultInjector||i.zZn.NULL,environmentInjector:this._appRef.injector,projectableNodes:ae.projectableNodes||void 0}),this._appRef.attachView(Ie.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ie.hostView),Ie.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(Ie)),this._attachedPortal=ae,Ie}attachTemplatePortal(ae){let Ie=ae.viewContainerRef,$e=Ie.createEmbeddedView(ae.templateRef,ae.context,{injector:ae.injector});return $e.rootNodes.forEach(st=>this.outletElement.appendChild(st)),$e.detectChanges(),this.setDisposeFn(()=>{let st=Ie.indexOf($e);-1!==st&&Ie.remove(st)}),this._attachedPortal=ae,$e}attachDomPortal=ae=>{const Ie=ae.element,$e=this._document.createComment("dom-portal");Ie.parentNode.insertBefore($e,Ie),this.outletElement.appendChild(Ie),this._attachedPortal=ae,super.setDisposeFn(()=>{$e.parentNode&&$e.parentNode.replaceChild(Ie,$e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ae){return ae.hostView.rootNodes[0]}}let xe=(()=>{class le extends Z{_moduleRef=(0,i.WQX)(i.Vns,{optional:!0});_document=(0,i.WQX)(a.qQ);_viewContainerRef=(0,i.WQX)(i.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(Ie){this.hasAttached()&&!Ie&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ie&&super.attach(Ie),this._attachedPortal=Ie||null)}attached=new i.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Ie){Ie.setAttachedHost(this);const $e=null!=Ie.viewContainerRef?Ie.viewContainerRef:this._viewContainerRef,st=$e.createComponent(Ie.component,{index:$e.length,injector:Ie.injector||$e.injector,projectableNodes:Ie.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return $e!==this._viewContainerRef&&this._getRootNode().appendChild(st.hostView.rootNodes[0]),super.setDisposeFn(()=>st.destroy()),this._attachedPortal=Ie,this._attachedRef=st,this.attached.emit(st),st}attachTemplatePortal(Ie){Ie.setAttachedHost(this);const $e=this._viewContainerRef.createEmbeddedView(Ie.templateRef,Ie.context,{injector:Ie.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ie,this._attachedRef=$e,this.attached.emit($e),$e}attachDomPortal=Ie=>{const $e=Ie.element,st=this._document.createComment("dom-portal");Ie.setAttachedHost(this),$e.parentNode.insertBefore(st,$e),this._getRootNode().appendChild($e),this._attachedPortal=Ie,super.setDisposeFn(()=>{st.parentNode&&st.parentNode.replaceChild($e,st)})};_getRootNode(){const Ie=this._viewContainerRef.element.nativeElement;return Ie.nodeType===Ie.ELEMENT_NODE?Ie:Ie.parentNode}static \u0275fac=function($e){return new($e||le)};static \u0275dir=i.FsC({type:le,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Vt3]})}return le})(),Me=(()=>{class le{static \u0275fac=function($e){return new($e||le)};static \u0275mod=i.$C({type:le});static \u0275inj=i.G2t({})}return le})()},9046:(o,s,r)=>{"use strict";r.d(s,{Y:()=>y,l:()=>c});var i=r(4438);const a=new WeakMap;let c=(()=>{class w{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(T){const S=this._appRef=this._appRef||this._injector.get(i.o8S);let A=a.get(S);A||(A={loaders:new Set,refs:[]},a.set(S,A),S.onDestroy(()=>{a.get(S)?.refs.forEach(I=>I.destroy()),a.delete(S)})),A.loaders.has(T)||(A.loaders.add(T),A.refs.push((0,i.a0P)(T,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(S){return new(S||w)};static \u0275prov=i.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),y=(()=>{class w{static \u0275fac=function(S){return new(S||w)};static \u0275cmp=i.VBU({type:w,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(S,A){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return w})()},5542:(o,s,r)=>{"use strict";r.d(s,{uv:()=>at,Gj:()=>dt,R:()=>vt,E9:()=>Ge,Xj:()=>ln});var i=r(4085),a=r(4438),c=r(1413),y=r(7673),w=r(1985),C=r(3726),T=r(6780),S=r(8359);const A={schedule(He){let mt=requestAnimationFrame,se=cancelAnimationFrame;const{delegate:Ze}=A;Ze&&(mt=Ze.requestAnimationFrame,se=Ze.cancelAnimationFrame);const Rt=mt(Jt=>{se=void 0,He(Jt)});return new S.yU(()=>se?.(Rt))},requestAnimationFrame(...He){const{delegate:mt}=A;return(mt?.requestAnimationFrame||requestAnimationFrame)(...He)},cancelAnimationFrame(...He){const{delegate:mt}=A;return(mt?.cancelAnimationFrame||cancelAnimationFrame)(...He)},delegate:void 0};var N=r(9687);new class G extends N.q{flush(mt){this._active=!0;const se=this._scheduled;this._scheduled=void 0;const{actions:Ze}=this;let Rt;mt=mt||Ze.shift();do{if(Rt=mt.execute(mt.state,mt.delay))break}while((mt=Ze[0])&&mt.id===se&&Ze.shift());if(this._active=!1,Rt){for(;(mt=Ze[0])&&mt.id===se&&Ze.shift();)mt.unsubscribe();throw Rt}}}(class I extends T.R{constructor(mt,se){super(mt,se),this.scheduler=mt,this.work=se}requestAsyncId(mt,se,Ze=0){return null!==Ze&&Ze>0?super.requestAsyncId(mt,se,Ze):(mt.actions.push(this),mt._scheduled||(mt._scheduled=A.requestAnimationFrame(()=>mt.flush(void 0))))}recycleAsyncId(mt,se,Ze=0){var Rt;if(null!=Ze?Ze>0:this.delay>0)return super.recycleAsyncId(mt,se,Ze);const{actions:Jt}=mt;null!=se&&(null===(Rt=Jt[Jt.length-1])||void 0===Rt?void 0:Rt.id)!==se&&(A.cancelAnimationFrame(se),mt._scheduled=void 0)}});r(5007);var me=r(3798),pe=r(5964),Te=r(6977),xe=r(6860),Re=r(177),Me=r(8203);let vt=(()=>{class He{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(xe.OD);_document=(0,a.WQX)(Re.qQ,{optional:!0});constructor(){}_scrolled=new c.B;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(se){this.scrollContainers.has(se)||this.scrollContainers.set(se,se.elementScrolled().subscribe(()=>this._scrolled.next(se)))}deregister(se){const Ze=this.scrollContainers.get(se);Ze&&(Ze.unsubscribe(),this.scrollContainers.delete(se))}scrolled(se=20){return this._platform.isBrowser?new w.c(Ze=>{this._globalSubscription||this._addGlobalListener();const Rt=se>0?this._scrolled.pipe((0,me.Z)(se)).subscribe(Ze):this._scrolled.subscribe(Ze);return this._scrolledCount++,()=>{Rt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,y.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((se,Ze)=>this.deregister(Ze)),this._scrolled.complete()}ancestorScrolled(se,Ze){const Rt=this.getAncestorScrollContainers(se);return this.scrolled(Ze).pipe((0,pe.p)(Jt=>!Jt||Rt.indexOf(Jt)>-1))}getAncestorScrollContainers(se){const Ze=[];return this.scrollContainers.forEach((Rt,Jt)=>{this._scrollableContainsElement(Jt,se)&&Ze.push(Jt)}),Ze}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(se,Ze){let Rt=(0,i.i8)(Ze),Jt=se.getElementRef().nativeElement;do{if(Rt==Jt)return!0}while(Rt=Rt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const se=this._getWindow();return(0,C.R)(se.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),at=(()=>{class He{elementRef=(0,a.WQX)(a.aKT);scrollDispatcher=(0,a.WQX)(vt);ngZone=(0,a.WQX)(a.SKi);dir=(0,a.WQX)(Me.dS,{optional:!0});_destroyed=new c.B;_elementScrolled=new w.c(se=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,Te.Q)(this._destroyed)).subscribe(se)));constructor(){}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(se){const Ze=this.elementRef.nativeElement,Rt=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=Rt?se.end:se.start),null==se.right&&(se.right=Rt?se.start:se.end),null!=se.bottom&&(se.top=Ze.scrollHeight-Ze.clientHeight-se.bottom),Rt&&(0,xe.BD)()!=xe.r5.NORMAL?(null!=se.left&&(se.right=Ze.scrollWidth-Ze.clientWidth-se.left),(0,xe.BD)()==xe.r5.INVERTED?se.left=se.right:(0,xe.BD)()==xe.r5.NEGATED&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=Ze.scrollWidth-Ze.clientWidth-se.right),this._applyScrollToOptions(se)}_applyScrollToOptions(se){const Ze=this.elementRef.nativeElement;(0,xe.CZ)()?Ze.scrollTo(se):(null!=se.top&&(Ze.scrollTop=se.top),null!=se.left&&(Ze.scrollLeft=se.left))}measureScrollOffset(se){const Ze="left",Jt=this.elementRef.nativeElement;if("top"==se)return Jt.scrollTop;if("bottom"==se)return Jt.scrollHeight-Jt.clientHeight-Jt.scrollTop;const fn=this.dir&&"rtl"==this.dir.value;return"start"==se?se=fn?"right":Ze:"end"==se&&(se=fn?Ze:"right"),fn&&(0,xe.BD)()==xe.r5.INVERTED?se==Ze?Jt.scrollWidth-Jt.clientWidth-Jt.scrollLeft:Jt.scrollLeft:fn&&(0,xe.BD)()==xe.r5.NEGATED?se==Ze?Jt.scrollLeft+Jt.scrollWidth-Jt.clientWidth:-Jt.scrollLeft:se==Ze?Jt.scrollLeft:Jt.scrollWidth-Jt.clientWidth-Jt.scrollLeft}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275dir=a.FsC({type:He,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return He})(),ln=(()=>{class He{_platform=(0,a.WQX)(xe.OD);_viewportSize;_change=new c.B;_changeListener=se=>{this._change.next(se)};_document=(0,a.WQX)(Re.qQ,{optional:!0});constructor(){(0,a.WQX)(a.SKi).runOutsideAngular(()=>{if(this._platform.isBrowser){const Ze=this._getWindow();Ze.addEventListener("resize",this._changeListener),Ze.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const se=this._getWindow();se.removeEventListener("resize",this._changeListener),se.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const se={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),se}getViewportRect(){const se=this.getViewportScrollPosition(),{width:Ze,height:Rt}=this.getViewportSize();return{top:se.top,left:se.left,bottom:se.top+Rt,right:se.left+Ze,height:Rt,width:Ze}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const se=this._document,Ze=this._getWindow(),Rt=se.documentElement,Jt=Rt.getBoundingClientRect();return{top:-Jt.top||se.body.scrollTop||Ze.scrollY||Rt.scrollTop||0,left:-Jt.left||se.body.scrollLeft||Ze.scrollX||Rt.scrollLeft||0}}change(se=20){return se>0?this._change.pipe((0,me.Z)(se)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const se=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:se.innerWidth,height:se.innerHeight}:{width:0,height:0}}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),dt=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({})}return He})(),Ge=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({imports:[Me.jI,dt,Me.jI,dt]})}return He})()},7403:(o,s,r)=>{"use strict";r.d(s,{EE:()=>me,P8:()=>Z,xb:()=>be});var i=r(6860),a=r(4438),c=r(9046),y=r(4085),w=r(983),C=r(1413),T=r(3726),S=r(177),A=r(3798),I=r(6977);let N=(()=>{class pe{static \u0275fac=function(Re){return new(Re||pe)};static \u0275cmp=a.VBU({type:pe,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Re,Me){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return pe})();const G=(0,i.BQ)({passive:!0});let Z=(()=>{class pe{_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_styleLoader=(0,a.WQX)(c.l);_monitoredElements=new Map;constructor(){}monitor(xe){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(N);const Re=(0,y.i8)(xe),Me=this._monitoredElements.get(Re);if(Me)return Me.subject;const Ce=new C.B,le="cdk-text-field-autofilled",ae=Ie=>{"cdk-text-field-autofill-start"!==Ie.animationName||Re.classList.contains(le)?"cdk-text-field-autofill-end"===Ie.animationName&&Re.classList.contains(le)&&(Re.classList.remove(le),this._ngZone.run(()=>Ce.next({target:Ie.target,isAutofilled:!1}))):(Re.classList.add(le),this._ngZone.run(()=>Ce.next({target:Ie.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Re.addEventListener("animationstart",ae,G),Re.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Re,{subject:Ce,unlisten:()=>{Re.removeEventListener("animationstart",ae,G)}}),Ce}stopMonitoring(xe){const Re=(0,y.i8)(xe),Me=this._monitoredElements.get(Re);Me&&(Me.unlisten(),Me.subject.complete(),Re.classList.remove("cdk-text-field-autofill-monitored"),Re.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Re))}ngOnDestroy(){this._monitoredElements.forEach((xe,Re)=>this.stopMonitoring(Re))}static \u0275fac=function(Re){return new(Re||pe)};static \u0275prov=a.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})(),be=(()=>{class pe{_elementRef=(0,a.WQX)(a.aKT);_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_previousValue;_initialHeight;_destroyed=new C.B;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(xe){this._minRows=(0,y.OE)(xe),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(xe){this._maxRows=(0,y.OE)(xe),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(xe){this._enabled!==xe&&((this._enabled=xe)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(xe){this._cachedPlaceholderHeight=void 0,xe?this._textareaElement.setAttribute("placeholder",xe):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,a.WQX)(S.qQ,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){(0,a.WQX)(c.l).load(N),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const xe=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;xe&&(this._textareaElement.style.minHeight=xe)}_setMaxHeight(){const xe=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;xe&&(this._textareaElement.style.maxHeight=xe)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const xe=this._getWindow();(0,T.R)(xe,"resize").pipe((0,A.Z)(16),(0,I.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let xe=this._textareaElement.cloneNode(!1);xe.rows=1,xe.style.position="absolute",xe.style.visibility="hidden",xe.style.border="none",xe.style.padding="0",xe.style.height="",xe.style.minHeight="",xe.style.maxHeight="",xe.style.overflow="hidden",this._textareaElement.parentNode.appendChild(xe),this._cachedLineHeight=xe.clientHeight,xe.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const xe=this._textareaElement,Re=xe.style.marginBottom||"",Me=this._platform.FIREFOX,Ce=Me&&this._hasFocus,le=Me?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Ce&&(xe.style.marginBottom=`${xe.clientHeight}px`),xe.classList.add(le);const ae=xe.scrollHeight-4;return xe.classList.remove(le),Ce&&(xe.style.marginBottom=Re),ae}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const xe=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=xe}_handleFocusEvent=xe=>{this._hasFocus="focus"===xe.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(xe=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Re=this._elementRef.nativeElement,Me=Re.value;if(!xe&&this._minRows===this._previousMinRows&&Me===this._previousValue)return;const Ce=this._measureScrollHeight(),le=Math.max(Ce,this._cachedPlaceholderHeight||0);Re.style.height=`${le}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Re)):setTimeout(()=>this._scrollToCaretPosition(Re))}),this._previousValue=Me,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(xe){const{selectionStart:Re,selectionEnd:Me}=xe;!this._destroyed.isStopped&&this._hasFocus&&xe.setSelectionRange(Re,Me)}static \u0275fac=function(Re){return new(Re||pe)};static \u0275dir=a.FsC({type:pe,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Re,Me){1&Re&&a.bIt("input",function(){return Me._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",a.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],features:[a.GFd]})}return pe})(),me=(()=>{class pe{static \u0275fac=function(Re){return new(Re||pe)};static \u0275mod=a.$C({type:pe});static \u0275inj=a.G2t({})}return pe})()},177:(o,s,r)=>{"use strict";r.d(s,{AJ:()=>xo,B3:()=>mr,Jj:()=>ls,MD:()=>tr,N0:()=>Qo,PV:()=>Sr,QT:()=>y,QX:()=>rs,Sm:()=>pe,Sq:()=>ve,T3:()=>bi,UE:()=>Ms,VF:()=>C,Vy:()=>Ps,Xr:()=>Yo,YU:()=>Mo,ZD:()=>w,_b:()=>eo,aZ:()=>xe,bT:()=>pt,fw:()=>Te,hb:()=>be,hj:()=>I,qQ:()=>S,vh:()=>Ns});var i=r(4438),a=r(1413);let c=null;function y(){return c}function w($){c??=$}class C{}const S=new i.nKC("");let A=(()=>{class ${historyGo(q){throw new Error("")}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>(0,i.WQX)(N),providedIn:"platform"})}return $})();const I=new i.nKC("");let N=(()=>{class $ extends A{_location;_history;_doc=(0,i.WQX)(S);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(q){const _e=y().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("popstate",q,!1),()=>_e.removeEventListener("popstate",q)}onHashChange(q){const _e=y().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("hashchange",q,!1),()=>_e.removeEventListener("hashchange",q)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(q){this._location.pathname=q}pushState(q,_e,nt){this._history.pushState(q,_e,nt)}replaceState(q,_e,nt){this._history.replaceState(q,_e,nt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>new $,providedIn:"platform"})}return $})();function G($,de){if(0==$.length)return de;if(0==de.length)return $;let q=0;return $.endsWith("/")&&q++,de.startsWith("/")&&q++,2==q?$+de.substring(1):1==q?$+de:$+"/"+de}function Z($){const de=$.match(/#|\?|$/),q=de&&de.index||$.length;return $.slice(0,q-("/"===$[q-1]?1:0))+$.slice(q)}function te($){return $&&"?"!==$[0]?"?"+$:$}let be=(()=>{class ${historyGo(q){throw new Error("")}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>(0,i.WQX)(pe),providedIn:"root"})}return $})();const me=new i.nKC("");let pe=(()=>{class $ extends be{_platformLocation;_baseHref;_removeListenerFns=[];constructor(q,_e){super(),this._platformLocation=q,this._baseHref=_e??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(S).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}prepareExternalUrl(q){return G(this._baseHref,q)}path(q=!1){const _e=this._platformLocation.pathname+te(this._platformLocation.search),nt=this._platformLocation.hash;return nt&&q?`${_e}${nt}`:_e}pushState(q,_e,nt,_n){const On=this.prepareExternalUrl(nt+te(_n));this._platformLocation.pushState(q,_e,On)}replaceState(q,_e,nt,_n){const On=this.prepareExternalUrl(nt+te(_n));this._platformLocation.replaceState(q,_e,On)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(_e){return new(_e||$)(i.KVO(A),i.KVO(me,8))};static \u0275prov=i.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})(),Te=(()=>{class $ extends be{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(q,_e){super(),this._platformLocation=q,null!=_e&&(this._baseHref=_e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}path(q=!1){const _e=this._platformLocation.hash??"#";return _e.length>0?_e.substring(1):_e}prepareExternalUrl(q){const _e=G(this._baseHref,q);return _e.length>0?"#"+_e:_e}pushState(q,_e,nt,_n){let On=this.prepareExternalUrl(nt+te(_n));0==On.length&&(On=this._platformLocation.pathname),this._platformLocation.pushState(q,_e,On)}replaceState(q,_e,nt,_n){let On=this.prepareExternalUrl(nt+te(_n));0==On.length&&(On=this._platformLocation.pathname),this._platformLocation.replaceState(q,_e,On)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(_e){return new(_e||$)(i.KVO(A),i.KVO(me,8))};static \u0275prov=i.jDH({token:$,factory:$.\u0275fac})}return $})(),xe=(()=>{class ${_subject=new a.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(q){this._locationStrategy=q;const _e=this._locationStrategy.getBaseHref();this._basePath=function le($){if(new RegExp("^(https?:)?//").test($)){const[,q]=$.split(/\/\/[^\/]+/);return q}return $}(Z(Ce(_e))),this._locationStrategy.onPopState(nt=>{this._subject.next({url:this.path(!0),pop:!0,state:nt.state,type:nt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,_e=""){return this.path()==this.normalize(q+te(_e))}normalize(q){return $.stripTrailingSlash(function Me($,de){if(!$||!de.startsWith($))return de;const q=de.substring($.length);return""===q||["/",";","?","#"].includes(q[0])?q:de}(this._basePath,Ce(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,_e="",nt=null){this._locationStrategy.pushState(nt,"",q,_e),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+te(_e)),nt)}replaceState(q,_e="",nt=null){this._locationStrategy.replaceState(nt,"",q,_e),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+te(_e)),nt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(q=0){this._locationStrategy.historyGo?.(q)}onUrlChange(q){return this._urlChangeListeners.push(q),this._urlChangeSubscription??=this.subscribe(_e=>{this._notifyUrlChangeListeners(_e.url,_e.state)}),()=>{const _e=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(_e,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",_e){this._urlChangeListeners.forEach(nt=>nt(q,_e))}subscribe(q,_e,nt){return this._subject.subscribe({next:q,error:_e??void 0,complete:nt??void 0})}static normalizeQueryParams=te;static joinWithSlash=G;static stripTrailingSlash=Z;static \u0275fac=function(_e){return new(_e||$)(i.KVO(be))};static \u0275prov=i.jDH({token:$,factory:()=>function Re(){return new xe((0,i.KVO)(be))}(),providedIn:"root"})}return $})();function Ce($){return $.replace(/\/index.html$/,"")}var Ie=function($){return $[$.Decimal=0]="Decimal",$[$.Percent=1]="Percent",$[$.Currency=2]="Currency",$[$.Scientific=3]="Scientific",$}(Ie||{}),st=function($){return $[$.Format=0]="Format",$[$.Standalone=1]="Standalone",$}(st||{}),ht=function($){return $[$.Narrow=0]="Narrow",$[$.Abbreviated=1]="Abbreviated",$[$.Wide=2]="Wide",$[$.Short=3]="Short",$}(ht||{}),vt=function($){return $[$.Short=0]="Short",$[$.Medium=1]="Medium",$[$.Long=2]="Long",$[$.Full=3]="Full",$}(vt||{});function Fe($,de){return Qt((0,i.H5H)($)[i.KH2.DateFormat],de)}function Ft($,de){return Qt((0,i.H5H)($)[i.KH2.TimeFormat],de)}function Ke($,de){return Qt((0,i.H5H)($)[i.KH2.DateTimeFormat],de)}function dt($,de){const q=(0,i.H5H)($),_e=q[i.KH2.NumberSymbols][de];if(typeof _e>"u"){if(12===de)return q[i.KH2.NumberSymbols][0];if(13===de)return q[i.KH2.NumberSymbols][1]}return _e}function Jt($){if(!$[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${$[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qt($,de){for(let q=de;q>-1;q--)if(typeof $[q]<"u")return $[q];throw new Error("Locale data API: locale data undefined")}function an($){const[de,q]=$.split(":");return{hours:+de,minutes:+q}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kt={},xn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Yn=function($){return $[$.Short=0]="Short",$[$.ShortGMT=1]="ShortGMT",$[$.Long=2]="Long",$[$.Extended=3]="Extended",$}(Yn||{}),tt=function($){return $[$.FullYear=0]="FullYear",$[$.Month=1]="Month",$[$.Date=2]="Date",$[$.Hours=3]="Hours",$[$.Minutes=4]="Minutes",$[$.Seconds=5]="Seconds",$[$.FractionalSeconds=6]="FractionalSeconds",$[$.Day=7]="Day",$}(tt||{}),ke=function($){return $[$.DayPeriods=0]="DayPeriods",$[$.Days=1]="Days",$[$.Months=2]="Months",$[$.Eras=3]="Eras",$}(ke||{});function B($,de,q,_e){let nt=function ft($){if(mn($))return $;if("number"==typeof $&&!isNaN($))return new Date($);if("string"==typeof $){if($=$.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test($)){const[nt,_n=1,On=1]=$.split("-").map(Cr=>+Cr);return k(nt,_n-1,On)}const q=parseFloat($);if(!isNaN($-q))return new Date(q);let _e;if(_e=$.match(At))return function Pt($){const de=new Date(0);let q=0,_e=0;const nt=$[8]?de.setUTCFullYear:de.setFullYear,_n=$[8]?de.setUTCHours:de.setHours;$[9]&&(q=Number($[9]+$[10]),_e=Number($[9]+$[11])),nt.call(de,Number($[1]),Number($[2])-1,Number($[3]));const On=Number($[4]||0)-q,Cr=Number($[5]||0)-_e,Yr=Number($[6]||0),Li=Math.floor(1e3*parseFloat("0."+($[7]||0)));return _n.call(de,On,Cr,Yr,Li),de}(_e)}const de=new Date($);if(!mn(de))throw new Error(`Unable to convert "${$}" into a date`);return de}($);de=j(q,de)||de;let Cr,On=[];for(;de;){if(Cr=xn.exec(de),!Cr){On.push(de);break}{On=On.concat(Cr.slice(1));const Hr=On.pop();if(!Hr)break;de=Hr}}let Yr=nt.getTimezoneOffset();_e&&(Yr=lt(_e,Yr),nt=function kt($,de,q){const _e=q?-1:1,nt=$.getTimezoneOffset();return function Pe($,de){return($=new Date($.getTime())).setMinutes($.getMinutes()+de),$}($,_e*(lt(de,nt)-nt))}(nt,_e,!0));let Li="";return On.forEach(Hr=>{const xi=function Ee($){if(Bt[$])return Bt[$];let de;switch($){case"G":case"GG":case"GGG":de=Vt(ke.Eras,ht.Abbreviated);break;case"GGGG":de=Vt(ke.Eras,ht.Wide);break;case"GGGGG":de=Vt(ke.Eras,ht.Narrow);break;case"y":de=Tt(tt.FullYear,1,0,!1,!0);break;case"yy":de=Tt(tt.FullYear,2,0,!0,!0);break;case"yyy":de=Tt(tt.FullYear,3,0,!1,!0);break;case"yyyy":de=Tt(tt.FullYear,4,0,!1,!0);break;case"Y":de=_t(1);break;case"YY":de=_t(2,!0);break;case"YYY":de=_t(3);break;case"YYYY":de=_t(4);break;case"M":case"L":de=Tt(tt.Month,1,1);break;case"MM":case"LL":de=Tt(tt.Month,2,1);break;case"MMM":de=Vt(ke.Months,ht.Abbreviated);break;case"MMMM":de=Vt(ke.Months,ht.Wide);break;case"MMMMM":de=Vt(ke.Months,ht.Narrow);break;case"LLL":de=Vt(ke.Months,ht.Abbreviated,st.Standalone);break;case"LLLL":de=Vt(ke.Months,ht.Wide,st.Standalone);break;case"LLLLL":de=Vt(ke.Months,ht.Narrow,st.Standalone);break;case"w":de=Xr(1);break;case"ww":de=Xr(2);break;case"W":de=Xr(1,!0);break;case"d":de=Tt(tt.Date,1);break;case"dd":de=Tt(tt.Date,2);break;case"c":case"cc":de=Tt(tt.Day,1);break;case"ccc":de=Vt(ke.Days,ht.Abbreviated,st.Standalone);break;case"cccc":de=Vt(ke.Days,ht.Wide,st.Standalone);break;case"ccccc":de=Vt(ke.Days,ht.Narrow,st.Standalone);break;case"cccccc":de=Vt(ke.Days,ht.Short,st.Standalone);break;case"E":case"EE":case"EEE":de=Vt(ke.Days,ht.Abbreviated);break;case"EEEE":de=Vt(ke.Days,ht.Wide);break;case"EEEEE":de=Vt(ke.Days,ht.Narrow);break;case"EEEEEE":de=Vt(ke.Days,ht.Short);break;case"a":case"aa":case"aaa":de=Vt(ke.DayPeriods,ht.Abbreviated);break;case"aaaa":de=Vt(ke.DayPeriods,ht.Wide);break;case"aaaaa":de=Vt(ke.DayPeriods,ht.Narrow);break;case"b":case"bb":case"bbb":de=Vt(ke.DayPeriods,ht.Abbreviated,st.Standalone,!0);break;case"bbbb":de=Vt(ke.DayPeriods,ht.Wide,st.Standalone,!0);break;case"bbbbb":de=Vt(ke.DayPeriods,ht.Narrow,st.Standalone,!0);break;case"B":case"BB":case"BBB":de=Vt(ke.DayPeriods,ht.Abbreviated,st.Format,!0);break;case"BBBB":de=Vt(ke.DayPeriods,ht.Wide,st.Format,!0);break;case"BBBBB":de=Vt(ke.DayPeriods,ht.Narrow,st.Format,!0);break;case"h":de=Tt(tt.Hours,1,-12);break;case"hh":de=Tt(tt.Hours,2,-12);break;case"H":de=Tt(tt.Hours,1);break;case"HH":de=Tt(tt.Hours,2);break;case"m":de=Tt(tt.Minutes,1);break;case"mm":de=Tt(tt.Minutes,2);break;case"s":de=Tt(tt.Seconds,1);break;case"ss":de=Tt(tt.Seconds,2);break;case"S":de=Tt(tt.FractionalSeconds,1);break;case"SS":de=Tt(tt.FractionalSeconds,2);break;case"SSS":de=Tt(tt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":de=Pn(Yn.Short);break;case"ZZZZZ":de=Pn(Yn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":de=Pn(Yn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":de=Pn(Yn.Long);break;default:return null}return Bt[$]=de,de}(Hr);Li+=xi?xi(nt,q,Yr):"''"===Hr?"'":Hr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Li}function k($,de,q){const _e=new Date(0);return _e.setFullYear($,de,q),_e.setHours(0,0,0),_e}function j($,de){const q=function ln($){return(0,i.H5H)($)[i.KH2.LocaleId]}($);if(Kt[q]??={},Kt[q][de])return Kt[q][de];let _e="";switch(de){case"shortDate":_e=Fe($,vt.Short);break;case"mediumDate":_e=Fe($,vt.Medium);break;case"longDate":_e=Fe($,vt.Long);break;case"fullDate":_e=Fe($,vt.Full);break;case"shortTime":_e=Ft($,vt.Short);break;case"mediumTime":_e=Ft($,vt.Medium);break;case"longTime":_e=Ft($,vt.Long);break;case"fullTime":_e=Ft($,vt.Full);break;case"short":const nt=j($,"shortTime"),_n=j($,"shortDate");_e=De(Ke($,vt.Short),[nt,_n]);break;case"medium":const On=j($,"mediumTime"),Cr=j($,"mediumDate");_e=De(Ke($,vt.Medium),[On,Cr]);break;case"long":const Yr=j($,"longTime"),Li=j($,"longDate");_e=De(Ke($,vt.Long),[Yr,Li]);break;case"full":const Hr=j($,"fullTime"),xi=j($,"fullDate");_e=De(Ke($,vt.Full),[Hr,xi])}return _e&&(Kt[q][de]=_e),_e}function De($,de){return de&&($=$.replace(/\{([^}]+)}/g,function(q,_e){return null!=de&&_e in de?de[_e]:q})),$}function it($,de,q="-",_e,nt){let _n="";($<0||nt&&$<=0)&&(nt?$=1-$:($=-$,_n=q));let On=String($);for(;On.length<de;)On="0"+On;return _e&&(On=On.slice(On.length-de)),_n+On}function Tt($,de,q=0,_e=!1,nt=!1){return function(_n,On){let Cr=function In($,de){switch($){case tt.FullYear:return de.getFullYear();case tt.Month:return de.getMonth();case tt.Date:return de.getDate();case tt.Hours:return de.getHours();case tt.Minutes:return de.getMinutes();case tt.Seconds:return de.getSeconds();case tt.FractionalSeconds:return de.getMilliseconds();case tt.Day:return de.getDay();default:throw new Error(`Unknown DateType value "${$}".`)}}($,_n);if((q>0||Cr>-q)&&(Cr+=q),$===tt.Hours)0===Cr&&-12===q&&(Cr=12);else if($===tt.FractionalSeconds)return function ot($,de){return it($,3).substring(0,de)}(Cr,de);const Yr=dt(On,5);return it(Cr,de,Yr,_e,nt)}}function Vt($,de,q=st.Format,_e=!1){return function(nt,_n){return function dn($,de,q,_e,nt,_n){switch(q){case ke.Months:return function bn($,de,q){const _e=(0,i.H5H)($),_n=Qt([_e[i.KH2.MonthsFormat],_e[i.KH2.MonthsStandalone]],de);return Qt(_n,q)}(de,nt,_e)[$.getMonth()];case ke.Days:return function $n($,de,q){const _e=(0,i.H5H)($),_n=Qt([_e[i.KH2.DaysFormat],_e[i.KH2.DaysStandalone]],de);return Qt(_n,q)}(de,nt,_e)[$.getDay()];case ke.DayPeriods:const On=$.getHours(),Cr=$.getMinutes();if(_n){const Li=function fn($){const de=(0,i.H5H)($);return Jt(de),(de[i.KH2.ExtraData][2]||[]).map(_e=>"string"==typeof _e?an(_e):[an(_e[0]),an(_e[1])])}(de),Hr=function Gn($,de,q){const _e=(0,i.H5H)($);Jt(_e);const _n=Qt([_e[i.KH2.ExtraData][0],_e[i.KH2.ExtraData][1]],de)||[];return Qt(_n,q)||[]}(de,nt,_e),xi=Li.findIndex(Qr=>{if(Array.isArray(Qr)){const[di,Fo]=Qr,Wo=On>=di.hours&&Cr>=di.minutes,ds=On<Fo.hours||On===Fo.hours&&Cr<Fo.minutes;if(di.hours<Fo.hours){if(Wo&&ds)return!0}else if(Wo||ds)return!0}else if(Qr.hours===On&&Qr.minutes===Cr)return!0;return!1});if(-1!==xi)return Hr[xi]}return function yn($,de,q){const _e=(0,i.H5H)($),_n=Qt([_e[i.KH2.DayPeriodsFormat],_e[i.KH2.DayPeriodsStandalone]],de);return Qt(_n,q)}(de,nt,_e)[On<12?0:1];case ke.Eras:return function Qe($,de){return Qt((0,i.H5H)($)[i.KH2.Eras],de)}(de,_e)[$.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${q}`)}}(nt,_n,$,de,q,_e)}}function Pn($){return function(de,q,_e){const nt=-1*_e,_n=dt(q,5),On=nt>0?Math.floor(nt/60):Math.ceil(nt/60);switch($){case Yn.Short:return(nt>=0?"+":"")+it(On,2,_n)+it(Math.abs(nt%60),2,_n);case Yn.ShortGMT:return"GMT"+(nt>=0?"+":"")+it(On,1,_n);case Yn.Long:return"GMT"+(nt>=0?"+":"")+it(On,2,_n)+":"+it(Math.abs(nt%60),2,_n);case Yn.Extended:return 0===_e?"Z":(nt>=0?"+":"")+it(On,2,_n)+":"+it(Math.abs(nt%60),2,_n);default:throw new Error(`Unknown zone width "${$}"`)}}}const Fn=0,Bn=4;function Jr($){const de=$.getDay(),q=0===de?-3:Bn-de;return k($.getFullYear(),$.getMonth(),$.getDate()+q)}function Xr($,de=!1){return function(q,_e){let nt;if(de){const _n=new Date(q.getFullYear(),q.getMonth(),1).getDay()-1,On=q.getDate();nt=1+Math.floor((On+_n)/7)}else{const _n=Jr(q),On=function cr($){const de=k($,Fn,1).getDay();return k($,0,1+(de<=Bn?Bn:Bn+7)-de)}(_n.getFullYear()),Cr=_n.getTime()-On.getTime();nt=1+Math.round(Cr/6048e5)}return it(nt,$,dt(_e,5))}}function _t($,de=!1){return function(q,_e){return it(Jr(q).getFullYear(),$,dt(_e,5),de)}}const Bt={};function lt($,de){$=$.replace(/:/g,"");const q=Date.parse("Jan 01, 1970 00:00:00 "+$)/6e4;return isNaN(q)?de:q}function mn($){return $ instanceof Date&&!isNaN($.valueOf())}const or=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ao($){const de=parseInt($);if(isNaN(de))throw new Error("Invalid integer literal when parsing "+$);return de}function eo($,de){de=encodeURIComponent(de);for(const q of $.split(";")){const _e=q.indexOf("="),[nt,_n]=-1==_e?[q,""]:[q.slice(0,_e),q.slice(_e+1)];if(nt.trim()===de)return decodeURIComponent(_n)}return null}const oo=/\s+/,Bi=[];let Mo=(()=>{class ${_ngEl;_renderer;initialClasses=Bi;rawClass;stateMap=new Map;constructor(q,_e){this._ngEl=q,this._renderer=_e}set klass(q){this.initialClasses=null!=q?q.trim().split(oo):Bi}set ngClass(q){this.rawClass="string"==typeof q?q.trim().split(oo):q}ngDoCheck(){for(const _e of this.initialClasses)this._updateState(_e,!0);const q=this.rawClass;if(Array.isArray(q)||q instanceof Set)for(const _e of q)this._updateState(_e,!0);else if(null!=q)for(const _e of Object.keys(q))this._updateState(_e,!!q[_e]);this._applyStateDiff()}_updateState(q,_e){const nt=this.stateMap.get(q);void 0!==nt?(nt.enabled!==_e&&(nt.changed=!0,nt.enabled=_e),nt.touched=!0):this.stateMap.set(q,{enabled:_e,changed:!0,touched:!0})}_applyStateDiff(){for(const q of this.stateMap){const _e=q[0],nt=q[1];nt.changed?(this._toggleClass(_e,nt.enabled),nt.changed=!1):nt.touched||(nt.enabled&&this._toggleClass(_e,!1),this.stateMap.delete(_e)),nt.touched=!1}}_toggleClass(q,_e){(q=q.trim()).length>0&&q.split(oo).forEach(nt=>{_e?this._renderer.addClass(this._ngEl.nativeElement,nt):this._renderer.removeClass(this._ngEl.nativeElement,nt)})}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.aKT),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:$,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return $})();class Et{$implicit;ngForOf;index;count;constructor(de,q,_e,nt){this.$implicit=de,this.ngForOf=q,this.index=_e,this.count=nt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ve=(()=>{class ${_viewContainer;_template;_differs;set ngForOf(q){this._ngForOf=q,this._ngForOfDirty=!0}set ngForTrackBy(q){this._trackByFn=q}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(q,_e,nt){this._viewContainer=q,this._template=_e,this._differs=nt}set ngForTemplate(q){q&&(this._template=q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const q=this._ngForOf;!this._differ&&q&&(this._differ=this._differs.find(q).create(this.ngForTrackBy))}if(this._differ){const q=this._differ.diff(this._ngForOf);q&&this._applyChanges(q)}}_applyChanges(q){const _e=this._viewContainer;q.forEachOperation((nt,_n,On)=>{if(null==nt.previousIndex)_e.createEmbeddedView(this._template,new Et(nt.item,this._ngForOf,-1,-1),null===On?void 0:On);else if(null==On)_e.remove(null===_n?void 0:_n);else if(null!==_n){const Cr=_e.get(_n);_e.move(Cr,On),et(Cr,nt)}});for(let nt=0,_n=_e.length;nt<_n;nt++){const Cr=_e.get(nt).context;Cr.index=nt,Cr.count=_n,Cr.ngForOf=this._ngForOf}q.forEachIdentityChange(nt=>{et(_e.get(nt.currentIndex),nt)})}static ngTemplateContextGuard(q,_e){return!0}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))};static \u0275dir=i.FsC({type:$,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return $})();function et($,de){$.context.$implicit=de.item}let pt=(()=>{class ${_viewContainer;_context=new $t;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(q,_e){this._viewContainer=q,this._thenTemplateRef=_e}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){Mt("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){Mt("ngIfElse",q),this._elseTemplateRef=q,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(q,_e){return!0}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b),i.rXU(i.C4Q))};static \u0275dir=i.FsC({type:$,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return $})();class $t{$implicit=null;ngIf=null}function Mt($,de){if(de&&!de.createEmbeddedView)throw new Error(`${$} must be a TemplateRef, but received '${(0,i.Tbb)(de)}'.`)}let mr=(()=>{class ${_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(q,_e,nt){this._ngEl=q,this._differs=_e,this._renderer=nt}set ngStyle(q){this._ngStyle=q,!this._differ&&q&&(this._differ=this._differs.find(q).create())}ngDoCheck(){if(this._differ){const q=this._differ.diff(this._ngStyle);q&&this._applyChanges(q)}}_setStyle(q,_e){const[nt,_n]=q.split("."),On=-1===nt.indexOf("-")?void 0:i.czy.DashCase;null!=_e?this._renderer.setStyle(this._ngEl.nativeElement,nt,_n?`${_e}${_n}`:_e,On):this._renderer.removeStyle(this._ngEl.nativeElement,nt,On)}_applyChanges(q){q.forEachRemovedItem(_e=>this._setStyle(_e.key,null)),q.forEachAddedItem(_e=>this._setStyle(_e.key,_e.currentValue)),q.forEachChangedItem(_e=>this._setStyle(_e.key,_e.currentValue))}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:$,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return $})(),bi=(()=>{class ${_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(q){this._viewContainerRef=q}ngOnChanges(q){if(this._shouldRecreateView(q)){const _e=this._viewContainerRef;if(this._viewRef&&_e.remove(_e.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const nt=this._createContextForwardProxy();this._viewRef=_e.createEmbeddedView(this.ngTemplateOutlet,nt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(q){return!!q.ngTemplateOutlet||!!q.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(q,_e,nt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,_e,nt),get:(q,_e,nt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,_e,nt)}})}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:$,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return $})();function gr($,de){return new i.wOt(2100,!1)}class ai{createSubscription(de,q){return(0,i.O8t)(()=>de.subscribe({next:q,error:_e=>{throw _e}}))}dispose(de){(0,i.O8t)(()=>de.unsubscribe())}}class yo{createSubscription(de,q){return de.then(q,_e=>{throw _e})}dispose(de){}}const $r=new yo,Ki=new ai;let ls=(()=>{class ${_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(q){this._ref=q}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(q){if(!this._obj){if(q)try{this.markForCheckOnValueUpdate=!1,this._subscribe(q)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return q!==this._obj?(this._dispose(),this.transform(q)):this._latestValue}_subscribe(q){this._obj=q,this._strategy=this._selectStrategy(q),this._subscription=this._strategy.createSubscription(q,_e=>this._updateLatestValue(q,_e))}_selectStrategy(q){if((0,i.jNT)(q))return $r;if((0,i.zjR)(q))return Ki;throw gr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,_e){q===this._obj&&(this._latestValue=_e,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"async",type:$,pure:!1})}return $})();const na=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Sr=(()=>{class ${transform(q){if(null==q)return null;if("string"!=typeof q)throw gr();return q.replace(na,_e=>_e[0].toUpperCase()+_e.slice(1).toLowerCase())}static \u0275fac=function(_e){return new(_e||$)};static \u0275pipe=i.EJ8({name:"titlecase",type:$,pure:!0})}return $})();const Eo=new i.nKC(""),Rs=new i.nKC("");let Ns=(()=>{class ${locale;defaultTimezone;defaultOptions;constructor(q,_e,nt){this.locale=q,this.defaultTimezone=_e,this.defaultOptions=nt}transform(q,_e,nt,_n){if(null==q||""===q||q!=q)return null;try{return B(q,_e??this.defaultOptions?.dateFormat??"mediumDate",_n||this.locale,nt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(On){throw gr()}}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.xe9,16),i.rXU(Eo,24),i.rXU(Rs,24))};static \u0275pipe=i.EJ8({name:"date",type:$,pure:!0})}return $})(),rs=(()=>{class ${_locale;constructor(q){this._locale=q}transform(q,_e,nt){if(!function Wi($){return!(null==$||""===$||$!=$)}(q))return null;nt||=this._locale;try{return function fo($,de,q){return function Wt($,de,q,_e,nt,_n,On=!1){let Cr="",Yr=!1;if(isFinite($)){let Li=function oi($){let _e,nt,_n,On,Cr,de=Math.abs($)+"",q=0;for((nt=de.indexOf("."))>-1&&(de=de.replace(".","")),(_n=de.search(/e/i))>0?(nt<0&&(nt=_n),nt+=+de.slice(_n+1),de=de.substring(0,_n)):nt<0&&(nt=de.length),_n=0;"0"===de.charAt(_n);_n++);if(_n===(Cr=de.length))_e=[0],nt=1;else{for(Cr--;"0"===de.charAt(Cr);)Cr--;for(nt-=_n,_e=[],On=0;_n<=Cr;_n++,On++)_e[On]=Number(de.charAt(_n))}return nt>22&&(_e=_e.splice(0,21),q=nt-1,nt=1),{digits:_e,exponent:q,integerLen:nt}}($);On&&(Li=function Uo($){if(0===$.digits[0])return $;const de=$.digits.length-$.integerLen;return $.exponent?$.exponent+=2:(0===de?$.digits.push(0,0):1===de&&$.digits.push(0),$.integerLen+=2),$}(Li));let Hr=de.minInt,xi=de.minFrac,Qr=de.maxFrac;if(_n){const ks=_n.match(or);if(null===ks)throw new Error(`${_n} is not a valid digit info`);const Tl=ks[1],Da=ks[3],Xs=ks[5];null!=Tl&&(Hr=ao(Tl)),null!=Da&&(xi=ao(Da)),null!=Xs?Qr=ao(Xs):null!=Da&&xi>Qr&&(Qr=xi)}!function ts($,de,q){if(de>q)throw new Error(`The minimum number of digits after fraction (${de}) is higher than the maximum (${q}).`);let _e=$.digits,nt=_e.length-$.integerLen;const _n=Math.min(Math.max(de,nt),q);let On=_n+$.integerLen,Cr=_e[On];if(On>0){_e.splice(Math.max($.integerLen,On));for(let xi=On;xi<_e.length;xi++)_e[xi]=0}else{nt=Math.max(0,nt),$.integerLen=1,_e.length=Math.max(1,On=_n+1),_e[0]=0;for(let xi=1;xi<On;xi++)_e[xi]=0}if(Cr>=5)if(On-1<0){for(let xi=0;xi>On;xi--)_e.unshift(0),$.integerLen++;_e.unshift(1),$.integerLen++}else _e[On-1]++;for(;nt<Math.max(0,_n);nt++)_e.push(0);let Yr=0!==_n;const Li=de+$.integerLen,Hr=_e.reduceRight(function(xi,Qr,di,Fo){return Fo[di]=(Qr+=xi)<10?Qr:Qr-10,Yr&&(0===Fo[di]&&di>=Li?Fo.pop():Yr=!1),Qr>=10?1:0},0);Hr&&(_e.unshift(Hr),$.integerLen++)}(Li,xi,Qr);let di=Li.digits,Fo=Li.integerLen;const Wo=Li.exponent;let ds=[];for(Yr=di.every(ks=>!ks);Fo<Hr;Fo++)di.unshift(0);for(;Fo<0;Fo++)di.unshift(0);Fo>0?ds=di.splice(Fo,di.length):(ds=di,di=[0]);const jo=[];for(di.length>=de.lgSize&&jo.unshift(di.splice(-de.lgSize,di.length).join(""));di.length>de.gSize;)jo.unshift(di.splice(-de.gSize,di.length).join(""));di.length&&jo.unshift(di.join("")),Cr=jo.join(dt(q,_e)),ds.length&&(Cr+=dt(q,nt)+ds.join("")),Wo&&(Cr+=dt(q,6)+"+"+Wo)}else Cr=dt(q,9);return Cr=$<0&&!Yr?de.negPre+Cr+de.negSuf:de.posPre+Cr+de.posSuf,Cr}($,function Oi($,de="-"){const q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},_e=$.split(";"),nt=_e[0],_n=_e[1],On=-1!==nt.indexOf(".")?nt.split("."):[nt.substring(0,nt.lastIndexOf("0")+1),nt.substring(nt.lastIndexOf("0")+1)],Cr=On[0],Yr=On[1]||"";q.posPre=Cr.substring(0,Cr.indexOf("#"));for(let Hr=0;Hr<Yr.length;Hr++){const xi=Yr.charAt(Hr);"0"===xi?q.minFrac=q.maxFrac=Hr+1:"#"===xi?q.maxFrac=Hr+1:q.posSuf+=xi}const Li=Cr.split(",");if(q.gSize=Li[1]?Li[1].length:0,q.lgSize=Li[2]||Li[1]?(Li[2]||Li[1]).length:0,_n){const Hr=nt.length-q.posPre.length-q.posSuf.length,xi=_n.indexOf("#");q.negPre=_n.substring(0,xi).replace(/'/g,""),q.negSuf=_n.slice(xi+Hr).replace(/'/g,"")}else q.negPre=de+q.posPre,q.negSuf=q.posSuf;return q}(function Ge($,de){return(0,i.H5H)($)[i.KH2.NumberFormats][de]}(de,Ie.Decimal),dt(de,5)),de,1,0,q)}(function ws($){if("string"==typeof $&&!isNaN(Number($)-parseFloat($)))return Number($);if("number"!=typeof $)throw new Error(`${$} is not a number`);return $}(q),nt,_e)}catch(_n){throw gr()}}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.xe9,16))};static \u0275pipe=i.EJ8({name:"number",type:$,pure:!0})}return $})();let tr=(()=>{class ${static \u0275fac=function(_e){return new(_e||$)};static \u0275mod=i.$C({type:$});static \u0275inj=i.G2t({})}return $})();const xo="browser",os="server";function Ms($){return $===xo}function Ps($){return $===os}let Yo=(()=>{class ${static \u0275prov=(0,i.jDH)({token:$,providedIn:"root",factory:()=>Ms((0,i.WQX)(i.Agw))?new Ai((0,i.WQX)(S),window):new bl})}return $})();class Ai{document;window;offset=()=>[0,0];constructor(de,q){this.document=de,this.window=q}setOffset(de){this.offset=Array.isArray(de)?()=>de:de}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(de){this.window.scrollTo(de[0],de[1])}scrollToAnchor(de){const q=function ia($,de){const q=$.getElementById(de)||$.getElementsByName(de)[0];if(q)return q;if("function"==typeof $.createTreeWalker&&$.body&&"function"==typeof $.body.attachShadow){const _e=$.createTreeWalker($.body,NodeFilter.SHOW_ELEMENT);let nt=_e.currentNode;for(;nt;){const _n=nt.shadowRoot;if(_n){const On=_n.getElementById(de)||_n.querySelector(`[name="${de}"]`);if(On)return On}nt=_e.nextNode()}}return null}(this.document,de);q&&(this.scrollToElement(q),q.focus())}setHistoryScrollRestoration(de){this.window.history.scrollRestoration=de}scrollToElement(de){const q=de.getBoundingClientRect(),_e=q.left+this.window.pageXOffset,nt=q.top+this.window.pageYOffset,_n=this.offset();this.window.scrollTo(_e-_n[0],nt-_n[1])}}class bl{setOffset(de){}getScrollPosition(){return[0,0]}scrollToPosition(de){}scrollToAnchor(de){}setHistoryScrollRestoration(de){}}class Qo{}},1626:(o,s,r)=>{"use strict";r.d(s,{$R:()=>Pe,Nl:()=>Ce,Qq:()=>Ft,b$:()=>kt,cS:()=>$n,yz:()=>bn});var i=r(467),a=r(4438),c=r(7673),y=r(1985),w=r(6648),C=r(274),T=r(5964),S=r(6354),A=r(980),I=r(5558),N=r(177);class G{}class Z{}class te{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(ct){ct?"string"==typeof ct?this.lazyInit=()=>{this.headers=new Map,ct.split("\n").forEach(Et=>{const ve=Et.indexOf(":");if(ve>0){const et=Et.slice(0,ve),Oe=Et.slice(ve+1).trim();this.addHeaderEntry(et,Oe)}})}:typeof Headers<"u"&&ct instanceof Headers?(this.headers=new Map,ct.forEach((Et,ve)=>{this.addHeaderEntry(ve,Et)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ct).forEach(([Et,ve])=>{this.setHeaderEntries(Et,ve)})}:this.headers=new Map}has(ct){return this.init(),this.headers.has(ct.toLowerCase())}get(ct){this.init();const Et=this.headers.get(ct.toLowerCase());return Et&&Et.length>0?Et[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ct){return this.init(),this.headers.get(ct.toLowerCase())||null}append(ct,Et){return this.clone({name:ct,value:Et,op:"a"})}set(ct,Et){return this.clone({name:ct,value:Et,op:"s"})}delete(ct,Et){return this.clone({name:ct,value:Et,op:"d"})}maybeSetNormalizedName(ct,Et){this.normalizedNames.has(Et)||this.normalizedNames.set(Et,ct)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ct=>this.applyUpdate(ct)),this.lazyUpdate=null))}copyFrom(ct){ct.init(),Array.from(ct.headers.keys()).forEach(Et=>{this.headers.set(Et,ct.headers.get(Et)),this.normalizedNames.set(Et,ct.normalizedNames.get(Et))})}clone(ct){const Et=new te;return Et.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,Et.lazyUpdate=(this.lazyUpdate||[]).concat([ct]),Et}applyUpdate(ct){const Et=ct.name.toLowerCase();switch(ct.op){case"a":case"s":let ve=ct.value;if("string"==typeof ve&&(ve=[ve]),0===ve.length)return;this.maybeSetNormalizedName(ct.name,Et);const et=("a"===ct.op?this.headers.get(Et):void 0)||[];et.push(...ve),this.headers.set(Et,et);break;case"d":const Oe=ct.value;if(Oe){let pt=this.headers.get(Et);if(!pt)return;pt=pt.filter($t=>-1===Oe.indexOf($t)),0===pt.length?(this.headers.delete(Et),this.normalizedNames.delete(Et)):this.headers.set(Et,pt)}else this.headers.delete(Et),this.normalizedNames.delete(Et)}}addHeaderEntry(ct,Et){const ve=ct.toLowerCase();this.maybeSetNormalizedName(ct,ve),this.headers.has(ve)?this.headers.get(ve).push(Et):this.headers.set(ve,[Et])}setHeaderEntries(ct,Et){const ve=(Array.isArray(Et)?Et:[Et]).map(Oe=>Oe.toString()),et=ct.toLowerCase();this.headers.set(et,ve),this.maybeSetNormalizedName(ct,et)}forEach(ct){this.init(),Array.from(this.normalizedNames.keys()).forEach(Et=>ct(this.normalizedNames.get(Et),this.headers.get(Et)))}}class me{encodeKey(ct){return Re(ct)}encodeValue(ct){return Re(ct)}decodeKey(ct){return decodeURIComponent(ct)}decodeValue(ct){return decodeURIComponent(ct)}}const Te=/%(\d[a-f0-9])/gi,xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Re(Je){return encodeURIComponent(Je).replace(Te,(ct,Et)=>xe[Et]??ct)}function Me(Je){return`${Je}`}class Ce{map;encoder;updates=null;cloneFrom=null;constructor(ct={}){if(this.encoder=ct.encoder||new me,ct.fromString){if(ct.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pe(Je,ct){const Et=new Map;return Je.length>0&&Je.replace(/^\?/,"").split("&").forEach(et=>{const Oe=et.indexOf("="),[pt,$t]=-1==Oe?[ct.decodeKey(et),""]:[ct.decodeKey(et.slice(0,Oe)),ct.decodeValue(et.slice(Oe+1))],Mt=Et.get(pt)||[];Mt.push($t),Et.set(pt,Mt)}),Et}(ct.fromString,this.encoder)}else ct.fromObject?(this.map=new Map,Object.keys(ct.fromObject).forEach(Et=>{const ve=ct.fromObject[Et],et=Array.isArray(ve)?ve.map(Me):[Me(ve)];this.map.set(Et,et)})):this.map=null}has(ct){return this.init(),this.map.has(ct)}get(ct){this.init();const Et=this.map.get(ct);return Et?Et[0]:null}getAll(ct){return this.init(),this.map.get(ct)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ct,Et){return this.clone({param:ct,value:Et,op:"a"})}appendAll(ct){const Et=[];return Object.keys(ct).forEach(ve=>{const et=ct[ve];Array.isArray(et)?et.forEach(Oe=>{Et.push({param:ve,value:Oe,op:"a"})}):Et.push({param:ve,value:et,op:"a"})}),this.clone(Et)}set(ct,Et){return this.clone({param:ct,value:Et,op:"s"})}delete(ct,Et){return this.clone({param:ct,value:Et,op:"d"})}toString(){return this.init(),this.keys().map(ct=>{const Et=this.encoder.encodeKey(ct);return this.map.get(ct).map(ve=>Et+"="+this.encoder.encodeValue(ve)).join("&")}).filter(ct=>""!==ct).join("&")}clone(ct){const Et=new Ce({encoder:this.encoder});return Et.cloneFrom=this.cloneFrom||this,Et.updates=(this.updates||[]).concat(ct),Et}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ct=>this.map.set(ct,this.cloneFrom.map.get(ct))),this.updates.forEach(ct=>{switch(ct.op){case"a":case"s":const Et=("a"===ct.op?this.map.get(ct.param):void 0)||[];Et.push(Me(ct.value)),this.map.set(ct.param,Et);break;case"d":if(void 0===ct.value){this.map.delete(ct.param);break}{let ve=this.map.get(ct.param)||[];const et=ve.indexOf(Me(ct.value));-1!==et&&ve.splice(et,1),ve.length>0?this.map.set(ct.param,ve):this.map.delete(ct.param)}}}),this.cloneFrom=this.updates=null)}}class ae{map=new Map;set(ct,Et){return this.map.set(ct,Et),this}get(ct){return this.map.has(ct)||this.map.set(ct,ct.defaultValue()),this.map.get(ct)}delete(ct){return this.map.delete(ct),this}has(ct){return this.map.has(ct)}keys(){return this.map.keys()}}function $e(Je){return typeof ArrayBuffer<"u"&&Je instanceof ArrayBuffer}function st(Je){return typeof Blob<"u"&&Je instanceof Blob}function ht(Je){return typeof FormData<"u"&&Je instanceof FormData}class at{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(ct,Et,ve,et){let Oe;if(this.url=Et,this.method=ct.toUpperCase(),function Ie(Je){switch(Je){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||et?(this.body=void 0!==ve?ve:null,Oe=et):Oe=ve,Oe&&(this.reportProgress=!!Oe.reportProgress,this.withCredentials=!!Oe.withCredentials,Oe.responseType&&(this.responseType=Oe.responseType),Oe.headers&&(this.headers=Oe.headers),Oe.context&&(this.context=Oe.context),Oe.params&&(this.params=Oe.params),this.transferCache=Oe.transferCache),this.headers??=new te,this.context??=new ae,this.params){const pt=this.params.toString();if(0===pt.length)this.urlWithParams=Et;else{const $t=Et.indexOf("?");this.urlWithParams=Et+(-1===$t?"?":$t<Et.length-1?"&":"")+pt}}else this.params=new Ce,this.urlWithParams=Et}serializeBody(){return null===this.body?null:"string"==typeof this.body||$e(this.body)||st(this.body)||ht(this.body)||function vt(Je){return typeof URLSearchParams<"u"&&Je instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Ce?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ht(this.body)?null:st(this.body)?this.body.type||null:$e(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ce?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ct={}){const Et=ct.method||this.method,ve=ct.url||this.url,et=ct.responseType||this.responseType,Oe=ct.transferCache??this.transferCache,pt=void 0!==ct.body?ct.body:this.body,$t=ct.withCredentials??this.withCredentials,Mt=ct.reportProgress??this.reportProgress;let un=ct.headers||this.headers,Cn=ct.params||this.params;const Sn=ct.context??this.context;return void 0!==ct.setHeaders&&(un=Object.keys(ct.setHeaders).reduce((kn,Un)=>kn.set(Un,ct.setHeaders[Un]),un)),ct.setParams&&(Cn=Object.keys(ct.setParams).reduce((kn,Un)=>kn.set(Un,ct.setParams[Un]),Cn)),new at(Et,ve,pt,{params:Cn,headers:un,context:Sn,reportProgress:Mt,responseType:et,withCredentials:$t,transferCache:Oe})}}var Xt=function(Je){return Je[Je.Sent=0]="Sent",Je[Je.UploadProgress=1]="UploadProgress",Je[Je.ResponseHeader=2]="ResponseHeader",Je[Je.DownloadProgress=3]="DownloadProgress",Je[Je.Response=4]="Response",Je[Je.User=5]="User",Je}(Xt||{});class ln{headers;status;statusText;url;ok;type;constructor(ct,Et=200,ve="OK"){this.headers=ct.headers||new te,this.status=void 0!==ct.status?ct.status:Et,this.statusText=ct.statusText||ve,this.url=ct.url||null,this.ok=this.status>=200&&this.status<300}}class yn extends ln{constructor(ct={}){super(ct)}type=Xt.ResponseHeader;clone(ct={}){return new yn({headers:ct.headers||this.headers,status:void 0!==ct.status?ct.status:this.status,statusText:ct.statusText||this.statusText,url:ct.url||this.url||void 0})}}class $n extends ln{body;constructor(ct={}){super(ct),this.body=void 0!==ct.body?ct.body:null}type=Xt.Response;clone(ct={}){return new $n({body:void 0!==ct.body?ct.body:this.body,headers:ct.headers||this.headers,status:void 0!==ct.status?ct.status:this.status,statusText:ct.statusText||this.statusText,url:ct.url||this.url||void 0})}}class bn extends ln{name="HttpErrorResponse";message;error;ok=!1;constructor(ct){super(ct,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ct.url||"(unknown url)"}`:`Http failure response for ${ct.url||"(unknown url)"}: ${ct.status} ${ct.statusText}`,this.error=ct.error||null}}function Fe(Je,ct){return{body:ct,headers:Je.headers,context:Je.context,observe:Je.observe,params:Je.params,reportProgress:Je.reportProgress,responseType:Je.responseType,withCredentials:Je.withCredentials,transferCache:Je.transferCache}}let Ft=(()=>{class Je{handler;constructor(Et){this.handler=Et}request(Et,ve,et={}){let Oe;if(Et instanceof at)Oe=Et;else{let Mt,un;Mt=et.headers instanceof te?et.headers:new te(et.headers),et.params&&(un=et.params instanceof Ce?et.params:new Ce({fromObject:et.params})),Oe=new at(Et,ve,void 0!==et.body?et.body:null,{headers:Mt,context:et.context,params:un,reportProgress:et.reportProgress,responseType:et.responseType||"json",withCredentials:et.withCredentials,transferCache:et.transferCache})}const pt=(0,c.of)(Oe).pipe((0,C.H)(Mt=>this.handler.handle(Mt)));if(Et instanceof at||"events"===et.observe)return pt;const $t=pt.pipe((0,T.p)(Mt=>Mt instanceof $n));switch(et.observe||"body"){case"body":switch(Oe.responseType){case"arraybuffer":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&!(Mt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Mt.body}));case"blob":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&!(Mt.body instanceof Blob))throw new Error("Response is not a Blob.");return Mt.body}));case"text":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&"string"!=typeof Mt.body)throw new Error("Response is not a string.");return Mt.body}));default:return $t.pipe((0,S.T)(Mt=>Mt.body))}case"response":return $t;default:throw new Error(`Unreachable: unhandled observe type ${et.observe}}`)}}delete(Et,ve={}){return this.request("DELETE",Et,ve)}get(Et,ve={}){return this.request("GET",Et,ve)}head(Et,ve={}){return this.request("HEAD",Et,ve)}jsonp(Et,ve){return this.request("JSONP",Et,{params:(new Ce).append(ve,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Et,ve={}){return this.request("OPTIONS",Et,ve)}patch(Et,ve,et={}){return this.request("PATCH",Et,Fe(et,ve))}post(Et,ve,et={}){return this.request("POST",Et,Fe(et,ve))}put(Et,ve,et={}){return this.request("PUT",Et,Fe(et,ve))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(G))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const Ke=/^\)\]\}',?\n/;function Ge(Je){if(Je.url)return Je.url;const ct="X-Request-URL".toLocaleLowerCase();return Je.headers.get(ct)}let He=(()=>{class Je{fetchImpl=(0,a.WQX)(mt,{optional:!0})?.fetch??((...Et)=>globalThis.fetch(...Et));ngZone=(0,a.WQX)(a.SKi);handle(Et){return new y.c(ve=>{const et=new AbortController;return this.doRequest(Et,et.signal,ve).then(se,Oe=>ve.error(new bn({error:Oe}))),()=>et.abort()})}doRequest(Et,ve,et){var Oe=this;return(0,i.A)(function*(){const pt=Oe.createRequestInit(Et);let $t;try{const Jn=Oe.ngZone.runOutsideAngular(()=>Oe.fetchImpl(Et.urlWithParams,{signal:ve,...pt}));(function Ze(Je){Je.then(se,se)})(Jn),et.next({type:Xt.Sent}),$t=yield Jn}catch(Jn){return void et.error(new bn({error:Jn,status:Jn.status??0,statusText:Jn.statusText,url:Et.urlWithParams,headers:Jn.headers}))}const Mt=new te($t.headers),un=$t.statusText,Cn=Ge($t)??Et.urlWithParams;let Sn=$t.status,kn=null;if(Et.reportProgress&&et.next(new yn({headers:Mt,status:Sn,statusText:un,url:Cn})),$t.body){const Jn=$t.headers.get("content-length"),sr=[],kr=$t.body.getReader();let bi,si,mr=0;const gr=typeof Zone<"u"&&Zone.current;yield Oe.ngZone.runOutsideAngular((0,i.A)(function*(){for(;;){const{done:yo,value:$r}=yield kr.read();if(yo)break;if(sr.push($r),mr+=$r.length,Et.reportProgress){si="text"===Et.responseType?(si??"")+(bi??=new TextDecoder).decode($r,{stream:!0}):void 0;const Ki=()=>et.next({type:Xt.DownloadProgress,total:Jn?+Jn:void 0,loaded:mr,partialText:si});gr?gr.run(Ki):Ki()}}}));const ai=Oe.concatChunks(sr,mr);try{const yo=$t.headers.get("Content-Type")??"";kn=Oe.parseBody(Et,ai,yo)}catch(yo){return void et.error(new bn({error:yo,headers:new te($t.headers),status:$t.status,statusText:$t.statusText,url:Ge($t)??Et.urlWithParams}))}}0===Sn&&(Sn=kn?200:0),Sn>=200&&Sn<300?(et.next(new $n({body:kn,headers:Mt,status:Sn,statusText:un,url:Cn})),et.complete()):et.error(new bn({error:kn,headers:Mt,status:Sn,statusText:un,url:Cn}))})()}parseBody(Et,ve,et){switch(Et.responseType){case"json":const Oe=(new TextDecoder).decode(ve).replace(Ke,"");return""===Oe?null:JSON.parse(Oe);case"text":return(new TextDecoder).decode(ve);case"blob":return new Blob([ve],{type:et});case"arraybuffer":return ve.buffer}}createRequestInit(Et){const ve={},et=Et.withCredentials?"include":void 0;if(Et.headers.forEach((Oe,pt)=>ve[Oe]=pt.join(",")),Et.headers.has("Accept")||(ve.Accept="application/json, text/plain, */*"),!Et.headers.has("Content-Type")){const Oe=Et.detectContentTypeHeader();null!==Oe&&(ve["Content-Type"]=Oe)}return{body:Et.serializeBody(),method:Et.method,headers:ve,credentials:et}}concatChunks(Et,ve){const et=new Uint8Array(ve);let Oe=0;for(const pt of Et)et.set(pt,Oe),Oe+=pt.length;return et}static \u0275fac=function(ve){return new(ve||Je)};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();class mt{}function se(){}function Rt(Je,ct){return ct(Je)}const Nt=new a.nKC(""),Qt=new a.nKC(""),an=new a.nKC("",{providedIn:"root",factory:()=>!0});let At=(()=>{class Je extends G{backend;injector;chain=null;pendingTasks=(0,a.WQX)(a.TgB);contributeToStability=(0,a.WQX)(an);constructor(Et,ve){super(),this.backend=Et,this.injector=ve}handle(Et){if(null===this.chain){const ve=Array.from(new Set([...this.injector.get(Nt),...this.injector.get(Qt,[])]));this.chain=ve.reduceRight((et,Oe)=>function fn(Je,ct,Et){return(ve,et)=>(0,a.N4e)(Et,()=>ct(ve,Oe=>Je(Oe,et)))}(et,Oe,this.injector),Rt)}if(this.contributeToStability){const ve=this.pendingTasks.add();return this.chain(Et,et=>this.backend.handle(et)).pipe((0,A.j)(()=>this.pendingTasks.remove(ve)))}return this.chain(Et,ve=>this.backend.handle(ve))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(Z),a.KVO(a.uvJ))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const Tt=/^\)\]\}',?\n/;let Vt=(()=>{class Je{xhrFactory;constructor(Et){this.xhrFactory=Et}handle(Et){if("JSONP"===Et.method)throw new a.wOt(-2800,!1);const ve=this.xhrFactory;return(ve.\u0275loadImpl?(0,w.H)(ve.\u0275loadImpl()):(0,c.of)(null)).pipe((0,I.n)(()=>new y.c(Oe=>{const pt=ve.build();if(pt.open(Et.method,Et.urlWithParams),Et.withCredentials&&(pt.withCredentials=!0),Et.headers.forEach((sr,kr)=>pt.setRequestHeader(sr,kr.join(","))),Et.headers.has("Accept")||pt.setRequestHeader("Accept","application/json, text/plain, */*"),!Et.headers.has("Content-Type")){const sr=Et.detectContentTypeHeader();null!==sr&&pt.setRequestHeader("Content-Type",sr)}if(Et.responseType){const sr=Et.responseType.toLowerCase();pt.responseType="json"!==sr?sr:"text"}const $t=Et.serializeBody();let Mt=null;const un=()=>{if(null!==Mt)return Mt;const sr=pt.statusText||"OK",kr=new te(pt.getAllResponseHeaders()),mr=function In(Je){return"responseURL"in Je&&Je.responseURL?Je.responseURL:/^X-Request-URL:/m.test(Je.getAllResponseHeaders())?Je.getResponseHeader("X-Request-URL"):null}(pt)||Et.url;return Mt=new yn({headers:kr,status:pt.status,statusText:sr,url:mr}),Mt},Cn=()=>{let{headers:sr,status:kr,statusText:mr,url:bi}=un(),si=null;204!==kr&&(si=typeof pt.response>"u"?pt.responseText:pt.response),0===kr&&(kr=si?200:0);let gr=kr>=200&&kr<300;if("json"===Et.responseType&&"string"==typeof si){const ai=si;si=si.replace(Tt,"");try{si=""!==si?JSON.parse(si):null}catch(yo){si=ai,gr&&(gr=!1,si={error:yo,text:si})}}gr?(Oe.next(new $n({body:si,headers:sr,status:kr,statusText:mr,url:bi||void 0})),Oe.complete()):Oe.error(new bn({error:si,headers:sr,status:kr,statusText:mr,url:bi||void 0}))},Sn=sr=>{const{url:kr}=un(),mr=new bn({error:sr,status:pt.status||0,statusText:pt.statusText||"Unknown Error",url:kr||void 0});Oe.error(mr)};let kn=!1;const Un=sr=>{kn||(Oe.next(un()),kn=!0);let kr={type:Xt.DownloadProgress,loaded:sr.loaded};sr.lengthComputable&&(kr.total=sr.total),"text"===Et.responseType&&pt.responseText&&(kr.partialText=pt.responseText),Oe.next(kr)},Jn=sr=>{let kr={type:Xt.UploadProgress,loaded:sr.loaded};sr.lengthComputable&&(kr.total=sr.total),Oe.next(kr)};return pt.addEventListener("load",Cn),pt.addEventListener("error",Sn),pt.addEventListener("timeout",Sn),pt.addEventListener("abort",Sn),Et.reportProgress&&(pt.addEventListener("progress",Un),null!==$t&&pt.upload&&pt.upload.addEventListener("progress",Jn)),pt.send($t),Oe.next({type:Xt.Sent}),()=>{pt.removeEventListener("error",Sn),pt.removeEventListener("abort",Sn),pt.removeEventListener("load",Cn),pt.removeEventListener("timeout",Sn),Et.reportProgress&&(pt.removeEventListener("progress",Un),null!==$t&&pt.upload&&pt.upload.removeEventListener("progress",Jn)),pt.readyState!==pt.DONE&&pt.abort()}})))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(N.N0))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const dn=new a.nKC(""),Fn=new a.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),cr=new a.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Jr{}let Xr=(()=>{class Je{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(Et,ve,et){this.doc=Et,this.platform=ve,this.cookieName=et}getToken(){if("server"===this.platform)return null;const Et=this.doc.cookie||"";return Et!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,N._b)(Et,this.cookieName),this.lastCookieString=Et),this.lastToken}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(N.qQ),a.KVO(a.Agw),a.KVO(Fn))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();function _t(Je,ct){const Et=Je.url.toLowerCase();if(!(0,a.WQX)(dn)||"GET"===Je.method||"HEAD"===Je.method||Et.startsWith("http://")||Et.startsWith("https://"))return ct(Je);const ve=(0,a.WQX)(Jr).getToken(),et=(0,a.WQX)(cr);return null!=ve&&!Je.headers.has(et)&&(Je=Je.clone({headers:Je.headers.set(et,ve)})),ct(Je)}var Ee=function(Je){return Je[Je.Interceptors=0]="Interceptors",Je[Je.LegacyInterceptors=1]="LegacyInterceptors",Je[Je.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Je[Je.NoXsrfProtection=3]="NoXsrfProtection",Je[Je.JsonpSupport=4]="JsonpSupport",Je[Je.RequestsMadeViaParent=5]="RequestsMadeViaParent",Je[Je.Fetch=6]="Fetch",Je}(Ee||{});function Pe(...Je){const ct=[Ft,Vt,At,{provide:G,useExisting:At},{provide:Z,useFactory:()=>(0,a.WQX)(He,{optional:!0})??(0,a.WQX)(Vt)},{provide:Nt,useValue:_t,multi:!0},{provide:dn,useValue:!0},{provide:Jr,useClass:Xr}];for(const Et of Je)ct.push(...Et.\u0275providers);return(0,a.EmA)(ct)}function kt(Je){return function lt(Je,ct){return{\u0275kind:Je,\u0275providers:ct}}(Ee.Interceptors,Je.map(ct=>({provide:Nt,useValue:ct,multi:!0})))}},4438:(o,s,r)=>{"use strict";function a(e,t){return Object.is(e,t)}r.d(s,{bc$:()=>ka,iLQ:()=>og,sZ2:()=>Ri,hnV:()=>c0,wjH:()=>Ud,o8S:()=>Lc,BIS:()=>za,gRc:()=>dD,Ql9:()=>Mk,Ocv:()=>Pk,Z63:()=>ur,aKT:()=>Mc,uvJ:()=>cs,zcH:()=>Tc,bkB:()=>Fl,ES_:()=>Dd,$GK:()=>Sr,nKC:()=>ct,zZn:()=>As,_q3:()=>aw,MKu:()=>lw,xe9:()=>tw,Co$:()=>K1,Vns:()=>tf,SKi:()=>Vo,Xx1:()=>ia,Agw:()=>Ia,PLl:()=>Vs,rOR:()=>Od,sFG:()=>gS,_9s:()=>Nb,czy:()=>Xf,WPN:()=>ad,kdw:()=>Qo,C4Q:()=>Wm,NYb:()=>iT,giA:()=>xE,RxE:()=>eD,c1b:()=>s_,gXe:()=>Rc,mal:()=>ed,Tzd:()=>kg,L39:()=>UO,EWP:()=>hw,sbv:()=>WS,a0P:()=>uR,Ol2:()=>Zb,w6W:()=>JS,QZP:()=>pw,Rfq:()=>Bt,oKB:()=>Oo,WQX:()=>tr,hFB:()=>Xc,naY:()=>zk,Hps:()=>Kb,QuC:()=>po,EmA:()=>co,Udg:()=>$O,HJs:()=>dR,N4e:()=>Ua,vPA:()=>cp,O8t:()=>Ap,H3F:()=>mE,H8p:()=>qo,KH2:()=>Cp,TgB:()=>rl,wOt:()=>Gt,WHO:()=>wE,e01:()=>EE,lNU:()=>En,h9k:()=>ym,$MX:()=>Vf,ZF7:()=>Hd,Kcf:()=>Ry,e5t:()=>Fy,UyX:()=>Ly,cWb:()=>Ny,osQ:()=>Py,H5H:()=>M0,Zy3:()=>At,mq5:()=>px,JZv:()=>Vt,TL3:()=>gO,LfX:()=>Xo,plB:()=>Yd,jNT:()=>l0,zjR:()=>CE,ngT:()=>ha,hVU:()=>rT,TL$:()=>Vi,Tbb:()=>cr,rcV:()=>qc,nM4:()=>tE,Vt3:()=>Jb,GFd:()=>sE,OA$:()=>wc,Jv_:()=>EC,R7$:()=>np,BMQ:()=>f0,HbH:()=>YE,ZvI:()=>nx,AVh:()=>b0,BUC:()=>rx,vxM:()=>ax,wni:()=>Xx,C6U:()=>qx,VBU:()=>X1,FsC:()=>Q1,jDH:()=>oi,G2t:()=>ao,$C:()=>qb,EJ8:()=>Z1,rXU:()=>Xd,nrm:()=>D0,eu8:()=>S0,bVm:()=>x_,qex:()=>E_,k0s:()=>w_,j41:()=>b_,RV6:()=>fx,xGo:()=>_f,Mr5:()=>A0,KVO:()=>Io,kS0:()=>Wu,QTQ:()=>zv,bIt:()=>O0,lsd:()=>Zx,joV:()=>zr,qSk:()=>Pr,XpG:()=>Fx,nI1:()=>LC,bMT:()=>PC,i5U:()=>FC,SdG:()=>Ux,NAR:()=>Bx,Y8G:()=>v0,FS9:()=>L0,lJ4:()=>CC,eq3:()=>DC,l_i:()=>SC,sMw:()=>AC,ziG:()=>TC,lV:()=>MC,NyB:()=>Jx,mGM:()=>Qx,sdS:()=>eC,Dyx:()=>ux,Z7z:()=>cx,Vm6:()=>lx,Njj:()=>cu,eBV:()=>$u,npT:()=>sv,f$h:()=>wm,B4B:()=>Wd,n$t:()=>av,Aen:()=>nu,xc7:()=>y0,Kam:()=>R0,zvX:()=>T0,DNE:()=>n0,C5r:()=>BC,EFF:()=>uC,JRh:()=>B0,SpI:()=>T_,Lme:()=>U0,E5c:()=>$0,DH7:()=>_C,mxI:()=>V0,R50:()=>j0,GBs:()=>Yx}),r(467);let c=null,y=!1,w=1;const C=Symbol("SIGNAL");function T(e){const t=c;return c=e,t}const N={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function G(e){if(y)throw new Error("");if(null===c)return;c.consumerOnSignalRead(e);const t=c.nextProducerIndex++;$e(c),t<c.producerNode.length&&c.producerNode[t]!==e&&Ie(c)&&ae(c.producerNode[t],c.producerIndexOfThis[t]),c.producerNode[t]!==e&&(c.producerNode[t]=e,c.producerIndexOfThis[t]=Ie(c)?le(e,c,t):0),c.producerLastReadVersion[t]=e.version}function te(e){if((!Ie(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==w)){if(!e.producerMustRecompute(e)&&!Me(e))return void Te(e);e.producerRecomputeValue(e),Te(e)}}function be(e){if(void 0===e.liveConsumerNode)return;const t=y;y=!0;try{for(const n of e.liveConsumerNode)n.dirty||pe(n)}finally{y=t}}function me(){return!1!==c?.consumerAllowSignalWrites}function pe(e){e.dirty=!0,be(e),e.consumerMarkedDirty?.(e)}function Te(e){e.dirty=!1,e.lastCleanEpoch=w}function xe(e){return e&&(e.nextProducerIndex=0),T(e)}function Re(e,t){if(T(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ie(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)ae(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Me(e){$e(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],l=e.producerLastReadVersion[t];if(l!==n.version||(te(n),l!==n.version))return!0}return!1}function Ce(e){if($e(e),Ie(e))for(let t=0;t<e.producerNode.length;t++)ae(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function le(e,t,n){if(st(e),0===e.liveConsumerNode.length&&ht(e))for(let l=0;l<e.producerNode.length;l++)e.producerIndexOfThis[l]=le(e.producerNode[l],e,l);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function ae(e,t){if(st(e),1===e.liveConsumerNode.length&&ht(e))for(let l=0;l<e.producerNode.length;l++)ae(e.producerNode[l],e.producerIndexOfThis[l]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const l=e.liveConsumerIndexOfThis[t],p=e.liveConsumerNode[t];$e(p),p.producerIndexOfThis[l]=t}}function Ie(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function $e(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function st(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ht(e){return void 0!==e.producerNode}function vt(e){const t=Object.create(yn);t.computation=e;const n=()=>{if(te(t),G(t),t.value===ln)throw t.error;return t.value};return n[C]=t,n}const at=Symbol("UNSET"),Xt=Symbol("COMPUTING"),ln=Symbol("ERRORED"),yn={...N,value:at,dirty:!0,error:null,equal:a,producerMustRecompute:e=>e.value===at||e.value===Xt,producerRecomputeValue(e){if(e.value===Xt)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Xt;const n=xe(e);let l;try{l=e.computation()}catch(p){l=ln,e.error=p}finally{Re(e,n)}t!==at&&t!==ln&&l!==ln&&e.equal(t,l)?e.value=t:(e.value=l,e.version++)}};let bn=function $n(){throw new Error};function Qe(){bn()}let ze=null;function dt(e,t){me()||Qe(),e.equal(e.value,t)||(e.value=t,function se(e){e.version++,function Z(){w++}(),be(e),ze?.()}(e))}const mt={...N,equal:a,value:void 0};const Rt=()=>{},Jt={...N,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Rt};var Gn=r(4412),Nt=r(1413),Qt=r(8359),an=r(6354);const En="https://g.co/ng/security#xss";class Gt extends Error{code;constructor(t,n){super(At(t,n)),this.code=t}}function At(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const Kt=Symbol("InputSignalNode#UNSET"),xn={...mt,transformFn:void 0,applyValueToInputSignal(e,t){dt(e,t)}};function ke(e,t){const n=Object.create(xn);function l(){if(G(n),n.value===Kt)throw new Gt(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,l[C]=n,l}function B(e){return{toString:e}.toString()}const j="__parameters__";function Tt(e,t,n){return B(()=>{const l=function ot(e){return function(...n){if(e){const l=e(...n);for(const p in l)this[p]=l[p]}}}(t);function p(...g){if(this instanceof p)return l.apply(this,g),this;const E=new p(...g);return O.annotation=E,O;function O(F,ie,Se){const Ve=F.hasOwnProperty(j)?F[j]:Object.defineProperty(F,j,{value:[]})[j];for(;Ve.length<=Se;)Ve.push(null);return(Ve[Se]=Ve[Se]||[]).push(E),F}}return n&&(p.prototype=Object.create(n.prototype)),p.prototype.ngMetadataName=e,p.annotationCls=p,p})}const Vt=globalThis;function Fn(e){for(let t in e)if(e[t]===Fn)return t;throw Error("Could not find renamed property on target object.")}function Bn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function cr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Jr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const _t=Fn({__forward_ref__:Fn});function Bt(e){return e.__forward_ref__=Bt,e.toString=function(){return cr(this())},e}function Ee(e){return lt(e)?e():e}function lt(e){return"function"==typeof e&&e.hasOwnProperty(_t)&&e.__forward_ref__===Bt}function oi(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ao(e){return{providers:e.providers||[],imports:e.imports||[]}}function wo(e){return Do(e,oo)||Do(e,Mo)}function Xo(e){return null!==wo(e)}function Do(e,t){return e.hasOwnProperty(t)?e[t]:null}function eo(e){return e&&(e.hasOwnProperty(Bi)||e.hasOwnProperty(Je))?e[Bi]:null}const oo=Fn({\u0275prov:Fn}),Bi=Fn({\u0275inj:Fn}),Mo=Fn({ngInjectableDef:Fn}),Je=Fn({ngInjectorDef:Fn});class ct{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=oi({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function kn(e){return e&&!!e.\u0275providers}const Un=Fn({\u0275cmp:Fn}),Jn=Fn({\u0275dir:Fn}),sr=Fn({\u0275pipe:Fn}),kr=Fn({\u0275mod:Fn}),mr=Fn({\u0275fac:Fn}),bi=Fn({__NG_ELEMENT_ID__:Fn}),si=Fn({__NG_ENV_ID__:Fn});function gr(e){return"string"==typeof e?e:null==e?"":String(e)}function na(e,t){throw new Gt(-201,!1)}var Sr=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Sr||{});let ra;function ga(){return ra}function Eo(e){const t=ra;return ra=e,t}function Rs(e,t,n){const l=wo(e);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:n&Sr.Optional?null:void 0!==t?t:void na()}const Gi={},Ks="__NG_DI_FLAG__",Ni="ngTempTokenPath",ns=/\n/gm,rs="__source";let is;function Wi(e){const t=is;return is=e,t}function ws(e,t=Sr.Default){if(void 0===is)throw new Gt(-203,!1);return null===is?Rs(e,void 0,t):is.get(e,t&Sr.Optional?null:void 0,t)}function Io(e,t=Sr.Default){return(ga()||ws)(Ee(e),t)}function tr(e,t=Sr.Default){return Io(e,xo(t))}function xo(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function os(e){const t=[];for(let n=0;n<e.length;n++){const l=Ee(e[n]);if(Array.isArray(l)){if(0===l.length)throw new Gt(900,!1);let p,g=Sr.Default;for(let E=0;E<l.length;E++){const O=l[E],F=Ps(O);"number"==typeof F?-1===F?p=O.token:g|=F:p=O}t.push(Io(p,g))}else t.push(Io(l))}return t}function Ms(e,t){return e[Ks]=t,e.prototype[Ks]=t,e}function Ps(e){return e[Ks]}const ia=Ms(Tt("Optional"),8),Qo=Ms(Tt("SkipSelf"),4);function lo(e,t){return e.hasOwnProperty(mr)?e[mr]:null}function Zo(e,t){e.forEach(n=>Array.isArray(n)?Zo(n,t):t(n))}function _i(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function La(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Y(e,t,n){let l=re(e,t);return l>=0?e[1|l]=n:(l=~l,function Ga(e,t,n,l){let p=e.length;if(p==t)e.push(n,l);else if(1===p)e.push(l,e[0]),e[0]=n;else{for(p--,e.push(e[p-1],e[p]);p>t;)e[p]=e[p-2],p--;e[t]=n,e[t+1]=l}}(e,l,t,n)),l}function je(e,t){const n=re(e,t);if(n>=0)return e[1|n]}function re(e,t){return function wt(e,t,n){let l=0,p=e.length>>n;for(;p!==l;){const g=l+(p-l>>1),E=e[g<<n];if(t===E)return g<<n;E>t?p=g:l=g+1}return~(p<<n)}(e,t,1)}const Ln={},hn=[],ur=new ct(""),hr=new ct("",-1),Gr=new ct("");class zi{get(t,n=Gi){if(n===Gi){const l=new Error(`NullInjectorError: No provider for ${cr(t)}!`);throw l.name="NullInjectorError",l}return n}}function Or(e,t){const n=e[kr]||null;if(!n&&!0===t)throw new Error(`Type ${cr(e)} does not have '\u0275mod' property.`);return n}function Dr(e){return e[Un]||null}function Ei(e){return e[Jn]||null}function ui(e){return e[sr]||null}function po(e){const t=Dr(e)||Ei(e)||ui(e);return null!==t&&t.standalone}function co(e){return{\u0275providers:e}}function Oo(...e){return{\u0275providers:Wl(0,e),\u0275fromNgModule:!0}}function Wl(e,...t){const n=[],l=new Set;let p;const g=E=>{n.push(E)};return Zo(t,E=>{const O=E;ba(O,g,[],l)&&(p||=[],p.push(O))}),void 0!==p&&Ya(p,g),n}function Ya(e,t){for(let n=0;n<e.length;n++){const{ngModule:l,providers:p}=e[n];ce(p,g=>{t(g,l)})}}function ba(e,t,n,l){if(!(e=Ee(e)))return!1;let p=null,g=eo(e);const E=!g&&Dr(e);if(g||E){if(E&&!E.standalone)return!1;p=e}else{const F=e.ngModule;if(g=eo(F),!g)return!1;p=F}const O=l.has(p);if(E){if(O)return!1;if(l.add(p),E.dependencies){const F="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const ie of F)ba(ie,t,n,l)}}else{if(!g)return!1;{if(null!=g.imports&&!O){let ie;l.add(p);try{Zo(g.imports,Se=>{ba(Se,t,n,l)&&(ie||=[],ie.push(Se))})}finally{}void 0!==ie&&Ya(ie,t)}if(!O){const ie=lo(p)||(()=>new p);t({provide:p,useFactory:ie,deps:hn},p),t({provide:Gr,useValue:p,multi:!0},p),t({provide:ur,useValue:()=>Io(p),multi:!0},p)}const F=g.providers;if(null!=F&&!O){const ie=e;ce(F,Se=>{t(Se,ie)})}}}return p!==e&&void 0!==e.providers}function ce(e,t){for(let n of e)kn(n)&&(n=n.\u0275providers),Array.isArray(n)?ce(n,t):t(n)}const Q=Fn({provide:String,useValue:Fn});function Le(e){return null!==e&&"object"==typeof e&&Q in e}function ni(e){return"function"==typeof e}const qo=new ct(""),Pa={},Lu={};let rc;function El(){return void 0===rc&&(rc=new zi),rc}class cs{}class Fs extends cs{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,l,p){super(),this.parent=n,this.source=l,this.scopes=p,ic(t,E=>this.processProvider(E)),this.records.set(hr,sa(void 0,this)),p.has("environment")&&this.records.set(cs,sa(void 0,this));const g=this.records.get(qo);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(Gr,hn,Sr.Self))}destroy(){Cl(this),this._destroyed=!0;const t=T(null);try{for(const l of this._ngOnDestroyHooks)l.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const l of n)l()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return Cl(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Cl(this);const n=Wi(this),l=Eo(void 0);try{return t()}finally{Wi(n),Eo(l)}}get(t,n=Gi,l=Sr.Default){if(Cl(this),t.hasOwnProperty(si))return t[si](this);l=xo(l);const g=Wi(this),E=Eo(void 0);try{if(!(l&Sr.SkipSelf)){let F=this.records.get(t);if(void 0===F){const ie=function Pu(e){return"function"==typeof e||"object"==typeof e&&e instanceof ct}(t)&&wo(t);F=ie&&this.injectableDefInScope(ie)?sa(Fa(t),Pa):null,this.records.set(t,F)}if(null!=F)return this.hydrate(t,F)}return(l&Sr.Self?El():this.parent).get(t,n=l&Sr.Optional&&n===Gi?null:n)}catch(O){if("NullInjectorError"===O.name){if((O[Ni]=O[Ni]||[]).unshift(cr(t)),g)throw O;return function ya(e,t,n,l){const p=e[Ni];throw t[rs]&&p.unshift(t[rs]),e.message=function Yo(e,t,n,l=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let p=cr(t);if(Array.isArray(t))p=t.map(cr).join(" -> ");else if("object"==typeof t){let g=[];for(let E in t)if(t.hasOwnProperty(E)){let O=t[E];g.push(E+":"+("string"==typeof O?JSON.stringify(O):cr(O)))}p=`{${g.join(", ")}}`}return`${n}${l?"("+l+")":""}[${p}]: ${e.replace(ns,"\n ")}`}("\n"+e.message,p,n,l),e.ngTokenPath=p,e[Ni]=null,e}(O,t,"R3InjectorError",this.source)}throw O}finally{Eo(E),Wi(g)}}resolveInjectorInitializers(){const t=T(null),n=Wi(this),l=Eo(void 0);try{const g=this.get(ur,hn,Sr.Self);for(const E of g)E()}finally{Wi(n),Eo(l),T(t)}}toString(){const t=[],n=this.records;for(const l of n.keys())t.push(cr(l));return`R3Injector[${t.join(", ")}]`}processProvider(t){let n=ni(t=Ee(t))?t:Ee(t&&t.provide);const l=function Qa(e){return Le(e)?sa(void 0,e.useValue):sa(xl(e),Pa)}(t);if(!ni(t)&&!0===t.multi){let p=this.records.get(n);p||(p=sa(void 0,Pa,!0),p.factory=()=>os(p.multi),this.records.set(n,p)),n=t,p.multi.push(t)}this.records.set(n,l)}hydrate(t,n){const l=T(null);try{return n.value===Pa&&(n.value=Lu,n.value=n.factory()),"object"==typeof n.value&&n.value&&function _c(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(l)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Ee(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Fa(e){const t=wo(e),n=null!==t?t.factory:lo(e);if(null!==n)return n;if(e instanceof ct)throw new Gt(204,!1);if(e instanceof Function)return function Lo(e){if(e.length>0)throw new Gt(204,!1);const n=function Ts(e){return e&&(e[oo]||e[Mo])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Gt(204,!1)}function xl(e,t,n){let l;if(ni(e)){const p=Ee(e);return lo(p)||Fa(p)}if(Le(e))l=()=>Ee(e.useValue);else if(function _r(e){return!(!e||!e.useFactory)}(e))l=()=>e.useFactory(...os(e.deps||[]));else if(function Ut(e){return!(!e||!e.useExisting)}(e))l=()=>Io(Ee(e.useExisting));else{const p=Ee(e&&(e.useClass||e.provide));if(!function Ba(e){return!!e.deps}(e))return lo(p)||Fa(p);l=()=>new p(...os(e.deps))}return l}function Cl(e){if(e.destroyed)throw new Gt(205,!1)}function sa(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ic(e,t){for(const n of e)Array.isArray(n)?ic(n,t):n&&kn(n)?ic(n.\u0275providers,t):t(n)}function Ua(e,t){e instanceof Fs&&Cl(e);const l=Wi(e),p=Eo(void 0);try{return t()}finally{Wi(l),Eo(p)}}function zl(){return void 0!==ga()||null!=function to(){return is}()}function wa(e){if(!zl())throw new Gt(-203,!1)}const Ui=0,zn=1,Ar=2,Ao=3,no=4,$o=5,es=6,Po=7,Fr=8,mo=9,Is=10,Rr=11,go=12,oc=13,$a=14,ro=15,ja=16,Di=17,Bs=18,aa=19,No=20,$=21,de=22,q=23,_e=24,nt=25,_n=1,Cr=7,Li=9,Hr=10;var xi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(xi||{});function Qr(e){return Array.isArray(e)&&"object"==typeof e[_n]}function di(e){return Array.isArray(e)&&!0===e[_n]}function Fo(e){return!!(4&e.flags)}function Wo(e){return e.componentOffset>-1}function ds(e){return!(1&~e.flags)}function jo(e){return!!e.template}function ks(e){return!!(512&e[Ar])}class su{previousValue;currentValue;firstChange;constructor(t,n,l){this.previousValue=t,this.currentValue=n,this.firstChange=l}isFirstChange(){return this.firstChange}}function Fc(e,t,n,l){null!==t?t.applyValueToInputSignal(t,l):e[n]=l}const wc=(()=>{const e=()=>ca;return e.ngInherit=!0,e})();function ca(e){return e.type.prototype.ngOnChanges&&(e.setInput=Lr),ul}function ul(){const e=Bc(this),t=e?.current;if(t){const n=e.previous;if(n===Ln)e.previous=t;else for(let l in t)n[l]=t[l];e.current=null,this.ngOnChanges(t)}}function Lr(e,t,n,l,p){const g=this.declaredInputs[l],E=Bc(e)||function ua(e,t){return e[el]=t}(e,{previous:Ln,current:null}),O=E.current||(E.current={}),F=E.previous,ie=F[g];O[g]=new su(ie&&ie.currentValue,n,F===Ln),Fc(e,t,p,n)}const el="__ngSimpleChanges__";function Bc(e){return e[el]||null}const Aa=function(e,t,n){},Ec="svg";function Xi(e){for(;Array.isArray(e);)e=e[Ui];return e}function Tr(e,t){return Xi(t[e])}function Es(e,t){return Xi(t[e.index])}function L(e,t){return e.data[t]}function K(e,t){return e[t]}function P(e,t){const n=t[e];return Qr(n)?n:n[Ui]}function he(e){return!(128&~e[Ar])}function Ct(e,t){return null==t?null:e[t]}function vn(e){e[Di]=0}function nn(e){1024&e[Ar]||(e[Ar]|=1024,he(e)&&io(e))}function ri(e){return!!(9216&e[Ar]||e[_e]?.dirty)}function hi(e){e[Is].changeDetectionScheduler?.notify(9),64&e[Ar]&&(e[Ar]|=1024),ri(e)&&io(e)}function io(e){e[Is].changeDetectionScheduler?.notify(0);let t=xs(e);for(;null!==t&&!(8192&t[Ar])&&(t[Ar]|=8192,he(t));)t=xs(t)}function as(e,t){if(!(256&~e[Ar]))throw new Gt(911,!1);null===e[$]&&(e[$]=[]),e[$].push(t)}function xs(e){const t=e[Ao];return di(t)?t[Ao]:t}const Wr={lFrame:Wn(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let ac=!1;function ih(){return Wr.bindingsEnabled}function Cc(){return null!==Wr.skipHydrationRootTNode}function wn(){return Wr.lFrame.lView}function gi(){return Wr.lFrame.tView}function $u(e){return Wr.lFrame.contextLView=e,e[Fr]}function cu(e){return Wr.lFrame.contextLView=null,e}function Ti(){let e=Il();for(;null!==e&&64===e.type;)e=e.parent;return e}function Il(){return Wr.lFrame.currentTNode}function hs(e,t){const n=Wr.lFrame;n.currentTNode=e,n.isParent=t}function lc(){return Wr.lFrame.isParent}function $c(){Wr.lFrame.isParent=!1}function gd(){return ac}function Zs(e){const t=ac;return ac=e,t}function Us(){const e=Wr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ol(){return Wr.lFrame.bindingIndex}function Va(){return Wr.lFrame.bindingIndex++}function R(e){const t=Wr.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function oe(e,t){const n=Wr.lFrame;n.bindingIndex=n.bindingRootIndex=e,Be(t)}function Be(e){Wr.lFrame.currentDirectiveIndex=e}function gt(e){const t=Wr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function It(){return Wr.lFrame.currentQueryIndex}function Ht(e){Wr.lFrame.currentQueryIndex=e}function on(e){const t=e[zn];return 2===t.type?t.declTNode:1===t.type?e[$o]:null}function An(e,t,n){if(n&Sr.SkipSelf){let p=t,g=e;for(;!(p=p.parent,null!==p||n&Sr.Host||(p=on(g),null===p||(g=g[$a],10&p.type))););if(null===p)return!1;t=p,e=g}const l=Wr.lFrame=Kn();return l.currentTNode=t,l.lView=e,!0}function Zt(e){const t=Kn(),n=e[zn];Wr.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kn(){const e=Wr.lFrame,t=null===e?null:e.child;return null===t?Wn(e):t}function Wn(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function nr(){const e=Wr.lFrame;return Wr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Mn=nr;function jn(){const e=nr();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ir(){return Wr.lFrame.selectedIndex}function Vn(e){Wr.lFrame.selectedIndex=e}function dr(){const e=Wr.lFrame;return L(e.tView,e.selectedIndex)}function Pr(){Wr.lFrame.currentNamespace=Ec}function zr(){!function Ur(){Wr.lFrame.currentNamespace=null}()}let Qi=!0;function Mi(){return Qi}function Zi(e){Qi=e}function Cs(e,t){for(let n=t.directiveStart,l=t.directiveEnd;n<l;n++){const g=e.data[n].type.prototype,{ngAfterContentInit:E,ngAfterContentChecked:O,ngAfterViewInit:F,ngAfterViewChecked:ie,ngOnDestroy:Se}=g;E&&(e.contentHooks??=[]).push(-n,E),O&&((e.contentHooks??=[]).push(n,O),(e.contentCheckHooks??=[]).push(n,O)),F&&(e.viewHooks??=[]).push(-n,F),ie&&((e.viewHooks??=[]).push(n,ie),(e.viewCheckHooks??=[]).push(n,ie)),null!=Se&&(e.destroyHooks??=[]).push(n,Se)}}function yr(e,t,n){$i(e,t,3,n)}function jr(e,t,n,l){(3&e[Ar])===n&&$i(e,t,n,l)}function Fi(e,t){let n=e[Ar];(3&n)===t&&(n&=16383,n+=1,e[Ar]=n)}function $i(e,t,n,l){const g=l??-1,E=t.length-1;let O=0;for(let F=void 0!==l?65535&e[Di]:0;F<E;F++)if("number"==typeof t[F+1]){if(O=t[F],null!=l&&O>=l)break}else t[F]<0&&(e[Di]+=65536),(O<g||-1==g)&&(fs(e,n,t,F),e[Di]=(4294901760&e[Di])+F+2),F++}function vo(e,t){Aa(4,e,t);const n=T(null);try{t.call(e)}finally{T(n),Aa(5,e,t)}}function fs(e,t,n,l){const p=n[l]<0,g=n[l+1],O=e[p?-n[l]:n[l]];p?e[Ar]>>14<e[Di]>>16&&(3&e[Ar])===t&&(e[Ar]+=16384,vo(O,g)):vo(O,g)}const ps=-1;class Ds{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,l){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=l}}function Hc(e,t,n){let l=0;for(;l<n.length;){const p=n[l];if("number"==typeof p){if(0!==p)break;l++;const g=n[l++],E=n[l++],O=n[l++];e.setAttribute(t,E,O,g)}else{const g=p,E=n[++l];Ha(g)?e.setProperty(t,g,E):e.setAttribute(t,g,E),l++}}return l}function da(e){return 3===e||4===e||6===e}function Ha(e){return 64===e.charCodeAt(0)}function fl(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let l=0;l<t.length;l++){const p=t[l];"number"==typeof p?n=p:0===n||uu(e,n,p,null,-1===n||2===n?t[++l]:null)}}return e}function uu(e,t,n,l,p){let g=0,E=e.length;if(-1===t)E=-1;else for(;g<e.length;){const O=e[g++];if("number"==typeof O){if(O===t){E=-1;break}if(O>t){E=g-1;break}}}for(;g<e.length;){const O=e[g];if("number"==typeof O)break;if(O===n){if(null===l)return void(null!==p&&(e[g+1]=p));if(l===e[g+1])return void(e[g+2]=p)}g++,null!==l&&g++,null!==p&&g++}-1!==E&&(e.splice(E,0,t),g=E+1),e.splice(g++,0,n),null!==l&&e.splice(g++,0,l),null!==p&&e.splice(g++,0,p)}const Zl={};class Rl{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,l){l=xo(l);const p=this.injector.get(t,Zl,l);return p!==Zl||n===Zl?p:this.parentInjector.get(t,n,l)}}function vd(e){return e!==ps}function Hu(e){return 32767&e}function Sc(e,t){let n=function kp(e){return e>>16}(e),l=t;for(;n>0;)l=l[$a],n--;return l}let oh=!0;function yd(e){const t=oh;return oh=e,t}const hu=255,bd=5;let sh=0;const Nl={};function fu(e,t){const n=wd(e,t);if(-1!==n)return n;const l=t[zn];l.firstCreatePass&&(e.injectorIndex=t.length,ah(l.data,e),ah(t,null),ah(l.blueprint,null));const p=Wc(e,t),g=e.injectorIndex;if(vd(p)){const E=Hu(p),O=Sc(p,t),F=O[zn].data;for(let ie=0;ie<8;ie++)t[g+ie]=O[E+ie]|F[E+ie]}return t[g+8]=p,g}function ah(e,t){e.push(0,0,0,0,0,0,0,0,t)}function wd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Wc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,l=null,p=t;for(;null!==p;){if(l=hh(p),null===l)return ps;if(n++,p=p[$a],-1!==l.injectorIndex)return l.injectorIndex|n<<16}return ps}function lh(e,t,n){!function pf(e,t,n){let l;"string"==typeof n?l=n.charCodeAt(0)||0:n.hasOwnProperty(bi)&&(l=n[bi]),null==l&&(l=n[bi]=sh++);const p=l&hu;t.data[e+(p>>bd)]|=1<<p}(e,t,n)}function Ed(e,t,n){if(n&Sr.Optional||void 0!==e)return e;na()}function Ac(e,t,n,l){if(n&Sr.Optional&&void 0===l&&(l=null),!(n&(Sr.Self|Sr.Host))){const p=e[mo],g=Eo(void 0);try{return p?p.get(t,l,n&Sr.Optional):Rs(t,l,n&Sr.Optional)}finally{Eo(g)}}return Ed(l,0,n)}function mf(e,t,n,l=Sr.Default,p){if(null!==e){if(2048&t[Ar]&&!(l&Sr.Self)){const E=function Rp(e,t,n,l,p){let g=e,E=t;for(;null!==g&&null!==E&&2048&E[Ar]&&!(512&E[Ar]);){const O=ch(g,E,n,l|Sr.Self,Nl);if(O!==Nl)return O;let F=g.parent;if(!F){const ie=E[No];if(ie){const Se=ie.get(n,Nl,l);if(Se!==Nl)return Se}F=hh(E),E=E[$a]}g=F}return p}(e,t,n,l,Nl);if(E!==Nl)return E}const g=ch(e,t,n,l,Nl);if(g!==Nl)return g}return Ac(t,n,l,p)}function ch(e,t,n,l,p){const g=function gf(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(bi)?e[bi]:void 0;return"number"==typeof t?t>=0?t&hu:Op:t}(n);if("function"==typeof g){if(!An(t,e,l))return l&Sr.Host?Ed(p,0,l):Ac(t,n,l,p);try{let E;if(E=g(l),null!=E||l&Sr.Optional)return E;na()}finally{Mn()}}else if("number"==typeof g){let E=null,O=wd(e,t),F=ps,ie=l&Sr.Host?t[ro][$o]:null;for((-1===O||l&Sr.SkipSelf)&&(F=-1===O?Wc(e,t):t[O+8],F!==ps&&vf(l,!1)?(E=t[zn],O=Hu(F),t=Sc(F,t)):O=-1);-1!==O;){const Se=t[zn];if(dh(g,O,Se.data)){const Ve=uh(O,t,n,E,l,ie);if(Ve!==Nl)return Ve}F=t[O+8],F!==ps&&vf(l,t[zn].data[O+8]===ie)&&dh(g,O,t)?(E=Se,O=Hu(F),t=Sc(F,t)):O=-1}}return p}function uh(e,t,n,l,p,g){const E=t[zn],O=E.data[e+8],Se=mu(O,E,n,null==l?Wo(O)&&oh:l!=E&&!!(3&O.type),p&Sr.Host&&g===O);return null!==Se?Ll(t,E,Se,O):Nl}function mu(e,t,n,l,p){const g=e.providerIndexes,E=t.data,O=1048575&g,F=e.directiveStart,Se=g>>20,Ot=p?O+Se:e.directiveEnd;for(let Lt=l?O:O+Se;Lt<Ot;Lt++){const en=E[Lt];if(Lt<F&&n===en||Lt>=F&&en.type===n)return Lt}if(p){const Lt=E[F];if(Lt&&jo(Lt)&&Lt.type===n)return F}return null}function Ll(e,t,n,l){let p=e[n];const g=t.data;if(function cc(e){return e instanceof Ds}(p)){const E=p;E.resolving&&function Ki(e,t){throw t&&t.join(" > "),new Gt(-200,e)}(function ai(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():gr(e)}(g[n]));const O=yd(E.canSeeViewProviders);E.resolving=!0;const ie=E.injectImpl?Eo(E.injectImpl):null;An(e,l,Sr.Default);try{p=e[n]=E.factory(void 0,g,e,l),t.firstCreatePass&&n>=l.directiveStart&&function Bo(e,t,n){const{ngOnChanges:l,ngOnInit:p,ngDoCheck:g}=t.type.prototype;if(l){const E=ca(t);(n.preOrderHooks??=[]).push(e,E),(n.preOrderCheckHooks??=[]).push(e,E)}p&&(n.preOrderHooks??=[]).push(0-e,p),g&&((n.preOrderHooks??=[]).push(e,g),(n.preOrderCheckHooks??=[]).push(e,g))}(n,g[n],t)}finally{null!==ie&&Eo(ie),yd(O),E.resolving=!1,Mn()}}return p}function dh(e,t,n){return!!(n[t+(e>>bd)]&1<<e)}function vf(e,t){return!(e&Sr.Self||e&Sr.Host&&t)}class Ss{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,l){return mf(this._tNode,this._lView,t,xo(l),n)}}function Op(){return new Ss(Ti(),wn())}function _f(e){return B(()=>{const t=e.prototype.constructor,n=t[mr]||vu(t),l=Object.prototype;let p=Object.getPrototypeOf(e.prototype).constructor;for(;p&&p!==l;){const g=p[mr]||vu(p);if(g&&g!==n)return g;p=Object.getPrototypeOf(p)}return g=>new g})}function vu(e){return lt(e)?()=>{const t=vu(Ee(e));return t&&t()}:lo(e)}function hh(e){const t=e[zn],n=t.type;return 2===n?t.declTNode:1===n?e[$o]:null}function Wu(e){return function pu(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const l=n.length;let p=0;for(;p<l;){const g=n[p];if(da(g))break;if(0===g)p+=2;else if("number"==typeof g)for(p++;p<l&&"string"==typeof n[p];)p++;else{if(g===t)return n[p+1];p+=2}}}return null}(Ti(),e)}function Cd(e,t=null,n=null,l){const p=Ef(e,t,n,l);return p.resolveInjectorInitializers(),p}function Ef(e,t=null,n=null,l,p=new Set){const g=[n||hn,Oo(e)];return l=l||("object"==typeof e?void 0:cr(e)),new Fs(g,t||El(),l||null,p)}class As{static THROW_IF_NOT_FOUND=Gi;static NULL=new zi;static create(t,n){if(Array.isArray(t))return Cd({name:""},n,t,"");{const l=t.name??"";return Cd({name:l},t.parent,t.providers,l)}}static \u0275prov=oi({token:As,providedIn:"any",factory:()=>Io(hr)});static __NG_ELEMENT_ID__=-1}class Dd{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Wu(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new ct("").__NG_ELEMENT_ID__=e=>{const t=Ti();if(null===t)throw new Gt(204,!1);if(2&t.type)return t.value;if(e&Sr.Optional)return null;throw new Gt(204,!1)};const gh=!1;let fc=(()=>class e{static __NG_ELEMENT_ID__=Kc;static __NG_ENV_ID__=n=>n})();class nl extends fc{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return as(this._lView,t),()=>function Ko(e,t){if(null===e[$])return;const n=e[$].indexOf(t);-1!==n&&e[$].splice(n,1)}(this._lView,t)}}function Kc(){return new nl(wn())}class Pl{}const Gu=new ct("",{providedIn:"root",factory:()=>!1}),xf=new ct(""),yu=new ct("");let rl=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Gn.t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();const Fl=class vh extends Nt.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,zl()&&(this.destroyRef=tr(fc,{optional:!0})??void 0,this.pendingTasks=tr(rl,{optional:!0})??void 0)}emit(t){const n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,l){let p=t,g=n||(()=>null),E=l;if(t&&"object"==typeof t){const F=t;p=F.next?.bind(F),g=F.error?.bind(F),E=F.complete?.bind(F)}this.__isAsync&&(g=this.wrapInTimeout(g),p&&(p=this.wrapInTimeout(p)),E&&(E=this.wrapInTimeout(E)));const O=super.subscribe({next:p,error:g,complete:E});return t instanceof Qt.yU&&t.add(O),O}wrapInTimeout(t){return n=>{const l=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==l&&this.pendingTasks?.remove(l)})}}};function bu(...e){}function Sd(e){let t,n;function l(){e=bu;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),l()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),l()})),()=>l()}function Xu(e){return queueMicrotask(()=>e()),()=>{e=bu}}const Ad="isAngularZone",Gc=Ad+"_ID";let Cf=0;class Vo{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Fl(!1);onMicrotaskEmpty=new Fl(!1);onStable=new Fl(!1);onError=new Fl(!1);constructor(t){const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:p=!1,scheduleInRootZone:g=gh}=t;if(typeof Zone>"u")throw new Gt(908,!1);Zone.assertZonePatched();const E=this;E._nesting=0,E._outer=E._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(E._inner=E._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(E._inner=E._inner.fork(Zone.longStackTraceZoneSpec)),E.shouldCoalesceEventChangeDetection=!p&&l,E.shouldCoalesceRunChangeDetection=p,E.callbackScheduled=!1,E.scheduleInRootZone=g,function bh(e){const t=()=>{!function yh(e){function t(){Sd(()=>{e.callbackScheduled=!1,wh(e),e.isCheckStableRunning=!0,_h(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),wh(e))}(e)},n=Cf++;e._inner=e._inner.fork({name:"angular",properties:{[Ad]:!0,[Gc]:n,[Gc+n]:!0},onInvokeTask:(l,p,g,E,O,F)=>{if(function Eh(e){return xh(e,"__ignore_ng_zone__")}(F))return l.invokeTask(g,E,O,F);try{return Sf(e),l.invokeTask(g,E,O,F)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===E.type||e.shouldCoalesceRunChangeDetection)&&t(),Af(e)}},onInvoke:(l,p,g,E,O,F,ie)=>{try{return Sf(e),l.invoke(g,E,O,F,ie)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Vp(e){return xh(e,"__scheduler_tick__")}(F)&&t(),Af(e)}},onHasTask:(l,p,g,E)=>{l.hasTask(g,E),p===g&&("microTask"==E.change?(e._hasPendingMicrotasks=E.microTask,wh(e),_h(e)):"macroTask"==E.change&&(e.hasPendingMacrotasks=E.macroTask))},onHandleError:(l,p,g,E)=>(l.handleError(g,E),e.runOutsideAngular(()=>e.onError.emit(E)),!1)})}(E)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Ad)}static assertInAngularZone(){if(!Vo.isInAngularZone())throw new Gt(909,!1)}static assertNotInAngularZone(){if(Vo.isInAngularZone())throw new Gt(909,!1)}run(t,n,l){return this._inner.run(t,n,l)}runTask(t,n,l,p){const g=this._inner,E=g.scheduleEventTask("NgZoneEvent: "+p,t,Df,bu,bu);try{return g.runTask(E,n,l)}finally{g.cancelTask(E)}}runGuarded(t,n,l){return this._inner.runGuarded(t,n,l)}runOutsideAngular(t){return this._outer.run(t)}}const Df={};function _h(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function wh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Sf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Af(e){e._nesting--,_h(e)}class Td{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Fl;onMicrotaskEmpty=new Fl;onStable=new Fl;onError=new Fl;run(t,n,l){return t.apply(n,l)}runGuarded(t,n,l){return t.apply(n,l)}runOutsideAngular(t){return t()}runTask(t,n,l,p){return t.apply(n,l)}}function xh(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class Tc{_console=console;handleError(t){this._console.error("ERROR",t)}}const Tf=new ct("",{providedIn:"root",factory:()=>{const e=tr(Vo),t=tr(Tc);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Wa(e,t){return ke(e,t)}const Xc=(Wa.required=function Wp(e){return ke(Kt,e)},Wa);function zp(){return ml(Ti(),wn())}function ml(e,t){return new Mc(Es(e,t))}let Mc=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=zp})();function $s(e){return e instanceof Mc?e.nativeElement:e}function Mf(){return this._results[Symbol.iterator]()}class Od{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Nt.B}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const l=function bo(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ss(e,t,n){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let p=e[l],g=t[l];if(n&&(p=n(p),g=n(g)),g!==p)return!1}return!0}(this._results,l,n))&&(this._results=l,this.length=l.length,this.last=l[this.length-1],this.first=l[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Mf}function Eu(e){return!(128&~e.flags)}var Ic=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Ic||{});const ql=new Map;let Kp=0;function Zu(e){ql.delete(e[aa])}const Rd="__ngContext__";function x(e,t){Qr(t)?(e[Rd]=t[aa],function If(e){ql.set(e[aa],e)}(t)):e[Rd]=t}function Yt(e){return Dn(e[go])}function qt(e){return Dn(e[no])}function Dn(e){for(;null!==e&&!di(e);)e=e[no];return e}let xr;function Vi(e){xr=e}function Ii(){if(void 0!==xr)return xr;if(typeof document<"u")return document;throw new Gt(210,!1)}const Ri=new ct("",{providedIn:"root",factory:()=>js}),js="ng",Vs=new ct(""),Ia=new ct("",{providedIn:"platform",factory:()=>"unknown"}),ka=new ct(""),za=new ct("",{providedIn:"root",factory:()=>Ii().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Dg=new ct("",{providedIn:"root",factory:()=>!1});var Yp=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Yp||{});const Rh=new ct(""),K_=new Set;function ha(e){K_.has(e)||(K_.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Ud=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Ud||{});let Mg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();const G_=[Ud.EarlyRead,Ud.Write,Ud.MixedReadWrite,Ud.Read];let X_=(()=>{class e{ngZone=tr(Vo);scheduler=tr(Pl);errorHandler=tr(Tc,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){tr(Rh,{optional:!0})}execute(){this.executing=!0;for(const n of G_)for(const l of this.sequences)if(!l.erroredOrDestroyed&&l.hooks[n])try{l.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>l.hooks[n](l.pipelinedValue),l.snapshot))}catch(p){l.erroredOrDestroyed=!0,this.errorHandler?.handleError(p)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,l){return l?.run(Yp.AFTER_NEXT_RENDER,n)??n()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();class Ig{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,l,p,g=null){this.impl=t,this.hooks=n,this.once=l,this.snapshot=g,this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function kg(e,t){!t?.injector&&wa();const n=t?.injector??tr(As);return ha("NgAfterRender"),Og(e,n,t,!1)}function ed(e,t){!t?.injector&&wa();const n=t?.injector??tr(As);return ha("NgAfterNextRender"),Og(e,n,t,!0)}function Og(e,t,n,l){const p=t.get(Mg);p.impl??=t.get(X_);const g=t.get(Rh,null,{optional:!0}),E=n?.phase??Ud.MixedReadWrite,O=!0!==n?.manualCleanup?t.get(fc):null,F=new Ig(p.impl,function Y_(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,E),l,O,g?.snapshot(null));return p.impl.register(F),F}let Vg=()=>null;function om(e,t,n=!1){return Vg(e,t,n)}var Rc=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Rc||{});let od,$f;function Vd(e){return function hm(){if(void 0===od&&(od=null,Vt.trustedTypes))try{od=Vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return od}()?.createHTML(e)||e}function fm(){if(void 0===$f&&($f=null,Vt.trustedTypes))try{$f=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return $f}function Yg(e){return fm()?.createHTML(e)||e}function Zg(e){return fm()?.createScriptURL(e)||e}class sd{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${En})`}}class Ty extends sd{getTypeName(){return"HTML"}}class My extends sd{getTypeName(){return"Style"}}class jf extends sd{getTypeName(){return"Script"}}class Iy extends sd{getTypeName(){return"URL"}}class ky extends sd{getTypeName(){return"ResourceURL"}}function qc(e){return e instanceof sd?e.changingThisBreaksApplicationSecurity:e}function Hd(e,t){const n=function Oy(e){return e instanceof sd&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${En})`)}return n===t}function Ry(e){return new Ty(e)}function Ny(e){return new My(e)}function Ly(e){return new jf(e)}function Py(e){return new Iy(e)}function Fy(e){return new ky(e)}class pm{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Vd(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class By{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Vd(t),n}}const mm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vf(e){return(e=String(e)).match(mm)?e:"unsafe:"+e}function Jc(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Wh(...e){const t={};for(const n of e)for(const l in n)n.hasOwnProperty(l)&&(t[l]=!0);return t}const Jg=Jc("area,br,col,hr,img,wbr"),ev=Jc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),tv=Jc("rp,rt"),gm=Wh(Jg,Wh(ev,Jc("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Wh(tv,Jc("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Wh(tv,ev)),Hf=Jc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rv=Wh(Hf,Jc("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Jc("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),jy=Jc("script,style,template");class Vy{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,l=!0,p=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?l=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,l&&n.firstChild)p.push(n),n=Wy(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let g=Hy(n);if(g){n=g;break}n=p.pop()}return this.buf.join("")}startElement(t){const n=ov(t).toLowerCase();if(!gm.hasOwnProperty(n))return this.sanitizedSomething=!0,!jy.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const l=t.attributes;for(let p=0;p<l.length;p++){const g=l.item(p),E=g.name,O=E.toLowerCase();if(!rv.hasOwnProperty(O)){this.sanitizedSomething=!0;continue}let F=g.value;Hf[O]&&(F=Vf(F)),this.buf.push(" ",E,'="',_m(F),'"')}return this.buf.push(">"),!0}endElement(t){const n=ov(t).toLowerCase();gm.hasOwnProperty(n)&&!Jg.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(_m(t))}}function Hy(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw vm(t);return t}function Wy(e){const t=e.firstChild;if(t&&function iv(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw vm(t);return t}function ov(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function vm(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const zy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ky=/([^\#-~ |!])/g;function _m(e){return e.replace(/&/g,"&").replace(zy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ky,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Wf;function ym(e,t){let n=null;try{Wf=Wf||function qg(e){const t=new By(e);return function Uy(){try{return!!(new window.DOMParser).parseFromString(Vd(""),"text/html")}catch{return!1}}()?new pm(t):t}(e);let l=t?String(t):"";n=Wf.getInertBodyElement(l);let p=5,g=l;do{if(0===p)throw new Error("Failed to sanitize html because the input is unstable");p--,l=g,g=n.innerHTML,n=Wf.getInertBodyElement(l)}while(l!==g);return Vd((new Vy).sanitizeChildren(bm(n)||n))}finally{if(n){const l=bm(n)||n;for(;l.firstChild;)l.firstChild.remove()}}}function bm(e){return"content"in e&&function Gy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ad=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ad||{});function sv(e){const t=ld();return t?Yg(t.sanitize(ad.HTML,e)||""):Hd(e,"HTML")?Yg(qc(e)):ym(Ii(),gr(e))}function Wd(e){const t=ld();return t?t.sanitize(ad.URL,e)||"":Hd(e,"URL")?qc(e):Vf(gr(e))}function wm(e){const t=ld();if(t)return Zg(t.sanitize(ad.RESOURCE_URL,e)||"");if(Hd(e,"ResourceURL"))return Zg(qc(e));throw new Gt(904,!1)}function av(e,t,n){return function Cm(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?wm:Wd}(t,n)(e)}function ld(){const e=wn();return e&&e[Is].sanitizer}const cv=/^>|^->|<!--|-->|--!>|<!-$/g,zd=/(<|>)/g;function jl(e){return e instanceof Function?e():e}var Mu=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mu||{}),Xf=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xf||{});let Am;function Tm(e,t){return Am(e,t)}function Gd(e,t,n,l,p){if(null!=l){let g,E=!1;di(l)?g=l:Qr(l)&&(E=!0,l=l[Ui]);const O=Xi(l);0===e&&null!==n?null==p?Ov(t,n,O):cd(t,n,O,p||null,!0):1===e&&null!==n?cd(t,n,O,p||null,!0):2===e?function Gh(e,t,n){e.removeChild(null,t,n)}(t,O,E):3===e&&t.destroyNode(O),null!=g&&function $v(e,t,n,l,p){const g=n[Cr];g!==Xi(n)&&Gd(t,e,l,g,p);for(let O=Hr;O<n.length;O++){const F=n[O];tp(F[zn],F,e,t,l,g)}}(t,e,g,n,p)}}function Im(e,t){return e.createComment(function dv(e){return e.replace(cv,t=>t.replace(zd,"\u200b$1\u200b"))}(t))}function Yf(e,t,n){return e.createElement(t,n)}function Tv(e,t){t[Is].changeDetectionScheduler?.notify(10),tp(e,t,t[Rr],2,null,null)}function Mv(e,t){const n=e[Li],l=t[Ao];(Qr(l)||t[ro]!==l[Ao][ro])&&(e[Ar]|=xi.HasTransplantedViews),null===n?e[Li]=[t]:n.push(t)}function Qf(e,t){const n=e[Li],l=n.indexOf(t);n.splice(l,1)}function zh(e,t){if(e.length<=Hr)return;const n=Hr+t,l=e[n];if(l){const p=l[ja];null!==p&&p!==e&&Qf(p,l),t>0&&(e[n-1][no]=l[no]);const g=La(e,Hr+t);!function Av(e,t){Tv(e,t),t[Ui]=null,t[$o]=null}(l[zn],l);const E=g[Bs];null!==E&&E.detachView(g[zn]),l[Ao]=null,l[no]=null,l[Ar]&=-129}return l}function Kh(e,t){if(!(256&t[Ar])){const n=t[Rr];n.destroyNode&&tp(e,t,n,3,null,null),function eb(e){let t=e[go];if(!t)return km(e[zn],e);for(;t;){let n=null;if(Qr(t))n=t[go];else{const l=t[Hr];l&&(n=l)}if(!n){for(;t&&!t[no]&&t!==e;)Qr(t)&&km(t[zn],t),t=t[Ao];null===t&&(t=e),Qr(t)&&km(t[zn],t),n=t&&t[no]}t=n}}(t)}}function km(e,t){if(256&t[Ar])return;const n=T(null);try{t[Ar]&=-129,t[Ar]|=256,t[_e]&&Ce(t[_e]),function Zf(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let l=0;l<n.length;l+=2){const p=t[n[l]];if(!(p instanceof Ds)){const g=n[l+1];if(Array.isArray(g))for(let E=0;E<g.length;E+=2){const O=p[g[E]],F=g[E+1];Aa(4,O,F);try{F.call(O)}finally{Aa(5,O,F)}}else{Aa(4,p,g);try{g.call(p)}finally{Aa(5,p,g)}}}}}(e,t),function Iv(e,t){const n=e.cleanup,l=t[Po];if(null!==n)for(let E=0;E<n.length-1;E+=2)if("string"==typeof n[E]){const O=n[E+3];O>=0?l[O]():l[-O].unsubscribe(),E+=2}else n[E].call(l[n[E+1]]);null!==l&&(t[Po]=null);const p=t[$];if(null!==p){t[$]=null;for(let E=0;E<p.length;E++)(0,p[E])()}const g=t[q];if(null!==g){t[q]=null;for(const E of g)E.destroy()}}(e,t),1===t[zn].type&&t[Rr].destroy();const l=t[ja];if(null!==l&&di(t[Ao])){l!==t[Ao]&&Qf(l,t);const p=t[Bs];null!==p&&p.detachView(e)}Zu(t)}finally{T(n)}}function qf(e,t,n){return function kv(e,t,n){let l=t;for(;null!==l&&168&l.type;)l=(t=l).parent;if(null===l)return n[Ui];{const{componentOffset:p}=l;if(p>-1){const{encapsulation:g}=e.data[l.directiveStart+p];if(g===Rc.None||g===Rc.Emulated)return null}return Es(l,n)}}(e,t.parent,n)}function cd(e,t,n,l,p){e.insertBefore(t,n,l,p)}function Ov(e,t,n){e.appendChild(t,n)}function Rv(e,t,n,l,p){null!==l?cd(e,t,n,l,p):Ov(e,t,n)}function Om(e,t){return e.parentNode(t)}function Rm(e,t,n){return Lv(e,t,n)}let Nm,Lv=function Nv(e,t,n){return 40&e.type?Es(e,n):null};function Jf(e,t,n,l){const p=qf(e,l,t),g=t[Rr],O=Rm(l.parent||t[$o],l,t);if(null!=p)if(Array.isArray(n))for(let F=0;F<n.length;F++)Rv(g,p,n[F],O,!1);else Rv(g,p,n,O,!1);void 0!==Nm&&Nm(g,l,t,n,p)}function Iu(e,t){if(null!==t){const n=t.type;if(3&n)return Es(t,e);if(4&n)return Lm(-1,e[t.index]);if(8&n){const l=t.child;if(null!==l)return Iu(e,l);{const p=e[t.index];return di(p)?Lm(-1,p):Xi(p)}}if(128&n)return Iu(e,t.next);if(32&n)return Tm(t,e)()||Xi(e[t.index]);{const l=Fv(e,t);return null!==l?Array.isArray(l)?l[0]:Iu(xs(e[ro]),l):Iu(e,t.next)}}return null}function Fv(e,t){return null!==t?e[ro][$o].projection[t.projection]:null}function Lm(e,t){const n=Hr+e+1;if(n<t.length){const l=t[n],p=l[zn].firstChild;if(null!==p)return Iu(l,p)}return t[Cr]}function ep(e,t,n,l,p,g,E){for(;null!=n;){if(128===n.type){n=n.next;continue}const O=l[n.index],F=n.type;if(E&&0===t&&(O&&x(Xi(O),l),n.flags|=2),32&~n.flags)if(8&F)ep(e,t,n.child,l,p,g,!1),Gd(t,e,p,O,g);else if(32&F){const ie=Tm(n,l);let Se;for(;Se=ie();)Gd(t,e,p,Se,g);Gd(t,e,p,O,g)}else 16&F?Uv(e,t,l,n,p,g):Gd(t,e,p,O,g);n=E?n.projectionNext:n.next}}function tp(e,t,n,l,p,g){ep(n,l,e.firstChild,t,p,g,!1)}function Uv(e,t,n,l,p,g){const E=n[ro],F=E[$o].projection[l.projection];if(Array.isArray(F))for(let ie=0;ie<F.length;ie++)Gd(t,e,p,F[ie],g);else{let ie=F;const Se=E[Ao];Eu(l)&&(ie.flags|=128),ep(e,t,ie,Se,p,g,!0)}}function jv(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Vv(e,t,n){const{mergedAttrs:l,classes:p,styles:g}=n;null!==l&&Hc(e,t,l),null!==p&&jv(e,t,p),null!==g&&function ob(e,t,n){e.setAttribute(t,"style",n)}(e,t,g)}function sb(e,t,n){let l=e.length;for(;;){const p=e.indexOf(t,n);if(-1===p)return p;if(0===p||e.charCodeAt(p-1)<=32){const g=t.length;if(p+g===l||e.charCodeAt(p+g)<=32)return p}n=p+1}}const Hv="ng-template";function ab(e,t,n,l){let p=0;if(l){for(;p<t.length&&"string"==typeof t[p];p+=2)if("class"===t[p]&&-1!==sb(t[p+1].toLowerCase(),n,0))return!0}else if(Pm(e))return!1;if(p=t.indexOf(1,p),p>-1){let g;for(;++p<t.length&&"string"==typeof(g=t[p]);)if(g.toLowerCase()===n)return!0}return!1}function Pm(e){return 4===e.type&&e.value!==Hv}function lb(e,t,n){return t===(4!==e.type||n?e.value:Hv)}function cb(e,t,n){let l=4;const p=e.attrs,g=null!==p?function hb(e){for(let t=0;t<e.length;t++)if(da(e[t]))return t;return e.length}(p):0;let E=!1;for(let O=0;O<t.length;O++){const F=t[O];if("number"!=typeof F){if(!E)if(4&l){if(l=2|1&l,""!==F&&!lb(e,F,n)||""===F&&1===t.length){if(gc(l))return!1;E=!0}}else if(8&l){if(null===p||!ab(e,p,F,n)){if(gc(l))return!1;E=!0}}else{const ie=t[++O],Se=ub(F,p,Pm(e),n);if(-1===Se){if(gc(l))return!1;E=!0;continue}if(""!==ie){let Ve;if(Ve=Se>g?"":p[Se+1].toLowerCase(),2&l&&ie!==Ve){if(gc(l))return!1;E=!0}}}}else{if(!E&&!gc(l)&&!gc(F))return!1;if(E&&gc(F))continue;E=!1,l=F|1&l}}return gc(l)||E}function gc(e){return!(1&e)}function ub(e,t,n,l){if(null===t)return-1;let p=0;if(l||!n){let g=!1;for(;p<t.length;){const E=t[p];if(E===e)return p;if(3===E||6===E)g=!0;else{if(1===E||2===E){let O=t[++p];for(;"string"==typeof O;)O=t[++p];continue}if(4===E)break;if(0===E){p+=4;continue}}p+=g?1:2}return-1}return function fb(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const l=e[n];if("number"==typeof l)return-1;if(l===t)return n;n++}return-1}(t,e)}function Wv(e,t,n=!1){for(let l=0;l<t.length;l++)if(cb(e,t[l],n))return!0;return!1}function Go(e,t){e:for(let n=0;n<t.length;n++){const l=t[n];if(e.length===l.length){for(let p=0;p<e.length;p++)if(e[p]!==l[p])continue e;return!0}}return!1}function Xh(e,t){return e?":not("+t.trim()+")":t}function pb(e){let t=e[0],n=1,l=2,p="",g=!1;for(;n<e.length;){let E=e[n];if("string"==typeof E)if(2&l){const O=e[++n];p+="["+E+(O.length>0?'="'+O+'"':"")+"]"}else 8&l?p+="."+E:4&l&&(p+=" "+E);else""!==p&&!gc(E)&&(t+=Xh(g,p),p=""),l=E,g=g||!gc(l);n++}return""!==p&&(t+=Xh(g,p)),t}const ki={};function np(e=1){vb(gi(),wn(),ir()+e,!1)}function vb(e,t,n,l){if(!l)if(3&~t[Ar]){const g=e.preOrderHooks;null!==g&&jr(t,g,0,n)}else{const g=e.preOrderCheckHooks;null!==g&&yr(t,g,n)}Vn(n)}function Xd(e,t=Sr.Default){const n=wn();return null===n?Io(e,t):mf(Ti(),n,Ee(e),t)}function zv(){throw new Error("invalid")}function Fm(e,t,n,l,p,g){const E=T(null);try{let O=null;p&Mu.SignalBased&&(O=t[l][C]),null!==O&&void 0!==O.transformFn&&(g=O.transformFn(g)),p&Mu.HasDecoratorInputTransform&&(g=e.inputTransforms[l].call(t,g)),null!==e.setInput?e.setInput(t,O,g,n,l):Fc(t,O,l,g)}finally{T(E)}}function Yh(e,t,n,l,p,g,E,O,F,ie,Se){const Ve=t.blueprint.slice();return Ve[Ui]=p,Ve[Ar]=1228|l,(null!==ie||e&&2048&e[Ar])&&(Ve[Ar]|=2048),vn(Ve),Ve[Ao]=Ve[$a]=e,Ve[Fr]=n,Ve[Is]=E||e&&e[Is],Ve[Rr]=O||e&&e[Rr],Ve[mo]=F||e&&e[mo]||null,Ve[$o]=g,Ve[aa]=function xu(){return Kp++}(),Ve[es]=Se,Ve[No]=ie,Ve[ro]=2==t.type?e[ro]:Ve,Ve}function ud(e,t,n,l,p){let g=e.data[t];if(null===g)g=function Bm(e,t,n,l,p){const g=Il(),E=lc(),F=e.data[t]=function Zn(e,t,n,l,p,g){let E=t?t.injectorIndex:-1,O=0;return Cc()&&(O|=128),{type:n,index:l,insertBeforeIndex:null,injectorIndex:E,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:O,providerIndexes:0,value:p,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,E?g:g&&g.parent,n,t,l,p);return null===e.firstChild&&(e.firstChild=F),null!==g&&(E?null==g.child&&null!==F.parent&&(g.child=F):null===g.next&&(g.next=F,F.prev=g)),F}(e,t,n,l,p),function U(){return Wr.lFrame.inI18n}()&&(g.flags|=32);else if(64&g.type){g.type=n,g.value=l,g.attrs=p;const E=function kl(){const e=Wr.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();g.injectorIndex=null===E?-1:E.injectorIndex}return hs(g,!0),g}function Qh(e,t,n,l){if(0===n)return-1;const p=t.length;for(let g=0;g<n;g++)t.push(l),e.blueprint.push(l),e.data.push(null);return p}function _(e,t,n,l,p){const g=ir(),E=2&l;try{Vn(-1),E&&t.length>nt&&vb(e,t,nt,!1),Aa(E?2:0,p),n(l,p)}finally{Vn(g),Aa(E?3:1,p)}}function m(e,t,n){if(Fo(t)){const l=T(null);try{const g=t.directiveEnd;for(let E=t.directiveStart;E<g;E++){const O=e.data[E];O.contentQueries&&O.contentQueries(1,n[E],E)}}finally{T(l)}}}function d(e,t,n){ih()&&(function ec(e,t,n,l){const p=n.directiveStart,g=n.directiveEnd;Wo(n)&&function ma(e,t,n){const l=Es(t,e),p=D(n),g=e[Is].rendererFactory,E=ea(e,Yh(e,p,null,ho(n),l,t,null,g.createRenderer(l,n),null,null,null));e[t.index]=E}(t,n,e.data[p+n.componentOffset]),e.firstCreatePass||fu(n,t),x(l,t);const E=n.initialInputs;for(let O=p;O<g;O++){const F=e.data[O],ie=Ll(t,e,O,n);x(ie,t),null!==E&&Ou(0,O-p,ie,F,0,E),jo(F)&&(P(n.index,t)[Fr]=Ll(t,e,O,n))}}(e,t,n,Es(n,t)),!(64&~n.flags)&&Zh(e,t,n))}function v(e,t,n=Es){const l=t.localNames;if(null!==l){let p=t.index+1;for(let g=0;g<l.length;g+=2){const E=l[g+1],O=-1===E?n(t,e):e[E];e[p++]=O}}}function D(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=W(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function W(e,t,n,l,p,g,E,O,F,ie,Se){const Ve=nt+l,Ot=Ve+p,Lt=function ne(e,t){const n=[];for(let l=0;l<t;l++)n.push(l<e?null:ki);return n}(Ve,Ot),en="function"==typeof ie?ie():ie;return Lt[zn]={type:e,blueprint:Lt,template:n,queries:null,viewQuery:O,declTNode:t,data:Lt.slice().fill(null,Ve),bindingStartIndex:Ve,expandoStartIndex:Ot,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof g?g():g,pipeRegistry:"function"==typeof E?E():E,firstChild:null,schemas:F,consts:en,incompleteFirstPass:!1,ssrId:Se}}let yt=()=>null;function vr(e,t,n,l,p){for(let g in t){if(!t.hasOwnProperty(g))continue;const E=t[g];if(void 0===E)continue;l??={};let O,F=Mu.None;Array.isArray(E)?(O=E[0],F=E[1]):O=E;let ie=g;if(null!==p){if(!p.hasOwnProperty(g))continue;ie=p[g]}0===e?ti(l,n,ie,O,F):ti(l,n,ie,O)}return l}function ti(e,t,n,l,p){let g;e.hasOwnProperty(n)?(g=e[n]).push(t,l):g=e[n]=[t,l],void 0!==p&&g.push(p)}function so(e,t,n,l,p,g,E,O){const F=Es(t,n);let Se,ie=t.inputs;!O&&null!=ie&&(Se=ie[l])?(yb(e,n,Se,l,p),Wo(t)&&function fa(e,t){const n=P(t,e);16&n[Ar]||(n[Ar]|=64)}(n,t.index)):3&t.type&&(l=function _o(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(l),p=null!=E?E(p,t.value||"",l):p,g.setProperty(F,l,p))}function yl(e,t,n,l){if(ih()){const p=null===l?null:{"":-1},g=function Um(e,t){const n=e.directiveRegistry;let l=null,p=null;if(n)for(let g=0;g<n.length;g++){const E=n[g];if(Wv(t,E.selectors,!1))if(l||(l=[]),jo(E))if(null!==E.findHostDirectiveDefs){const O=[];p=p||new Map,E.findHostDirectiveDefs(E,O,p),l.unshift(...O,E),rp(e,t,O.length)}else l.unshift(E),rp(e,t,0);else p=p||new Map,E.findHostDirectiveDefs?.(E,l,p),l.push(E)}return null===l?null:[l,p]}(e,n);let E,O;null===g?E=O=null:[E,O]=g,null!==E&&pa(e,t,n,E,p,O),p&&function Kv(e,t,n){if(t){const l=e.localNames=[];for(let p=0;p<t.length;p+=2){const g=n[t[p+1]];if(null==g)throw new Gt(-301,!1);l.push(t[p],g)}}}(n,l,p)}n.mergedAttrs=fl(n.mergedAttrs,n.attrs)}function pa(e,t,n,l,p,g){for(let ie=0;ie<l.length;ie++)lh(fu(n,t),e,l[ie].type);!function mi(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,l.length);for(let ie=0;ie<l.length;ie++){const Se=l[ie];Se.providersResolver&&Se.providersResolver(Se)}let E=!1,O=!1,F=Qh(e,t,l.length,null);for(let ie=0;ie<l.length;ie++){const Se=l[ie];n.mergedAttrs=fl(n.mergedAttrs,Se.hostAttrs),wi(e,n,t,F,Se),ei(F,Se,p),null!==Se.contentQueries&&(n.flags|=4),(null!==Se.hostBindings||null!==Se.hostAttrs||0!==Se.hostVars)&&(n.flags|=64);const Ve=Se.type.prototype;!E&&(Ve.ngOnChanges||Ve.ngOnInit||Ve.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),E=!0),!O&&(Ve.ngOnChanges||Ve.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),O=!0),F++}!function yi(e,t,n){const p=t.directiveEnd,g=e.data,E=t.attrs,O=[];let F=null,ie=null;for(let Se=t.directiveStart;Se<p;Se++){const Ve=g[Se],Ot=n?n.get(Ve):null,en=Ot?Ot.outputs:null;F=vr(0,Ve.inputs,Se,F,Ot?Ot.inputs:null),ie=vr(1,Ve.outputs,Se,ie,en);const Rn=null===F||null===E||Pm(t)?null:ys(F,Se,E);O.push(Rn)}null!==F&&(F.hasOwnProperty("class")&&(t.flags|=8),F.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=O,t.inputs=F,t.outputs=ie}(e,n,g)}function Zh(e,t,n){const l=n.directiveStart,p=n.directiveEnd,g=n.index,E=function Ae(){return Wr.lFrame.currentDirectiveIndex}();try{Vn(g);for(let O=l;O<p;O++){const F=e.data[O],ie=t[O];Be(O),(null!==F.hostBindings||0!==F.hostVars||null!==F.hostAttrs)&&dd(F,ie)}}finally{Vn(-1),Be(E)}}function dd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function rp(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ei(e,t,n){if(n){if(t.exportAs)for(let l=0;l<t.exportAs.length;l++)n[t.exportAs[l]]=e;jo(t)&&(n[""]=e)}}function wi(e,t,n,l,p){e.data[l]=p;const g=p.factory||(p.factory=lo(p.type)),E=new Ds(g,jo(p),Xd);e.blueprint[l]=E,n[l]=E,function Ka(e,t,n,l,p){const g=p.hostBindings;if(g){let E=e.hostBindingOpCodes;null===E&&(E=e.hostBindingOpCodes=[]);const O=~t.index;(function Vl(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(E)!=O&&E.push(O),E.push(n,l,g)}}(e,t,l,Qh(e,n,p.hostVars,ki),p)}function ho(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Js(e,t,n,l,p,g){const E=Es(e,t);!function ol(e,t,n,l,p,g,E){if(null==g)e.removeAttribute(t,p,n);else{const O=null==E?gr(g):E(g,l||"",p);e.setAttribute(t,p,O,n)}}(t[Rr],E,g,e.value,n,l,p)}function Ou(e,t,n,l,p,g){const E=g[t];if(null!==E)for(let O=0;O<E.length;)Fm(l,n,E[O++],E[O++],E[O++],E[O++])}function ys(e,t,n){let l=null,p=0;for(;p<n.length;){const g=n[p];if(0!==g)if(5!==g){if("number"==typeof g)break;if(e.hasOwnProperty(g)){null===l&&(l=[]);const E=e[g];for(let O=0;O<E.length;O+=3)if(E[O]===t){l.push(g,E[O+1],E[O+2],n[p+1]);break}}p+=2}else p+=2;else p+=4}return l}function $m(e,t,n,l){return[e,!0,0,t,null,l,null,n,null,null]}function Gv(e,t){const n=e.contentQueries;if(null!==n){const l=T(null);try{for(let p=0;p<n.length;p+=2){const E=n[p+1];if(-1!==E){const O=e.data[E];Ht(n[p]),O.contentQueries(2,t[E],E)}}}finally{T(l)}}}function ea(e,t){return e[go]?e[oc][no]=t:e[go]=t,e[oc]=t,t}function tu(e,t,n){Ht(0);const l=T(null);try{t(e,n)}finally{T(l)}}function qh(e){return e[Po]??=[]}function ip(e){return e.cleanup??=[]}function Uw(e,t,n){return(null===e||jo(e))&&(n=function Bu(e){for(;Array.isArray(e);){if("object"==typeof e[_n])return e;e=e[Ui]}return null}(n[t.index])),n[Rr]}function Xv(e,t){const n=e[mo],l=n?n.get(Tc,null):null;l&&l.handleError(t)}function yb(e,t,n,l,p){for(let g=0;g<n.length;){const E=n[g++],O=n[g++],F=n[g++];Fm(e.data[E],t[E],l,O,F,p)}}function hd(e,t,n){const l=Tr(t,e);!function Sv(e,t,n){e.setValue(t,n)}(e[Rr],l,n)}function o2(e,t){const n=P(t,e),l=n[zn];!function s2(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(l,n);const p=n[Ui];null!==p&&null===n[es]&&(n[es]=om(p,n[mo])),Yv(l,n,n[Fr])}function Yv(e,t,n){Zt(t);try{const l=e.viewQuery;null!==l&&tu(1,l,n);const p=e.template;null!==p&&_(e,t,p,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Bs]?.finishViewCreation(e),e.staticContentQueries&&Gv(e,t),e.staticViewQueries&&tu(2,e.viewQuery,n);const g=e.components;null!==g&&function a2(e,t){for(let n=0;n<t.length;n++)o2(e,t[n])}(t,g)}catch(l){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),l}finally{t[Ar]&=-5,jn()}}function op(e,t,n,l){const p=T(null);try{const g=t.tView,F=Yh(e,g,n,4096&e[Ar]?4096:16,null,t,null,null,l?.injector??null,l?.embeddedViewInjector??null,l?.dehydratedView??null);F[ja]=e[t.index];const Se=e[Bs];return null!==Se&&(F[Bs]=Se.createEmbeddedView(g)),Yv(g,F,n),F}finally{T(p)}}function $w(e,t){const n=Hr+t;if(n<e.length)return e[n]}function Jh(e,t){return!t||null===t.firstChild||Eu(e)}function sp(e,t,n,l=!0){const p=t[zn];if(function tb(e,t,n,l){const p=Hr+l,g=n.length;l>0&&(n[p-1][no]=t),l<g-Hr?(t[no]=n[p],_i(n,Hr+l,t)):(n.push(t),t[no]=null),t[Ao]=n;const E=t[ja];null!==E&&n!==E&&Mv(E,t);const O=t[Bs];null!==O&&O.insertView(e),hi(t),t[Ar]|=128}(p,t,e,n),l){const E=Lm(n,e),O=t[Rr],F=Om(O,e[Cr]);null!==F&&function Jy(e,t,n,l,p,g){l[Ui]=p,l[$o]=t,tp(e,l,n,1,p,g)}(p,e[$o],O,t,F,E)}const g=t[es];null!==g&&null!==g.firstChild&&(g.firstChild=null)}function bb(e,t){const n=zh(e,t);return void 0!==n&&Kh(n[zn],n),n}function jm(e,t,n,l,p=!1){for(;null!==n;){if(128===n.type){n=p?n.projectionNext:n.next;continue}const g=t[n.index];null!==g&&l.push(Xi(g)),di(g)&&wb(g,l);const E=n.type;if(8&E)jm(e,t,n.child,l);else if(32&E){const O=Tm(n,t);let F;for(;F=O();)l.push(F)}else if(16&E){const O=Fv(t,n);if(Array.isArray(O))l.push(...O);else{const F=xs(t[ro]);jm(F[zn],F,O,l,!0)}}n=p?n.projectionNext:n.next}return l}function wb(e,t){for(let n=Hr;n<e.length;n++){const l=e[n],p=l[zn].firstChild;null!==p&&jm(l[zn],l,p,t)}e[Cr]!==e[Ui]&&t.push(e[Cr])}let jw=[];const d2={...N,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{io(e.lView)},consumerOnSignalRead(){this.lView[_e]=this}},f2={...N,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=xs(e.lView);for(;t&&!Vw(t[zn]);)t=xs(t);t&&nn(t)},consumerOnSignalRead(){this.lView[_e]=this}};function Vw(e){return 2!==e.type}function Hw(e){if(null===e[q])return;let t=!0;for(;t;){let n=!1;for(const l of e[q])l.dirty&&(n=!0,null===l.zone||Zone.current===l.zone?l.run():l.zone.run(()=>l.run()));t=n&&!!(8192&e[Ar])}}function Qv(e,t=!0,n=0){const p=e[Is].rendererFactory;p.begin?.();try{!function m2(e,t){const n=gd();try{Zs(!0),Eb(e,t);let l=0;for(;ri(e);){if(100===l)throw new Gt(103,!1);l++,Eb(e,1)}}finally{Zs(n)}}(e,n)}catch(E){throw t&&Xv(e,E),E}finally{p.end?.()}}function zw(e,t,n,l){const p=t[Ar];if(!(256&~p))return;Zt(t);let O=!0,F=null,ie=null;Vw(e)?(ie=function l2(e){return e[_e]??function c2(e){const t=jw.pop()??Object.create(d2);return t.lView=e,t}(e)}(t),F=xe(ie)):null===function S(){return c}()?(O=!1,ie=function h2(e){const t=e[_e]??Object.create(f2);return t.lView=e,t}(t),F=xe(ie)):t[_e]&&(Ce(t[_e]),t[_e]=null);try{vn(t),function Vu(e){return Wr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&_(e,t,n,2,l);const Se=!(3&~p);if(Se){const Lt=e.preOrderCheckHooks;null!==Lt&&yr(t,Lt,null)}else{const Lt=e.preOrderHooks;null!==Lt&&jr(t,Lt,0,null),Fi(t,0)}if(function g2(e){for(let t=Yt(e);null!==t;t=qt(t)){if(!(t[Ar]&xi.HasTransplantedViews))continue;const n=t[Li];for(let l=0;l<n.length;l++)nn(n[l])}}(t),Hw(t),Kw(t,0),null!==e.contentQueries&&Gv(e,t),Se){const Lt=e.contentCheckHooks;null!==Lt&&yr(t,Lt)}else{const Lt=e.contentHooks;null!==Lt&&jr(t,Lt,1),Fi(t,1)}!function _b(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let l=0;l<n.length;l++){const p=n[l];if(p<0)Vn(~p);else{const g=p,E=n[++l],O=n[++l];oe(E,g),O(2,t[g])}}}finally{Vn(-1)}}(e,t);const Ve=e.components;null!==Ve&&Xw(t,Ve,0);const Ot=e.viewQuery;if(null!==Ot&&tu(2,Ot,l),Se){const Lt=e.viewCheckHooks;null!==Lt&&yr(t,Lt)}else{const Lt=e.viewHooks;null!==Lt&&jr(t,Lt,2),Fi(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[de]){for(const Lt of t[de])Lt();t[de]=null}t[Ar]&=-73}catch(Se){throw io(t),Se}finally{null!==ie&&(Re(ie,F),O&&function u2(e){e.lView[_e]!==e&&(e.lView=null,jw.push(e))}(ie)),jn()}}function Kw(e,t){for(let n=Yt(e);null!==n;n=qt(n))for(let l=Hr;l<n.length;l++)Gw(n[l],t)}function v2(e,t,n){Gw(P(t,e),n)}function Gw(e,t){he(e)&&Eb(e,t)}function Eb(e,t){const l=e[zn],p=e[Ar],g=e[_e];let E=!!(0===t&&16&p);if(E||=!!(64&p&&0===t),E||=!!(1024&p),E||=!(!g?.dirty||!Me(g)),E||=!1,g&&(g.dirty=!1),e[Ar]&=-9217,E)zw(l,e,l.template,e[Fr]);else if(8192&p){Hw(e),Kw(e,1);const O=l.components;null!==O&&Xw(e,O,1)}}function Xw(e,t,n){for(let l=0;l<t.length;l++)v2(e,t[l],n)}function Vm(e,t){const n=gd()?64:1088;for(e[Is].changeDetectionScheduler?.notify(t);e;){e[Ar]|=n;const l=xs(e);if(ks(e)&&!l)return e;e=l}return null}class Hm{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){const t=this._lView,n=t[zn];return jm(n,t,n.firstChild,[])}constructor(t,n,l=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=l}get context(){return this._lView[Fr]}get dirty(){return!!(9280&this._lView[Ar])||!!this._lView[_e]?.dirty}set context(t){this._lView[Fr]=t}get destroyed(){return!(256&~this._lView[Ar])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Ao];if(di(t)){const n=t[8],l=n?n.indexOf(this):-1;l>-1&&(zh(t,l),La(n,l))}this._attachedToViewContainer=!1}Kh(this._lView[zn],this._lView)}onDestroy(t){as(this._lView,t)}markForCheck(){Vm(this._cdRefInjectingView||this._lView,4)}markForRefresh(){nn(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ar]&=-129}reattach(){hi(this._lView),this._lView[Ar]|=128}detectChanges(){this._lView[Ar]|=1024,Qv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Gt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=ks(this._lView),n=this._lView[ja];null!==n&&!t&&Qf(n,this._lView),Tv(this._lView[zn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Gt(902,!1);this._appRef=t;const n=ks(this._lView),l=this._lView[ja];null!==l&&!n&&Mv(l,this._lView),hi(this._lView)}}let Wm=(()=>class e{static __NG_ELEMENT_ID__=b2})();const _2=Wm,y2=class extends _2{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,l){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=l}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,l){const p=op(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:l});return new Hm(p)}};function b2(){return Zv(Ti(),wn())}function Zv(e,t){return 4&e.type?new y2(t,e,ml(e,t)):null}let m1=()=>null;function lp(e,t){return m1(e,t)}class pS{}class g1{}class mS{resolveComponentFactory(t){throw Error(`No component factory found for ${cr(t)}.`)}}class r_{static NULL=new mS}class Nb{}let gS=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function vS(){const e=wn(),n=P(Ti().index,e);return(Qr(n)?n:e)[Rr]}()})(),_S=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:()=>null})}return e})();function Yd(e){return!!Or(e)}function o_(e,t,n){let l=n?e.styles:null,p=n?e.classes:null,g=0;if(null!==t)for(let E=0;E<t.length;E++){const O=t[E];"number"==typeof O?g=O:1==g?p=Jr(p,O):2==g&&(l=Jr(l,O+": "+t[++E]+";"))}n?e.styles=l:e.stylesWithoutHost=l,n?e.classes=p:e.classesWithoutHost=p}class y1 extends r_{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Dr(t);return new eg(n,this.ngModule)}}function b1(e,t){const n=[];for(const l in e){if(!e.hasOwnProperty(l))continue;const p=e[l];if(void 0===p)continue;const g=Array.isArray(p),E=g?p[0]:p;n.push(t?{propName:E,templateName:l,isSignal:!!((g?p[1]:Mu.None)&Mu.SignalBased)}:{propName:E,templateName:l})}return n}class eg extends g1{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){const t=this.componentDef,n=t.inputTransforms,l=b1(t.inputs,!0);if(null!==n)for(const p of l)n.hasOwnProperty(p.propName)&&(p.transform=n[p.propName]);return l}get outputs(){return b1(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function mb(e){return e.map(pb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,l,p){const g=T(null);try{let E=(p=p||this.ngModule)instanceof cs?p:p?.injector;E&&null!==this.componentDef.getStandaloneInjector&&(E=this.componentDef.getStandaloneInjector(E)||E);const O=E?new Rl(t,E):t,F=O.get(Nb,null);if(null===F)throw new Gt(407,!1);const Ve={rendererFactory:F,sanitizer:O.get(_S,null),changeDetectionScheduler:O.get(Pl,null)},Ot=F.createRenderer(null,this.componentDef),Lt=this.componentDef.selectors[0][0]||"div",en=l?function we(e,t,n,l){const g=l.get(Dg,!1)||n===Rc.ShadowDom,E=e.selectRootElement(t,g);return function Ye(e){yt(e)}(E),E}(Ot,l,this.componentDef.encapsulation,O):Yf(Ot,Lt,function wS(e){const t=e.toLowerCase();return"svg"===t?Ec:"math"===t?"math":null}(Lt));let Rn=512;this.componentDef.signals?Rn|=4096:this.componentDef.onPush||(Rn|=16);let qn=null;null!==en&&(qn=om(en,O,!0));const lr=W(0,null,null,1,0,null,null,null,null,null,null),Nn=Yh(null,lr,null,Rn,null,null,Ve,Ot,O,null,qn);Zt(Nn);let vi,Hi,Co=null;try{const ta=this.componentDef;let nc,Tp=null;ta.findHostDirectiveDefs?(nc=[],Tp=new Map,ta.findHostDirectiveDefs(ta,nc,Tp),nc.push(ta)):nc=[ta];const ZD=function xS(e,t){const n=e[zn],l=nt;return e[l]=t,ud(n,l,2,"#host",null)}(Nn,en);Co=function CS(e,t,n,l,p,g,E){const O=p[zn];!function DS(e,t,n,l){for(const p of e)t.mergedAttrs=fl(t.mergedAttrs,p.hostAttrs);null!==t.mergedAttrs&&(o_(t,t.mergedAttrs,!0),null!==n&&Vv(l,n,t))}(l,e,t,E);let F=null;null!==t&&(F=om(t,p[mo]));const ie=g.rendererFactory.createRenderer(t,n),Se=Yh(p,D(n),null,ho(n),p[e.index],e,g,ie,null,null,F);return O.firstCreatePass&&rp(O,e,l.length-1),ea(p,Se),p[e.index]=Se}(ZD,en,ta,nc,Nn,Ve,Ot),Hi=L(lr,nt),en&&function AS(e,t,n,l){if(l)Hc(e,n,["ng-version","19.0.3"]);else{const{attrs:p,classes:g}=function gb(e){const t=[],n=[];let l=1,p=2;for(;l<e.length;){let g=e[l];if("string"==typeof g)2===p?""!==g&&t.push(g,e[++l]):8===p&&n.push(g);else{if(!gc(p))break;p=g}l++}return{attrs:t,classes:n}}(t.selectors[0]);p&&Hc(e,n,p),g&&g.length>0&&jv(e,n,g.join(" "))}}(Ot,ta,en,l),void 0!==n&&function TS(e,t,n){const l=e.projection=[];for(let p=0;p<t.length;p++){const g=n[p];l.push(null!=g&&g.length?Array.from(g):null)}}(Hi,this.ngContentSelectors,n),vi=function SS(e,t,n,l,p,g){const E=Ti(),O=p[zn],F=Es(E,p);pa(O,p,E,n,null,l);for(let Se=0;Se<n.length;Se++)x(Ll(p,O,E.directiveStart+Se,E),p);Zh(O,p,E),F&&x(F,p);const ie=Ll(p,O,E.directiveStart+E.componentOffset,E);if(e[Fr]=p[Fr]=ie,null!==g)for(const Se of g)Se(ie,t);return m(O,E,p),ie}(Co,ta,nc,Tp,Nn,[MS]),Yv(lr,Nn,null)}catch(ta){throw null!==Co&&Zu(Co),Zu(Nn),ta}finally{jn()}return new ES(this.componentType,vi,ml(Hi,Nn),Nn,Hi)}finally{T(g)}}}class ES extends pS{location;_rootLView;_tNode;instance;hostView;changeDetectorRef;componentType;previousInputValues=null;constructor(t,n,l,p,g){super(),this.location=l,this._rootLView=p,this._tNode=g,this.instance=n,this.hostView=this.changeDetectorRef=new Hm(p,void 0,!1),this.componentType=t}setInput(t,n){const l=this._tNode.inputs;let p;if(null!==l&&(p=l[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const g=this._rootLView;yb(g[zn],g,p,t,n),this.previousInputValues.set(t,n),Vm(P(this._tNode.index,g),1)}}get injector(){return new Ss(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function MS(){const e=Ti();Cs(wn()[zn],e)}let s_=(()=>class e{static __NG_ELEMENT_ID__=IS})();function IS(){return x1(Ti(),wn())}const kS=s_,w1=class extends kS{_lContainer;_hostTNode;_hostLView;constructor(t,n,l){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=l}get element(){return ml(this._hostTNode,this._hostLView)}get injector(){return new Ss(this._hostTNode,this._hostLView)}get parentInjector(){const t=Wc(this._hostTNode,this._hostLView);if(vd(t)){const n=Sc(t,this._hostLView),l=Hu(t);return new Ss(n[zn].data[l+8],n)}return new Ss(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=E1(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Hr}createEmbeddedView(t,n,l){let p,g;"number"==typeof l?p=l:null!=l&&(p=l.index,g=l.injector);const E=lp(this._lContainer,t.ssrId),O=t.createEmbeddedViewImpl(n||{},g,E);return this.insertImpl(O,p,Jh(this._hostTNode,E)),O}createComponent(t,n,l,p,g){const E=t&&!function Jo(e){return"function"==typeof e}(t);let O;if(E)O=n;else{const en=n||{};O=en.index,l=en.injector,p=en.projectableNodes,g=en.environmentInjector||en.ngModuleRef}const F=E?t:new eg(Dr(t)),ie=l||this.parentInjector;if(!g&&null==F.ngModule){const Rn=(E?ie:this.parentInjector).get(cs,null);Rn&&(g=Rn)}const Se=Dr(F.componentType??{}),Ve=lp(this._lContainer,Se?.id??null),Lt=F.create(ie,p,Ve?.firstChild??null,g);return this.insertImpl(Lt.hostView,O,Jh(this._hostTNode,Ve)),Lt}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,l){const p=t._lView;if(function We(e){return di(e[Ao])}(p)){const O=this.indexOf(t);if(-1!==O)this.detach(O);else{const F=p[Ao],ie=new w1(F,F[$o],F[Ao]);ie.detach(ie.indexOf(t))}}const g=this._adjustIndex(n),E=this._lContainer;return sp(E,p,g,l),t.attachToViewContainerRef(),_i(Fb(E),g,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=E1(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),l=zh(this._lContainer,n);l&&(La(Fb(this._lContainer),n),Kh(l[zn],l))}detach(t){const n=this._adjustIndex(t,-1),l=zh(this._lContainer,n);return l&&null!=La(Fb(this._lContainer),n)?new Hm(l):null}_adjustIndex(t,n=0){return t??this.length+n}};function E1(e){return e[8]}function Fb(e){return e[8]||(e[8]=[])}function x1(e,t){let n;const l=t[e.index];return di(l)?n=l:(n=$m(l,t,null,e),t[e.index]=n,ea(t,n)),C1(n,t,e,l),new w1(n,e,t)}let C1=function S1(e,t,n,l){if(e[Cr])return;let p;p=8&n.type?Xi(l):function OS(e,t){const n=e[Rr],l=n.createComment(""),p=Es(t,e);return cd(n,Om(n,p),l,function nb(e,t){return e.nextSibling(t)}(n,p),!1),l}(t,n),e[Cr]=p},Bb=()=>!1;class Ub{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new Ub(this.queryList)}setDirty(){this.queryList.setDirty()}}class $b{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const l=null!==t.contentQueries?t.contentQueries[0]:n.length,p=[];for(let g=0;g<l;g++){const E=n.getByIndex(g);p.push(this.queries[E.indexInDeclarationView].clone())}return new $b(p)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==zb(t,n).matches&&this.queries[n].setDirty()}}class A1{flags;read;predicate;constructor(t,n,l=null){this.flags=n,this.read=l,this.predicate="string"==typeof t?function $S(e){return e.split(",").map(t=>t.trim())}(t):t}}class jb{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let l=0;l<this.queries.length;l++)this.queries[l].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let l=0;l<this.length;l++){const p=null!==n?n.length:0,g=this.getByIndex(l).embeddedTView(t,p);g&&(g.indexInDeclarationView=l,null!==n?n.push(g):n=[g])}return null!==n?new jb(n):null}template(t,n){for(let l=0;l<this.queries.length;l++)this.queries[l].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Vb{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Vb(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1&~this.metadata.flags){const n=this._declarationNodeIndex;let l=t.parent;for(;null!==l&&8&l.type&&l.index!==n;)l=l.parent;return n===(null!==l?l.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const l=this.metadata.predicate;if(Array.isArray(l))for(let p=0;p<l.length;p++){const g=l[p];this.matchTNodeWithReadOption(t,n,PS(n,g)),this.matchTNodeWithReadOption(t,n,mu(n,t,g,!1,!1))}else l===Wm?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,mu(n,t,l,!1,!1))}matchTNodeWithReadOption(t,n,l){if(null!==l){const p=this.metadata.read;if(null!==p)if(p===Mc||p===s_||p===Wm&&4&n.type)this.addMatch(n.index,-2);else{const g=mu(n,t,p,!1,!1);null!==g&&this.addMatch(n.index,g)}else this.addMatch(n.index,l)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function PS(e,t){const n=e.localNames;if(null!==n)for(let l=0;l<n.length;l+=2)if(n[l]===t)return n[l+1];return null}function BS(e,t,n,l){return-1===n?function FS(e,t){return 11&e.type?ml(e,t):4&e.type?Zv(e,t):null}(t,e):-2===n?function US(e,t,n){return n===Mc?ml(t,e):n===Wm?Zv(t,e):n===s_?x1(t,e):void 0}(e,t,l):Ll(e,e[zn],n,t)}function T1(e,t,n,l){const p=t[Bs].queries[l];if(null===p.matches){const g=e.data,E=n.matches,O=[];for(let F=0;null!==E&&F<E.length;F+=2){const ie=E[F];O.push(ie<0?null:BS(t,g[ie],E[F+1],n.metadata.read))}p.matches=O}return p.matches}function Hb(e,t,n,l){const p=e.queries.getByIndex(n),g=p.matches;if(null!==g){const E=T1(e,t,p,n);for(let O=0;O<g.length;O+=2){const F=g[O];if(F>0)l.push(E[O/2]);else{const ie=g[O+1],Se=t[-F];for(let Ve=Hr;Ve<Se.length;Ve++){const Ot=Se[Ve];Ot[ja]===Ot[Ao]&&Hb(Ot[zn],Ot,ie,l)}if(null!==Se[Li]){const Ve=Se[Li];for(let Ot=0;Ot<Ve.length;Ot++){const Lt=Ve[Ot];Hb(Lt[zn],Lt,ie,l)}}}}}return l}function Wb(e,t){return e[Bs].queries[t].queryList}function M1(e,t,n){const l=new Od(!(4&~n));return function Er(e,t,n,l){const p=qh(t);p.push(n),e.firstCreatePass&&ip(e).push(l,p.length-1)}(e,t,l,l.destroy),(t[Bs]??=new $b).queries.push(new Ub(l))-1}function k1(e,t,n,l){const p=gi();if(p.firstCreatePass){const g=Ti();O1(p,new A1(t,n,l),g.index),function jS(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(p,e),!(2&~n)&&(p.staticContentQueries=!0)}return M1(p,wn(),n)}function O1(e,t,n){null===e.queries&&(e.queries=new jb),e.queries.track(new Vb(t,n))}function zb(e,t){return e.queries.getByIndex(t)}function R1(e,t){const n=e[zn],l=zb(n,t);return l.crossesNgTemplate?Hb(n,e,t,[]):T1(n,e,l,t)}function Kb(e){return"function"==typeof e&&void 0!==e[C]}function cp(e,t){ha("NgSignals");const n=function Fe(e){const t=Object.create(mt);t.value=e;const n=()=>(G(t),t.value);return n[C]=t,n}(e),l=n[C];return t?.equal&&(l.equal=t.equal),n.set=p=>dt(l,p),n.update=p=>function Ge(e,t){me()||Qe(),dt(e,t(e.value))}(l,p),n.asReadonly=Gb.bind(n),n}function Gb(){const e=this[C];if(void 0===e.readonlyFn){const t=()=>this();t[C]=e,e.readonlyFn=t}return e.readonlyFn}function N1(e){return Kb(e)&&"function"==typeof e.set}function Xb(e,t,n){let l;const p=vt(()=>{l._dirtyCounter();const g=function VS(e,t){const n=e._lView,l=e._queryIndex;if(void 0===n||void 0===l||4&n[Ar])return t?void 0:hn;const p=Wb(n,l),g=R1(n,l);return p.reset(g,$s),t?p.first:p._changesDetected||void 0===e._flatValue?e._flatValue=p.toArray():e._flatValue}(l,e);if(t&&void 0===g)throw new Gt(-951,!1);return g});return l=p[C],l._dirtyCounter=cp(0),l._flatValue=void 0,p}function U1(e,t){return function L1(e){return Xb(!0,!1)}()}const WS=(U1.required=function HS(e,t){return function P1(e){return Xb(!0,!0)}()},U1);class tf{}class K1{}function JS(e,t){return new Yb(e,t??null,[])}class Yb extends tf{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new y1(this);constructor(t,n,l,p=!0){super(),this.ngModuleType=t,this._parent=n;const g=Or(t);this._bootstrapComponents=jl(g.bootstrap),this._r3Injector=Ef(t,n,[{provide:tf,useValue:this},{provide:r_,useValue:this.componentFactoryResolver},...l],cr(t),new Set(["environment"])),p&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Qb extends K1{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Yb(this.moduleType,t,[])}}class G1 extends tf{injector;componentFactoryResolver=new y1(this);instance=null;constructor(t){super();const n=new Fs([...t.providers,{provide:tf,useValue:this},{provide:r_,useValue:this.componentFactoryResolver}],t.parent||El(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Zb(e,t,n=null){return new G1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let tA=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const l=Wl(0,n.type),p=l.length>0?Zb([l],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,p)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=oi({token:e,providedIn:"environment",factory:()=>new e(Io(cs))})}return e})();function X1(e){return B(()=>{const t=q1(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ic.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?p=>p.get(tA).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Rc.Emulated,styles:e.styles||hn,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&ha("NgStandalone"),J1(n);const l=e.dependencies;return n.directiveDefs=l_(l,!1),n.pipeDefs=l_(l,!0),n.id=function oA(e){let t=0;const l=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const g of l.join("|"))t=Math.imul(31,t)+g.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function nA(e){return Dr(e)||Ei(e)}function rA(e){return null!==e}function qb(e){return B(()=>({type:e.type,bootstrap:e.bootstrap||hn,declarations:e.declarations||hn,imports:e.imports||hn,exports:e.exports||hn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Y1(e,t){if(null==e)return Ln;const n={};for(const l in e)if(e.hasOwnProperty(l)){const p=e[l];let g,E,O=Mu.None;Array.isArray(p)?(O=p[0],g=p[1],E=p[2]??g):(g=p,E=p),t?(n[g]=O!==Mu.None?[l,O]:l,t[g]=E):n[g]=l}return n}function Q1(e){return B(()=>{const t=q1(e);return J1(t),t})}function Z1(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function q1(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Ln,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||hn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Y1(e.inputs,t),outputs:Y1(e.outputs),debugInfo:null}}function J1(e){e.features?.forEach(t=>t(e))}function l_(e,t){if(!e)return null;const n=t?ui:nA;return()=>("function"==typeof e?e():e).map(l=>n(l)).filter(rA)}function Jb(e){let t=function eE(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const l=[e];for(;t;){let p;if(jo(e))p=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Gt(903,!1);p=t.\u0275dir}if(p){if(n){l.push(p);const E=e;E.inputs=c_(e.inputs),E.inputTransforms=c_(e.inputTransforms),E.declaredInputs=c_(e.declaredInputs),E.outputs=c_(e.outputs);const O=p.hostBindings;O&&uA(e,O);const F=p.viewQuery,ie=p.contentQueries;if(F&&lA(e,F),ie&&cA(e,ie),sA(e,p),Bn(e.outputs,p.outputs),jo(p)&&p.data.animation){const Se=e.data;Se.animation=(Se.animation||[]).concat(p.data.animation)}}const g=p.features;if(g)for(let E=0;E<g.length;E++){const O=g[E];O&&O.ngInherit&&O(e),O===Jb&&(n=!1)}}t=Object.getPrototypeOf(t)}!function aA(e){let t=0,n=null;for(let l=e.length-1;l>=0;l--){const p=e[l];p.hostVars=t+=p.hostVars,p.hostAttrs=fl(p.hostAttrs,n=fl(n,p.hostAttrs))}}(l)}function sA(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const l=t.inputs[n];if(void 0!==l&&(e.inputs[n]=l,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const p=Array.isArray(l)?l[0]:l;if(!t.inputTransforms.hasOwnProperty(p))continue;e.inputTransforms??={},e.inputTransforms[p]=t.inputTransforms[p]}}}function c_(e){return e===Ln?{}:e===hn?[]:e}function lA(e,t){const n=e.viewQuery;e.viewQuery=n?(l,p)=>{t(l,p),n(l,p)}:t}function cA(e,t){const n=e.contentQueries;e.contentQueries=n?(l,p,g)=>{t(l,p,g),n(l,p,g)}:t}function uA(e,t){const n=e.hostBindings;e.hostBindings=n?(l,p)=>{t(l,p),n(l,p)}:t}function tE(e){const t=n=>{const l=Array.isArray(e);null===n.hostDirectives?(n.findHostDirectiveDefs=nE,n.hostDirectives=l?e.map(e0):[e]):l?n.hostDirectives.unshift(...e.map(e0)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function nE(e,t,n){if(null!==e.hostDirectives)for(const l of e.hostDirectives)if("function"==typeof l){const p=l();for(const g of p)rE(e0(g),t,n)}else rE(l,t,n)}function rE(e,t,n){const l=Ei(e.directive);(function pA(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[t[n]]=e[n])})(l.declaredInputs,e.inputs),nE(l,t,n),n.set(l,e),t.push(l)}function e0(e){return"function"==typeof e?{directive:Ee(e),inputs:Ln,outputs:Ln}:{directive:Ee(e.directive),inputs:iE(e.inputs),outputs:iE(e.outputs)}}function iE(e){if(void 0===e||0===e.length)return Ln;const t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function sE(e){const t=e.inputConfig,n={};for(const l in t)if(t.hasOwnProperty(l)){const p=t[l];Array.isArray(p)&&p[3]&&(n[l]=p[3])}e.inputTransforms=n}function u_(e){return!!t0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function t0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ru(e,t,n){return e[t]=n}function ng(e,t){return e[t]}function Hs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function nf(e,t,n,l){const p=Hs(e,t,n);return Hs(e,t+1,l)||p}function d_(e,t,n,l,p){const g=nf(e,t,n,l);return Hs(e,t+2,p)||g}function Nc(e,t,n,l,p,g){const E=nf(e,t,n,l);return nf(e,t+2,p,g)||E}function rg(e,t,n,l,p,g,E,O,F,ie){const Se=n+nt,Ve=t.firstCreatePass?function _A(e,t,n,l,p,g,E,O,F){const ie=t.consts,Se=ud(t,e,4,E||null,O||null);yl(t,n,Se,Ct(ie,F)),Cs(t,Se);const Ve=Se.tView=W(2,Se,l,p,g,t.directiveRegistry,t.pipeRegistry,null,t.schemas,ie,null);return null!==t.queries&&(t.queries.template(t,Se),Ve.queries=t.queries.embeddedTView(Se)),Se}(Se,t,e,l,p,g,E,O,F):t.data[Se];hs(Ve,!1);const Ot=aE(t,e,Ve,n);Mi()&&Jf(t,e,Ot,Ve),x(Ot,e);const Lt=$m(Ot,e,Ot,Ve);return e[Se]=Lt,ea(e,Lt),function D1(e,t,n){return Bb(e,t,n)}(Lt,Ve,e),ds(Ve)&&d(t,e,Ve),null!=F&&v(e,Ve,ie),Ve}function n0(e,t,n,l,p,g,E,O){const F=wn(),ie=gi();return rg(F,ie,e,t,n,l,p,Ct(ie.consts,g),E,O),n0}let aE=function lE(e,t,n,l){return Zi(!0),t[Rr].createComment("")};let mE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const _E="ng";function rT(e,t){!function bE(e,t){if(typeof COMPILED>"u"||!COMPILED){const n=Vt;n[_E]??={},n[_E][e]=t}}(e,t)}const wE=new ct(""),EE=new ct("");let a0,iT=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,l,p){this._ngZone=n,this.registry=l,a0||(function oT(e){a0=e}(p),p.addToWindow(l)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Vo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(l=>!l.updateCb||!l.updateCb(n)||(clearTimeout(l.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,l,p){let g=-1;l&&l>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(E=>E.timeoutId!==g),n()},l)),this._callbacks.push({doneCb:n,timeoutId:g,updateCb:p})}whenStable(n,l,p){if(p&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,l,p),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,l,p){return[]}static \u0275fac=function(l){return new(l||e)(Io(Vo),Io(xE),Io(EE))};static \u0275prov=oi({token:e,factory:e.\u0275fac})}return e})(),xE=(()=>{class e{_applications=new Map;registerApplication(n,l){this._applications.set(n,l)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,l=!0){return a0?.findTestabilityInTree(this,n,l)??null}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function l0(e){return!!e&&"function"==typeof e.then}function CE(e){return!!e&&"function"==typeof e.subscribe}const c0=new ct("");let DE=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,l)=>{this.resolve=n,this.reject=l});appInits=tr(c0,{optional:!0})??[];injector=tr(As);constructor(){}runInitializers(){if(this.initialized)return;const n=[];for(const p of this.appInits){const g=Ua(this.injector,p);if(l0(g))n.push(g);else if(CE(g)){const E=new Promise((O,F)=>{g.subscribe({complete:O,error:F})});n.push(E)}}const l=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{l()}).catch(p=>{this.reject(p)}),0===n.length&&l(),this.initialized=!0}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),u0=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new SE})}return e})();class SE{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){const n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);const l=this.queues.get(n);l.has(t)||(this.queuedEffectCount++,l.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}const og=new ct("");let Lc=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=tr(Tf);afterRenderManager=tr(Mg);zonelessEnabled=tr(Gu);rootEffectScheduler=tr(u0);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Nt.B;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=tr(rl).hasPendingTasks.pipe((0,an.T)(n=>!n));constructor(){tr(Rh,{optional:!0})}whenStable(){let n;return new Promise(l=>{n=this.isStable.subscribe({next:p=>{p&&l()}})}).finally(()=>{n.unsubscribe()})}_injector=tr(cs);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,l){const p=n instanceof g1;if(!this._injector.get(DE).done)throw!p&&po(n),new Gt(405,!1);let E;E=p?n:this._injector.get(r_).resolveComponentFactory(n),this.componentTypes.push(E.componentType);const O=function sT(e){return e.isBoundToModule}(E)?void 0:this._injector.get(tf),ie=E.create(As.NULL,[],l||E.selector,O),Se=ie.location.nativeElement,Ve=ie.injector.get(wE,null);return Ve?.registerApplication(Se),ie.onDestroy(()=>{this.detachView(ie.hostView),g_(this.components,ie),Ve?.unregisterApplication(Se)}),this._loadComponent(ie),ie}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){const l=this.tracingSnapshot;return this.tracingSnapshot=null,l.run(Yp.CHANGE_DETECTION,this._tick),void l.dispose()}if(this._runningTick)throw new Gt(101,!1);const n=T(null);try{this._runningTick=!0,this.synchronize()}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,T(n),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Nb,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;0!==this.dirtyFlags&&n++<10;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const n=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:l,notifyErrorHandler:p}of this.allViews)cT(l,p,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>ri(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const l=n;this._views.push(l),l.attachToAppRef(this)}detachView(n){const l=n;g_(this._views,l),l.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(og,[]).forEach(p=>p(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>g_(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Gt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function g_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function cT(e,t,n,l){(n||ri(e))&&Qv(e,t,n&&!l?0:1)}function f0(e,t,n,l){const p=wn();return Hs(p,Va(),t)&&(gi(),Js(dr(),p,e,t,n,l)),f0}function pp(e,t,n,l){return Hs(e,Va(),n)?t+gr(n)+l:ki}function v_(e,t){return e<<17|t<<2}function eh(e){return e>>17&32767}function p0(e){return 2|e}function sf(e){return(131068&e)>>2}function m0(e,t){return-131069&e|t<<2}function g0(e){return 1|e}function VE(e,t,n,l){const p=e[n+1],g=null===t;let E=l?eh(p):sf(p),O=!1;for(;0!==E&&(!1===O||g);){const ie=e[E+1];XT(e[E],t)&&(O=!0,e[E+1]=l?g0(ie):p0(ie)),E=l?eh(ie):sf(ie)}O&&(e[n+1]=l?p0(p):g0(p))}function XT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&re(e,t)>=0}const Ra={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function HE(e){return e.substring(Ra.key,Ra.keyEnd)}function YT(e){return e.substring(Ra.value,Ra.valueEnd)}function WE(e,t){const n=Ra.textEnd;return n===t?-1:(t=Ra.keyEnd=function qT(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ra.key=t,n),Ep(e,t,n))}function zE(e,t){const n=Ra.textEnd;let l=Ra.key=Ep(e,t,n);return n===l?-1:(l=Ra.keyEnd=function JT(e,t,n){let l;for(;t<n&&(45===(l=e.charCodeAt(t))||95===l||(-33&l)>=65&&(-33&l)<=90||l>=48&&l<=57);)t++;return t}(e,l,n),l=GE(e,l,n),l=Ra.value=Ep(e,l,n),l=Ra.valueEnd=function eM(e,t,n){let l=-1,p=-1,g=-1,E=t,O=E;for(;E<n;){const F=e.charCodeAt(E++);if(59===F)return O;34===F||39===F?O=E=XE(e,F,E,n):t===E-4&&85===g&&82===p&&76===l&&40===F?O=E=XE(e,41,E,n):F>32&&(O=E),g=p,p=l,l=-33&F}return O}(e,l,n),GE(e,l,n))}function KE(e){Ra.key=0,Ra.keyEnd=0,Ra.value=0,Ra.valueEnd=0,Ra.textEnd=e.length}function Ep(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function GE(e,t,n,l){return(t=Ep(e,t,n))<n&&t++,t}function XE(e,t,n,l){let p=-1,g=n;for(;g<l;){const E=e.charCodeAt(g++);if(E==t&&92!==p)return g;p=92==E&&92===p?0:E}throw new Error}function v0(e,t,n){const l=wn();return Hs(l,Va(),t)&&so(gi(),dr(),l,e,t,l[Rr],n,!1),v0}function _0(e,t,n,l,p){const E=p?"class":"style";yb(e,n,t.inputs[E],E,l)}function y0(e,t,n){return ru(e,t,n,!1),y0}function b0(e,t){return ru(e,t,null,!0),b0}function nu(e){iu(qE,tM,e,!1)}function tM(e,t){for(let n=function ZT(e){return KE(e),zE(e,Ep(e,0,Ra.textEnd))}(t);n>=0;n=zE(t,n))qE(e,HE(t),YT(t))}function YE(e){iu(aM,Nu,e,!0)}function Nu(e,t){for(let n=function QT(e){return KE(e),WE(e,Ep(e,0,Ra.textEnd))}(t);n>=0;n=WE(t,n))Y(e,HE(t),!0)}function ru(e,t,n,l){const p=wn(),g=gi(),E=R(2);g.firstUpdatePass&&ZE(g,e,E,l),t!==ki&&Hs(p,E,t)&&JE(g,g.data[ir()],p,p[Rr],e,p[E+1]=function cM(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=cr(qc(e)))),e}(t,n),l,E)}function iu(e,t,n,l){const p=gi(),g=R(2);p.firstUpdatePass&&ZE(p,null,g,l);const E=wn();if(n!==ki&&Hs(E,g,n)){const O=p.data[ir()];if(tx(O,l)&&!QE(p,g)){let F=l?O.classesWithoutHost:O.stylesWithoutHost;null!==F&&(n=Jr(F,n||"")),_0(p,O,E,n,l)}else!function lM(e,t,n,l,p,g,E,O){p===ki&&(p=hn);let F=0,ie=0,Se=0<p.length?p[0]:null,Ve=0<g.length?g[0]:null;for(;null!==Se||null!==Ve;){const Ot=F<p.length?p[F+1]:void 0,Lt=ie<g.length?g[ie+1]:void 0;let Rn,en=null;Se===Ve?(F+=2,ie+=2,Ot!==Lt&&(en=Ve,Rn=Lt)):null===Ve||null!==Se&&Se<Ve?(F+=2,en=Se):(ie+=2,en=Ve,Rn=Lt),null!==en&&JE(e,t,n,l,en,Rn,E,O),Se=F<p.length?p[F]:null,Ve=ie<g.length?g[ie]:null}}(p,O,E,E[Rr],E[g+1],E[g+1]=function sM(e,t,n){if(null==n||""===n)return hn;const l=[],p=qc(n);if(Array.isArray(p))for(let g=0;g<p.length;g++)e(l,p[g],!0);else if("object"==typeof p)for(const g in p)p.hasOwnProperty(g)&&e(l,g,p[g]);else"string"==typeof p&&t(l,p);return l}(e,t,n),l,g)}}function QE(e,t){return t>=e.expandoStartIndex}function ZE(e,t,n,l){const p=e.data;if(null===p[n+1]){const g=p[ir()],E=QE(e,n);tx(g,l)&&null===t&&!E&&(t=!1),t=function nM(e,t,n,l){const p=gt(e);let g=l?t.residualClasses:t.residualStyles;if(null===p)0===(l?t.classBindings:t.styleBindings)&&(n=ag(n=w0(null,e,t,n,l),t.attrs,l),g=null);else{const E=t.directiveStylingLast;if(-1===E||e[E]!==p)if(n=w0(p,e,t,n,l),null===g){let F=function rM(e,t,n){const l=n?t.classBindings:t.styleBindings;if(0!==sf(l))return e[eh(l)]}(e,t,l);void 0!==F&&Array.isArray(F)&&(F=w0(null,e,t,F[1],l),F=ag(F,t.attrs,l),function iM(e,t,n,l){e[eh(n?t.classBindings:t.styleBindings)]=l}(e,t,l,F))}else g=function oM(e,t,n){let l;const p=t.directiveEnd;for(let g=1+t.directiveStylingLast;g<p;g++)l=ag(l,e[g].hostAttrs,n);return ag(l,t.attrs,n)}(e,t,l)}return void 0!==g&&(l?t.residualClasses=g:t.residualStyles=g),n}(p,g,t,l),function KT(e,t,n,l,p,g){let E=g?t.classBindings:t.styleBindings,O=eh(E),F=sf(E);e[l]=n;let Se,ie=!1;if(Array.isArray(n)?(Se=n[1],(null===Se||re(n,Se)>0)&&(ie=!0)):Se=n,p)if(0!==F){const Ot=eh(e[O+1]);e[l+1]=v_(Ot,O),0!==Ot&&(e[Ot+1]=m0(e[Ot+1],l)),e[O+1]=function WT(e,t){return 131071&e|t<<17}(e[O+1],l)}else e[l+1]=v_(O,0),0!==O&&(e[O+1]=m0(e[O+1],l)),O=l;else e[l+1]=v_(F,0),0===O?O=l:e[F+1]=m0(e[F+1],l),F=l;ie&&(e[l+1]=p0(e[l+1])),VE(e,Se,l,!0),VE(e,Se,l,!1),function GT(e,t,n,l,p){const g=p?e.residualClasses:e.residualStyles;null!=g&&"string"==typeof t&&re(g,t)>=0&&(n[l+1]=g0(n[l+1]))}(t,Se,e,l,g),E=v_(O,F),g?t.classBindings=E:t.styleBindings=E}(p,g,t,n,E,l)}}function w0(e,t,n,l,p){let g=null;const E=n.directiveEnd;let O=n.directiveStylingLast;for(-1===O?O=n.directiveStart:O++;O<E&&(g=t[O],l=ag(l,g.hostAttrs,p),g!==e);)O++;return null!==e&&(n.directiveStylingLast=O),l}function ag(e,t,n){const l=n?1:2;let p=-1;if(null!==t)for(let g=0;g<t.length;g++){const E=t[g];"number"==typeof E?p=E:p===l&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Y(e,E,!!n||t[++g]))}return void 0===e?null:e}function qE(e,t,n){Y(e,t,qc(n))}function aM(e,t,n){const l=String(t);""!==l&&!l.includes(" ")&&Y(e,l,n)}function JE(e,t,n,l,p,g,E,O){if(!(3&t.type))return;const F=e.data,ie=F[O+1],Se=function zT(e){return!(1&~e)}(ie)?ex(F,t,n,p,sf(ie),E):void 0;__(Se)||(__(g)||function HT(e){return!(2&~e)}(ie)&&(g=ex(F,null,n,p,O,E)),function ib(e,t,n,l,p){if(t)p?e.addClass(n,l):e.removeClass(n,l);else{let g=-1===l.indexOf("-")?void 0:Xf.DashCase;null==p?e.removeStyle(n,l,g):("string"==typeof p&&p.endsWith("!important")&&(p=p.slice(0,-10),g|=Xf.Important),e.setStyle(n,l,p,g))}}(l,E,Tr(ir(),n),p,g))}function ex(e,t,n,l,p,g){const E=null===t;let O;for(;p>0;){const F=e[p],ie=Array.isArray(F),Se=ie?F[1]:F,Ve=null===Se;let Ot=n[p+1];Ot===ki&&(Ot=Ve?hn:void 0);let Lt=Ve?je(Ot,l):Se===l?Ot:void 0;if(ie&&!__(Lt)&&(Lt=je(F,l)),__(Lt)&&(O=Lt,E))return O;const en=e[p+1];p=E?eh(en):sf(en)}if(null!==t){let F=g?t.residualClasses:t.residualStyles;null!=F&&(O=je(F,l))}return O}function __(e){return void 0!==e}function tx(e,t){return!!(e.flags&(t?8:16))}function nx(e,t,n){iu(Y,Nu,pp(wn(),e,t,n),!0)}function rx(){return wn()[ro][Fr]}class _M{destroy(t){}updateValue(t,n){}swap(t,n){const l=Math.min(t,n),p=Math.max(t,n),g=this.detach(p);if(p-l>1){const E=this.detach(l);this.attach(l,g),this.attach(p,E)}else this.attach(l,g)}move(t,n){this.attach(n,this.detach(t))}}function E0(e,t,n,l,p){return e===n&&Object.is(t,l)?1:Object.is(p(e,t),p(n,l))?-1:0}function x0(e,t,n,l){return!(void 0===t||!t.has(l)||(e.attach(n,t.get(l)),t.delete(l),0))}function ix(e,t,n,l,p){if(x0(e,t,l,n(l,p)))e.updateValue(l,p);else{const g=e.create(l,p);e.attach(l,g)}}function ox(e,t,n,l){const p=new Set;for(let g=t;g<=n;g++)p.add(l(g,e.at(g)));return p}class sx{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let l=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const p=this._vMap;for(;p.has(l);)l=p.get(l);p.set(l,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,l]of this.kvMap)if(t(l,n),void 0!==this._vMap){const p=this._vMap;for(;p.has(l);)l=p.get(l),t(l,n)}}}function ax(e,t){ha("NgControlFlow");const n=wn(),l=Va(),p=n[l]!==ki?n[l]:-1,g=-1!==p?y_(n,nt+p):void 0;if(Hs(n,l,e)){const O=T(null);try{if(void 0!==g&&bb(g,0),-1!==e){const F=nt+e,ie=y_(n,F),Se=C0(n[zn],F),Ve=lp(ie,Se.tView.ssrId);sp(ie,op(n,Se,t,{dehydratedView:Ve}),0,Jh(Se,Ve))}}finally{T(O)}}else if(void 0!==g){const O=$w(g,0);void 0!==O&&(O[Fr]=t)}}class bM{lContainer;$implicit;$index;constructor(t,n,l){this.lContainer=t,this.$implicit=n,this.$index=l}get $count(){return this.lContainer.length-Hr}}function lx(e){return e}class EM{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,l){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=l}}function cx(e,t,n,l,p,g,E,O,F,ie,Se,Ve,Ot){ha("NgControlFlow");const Lt=wn(),en=gi(),Rn=void 0!==F,qn=wn(),lr=O?E.bind(qn[ro][Fr]):E,Nn=new EM(Rn,lr);qn[nt+e]=Nn,rg(Lt,en,e+1,t,n,l,p,Ct(en.consts,g)),Rn&&rg(Lt,en,e+2,F,ie,Se,Ve,Ct(en.consts,Ot))}class xM extends _M{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,l){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=l}get length(){return this.lContainer.length-Hr}at(t){return this.getLView(t)[Fr].$implicit}attach(t,n){const l=n[es];this.needsIndexUpdate||=t!==this.length,sp(this.lContainer,n,t,Jh(this.templateTNode,l))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function CM(e,t){return zh(e,t)}(this.lContainer,t)}create(t,n){const l=lp(this.lContainer,this.templateTNode.tView.ssrId),p=op(this.hostLView,this.templateTNode,new bM(this.lContainer,n,t),{dehydratedView:l});return this.operationsCounter?.recordCreate(),p}destroy(t){Kh(t[zn],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Fr].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Fr].$index=t}getLView(t){return function DM(e,t){return $w(e,t)}(this.lContainer,t)}}function ux(e){const t=T(null),n=ir();try{const l=wn(),p=l[zn],g=l[n],E=n+1,O=y_(l,E);if(void 0===g.liveCollection){const ie=C0(p,E);g.liveCollection=new xM(O,l,ie)}else g.liveCollection.reset();const F=g.liveCollection;if(function yM(e,t,n){let l,p,g=0,E=e.length-1;if(Array.isArray(t)){let F=t.length-1;for(;g<=E&&g<=F;){const ie=e.at(g),Se=t[g],Ve=E0(g,ie,g,Se,n);if(0!==Ve){Ve<0&&e.updateValue(g,Se),g++;continue}const Ot=e.at(E),Lt=t[F],en=E0(E,Ot,F,Lt,n);if(0!==en){en<0&&e.updateValue(E,Lt),E--,F--;continue}const Rn=n(g,ie),qn=n(E,Ot),lr=n(g,Se);if(Object.is(lr,qn)){const Nn=n(F,Lt);Object.is(Nn,Rn)?(e.swap(g,E),e.updateValue(E,Lt),F--,E--):e.move(E,g),e.updateValue(g,Se),g++}else if(l??=new sx,p??=ox(e,g,E,n),x0(e,l,g,lr))e.updateValue(g,Se),g++,E++;else if(p.has(lr))l.set(Rn,e.detach(g)),E--;else{const Nn=e.create(g,t[g]);e.attach(g,Nn),g++,E++}}for(;g<=F;)ix(e,l,n,g,t[g]),g++}else if(null!=t){const F=t[Symbol.iterator]();let ie=F.next();for(;!ie.done&&g<=E;){const Se=e.at(g),Ve=ie.value,Ot=E0(g,Se,g,Ve,n);if(0!==Ot)Ot<0&&e.updateValue(g,Ve),g++,ie=F.next();else{l??=new sx,p??=ox(e,g,E,n);const Lt=n(g,Ve);if(x0(e,l,g,Lt))e.updateValue(g,Ve),g++,E++,ie=F.next();else if(p.has(Lt)){const en=n(g,Se);l.set(en,e.detach(g)),E--}else e.attach(g,e.create(g,Ve)),g++,E++,ie=F.next()}}for(;!ie.done;)ix(e,l,n,e.length,ie.value),ie=F.next()}for(;g<=E;)e.destroy(e.detach(E--));l?.forEach(F=>{e.destroy(F)})}(F,e,g.trackByFn),F.updateIndexes(),g.hasEmptyBlock){const ie=Va(),Se=0===F.length;if(Hs(l,ie,Se)){const Ve=n+2,Ot=y_(l,Ve);if(Se){const Lt=C0(p,Ve),en=lp(Ot,Lt.tView.ssrId);sp(Ot,op(l,Lt,void 0,{dehydratedView:en}),0,Jh(Lt,en))}else bb(Ot,0)}}}finally{T(t)}}function y_(e,t){return e[t]}function C0(e,t){return L(e,t)}function b_(e,t,n,l){const p=wn(),g=gi(),E=nt+e,O=p[Rr],F=g.firstCreatePass?function SM(e,t,n,l,p,g){const E=t.consts,F=ud(t,e,2,l,Ct(E,p));return yl(t,n,F,Ct(E,g)),null!==F.attrs&&o_(F,F.attrs,!1),null!==F.mergedAttrs&&o_(F,F.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,F),F}(E,g,p,t,n,l):g.data[E],ie=dx(g,p,F,O,t,e);p[E]=ie;const Se=ds(F);return hs(F,!0),Vv(O,ie,F),!function dp(e){return!(32&~e.flags)}(F)&&Mi()&&Jf(g,p,ie,F),0===function rh(){return Wr.lFrame.elementDepthCount}()&&x(ie,p),function cf(){Wr.lFrame.elementDepthCount++}(),Se&&(d(g,p,F),m(g,F,p)),null!==l&&v(p,F),b_}function w_(){let e=Ti();lc()?$c():(e=e.parent,hs(e,!1));const t=e;(function df(e){return Wr.skipHydrationRootTNode===e})(t)&&function md(){Wr.skipHydrationRootTNode=null}(),function uf(){Wr.lFrame.elementDepthCount--}();const n=gi();return n.firstCreatePass&&(Cs(n,e),Fo(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function dc(e){return!!(8&e.flags)}(t)&&_0(n,t,wn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Dc(e){return!!(16&e.flags)}(t)&&_0(n,t,wn(),t.stylesWithoutHost,!1),w_}function D0(e,t,n,l){return b_(e,t,n,l),w_(),D0}let dx=(e,t,n,l,p,g)=>(Zi(!0),Yf(l,p,function Yi(){return Wr.lFrame.currentNamespace}()));function E_(e,t,n){const l=wn(),p=gi(),g=e+nt,E=p.firstCreatePass?function MM(e,t,n,l,p){const g=t.consts,E=Ct(g,l),O=ud(t,e,8,"ng-container",E);return null!==E&&o_(O,E,!0),yl(t,n,O,Ct(g,p)),null!==t.queries&&t.queries.elementStart(t,O),O}(g,p,l,t,n):p.data[g];hs(E,!0);const O=hx(p,l,E,e);return l[g]=O,Mi()&&Jf(p,l,O,E),x(O,l),ds(E)&&(d(p,l,E),m(p,E,l)),null!=n&&v(l,E),E_}function x_(){let e=Ti();const t=gi();return lc()?$c():(e=e.parent,hs(e,!1)),t.firstCreatePass&&(Cs(t,e),Fo(e)&&t.queries.elementEnd(e)),x_}function S0(e,t,n){return E_(e,t,n),x_(),S0}let hx=(e,t,n,l)=>(Zi(!0),Im(t[Rr],""));function fx(){return wn()}function A0(e,t,n){const l=wn();return Hs(l,Va(),t)&&so(gi(),dr(),l,e,t,l[Rr],n,!0),A0}function T0(e,t,n){const l=wn();if(Hs(l,Va(),t)){const g=gi(),E=dr();so(g,E,l,e,t,Uw(gt(g.data),E,l),n,!0)}return T0}const af=void 0;var RM=["en",[["a","p"],["AM","PM"],af],[["AM","PM"],af,af],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],af,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],af,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",af,"{1} 'at' {0}",af],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function OM(e){const n=Math.floor(Math.abs(e)),l=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===l?1:5}];let xp={};function M0(e){const t=function NM(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=mx(t);if(n)return n;const l=t.split("-")[0];if(n=mx(l),n)return n;if("en"===l)return RM;throw new Gt(701,!1)}function px(e){return M0(e)[Cp.PluralCase]}function mx(e){return e in xp||(xp[e]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[e]),xp[e]}var Cp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Cp||{});const C_="en-US";let gx=C_,Nx=(e,t,n)=>{};function O0(e,t,n,l){const p=wn(),g=gi(),E=Ti();return N0(g,p,p[Rr],E,e,t,l),O0}function R0(e,t){const n=Ti(),l=wn(),p=gi();return N0(p,l,Uw(gt(p.data),n,l),n,e,t),R0}function N0(e,t,n,l,p,g,E){const O=ds(l),ie=e.firstCreatePass&&ip(e),Se=t[Fr],Ve=qh(t);let Ot=!0;if(3&l.type||E){const Rn=Es(l,t),qn=E?E(Rn):Rn,lr=Ve.length,Nn=E?Hi=>E(Xi(Hi[l.index])):l.index;let vi=null;if(!E&&O&&(vi=function xI(e,t,n,l){const p=e.cleanup;if(null!=p)for(let g=0;g<p.length-1;g+=2){const E=p[g];if(E===n&&p[g+1]===l){const O=t[Po],F=p[g+2];return O.length>F?O[F]:null}"string"==typeof E&&(g+=2)}return null}(e,t,p,l.index)),null!==vi)(vi.__ngLastListenerFn__||vi).__ngNextListenerFn__=g,vi.__ngLastListenerFn__=g,Ot=!1;else{g=Px(l,t,Se,g),Nx(Rn,p,g);const Hi=n.listen(qn,p,g);Ve.push(g,Hi),ie&&ie.push(p,Nn,lr,lr+1)}}else g=Px(l,t,Se,g);const Lt=l.outputs;let en;if(Ot&&null!==Lt&&(en=Lt[p])){const Rn=en.length;if(Rn)for(let qn=0;qn<Rn;qn+=2){const Co=t[en[qn]][en[qn+1]].subscribe(g),ta=Ve.length;Ve.push(g,Co),ie&&ie.push(p,l.index,ta,-(ta+1))}}}function Lx(e,t,n,l){const p=T(null);try{return Aa(6,t,n),!1!==n(l)}catch(g){return Xv(e,g),!1}finally{Aa(7,t,n),T(p)}}function Px(e,t,n,l){return function p(g){if(g===Function)return l;Vm(e.componentOffset>-1?P(e.index,t):t,5);let O=Lx(t,n,l,g),F=p.__ngNextListenerFn__;for(;F;)O=Lx(t,n,F,g)&&O,F=F.__ngNextListenerFn__;return O}}function Fx(e=1){return function Qn(e){return(Wr.lFrame.contextLView=function pr(e,t){for(;e>0;)t=t[$a],e--;return t}(e,Wr.lFrame.contextLView))[Fr]}(e)}function CI(e,t){let n=null;const l=function db(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let p=0;p<t.length;p++){const g=t[p];if("*"!==g){if(null===l?Wv(e,g,!0):Go(l,g))return p}else n=p}return n}function Bx(e){const t=wn()[ro][$o];if(!t.projection){const l=t.projection=function ko(e,t){const n=[];for(let l=0;l<e;l++)n.push(t);return n}(e?e.length:1,null),p=l.slice();let g=t.child;for(;null!==g;){if(128!==g.type){const E=e?CI(g,e):0;null!==E&&(p[E]?p[E].projectionNext=g:l[E]=g,p[E]=g)}g=g.next}}}function Ux(e,t=0,n,l,p,g){const E=wn(),O=gi(),F=l?e+1:null;null!==F&&rg(E,O,F,l,p,g,null,n);const ie=ud(O,nt+e,16,null,n||null);null===ie.projection&&(ie.projection=t),$c();const Ve=!E[es]||Cc();null===E[ro][$o].projection[ie.projection]&&null!==F?function DI(e,t,n){const l=nt+n,p=t.data[l],g=e[l],E=lp(g,p.tView.ssrId);sp(g,op(e,p,void 0,{dehydratedView:E}),0,Jh(p,E))}(E,O,F):Ve&&32&~ie.flags&&function rb(e,t,n){Uv(t[Rr],0,t,n,qf(e,n,t),Rm(n.parent||t[$o],n,t))}(O,E,ie)}function L0(e,t,n){return P0(e,"",t,"",n),L0}function P0(e,t,n,l,p){const g=wn(),E=pp(g,t,n,l);return E!==ki&&so(gi(),dr(),g,e,E,g[Rr],p,!1),P0}function Xx(e,t,n,l){k1(e,t,n,l)}function Yx(e,t,n){!function I1(e,t,n){const l=gi();return l.firstCreatePass&&(O1(l,new A1(e,t,n),-1),!(2&~t)&&(l.staticViewQueries=!0)),M1(l,wn(),t)}(e,t,n)}function Qx(e){const t=wn(),n=gi(),l=It();Ht(l+1);const p=zb(n,l);if(e.dirty&&function X(e){return!(4&~e[Ar])}(t)===!(2&~p.metadata.flags)){if(null===p.matches)e.reset([]);else{const g=R1(t,l);e.reset(g,$s),e.notifyOnChanges()}return!0}return!1}function Zx(){return Wb(wn(),It())}function qx(e,t,n,l,p){!function B1(e,t){const n=e[C];n._lView=wn(),n._queryIndex=t,n._queryList=Wb(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(l=>l+1))}(t,k1(e,n,l,p))}function Jx(e=1){Ht(It()+e)}function eC(e){return K(function Ta(){return Wr.lFrame.contextLView}(),nt+e)}function uC(e,t=""){const n=wn(),l=gi(),p=e+nt,g=l.firstCreatePass?ud(l,p,1,t,null):l.data[p],E=dC(l,n,g,t,e);n[p]=E,Mi()&&Jf(l,n,E,g),hs(g,!1)}let dC=(e,t,n,l,p)=>(Zi(!0),function Mm(e,t){return e.createText(t)}(t[Rr],l));function B0(e){return T_("",e,""),B0}function T_(e,t,n){const l=wn(),p=pp(l,e,t,n);return p!==ki&&hd(l,ir(),p),T_}function U0(e,t,n,l,p){const g=wn(),E=function mp(e,t,n,l,p,g){const O=nf(e,Ol(),n,p);return R(2),O?t+gr(n)+l+gr(p)+g:ki}(g,e,t,n,l,p);return E!==ki&&hd(g,ir(),E),U0}function $0(e,t,n,l,p,g,E){const O=wn(),F=function gp(e,t,n,l,p,g,E,O){const ie=d_(e,Ol(),n,p,E);return R(3),ie?t+gr(n)+l+gr(p)+g+gr(E)+O:ki}(O,e,t,n,l,p,g,E);return F!==ki&&hd(O,ir(),F),$0}function j0(e,t,n){N1(t)&&(t=t());const l=wn();return Hs(l,Va(),t)&&so(gi(),dr(),l,e,t,l[Rr],n,!1),j0}function _C(e,t){const n=N1(e);return n&&e.set(t),n}function V0(e,t){const n=wn(),l=gi(),p=Ti();return N0(l,n,n[Rr],p,e,t),V0}function H0(e,t,n,l,p){if(e=Ee(e),Array.isArray(e))for(let g=0;g<e.length;g++)H0(e[g],t,n,l,p);else{const g=gi(),E=wn(),O=Ti();let F=ni(e)?e:Ee(e.provide);const ie=xl(e),Se=1048575&O.providerIndexes,Ve=O.directiveStart,Ot=O.providerIndexes>>20;if(ni(e)||!e.multi){const Lt=new Ds(ie,p,Xd),en=z0(F,t,p?Se:Se+Ot,Ve);-1===en?(lh(fu(O,E),g,F),W0(g,e,t.length),t.push(F),O.directiveStart++,O.directiveEnd++,p&&(O.providerIndexes+=1048576),n.push(Lt),E.push(Lt)):(n[en]=Lt,E[en]=Lt)}else{const Lt=z0(F,t,Se+Ot,Ve),en=z0(F,t,Se,Se+Ot),qn=en>=0&&n[en];if(p&&!qn||!p&&!(Lt>=0&&n[Lt])){lh(fu(O,E),g,F);const lr=function HI(e,t,n,l,p){const g=new Ds(e,n,Xd);return g.multi=[],g.index=t,g.componentProviders=0,wC(g,p,l&&!n),g}(p?VI:jI,n.length,p,l,ie);!p&&qn&&(n[en].providerFactory=lr),W0(g,e,t.length,0),t.push(F),O.directiveStart++,O.directiveEnd++,p&&(O.providerIndexes+=1048576),n.push(lr),E.push(lr)}else W0(g,e,Lt>-1?Lt:en,wC(n[p?en:Lt],ie,!p&&l));!p&&l&&qn&&n[en].componentProviders++}}}function W0(e,t,n,l){const p=ni(t),g=function So(e){return!!e.useClass}(t);if(p||g){const F=(g?Ee(t.useClass):t).prototype.ngOnDestroy;if(F){const ie=e.destroyHooks||(e.destroyHooks=[]);if(!p&&t.multi){const Se=ie.indexOf(n);-1===Se?ie.push(n,[l,F]):ie[Se+1].push(l,F)}else ie.push(n,F)}}}function wC(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function z0(e,t,n,l){for(let p=n;p<l;p++)if(t[p]===e)return p;return-1}function jI(e,t,n,l){return K0(this.multi,[])}function VI(e,t,n,l){const p=this.multi;let g;if(this.providerFactory){const E=this.providerFactory.componentProviders,O=Ll(n,n[zn],this.providerFactory.index,l);g=O.slice(0,E),K0(p,g);for(let F=E;F<O.length;F++)g.push(O[F])}else g=[],K0(p,g);return g}function K0(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function EC(e,t=[]){return n=>{n.providersResolver=(l,p)=>function $I(e,t,n){const l=gi();if(l.firstCreatePass){const p=jo(e);H0(n,l.data,l.blueprint,p,!0),H0(t,l.data,l.blueprint,p,!1)}}(l,p?p(e):e,t)}}function CC(e,t,n){const l=Us()+e,p=wn();return p[l]===ki?Ru(p,l,n?t.call(n):t()):ng(p,l)}function DC(e,t,n,l){return IC(wn(),Us(),e,t,n,l)}function SC(e,t,n,l,p){return kC(wn(),Us(),e,t,n,l,p)}function AC(e,t,n,l,p,g){return function OC(e,t,n,l,p,g,E,O){const F=t+n;return d_(e,F,p,g,E)?Ru(e,F+3,O?l.call(O,p,g,E):l(p,g,E)):fg(e,F+3)}(wn(),Us(),e,t,n,l,p,g)}function TC(e,t,n,l,p,g,E){return function RC(e,t,n,l,p,g,E,O,F){const ie=t+n;return Nc(e,ie,p,g,E,O)?Ru(e,ie+4,F?l.call(F,p,g,E,O):l(p,g,E,O)):fg(e,ie+4)}(wn(),Us(),e,t,n,l,p,g,E)}function MC(e,t,n,l,p,g,E,O,F,ie,Se){const Ve=Us()+e,Ot=wn(),Lt=Nc(Ot,Ve,n,l,p,g);return Nc(Ot,Ve+4,E,O,F,ie)||Lt?Ru(Ot,Ve+8,Se?t.call(Se,n,l,p,g,E,O,F,ie):t(n,l,p,g,E,O,F,ie)):ng(Ot,Ve+8)}function fg(e,t){const n=e[t];return n===ki?void 0:n}function IC(e,t,n,l,p,g){const E=t+n;return Hs(e,E,p)?Ru(e,E+1,g?l.call(g,p):l(p)):fg(e,E+1)}function kC(e,t,n,l,p,g,E){const O=t+n;return nf(e,O,p,g)?Ru(e,O+2,E?l.call(E,p,g):l(p,g)):fg(e,O+2)}function LC(e,t){const n=gi();let l;const p=e+nt;n.firstCreatePass?(l=function ZI(e,t){if(t)for(let n=t.length-1;n>=0;n--){const l=t[n];if(e===l.name)return l}}(t,n.pipeRegistry),n.data[p]=l,l.onDestroy&&(n.destroyHooks??=[]).push(p,l.onDestroy)):l=n.data[p];const g=l.factory||(l.factory=lo(l.type)),O=Eo(Xd);try{const F=yd(!1),ie=g();return yd(F),function F0(e,t,n,l){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=l}(n,wn(),p,ie),ie}finally{Eo(O)}}function PC(e,t,n){const l=e+nt,p=wn(),g=K(p,l);return pg(p,l)?IC(p,Us(),t,g.transform,n,g):g.transform(n)}function FC(e,t,n,l){const p=e+nt,g=wn(),E=K(g,p);return pg(g,p)?kC(g,Us(),t,E.transform,n,l,E):E.transform(n,l)}function pg(e,t){return e[zn].data[t].pure}function BC(e,t){return Zv(e,t)}class eD{full;major;minor;patch;constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}class Tk{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Mk=(()=>{class e{compileModuleSync(n){return new Qb(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const l=this.compileModuleSync(n),g=jl(Or(n).declarations).reduce((E,O)=>{const F=Dr(O);return F&&E.push(new eg(F)),E},[]);return new Tk(l,g)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ok=(()=>{class e{zone=tr(Vo);changeDetectionScheduler=tr(Pl);applicationRef=tr(Lc);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function q0({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Vo({...J0(),scheduleInRootZone:n}),[{provide:Vo,useFactory:e},{provide:ur,multi:!0,useFactory:()=>{const l=tr(Ok,{optional:!0});return()=>l.initialize()}},{provide:ur,multi:!0,useFactory:()=>{const l=tr(Nk);return()=>{l.initialize()}}},!0===t?{provide:xf,useValue:!0}:[],{provide:yu,useValue:n??gh}]}function J0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let Nk=(()=>{class e{subscription=new Qt.yU;initialized=!1;zone=tr(Vo);pendingTasks=tr(rl);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Vo.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Vo.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gg=(()=>{class e{appRef=tr(Lc);taskService=tr(rl);ngZone=tr(Vo);zonelessEnabled=tr(Gu);tracing=tr(Rh,{optional:!0});disableScheduling=tr(xf,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Qt.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Gc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(tr(yu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Td||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;let l=!1;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,l=!0;break;case 13:this.appRef.dirtyFlags|=16,l=!0;break;case 12:l=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(l))return;const p=this.useMicrotaskScheduler?Xu:Sd;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>p(()=>this.tick())):this.ngZone.runOutsideAngular(()=>p(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Gc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(n),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Xu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const tw=new ct("",{providedIn:"root",factory:()=>tr(tw,Sr.Optional|Sr.SkipSelf)||function Lk(){return typeof $localize<"u"&&$localize.locale||C_}()}),Pk=new ct("",{providedIn:"root",factory:()=>"USD"}),k_=new ct("");function O_(e){return!e.moduleRef}let th=null;function zk(){return!1}let dD=(()=>class e{static __NG_ELEMENT_ID__=Kk})();function Kk(e){return function Gk(e,t,n){if(Wo(e)&&!n){const l=P(e.index,t);return new Hm(l,l)}return 175&e.type?new Hm(t[ro],t):null}(Ti(),wn(),!(16&~e))}class mD{constructor(){}supports(t){return u_(t)}create(t){return new qk(t)}}const Zk=(e,t)=>t;class qk{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Zk}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,l=this._removalsHead,p=0,g=null;for(;n||l;){const E=!l||n&&n.currentIndex<vD(l,p,g)?n:l,O=vD(E,p,g),F=E.currentIndex;if(E===l)p--,l=l._nextRemoved;else if(n=n._next,null==E.previousIndex)p++;else{g||(g=[]);const ie=O-p,Se=F-p;if(ie!=Se){for(let Ot=0;Ot<ie;Ot++){const Lt=Ot<g.length?g[Ot]:g[Ot]=0,en=Lt+Ot;Se<=en&&en<ie&&(g[Ot]=Lt+1)}g[E.previousIndex]=Se-ie}}O!==F&&t(E,O,F)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!u_(t))throw new Gt(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let p,g,E,n=this._itHead,l=!1;if(Array.isArray(t)){this.length=t.length;for(let O=0;O<this.length;O++)g=t[O],E=this._trackByFn(O,g),null!==n&&Object.is(n.trackById,E)?(l&&(n=this._verifyReinsertion(n,g,E,O)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,E,O),l=!0),n=n._next}else p=0,function gA(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let l;for(;!(l=n.next()).done;)t(l.value)}}(t,O=>{E=this._trackByFn(p,O),null!==n&&Object.is(n.trackById,E)?(l&&(n=this._verifyReinsertion(n,O,E,p)),Object.is(n.item,O)||this._addIdentityChange(n,O)):(n=this._mismatch(n,O,E,p),l=!0),n=n._next,p++}),this.length=p;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,l,p){let g;return null===t?g=this._itTail:(g=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,g,p)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(l,p))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,g,p)):t=this._addAfter(new Jk(n,l),g,p),t}_verifyReinsertion(t,n,l,p){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==g?t=this._reinsertAfter(g,t._prev,p):t.currentIndex!=p&&(t.currentIndex=p,this._addToMoves(t,p)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const p=t._prevRemoved,g=t._nextRemoved;return null===p?this._removalsHead=g:p._nextRemoved=g,null===g?this._removalsTail=p:g._prevRemoved=p,this._insertAfter(t,n,l),this._addToMoves(t,l),t}_moveAfter(t,n,l){return this._unlink(t),this._insertAfter(t,n,l),this._addToMoves(t,l),t}_addAfter(t,n,l){return this._insertAfter(t,n,l),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,l){const p=null===n?this._itHead:n._next;return t._next=p,t._prev=n,null===p?this._itTail=t:p._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new gD),this._linkedRecords.put(t),t.currentIndex=l,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,l=t._next;return null===n?this._itHead=l:n._next=l,null===l?this._itTail=n:l._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new gD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Jk{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}}class eO{_head=null;_tail=null;add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===n||n<=l.currentIndex)&&Object.is(l.trackById,t))return l;return null}remove(t){const n=t._prevDup,l=t._nextDup;return null===n?this._head=l:n._nextDup=l,null===l?this._tail=n:l._prevDup=n,null===this._head}}class gD{map=new Map;put(t){const n=t.trackById;let l=this.map.get(n);l||(l=new eO,this.map.set(n,l)),l.add(t)}get(t,n){const p=this.map.get(t);return p?p.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function vD(e,t,n){const l=e.previousIndex;if(null===l)return l;let p=0;return n&&l<n.length&&(p=n[l]),l+t+p}class _D{constructor(){}supports(t){return t instanceof Map||t0(t)}create(){return new tO}}class tO{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||t0(t)))throw new Gt(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(l,p)=>{if(n&&n.key===p)this._maybeAddToChanges(n,l),this._appendAfter=n,n=n._next;else{const g=this._getOrCreateRecordForKey(p,l);n=this._insertBeforeOrAppend(n,g)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let l=n;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const l=t._prev;return n._next=t,n._prev=l,t._prev=n,l&&(l._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const p=this._records.get(t);this._maybeAddToChanges(p,n);const g=p._prev,E=p._next;return g&&(g._next=E),E&&(E._prev=g),p._next=null,p._prev=null,p}const l=new nO(t);return this._records.set(t,l),l.currentValue=n,this._addToAdditions(l),l}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(l=>n(t[l],l))}}class nO{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}}function yD(){return new aw([new mD])}let aw=(()=>{class e{factories;static \u0275prov=oi({token:e,providedIn:"root",factory:yD});constructor(n){this.factories=n}static create(n,l){if(null!=l){const p=l.factories.slice();n=n.concat(p)}return new e(n)}static extend(n){return{provide:e,useFactory:l=>e.create(n,l||yD()),deps:[[e,new Qo,new ia]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(null!=l)return l;throw new Gt(901,!1)}}return e})();function bD(){return new lw([new _D])}let lw=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:bD});factories;constructor(n){this.factories=n}static create(n,l){if(l){const p=l.factories.slice();n=n.concat(p)}return new e(n)}static extend(n){return{provide:e,useFactory:l=>e.create(n,l||bD()),deps:[[e,new Qo,new ia]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(l)return l;throw new Gt(901,!1)}}return e})();function gO(e){try{const{rootComponent:t,appProviders:n,platformProviders:l}=e,p=function Wk(e=[]){if(th)return th;const t=function lD(e=[],t){return As.create({name:t,providers:[{provide:qo,useValue:"platform"},{provide:k_,useValue:new Set([()=>th=null])},...e]})}(e);return th=t,function AE(){!function bt(e){bn=e}(()=>{throw new Gt(600,!1)})}(),function cD(e){const t=e.get(Vs,null);Ua(e,()=>{t?.forEach(n=>n())})}(t),t}(l),g=[q0({}),{provide:Pl,useExisting:gg},...n||[]];return function oD(e){const t=O_(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Vo);return n.run(()=>{O_(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const l=t.get(Tc,null);let p;if(n.runOutsideAngular(()=>{p=n.onError.subscribe({next:g=>{l.handleError(g)}})}),O_(e)){const g=()=>t.destroy(),E=e.platformInjector.get(k_);E.add(g),t.onDestroy(()=>{p.unsubscribe(),E.delete(g)})}else{const g=()=>e.moduleRef.destroy(),E=e.platformInjector.get(k_);E.add(g),e.moduleRef.onDestroy(()=>{g_(e.allPlatformModules,e.moduleRef),p.unsubscribe(),E.delete(g)})}return function lT(e,t,n){try{const l=n();return l0(l)?l.catch(p=>{throw t.runOutsideAngular(()=>e.handleError(p)),p}):l}catch(l){throw t.runOutsideAngular(()=>e.handleError(l)),l}}(l,n,()=>{const g=t.get(DE);return g.runInitializers(),g.donePromise.then(()=>{if(function BM(e){"string"==typeof e&&(gx=e.toLowerCase().replace(/_/g,"-"))}(t.get(tw,C_)||C_),O_(e)){const O=t.get(Lc);return void 0!==e.rootComponent&&O.bootstrap(e.rootComponent),O}return function jk(e,t){const n=e.injector.get(Lc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(l=>n.bootstrap(l));else{if(!e.instance.ngDoBootstrap)throw new Gt(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new G1({providers:g,parent:p,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:p,rootComponent:t})}catch(t){return Promise.reject(t)}}function UO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function $O(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function hw(e,t){ha("NgSignals");const n=vt(e);return t?.equal&&(n[C].equal=t.equal),n}function Ap(e){const t=T(null);try{return e()}finally{T(t)}}let XD=(()=>class e{view;node;constructor(n,l){this.view=n,this.node=l}static __NG_ELEMENT_ID__=KO})();function KO(){return new XD(wn(),Ti())}let XO=(()=>{class e extends SE{pendingTasks=tr(rl);taskId=null;schedule(n){super.schedule(n),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();class YO{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,l,p,g,E){this.scheduler=t,this.effectFn=n,this.zone=l,this.injector=g,this.watcher=function Ze(e,t,n){const l=Object.create(Jt);n&&(l.consumerAllowSignalWrites=!0),l.fn=e,l.schedule=t;const p=F=>{l.cleanupFn=F};return l.ref={notify:()=>pe(l),run:()=>{if(null===l.fn)return;if(function A(){return y}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(l.dirty=!1,l.hasRun&&!Me(l))return;l.hasRun=!0;const F=xe(l);try{l.cleanupFn(),l.cleanupFn=Rt,l.fn(p)}finally{Re(l,F)}},cleanup:()=>l.cleanupFn(),destroy:()=>function E(F){(function g(F){return null===F.fn&&null===F.schedule})(F)||(Ce(F),F.cleanupFn(),F.fn=null,F.schedule=null,F.cleanupFn=Rt)}(l),[C]:l},l.ref}(O=>this.runEffect(O),()=>this.schedule(),E),this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Tc,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let fw=!1;class qO{[C];constructor(t){this[C]=t}destroy(){this[C].destroy()}}function pw(e,t){if(fw)return function ZO(e,t){ha("NgSignals"),!t?.injector&&wa();const n=t?.injector??tr(As),l=!0!==t?.manualCleanup?n.get(fc):null,p=new YO(n.get(XO),e,typeof Zone>"u"?null:Zone.current,l,n,t?.allowSignalWrites??!1),g=n.get(dD,null,{optional:!0});return g&&8&g._lView[Ar]?(g._lView[de]??=[]).push(p.watcher.notify):p.watcher.notify(),p}(e,t);ha("NgSignals"),!t?.injector&&wa();const n=t?.injector??tr(As);let p,l=!0!==t?.manualCleanup?n.get(fc):null;const g=n.get(XD,null,{optional:!0}),E=n.get(Pl);return null===g||t?.forceRoot?p=function nR(e,t,n){const l=Object.create(JO);return l.fn=e,l.scheduler=t,l.notifier=n,l.zone=typeof Zone<"u"?Zone.current:null,l.scheduler.schedule(l),l.notifier.notify(13),l}(e,n.get(u0),E):(p=function tR(e,t,n){const l=Object.create(eR);return l.view=e,l.zone=typeof Zone<"u"?Zone.current:null,l.notifier=t,l.fn=n,e[q]??=new Set,e[q].add(l),l.consumerMarkedDirty(l),l}(g.view,E,e),l instanceof nl&&l._lView===g.view&&(l=null)),p.injector=n,null!==l&&(p.onDestroyFn=l.onDestroy(()=>p.destroy())),new qO(p)}const YD={...N,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:bu,run(){if(this.dirty=!1,this.hasRun&&!Me(this))return;this.hasRun=!0;const e=l=>(this.cleanupFns??=[]).push(l),t=xe(this),n=Zs(!1);try{this.maybeCleanup(),this.fn(e)}finally{Zs(n),Re(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},JO={...YD,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Ce(this),this.onDestroyFn(),this.maybeCleanup()}},eR={...YD,consumerMarkedDirty(){this.view[Ar]|=8192,io(this.view),this.notifier.notify(14)},destroy(){Ce(this),this.onDestroyFn(),this.maybeCleanup(),this.view[q]?.delete(this)}};function uR(e,t){const n=Dr(e),l=t.elementInjector||El();return new eg(n).create(l,t.projectableNodes,t.hostElement,t.environmentInjector)}function dR(e){const t=Dr(e);if(!t)return null;const n=new eg(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(o,s,r)=>{"use strict";r.d(s,{BC:()=>an,JD:()=>tr,Q0:()=>ga,X1:()=>ba,YN:()=>Ya,cV:()=>kn,cb:()=>Xn,cz:()=>Te,hs:()=>kr,j4:()=>rs,k0:()=>Me,kq:()=>A,l_:()=>ns,me:()=>be,ok:()=>co,qT:()=>Sr,tU:()=>Ln,vO:()=>fn,vS:()=>na,xq:()=>Xa,ze:()=>Oo});var i=r(4438),a=r(177),c=r(6648),y=r(7468),w=r(1413),C=r(6354);let T=(()=>{class ue{_renderer;_elementRef;onChange=Q=>{};onTouched=()=>{};constructor(Q,Le){this._renderer=Q,this._elementRef=Le}setProperty(Q,Le){this._renderer.setProperty(this._elementRef.nativeElement,Q,Le)}registerOnTouched(Q){this.onTouched=Q}registerOnChange(Q){this.onChange=Q}setDisabledState(Q){this.setProperty("disabled",Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(i.sFG),i.rXU(i.aKT))};static \u0275dir=i.FsC({type:ue})}return ue})(),S=(()=>{class ue extends T{static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,features:[i.Vt3]})}return ue})();const A=new i.nKC(""),G={provide:A,useExisting:(0,i.Rfq)(()=>be),multi:!0},te=new i.nKC("");let be=(()=>{class ue extends T{_compositionMode;_composing=!1;constructor(Q,Le,Ut){super(Q,Le),this._compositionMode=Ut,null==this._compositionMode&&(this._compositionMode=!function Z(){const ue=(0,a.QT)()?(0,a.QT)().getUserAgent():"";return/android (\d+)/.test(ue.toLowerCase())}())}writeValue(Q){this.setProperty("value",Q??"")}_handleInput(Q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Q)}_compositionStart(){this._composing=!0}_compositionEnd(Q){this._composing=!1,this._compositionMode&&this.onChange(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(te,8))};static \u0275dir=i.FsC({type:ue,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("input",function(ni){return Ut._handleInput(ni.target.value)})("blur",function(){return Ut.onTouched()})("compositionstart",function(){return Ut._compositionStart()})("compositionend",function(ni){return Ut._compositionEnd(ni.target.value)})},standalone:!1,features:[i.Jv_([G]),i.Vt3]})}return ue})();function me(ue){return null==ue||("string"==typeof ue||Array.isArray(ue))&&0===ue.length}function pe(ue){return null!=ue&&"number"==typeof ue.length}const Te=new i.nKC(""),xe=new i.nKC(""),Re=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Me{static min(ce){return function Ce(ue){return ce=>{if(me(ce.value)||me(ue))return null;const Q=parseFloat(ce.value);return!isNaN(Q)&&Q<ue?{min:{min:ue,actual:ce.value}}:null}}(ce)}static max(ce){return function le(ue){return ce=>{if(me(ce.value)||me(ue))return null;const Q=parseFloat(ce.value);return!isNaN(Q)&&Q>ue?{max:{max:ue,actual:ce.value}}:null}}(ce)}static required(ce){return ae(ce)}static requiredTrue(ce){return Ie(ce)}static email(ce){return function $e(ue){return me(ue.value)||Re.test(ue.value)?null:{email:!0}}(ce)}static minLength(ce){return function st(ue){return ce=>me(ce.value)||!pe(ce.value)?null:ce.value.length<ue?{minlength:{requiredLength:ue,actualLength:ce.value.length}}:null}(ce)}static maxLength(ce){return ht(ce)}static pattern(ce){return function vt(ue){if(!ue)return at;let ce,Q;return"string"==typeof ue?(Q="","^"!==ue.charAt(0)&&(Q+="^"),Q+=ue,"$"!==ue.charAt(ue.length-1)&&(Q+="$"),ce=new RegExp(Q)):(Q=ue.toString(),ce=ue),Le=>{if(me(Le.value))return null;const Ut=Le.value;return ce.test(Ut)?null:{pattern:{requiredPattern:Q,actualValue:Ut}}}}(ce)}static nullValidator(ce){return null}static compose(ce){return bt(ce)}static composeAsync(ce){return Fe(ce)}}function ae(ue){return me(ue.value)?{required:!0}:null}function Ie(ue){return!0===ue.value?null:{required:!0}}function ht(ue){return ce=>pe(ce.value)&&ce.value.length>ue?{maxlength:{requiredLength:ue,actualLength:ce.value.length}}:null}function at(ue){return null}function Xt(ue){return null!=ue}function ln(ue){return(0,i.jNT)(ue)?(0,c.H)(ue):ue}function yn(ue){let ce={};return ue.forEach(Q=>{ce=null!=Q?{...ce,...Q}:ce}),0===Object.keys(ce).length?null:ce}function $n(ue,ce){return ce.map(Q=>Q(ue))}function Qe(ue){return ue.map(ce=>function bn(ue){return!ue.validate}(ce)?ce:Q=>ce.validate(Q))}function bt(ue){if(!ue)return null;const ce=ue.filter(Xt);return 0==ce.length?null:function(Q){return yn($n(Q,ce))}}function ze(ue){return null!=ue?bt(Qe(ue)):null}function Fe(ue){if(!ue)return null;const ce=ue.filter(Xt);return 0==ce.length?null:function(Q){const Le=$n(Q,ce).map(ln);return(0,y.p)(Le).pipe((0,C.T)(yn))}}function Ft(ue){return null!=ue?Fe(Qe(ue)):null}function Ke(ue,ce){return null===ue?[ce]:Array.isArray(ue)?[...ue,ce]:[ue,ce]}function dt(ue){return ue._rawValidators}function Ge(ue){return ue._rawAsyncValidators}function He(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function mt(ue,ce){return Array.isArray(ue)?ue.includes(ce):ue===ce}function se(ue,ce){const Q=He(ce);return He(ue).forEach(Ut=>{mt(Q,Ut)||Q.push(Ut)}),Q}function Ze(ue,ce){return He(ce).filter(Q=>!mt(ue,Q))}class Rt{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(ce){this._rawValidators=ce||[],this._composedValidatorFn=ze(this._rawValidators)}_setAsyncValidators(ce){this._rawAsyncValidators=ce||[],this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(ce){this._onDestroyCallbacks.push(ce)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ce=>ce()),this._onDestroyCallbacks=[]}reset(ce=void 0){this.control&&this.control.reset(ce)}hasError(ce,Q){return!!this.control&&this.control.hasError(ce,Q)}getError(ce,Q){return this.control?this.control.getError(ce,Q):null}}class Jt extends Rt{name;get formDirective(){return null}get path(){return null}}class fn extends Rt{_parent=null;name=null;valueAccessor=null}class Gn{_cd;constructor(ce){this._cd=ce}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let an=(()=>{class ue extends Gn{constructor(Q){super(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(fn,2))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Le,Ut){2&Le&&i.AVh("ng-untouched",Ut.isUntouched)("ng-touched",Ut.isTouched)("ng-pristine",Ut.isPristine)("ng-dirty",Ut.isDirty)("ng-valid",Ut.isValid)("ng-invalid",Ut.isInvalid)("ng-pending",Ut.isPending)},standalone:!1,features:[i.Vt3]})}return ue})(),Xn=(()=>{class ue extends Gn{constructor(Q){super(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,10))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Le,Ut){2&Le&&i.AVh("ng-untouched",Ut.isUntouched)("ng-touched",Ut.isTouched)("ng-pristine",Ut.isPristine)("ng-dirty",Ut.isDirty)("ng-valid",Ut.isValid)("ng-invalid",Ut.isInvalid)("ng-pending",Ut.isPending)("ng-submitted",Ut.isSubmitted)},standalone:!1,features:[i.Vt3]})}return ue})();const Pn="VALID",Fn="INVALID",Bn="PENDING",cr="DISABLED";class Jr{}class Xr extends Jr{value;source;constructor(ce,Q){super(),this.value=ce,this.source=Q}}class _t extends Jr{pristine;source;constructor(ce,Q){super(),this.pristine=ce,this.source=Q}}class Bt extends Jr{touched;source;constructor(ce,Q){super(),this.touched=ce,this.source=Q}}class Ee extends Jr{status;source;constructor(ce,Q){super(),this.status=ce,this.source=Q}}class lt extends Jr{source;constructor(ce){super(),this.source=ce}}class Pe extends Jr{source;constructor(ce){super(),this.source=ce}}function kt(ue){return(or(ue)?ue.validators:ue)||null}function Pt(ue,ce){return(or(ce)?ce.asyncValidators:ue)||null}function or(ue){return null!=ue&&!Array.isArray(ue)&&"object"==typeof ue}function Mr(ue,ce,Q){const Le=ue.controls;if(!(ce?Object.keys(Le):Le).length)throw new i.wOt(1e3,"");if(!Le[Q])throw new i.wOt(1001,"")}function ii(ue,ce,Q){ue._forEachChild((Le,Ut)=>{if(void 0===Q[Ut])throw new i.wOt(1002,"")})}class ci{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(ce,Q){this._assignValidators(ce),this._assignAsyncValidators(Q)}get validator(){return this._composedValidatorFn}set validator(ce){this._rawValidators=this._composedValidatorFn=ce}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ce){this._rawAsyncValidators=this._composedAsyncValidatorFn=ce}get parent(){return this._parent}get status(){return(0,i.O8t)(this.statusReactive)}set status(ce){(0,i.O8t)(()=>this.statusReactive.set(ce))}_status=(0,i.EWP)(()=>this.statusReactive());statusReactive=(0,i.vPA)(void 0);get valid(){return this.status===Pn}get invalid(){return this.status===Fn}get pending(){return this.status==Bn}get disabled(){return this.status===cr}get enabled(){return this.status!==cr}errors;get pristine(){return(0,i.O8t)(this.pristineReactive)}set pristine(ce){(0,i.O8t)(()=>this.pristineReactive.set(ce))}_pristine=(0,i.EWP)(()=>this.pristineReactive());pristineReactive=(0,i.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,i.O8t)(this.touchedReactive)}set touched(ce){(0,i.O8t)(()=>this.touchedReactive.set(ce))}_touched=(0,i.EWP)(()=>this.touchedReactive());touchedReactive=(0,i.vPA)(!1);get untouched(){return!this.touched}_events=new w.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ce){this._assignValidators(ce)}setAsyncValidators(ce){this._assignAsyncValidators(ce)}addValidators(ce){this.setValidators(se(ce,this._rawValidators))}addAsyncValidators(ce){this.setAsyncValidators(se(ce,this._rawAsyncValidators))}removeValidators(ce){this.setValidators(Ze(ce,this._rawValidators))}removeAsyncValidators(ce){this.setAsyncValidators(Ze(ce,this._rawAsyncValidators))}hasValidator(ce){return mt(this._rawValidators,ce)}hasAsyncValidator(ce){return mt(this._rawAsyncValidators,ce)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ce={}){const Q=!1===this.touched;this.touched=!0;const Le=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsTouched({...ce,sourceControl:Le}),Q&&!1!==ce.emitEvent&&this._events.next(new Bt(!0,Le))}markAllAsTouched(ce={}){this.markAsTouched({onlySelf:!0,emitEvent:ce.emitEvent,sourceControl:this}),this._forEachChild(Q=>Q.markAllAsTouched(ce))}markAsUntouched(ce={}){const Q=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Le=ce.sourceControl??this;this._forEachChild(Ut=>{Ut.markAsUntouched({onlySelf:!0,emitEvent:ce.emitEvent,sourceControl:Le})}),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce,Le),Q&&!1!==ce.emitEvent&&this._events.next(new Bt(!1,Le))}markAsDirty(ce={}){const Q=!0===this.pristine;this.pristine=!1;const Le=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsDirty({...ce,sourceControl:Le}),Q&&!1!==ce.emitEvent&&this._events.next(new _t(!1,Le))}markAsPristine(ce={}){const Q=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Le=ce.sourceControl??this;this._forEachChild(Ut=>{Ut.markAsPristine({onlySelf:!0,emitEvent:ce.emitEvent})}),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Le),Q&&!1!==ce.emitEvent&&this._events.next(new _t(!0,Le))}markAsPending(ce={}){this.status=Bn;const Q=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Ee(this.status,Q)),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.markAsPending({...ce,sourceControl:Q})}disable(ce={}){const Q=this._parentMarkedDirty(ce.onlySelf);this.status=cr,this.errors=null,this._forEachChild(Ut=>{Ut.disable({...ce,onlySelf:!0})}),this._updateValue();const Le=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Xr(this.value,Le)),this._events.next(new Ee(this.status,Le)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Ut=>Ut(!0))}enable(ce={}){const Q=this._parentMarkedDirty(ce.onlySelf);this.status=Pn,this._forEachChild(Le=>{Le.enable({...ce,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent}),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Le=>Le(!1))}_updateAncestors(ce,Q){this._parent&&!ce.onlySelf&&(this._parent.updateValueAndValidity(ce),ce.skipPristineCheck||this._parent._updatePristine({},Q),this._parent._updateTouched({},Q))}setParent(ce){this._parent=ce}getRawValue(){return this.value}updateValueAndValidity(ce={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Le=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pn||this.status===Bn)&&this._runAsyncValidator(Le,ce.emitEvent)}const Q=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Xr(this.value,Q)),this._events.next(new Ee(this.status,Q)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.updateValueAndValidity({...ce,sourceControl:Q})}_updateTreeValidity(ce={emitEvent:!0}){this._forEachChild(Q=>Q._updateTreeValidity(ce)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cr:Pn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ce,Q){if(this.asyncValidator){this.status=Bn,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Q};const Le=ln(this.asyncValidator(this));this._asyncValidationSubscription=Le.subscribe(Ut=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(Ut,{emitEvent:Q,shouldHaveEmitted:ce})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const ce=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,ce}return!1}setErrors(ce,Q={}){this.errors=ce,this._updateControlsErrors(!1!==Q.emitEvent,this,Q.shouldHaveEmitted)}get(ce){let Q=ce;return null==Q||(Array.isArray(Q)||(Q=Q.split(".")),0===Q.length)?null:Q.reduce((Le,Ut)=>Le&&Le._find(Ut),this)}getError(ce,Q){const Le=Q?this.get(Q):this;return Le&&Le.errors?Le.errors[ce]:null}hasError(ce,Q){return!!this.getError(ce,Q)}get root(){let ce=this;for(;ce._parent;)ce=ce._parent;return ce}_updateControlsErrors(ce,Q,Le){this.status=this._calculateStatus(),ce&&this.statusChanges.emit(this.status),(ce||Le)&&this._events.next(new Ee(this.status,Q)),this._parent&&this._parent._updateControlsErrors(ce,Q,Le)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?cr:this.errors?Fn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bn)?Bn:this._anyControlsHaveStatus(Fn)?Fn:Pn}_anyControlsHaveStatus(ce){return this._anyControls(Q=>Q.status===ce)}_anyControlsDirty(){return this._anyControls(ce=>ce.dirty)}_anyControlsTouched(){return this._anyControls(ce=>ce.touched)}_updatePristine(ce,Q){const Le=!this._anyControlsDirty(),Ut=this.pristine!==Le;this.pristine=Le,this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Q),Ut&&this._events.next(new _t(this.pristine,Q))}_updateTouched(ce={},Q){this.touched=this._anyControlsTouched(),this._events.next(new Bt(this.touched,Q)),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce,Q)}_onDisabledChange=[];_registerOnCollectionChange(ce){this._onCollectionChange=ce}_setUpdateStrategy(ce){or(ce)&&null!=ce.updateOn&&(this._updateOn=ce.updateOn)}_parentMarkedDirty(ce){return!ce&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ce){return null}_assignValidators(ce){this._rawValidators=Array.isArray(ce)?ce.slice():ce,this._composedValidatorFn=function ft(ue){return Array.isArray(ue)?ze(ue):ue||null}(this._rawValidators)}_assignAsyncValidators(ce){this._rawAsyncValidators=Array.isArray(ce)?ce.slice():ce,this._composedAsyncValidatorFn=function mn(ue){return Array.isArray(ue)?Ft(ue):ue||null}(this._rawAsyncValidators)}}class Si extends ci{constructor(ce,Q,Le){super(kt(Q),Pt(Le,Q)),this.controls=ce,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(ce,Q){return this.controls[ce]?this.controls[ce]:(this.controls[ce]=Q,Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange),Q)}addControl(ce,Q,Le={}){this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}removeControl(ce,Q={}){this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),delete this.controls[ce],this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}setControl(ce,Q,Le={}){this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),delete this.controls[ce],Q&&this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}contains(ce){return this.controls.hasOwnProperty(ce)&&this.controls[ce].enabled}setValue(ce,Q={}){ii(this,0,ce),Object.keys(ce).forEach(Le=>{Mr(this,!0,Le),this.controls[Le].setValue(ce[Le],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(Object.keys(ce).forEach(Le=>{const Ut=this.controls[Le];Ut&&Ut.patchValue(ce[Le],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce={},Q={}){this._forEachChild((Le,Ut)=>{Le.reset(ce?ce[Ut]:null,{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(ce,Q,Le)=>(ce[Le]=Q.getRawValue(),ce))}_syncPendingControls(){let ce=this._reduceChildren(!1,(Q,Le)=>!!Le._syncPendingControls()||Q);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){Object.keys(this.controls).forEach(Q=>{const Le=this.controls[Q];Le&&ce(Le,Q)})}_setUpControls(){this._forEachChild(ce=>{ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ce){for(const[Q,Le]of Object.entries(this.controls))if(this.contains(Q)&&ce(Le))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,Le,Ut)=>((Le.enabled||this.disabled)&&(Q[Ut]=Le.value),Q))}_reduceChildren(ce,Q){let Le=ce;return this._forEachChild((Ut,_r)=>{Le=Q(Le,Ut,_r)}),Le}_allControlsDisabled(){for(const ce of Object.keys(this.controls))if(this.controls[ce].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ce){return this.controls.hasOwnProperty(ce)?this.controls[ce]:null}}class Dt extends Si{}const Hn=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>fr}),fr="always";function fo(ue,ce){return[...ce.path,ue]}function Oi(ue,ce,Q=fr){ao(ue,ce),ce.valueAccessor.writeValue(ue.value),(ue.disabled||"always"===Q)&&ce.valueAccessor.setDisabledState?.(ue.disabled),function Xo(ue,ce){ce.valueAccessor.registerOnChange(Q=>{ue._pendingValue=Q,ue._pendingChange=!0,ue._pendingDirty=!0,"change"===ue.updateOn&&Ts(ue,ce)})}(ue,ce),function eo(ue,ce){const Q=(Le,Ut)=>{ce.valueAccessor.writeValue(Le),Ut&&ce.viewToModelUpdate(Le)};ue.registerOnChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnChange(Q)})}(ue,ce),function Do(ue,ce){ce.valueAccessor.registerOnTouched(()=>{ue._pendingTouched=!0,"blur"===ue.updateOn&&ue._pendingChange&&Ts(ue,ce),"submit"!==ue.updateOn&&ue.markAsTouched()})}(ue,ce),function ts(ue,ce){if(ce.valueAccessor.setDisabledState){const Q=Le=>{ce.valueAccessor.setDisabledState(Le)};ue.registerOnDisabledChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnDisabledChange(Q)})}}(ue,ce)}function Uo(ue,ce,Q=!0){const Le=()=>{};ce.valueAccessor&&(ce.valueAccessor.registerOnChange(Le),ce.valueAccessor.registerOnTouched(Le)),wo(ue,ce),ue&&(ce._invokeOnDestroyCallbacks(),ue._registerOnCollectionChange(()=>{}))}function oi(ue,ce){ue.forEach(Q=>{Q.registerOnValidatorChange&&Q.registerOnValidatorChange(ce)})}function ao(ue,ce){const Q=dt(ue);null!==ce.validator?ue.setValidators(Ke(Q,ce.validator)):"function"==typeof Q&&ue.setValidators([Q]);const Le=Ge(ue);null!==ce.asyncValidator?ue.setAsyncValidators(Ke(Le,ce.asyncValidator)):"function"==typeof Le&&ue.setAsyncValidators([Le]);const Ut=()=>ue.updateValueAndValidity();oi(ce._rawValidators,Ut),oi(ce._rawAsyncValidators,Ut)}function wo(ue,ce){let Q=!1;if(null!==ue){if(null!==ce.validator){const Ut=dt(ue);if(Array.isArray(Ut)&&Ut.length>0){const _r=Ut.filter(ni=>ni!==ce.validator);_r.length!==Ut.length&&(Q=!0,ue.setValidators(_r))}}if(null!==ce.asyncValidator){const Ut=Ge(ue);if(Array.isArray(Ut)&&Ut.length>0){const _r=Ut.filter(ni=>ni!==ce.asyncValidator);_r.length!==Ut.length&&(Q=!0,ue.setAsyncValidators(_r))}}}const Le=()=>{};return oi(ce._rawValidators,Le),oi(ce._rawAsyncValidators,Le),Q}function Ts(ue,ce){ue._pendingDirty&&ue.markAsDirty(),ue.setValue(ue._pendingValue,{emitModelToViewChange:!1}),ce.viewToModelUpdate(ue._pendingValue),ue._pendingChange=!1}function oo(ue,ce){ao(ue,ce)}function et(ue,ce){if(!ue.hasOwnProperty("model"))return!1;const Q=ue.model;return!!Q.isFirstChange()||!Object.is(ce,Q.currentValue)}function pt(ue,ce){ue._syncPendingControls(),ce.forEach(Q=>{const Le=Q.control;"submit"===Le.updateOn&&Le._pendingChange&&(Q.viewToModelUpdate(Le._pendingValue),Le._pendingChange=!1)})}function $t(ue,ce){if(!ce)return null;let Q,Le,Ut;return Array.isArray(ce),ce.forEach(_r=>{_r.constructor===be?Q=_r:function Oe(ue){return Object.getPrototypeOf(ue.constructor)===S}(_r)?Le=_r:Ut=_r}),Ut||Le||Q||null}const Cn={provide:Jt,useExisting:(0,i.Rfq)(()=>kn)},Sn=Promise.resolve();let kn=(()=>{class ue extends Jt{callSetDisabledState;get submitted(){return(0,i.O8t)(this.submittedReactive)}_submitted=(0,i.EWP)(()=>this.submittedReactive());submittedReactive=(0,i.vPA)(!1);_directives=new Set;form;ngSubmit=new i.bkB;options;constructor(Q,Le,Ut){super(),this.callSetDisabledState=Ut,this.form=new Si({},ze(Q),Ft(Le))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Q.control=Le.registerControl(Q.name,Q.control),Oi(Q.control,Q,this.callSetDisabledState),Q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Q)})}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Le&&Le.removeControl(Q.name),this._directives.delete(Q)})}addFormGroup(Q){Sn.then(()=>{const Le=this._findContainer(Q.path),Ut=new Si({});oo(Ut,Q),Le.registerControl(Q.name,Ut),Ut.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Le&&Le.removeControl(Q.name)})}getFormGroup(Q){return this.form.get(Q.path)}updateModel(Q,Le){Sn.then(()=>{this.form.get(Q.path).setValue(Le)})}setValue(Q){this.control.setValue(Q)}onSubmit(Q){return this.submittedReactive.set(!0),pt(this.form,this._directives),this.ngSubmit.emit(Q),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Q){return Q.pop(),Q.length?this.form.get(Q):this.form}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("submit",function(ni){return Ut.onSubmit(ni)})("reset",function(){return Ut.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Cn]),i.Vt3]})}return ue})();function Un(ue,ce){const Q=ue.indexOf(ce);Q>-1&&ue.splice(Q,1)}function Jn(ue){return"object"==typeof ue&&null!==ue&&2===Object.keys(ue).length&&"value"in ue&&"disabled"in ue}const sr=class extends ci{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(ce=null,Q,Le){super(kt(Q),Pt(Le,Q)),this._applyFormState(ce),this._setUpdateStrategy(Q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),or(Q)&&(Q.nonNullable||Q.initialValueIsDefault)&&(this.defaultValue=Jn(ce)?ce.value:ce)}setValue(ce,Q={}){this.value=this._pendingValue=ce,this._onChange.length&&!1!==Q.emitModelToViewChange&&this._onChange.forEach(Le=>Le(this.value,!1!==Q.emitViewToModelChange)),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){this.setValue(ce,Q)}reset(ce=this.defaultValue,Q={}){this._applyFormState(ce),this.markAsPristine(Q),this.markAsUntouched(Q),this.setValue(this.value,Q),this._pendingChange=!1}_updateValue(){}_anyControls(ce){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ce){this._onChange.push(ce)}_unregisterOnChange(ce){Un(this._onChange,ce)}registerOnDisabledChange(ce){this._onDisabledChange.push(ce)}_unregisterOnDisabledChange(ce){Un(this._onDisabledChange,ce)}_forEachChild(ce){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(ce){Jn(ce)?(this.value=this._pendingValue=ce.value,ce.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ce}},kr=sr,ls={provide:fn,useExisting:(0,i.Rfq)(()=>na)},bs=Promise.resolve();let na=(()=>{class ue extends fn{_changeDetectorRef;callSetDisabledState;control=new sr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new i.bkB;constructor(Q,Le,Ut,_r,ni,So){super(),this._changeDetectorRef=ni,this.callSetDisabledState=So,this._parent=Q,this._setValidators(Le),this._setAsyncValidators(Ut),this.valueAccessor=$t(0,_r)}ngOnChanges(Q){if(this._checkForErrors(),!this._registered||"name"in Q){if(this._registered&&(this._checkName(),this.formDirective)){const Le=Q.name.previousValue;this.formDirective.removeControl({name:Le,path:this._getPath(Le)})}this._setUpControl()}"isDisabled"in Q&&this._updateDisabled(Q),et(Q,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Oi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Q){bs.then(()=>{this.control.setValue(Q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Q){const Le=Q.isDisabled.currentValue,Ut=0!==Le&&(0,i.L39)(Le);bs.then(()=>{Ut&&!this.control.disabled?this.control.disable():!Ut&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Q){return this._parent?fo(Q,this._parent):[Q]}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,9),i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(i.gRc,8),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[i.Jv_([ls]),i.Vt3,i.OA$]})}return ue})(),Sr=(()=>{class ue{static \u0275fac=function(Le){return new(Le||ue)};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ue})();const ra={provide:A,useExisting:(0,i.Rfq)(()=>ga),multi:!0};let ga=(()=>{class ue extends S{writeValue(Q){this.setProperty("value",Q??"")}registerOnChange(Q){this.onChange=Le=>{Q(""==Le?null:parseFloat(Le))}}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("input",function(ni){return Ut.onChange(ni.target.value)})("blur",function(){return Ut.onTouched()})},standalone:!1,features:[i.Jv_([ra]),i.Vt3]})}return ue})();const Ni=new i.nKC(""),Ls={provide:fn,useExisting:(0,i.Rfq)(()=>ns)};let ns=(()=>{class ue extends fn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Le,Ut,_r,ni){super(),this._ngModelWarningConfig=_r,this.callSetDisabledState=ni,this._setValidators(Q),this._setAsyncValidators(Le),this.valueAccessor=$t(0,Ut)}ngOnChanges(Q){if(this._isControlChanged(Q)){const Le=Q.form.previousValue;Le&&Uo(Le,this,!1),Oi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}et(Q,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Uo(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_isControlChanged(Q){return Q.hasOwnProperty("form")}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(Ni,8),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Ls]),i.Vt3,i.OA$]})}return ue})();const qr={provide:Jt,useExisting:(0,i.Rfq)(()=>rs)};let rs=(()=>{class ue extends Jt{callSetDisabledState;get submitted(){return(0,i.O8t)(this._submittedReactive)}set submitted(Q){this._submittedReactive.set(Q)}_submitted=(0,i.EWP)(()=>this._submittedReactive());_submittedReactive=(0,i.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new i.bkB;constructor(Q,Le,Ut){super(),this.callSetDisabledState=Ut,this._setValidators(Q),this._setAsyncValidators(Le)}ngOnChanges(Q){this._checkFormPresent(),Q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Q){const Le=this.form.get(Q.path);return Oi(Le,Q,this.callSetDisabledState),Le.updateValueAndValidity({emitEvent:!1}),this.directives.push(Q),Le}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Uo(Q.control||null,Q,!1),function Mt(ue,ce){const Q=ue.indexOf(ce);Q>-1&&ue.splice(Q,1)}(this.directives,Q)}addFormGroup(Q){this._setUpFormContainer(Q)}removeFormGroup(Q){this._cleanUpFormContainer(Q)}getFormGroup(Q){return this.form.get(Q.path)}addFormArray(Q){this._setUpFormContainer(Q)}removeFormArray(Q){this._cleanUpFormContainer(Q)}getFormArray(Q){return this.form.get(Q.path)}updateModel(Q,Le){this.form.get(Q.path).setValue(Le)}onSubmit(Q){return this._submittedReactive.set(!0),pt(this.form,this.directives),this.ngSubmit.emit(Q),this.form._events.next(new lt(this.control)),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this._submittedReactive.set(!1),this.form._events.next(new Pe(this.form))}_updateDomValue(){this.directives.forEach(Q=>{const Le=Q.control,Ut=this.form.get(Q.path);Le!==Ut&&(Uo(Le||null,Q),(ue=>ue instanceof sr)(Ut)&&(Oi(Ut,Q,this.callSetDisabledState),Q.control=Ut))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Q){const Le=this.form.get(Q.path);oo(Le,Q),Le.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Q){if(this.form){const Le=this.form.get(Q.path);Le&&function Bi(ue,ce){return wo(ue,ce)}(Le,Q)&&Le.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ao(this.form,this),this._oldForm&&wo(this._oldForm,this)}_checkFormPresent(){}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroup",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("submit",function(ni){return Ut.onSubmit(ni)})("reset",function(){return Ut.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([qr]),i.Vt3,i.OA$]})}return ue})();const va={provide:fn,useExisting:(0,i.Rfq)(()=>tr)};let tr=(()=>{class ue extends fn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Le,Ut,_r,ni){super(),this._ngModelWarningConfig=ni,this._parent=Q,this._setValidators(Le),this._setAsyncValidators(Ut),this.valueAccessor=$t(0,_r)}ngOnChanges(Q){this._added||this._setUpControl(),et(Q,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}get path(){return fo(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,13),i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(Ni,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[i.Jv_([va]),i.Vt3,i.OA$]})}return ue})();let bo=(()=>{class ue{_validator=at;_onChange;_enabled;ngOnChanges(Q){if(this.inputName in Q){const Le=this.normalizeInput(Q[this.inputName].currentValue);this._enabled=this.enabled(Le),this._validator=this._enabled?this.createValidator(Le):at,this._onChange&&this._onChange()}}validate(Q){return this._validator(Q)}registerOnValidatorChange(Q){this._onChange=Q}enabled(Q){return null!=Q}static \u0275fac=function(Le){return new(Le||ue)};static \u0275dir=i.FsC({type:ue,features:[i.OA$]})}return ue})();const Gs={provide:Te,useExisting:(0,i.Rfq)(()=>Ga),multi:!0},wl={provide:Te,useExisting:(0,i.Rfq)(()=>Xa),multi:!0};let Ga=(()=>{class ue extends bo{required;inputName="required";normalizeInput=i.L39;createValidator=Q=>ae;enabled(Q){return Q}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("required",Ut._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[i.Jv_([Gs]),i.Vt3]})}return ue})(),Xa=(()=>{class ue extends Ga{createValidator=Q=>Ie;static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("required",Ut._enabled?"":null)},standalone:!1,features:[i.Jv_([wl]),i.Vt3]})}return ue})();const wt={provide:Te,useExisting:(0,i.Rfq)(()=>Ln),multi:!0};let Ln=(()=>{class ue extends bo{maxlength;inputName="maxlength";normalizeInput=Q=>function lo(ue){return"number"==typeof ue?ue:parseInt(ue,10)}(Q);createValidator=Q=>ht(Q);static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("maxlength",Ut._enabled?Ut.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[i.Jv_([wt]),i.Vt3]})}return ue})(),Or=(()=>{class ue{static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({})}return ue})();class Dr extends ci{constructor(ce,Q,Le){super(kt(Q),Pt(Le,Q)),this.controls=ce,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(ce){return this.controls[this._adjustIndex(ce)]}push(ce,Q={}){this.controls.push(ce),this._registerControl(ce),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}insert(ce,Q,Le={}){this.controls.splice(ce,0,Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Le.emitEvent})}removeAt(ce,Q={}){let Le=this._adjustIndex(ce);Le<0&&(Le=0),this.controls[Le]&&this.controls[Le]._registerOnCollectionChange(()=>{}),this.controls.splice(Le,1),this.updateValueAndValidity({emitEvent:Q.emitEvent})}setControl(ce,Q,Le={}){let Ut=this._adjustIndex(ce);Ut<0&&(Ut=0),this.controls[Ut]&&this.controls[Ut]._registerOnCollectionChange(()=>{}),this.controls.splice(Ut,1),Q&&(this.controls.splice(Ut,0,Q),this._registerControl(Q)),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ce,Q={}){ii(this,0,ce),ce.forEach((Le,Ut)=>{Mr(this,!1,Ut),this.at(Ut).setValue(Le,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(ce.forEach((Le,Ut)=>{this.at(Ut)&&this.at(Ut).patchValue(Le,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce=[],Q={}){this._forEachChild((Le,Ut)=>{Le.reset(ce[Ut],{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this.controls.map(ce=>ce.getRawValue())}clear(ce={}){this.controls.length<1||(this._forEachChild(Q=>Q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ce.emitEvent}))}_adjustIndex(ce){return ce<0?ce+this.length:ce}_syncPendingControls(){let ce=this.controls.reduce((Q,Le)=>!!Le._syncPendingControls()||Q,!1);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){this.controls.forEach((Q,Le)=>{ce(Q,Le)})}_updateValue(){this.value=this.controls.filter(ce=>ce.enabled||this.disabled).map(ce=>ce.value)}_anyControls(ce){return this.controls.some(Q=>Q.enabled&&ce(Q))}_setUpControls(){this._forEachChild(ce=>this._registerControl(ce))}_allControlsDisabled(){for(const ce of this.controls)if(ce.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ce){ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange)}_find(ce){return this.at(ce)??null}}function po(ue){return!!ue&&(void 0!==ue.asyncValidators||void 0!==ue.validators||void 0!==ue.updateOn)}let co=(()=>{class ue{useNonNullable=!1;get nonNullable(){const Q=new ue;return Q.useNonNullable=!0,Q}group(Q,Le=null){const Ut=this._reduceControls(Q);let _r={};return po(Le)?_r=Le:null!==Le&&(_r.validators=Le.validator,_r.asyncValidators=Le.asyncValidator),new Si(Ut,_r)}record(Q,Le=null){const Ut=this._reduceControls(Q);return new Dt(Ut,Le)}control(Q,Le,Ut){let _r={};return this.useNonNullable?(po(Le)?_r=Le:(_r.validators=Le,_r.asyncValidators=Ut),new sr(Q,{..._r,nonNullable:!0})):new sr(Q,Le,Ut)}array(Q,Le,Ut){const _r=Q.map(ni=>this._createControl(ni));return new Dr(_r,Le,Ut)}_reduceControls(Q){const Le={};return Object.keys(Q).forEach(Ut=>{Le[Ut]=this._createControl(Q[Ut])}),Le}_createControl(Q){return Q instanceof sr||Q instanceof ci?Q:Array.isArray(Q)?this.control(Q[0],Q.length>1?Q[1]:null,Q.length>2?Q[2]:null):this.control(Q)}static \u0275fac=function(Le){return new(Le||ue)};static \u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})(),Oo=(()=>{class ue extends co{group(Q,Le=null){return super.group(Q,Le)}control(Q,Le,Ut){return super.control(Q,Le,Ut)}array(Q,Le,Ut){return super.array(Q,Le,Ut)}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})(),Ya=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Hn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})(),ba=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Ni,useValue:Q.warnOnNgModelWithFormControl??"always"},{provide:Hn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})()},8834:(o,s,r)=>{"use strict";r.d(s,{$z:()=>le,Hl:()=>$n,iY:()=>ln,pQ:()=>yn});var i=r(4438),a=r(9888),c=r(6860),y=r(3),w=r(9046);const C=["mat-button",""],T=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],S=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],I="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",te=["mat-icon-button",""],be=["*"],pe=new i.nKC("MAT_BUTTON_CONFIG"),xe=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let Re=(()=>{class bn{_elementRef=(0,i.WQX)(i.aKT);_platform=(0,i.WQX)(c.OD);_ngZone=(0,i.WQX)(i.SKi);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_rippleLoader=(0,i.WQX)(y.Ej);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(bt){this._disableRipple=bt,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(bt){this._disabled=bt,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){(0,i.WQX)(w.l).load(y.Ah);const bt=(0,i.WQX)(pe,{optional:!0}),ze=this._elementRef.nativeElement,Fe=ze.classList;this.disabledInteractive=bt?.disabledInteractive??!1,this.color=bt?.color??null,this._rippleLoader?.configureRipple(ze,{className:"mat-mdc-button-ripple"});for(const{attribute:Ft,mdcClasses:Ke}of xe)ze.hasAttribute(Ft)&&Fe.add(...Ke)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(bt="program",ze){bt?this._focusMonitor.focusVia(this._elementRef.nativeElement,bt,ze):this._elementRef.nativeElement.focus(ze)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(ze){return new(ze||bn)};static \u0275dir=i.FsC({type:bn,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",i.L39],disabled:[2,"disabled","disabled",i.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",i.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",i.L39]},features:[i.GFd]})}return bn})(),Ce=(()=>{class bn extends Re{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=bt=>{this.disabled&&(bt.preventDefault(),bt.stopImmediatePropagation())};_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275dir=i.FsC({type:bn,inputs:{tabIndex:[2,"tabIndex","tabIndex",bt=>null==bt?void 0:(0,i.Udg)(bt)]},features:[i.GFd,i.Vt3]})}return bn})(),le=(()=>{class bn extends Re{static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275cmp=i.VBU({type:bn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(ze,Fe){2&ze&&(i.BMQ("disabled",Fe._getDisabledAttribute())("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:C,ngContentSelectors:S,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Fe){1&ze&&(i.NAR(T),i.nrm(0,"span",0),i.SdG(1),i.j41(2,"span",1),i.SdG(3,1),i.k0s(),i.SdG(4,2),i.nrm(5,"span",2)(6,"span",3)),2&ze&&i.AVh("mdc-button__ripple",!Fe._isFab)("mdc-fab__ripple",Fe._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return bn})(),ln=(()=>{class bn extends Re{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(ze){return new(ze||bn)};static \u0275cmp=i.VBU({type:bn,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(ze,Fe){2&ze&&(i.BMQ("disabled",Fe._getDisabledAttribute())("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:te,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Fe){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',I],encapsulation:2,changeDetection:0})}return bn})(),yn=(()=>{class bn extends Ce{static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275cmp=i.VBU({type:bn,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(ze,Fe){2&ze&&(i.BMQ("disabled",Fe._getDisabledAttribute())("tabindex",Fe.disabled&&!Fe.disabledInteractive?-1:Fe.tabIndex)("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:te,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Fe){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',I],encapsulation:2,changeDetection:0})}return bn})(),$n=(()=>{class bn{static \u0275fac=function(ze){return new(ze||bn)};static \u0275mod=i.$C({type:bn});static \u0275inj=i.G2t({imports:[y.yE,y.pZ,y.yE]})}return bn})()},3:(o,s,r)=>{"use strict";r.d(s,{Ah:()=>dt,Ej:()=>Jr,Ju:()=>$e,MI:()=>De,MJ:()=>vt,N:()=>le,QC:()=>k,Sy:()=>In,TL:()=>Tt,X0:()=>Ie,de:()=>at,es:()=>Ke,is:()=>B,jb:()=>ot,pZ:()=>Yn,r6:()=>xn,tO:()=>Xr,wT:()=>it,yE:()=>ae});var i=r(4438),a=r(9888),c=r(8203),y=r(1413),w=r(6860),C=r(4085),T=r(9046),S=r(7336),A=r(177);const G=["text"],Z=[[["mat-icon"]],"*"],te=["mat-icon","*"];function be(_t,Bt){if(1&_t&&i.nrm(0,"mat-pseudo-checkbox",1),2&_t){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)("state",Ee.selected?"checked":"unchecked")}}function me(_t,Bt){if(1&_t&&i.nrm(0,"mat-pseudo-checkbox",3),2&_t){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)}}function pe(_t,Bt){if(1&_t&&(i.j41(0,"span",4),i.EFF(1),i.k0s()),2&_t){const Ee=i.XpG();i.R7$(),i.SpI("(",Ee.group.label,")")}}const Te=["mat-internal-form-field",""],xe=["*"],le=new i.nKC("mat-sanity-checks",{providedIn:"root",factory:()=>!0});let ae=(()=>{class _t{constructor(){(0,i.WQX)(a.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[c.jI,c.jI]})}return _t})();class Ie{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(Bt,Ee,lt,Pe,kt){this._defaultMatcher=Bt,this.ngControl=Ee,this._parentFormGroup=lt,this._parentForm=Pe,this._stateChanges=kt}updateErrorState(){const Bt=this.errorState,Ee=this._parentFormGroup||this._parentForm,lt=this.matcher||this._defaultMatcher,Pe=this.ngControl?this.ngControl.control:null,kt=lt?.isErrorState(Pe,Ee)??!1;kt!==Bt&&(this.errorState=kt,this._stateChanges.next())}}const $e=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function st(){return(0,i.WQX)(i.xe9)}}),ht="Method not implemented";class vt{locale;_localeChanges=new y.B;localeChanges=this._localeChanges;setTime(Bt,Ee,lt,Pe){throw new Error(ht)}getHours(Bt){throw new Error(ht)}getMinutes(Bt){throw new Error(ht)}getSeconds(Bt){throw new Error(ht)}parseTime(Bt,Ee){throw new Error(ht)}addSeconds(Bt,Ee){throw new Error(ht)}getValidDateOrNull(Bt){return this.isDateInstance(Bt)&&this.isValid(Bt)?Bt:null}deserialize(Bt){return null==Bt||this.isDateInstance(Bt)&&this.isValid(Bt)?Bt:this.invalid()}setLocale(Bt){this.locale=Bt,this._localeChanges.next()}compareDate(Bt,Ee){return this.getYear(Bt)-this.getYear(Ee)||this.getMonth(Bt)-this.getMonth(Ee)||this.getDate(Bt)-this.getDate(Ee)}compareTime(Bt,Ee){return this.getHours(Bt)-this.getHours(Ee)||this.getMinutes(Bt)-this.getMinutes(Ee)||this.getSeconds(Bt)-this.getSeconds(Ee)}sameDate(Bt,Ee){if(Bt&&Ee){let lt=this.isValid(Bt),Pe=this.isValid(Ee);return lt&&Pe?!this.compareDate(Bt,Ee):lt==Pe}return Bt==Ee}sameTime(Bt,Ee){if(Bt&&Ee){const lt=this.isValid(Bt),Pe=this.isValid(Ee);return lt&&Pe?!this.compareTime(Bt,Ee):lt==Pe}return Bt==Ee}clampDate(Bt,Ee,lt){return Ee&&this.compareDate(Bt,Ee)<0?Ee:lt&&this.compareDate(Bt,lt)>0?lt:Bt}}const at=new i.nKC("mat-date-formats");let Ke=(()=>{class _t{isErrorState(Ee,lt){return!!(Ee&&Ee.invalid&&(Ee.touched||lt&<.submitted))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),dt=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(lt,Pe){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return _t})();var Ze=function(_t){return _t[_t.FADING_IN=0]="FADING_IN",_t[_t.VISIBLE=1]="VISIBLE",_t[_t.FADING_OUT=2]="FADING_OUT",_t[_t.HIDDEN=3]="HIDDEN",_t}(Ze||{});class Rt{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ze.HIDDEN;constructor(Bt,Ee,lt,Pe=!1){this._renderer=Bt,this.element=Ee,this.config=lt,this._animationForciblyDisabledThroughCss=Pe}fadeOut(){this._renderer.fadeOutRipple(this)}}const Jt=(0,w.BQ)({passive:!0,capture:!0});class fn{_events=new Map;addHandler(Bt,Ee,lt,Pe){const kt=this._events.get(Ee);if(kt){const ft=kt.get(lt);ft?ft.add(Pe):kt.set(lt,new Set([Pe]))}else this._events.set(Ee,new Map([[lt,new Set([Pe])]])),Bt.runOutsideAngular(()=>{document.addEventListener(Ee,this._delegateEventHandler,Jt)})}removeHandler(Bt,Ee,lt){const Pe=this._events.get(Bt);if(!Pe)return;const kt=Pe.get(Ee);kt&&(kt.delete(lt),0===kt.size&&Pe.delete(Ee),0===Pe.size&&(this._events.delete(Bt),document.removeEventListener(Bt,this._delegateEventHandler,Jt)))}_delegateEventHandler=Bt=>{const Ee=(0,w.Fb)(Bt);Ee&&this._events.get(Bt.type)?.forEach((lt,Pe)=>{(Pe===Ee||Pe.contains(Ee))&<.forEach(kt=>kt.handleEvent(Bt))})}}const Gn={enterDuration:225,exitDuration:150},Qt=(0,w.BQ)({passive:!0,capture:!0}),an=["mousedown","touchstart"],Xn=["mouseup","mouseleave","touchend","touchcancel"];let En=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(lt,Pe){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return _t})();class Gt{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new fn;constructor(Bt,Ee,lt,Pe,kt){this._target=Bt,this._ngZone=Ee,this._platform=Pe,Pe.isBrowser&&(this._containerElement=(0,C.i8)(lt)),kt&&kt.get(T.l).load(En)}fadeInRipple(Bt,Ee,lt={}){const Pe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),kt={...Gn,...lt.animation};lt.centered&&(Bt=Pe.left+Pe.width/2,Ee=Pe.top+Pe.height/2);const ft=lt.radius||function At(_t,Bt,Ee){const lt=Math.max(Math.abs(_t-Ee.left),Math.abs(_t-Ee.right)),Pe=Math.max(Math.abs(Bt-Ee.top),Math.abs(Bt-Ee.bottom));return Math.sqrt(lt*lt+Pe*Pe)}(Bt,Ee,Pe),Pt=Bt-Pe.left,mn=Ee-Pe.top,or=kt.enterDuration,Mr=document.createElement("div");Mr.classList.add("mat-ripple-element"),Mr.style.left=Pt-ft+"px",Mr.style.top=mn-ft+"px",Mr.style.height=2*ft+"px",Mr.style.width=2*ft+"px",null!=lt.color&&(Mr.style.backgroundColor=lt.color),Mr.style.transitionDuration=`${or}ms`,this._containerElement.appendChild(Mr);const ii=window.getComputedStyle(Mr),Si=ii.transitionDuration,rn="none"===ii.transitionProperty||"0s"===Si||"0s, 0s"===Si||0===Pe.width&&0===Pe.height,St=new Rt(this,Mr,lt,rn);Mr.style.transform="scale3d(1, 1, 1)",St.state=Ze.FADING_IN,lt.persistent||(this._mostRecentTransientRipple=St);let qe=null;return!rn&&(or||kt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Dt=()=>{qe&&(qe.fallbackTimer=null),clearTimeout(Hn),this._finishRippleTransition(St)},Wt=()=>this._destroyRipple(St),Hn=setTimeout(Wt,or+100);Mr.addEventListener("transitionend",Dt),Mr.addEventListener("transitioncancel",Wt),qe={onTransitionEnd:Dt,onTransitionCancel:Wt,fallbackTimer:Hn}}),this._activeRipples.set(St,qe),(rn||!or)&&this._finishRippleTransition(St),St}fadeOutRipple(Bt){if(Bt.state===Ze.FADING_OUT||Bt.state===Ze.HIDDEN)return;const Ee=Bt.element,lt={...Gn,...Bt.config.animation};Ee.style.transitionDuration=`${lt.exitDuration}ms`,Ee.style.opacity="0",Bt.state=Ze.FADING_OUT,(Bt._animationForciblyDisabledThroughCss||!lt.exitDuration)&&this._finishRippleTransition(Bt)}fadeOutAll(){this._getActiveRipples().forEach(Bt=>Bt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Bt=>{Bt.config.persistent||Bt.fadeOut()})}setupTriggerEvents(Bt){const Ee=(0,C.i8)(Bt);!this._platform.isBrowser||!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,an.forEach(lt=>{Gt._eventManager.addHandler(this._ngZone,lt,Ee,this)}))}handleEvent(Bt){"mousedown"===Bt.type?this._onMousedown(Bt):"touchstart"===Bt.type?this._onTouchStart(Bt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Xn.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,Qt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Bt){Bt.state===Ze.FADING_IN?this._startFadeOutTransition(Bt):Bt.state===Ze.FADING_OUT&&this._destroyRipple(Bt)}_startFadeOutTransition(Bt){const Ee=Bt===this._mostRecentTransientRipple,{persistent:lt}=Bt.config;Bt.state=Ze.VISIBLE,!lt&&(!Ee||!this._isPointerDown)&&Bt.fadeOut()}_destroyRipple(Bt){const Ee=this._activeRipples.get(Bt)??null;this._activeRipples.delete(Bt),this._activeRipples.size||(this._containerRect=null),Bt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Bt.state=Ze.HIDDEN,null!==Ee&&(Bt.element.removeEventListener("transitionend",Ee.onTransitionEnd),Bt.element.removeEventListener("transitioncancel",Ee.onTransitionCancel),null!==Ee.fallbackTimer&&clearTimeout(Ee.fallbackTimer)),Bt.element.remove()}_onMousedown(Bt){const Ee=(0,a._G)(Bt),lt=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Ee&&!lt&&(this._isPointerDown=!0,this.fadeInRipple(Bt.clientX,Bt.clientY,this._target.rippleConfig))}_onTouchStart(Bt){if(!this._target.rippleDisabled&&!(0,a.w6)(Bt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Ee=Bt.changedTouches;if(Ee)for(let lt=0;lt<Ee.length;lt++)this.fadeInRipple(Ee[lt].clientX,Ee[lt].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(Bt=>{!Bt.config.persistent&&(Bt.state===Ze.VISIBLE||Bt.config.terminateOnPointerUp&&Bt.state===Ze.FADING_IN)&&Bt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Bt=this._triggerElement;Bt&&(an.forEach(Ee=>Gt._eventManager.removeHandler(Ee,Bt,this)),this._pointerUpEventsRegistered&&(Xn.forEach(Ee=>Bt.removeEventListener(Ee,this,Qt)),this._pointerUpEventsRegistered=!1))}}const Kt=new i.nKC("mat-ripple-global-options");let xn=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Ee){Ee&&this.fadeOutAllNonPersistent(),this._disabled=Ee,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ee){this._trigger=Ee,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Ee=(0,i.WQX)(i.SKi),lt=(0,i.WQX)(w.OD),Pe=(0,i.WQX)(Kt,{optional:!0}),kt=(0,i.WQX)(i.zZn);this._globalOptions=Pe||{},this._rippleRenderer=new Gt(this,Ee,this._elementRef,lt,kt)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ee,lt=0,Pe){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,lt,{...this.rippleConfig,...Pe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ee})}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mat-ripple-unbounded",Pe.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return _t})(),Yn=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae,ae]})}return _t})(),tt=(()=>{class _t{_animationMode=(0,i.WQX)(i.bc$,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(lt,Pe){2<&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===Pe.state)("mat-pseudo-checkbox-checked","checked"===Pe.state)("mat-pseudo-checkbox-disabled",Pe.disabled)("mat-pseudo-checkbox-minimal","minimal"===Pe.appearance)("mat-pseudo-checkbox-full","full"===Pe.appearance)("_mat-animation-noopable","NoopAnimations"===Pe._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(lt,Pe){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return _t})(),ke=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae]})}return _t})();const B=new i.nKC("MAT_OPTION_PARENT_COMPONENT"),k=new i.nKC("MatOptgroup");class De{source;isUserInput;constructor(Bt,Ee=!1){this.source=Bt,this.isUserInput=Ee}}let it=(()=>{class _t{_element=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_parent=(0,i.WQX)(B,{optional:!0});group=(0,i.WQX)(k,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,i.WQX)(a.g7).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Ee){this._disabled=Ee}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new i.bkB;_text;_stateChanges=new y.B;constructor(){(0,i.WQX)(T.l).load(dt),(0,i.WQX)(T.l).load(T.Y),this._signalDisableRipple=!!this._parent&&(0,i.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Ee=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Ee&&this._emitSelectionChangeEvent())}deselect(Ee=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Ee&&this._emitSelectionChangeEvent())}focus(Ee,lt){const Pe=this._getHostElement();"function"==typeof Pe.focus&&Pe.focus(lt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Ee){(Ee.keyCode===S.Fm||Ee.keyCode===S.t6)&&!(0,S.rp)(Ee)&&(this._selectViaInteraction(),Ee.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Ee=this.viewValue;Ee!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Ee)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ee=!1){this.onSelectionChange.emit(new De(this,Ee))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-option"]],viewQuery:function(lt,Pe){if(1<&&i.GBs(G,7),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._text=kt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(lt,Pe){1<&&i.bIt("click",function(){return Pe._selectViaInteraction()})("keydown",function(ft){return Pe._handleKeydown(ft)}),2<&&(i.Mr5("id",Pe.id),i.BMQ("aria-selected",Pe.selected)("aria-disabled",Pe.disabled.toString()),i.AVh("mdc-list-item--selected",Pe.selected)("mat-mdc-option-multiple",Pe.multiple)("mat-mdc-option-active",Pe.active)("mdc-list-item--disabled",Pe.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",i.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[i.GFd],ngContentSelectors:te,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(lt,Pe){1<&&(i.NAR(Z),i.DNE(0,be,1,2,"mat-pseudo-checkbox",1),i.SdG(1),i.j41(2,"span",2,0),i.SdG(4,1),i.k0s(),i.DNE(5,me,1,1,"mat-pseudo-checkbox",3)(6,pe,2,1,"span",4),i.nrm(7,"div",5)),2<&&(i.vxM(Pe.multiple?0:-1),i.R7$(5),i.vxM(Pe.multiple||!Pe.selected||Pe.hideSingleSelectionIndicator?-1:5),i.R7$(),i.vxM(Pe.group&&Pe.group._inert?6:-1),i.R7$(),i.Y8G("matRippleTrigger",Pe._getHostElement())("matRippleDisabled",Pe.disabled||Pe.disableRipple))},dependencies:[tt,xn],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return _t})();function ot(_t,Bt,Ee){if(Ee.length){let lt=Bt.toArray(),Pe=Ee.toArray(),kt=0;for(let ft=0;ft<_t+1;ft++)lt[ft].group&<[ft].group===Pe[kt]&&kt++;return kt}return 0}function Tt(_t,Bt,Ee,lt){return _t<Ee?_t:_t+Bt>Ee+lt?Math.max(0,_t-lt+Bt):Ee}let In=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[Yn,ae,ke]})}return _t})();const Vt={capture:!0},dn=["focus","mousedown","mouseenter","touchstart"],Pn="mat-ripple-loader-uninitialized",Fn="mat-ripple-loader-class-name",Bn="mat-ripple-loader-centered",cr="mat-ripple-loader-disabled";let Jr=(()=>{class _t{_document=(0,i.WQX)(A.qQ,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_globalRippleOptions=(0,i.WQX)(Kt,{optional:!0});_platform=(0,i.WQX)(w.OD);_ngZone=(0,i.WQX)(i.SKi);_injector=(0,i.WQX)(i.zZn);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(const Ee of dn)this._document?.addEventListener(Ee,this._onInteraction,Vt)})}ngOnDestroy(){const Ee=this._hosts.keys();for(const lt of Ee)this.destroyRipple(lt);for(const lt of dn)this._document?.removeEventListener(lt,this._onInteraction,Vt)}configureRipple(Ee,lt){Ee.setAttribute(Pn,this._globalRippleOptions?.namespace??""),(lt.className||!Ee.hasAttribute(Fn))&&Ee.setAttribute(Fn,lt.className||""),lt.centered&&Ee.setAttribute(Bn,""),lt.disabled&&Ee.setAttribute(cr,"")}setDisabled(Ee,lt){const Pe=this._hosts.get(Ee);Pe?(Pe.target.rippleDisabled=lt,!lt&&!Pe.hasSetUpEvents&&(Pe.hasSetUpEvents=!0,Pe.renderer.setupTriggerEvents(Ee))):lt?Ee.setAttribute(cr,""):Ee.removeAttribute(cr)}_onInteraction=Ee=>{const lt=(0,w.Fb)(Ee);if(lt instanceof HTMLElement){const Pe=lt.closest(`[${Pn}="${this._globalRippleOptions?.namespace??""}"]`);Pe&&this._createRipple(Pe)}};_createRipple(Ee){if(!this._document||this._hosts.has(Ee))return;Ee.querySelector(".mat-ripple")?.remove();const lt=this._document.createElement("span");lt.classList.add("mat-ripple",Ee.getAttribute(Fn)),Ee.append(lt);const Pe="NoopAnimations"===this._animationMode,kt=this._globalRippleOptions,ft=Pe?0:kt?.animation?.enterDuration??Gn.enterDuration,Pt=Pe?0:kt?.animation?.exitDuration??Gn.exitDuration,mn={rippleDisabled:Pe||kt?.disabled||Ee.hasAttribute(cr),rippleConfig:{centered:Ee.hasAttribute(Bn),terminateOnPointerUp:kt?.terminateOnPointerUp,animation:{enterDuration:ft,exitDuration:Pt}}},or=new Gt(mn,this._ngZone,lt,this._platform,this._injector),Mr=!mn.rippleDisabled;Mr&&or.setupTriggerEvents(Ee),this._hosts.set(Ee,{target:mn,renderer:or,hasSetUpEvents:Mr}),Ee.removeAttribute(Pn)}destroyRipple(Ee){const lt=this._hosts.get(Ee);lt&&(lt.renderer._removeTriggerEvents(),this._hosts.delete(Ee))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),Xr=(()=>{class _t{labelPosition;static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-form-field--align-end","before"===Pe.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:Te,ngContentSelectors:xe,decls:1,vars:0,template:function(lt,Pe){1<&&(i.NAR(),i.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return _t})()},5351:(o,s,r)=>{"use strict";r.d(s,{Vh:()=>se,bZ:()=>Gn,E7:()=>En,tx:()=>Nt,Yi:()=>Xn,hM:()=>Kt,CP:()=>He});var i=r(6969),a=r(4438),c=r(9888),y=r(6860),w=r(6939),C=r(177),T=r(7336),S=r(1413),A=r(9030),I=r(7673),N=r(8203),G=r(9172);function Z(tt,ke){}class te{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext}let me=(()=>{class tt extends w.lb{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(c.GX);_config;_interactivityChecker=(0,a.WQX)(c.Z7);_ngZone=(0,a.WQX)(a.SKi);_overlayRef=(0,a.WQX)(i.yY);_focusMonitor=(0,a.WQX)(c.FN);_platform=(0,a.WQX)(y.OD);_document=(0,a.WQX)(C.qQ,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=(0,a.WQX)(a.gRc);_injector=(0,a.WQX)(a.zZn);_isDestroyed=!1;constructor(){super(),this._config=(0,a.WQX)(te,{optional:!0})||new te,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(B){this._ariaLabelledByQueue.push(B),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(B){const k=this._ariaLabelledByQueue.indexOf(B);k>-1&&(this._ariaLabelledByQueue.splice(k,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(B){this._portalOutlet.hasAttached();const k=this._portalOutlet.attachComponentPortal(B);return this._contentAttached(),k}attachTemplatePortal(B){this._portalOutlet.hasAttached();const k=this._portalOutlet.attachTemplatePortal(B);return this._contentAttached(),k}attachDomPortal=B=>{this._portalOutlet.hasAttached();const k=this._portalOutlet.attachDomPortal(B);return this._contentAttached(),k};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(B,k){this._interactivityChecker.isFocusable(B)||(B.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const j=()=>{B.removeEventListener("blur",j),B.removeEventListener("mousedown",j),B.removeAttribute("tabindex")};B.addEventListener("blur",j),B.addEventListener("mousedown",j)})),B.focus(k)}_focusByCssSelector(B,k){let j=this._elementRef.nativeElement.querySelector(B);j&&this._forceFocus(j,k)}_trapFocus(){this._isDestroyed||(0,a.mal)(()=>{const B=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||B.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}},{injector:this._injector})}_restoreFocus(){const B=this._config.restoreFocus;let k=null;if("string"==typeof B?k=this._document.querySelector(B):"boolean"==typeof B?k=B?this._elementFocusedBeforeDialogWasOpened:null:B&&(k=B),this._config.restoreFocus&&k&&"function"==typeof k.focus){const j=(0,y.vc)(),De=this._elementRef.nativeElement;(!j||j===this._document.body||j===De||De.contains(j))&&(this._focusMonitor?(this._focusMonitor.focusVia(k,this._closeInteractionType),this._closeInteractionType=null):k.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const B=this._elementRef.nativeElement,k=(0,y.vc)();return B===k||B.contains(k)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,y.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(k){return new(k||tt)};static \u0275cmp=a.VBU({type:tt,selectors:[["cdk-dialog-container"]],viewQuery:function(k,j){if(1&k&&a.GBs(w.I3,7),2&k){let De;a.mGM(De=a.lsd())&&(j._portalOutlet=De.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(k,j){2&k&&a.BMQ("id",j._config.id||null)("role",j._config.role)("aria-modal",j._config.ariaModal)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledByQueue[0])("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null)},features:[a.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(k,j){1&k&&a.DNE(0,Z,0,0,"ng-template",0)},dependencies:[w.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return tt})();class pe{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(ke,B){this.overlayRef=ke,this.config=B,this.disableClose=B.disableClose,this.backdropClick=ke.backdropClick(),this.keydownEvents=ke.keydownEvents(),this.outsidePointerEvents=ke.outsidePointerEvents(),this.id=B.id,this.keydownEvents.subscribe(k=>{k.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(k)&&(k.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=ke.detachments().subscribe(()=>{!1!==B.closeOnOverlayDetachments&&this.close()})}close(ke,B){if(this.containerInstance){const k=this.closed;this.containerInstance._closeInteractionType=B?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),k.next(ke),k.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ke="",B=""){return this.overlayRef.updateSize({width:ke,height:B}),this}addPanelClass(ke){return this.overlayRef.addPanelClass(ke),this}removePanelClass(ke){return this.overlayRef.removePanelClass(ke),this}}const Te=new a.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const tt=(0,a.WQX)(i.hJ);return()=>tt.scrollStrategies.block()}}),xe=new a.nKC("DialogData"),Re=new a.nKC("DefaultDialogConfig");let le=(()=>{class tt{_overlay=(0,a.WQX)(i.hJ);_injector=(0,a.WQX)(a.zZn);_defaultOptions=(0,a.WQX)(Re,{optional:!0});_parentDialog=(0,a.WQX)(tt,{optional:!0,skipSelf:!0});_overlayContainer=(0,a.WQX)(i.Sf);_idGenerator=(0,a.WQX)(c.g7);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,a.WQX)(Te);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,A.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.Z)(void 0)));constructor(){}open(B,k){(k={...this._defaultOptions||new te,...k}).id=k.id||this._idGenerator.getId("cdk-dialog-"),k.id&&this.getDialogById(k.id);const De=this._getOverlayConfig(k),it=this._overlay.create(De),ot=new pe(it,k),Tt=this._attachContainer(it,ot,k);return ot.containerInstance=Tt,this._attachDialogContent(B,ot,Tt,k),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ot),ot.closed.subscribe(()=>this._removeOpenDialog(ot,!0)),this.afterOpened.next(ot),ot}closeAll(){ae(this.openDialogs,B=>B.close())}getDialogById(B){return this.openDialogs.find(k=>k.id===B)}ngOnDestroy(){ae(this._openDialogsAtThisLevel,B=>{!1===B.config.closeOnDestroy&&this._removeOpenDialog(B,!1)}),ae(this._openDialogsAtThisLevel,B=>B.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(B){const k=new i.rR({positionStrategy:B.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:B.scrollStrategy||this._scrollStrategy(),panelClass:B.panelClass,hasBackdrop:B.hasBackdrop,direction:B.direction,minWidth:B.minWidth,minHeight:B.minHeight,maxWidth:B.maxWidth,maxHeight:B.maxHeight,width:B.width,height:B.height,disposeOnNavigation:B.closeOnNavigation});return B.backdropClass&&(k.backdropClass=B.backdropClass),k}_attachContainer(B,k,j){const De=j.injector||j.viewContainerRef?.injector,it=[{provide:te,useValue:j},{provide:pe,useValue:k},{provide:i.yY,useValue:B}];let ot;j.container?"function"==typeof j.container?ot=j.container:(ot=j.container.type,it.push(...j.container.providers(j))):ot=me;const Tt=new w.A8(ot,j.viewContainerRef,a.zZn.create({parent:De||this._injector,providers:it}));return B.attach(Tt).instance}_attachDialogContent(B,k,j,De){if(B instanceof a.C4Q){const it=this._createInjector(De,k,j,void 0);let ot={$implicit:De.data,dialogRef:k};De.templateContext&&(ot={...ot,..."function"==typeof De.templateContext?De.templateContext():De.templateContext}),j.attachTemplatePortal(new w.VA(B,null,ot,it))}else{const it=this._createInjector(De,k,j,this._injector),ot=j.attachComponentPortal(new w.A8(B,De.viewContainerRef,it));k.componentRef=ot,k.componentInstance=ot.instance}}_createInjector(B,k,j,De){const it=B.injector||B.viewContainerRef?.injector,ot=[{provide:xe,useValue:B.data},{provide:pe,useValue:k}];return B.providers&&("function"==typeof B.providers?ot.push(...B.providers(k,B,j)):ot.push(...B.providers)),B.direction&&(!it||!it.get(N.dS,null,{optional:!0}))&&ot.push({provide:N.dS,useValue:{value:B.direction,change:(0,I.of)()}}),a.zZn.create({parent:it||De,providers:ot})}_removeOpenDialog(B,k){const j=this.openDialogs.indexOf(B);j>-1&&(this.openDialogs.splice(j,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((De,it)=>{De?it.setAttribute("aria-hidden",De):it.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),k&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const B=this._overlayContainer.getContainerElement();if(B.parentElement){const k=B.parentElement.children;for(let j=k.length-1;j>-1;j--){const De=k[j];De!==B&&"SCRIPT"!==De.nodeName&&"STYLE"!==De.nodeName&&!De.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(De,De.getAttribute("aria-hidden")),De.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const B=this._parentDialog;return B?B._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=a.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();function ae(tt,ke){let B=tt.length;for(;B--;)ke(tt[B])}let Ie=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=a.$C({type:tt});static \u0275inj=a.G2t({providers:[le],imports:[i.z_,w.jc,c.Pd,w.jc]})}return tt})();var $e=r(4085),st=r(7786),ht=r(5964),vt=r(6697),at=r(5542),Xt=r(3);function yn(tt,ke){}r(9969);class $n{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration}const bn="mdc-dialog--open",Qe="mdc-dialog--opening",bt="mdc-dialog--closing";let Ft=(()=>{class tt extends me{_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_animationStateChanged=new a.bkB;_animationsEnabled="NoopAnimations"!==this._animationMode;_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?dt(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?dt(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Qe,bn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(bn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(bn),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(bt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(B){this._actionSectionCount+=B,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Qe,bt)}_waitForAnimationToComplete(B,k){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(k,B)}_requestAnimationFrame(B){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(B):B()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(B){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:B})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(B){const k=super.attachComponentPortal(B);return k.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),k}static \u0275fac=(()=>{let B;return function(j){return(B||(B=a.xGo(tt)))(j||tt)}})();static \u0275cmp=a.VBU({type:tt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(k,j){2&k&&(a.Mr5("id",j._config.id),a.BMQ("aria-modal",j._config.ariaModal)("role",j._config.role)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledByQueue[0])("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null),a.AVh("_mat-animation-noopable",!j._animationsEnabled)("mat-mdc-dialog-container-with-actions",j._actionSectionCount>0))},features:[a.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(k,j){1&k&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,yn,0,0,"ng-template",2),a.k0s()())},dependencies:[w.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return tt})();const Ke="--mat-dialog-transition-duration";function dt(tt){return null==tt?null:"number"==typeof tt?tt:tt.endsWith("ms")?(0,$e.OE)(tt.substring(0,tt.length-2)):tt.endsWith("s")?1e3*(0,$e.OE)(tt.substring(0,tt.length-1)):"0"===tt?0:null}var Ge=function(tt){return tt[tt.OPEN=0]="OPEN",tt[tt.CLOSING=1]="CLOSING",tt[tt.CLOSED=2]="CLOSED",tt}(Ge||{});class He{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S.B;_beforeClosed=new S.B;_result;_closeFallbackTimeout;_state=Ge.OPEN;_closeInteractionType;constructor(ke,B,k){this._ref=ke,this._containerInstance=k,this.disableClose=B.disableClose,this.id=ke.id,ke.addPanelClass("mat-mdc-dialog-panel"),k._animationStateChanged.pipe((0,ht.p)(j=>"opened"===j.state),(0,vt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),k._animationStateChanged.pipe((0,ht.p)(j=>"closed"===j.state),(0,vt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,st.h)(this.backdropClick(),this.keydownEvents().pipe((0,ht.p)(j=>j.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(j)))).subscribe(j=>{this.disableClose||(j.preventDefault(),mt(this,"keydown"===j.type?"keyboard":"mouse"))})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,ht.p)(B=>"closing"===B.state),(0,vt.s)(1)).subscribe(B=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),B.totalTime+100)}),this._state=Ge.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(ke){let B=this._ref.config.positionStrategy;return ke&&(ke.left||ke.right)?ke.left?B.left(ke.left):B.right(ke.right):B.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?B.top(ke.top):B.bottom(ke.bottom):B.centerVertically(),this._ref.updatePosition(),this}updateSize(ke="",B=""){return this._ref.updateSize(ke,B),this}addPanelClass(ke){return this._ref.addPanelClass(ke),this}removePanelClass(ke){return this._ref.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=Ge.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function mt(tt,ke,B){return tt._closeInteractionType=ke,tt.close(B)}const se=new a.nKC("MatMdcDialogData"),Ze=new a.nKC("mat-mdc-dialog-default-options"),Rt=new a.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const tt=(0,a.WQX)(i.hJ);return()=>tt.scrollStrategies.block()}});let Gn=(()=>{class tt{_overlay=(0,a.WQX)(i.hJ);_defaultOptions=(0,a.WQX)(Ze,{optional:!0});_scrollStrategy=(0,a.WQX)(Rt);_parentDialog=(0,a.WQX)(tt,{optional:!0,skipSelf:!0});_idGenerator=(0,a.WQX)(c.g7);_dialog=(0,a.WQX)(le);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;dialogConfigClass=$n;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const B=this._parentDialog;return B?B._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,A.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.Z)(void 0)));constructor(){this._dialogRefConstructor=He,this._dialogContainerType=Ft,this._dialogDataToken=se}open(B,k){let j;(k={...this._defaultOptions||new $n,...k}).id=k.id||this._idGenerator.getId("mat-mdc-dialog-"),k.scrollStrategy=k.scrollStrategy||this._scrollStrategy();const De=this._dialog.open(B,{...k,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:k},{provide:te,useValue:k}]},templateContext:()=>({dialogRef:j}),providers:(it,ot,Tt)=>(j=new this._dialogRefConstructor(it,k,Tt),j.updatePosition(k?.position),[{provide:this._dialogContainerType,useValue:Tt},{provide:this._dialogDataToken,useValue:ot.data},{provide:this._dialogRefConstructor,useValue:j}])});return j.componentRef=De.componentRef,j.componentInstance=De.componentInstance,this.openDialogs.push(j),this.afterOpened.next(j),j.afterClosed().subscribe(()=>{const it=this.openDialogs.indexOf(j);it>-1&&(this.openDialogs.splice(it,1),this.openDialogs.length||this._getAfterAllClosed().next())}),j}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(B){return this.openDialogs.find(k=>k.id===B)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(B){let k=B.length;for(;k--;)B[k].close()}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=a.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Nt=(()=>{class tt{dialogRef=(0,a.WQX)(He,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Gn);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Gt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(B){const k=B._matDialogClose||B._matDialogCloseResult;k&&(this.dialogResult=k.currentValue)}_onButtonClick(B){mt(this.dialogRef,0===B.screenX&&0===B.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(k,j){1&k&&a.bIt("click",function(it){return j._onButtonClick(it)}),2&k&&a.BMQ("aria-label",j.ariaLabel||null)("type",j.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.OA$]})}return tt})(),Qt=(()=>{class tt{_dialogRef=(0,a.WQX)(He,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Gn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Gt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt})}return tt})(),Xn=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[a.nM4([at.uv])]})}return tt})(),En=(()=>{class tt extends Qt{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let B;return function(j){return(B||(B=a.xGo(tt)))(j||tt)}})();static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(k,j){2&k&&a.AVh("mat-mdc-dialog-actions-align-start","start"===j.align)("mat-mdc-dialog-actions-align-center","center"===j.align)("mat-mdc-dialog-actions-align-end","end"===j.align)},inputs:{align:"align"},features:[a.Vt3]})}return tt})();function Gt(tt,ke){let B=tt.nativeElement.parentElement;for(;B&&!B.classList.contains("mat-mdc-dialog-container");)B=B.parentElement;return B?ke.find(k=>k.id===B.id):null}let Kt=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=a.$C({type:tt});static \u0275inj=a.G2t({providers:[Gn],imports:[Ie,i.z_,w.jc,Xt.yE,Xt.yE]})}return tt})()},1997:(o,s,r)=>{"use strict";r.d(s,{q:()=>y,w:()=>w});var i=r(4438),a=r(4085),c=r(3);let y=(()=>{class C{get vertical(){return this._vertical}set vertical(S){this._vertical=(0,a.he)(S)}_vertical=!1;get inset(){return this._inset}set inset(S){this._inset=(0,a.he)(S)}_inset=!1;static \u0275fac=function(A){return new(A||C)};static \u0275cmp=i.VBU({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(A,I){2&A&&(i.BMQ("aria-orientation",I.vertical?"vertical":"horizontal"),i.AVh("mat-divider-vertical",I.vertical)("mat-divider-horizontal",!I.vertical)("mat-divider-inset",I.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(A,I){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return C})(),w=(()=>{class C{static \u0275fac=function(A){return new(A||C)};static \u0275mod=i.$C({type:C});static \u0275inj=i.G2t({imports:[c.yE,c.yE]})}return C})()},2408:(o,s,r)=>{"use strict";r.d(s,{xb:()=>Vt,U$:()=>dn,TL:()=>an,rl:()=>Jr,qT:()=>it,RG:()=>Xr,MV:()=>Xn,nJ:()=>Nt,JW:()=>Gt,yw:()=>Kt});var i=r(4438),a=r(9888),c=r(8203),y=r(4085),w=r(6860),C=r(177),T=r(8359),S=r(1413),A=r(7786),I=r(9172),N=r(6354),G=r(9974),Z=r(4360),be=r(5964),me=r(6977),pe=r(1985),Te=r(4668);class Re{_box;_destroyed=new S.B;_resizeSubject=new S.B;_resizeObserver;_elementObservables=new Map;constructor(Bt){this._box=Bt,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Ee=>this._resizeSubject.next(Ee)))}observe(Bt){return this._elementObservables.has(Bt)||this._elementObservables.set(Bt,new pe.c(Ee=>{const lt=this._resizeSubject.subscribe(Ee);return this._resizeObserver?.observe(Bt,{box:this._box}),()=>{this._resizeObserver?.unobserve(Bt),lt.unsubscribe(),this._elementObservables.delete(Bt)}}).pipe((0,be.p)(Ee=>Ee.some(lt=>lt.target===Bt)),(0,Te.t)({bufferSize:1,refCount:!0}),(0,me.Q)(this._destroyed))),this._elementObservables.get(Bt)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Me=(()=>{class _t{_observers=new Map;_ngZone=(0,i.WQX)(i.SKi);constructor(){}ngOnDestroy(){for(const[,Ee]of this._observers)Ee.destroy();this._observers.clear()}observe(Ee,lt){const Pe=lt?.box||"content-box";return this._observers.has(Pe)||this._observers.set(Pe,new Re(Pe)),this._observers.get(Pe).observe(Ee)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();var Ce=r(9969),le=r(2318),ae=r(3);const Ie=["notch"],$e=["matFormFieldNotchedOutline",""],st=["*"],ht=["textField"],vt=["iconPrefixContainer"],at=["textPrefixContainer"],Xt=["iconSuffixContainer"],ln=["textSuffixContainer"],yn=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],$n=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function bn(_t,Bt){1&_t&&i.nrm(0,"span",21)}function Qe(_t,Bt){if(1&_t&&(i.j41(0,"label",20),i.SdG(1,1),i.DNE(2,bn,1,0,"span",21),i.k0s()),2&_t){const Ee=i.XpG(2);i.Y8G("floating",Ee._shouldLabelFloat())("monitorResize",Ee._hasOutline())("id",Ee._labelId),i.BMQ("for",Ee._control.disableAutomaticLabeling?null:Ee._control.id),i.R7$(2),i.vxM(!Ee.hideRequiredMarker&&Ee._control.required?2:-1)}}function bt(_t,Bt){if(1&_t&&i.DNE(0,Qe,3,5,"label",20),2&_t){const Ee=i.XpG();i.vxM(Ee._hasFloatingLabel()?0:-1)}}function ze(_t,Bt){1&_t&&i.nrm(0,"div",7)}function Fe(_t,Bt){}function Ft(_t,Bt){if(1&_t&&i.DNE(0,Fe,0,0,"ng-template",13),2&_t){i.XpG(2);const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function Ke(_t,Bt){if(1&_t&&(i.j41(0,"div",9),i.DNE(1,Ft,1,1,null,13),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("matFormFieldNotchedOutlineOpen",Ee._shouldLabelFloat()),i.R7$(),i.vxM(Ee._forceDisplayInfixLabel()?-1:1)}}function dt(_t,Bt){1&_t&&(i.j41(0,"div",10,2),i.SdG(2,2),i.k0s())}function Ge(_t,Bt){1&_t&&(i.j41(0,"div",11,3),i.SdG(2,3),i.k0s())}function He(_t,Bt){}function mt(_t,Bt){if(1&_t&&i.DNE(0,He,0,0,"ng-template",13),2&_t){i.XpG();const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function se(_t,Bt){1&_t&&(i.j41(0,"div",14,4),i.SdG(2,4),i.k0s())}function Ze(_t,Bt){1&_t&&(i.j41(0,"div",15,5),i.SdG(2,5),i.k0s())}function Rt(_t,Bt){1&_t&&i.nrm(0,"div",16)}function Jt(_t,Bt){if(1&_t&&(i.j41(0,"div",18),i.SdG(1,6),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState)}}function fn(_t,Bt){if(1&_t&&(i.j41(0,"mat-hint",22),i.EFF(1),i.k0s()),2&_t){const Ee=i.XpG(2);i.Y8G("id",Ee._hintLabelId),i.R7$(),i.JRh(Ee.hintLabel)}}function Gn(_t,Bt){if(1&_t&&(i.j41(0,"div",19),i.DNE(1,fn,2,2,"mat-hint",22),i.SdG(2,7),i.nrm(3,"div",23),i.SdG(4,8),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState),i.R7$(),i.vxM(Ee.hintLabel?1:-1)}}let Nt=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-label"]]})}return _t})();const Qt=new i.nKC("MatError");let an=(()=>{class _t{id=(0,i.WQX)(a.g7).getId("mat-mdc-error-");constructor(){(0,i.WQX)(new i.ES_("aria-live"),{optional:!0})||(0,i.WQX)(i.aKT).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(lt,Pe){2<&&i.Mr5("id",Pe.id)},inputs:{id:"id"},features:[i.Jv_([{provide:Qt,useExisting:_t}])]})}return _t})(),Xn=(()=>{class _t{align="start";id=(0,i.WQX)(a.g7).getId("mat-mdc-hint-");static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(lt,Pe){2<&&(i.Mr5("id",Pe.id),i.BMQ("align",null),i.AVh("mat-mdc-form-field-hint-end","end"===Pe.align))},inputs:{align:"align",id:"id"}})}return _t})();const En=new i.nKC("MatPrefix");let Gt=(()=>{class _t{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[i.Jv_([{provide:En,useExisting:_t}])]})}return _t})();const At=new i.nKC("MatSuffix");let Kt=(()=>{class _t{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[i.Jv_([{provide:At,useExisting:_t}])]})}return _t})();const xn=new i.nKC("FloatingLabelParent");let Yn=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);get floating(){return this._floating}set floating(Ee){this._floating=Ee,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Ee){this._monitorResize=Ee,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,i.WQX)(Me);_ngZone=(0,i.WQX)(i.SKi);_parent=(0,i.WQX)(xn);_resizeSubscription=new T.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function tt(_t){if(null!==_t.offsetParent)return _t.scrollWidth;const Ee=_t.cloneNode(!0);Ee.style.setProperty("position","absolute"),Ee.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ee);const lt=Ee.scrollWidth;return Ee.remove(),lt}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-floating-label--float-above",Pe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return _t})();const ke="mdc-line-ripple--active",B="mdc-line-ripple--deactivating";let k=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);constructor(){(0,i.WQX)(i.SKi).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Ee=this._elementRef.nativeElement.classList;Ee.remove(B),Ee.add(ke)}deactivate(){this._elementRef.nativeElement.classList.add(B)}_handleTransitionEnd=Ee=>{const lt=this._elementRef.nativeElement.classList,Pe=lt.contains(B);"opacity"===Ee.propertyName&&Pe&<.remove(ke,B)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return _t})(),j=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);open=!1;_notch;constructor(){}ngAfterViewInit(){const Ee=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Ee?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Ee.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Ee.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Ee){this._notch.nativeElement.style.width=this.open&&Ee?`calc(${Ee}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(lt,Pe){if(1<&&i.GBs(Ie,5),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._notch=kt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-notched-outline--notched",Pe.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:$e,ngContentSelectors:st,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(lt,Pe){1<&&(i.NAR(),i.nrm(0,"div",1),i.j41(1,"div",2,0),i.SdG(3),i.k0s(),i.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return _t})();const De={transitionMessages:(0,Ce.hZ)("transitionMessages",[(0,Ce.wk)("enter",(0,Ce.iF)({opacity:1,transform:"translateY(0%)"})),(0,Ce.kY)("void => enter",[(0,Ce.iF)({opacity:0,transform:"translateY(-5px)"}),(0,Ce.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let it=(()=>{class _t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t})}return _t})();const Vt=new i.nKC("MatFormField"),dn=new i.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Jr=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_dir=(0,i.WQX)(c.dS);_platform=(0,i.WQX)(w.OD);_idGenerator=(0,i.WQX)(a.g7);_defaults=(0,i.WQX)(dn,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,i.sbv)(Nt);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ee){this._hideRequiredMarker=(0,y.he)(Ee)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Ee){Ee!==this._floatLabel&&(this._floatLabel=Ee,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(Ee){const lt=this._appearance;this._appearance=Ee||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==lt&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance="fill";get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Ee){this._subscriptSizing=Ee||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Ee){this._hintLabel=Ee,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Ee){this._explicitFormFieldControl=Ee}_destroyed=new S.B;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=(0,i.WQX)(i.zZn);constructor(){const Ee=this._defaults;Ee&&(Ee.appearance&&(this.appearance=Ee.appearance),this._hideRequiredMarker=!!Ee?.hideRequiredMarker,Ee.color&&(this.color=Ee.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,i.EWP)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Ee){const lt=this._control,Pe="mat-mdc-form-field-type-";Ee&&this._elementRef.nativeElement.classList.remove(Pe+Ee.controlType),lt.controlType&&this._elementRef.nativeElement.classList.add(Pe+lt.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=lt.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=lt.stateChanges.pipe((0,I.Z)([void 0,void 0]),(0,N.T)(()=>[lt.errorState,lt.userAriaDescribedBy]),function te(){return(0,G.N)((_t,Bt)=>{let Ee,lt=!1;_t.subscribe((0,Z._)(Bt,Pe=>{const kt=Ee;Ee=Pe,lt&&Bt.next([kt,Pe]),lt=!0}))})}(),(0,be.p)(([[kt,ft],[Pt,mn]])=>kt!==Pt||ft!==mn)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),lt.ngControl&<.ngControl.valueChanges&&(this._valueChanges=lt.ngControl.valueChanges.pipe((0,me.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Ee=>!Ee._isText),this._hasTextPrefix=!!this._prefixChildren.find(Ee=>Ee._isText),this._hasIconSuffix=!!this._suffixChildren.find(Ee=>!Ee._isText),this._hasTextSuffix=!!this._suffixChildren.find(Ee=>Ee._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,A.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),(0,i.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,me.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=(0,i.EWP)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Ee){const lt=this._control?this._control.ngControl:null;return lt&<[Ee]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Ee=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ee.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const lt=this._hintChildren?this._hintChildren.find(kt=>"start"===kt.align):null,Pe=this._hintChildren?this._hintChildren.find(kt=>"end"===kt.align):null;lt?Ee.push(lt.id):this._hintLabel&&Ee.push(this._hintLabelId),Pe&&Ee.push(Pe.id)}else this._errorChildren&&Ee.push(...this._errorChildren.map(lt=>lt.id));this._control.setDescribedByIds(Ee)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const Ee=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Ee.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const lt=this._iconPrefixContainer?.nativeElement,Pe=this._textPrefixContainer?.nativeElement,kt=this._iconSuffixContainer?.nativeElement,ft=this._textSuffixContainer?.nativeElement,Pt=lt?.getBoundingClientRect().width??0,mn=Pe?.getBoundingClientRect().width??0,or=kt?.getBoundingClientRect().width??0,Mr=ft?.getBoundingClientRect().width??0;Ee.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Pt+mn}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Pt+mn+or+Mr}px)`)}_isAttachedToDom(){const Ee=this._elementRef.nativeElement;if(Ee.getRootNode){const lt=Ee.getRootNode();return lt&<!==Ee}return document.documentElement.contains(Ee)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-form-field"]],contentQueries:function(lt,Pe,kt){if(1<&&(i.C6U(kt,Pe._labelChild,Nt,5),i.wni(kt,it,5),i.wni(kt,En,5),i.wni(kt,At,5),i.wni(kt,Qt,5),i.wni(kt,Xn,5)),2<){let ft;i.NyB(),i.mGM(ft=i.lsd())&&(Pe._formFieldControl=ft.first),i.mGM(ft=i.lsd())&&(Pe._prefixChildren=ft),i.mGM(ft=i.lsd())&&(Pe._suffixChildren=ft),i.mGM(ft=i.lsd())&&(Pe._errorChildren=ft),i.mGM(ft=i.lsd())&&(Pe._hintChildren=ft)}},viewQuery:function(lt,Pe){if(1<&&(i.GBs(ht,5),i.GBs(vt,5),i.GBs(at,5),i.GBs(Xt,5),i.GBs(ln,5),i.GBs(Yn,5),i.GBs(j,5),i.GBs(k,5)),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._textField=kt.first),i.mGM(kt=i.lsd())&&(Pe._iconPrefixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._textPrefixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._iconSuffixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._textSuffixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._floatingLabel=kt.first),i.mGM(kt=i.lsd())&&(Pe._notchedOutline=kt.first),i.mGM(kt=i.lsd())&&(Pe._lineRipple=kt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(lt,Pe){2<&&i.AVh("mat-mdc-form-field-label-always-float",Pe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Pe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Pe._hasIconSuffix)("mat-form-field-invalid",Pe._control.errorState)("mat-form-field-disabled",Pe._control.disabled)("mat-form-field-autofilled",Pe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Pe._animationMode)("mat-form-field-appearance-fill","fill"==Pe.appearance)("mat-form-field-appearance-outline","outline"==Pe.appearance)("mat-form-field-hide-placeholder",Pe._hasFloatingLabel()&&!Pe._shouldLabelFloat())("mat-focused",Pe._control.focused)("mat-primary","accent"!==Pe.color&&"warn"!==Pe.color)("mat-accent","accent"===Pe.color)("mat-warn","warn"===Pe.color)("ng-untouched",Pe._shouldForward("untouched"))("ng-touched",Pe._shouldForward("touched"))("ng-pristine",Pe._shouldForward("pristine"))("ng-dirty",Pe._shouldForward("dirty"))("ng-valid",Pe._shouldForward("valid"))("ng-invalid",Pe._shouldForward("invalid"))("ng-pending",Pe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Jv_([{provide:Vt,useExisting:_t},{provide:xn,useExisting:_t}])],ngContentSelectors:$n,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(lt,Pe){if(1<){const kt=i.RV6();i.NAR(yn),i.DNE(0,bt,1,1,"ng-template",null,0,i.C5r),i.j41(2,"div",6,1),i.bIt("click",function(Pt){return i.eBV(kt),i.Njj(Pe._control.onContainerClick(Pt))}),i.DNE(4,ze,1,0,"div",7),i.j41(5,"div",8),i.DNE(6,Ke,2,2,"div",9)(7,dt,3,0,"div",10)(8,Ge,3,0,"div",11),i.j41(9,"div",12),i.DNE(10,mt,1,1,null,13),i.SdG(11),i.k0s(),i.DNE(12,se,3,0,"div",14)(13,Ze,3,0,"div",15),i.k0s(),i.DNE(14,Rt,1,0,"div",16),i.k0s(),i.j41(15,"div",17),i.DNE(16,Jt,2,1,"div",18)(17,Gn,5,2,"div",19),i.k0s()}if(2<){let kt;i.R7$(2),i.AVh("mdc-text-field--filled",!Pe._hasOutline())("mdc-text-field--outlined",Pe._hasOutline())("mdc-text-field--no-label",!Pe._hasFloatingLabel())("mdc-text-field--disabled",Pe._control.disabled)("mdc-text-field--invalid",Pe._control.errorState),i.R7$(2),i.vxM(Pe._hasOutline()||Pe._control.disabled?-1:4),i.R7$(2),i.vxM(Pe._hasOutline()?6:-1),i.R7$(),i.vxM(Pe._hasIconPrefix?7:-1),i.R7$(),i.vxM(Pe._hasTextPrefix?8:-1),i.R7$(2),i.vxM(!Pe._hasOutline()||Pe._forceDisplayInfixLabel()?10:-1),i.R7$(2),i.vxM(Pe._hasTextSuffix?12:-1),i.R7$(),i.vxM(Pe._hasIconSuffix?13:-1),i.R7$(),i.vxM(Pe._hasOutline()?-1:14),i.R7$(),i.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Pe.subscriptSizing),i.R7$(),i.vxM("error"===(kt=Pe._getDisplayedMessages())?16:"hint"===kt?17:-1)}},dependencies:[Yn,j,C.T3,k,Xn],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[De.transitionMessages]},changeDetection:0})}return _t})(),Xr=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae.yE,le.w5,ae.yE]})}return _t})()},9213:(o,s,r)=>{"use strict";r.d(s,{An:()=>bt,m_:()=>ze,tp:()=>Ie});var i=r(4438),a=r(3),c=r(177),y=r(7673),w=r(8810),C=r(7468),T=r(8359),S=r(8141),A=r(6354),I=r(9437),N=r(980),G=r(7647),Z=r(6697),te=r(1626),be=r(345);const me=["*"];let pe;function xe(Fe){return function Te(){if(void 0===pe&&(pe=null,typeof window<"u")){const Fe=window;void 0!==Fe.trustedTypes&&(pe=Fe.trustedTypes.createPolicy("angular#components",{createHTML:Ft=>Ft}))}return pe}()?.createHTML(Fe)||Fe}function Re(Fe){return Error(`Unable to find icon with the name "${Fe}"`)}function Ce(Fe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Fe}".`)}function le(Fe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Fe}".`)}class ae{url;svgText;options;svgElement;constructor(Ft,Ke,dt){this.url=Ft,this.svgText=Ke,this.options=dt}}let Ie=(()=>{class Fe{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(Ke,dt,Ge,He){this._httpClient=Ke,this._sanitizer=dt,this._errorHandler=He,this._document=Ge}addSvgIcon(Ke,dt,Ge){return this.addSvgIconInNamespace("",Ke,dt,Ge)}addSvgIconLiteral(Ke,dt,Ge){return this.addSvgIconLiteralInNamespace("",Ke,dt,Ge)}addSvgIconInNamespace(Ke,dt,Ge,He){return this._addSvgIconConfig(Ke,dt,new ae(Ge,null,He))}addSvgIconResolver(Ke){return this._resolvers.push(Ke),this}addSvgIconLiteralInNamespace(Ke,dt,Ge,He){const mt=this._sanitizer.sanitize(i.WPN.HTML,Ge);if(!mt)throw le(Ge);const se=xe(mt);return this._addSvgIconConfig(Ke,dt,new ae("",se,He))}addSvgIconSet(Ke,dt){return this.addSvgIconSetInNamespace("",Ke,dt)}addSvgIconSetLiteral(Ke,dt){return this.addSvgIconSetLiteralInNamespace("",Ke,dt)}addSvgIconSetInNamespace(Ke,dt,Ge){return this._addSvgIconSetConfig(Ke,new ae(dt,null,Ge))}addSvgIconSetLiteralInNamespace(Ke,dt,Ge){const He=this._sanitizer.sanitize(i.WPN.HTML,dt);if(!He)throw le(dt);const mt=xe(He);return this._addSvgIconSetConfig(Ke,new ae("",mt,Ge))}registerFontClassAlias(Ke,dt=Ke){return this._fontCssClassesByAlias.set(Ke,dt),this}classNameForFontAlias(Ke){return this._fontCssClassesByAlias.get(Ke)||Ke}setDefaultFontSetClass(...Ke){return this._defaultFontSetClass=Ke,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ke){const dt=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Ke);if(!dt)throw Ce(Ke);const Ge=this._cachedIconsByUrl.get(dt);return Ge?(0,y.of)(ht(Ge)):this._loadSvgIconFromConfig(new ae(Ke,null)).pipe((0,S.M)(He=>this._cachedIconsByUrl.set(dt,He)),(0,A.T)(He=>ht(He)))}getNamedSvgIcon(Ke,dt=""){const Ge=vt(dt,Ke);let He=this._svgIconConfigs.get(Ge);if(He)return this._getSvgFromConfig(He);if(He=this._getIconConfigFromResolvers(dt,Ke),He)return this._svgIconConfigs.set(Ge,He),this._getSvgFromConfig(He);const mt=this._iconSetConfigs.get(dt);return mt?this._getSvgFromIconSetConfigs(Ke,mt):(0,w.$)(Re(Ge))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ke){return Ke.svgText?(0,y.of)(ht(this._svgElementFromConfig(Ke))):this._loadSvgIconFromConfig(Ke).pipe((0,A.T)(dt=>ht(dt)))}_getSvgFromIconSetConfigs(Ke,dt){const Ge=this._extractIconWithNameFromAnySet(Ke,dt);if(Ge)return(0,y.of)(Ge);const He=dt.filter(mt=>!mt.svgText).map(mt=>this._loadSvgIconSetFromConfig(mt).pipe((0,I.W)(se=>{const Rt=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,mt.url)} failed: ${se.message}`;return this._errorHandler.handleError(new Error(Rt)),(0,y.of)(null)})));return(0,C.p)(He).pipe((0,A.T)(()=>{const mt=this._extractIconWithNameFromAnySet(Ke,dt);if(!mt)throw Re(Ke);return mt}))}_extractIconWithNameFromAnySet(Ke,dt){for(let Ge=dt.length-1;Ge>=0;Ge--){const He=dt[Ge];if(He.svgText&&He.svgText.toString().indexOf(Ke)>-1){const mt=this._svgElementFromConfig(He),se=this._extractSvgIconFromSet(mt,Ke,He.options);if(se)return se}}return null}_loadSvgIconFromConfig(Ke){return this._fetchIcon(Ke).pipe((0,S.M)(dt=>Ke.svgText=dt),(0,A.T)(()=>this._svgElementFromConfig(Ke)))}_loadSvgIconSetFromConfig(Ke){return Ke.svgText?(0,y.of)(null):this._fetchIcon(Ke).pipe((0,S.M)(dt=>Ke.svgText=dt))}_extractSvgIconFromSet(Ke,dt,Ge){const He=Ke.querySelector(`[id="${dt}"]`);if(!He)return null;const mt=He.cloneNode(!0);if(mt.removeAttribute("id"),"svg"===mt.nodeName.toLowerCase())return this._setSvgAttributes(mt,Ge);if("symbol"===mt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(mt),Ge);const se=this._svgElementFromString(xe("<svg></svg>"));return se.appendChild(mt),this._setSvgAttributes(se,Ge)}_svgElementFromString(Ke){const dt=this._document.createElement("DIV");dt.innerHTML=Ke;const Ge=dt.querySelector("svg");if(!Ge)throw Error("<svg> tag not found");return Ge}_toSvgElement(Ke){const dt=this._svgElementFromString(xe("<svg></svg>")),Ge=Ke.attributes;for(let He=0;He<Ge.length;He++){const{name:mt,value:se}=Ge[He];"id"!==mt&&dt.setAttribute(mt,se)}for(let He=0;He<Ke.childNodes.length;He++)Ke.childNodes[He].nodeType===this._document.ELEMENT_NODE&&dt.appendChild(Ke.childNodes[He].cloneNode(!0));return dt}_setSvgAttributes(Ke,dt){return Ke.setAttribute("fit",""),Ke.setAttribute("height","100%"),Ke.setAttribute("width","100%"),Ke.setAttribute("preserveAspectRatio","xMidYMid meet"),Ke.setAttribute("focusable","false"),dt&&dt.viewBox&&Ke.setAttribute("viewBox",dt.viewBox),Ke}_fetchIcon(Ke){const{url:dt,options:Ge}=Ke,He=Ge?.withCredentials??!1;if(!this._httpClient)throw function Me(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}();if(null==dt)throw Error(`Cannot fetch icon from URL "${dt}".`);const mt=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,dt);if(!mt)throw Ce(dt);const se=this._inProgressUrlFetches.get(mt);if(se)return se;const Ze=this._httpClient.get(mt,{responseType:"text",withCredentials:He}).pipe((0,A.T)(Rt=>xe(Rt)),(0,N.j)(()=>this._inProgressUrlFetches.delete(mt)),(0,G.u)());return this._inProgressUrlFetches.set(mt,Ze),Ze}_addSvgIconConfig(Ke,dt,Ge){return this._svgIconConfigs.set(vt(Ke,dt),Ge),this}_addSvgIconSetConfig(Ke,dt){const Ge=this._iconSetConfigs.get(Ke);return Ge?Ge.push(dt):this._iconSetConfigs.set(Ke,[dt]),this}_svgElementFromConfig(Ke){if(!Ke.svgElement){const dt=this._svgElementFromString(Ke.svgText);this._setSvgAttributes(dt,Ke.options),Ke.svgElement=dt}return Ke.svgElement}_getIconConfigFromResolvers(Ke,dt){for(let Ge=0;Ge<this._resolvers.length;Ge++){const He=this._resolvers[Ge](dt,Ke);if(He)return at(He)?new ae(He.url,null,He.options):new ae(He,null)}}static \u0275fac=function(dt){return new(dt||Fe)(i.KVO(te.Qq,8),i.KVO(be.up),i.KVO(c.qQ,8),i.KVO(i.zcH))};static \u0275prov=i.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function ht(Fe){return Fe.cloneNode(!0)}function vt(Fe,Ft){return Fe+":"+Ft}function at(Fe){return!(!Fe.url||!Fe.options)}const Xt=new i.nKC("MAT_ICON_DEFAULT_OPTIONS"),ln=new i.nKC("mat-icon-location",{providedIn:"root",factory:function yn(){const Fe=(0,i.WQX)(c.qQ),Ft=Fe?Fe.location:null;return{getPathname:()=>Ft?Ft.pathname+Ft.search:""}}}),$n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],bn=$n.map(Fe=>`[${Fe}]`).join(", "),Qe=/^url\(['"]?#(.*?)['"]?\)$/;let bt=(()=>{class Fe{_elementRef=(0,i.WQX)(i.aKT);_iconRegistry=(0,i.WQX)(Ie);_location=(0,i.WQX)(ln);_errorHandler=(0,i.WQX)(i.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(Ke){this._color=Ke}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(Ke){Ke!==this._svgIcon&&(Ke?this._updateSvgIcon(Ke):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ke)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(Ke){const dt=this._cleanupFontValue(Ke);dt!==this._fontSet&&(this._fontSet=dt,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(Ke){const dt=this._cleanupFontValue(Ke);dt!==this._fontIcon&&(this._fontIcon=dt,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=T.yU.EMPTY;constructor(){const Ke=(0,i.WQX)(new i.ES_("aria-hidden"),{optional:!0}),dt=(0,i.WQX)(Xt,{optional:!0});dt&&(dt.color&&(this.color=this._defaultColor=dt.color),dt.fontSet&&(this.fontSet=dt.fontSet)),Ke||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ke){if(!Ke)return["",""];const dt=Ke.split(":");switch(dt.length){case 1:return["",dt[0]];case 2:return dt;default:throw Error(`Invalid icon name: "${Ke}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ke=this._elementsWithExternalReferences;if(Ke&&Ke.size){const dt=this._location.getPathname();dt!==this._previousPath&&(this._previousPath=dt,this._prependPathToReferences(dt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ke){this._clearSvgElement();const dt=this._location.getPathname();this._previousPath=dt,this._cacheChildrenWithExternalReferences(Ke),this._prependPathToReferences(dt),this._elementRef.nativeElement.appendChild(Ke)}_clearSvgElement(){const Ke=this._elementRef.nativeElement;let dt=Ke.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();dt--;){const Ge=Ke.childNodes[dt];(1!==Ge.nodeType||"svg"===Ge.nodeName.toLowerCase())&&Ge.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ke=this._elementRef.nativeElement,dt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ge=>Ge.length>0);this._previousFontSetClass.forEach(Ge=>Ke.classList.remove(Ge)),dt.forEach(Ge=>Ke.classList.add(Ge)),this._previousFontSetClass=dt,this.fontIcon!==this._previousFontIconClass&&!dt.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ke.classList.remove(this._previousFontIconClass),this.fontIcon&&Ke.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ke){return"string"==typeof Ke?Ke.trim().split(" ")[0]:Ke}_prependPathToReferences(Ke){const dt=this._elementsWithExternalReferences;dt&&dt.forEach((Ge,He)=>{Ge.forEach(mt=>{He.setAttribute(mt.name,`url('${Ke}#${mt.value}')`)})})}_cacheChildrenWithExternalReferences(Ke){const dt=Ke.querySelectorAll(bn),Ge=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let He=0;He<dt.length;He++)$n.forEach(mt=>{const se=dt[He],Ze=se.getAttribute(mt),Rt=Ze?Ze.match(Qe):null;if(Rt){let Jt=Ge.get(se);Jt||(Jt=[],Ge.set(se,Jt)),Jt.push({name:mt,value:Rt[1]})}})}_updateSvgIcon(Ke){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ke){const[dt,Ge]=this._splitIconName(Ke);dt&&(this._svgNamespace=dt),Ge&&(this._svgName=Ge),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ge,dt).pipe((0,Z.s)(1)).subscribe(He=>this._setSvgElement(He),He=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${dt}:${Ge}! ${He.message}`))})}}static \u0275fac=function(dt){return new(dt||Fe)};static \u0275cmp=i.VBU({type:Fe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(dt,Ge){2&dt&&(i.BMQ("data-mat-icon-type",Ge._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ge._svgName||Ge.fontIcon)("data-mat-icon-namespace",Ge._svgNamespace||Ge.fontSet)("fontIcon",Ge._usingFontIcon()?Ge.fontIcon:null),i.HbH(Ge.color?"mat-"+Ge.color:""),i.AVh("mat-icon-inline",Ge.inline)("mat-icon-no-color","primary"!==Ge.color&&"accent"!==Ge.color&&"warn"!==Ge.color))},inputs:{color:"color",inline:[2,"inline","inline",i.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.GFd],ngContentSelectors:me,decls:1,vars:0,template:function(dt,Ge){1&dt&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return Fe})(),ze=(()=>{class Fe{static \u0275fac=function(dt){return new(dt||Fe)};static \u0275mod=i.$C({type:Fe});static \u0275inj=i.G2t({imports:[a.yE,a.yE]})}return Fe})()},9042:(o,s,r)=>{"use strict";r.d(s,{fS:()=>be,fg:()=>te});var i=r(4085),a=r(6860),c=r(7403),y=r(4438),w=r(9888),C=r(9417),T=r(3),S=r(2408),A=r(1413);const N=new y.nKC("MAT_INPUT_VALUE_ACCESSOR"),G=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Z=new y.nKC("MAT_INPUT_CONFIG");let te=(()=>{class me{_elementRef=(0,y.WQX)(y.aKT);_platform=(0,y.WQX)(a.OD);ngControl=(0,y.WQX)(C.vO,{optional:!0,self:!0});_autofillMonitor=(0,y.WQX)(c.P8);_ngZone=(0,y.WQX)(y.SKi);_formField=(0,y.WQX)(S.xb,{optional:!0});_uid=(0,y.WQX)(w.g7).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=(0,y.WQX)(Z,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new A.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(Te){this._disabled=(0,i.he)(Te),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(Te){this._id=Te||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(C.k0.required)??!1}set required(Te){this._required=(0,i.he)(Te)}_required;get type(){return this._type}set type(Te){this._type=Te||"text",this._validateType(),!this._isTextarea&&(0,a.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(Te){this._errorStateTracker.matcher=Te}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(Te){Te!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(Te):this._inputValueAccessor.value=Te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Te){this._readonly=(0,i.he)(Te)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(Te){this._errorStateTracker.errorState=Te}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Te=>(0,a.MU)().has(Te));constructor(){const Te=(0,y.WQX)(C.cV,{optional:!0}),xe=(0,y.WQX)(C.j4,{optional:!0}),Re=(0,y.WQX)(T.es),Me=(0,y.WQX)(N,{optional:!0,self:!0}),Ce=this._elementRef.nativeElement,le=Ce.nodeName.toLowerCase();Me?(0,y.Hps)(Me.value)?this._signalBasedValueAccessor=Me:this._inputValueAccessor=Me:this._inputValueAccessor=Ce,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{Ce.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new T.X0(Re,this.ngControl,xe,Te,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===le,this._isTextarea="textarea"===le,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=Ce.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,y.QZP)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Te=>{this.autofilled=Te.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Te){this._elementRef.nativeElement.focus(Te)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(Te){if(Te!==this.focused){if(!this._isNativeSelect&&Te&&this.disabled&&this.disabledInteractive){const xe=this._elementRef.nativeElement;"number"===xe.type?(xe.type="text",xe.setSelectionRange(0,0),xe.type="number"):xe.setSelectionRange(0,0)}this.focused=Te,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){const Te=this._elementRef.nativeElement.value;this._previousNativeValue!==Te&&(this._previousNativeValue=Te,this.stateChanges.next())}_dirtyCheckPlaceholder(){const Te=this._getPlaceholder();if(Te!==this._previousPlaceholder){const xe=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?xe.setAttribute("placeholder",Te):xe.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){G.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Te=this._elementRef.nativeElement.validity;return Te&&Te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Te=this._elementRef.nativeElement,xe=Te.options[0];return this.focused||Te.multiple||!this.empty||!!(Te.selectedIndex>-1&&xe&&xe.label)}return this.focused&&!this.disabled||!this.empty}setDescribedByIds(Te){const xe=this._elementRef.nativeElement,Re=xe.getAttribute("aria-describedby");let Me;if(Re){const Ce=this._formFieldDescribedBy||Te;Me=Te.concat(Re.split(" ").filter(le=>le&&!Ce.includes(le)))}else Me=Te;this._formFieldDescribedBy=Te,Me.length?xe.setAttribute("aria-describedby",Me.join(" ")):xe.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Te=this._elementRef.nativeElement;return this._isNativeSelect&&(Te.multiple||Te.size>1)}_iOSKeyupListener=Te=>{const xe=Te.target;!xe.value&&0===xe.selectionStart&&0===xe.selectionEnd&&(xe.setSelectionRange(1,1),xe.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&"number"===this._type&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&"number"!==this._type&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(xe){return new(xe||me)};static \u0275dir=y.FsC({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(xe,Re){1&xe&&y.bIt("focus",function(){return Re._focusChanged(!0)})("blur",function(){return Re._focusChanged(!1)})("input",function(){return Re._onInput()}),2&xe&&(y.Mr5("id",Re.id)("disabled",Re.disabled&&!Re.disabledInteractive)("required",Re.required),y.BMQ("name",Re.name||null)("readonly",Re._getReadonlyAttribute())("aria-disabled",Re.disabled&&Re.disabledInteractive?"true":null)("aria-invalid",Re.empty&&Re.required?null:Re.errorState)("aria-required",Re.required)("id",Re.id),y.AVh("mat-input-server",Re._isServer)("mat-mdc-form-field-textarea-control",Re._isInFormField&&Re._isTextarea)("mat-mdc-form-field-input-control",Re._isInFormField)("mat-mdc-input-disabled-interactive",Re.disabledInteractive)("mdc-text-field__input",Re._isInFormField)("mat-mdc-native-select-inline",Re._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},exportAs:["matInput"],features:[y.Jv_([{provide:S.qT,useExisting:me}]),y.GFd,y.OA$]})}return me})(),be=(()=>{class me{static \u0275fac=function(xe){return new(xe||me)};static \u0275mod=y.$C({type:me});static \u0275inj=y.G2t({imports:[T.yE,S.RG,S.RG,c.EE,T.yE]})}return me})()},9115:(o,s,r)=>{"use strict";r.d(s,{Cn:()=>Jt,Cp:()=>Rt,fb:()=>Xt,kk:()=>dt});var i=r(4438),a=r(9888),c=r(7336),y=r(1413),w=r(7786),C=r(8359),T=r(7673),S=r(5007),A=r(9172),I=r(5558),N=r(6977),G=r(5964),Z=r(6697),te=r(1986),be=r(177),me=r(3),pe=r(9046),Te=r(6939),xe=r(9969),Re=r(8203),Me=r(6969),Ce=r(6860),le=r(5542);const ae=["mat-menu-item",""],Ie=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],$e=["mat-icon, [matMenuItemIcon]","*"];function st(fn,Gn){1&fn&&(i.qSk(),i.j41(0,"svg",2),i.nrm(1,"polygon",3),i.k0s())}const ht=["*"];function vt(fn,Gn){if(1&fn){const Nt=i.RV6();i.j41(0,"div",0),i.bIt("click",function(){i.eBV(Nt);const an=i.XpG();return i.Njj(an.closed.emit("click"))})("@transformMenu.start",function(an){i.eBV(Nt);const Xn=i.XpG();return i.Njj(Xn._onAnimationStart(an))})("@transformMenu.done",function(an){i.eBV(Nt);const Xn=i.XpG();return i.Njj(Xn._onAnimationDone(an))}),i.j41(1,"div",1),i.SdG(2),i.k0s()()}if(2&fn){const Nt=i.XpG();i.HbH(Nt._classList),i.Y8G("id",Nt.panelId)("@transformMenu",Nt._panelAnimationState),i.BMQ("aria-label",Nt.ariaLabel||null)("aria-labelledby",Nt.ariaLabelledby||null)("aria-describedby",Nt.ariaDescribedby||null)}}const at=new i.nKC("MAT_MENU_PANEL");let Xt=(()=>{class fn{_elementRef=(0,i.WQX)(i.aKT);_document=(0,i.WQX)(be.qQ);_focusMonitor=(0,i.WQX)(a.FN);_parentMenu=(0,i.WQX)(at,{optional:!0});_changeDetectorRef=(0,i.WQX)(i.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new y.B;_focused=new y.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,i.WQX)(pe.l).load(me.Ah),this._parentMenu?.addItem?.(this)}focus(Nt,Qt){this._focusMonitor&&Nt?this._focusMonitor.focusVia(this._getHostElement(),Nt,Qt):this._getHostElement().focus(Qt),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(Nt){this.disabled&&(Nt.preventDefault(),Nt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Nt=this._elementRef.nativeElement.cloneNode(!0),Qt=Nt.querySelectorAll("mat-icon, .material-icons");for(let an=0;an<Qt.length;an++)Qt[an].remove();return Nt.textContent?.trim()||""}_setHighlighted(Nt){this._highlighted=Nt,this._changeDetectorRef.markForCheck()}_setTriggersSubmenu(Nt){this._triggersSubmenu=Nt,this._changeDetectorRef.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275cmp=i.VBU({type:fn,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(Qt,an){1&Qt&&i.bIt("click",function(En){return an._checkDisabled(En)})("mouseenter",function(){return an._handleMouseEnter()}),2&Qt&&(i.BMQ("role",an.role)("tabindex",an._getTabIndex())("aria-disabled",an.disabled)("disabled",an.disabled||null),i.AVh("mat-mdc-menu-item-highlighted",an._highlighted)("mat-mdc-menu-item-submenu-trigger",an._triggersSubmenu))},inputs:{role:"role",disabled:[2,"disabled","disabled",i.L39],disableRipple:[2,"disableRipple","disableRipple",i.L39]},exportAs:["matMenuItem"],features:[i.GFd],attrs:ae,ngContentSelectors:$e,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Qt,an){1&Qt&&(i.NAR(Ie),i.SdG(0),i.j41(1,"span",0),i.SdG(2,1),i.k0s(),i.nrm(3,"div",1),i.DNE(4,st,2,0,":svg:svg",2)),2&Qt&&(i.R7$(3),i.Y8G("matRippleDisabled",an.disableRipple||an.disabled)("matRippleTrigger",an._getHostElement()),i.R7$(),i.vxM(an._triggersSubmenu?4:-1))},dependencies:[me.r6],encapsulation:2,changeDetection:0})}return fn})();const bn=new i.nKC("MatMenuContent"),bt={transformMenu:(0,xe.hZ)("transformMenu",[(0,xe.wk)("void",(0,xe.iF)({opacity:0,transform:"scale(0.8)"})),(0,xe.kY)("void => enter",(0,xe.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,xe.iF)({opacity:1,transform:"scale(1)"}))),(0,xe.kY)("* => void",(0,xe.i0)("100ms 25ms linear",(0,xe.iF)({opacity:0})))]),fadeInItems:(0,xe.hZ)("fadeInItems",[(0,xe.wk)("showing",(0,xe.iF)({opacity:1})),(0,xe.kY)("void => *",[(0,xe.iF)({opacity:0}),(0,xe.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ft=new i.nKC("mat-menu-default-options",{providedIn:"root",factory:function Ke(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let dt=(()=>{class fn{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_allItems;_directDescendantItems=new i.rOR;_classList={};_panelAnimationState="void";_animationDone=new y.B;_isAnimating;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(Nt){this._xPosition=Nt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Nt){this._yPosition=Nt,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(Nt){const Qt=this._previousPanelClass,an={...this._classList};Qt&&Qt.length&&Qt.split(" ").forEach(Xn=>{an[Xn]=!1}),this._previousPanelClass=Nt,Nt&&Nt.length&&(Nt.split(" ").forEach(Xn=>{an[Xn]=!0}),this._elementRef.nativeElement.className=""),this._classList=an}_previousPanelClass;get classList(){return this.panelClass}set classList(Nt){this.panelClass=Nt}closed=new i.bkB;close=this.closed;panelId=(0,i.WQX)(a.g7).getId("mat-menu-panel-");_injector=(0,i.WQX)(i.zZn);constructor(){const Nt=(0,i.WQX)(Ft);this.overlayPanelClass=Nt.overlayPanelClass||"",this._xPosition=Nt.xPosition,this._yPosition=Nt.yPosition,this.backdropClass=Nt.backdropClass,this.overlapTrigger=Nt.overlapTrigger,this.hasBackdrop=Nt.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new a.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,A.Z)(this._directDescendantItems),(0,I.n)(Nt=>(0,w.h)(...Nt.map(Qt=>Qt._focused)))).subscribe(Nt=>this._keyManager.updateActiveItem(Nt)),this._directDescendantItems.changes.subscribe(Nt=>{const Qt=this._keyManager;if("enter"===this._panelAnimationState&&Qt.activeItem?._hasFocus()){const an=Nt.toArray(),Xn=Math.max(0,Math.min(an.length-1,Qt.activeItemIndex||0));an[Xn]&&!an[Xn].disabled?Qt.setActiveItem(Xn):Qt.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,A.Z)(this._directDescendantItems),(0,I.n)(Qt=>(0,w.h)(...Qt.map(an=>an._hovered))))}addItem(Nt){}removeItem(Nt){}_handleKeydown(Nt){const Qt=Nt.keyCode,an=this._keyManager;switch(Qt){case c._f:(0,c.rp)(Nt)||(Nt.preventDefault(),this.closed.emit("keydown"));break;case c.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Qt===c.i7||Qt===c.n6)&&an.setFocusOrigin("keyboard"),void an.onKeydown(Nt)}}focusFirstItem(Nt="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,i.mal)(()=>{let Qt=null;if(this._directDescendantItems.length&&(Qt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Qt||!Qt.contains(document.activeElement)){const an=this._keyManager;an.setFocusOrigin(Nt).setFirstItemActive(),!an.activeItem&&Qt&&Qt.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Nt){}setPositionClasses(Nt=this.xPosition,Qt=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===Nt,"mat-menu-after":"after"===Nt,"mat-menu-above":"above"===Qt,"mat-menu-below":"below"===Qt},this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Nt){this._animationDone.next(Nt),this._isAnimating=!1}_onAnimationStart(Nt){this._isAnimating=!0,"enter"===Nt.toState&&0===this._keyManager.activeItemIndex&&(Nt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,A.Z)(this._allItems)).subscribe(Nt=>{this._directDescendantItems.reset(Nt.filter(Qt=>Qt._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275cmp=i.VBU({type:fn,selectors:[["mat-menu"]],contentQueries:function(Qt,an,Xn){if(1&Qt&&(i.wni(Xn,bn,5),i.wni(Xn,Xt,5),i.wni(Xn,Xt,4)),2&Qt){let En;i.mGM(En=i.lsd())&&(an.lazyContent=En.first),i.mGM(En=i.lsd())&&(an._allItems=En),i.mGM(En=i.lsd())&&(an.items=En)}},viewQuery:function(Qt,an){if(1&Qt&&i.GBs(i.C4Q,5),2&Qt){let Xn;i.mGM(Xn=i.lsd())&&(an.templateRef=Xn.first)}},hostVars:3,hostBindings:function(Qt,an){2&Qt&&i.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",i.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",Nt=>null==Nt?null:(0,i.L39)(Nt)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i.Jv_([{provide:at,useExisting:fn}]),i.GFd],ngContentSelectors:ht,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(Qt,an){1&Qt&&(i.NAR(),i.DNE(0,vt,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[bt.transformMenu,bt.fadeInItems]},changeDetection:0})}return fn})();const Ge=new i.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const fn=(0,i.WQX)(Me.hJ);return()=>fn.scrollStrategies.reposition()}}),mt={provide:Ge,deps:[Me.hJ],useFactory:function He(fn){return()=>fn.scrollStrategies.reposition()}},se=(0,Ce.BQ)({passive:!0});let Rt=(()=>{class fn{_overlay=(0,i.WQX)(Me.hJ);_element=(0,i.WQX)(i.aKT);_viewContainerRef=(0,i.WQX)(i.c1b);_menuItemInstance=(0,i.WQX)(Xt,{optional:!0,self:!0});_dir=(0,i.WQX)(Re.dS,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_ngZone=(0,i.WQX)(i.SKi);_scrollStrategy=(0,i.WQX)(Ge);_changeDetectorRef=(0,i.WQX)(i.gRc);_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=C.yU.EMPTY;_hoverSubscription=C.yU.EMPTY;_menuCloseSubscription=C.yU.EMPTY;_parentMaterialMenu;_parentInnerPadding;_handleTouchStart=Nt=>{(0,a.w6)(Nt)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Nt){this.menu=Nt}get menu(){return this._menu}set menu(Nt){Nt!==this._menu&&(this._menu=Nt,this._menuCloseSubscription.unsubscribe(),Nt&&(this._menuCloseSubscription=Nt.close.subscribe(Qt=>{this._destroyMenu(Qt),("click"===Qt||"tab"===Qt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Qt)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new i.bkB;onMenuOpen=this.menuOpened;menuClosed=new i.bkB;onMenuClose=this.menuClosed;constructor(){const Nt=(0,i.WQX)(at,{optional:!0});this._parentMaterialMenu=Nt instanceof dt?Nt:void 0,this._element.nativeElement.addEventListener("touchstart",this._handleTouchStart,se)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,se),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Nt=this.menu;if(this._menuOpen||!Nt)return;const Qt=this._createOverlay(Nt),an=Qt.getConfig(),Xn=an.positionStrategy;this._setPosition(Nt,Xn),an.hasBackdrop=null==Nt.hasBackdrop?!this.triggersSubmenu():Nt.hasBackdrop,Qt.attach(this._getPortal(Nt)),Nt.lazyContent&&Nt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Nt),Nt instanceof dt&&(Nt._startAnimation(),Nt._directDescendantItems.changes.pipe((0,N.Q)(Nt.close)).subscribe(()=>{Xn.withLockedPosition(!1).reapplyLastPosition(),Xn.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Nt,Qt){this._focusMonitor&&Nt?this._focusMonitor.focusVia(this._element,Nt,Qt):this._element.nativeElement.focus(Qt)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Nt){if(!this._overlayRef||!this.menuOpen)return;const Qt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Nt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Qt instanceof dt?(Qt._resetAnimation(),Qt.lazyContent?Qt._animationDone.pipe((0,G.p)(an=>"void"===an.toState),(0,Z.s)(1),(0,N.Q)(Qt.lazyContent._attached)).subscribe({next:()=>Qt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Qt?.lazyContent?.detach())}_initMenu(Nt){Nt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Nt.direction=this.dir,Nt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(Nt){Nt!==this._menuOpen&&(this._menuOpen=Nt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Nt),this._changeDetectorRef.markForCheck())}_createOverlay(Nt){if(!this._overlayRef){const Qt=this._getOverlayConfig(Nt);this._subscribeToPositions(Nt,Qt.positionStrategy),this._overlayRef=this._overlay.create(Qt),this._overlayRef.keydownEvents().subscribe(an=>{this.menu instanceof dt&&this.menu._handleKeydown(an)})}return this._overlayRef}_getOverlayConfig(Nt){return new Me.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Nt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Nt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(Nt,Qt){Nt.setPositionClasses&&Qt.positionChanges.subscribe(an=>{this._ngZone.run(()=>{Nt.setPositionClasses("start"===an.connectionPair.overlayX?"after":"before","top"===an.connectionPair.overlayY?"below":"above")})})}_setPosition(Nt,Qt){let[an,Xn]="before"===Nt.xPosition?["end","start"]:["start","end"],[En,Gt]="above"===Nt.yPosition?["bottom","top"]:["top","bottom"],[At,Kt]=[En,Gt],[xn,Yn]=[an,Xn],tt=0;if(this.triggersSubmenu()){if(Yn=an="before"===Nt.xPosition?"start":"end",Xn=xn="end"===an?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const ke=this._parentMaterialMenu.items.first;this._parentInnerPadding=ke?ke._getHostElement().offsetTop:0}tt="bottom"===En?this._parentInnerPadding:-this._parentInnerPadding}}else Nt.overlapTrigger||(At="top"===En?"bottom":"top",Kt="top"===Gt?"bottom":"top");Qt.withPositions([{originX:an,originY:At,overlayX:xn,overlayY:En,offsetY:tt},{originX:Xn,originY:At,overlayX:Yn,overlayY:En,offsetY:tt},{originX:an,originY:Kt,overlayX:xn,overlayY:Gt,offsetY:-tt},{originX:Xn,originY:Kt,overlayX:Yn,overlayY:Gt,offsetY:-tt}])}_menuClosingActions(){const Nt=this._overlayRef.backdropClick(),Qt=this._overlayRef.detachments(),an=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),Xn=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.p)(En=>En!==this._menuItemInstance),(0,G.p)(()=>this._menuOpen)):(0,T.of)();return(0,w.h)(Nt,an,Xn,Qt)}_handleMousedown(Nt){(0,a._G)(Nt)||(this._openedBy=0===Nt.button?"mouse":void 0,this.triggersSubmenu()&&Nt.preventDefault())}_handleKeydown(Nt){const Qt=Nt.keyCode;(Qt===c.Fm||Qt===c.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Qt===c.LE&&"ltr"===this.dir||Qt===c.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Nt){this.triggersSubmenu()?(Nt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.p)(Nt=>Nt===this._menuItemInstance&&!Nt.disabled),(0,te.c)(0,S.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof dt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Z.s)(1),(0,te.c)(0,S.$),(0,N.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Nt){return(!this._portal||this._portal.templateRef!==Nt.templateRef)&&(this._portal=new Te.VA(Nt.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275dir=i.FsC({type:fn,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Qt,an){1&Qt&&i.bIt("click",function(En){return an._handleClick(En)})("mousedown",function(En){return an._handleMousedown(En)})("keydown",function(En){return an._handleKeydown(En)}),2&Qt&&i.BMQ("aria-haspopup",an.menu?"menu":null)("aria-expanded",an.menuOpen)("aria-controls",an.menuOpen?an.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return fn})(),Jt=(()=>{class fn{static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275mod=i.$C({type:fn});static \u0275inj=i.G2t({providers:[mt],imports:[me.pZ,me.yE,Me.z_,le.Gj,me.yE]})}return fn})()},7575:(o,s,r)=>{"use strict";r.d(s,{HM:()=>S,PO:()=>I});var i=r(4438),c=(r(177),r(3));function y(N,G){1&N&&i.nrm(0,"div",2)}const w=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let S=(()=>{class N{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);_changeDetectorRef=(0,i.WQX)(i.gRc);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});constructor(){const Z=(0,i.WQX)(w,{optional:!0});this._isNoopAnimation="NoopAnimations"===this._animationMode,Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor}set color(Z){this._color=Z}_color;_defaultColor="primary";get value(){return this._value}set value(Z){this._value=A(Z||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(Z){this._bufferValue=A(Z||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new i.bkB;get mode(){return this._mode}set mode(Z){this._mode=Z,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}_transitionendHandler=Z=>{0===this.animationEnd.observers.length||!Z.target||!Z.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(te){return new(te||N)};static \u0275cmp=i.VBU({type:N,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(te,be){2&te&&(i.BMQ("aria-valuenow",be._isIndeterminate()?null:be.value)("mode",be.mode),i.HbH("mat-"+be.color),i.AVh("_mat-animation-noopable",be._isNoopAnimation)("mdc-linear-progress--animation-ready",!be._isNoopAnimation)("mdc-linear-progress--indeterminate",be._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",i.Udg],bufferValue:[2,"bufferValue","bufferValue",i.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.GFd],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(te,be){1&te&&(i.j41(0,"div",0),i.nrm(1,"div",1),i.DNE(2,y,1,0,"div",2),i.k0s(),i.j41(3,"div",3),i.nrm(4,"span",4),i.k0s(),i.j41(5,"div",5),i.nrm(6,"span",4),i.k0s()),2&te&&(i.R7$(),i.xc7("flex-basis",be._getBufferBarFlexBasis()),i.R7$(),i.vxM("buffer"===be.mode?2:-1),i.R7$(),i.xc7("transform",be._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}"],encapsulation:2,changeDetection:0})}return N})();function A(N,G=0,Z=100){return Math.max(G,Math.min(Z,N))}let I=(()=>{class N{static \u0275fac=function(te){return new(te||N)};static \u0275mod=i.$C({type:N});static \u0275inj=i.G2t({imports:[c.yE]})}return N})()},7250:(o,s,r)=>{"use strict";r.d(s,{VO:()=>Qt,Ve:()=>Xn,$2:()=>an});var i=r(6969),a=r(4438),c=r(3),y=r(2408),w=r(5542),C=r(9888),T=r(8203),I=(r(4402),r(7673),r(1413));class Te{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new I.B;constructor(Gt=!1,At,Kt=!0,xn){this._multiple=Gt,this._emitChanges=Kt,this.compareWith=xn,At&&At.length&&(Gt?At.forEach(Yn=>this._markSelected(Yn)):this._markSelected(At[0]),this._selectedToEmit.length=0)}select(...Gt){this._verifyValueAssignment(Gt),Gt.forEach(Kt=>this._markSelected(Kt));const At=this._hasQueuedChanges();return this._emitChangeEvent(),At}deselect(...Gt){this._verifyValueAssignment(Gt),Gt.forEach(Kt=>this._unmarkSelected(Kt));const At=this._hasQueuedChanges();return this._emitChangeEvent(),At}setSelection(...Gt){this._verifyValueAssignment(Gt);const At=this.selected,Kt=new Set(Gt);Gt.forEach(Yn=>this._markSelected(Yn)),At.filter(Yn=>!Kt.has(this._getConcreteValue(Yn,Kt))).forEach(Yn=>this._unmarkSelected(Yn));const xn=this._hasQueuedChanges();return this._emitChangeEvent(),xn}toggle(Gt){return this.isSelected(Gt)?this.deselect(Gt):this.select(Gt)}clear(Gt=!0){this._unmarkAll();const At=this._hasQueuedChanges();return Gt&&this._emitChangeEvent(),At}isSelected(Gt){return this._selection.has(this._getConcreteValue(Gt))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Gt){this._multiple&&this.selected&&this._selected.sort(Gt)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(Gt){Gt=this._getConcreteValue(Gt),this.isSelected(Gt)||(this._multiple||this._unmarkAll(),this.isSelected(Gt)||this._selection.add(Gt),this._emitChanges&&this._selectedToEmit.push(Gt))}_unmarkSelected(Gt){Gt=this._getConcreteValue(Gt),this.isSelected(Gt)&&(this._selection.delete(Gt),this._emitChanges&&this._deselectedToEmit.push(Gt))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Gt=>this._unmarkSelected(Gt))}_verifyValueAssignment(Gt){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Gt,At){if(this.compareWith){At=At??this._selection;for(let Kt of At)if(this.compareWith(Gt,Kt))return Kt;return Gt}return Gt}}var Me=r(7336),Ce=r(9417),le=r(9030),ae=r(7786),Ie=r(9172),$e=r(5558),st=r(5964),ht=r(6354),vt=r(3294),at=r(6977),Xt=r(6697),ln=r(9969),yn=r(177);const $n=["trigger"],bn=["panel"],Qe=[[["mat-select-trigger"]],"*"],bt=["mat-select-trigger","*"];function ze(En,Gt){if(1&En&&(a.j41(0,"span",4),a.EFF(1),a.k0s()),2&En){const At=a.XpG();a.R7$(),a.JRh(At.placeholder)}}function Fe(En,Gt){1&En&&a.SdG(0)}function Ft(En,Gt){if(1&En&&(a.j41(0,"span",11),a.EFF(1),a.k0s()),2&En){const At=a.XpG(2);a.R7$(),a.JRh(At.triggerValue)}}function Ke(En,Gt){if(1&En&&(a.j41(0,"span",5),a.DNE(1,Fe,1,0)(2,Ft,2,1,"span",11),a.k0s()),2&En){const At=a.XpG();a.R7$(),a.vxM(At.customTrigger?1:2)}}function dt(En,Gt){if(1&En){const At=a.RV6();a.j41(0,"div",12,1),a.bIt("@transformPanel.done",function(xn){a.eBV(At);const Yn=a.XpG();return a.Njj(Yn._panelDoneAnimatingStream.next(xn.toState))})("keydown",function(xn){a.eBV(At);const Yn=a.XpG();return a.Njj(Yn._handleKeydown(xn))}),a.SdG(2,1),a.k0s()}if(2&En){const At=a.XpG();a.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",At._getPanelTheme(),""),a.Y8G("ngClass",At.panelClass)("@transformPanel","showing"),a.BMQ("id",At.id+"-panel")("aria-multiselectable",At.multiple)("aria-label",At.ariaLabel||null)("aria-labelledby",At._getPanelAriaLabelledby())}}const Ge={transformPanelWrap:(0,ln.hZ)("transformPanelWrap",[(0,ln.kY)("* => void",(0,ln.P)("@transformPanel",[(0,ln.MA)()],{optional:!0}))]),transformPanel:(0,ln.hZ)("transformPanel",[(0,ln.wk)("void",(0,ln.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,ln.kY)("void => showing",(0,ln.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ln.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,ln.kY)("* => void",(0,ln.i0)("100ms linear",(0,ln.iF)({opacity:0})))])},Ze=new a.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const En=(0,a.WQX)(i.hJ);return()=>En.scrollStrategies.reposition()}}),Jt=new a.nKC("MAT_SELECT_CONFIG"),fn={provide:Ze,deps:[i.hJ],useFactory:function Rt(En){return()=>En.scrollStrategies.reposition()}},Gn=new a.nKC("MatSelectTrigger");class Nt{source;value;constructor(Gt,At){this.source=Gt,this.value=At}}let Qt=(()=>{class En{_viewportRuler=(0,a.WQX)(w.Xj);_changeDetectorRef=(0,a.WQX)(a.gRc);_elementRef=(0,a.WQX)(a.aKT);_dir=(0,a.WQX)(T.dS,{optional:!0});_idGenerator=(0,a.WQX)(C.g7);_parentFormField=(0,a.WQX)(y.xb,{optional:!0});ngControl=(0,a.WQX)(Ce.vO,{self:!0,optional:!0});_liveAnnouncer=(0,a.WQX)(C.Ai);_defaultOptions=(0,a.WQX)(Jt,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(At){const Kt=this.options.toArray()[At];if(Kt){const xn=this.panel.nativeElement,Yn=(0,c.jb)(At,this.options,this.optionGroups),tt=Kt._getHostElement();xn.scrollTop=0===At&&1===Yn?0:(0,c.TL)(tt.offsetTop,tt.offsetHeight,xn.scrollTop,xn.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(At){return new Nt(this,At)}_scrollStrategyFactory=(0,a.WQX)(Ze);_panelOpen=!1;_compareWith=(At,Kt)=>At===Kt;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new I.B;_errorStateTracker;stateChanges=new I.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new I.B;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(At){this._hideSingleSelectionIndicator=At,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(At){this._placeholder=At,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Ce.k0.required)??!1}set required(At){this._required=At,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(At){this._multiple=At}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(At){this._compareWith=At,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(At){this._assignValue(At)&&this._onChange(At)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(At){this._errorStateTracker.matcher=At}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(At){this._id=At||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(At){this._errorStateTracker.errorState=At}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new I.B;optionSelectionChanges=(0,le.v)(()=>{const At=this.options;return At?At.changes.pipe((0,Ie.Z)(At),(0,$e.n)(()=>(0,ae.h)(...At.map(Kt=>Kt.onSelectionChange)))):this._initialized.pipe((0,$e.n)(()=>this.optionSelectionChanges))});openedChange=new a.bkB;_openedStream=this.openedChange.pipe((0,st.p)(At=>At),(0,ht.T)(()=>{}));_closedStream=this.openedChange.pipe((0,st.p)(At=>!At),(0,ht.T)(()=>{}));selectionChange=new a.bkB;valueChange=new a.bkB;constructor(){const At=(0,a.WQX)(c.es),Kt=(0,a.WQX)(Ce.cV,{optional:!0}),xn=(0,a.WQX)(Ce.j4,{optional:!0}),Yn=(0,a.WQX)(new a.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new c.X0(At,this.ngControl,xn,Kt,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Yn?0:parseInt(Yn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Te(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,vt.F)(),(0,at.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,at.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,at.Q)(this._destroy)).subscribe(At=>{At.added.forEach(Kt=>Kt.select()),At.removed.forEach(Kt=>Kt.deselect())}),this.options.changes.pipe((0,Ie.Z)(null),(0,at.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const At=this._getTriggerAriaLabelledby(),Kt=this.ngControl;if(At!==this._triggerAriaLabelledBy){const xn=this._elementRef.nativeElement;this._triggerAriaLabelledBy=At,At?xn.setAttribute("aria-labelledby",At):xn.removeAttribute("aria-labelledby")}Kt&&(this._previousControl!==Kt.control&&(void 0!==this._previousControl&&null!==Kt.disabled&&Kt.disabled!==this.disabled&&(this.disabled=Kt.disabled),this._previousControl=Kt.control),this.updateErrorState())}ngOnChanges(At){(At.disabled||At.userAriaDescribedBy)&&this.stateChanges.next(),At.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){const At=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!At)return;const Kt=`${this.id}-panel`;this._trackedModal&&(0,C.Ae)(this._trackedModal,"aria-owns",Kt),(0,C.px)(At,"aria-owns",Kt),this._trackedModal=At}_clearFromModal(){this._trackedModal&&((0,C.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(At){this._assignValue(At)}registerOnChange(At){this._onChange=At}registerOnTouched(At){this._onTouched=At}setDisabledState(At){this.disabled=At,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const At=this._selectionModel.selected.map(Kt=>Kt.viewValue);return this._isRtl()&&At.reverse(),At.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(At){this.disabled||(this.panelOpen?this._handleOpenKeydown(At):this._handleClosedKeydown(At))}_handleClosedKeydown(At){const Kt=At.keyCode,xn=Kt===Me.n6||Kt===Me.i7||Kt===Me.UQ||Kt===Me.LE,Yn=Kt===Me.Fm||Kt===Me.t6,tt=this._keyManager;if(!tt.isTyping()&&Yn&&!(0,Me.rp)(At)||(this.multiple||At.altKey)&&xn)At.preventDefault(),this.open();else if(!this.multiple){const ke=this.selected;tt.onKeydown(At);const B=this.selected;B&&ke!==B&&this._liveAnnouncer.announce(B.viewValue,1e4)}}_handleOpenKeydown(At){const Kt=this._keyManager,xn=At.keyCode,Yn=xn===Me.n6||xn===Me.i7,tt=Kt.isTyping();if(Yn&&At.altKey)At.preventDefault(),this.close();else if(tt||xn!==Me.Fm&&xn!==Me.t6||!Kt.activeItem||(0,Me.rp)(At))if(!tt&&this._multiple&&xn===Me.A&&At.ctrlKey){At.preventDefault();const ke=this.options.some(B=>!B.disabled&&!B.selected);this.options.forEach(B=>{B.disabled||(ke?B.select():B.deselect())})}else{const ke=Kt.activeItemIndex;Kt.onKeydown(At),this._multiple&&Yn&&At.shiftKey&&Kt.activeItem&&Kt.activeItemIndex!==ke&&Kt.activeItem._selectViaInteraction()}else At.preventDefault(),Kt.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Xt.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(At){if(this.options.forEach(Kt=>Kt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&At)Array.isArray(At),At.forEach(Kt=>this._selectOptionByValue(Kt)),this._sortValues();else{const Kt=this._selectOptionByValue(At);Kt?this._keyManager.updateActiveItem(Kt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(At){const Kt=this.options.find(xn=>{if(this._selectionModel.isSelected(xn))return!1;try{return null!=xn.value&&this._compareWith(xn.value,At)}catch{return!1}});return Kt&&this._selectionModel.select(Kt),Kt}_assignValue(At){return!!(At!==this._value||this._multiple&&Array.isArray(At))&&(this.options&&this._setSelectionByValue(At),this._value=At,!0)}_skipPredicate=At=>!this.panelOpen&&At.disabled;_getOverlayWidth(At){return"auto"===this.panelWidth?(At instanceof i.$Q?At.elementRef:At||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const At of this.options)At._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new C.Au(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const At=(0,ae.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,at.Q)(At)).subscribe(Kt=>{this._onSelect(Kt.source,Kt.isUserInput),Kt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ae.h)(...this.options.map(Kt=>Kt._stateChanges)).pipe((0,at.Q)(At)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(At,Kt){const xn=this._selectionModel.isSelected(At);null!=At.value||this._multiple?(xn!==At.selected&&(At.selected?this._selectionModel.select(At):this._selectionModel.deselect(At)),Kt&&this._keyManager.setActiveItem(At),this.multiple&&(this._sortValues(),Kt&&this.focus())):(At.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(At.value)),xn!==this._selectionModel.isSelected(At)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const At=this.options.toArray();this._selectionModel.sort((Kt,xn)=>this.sortComparator?this.sortComparator(Kt,xn,At):At.indexOf(Kt)-At.indexOf(xn)),this.stateChanges.next()}}_propagateChanges(At){let Kt;Kt=this.multiple?this.selected.map(xn=>xn.value):this.selected?this.selected.value:At,this._value=Kt,this.valueChange.emit(Kt),this._onChange(Kt),this.selectionChange.emit(this._getChangeEvent(Kt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let At=-1;for(let Kt=0;Kt<this.options.length;Kt++)if(!this.options.get(Kt).disabled){At=Kt;break}this._keyManager.setActiveItem(At)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(At){this._elementRef.nativeElement.focus(At)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const At=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(At?At+" ":"")+this.ariaLabelledby:At}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const At=this._parentFormField?.getLabelId();let Kt=(At?At+" ":"")+this._valueId;return this.ariaLabelledby&&(Kt+=" "+this.ariaLabelledby),Kt}_panelDoneAnimating(At){this.openedChange.emit(At)}setDescribedByIds(At){At.length?this._elementRef.nativeElement.setAttribute("aria-describedby",At.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(Kt){return new(Kt||En)};static \u0275cmp=a.VBU({type:En,selectors:[["mat-select"]],contentQueries:function(Kt,xn,Yn){if(1&Kt&&(a.wni(Yn,Gn,5),a.wni(Yn,c.wT,5),a.wni(Yn,c.QC,5)),2&Kt){let tt;a.mGM(tt=a.lsd())&&(xn.customTrigger=tt.first),a.mGM(tt=a.lsd())&&(xn.options=tt),a.mGM(tt=a.lsd())&&(xn.optionGroups=tt)}},viewQuery:function(Kt,xn){if(1&Kt&&(a.GBs($n,5),a.GBs(bn,5),a.GBs(i.WB,5)),2&Kt){let Yn;a.mGM(Yn=a.lsd())&&(xn.trigger=Yn.first),a.mGM(Yn=a.lsd())&&(xn.panel=Yn.first),a.mGM(Yn=a.lsd())&&(xn._overlayDir=Yn.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Kt,xn){1&Kt&&a.bIt("keydown",function(tt){return xn._handleKeydown(tt)})("focus",function(){return xn._onFocus()})("blur",function(){return xn._onBlur()}),2&Kt&&(a.BMQ("id",xn.id)("tabindex",xn.disabled?-1:xn.tabIndex)("aria-controls",xn.panelOpen?xn.id+"-panel":null)("aria-expanded",xn.panelOpen)("aria-label",xn.ariaLabel||null)("aria-required",xn.required.toString())("aria-disabled",xn.disabled.toString())("aria-invalid",xn.errorState)("aria-activedescendant",xn._getAriaActiveDescendant()),a.AVh("mat-mdc-select-disabled",xn.disabled)("mat-mdc-select-invalid",xn.errorState)("mat-mdc-select-required",xn.required)("mat-mdc-select-empty",xn.empty)("mat-mdc-select-multiple",xn.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",a.L39],disableRipple:[2,"disableRipple","disableRipple",a.L39],tabIndex:[2,"tabIndex","tabIndex",At=>null==At?0:(0,a.Udg)(At)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",a.L39],placeholder:"placeholder",required:[2,"required","required",a.L39],multiple:[2,"multiple","multiple",a.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",a.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",a.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.Jv_([{provide:y.qT,useExisting:En},{provide:c.is,useExisting:En}]),a.GFd,a.OA$],ngContentSelectors:bt,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Kt,xn){if(1&Kt){const Yn=a.RV6();a.NAR(Qe),a.j41(0,"div",2,0),a.bIt("click",function(){return a.eBV(Yn),a.Njj(xn.open())}),a.j41(3,"div",3),a.DNE(4,ze,2,1,"span",4)(5,Ke,3,1,"span",5),a.k0s(),a.j41(6,"div",6)(7,"div",7),a.qSk(),a.j41(8,"svg",8),a.nrm(9,"path",9),a.k0s()()()(),a.DNE(10,dt,3,9,"ng-template",10),a.bIt("backdropClick",function(){return a.eBV(Yn),a.Njj(xn.close())})("attach",function(){return a.eBV(Yn),a.Njj(xn._onAttached())})("detach",function(){return a.eBV(Yn),a.Njj(xn.close())})}if(2&Kt){const Yn=a.sdS(1);a.R7$(3),a.BMQ("id",xn._valueId),a.R7$(),a.vxM(xn.empty?4:5),a.R7$(6),a.Y8G("cdkConnectedOverlayPanelClass",xn._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",xn._scrollStrategy)("cdkConnectedOverlayOrigin",xn._preferredOverlayOrigin||Yn)("cdkConnectedOverlayOpen",xn.panelOpen)("cdkConnectedOverlayPositions",xn._positions)("cdkConnectedOverlayWidth",xn._overlayWidth)}},dependencies:[i.$Q,i.WB,yn.YU],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[Ge.transformPanel]},changeDetection:0})}return En})(),an=(()=>{class En{static \u0275fac=function(Kt){return new(Kt||En)};static \u0275dir=a.FsC({type:En,selectors:[["mat-select-trigger"]],features:[a.Jv_([{provide:Gn,useExisting:En}])]})}return En})(),Xn=(()=>{class En{static \u0275fac=function(Kt){return new(Kt||En)};static \u0275mod=a.$C({type:En});static \u0275inj=a.G2t({providers:[fn],imports:[i.z_,c.Sy,c.yE,w.Gj,y.RG,c.Sy,c.yE]})}return En})()},882:(o,s,r)=>{"use strict";r.d(s,{$C:()=>Fe,$l:()=>bt,qe:()=>ze,vg:()=>Ge});var i=r(5542),a=r(4438),c=r(3),y=r(9888),w=r(8203),C=r(4085),T=r(7336),S=r(6860),A=r(177),I=r(1413),N=r(3726),G=r(7786),Z=r(5964),te=r(6354),be=r(3703),me=r(6977),pe=r(6697),Te=r(9172),xe=r(152),Re=r(9969);const Me=["*"],Ce=["content"],le=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ae=["mat-drawer","mat-drawer-content","*"];function Ie(He,mt){if(1&He){const se=a.RV6();a.j41(0,"div",1),a.bIt("click",function(){a.eBV(se);const Rt=a.XpG();return a.Njj(Rt._onBackdropClicked())}),a.k0s()}if(2&He){const se=a.XpG();a.AVh("mat-drawer-shown",se._isShowingBackdrop())}}function $e(He,mt){1&He&&(a.j41(0,"mat-drawer-content"),a.SdG(1,2),a.k0s())}const ln={transformDrawer:(0,Re.hZ)("transform",[(0,Re.wk)("open, open-instant",(0,Re.iF)({transform:"none",visibility:"visible"})),(0,Re.wk)("void",(0,Re.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Re.kY)("void => open-instant",(0,Re.i0)("0ms")),(0,Re.kY)("void <=> open, open-instant => void",(0,Re.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},$n=new a.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Qe(){return!1}}),bn=new a.nKC("MAT_DRAWER_CONTAINER");let bt=(()=>{class He extends i.uv{_platform=(0,a.WQX)(S.OD);_changeDetectorRef=(0,a.WQX)(a.gRc);_container=(0,a.WQX)(Fe);constructor(){super((0,a.WQX)(a.aKT),(0,a.WQX)(i.R),(0,a.WQX)(a.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:se,end:Ze}=this._container;return null!=se&&"over"!==se.mode&&se.opened||null!=Ze&&"over"!==Ze.mode&&Ze.opened}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(Ze,Rt){2&Ze&&(a.xc7("margin-left",Rt._container._contentMargins.left,"px")("margin-right",Rt._container._contentMargins.right,"px"),a.AVh("mat-drawer-content-hidden",Rt._shouldBeHidden()))},features:[a.Jv_([{provide:i.uv,useExisting:He}]),a.Vt3],ngContentSelectors:Me,decls:1,vars:0,template:function(Ze,Rt){1&Ze&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0})}return He})(),ze=(()=>{class He{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(y.GX);_focusMonitor=(0,a.WQX)(y.FN);_platform=(0,a.WQX)(S.OD);_ngZone=(0,a.WQX)(a.SKi);_interactivityChecker=(0,a.WQX)(y.Z7);_doc=(0,a.WQX)(A.qQ,{optional:!0});_container=(0,a.WQX)(bn,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_enableAnimations=!1;_isAttached;_anchor;get position(){return this._position}set position(se){(se="end"===se?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(se),this._position=se,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(se){this._mode=se,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(se){this._disableClose=(0,C.he)(se)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(se){("true"===se||"false"===se||null==se)&&(se=(0,C.he)(se)),this._autoFocus=se}_autoFocus;get opened(){return this._opened}set opened(se){this.toggle((0,C.he)(se))}_opened=!1;_openedVia;_animationStarted=new I.B;_animationEnd=new I.B;_animationState="void";openedChange=new a.bkB(!0);_openedStream=this.openedChange.pipe((0,Z.p)(se=>se),(0,te.T)(()=>{}));openedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&0===se.toState.indexOf("open")),(0,be.u)(void 0));_closedStream=this.openedChange.pipe((0,Z.p)(se=>!se),(0,te.T)(()=>{}));closedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&"void"===se.toState),(0,be.u)(void 0));_destroyed=new I.B;onPositionChanged=new a.bkB;_content;_modeChanged=new I.B;_injector=(0,a.WQX)(a.zZn);_changeDetectorRef=(0,a.WQX)(a.gRc);constructor(){this.openedChange.pipe((0,me.Q)(this._destroyed)).subscribe(se=>{se?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,N.R)(this._elementRef.nativeElement,"keydown").pipe((0,Z.p)(se=>se.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(se)),(0,me.Q)(this._destroyed)).subscribe(se=>this._ngZone.run(()=>{this.close(),se.stopPropagation(),se.preventDefault()}))}),this._animationEnd.subscribe(se=>{const{fromState:Ze,toState:Rt}=se;(0===Rt.indexOf("open")&&"void"===Ze||"void"===Rt&&0===Ze.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(se,Ze){this._interactivityChecker.isFocusable(se)||(se.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Rt=()=>{se.removeEventListener("blur",Rt),se.removeEventListener("mousedown",Rt),se.removeAttribute("tabindex")};se.addEventListener("blur",Rt),se.addEventListener("mousedown",Rt)})),se.focus(Ze)}_focusByCssSelector(se,Ze){let Rt=this._elementRef.nativeElement.querySelector(se);Rt&&this._forceFocus(Rt,Ze)}_takeFocus(){if(!this._focusTrap)return;const se=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,a.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof se.focus&&se.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(se){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,se):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const se=this._doc.activeElement;return!!se&&this._elementRef.nativeElement.contains(se)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(se){return this.toggle(!0,se)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(se=!this.opened,Ze){se&&Ze&&(this._openedVia=Ze);const Rt=this._setOpen(se,!se&&this._isFocusWithinDrawer(),this._openedVia||"program");return se||(this._openedVia=null),Rt}_setOpen(se,Ze,Rt){return this._opened=se,se?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Ze&&this._restoreFocus(Rt)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(Jt=>{this.openedChange.pipe((0,pe.s)(1)).subscribe(fn=>Jt(fn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(se){if(!this._platform.isBrowser)return;const Ze=this._elementRef.nativeElement,Rt=Ze.parentNode;"end"===se?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Rt.insertBefore(this._anchor,Ze)),Rt.appendChild(Ze)):this._anchor&&this._anchor.parentNode.insertBefore(Ze,this._anchor)}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer"]],viewQuery:function(Ze,Rt){if(1&Ze&&a.GBs(Ce,5),2&Ze){let Jt;a.mGM(Jt=a.lsd())&&(Rt._content=Jt.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Ze,Rt){1&Ze&&a.Kam("@transform.start",function(fn){return Rt._animationStarted.next(fn)})("@transform.done",function(fn){return Rt._animationEnd.next(fn)}),2&Ze&&(a.zvX("@transform",Rt._animationState),a.BMQ("align",null),a.AVh("mat-drawer-end","end"===Rt.position)("mat-drawer-over","over"===Rt.mode)("mat-drawer-push","push"===Rt.mode)("mat-drawer-side","side"===Rt.mode)("mat-drawer-opened",Rt.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Me,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Ze,Rt){1&Ze&&(a.NAR(),a.j41(0,"div",1,0),a.SdG(2),a.k0s())},dependencies:[i.uv],encapsulation:2,data:{animation:[ln.transformDrawer]},changeDetection:0})}return He})(),Fe=(()=>{class He{_dir=(0,a.WQX)(w.dS,{optional:!0});_element=(0,a.WQX)(a.aKT);_ngZone=(0,a.WQX)(a.SKi);_changeDetectorRef=(0,a.WQX)(a.gRc);_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_allDrawers;_drawers=new a.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(se){this._autosize=(0,C.he)(se)}_autosize=(0,a.WQX)($n);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(se){this._backdropOverride=null==se?null:(0,C.he)(se)}_backdropOverride;backdropClick=new a.bkB;_start;_end;_left;_right;_destroyed=new I.B;_doCheckSubject=new I.B;_contentMargins={left:null,right:null};_contentMarginChanges=new I.B;get scrollable(){return this._userContent||this._content}_injector=(0,a.WQX)(a.zZn);constructor(){const se=(0,a.WQX)(i.Xj);this._dir?.change.pipe((0,me.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),se.change().pipe((0,me.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Te.Z)(this._allDrawers),(0,me.Q)(this._destroyed)).subscribe(se=>{this._drawers.reset(se.filter(Ze=>!Ze._container||Ze._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Te.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(se=>{this._watchDrawerToggle(se),this._watchDrawerPosition(se),this._watchDrawerMode(se)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,xe.B)(10),(0,me.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(se=>se.open())}close(){this._drawers.forEach(se=>se.close())}updateContentMargins(){let se=0,Ze=0;if(this._left&&this._left.opened)if("side"==this._left.mode)se+=this._left._getWidth();else if("push"==this._left.mode){const Rt=this._left._getWidth();se+=Rt,Ze-=Rt}if(this._right&&this._right.opened)if("side"==this._right.mode)Ze+=this._right._getWidth();else if("push"==this._right.mode){const Rt=this._right._getWidth();Ze+=Rt,se-=Rt}se=se||null,Ze=Ze||null,(se!==this._contentMargins.left||Ze!==this._contentMargins.right)&&(this._contentMargins={left:se,right:Ze},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(se){se._animationStarted.pipe((0,Z.p)(Ze=>Ze.fromState!==Ze.toState),(0,me.Q)(this._drawers.changes)).subscribe(Ze=>{"open-instant"!==Ze.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==se.mode&&se.openedChange.pipe((0,me.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(se.opened))}_watchDrawerPosition(se){se&&se.onPositionChanged.pipe((0,me.Q)(this._drawers.changes)).subscribe(()=>{(0,a.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:a.wjH.Read})})}_watchDrawerMode(se){se&&se._modeChanged.pipe((0,me.Q)((0,G.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(se){const Ze=this._element.nativeElement.classList,Rt="mat-drawer-container-has-open";se?Ze.add(Rt):Ze.remove(Rt)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(se=>{"end"==se.position?this._end=se:this._start=se}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(se=>se&&!se.disableClose&&this._drawerHasBackdrop(se)).forEach(se=>se._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(se){return null!=se&&se.opened}_drawerHasBackdrop(se){return null==this._backdropOverride?!!se&&"side"!==se.mode:this._backdropOverride}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer-container"]],contentQueries:function(Ze,Rt,Jt){if(1&Ze&&(a.wni(Jt,bt,5),a.wni(Jt,ze,5)),2&Ze){let fn;a.mGM(fn=a.lsd())&&(Rt._content=fn.first),a.mGM(fn=a.lsd())&&(Rt._allDrawers=fn)}},viewQuery:function(Ze,Rt){if(1&Ze&&a.GBs(bt,5),2&Ze){let Jt;a.mGM(Jt=a.lsd())&&(Rt._userContent=Jt.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ze,Rt){2&Ze&&a.AVh("mat-drawer-container-explicit-backdrop",Rt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Jv_([{provide:bn,useExisting:He}])],ngContentSelectors:ae,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ze,Rt){1&Ze&&(a.NAR(le),a.DNE(0,Ie,1,2,"div",0),a.SdG(1),a.SdG(2,1),a.DNE(3,$e,2,0,"mat-drawer-content")),2&Ze&&(a.vxM(Rt.hasBackdrop?0:-1),a.R7$(3),a.vxM(Rt._content?-1:3))},dependencies:[bt],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return He})(),Ge=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({imports:[c.yE,i.Gj,i.Gj,c.yE]})}return He})()},4823:(o,s,r)=>{"use strict";r.d(s,{oV:()=>at,uc:()=>yn});var i=r(6977),a=r(4085),c=r(7336),y=r(4438),w=r(177),C=r(6860),T=r(9888),S=r(8203),A=r(6969),I=r(5542),N=r(6939),G=r(1413),te=(r(9969),r(3));const be=["tooltip"],Te=new y.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const $n=(0,y.WQX)(A.hJ);return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}}),Re={provide:Te,deps:[A.hJ],useFactory:function xe($n){return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}},Ce=new y.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Me(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ae="tooltip-panel",Ie=(0,C.BQ)({passive:!0});let at=(()=>{class $n{_overlay=(0,y.WQX)(A.hJ);_elementRef=(0,y.WQX)(y.aKT);_scrollDispatcher=(0,y.WQX)(I.R);_viewContainerRef=(0,y.WQX)(y.c1b);_ngZone=(0,y.WQX)(y.SKi);_platform=(0,y.WQX)(C.OD);_ariaDescriber=(0,y.WQX)(T.vr);_focusMonitor=(0,y.WQX)(T.FN);_dir=(0,y.WQX)(S.dS);_injector=(0,y.WQX)(y.zZn);_defaultOptions=(0,y.WQX)(Ce,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=(0,y.WQX)(Te);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Xt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(Qe){Qe!==this._position&&(this._position=Qe,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Qe){this._positionAtOrigin=(0,a.he)(Qe),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Qe){const bt=(0,a.he)(Qe);this._disabled!==bt&&(this._disabled=bt,bt?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(Qe){this._showDelay=(0,a.OE)(Qe)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(Qe){this._hideDelay=(0,a.OE)(Qe),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(Qe){const bt=this._message;this._message=null!=Qe?String(Qe).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(bt)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(Qe){this._tooltipClass=Qe,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=(0,y.WQX)(w.qQ);_touchstartTimeout=null;_destroyed=new G.B;constructor(){const Qe=this._defaultOptions;Qe&&(this._showDelay=Qe.showDelay,this._hideDelay=Qe.hideDelay,Qe.position&&(this.position=Qe.position),Qe.positionAtOrigin&&(this.positionAtOrigin=Qe.positionAtOrigin),Qe.touchGestures&&(this.touchGestures=Qe.touchGestures),Qe.tooltipClass&&(this.tooltipClass=Qe.tooltipClass)),this._dir.change.pipe((0,i.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.Q)(this._destroyed)).subscribe(Qe=>{Qe?"keyboard"===Qe&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Qe=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([bt,ze])=>{Qe.removeEventListener(bt,ze,Ie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Qe,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Qe)}show(Qe=this.showDelay,bt){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const ze=this._createOverlay(bt);this._detach(),this._portal=this._portal||new N.A8(this._tooltipComponent,this._viewContainerRef);const Fe=this._tooltipInstance=ze.attach(this._portal).instance;Fe._triggerElement=this._elementRef.nativeElement,Fe._mouseLeaveHideDelay=this._hideDelay,Fe.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Fe.show(Qe)}hide(Qe=this.hideDelay){const bt=this._tooltipInstance;bt&&(bt.isVisible()?bt.hide(Qe):(bt._cancelPendingAnimations(),this._detach()))}toggle(Qe){this._isTooltipVisible()?this.hide():this.show(void 0,Qe)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Qe){if(this._overlayRef){const Fe=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Qe)&&Fe._origin instanceof y.aKT)return this._overlayRef;this._detach()}const bt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ze=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Qe||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(bt);return ze.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(Fe=>{this._updateCurrentPositionClass(Fe.connectionPair),this._tooltipInstance&&Fe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ze,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(Fe=>{this._isTooltipVisible()&&Fe.keyCode===c._f&&!(0,c.rp)(Fe)&&(Fe.preventDefault(),Fe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Qe){const bt=Qe.getConfig().positionStrategy,ze=this._getOrigin(),Fe=this._getOverlayPosition();bt.withPositions([this._addOffset({...ze.main,...Fe.main}),this._addOffset({...ze.fallback,...Fe.fallback})])}_addOffset(Qe){const ze=!this._dir||"ltr"==this._dir.value;return"top"===Qe.originY?Qe.offsetY=-8:"bottom"===Qe.originY?Qe.offsetY=8:"start"===Qe.originX?Qe.offsetX=ze?-8:8:"end"===Qe.originX&&(Qe.offsetX=ze?8:-8),Qe}_getOrigin(){const Qe=!this._dir||"ltr"==this._dir.value,bt=this.position;let ze;"above"==bt||"below"==bt?ze={originX:"center",originY:"above"==bt?"top":"bottom"}:"before"==bt||"left"==bt&&Qe||"right"==bt&&!Qe?ze={originX:"start",originY:"center"}:("after"==bt||"right"==bt&&Qe||"left"==bt&&!Qe)&&(ze={originX:"end",originY:"center"});const{x:Fe,y:Ft}=this._invertPosition(ze.originX,ze.originY);return{main:ze,fallback:{originX:Fe,originY:Ft}}}_getOverlayPosition(){const Qe=!this._dir||"ltr"==this._dir.value,bt=this.position;let ze;"above"==bt?ze={overlayX:"center",overlayY:"bottom"}:"below"==bt?ze={overlayX:"center",overlayY:"top"}:"before"==bt||"left"==bt&&Qe||"right"==bt&&!Qe?ze={overlayX:"end",overlayY:"center"}:("after"==bt||"right"==bt&&Qe||"left"==bt&&!Qe)&&(ze={overlayX:"start",overlayY:"center"});const{x:Fe,y:Ft}=this._invertPosition(ze.overlayX,ze.overlayY);return{main:ze,fallback:{overlayX:Fe,overlayY:Ft}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,y.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(Qe){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Qe,this._tooltipInstance._markForCheck())}_invertPosition(Qe,bt){return"above"===this.position||"below"===this.position?"top"===bt?bt="bottom":"bottom"===bt&&(bt="top"):"end"===Qe?Qe="start":"start"===Qe&&(Qe="end"),{x:Qe,y:bt}}_updateCurrentPositionClass(Qe){const{overlayY:bt,originX:ze,originY:Fe}=Qe;let Ft;if(Ft="center"===bt?this._dir&&"rtl"===this._dir.value?"end"===ze?"left":"right":"start"===ze?"left":"right":"bottom"===bt&&"top"===Fe?"above":"below",Ft!==this._currentPosition){const Ke=this._overlayRef;if(Ke){const dt=`${this._cssClassPrefix}-${ae}-`;Ke.removePanelClass(dt+this._currentPosition),Ke.addPanelClass(dt+Ft)}this._currentPosition=Ft}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Qe=>{let bt;this._setupPointerExitEventsIfNeeded(),void 0!==Qe.x&&void 0!==Qe.y&&(bt=Qe),this.show(void 0,bt)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Qe=>{const bt=Qe.targetTouches?.[0],ze=bt?{x:bt.clientX,y:bt.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,ze)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Qe=[];if(this._platformSupportsMouseEvents())Qe.push(["mouseleave",bt=>{const ze=bt.relatedTarget;(!ze||!this._overlayRef?.overlayElement.contains(ze))&&this.hide()}],["wheel",bt=>this._wheelListener(bt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const bt=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};Qe.push(["touchend",bt],["touchcancel",bt])}this._addListeners(Qe),this._passiveListeners.push(...Qe)}_addListeners(Qe){Qe.forEach(([bt,ze])=>{this._elementRef.nativeElement.addEventListener(bt,ze,Ie)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Qe){if(this._isTooltipVisible()){const bt=this._document.elementFromPoint(Qe.clientX,Qe.clientY),ze=this._elementRef.nativeElement;bt!==ze&&!ze.contains(bt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Qe=this.touchGestures;if("off"!==Qe){const bt=this._elementRef.nativeElement,ze=bt.style;("on"===Qe||"INPUT"!==bt.nodeName&&"TEXTAREA"!==bt.nodeName)&&(ze.userSelect=ze.msUserSelect=ze.webkitUserSelect=ze.MozUserSelect="none"),("on"===Qe||!bt.draggable)&&(ze.webkitUserDrag="none"),ze.touchAction="none",ze.webkitTapHighlightColor="transparent"}}_syncAriaDescription(Qe){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,Qe,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(bt){return new(bt||$n)};static \u0275dir=y.FsC({type:$n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(bt,ze){2&bt&&y.AVh("mat-mdc-tooltip-disabled",ze.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return $n})(),Xt=(()=>{class $n{_changeDetectorRef=(0,y.WQX)(y.gRc);_elementRef=(0,y.WQX)(y.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new G.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){const Qe=(0,y.WQX)(y.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===Qe}show(Qe){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Qe)}hide(Qe){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Qe)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Qe}){(!Qe||!this._triggerElement.contains(Qe))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Qe=this._elementRef.nativeElement.getBoundingClientRect();return Qe.height>24&&Qe.width>=200}_handleAnimationEnd({animationName:Qe}){(Qe===this._showAnimation||Qe===this._hideAnimation)&&this._finalizeAnimation(Qe===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Qe){Qe?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Qe){const bt=this._tooltip.nativeElement,ze=this._showAnimation,Fe=this._hideAnimation;if(bt.classList.remove(Qe?Fe:ze),bt.classList.add(Qe?ze:Fe),this._isVisible!==Qe&&(this._isVisible=Qe,this._changeDetectorRef.markForCheck()),Qe&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ft=getComputedStyle(bt);("0s"===Ft.getPropertyValue("animation-duration")||"none"===Ft.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Qe&&this._onShow(),this._animationsDisabled&&(bt.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Qe))}static \u0275fac=function(bt){return new(bt||$n)};static \u0275cmp=y.VBU({type:$n,selectors:[["mat-tooltip-component"]],viewQuery:function(bt,ze){if(1&bt&&y.GBs(be,7),2&bt){let Fe;y.mGM(Fe=y.lsd())&&(ze._tooltip=Fe.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(bt,ze){1&bt&&y.bIt("mouseleave",function(Ft){return ze._handleMouseLeave(Ft)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(bt,ze){if(1&bt){const Fe=y.RV6();y.j41(0,"div",1,0),y.bIt("animationend",function(Ke){return y.eBV(Fe),y.Njj(ze._handleAnimationEnd(Ke))}),y.j41(2,"div",2),y.EFF(3),y.k0s()()}2&bt&&(y.AVh("mdc-tooltip--multiline",ze._isMultiline),y.Y8G("ngClass",ze.tooltipClass),y.R7$(3),y.JRh(ze.message))},dependencies:[w.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return $n})(),yn=(()=>{class $n{static \u0275fac=function(bt){return new(bt||$n)};static \u0275mod=y.$C({type:$n});static \u0275inj=y.G2t({providers:[Re],imports:[T.Pd,A.z_,te.yE,te.yE,I.Gj]})}return $n})()},345:(o,s,r)=>{"use strict";r.d(s,{B7:()=>vt,B8:()=>dt,hE:()=>Gt,up:()=>Vt});var i=r(177),a=r(4438);class c extends i.VF{supportsDOMEvents=!0}class y extends c{static makeCurrent(){(0,i.ZD)(new y)}onAndCancel(kt,ft,Pt){return kt.addEventListener(ft,Pt),()=>{kt.removeEventListener(ft,Pt)}}dispatchEvent(kt,ft){kt.dispatchEvent(ft)}remove(kt){kt.remove()}createElement(kt,ft){return(ft=ft||this.getDefaultDocument()).createElement(kt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(kt){return kt.nodeType===Node.ELEMENT_NODE}isShadowRoot(kt){return kt instanceof DocumentFragment}getGlobalEventTarget(kt,ft){return"window"===ft?window:"document"===ft?kt:"body"===ft?kt.body:null}getBaseHref(kt){const ft=function C(){return w=w||document.querySelector("base"),w?w.getAttribute("href"):null}();return null==ft?null:function T(Pe){return new URL(Pe,document.baseURI).pathname}(ft)}resetBaseElement(){w=null}getUserAgent(){return window.navigator.userAgent}getCookie(kt){return(0,i._b)(document.cookie,kt)}}let w=null,A=(()=>{class Pe{build(){return new XMLHttpRequest}static \u0275fac=function(Pt){return new(Pt||Pe)};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const I=new a.nKC("");let N=(()=>{class Pe{_zone;_plugins;_eventNameToPlugin=new Map;constructor(ft,Pt){this._zone=Pt,ft.forEach(mn=>{mn.manager=this}),this._plugins=ft.slice().reverse()}addEventListener(ft,Pt,mn){return this._findPluginFor(Pt).addEventListener(ft,Pt,mn)}getZone(){return this._zone}_findPluginFor(ft){let Pt=this._eventNameToPlugin.get(ft);if(Pt)return Pt;if(Pt=this._plugins.find(or=>or.supports(ft)),!Pt)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(ft,Pt),Pt}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(I),a.KVO(a.SKi))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();class G{_doc;constructor(kt){this._doc=kt}manager}const Z="ng-app-id";function te(Pe){for(const kt of Pe)kt.remove()}function be(Pe,kt){const ft=kt.createElement("style");return ft.textContent=Pe,ft}function pe(Pe,kt){const ft=kt.createElement("link");return ft.setAttribute("rel","stylesheet"),ft.setAttribute("href",Pe),ft}let Te=(()=>{class Pe{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(ft,Pt,mn,or={}){this.doc=ft,this.appId=Pt,this.nonce=mn,this.isServer=(0,i.Vy)(or),function me(Pe,kt,ft){const Pt=Pe.head?.querySelectorAll(`style[${Z}="${kt}"]`);if(Pt)for(const mn of Pt)mn.textContent&&(mn.removeAttribute(Z),ft.set(mn.textContent,{usage:0,elements:[mn]}))}(ft,Pt,this.inline),this.hosts.add(ft.head)}addStyles(ft,Pt){for(const mn of ft)this.addUsage(mn,this.inline,be);Pt?.forEach(mn=>this.addUsage(mn,this.external,pe))}removeStyles(ft,Pt){for(const mn of ft)this.removeUsage(mn,this.inline);Pt?.forEach(mn=>this.removeUsage(mn,this.external))}addUsage(ft,Pt,mn){const or=Pt.get(ft);or?or.usage++:Pt.set(ft,{usage:1,elements:[...this.hosts].map(Mr=>this.addElement(Mr,mn(ft,this.doc)))})}removeUsage(ft,Pt){const mn=Pt.get(ft);mn&&(mn.usage--,mn.usage<=0&&(te(mn.elements),Pt.delete(ft)))}ngOnDestroy(){for(const[,{elements:ft}]of[...this.inline,...this.external])te(ft);this.hosts.clear()}addHost(ft){this.hosts.add(ft);for(const[Pt,{elements:mn}]of this.inline)mn.push(this.addElement(ft,be(Pt,this.doc)));for(const[Pt,{elements:mn}]of this.external)mn.push(this.addElement(ft,pe(Pt,this.doc)))}removeHost(ft){this.hosts.delete(ft)}addElement(ft,Pt){return this.nonce&&Pt.setAttribute("nonce",this.nonce),this.isServer&&Pt.setAttribute(Z,this.appId),ft.appendChild(Pt)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const xe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Re=/%COMP%/g,Ie=new a.nKC("",{providedIn:"root",factory:()=>!0});function ht(Pe,kt){return kt.map(ft=>ft.replace(Re,Pe))}let vt=(()=>{class Pe{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(ft,Pt,mn,or,Mr,ii,ci,Si=null){this.eventManager=ft,this.sharedStylesHost=Pt,this.appId=mn,this.removeStylesOnCompDestroy=or,this.doc=Mr,this.platformId=ii,this.ngZone=ci,this.nonce=Si,this.platformIsServer=(0,i.Vy)(ii),this.defaultRenderer=new at(ft,Mr,ci,this.platformIsServer)}createRenderer(ft,Pt){if(!ft||!Pt)return this.defaultRenderer;this.platformIsServer&&Pt.encapsulation===a.gXe.ShadowDom&&(Pt={...Pt,encapsulation:a.gXe.Emulated});const mn=this.getOrCreateRenderer(ft,Pt);return mn instanceof Qe?mn.applyToHost(ft):mn instanceof bn&&mn.applyStyles(),mn}getOrCreateRenderer(ft,Pt){const mn=this.rendererByCompId;let or=mn.get(Pt.id);if(!or){const Mr=this.doc,ii=this.ngZone,ci=this.eventManager,Si=this.sharedStylesHost,rn=this.removeStylesOnCompDestroy,St=this.platformIsServer;switch(Pt.encapsulation){case a.gXe.Emulated:or=new Qe(ci,Si,Pt,this.appId,rn,Mr,ii,St);break;case a.gXe.ShadowDom:return new $n(ci,Si,ft,Pt,Mr,ii,this.nonce,St);default:or=new bn(ci,Si,Pt,rn,Mr,ii,St)}mn.set(Pt.id,or)}return or}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(N),a.KVO(Te),a.KVO(a.sZ2),a.KVO(Ie),a.KVO(i.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();class at{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(kt,ft,Pt,mn){this.eventManager=kt,this.doc=ft,this.ngZone=Pt,this.platformIsServer=mn}destroy(){}destroyNode=null;createElement(kt,ft){return ft?this.doc.createElementNS(xe[ft]||ft,kt):this.doc.createElement(kt)}createComment(kt){return this.doc.createComment(kt)}createText(kt){return this.doc.createTextNode(kt)}appendChild(kt,ft){(yn(kt)?kt.content:kt).appendChild(ft)}insertBefore(kt,ft,Pt){kt&&(yn(kt)?kt.content:kt).insertBefore(ft,Pt)}removeChild(kt,ft){ft.remove()}selectRootElement(kt,ft){let Pt="string"==typeof kt?this.doc.querySelector(kt):kt;if(!Pt)throw new a.wOt(-5104,!1);return ft||(Pt.textContent=""),Pt}parentNode(kt){return kt.parentNode}nextSibling(kt){return kt.nextSibling}setAttribute(kt,ft,Pt,mn){if(mn){ft=mn+":"+ft;const or=xe[mn];or?kt.setAttributeNS(or,ft,Pt):kt.setAttribute(ft,Pt)}else kt.setAttribute(ft,Pt)}removeAttribute(kt,ft,Pt){if(Pt){const mn=xe[Pt];mn?kt.removeAttributeNS(mn,ft):kt.removeAttribute(`${Pt}:${ft}`)}else kt.removeAttribute(ft)}addClass(kt,ft){kt.classList.add(ft)}removeClass(kt,ft){kt.classList.remove(ft)}setStyle(kt,ft,Pt,mn){mn&(a.czy.DashCase|a.czy.Important)?kt.style.setProperty(ft,Pt,mn&a.czy.Important?"important":""):kt.style[ft]=Pt}removeStyle(kt,ft,Pt){Pt&a.czy.DashCase?kt.style.removeProperty(ft):kt.style[ft]=""}setProperty(kt,ft,Pt){null!=kt&&(kt[ft]=Pt)}setValue(kt,ft){kt.nodeValue=ft}listen(kt,ft,Pt){if("string"==typeof kt&&!(kt=(0,i.QT)().getGlobalEventTarget(this.doc,kt)))throw new Error(`Unsupported event target ${kt} for event ${ft}`);return this.eventManager.addEventListener(kt,ft,this.decoratePreventDefault(Pt))}decoratePreventDefault(kt){return ft=>{if("__ngUnwrap__"===ft)return kt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>kt(ft)):kt(ft))&&ft.preventDefault()}}}function yn(Pe){return"TEMPLATE"===Pe.tagName&&void 0!==Pe.content}class $n extends at{sharedStylesHost;hostEl;shadowRoot;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){super(kt,or,Mr,ci),this.sharedStylesHost=ft,this.hostEl=Pt,this.shadowRoot=Pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Si=ht(mn.id,mn.styles);for(const St of Si){const qe=document.createElement("style");ii&&qe.setAttribute("nonce",ii),qe.textContent=St,this.shadowRoot.appendChild(qe)}const rn=mn.getExternalStyles?.();if(rn)for(const St of rn){const qe=pe(St,or);ii&&qe.setAttribute("nonce",ii),this.shadowRoot.appendChild(qe)}}nodeOrShadowRoot(kt){return kt===this.hostEl?this.shadowRoot:kt}appendChild(kt,ft){return super.appendChild(this.nodeOrShadowRoot(kt),ft)}insertBefore(kt,ft,Pt){return super.insertBefore(this.nodeOrShadowRoot(kt),ft,Pt)}removeChild(kt,ft){return super.removeChild(null,ft)}parentNode(kt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(kt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class bn extends at{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){super(kt,or,Mr,ii),this.sharedStylesHost=ft,this.removeStylesOnCompDestroy=mn,this.styles=ci?ht(ci,Pt.styles):Pt.styles,this.styleUrls=Pt.getExternalStyles?.(ci)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Qe extends bn{contentAttr;hostAttr;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){const Si=mn+"-"+Pt.id;super(kt,ft,Pt,or,Mr,ii,ci,Si),this.contentAttr=function $e(Pe){return"_ngcontent-%COMP%".replace(Re,Pe)}(Si),this.hostAttr=function st(Pe){return"_nghost-%COMP%".replace(Re,Pe)}(Si)}applyToHost(kt){this.applyStyles(),this.setAttribute(kt,this.hostAttr,"")}createElement(kt,ft){const Pt=super.createElement(kt,ft);return super.setAttribute(Pt,this.contentAttr,""),Pt}}let bt=(()=>{class Pe extends G{constructor(ft){super(ft)}supports(ft){return!0}addEventListener(ft,Pt,mn){return ft.addEventListener(Pt,mn,!1),()=>this.removeEventListener(ft,Pt,mn)}removeEventListener(ft,Pt,mn){return ft.removeEventListener(Pt,mn)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const ze=["alt","control","meta","shift"],Fe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ft={alt:Pe=>Pe.altKey,control:Pe=>Pe.ctrlKey,meta:Pe=>Pe.metaKey,shift:Pe=>Pe.shiftKey};let Ke=(()=>{class Pe extends G{constructor(ft){super(ft)}supports(ft){return null!=Pe.parseEventName(ft)}addEventListener(ft,Pt,mn){const or=Pe.parseEventName(Pt),Mr=Pe.eventCallback(or.fullKey,mn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.QT)().onAndCancel(ft,or.domEventName,Mr))}static parseEventName(ft){const Pt=ft.toLowerCase().split("."),mn=Pt.shift();if(0===Pt.length||"keydown"!==mn&&"keyup"!==mn)return null;const or=Pe._normalizeKey(Pt.pop());let Mr="",ii=Pt.indexOf("code");if(ii>-1&&(Pt.splice(ii,1),Mr="code."),ze.forEach(Si=>{const rn=Pt.indexOf(Si);rn>-1&&(Pt.splice(rn,1),Mr+=Si+".")}),Mr+=or,0!=Pt.length||0===or.length)return null;const ci={};return ci.domEventName=mn,ci.fullKey=Mr,ci}static matchEventFullKeyCode(ft,Pt){let mn=Fe[ft.key]||ft.key,or="";return Pt.indexOf("code.")>-1&&(mn=ft.code,or="code."),!(null==mn||!mn)&&(mn=mn.toLowerCase()," "===mn?mn="space":"."===mn&&(mn="dot"),ze.forEach(Mr=>{Mr!==mn&&(0,Ft[Mr])(ft)&&(or+=Mr+".")}),or+=mn,or===Pt)}static eventCallback(ft,Pt,mn){return or=>{Pe.matchEventFullKeyCode(or,ft)&&mn.runGuarded(()=>Pt(or))}}static _normalizeKey(ft){return"esc"===ft?"escape":ft}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();function dt(Pe,kt){return(0,a.TL3)({rootComponent:Pe,...He(kt)})}function He(Pe){return{appProviders:[...Qt,...Pe?.providers??[]],platformProviders:Jt}}const Jt=[{provide:a.Agw,useValue:i.AJ},{provide:a.PLl,useValue:function se(){y.makeCurrent()},multi:!0},{provide:i.qQ,useFactory:function Rt(){return(0,a.TL$)(document),document},deps:[]}],Qt=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function Ze(){return new a.zcH},deps:[]},{provide:I,useClass:bt,multi:!0,deps:[i.qQ,a.SKi,a.Agw]},{provide:I,useClass:Ke,multi:!0,deps:[i.qQ]},vt,Te,N,{provide:a._9s,useExisting:vt},{provide:i.N0,useClass:A,deps:[]},[]];let Gt=(()=>{class Pe{_doc;constructor(ft){this._doc=ft}getTitle(){return this._doc.title}setTitle(ft){this._doc.title=ft||""}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),Vt=(()=>{class Pe{static \u0275fac=function(Pt){return new(Pt||Pe)};static \u0275prov=a.jDH({token:Pe,factory:function(Pt){let mn=null;return mn=Pt?new(Pt||Pe):a.KVO(dn),mn},providedIn:"root"})}return Pe})(),dn=(()=>{class Pe extends Vt{_doc;constructor(ft){super(),this._doc=ft}sanitize(ft,Pt){if(null==Pt)return null;switch(ft){case a.WPN.NONE:return Pt;case a.WPN.HTML:return(0,a.ZF7)(Pt,"HTML")?(0,a.rcV)(Pt):(0,a.h9k)(this._doc,String(Pt)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Pt,"Style")?(0,a.rcV)(Pt):Pt;case a.WPN.SCRIPT:if((0,a.ZF7)(Pt,"Script"))return(0,a.rcV)(Pt);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Pt,"URL")?(0,a.rcV)(Pt):(0,a.$MX)(String(Pt));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Pt,"ResourceURL"))return(0,a.rcV)(Pt);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(ft){return(0,a.Kcf)(ft)}bypassSecurityTrustStyle(ft){return(0,a.cWb)(ft)}bypassSecurityTrustScript(ft){return(0,a.UyX)(ft)}bypassSecurityTrustUrl(ft){return(0,a.osQ)(ft)}bypassSecurityTrustResourceUrl(ft){return(0,a.e5t)(ft)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})()},5245:(o,s,r)=>{"use strict";r.d(s,{nX:()=>tr,wF:()=>Oe,Ix:()=>Qr,Wk:()=>Wo,wQ:()=>ds,iI:()=>ul,n3:()=>Qo,lh:()=>Ml,oH:()=>sc});var i=r(4438),a=r(4402),c=r(6648),y=r(7673),w=r(4412),C=r(4572),T=r(9350),S=r(8793),A=r(9030),I=r(1203),N=r(8810),G=r(983),Z=r(17),te=r(1413),be=r(8359),me=r(177),pe=r(6354),Te=r(5558),xe=r(6697),Re=r(9172),Me=r(5964),Ce=r(1397),le=r(9974),ae=r(4360);function Ie(L){return(0,le.N)((K,P)=>{let X=!1;K.subscribe((0,ae._)(P,he=>{X=!0,P.next(he)},()=>{X||P.next(L),P.complete()}))})}function $e(L=st){return(0,le.N)((K,P)=>{let X=!1;K.subscribe((0,ae._)(P,he=>{X=!0,P.next(he)},()=>X?P.complete():P.error(L())))})}function st(){return new T.G}var ht=r(3669);function vt(L,K){const P=arguments.length>=2;return X=>X.pipe(L?(0,Me.p)((he,We)=>L(he,We,X)):ht.D,(0,xe.s)(1),P?Ie(K):$e(()=>new T.G))}var at=r(274),Xt=r(8141),ln=r(9437),yn=r(6649);function bn(L){return L<=0?()=>G.w:(0,le.N)((K,P)=>{let X=[];K.subscribe((0,ae._)(P,he=>{X.push(he),L<X.length&&X.shift()},()=>{for(const he of X)P.next(he);P.complete()},void 0,()=>{X=null}))})}var bt=r(3703),ze=r(980),Fe=r(9898),Ft=r(6977),Ke=r(6365),dt=r(345);const Ge="primary",He=Symbol("RouteTitle");class mt{params;constructor(K){this.params=K||{}}has(K){return Object.prototype.hasOwnProperty.call(this.params,K)}get(K){if(this.has(K)){const P=this.params[K];return Array.isArray(P)?P[0]:P}return null}getAll(K){if(this.has(K)){const P=this.params[K];return Array.isArray(P)?P:[P]}return[]}get keys(){return Object.keys(this.params)}}function se(L){return new mt(L)}function Ze(L,K,P){const X=P.path.split("/");if(X.length>L.length||"full"===P.pathMatch&&(K.hasChildren()||X.length<L.length))return null;const he={};for(let We=0;We<X.length;We++){const Ct=X[We],vn=L[We];if(":"===Ct[0])he[Ct.substring(1)]=vn;else if(Ct!==vn.path)return null}return{consumed:L.slice(0,X.length),posParams:he}}function Jt(L,K){const P=L?fn(L):void 0,X=K?fn(K):void 0;if(!P||!X||P.length!=X.length)return!1;let he;for(let We=0;We<P.length;We++)if(he=P[We],!Gn(L[he],K[he]))return!1;return!0}function fn(L){return[...Object.keys(L),...Object.getOwnPropertySymbols(L)]}function Gn(L,K){if(Array.isArray(L)&&Array.isArray(K)){if(L.length!==K.length)return!1;const P=[...L].sort(),X=[...K].sort();return P.every((he,We)=>X[We]===he)}return L===K}function Nt(L){return L.length>0?L[L.length-1]:null}function Qt(L){return(0,a.A)(L)?L:(0,i.jNT)(L)?(0,c.H)(Promise.resolve(L)):(0,y.of)(L)}const an={exact:function At(L,K,P){if(!De(L.segments,K.segments)||!tt(L.segments,K.segments,P)||L.numberOfChildren!==K.numberOfChildren)return!1;for(const X in K.children)if(!L.children[X]||!At(L.children[X],K.children[X],P))return!1;return!0},subset:xn},Xn={exact:function Gt(L,K){return Jt(L,K)},subset:function Kt(L,K){return Object.keys(K).length<=Object.keys(L).length&&Object.keys(K).every(P=>Gn(L[P],K[P]))},ignored:()=>!0};function En(L,K,P){return an[P.paths](L.root,K.root,P.matrixParams)&&Xn[P.queryParams](L.queryParams,K.queryParams)&&!("exact"===P.fragment&&L.fragment!==K.fragment)}function xn(L,K,P){return Yn(L,K,K.segments,P)}function Yn(L,K,P,X){if(L.segments.length>P.length){const he=L.segments.slice(0,P.length);return!(!De(he,P)||K.hasChildren()||!tt(he,P,X))}if(L.segments.length===P.length){if(!De(L.segments,P)||!tt(L.segments,P,X))return!1;for(const he in K.children)if(!L.children[he]||!xn(L.children[he],K.children[he],X))return!1;return!0}{const he=P.slice(0,L.segments.length),We=P.slice(L.segments.length);return!!(De(L.segments,he)&&tt(L.segments,he,X)&&L.children[Ge])&&Yn(L.children[Ge],K,We,X)}}function tt(L,K,P){return K.every((X,he)=>Xn[P](L[he].parameters,X.parameters))}class ke{root;queryParams;fragment;_queryParamMap;constructor(K=new B([],{}),P={},X=null){this.root=K,this.queryParams=P,this.fragment=X}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return In.serialize(this)}}class B{segments;children;parent=null;constructor(K,P){this.segments=K,this.children=P,Object.values(P).forEach(X=>X.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vt(this)}}class k{path;parameters;_parameterMap;constructor(K,P){this.path=K,this.parameters=P}get parameterMap(){return this._parameterMap??=se(this.parameters),this._parameterMap}toString(){return _t(this)}}function De(L,K){return L.length===K.length&&L.every((P,X)=>P.path===K[X].path)}let ot=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>new Tt,providedIn:"root"})}return L})();class Tt{parse(K){const P=new ii(K);return new ke(P.parseRootSegment(),P.parseQueryParams(),P.parseFragment())}serialize(K){const P=`/${dn(K.root,!0)}`,X=function Ee(L){const K=Object.entries(L).map(([P,X])=>Array.isArray(X)?X.map(he=>`${Fn(P)}=${Fn(he)}`).join("&"):`${Fn(P)}=${Fn(X)}`).filter(P=>P);return K.length?`?${K.join("&")}`:""}(K.queryParams);return`${P}${X}${"string"==typeof K.fragment?`#${function Bn(L){return encodeURI(L)}(K.fragment)}`:""}`}}const In=new Tt;function Vt(L){return L.segments.map(K=>_t(K)).join("/")}function dn(L,K){if(!L.hasChildren())return Vt(L);if(K){const P=L.children[Ge]?dn(L.children[Ge],!1):"",X=[];return Object.entries(L.children).forEach(([he,We])=>{he!==Ge&&X.push(`${he}:${dn(We,!1)}`)}),X.length>0?`${P}(${X.join("//")})`:P}{const P=function it(L,K){let P=[];return Object.entries(L.children).forEach(([X,he])=>{X===Ge&&(P=P.concat(K(he,X)))}),Object.entries(L.children).forEach(([X,he])=>{X!==Ge&&(P=P.concat(K(he,X)))}),P}(L,(X,he)=>he===Ge?[dn(L.children[Ge],!1)]:[`${he}:${dn(X,!1)}`]);return 1===Object.keys(L.children).length&&null!=L.children[Ge]?`${Vt(L)}/${P[0]}`:`${Vt(L)}/(${P.join("//")})`}}function Pn(L){return encodeURIComponent(L).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fn(L){return Pn(L).replace(/%3B/gi,";")}function cr(L){return Pn(L).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jr(L){return decodeURIComponent(L)}function Xr(L){return Jr(L.replace(/\+/g,"%20"))}function _t(L){return`${cr(L.path)}${function Bt(L){return Object.entries(L).map(([K,P])=>`;${cr(K)}=${cr(P)}`).join("")}(L.parameters)}`}const lt=/^[^\/()?;#]+/;function Pe(L){const K=L.match(lt);return K?K[0]:""}const kt=/^[^\/()?;=#]+/,Pt=/^[^=?&#]+/,or=/^[^&#]+/;class ii{url;remaining;constructor(K){this.url=K,this.remaining=K}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new B([],{}):new B([],this.parseChildren())}parseQueryParams(){const K={};if(this.consumeOptional("?"))do{this.parseQueryParam(K)}while(this.consumeOptional("&"));return K}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const K=[];for(this.peekStartsWith("(")||K.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),K.push(this.parseSegment());let P={};this.peekStartsWith("/(")&&(this.capture("/"),P=this.parseParens(!0));let X={};return this.peekStartsWith("(")&&(X=this.parseParens(!1)),(K.length>0||Object.keys(P).length>0)&&(X[Ge]=new B(K,P)),X}parseSegment(){const K=Pe(this.remaining);if(""===K&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture(K),new k(Jr(K),this.parseMatrixParams())}parseMatrixParams(){const K={};for(;this.consumeOptional(";");)this.parseParam(K);return K}parseParam(K){const P=function ft(L){const K=L.match(kt);return K?K[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const he=Pe(this.remaining);he&&(X=he,this.capture(X))}K[Jr(P)]=Jr(X)}parseQueryParam(K){const P=function mn(L){const K=L.match(Pt);return K?K[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const Ct=function Mr(L){const K=L.match(or);return K?K[0]:""}(this.remaining);Ct&&(X=Ct,this.capture(X))}const he=Xr(P),We=Xr(X);if(K.hasOwnProperty(he)){let Ct=K[he];Array.isArray(Ct)||(Ct=[Ct],K[he]=Ct),Ct.push(We)}else K[he]=We}parseParens(K){const P={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const X=Pe(this.remaining),he=this.remaining[X.length];if("/"!==he&&")"!==he&&";"!==he)throw new i.wOt(4010,!1);let We;X.indexOf(":")>-1?(We=X.slice(0,X.indexOf(":")),this.capture(We),this.capture(":")):K&&(We=Ge);const Ct=this.parseChildren();P[We]=1===Object.keys(Ct).length?Ct[Ge]:new B([],Ct),this.consumeOptional("//")}return P}peekStartsWith(K){return this.remaining.startsWith(K)}consumeOptional(K){return!!this.peekStartsWith(K)&&(this.remaining=this.remaining.substring(K.length),!0)}capture(K){if(!this.consumeOptional(K))throw new i.wOt(4011,!1)}}function ci(L){return L.segments.length>0?new B([],{[Ge]:L}):L}function Si(L){const K={};for(const[X,he]of Object.entries(L.children)){const We=Si(he);if(X===Ge&&0===We.segments.length&&We.hasChildren())for(const[Ct,vn]of Object.entries(We.children))K[Ct]=vn;else(We.segments.length>0||We.hasChildren())&&(K[X]=We)}return function rn(L){if(1===L.numberOfChildren&&L.children[Ge]){const K=L.children[Ge];return new B(L.segments.concat(K.segments),K.children)}return L}(new B(L.segments,K))}function St(L){return L instanceof ke}function Dt(L){let K;const he=ci(function P(We){const Ct={};for(const nn of We.children){const pr=P(nn);Ct[nn.outlet]=pr}const vn=new B(We.url,Ct);return We===L&&(K=vn),vn}(L.root));return K??he}function Wt(L,K,P,X){let he=L;for(;he.parent;)he=he.parent;if(0===K.length)return fo(he,he,he,P,X);const We=function oi(L){if("string"==typeof L[0]&&1===L.length&&"/"===L[0])return new Uo(!0,0,L);let K=0,P=!1;const X=L.reduce((he,We,Ct)=>{if("object"==typeof We&&null!=We){if(We.outlets){const vn={};return Object.entries(We.outlets).forEach(([nn,pr])=>{vn[nn]="string"==typeof pr?pr.split("/"):pr}),[...he,{outlets:vn}]}if(We.segmentPath)return[...he,We.segmentPath]}return"string"!=typeof We?[...he,We]:0===Ct?(We.split("/").forEach((vn,nn)=>{0==nn&&"."===vn||(0==nn&&""===vn?P=!0:".."===vn?K++:""!=vn&&he.push(vn))}),he):[...he,We]},[]);return new Uo(P,K,X)}(K);if(We.toRoot())return fo(he,he,new B([],{}),P,X);const Ct=function ao(L,K,P){if(L.isAbsolute)return new ts(K,!0,0);if(!P)return new ts(K,!1,NaN);if(null===P.parent)return new ts(P,!0,0);const X=Hn(L.commands[0])?0:1;return function wo(L,K,P){let X=L,he=K,We=P;for(;We>he;){if(We-=he,X=X.parent,!X)throw new i.wOt(4005,!1);he=X.segments.length}return new ts(X,!1,he-We)}(P,P.segments.length-1+X,L.numberOfDoubleDots)}(We,he,L),vn=Ct.processChildren?Ts(Ct.segmentGroup,Ct.index,We.commands):Do(Ct.segmentGroup,Ct.index,We.commands);return fo(he,Ct.segmentGroup,vn,P,X)}function Hn(L){return"object"==typeof L&&null!=L&&!L.outlets&&!L.segmentPath}function fr(L){return"object"==typeof L&&null!=L&&L.outlets}function fo(L,K,P,X,he){let Ct,We={};X&&Object.entries(X).forEach(([nn,pr])=>{We[nn]=Array.isArray(pr)?pr.map(ri=>`${ri}`):`${pr}`}),Ct=L===K?P:Oi(L,K,P);const vn=ci(Si(Ct));return new ke(vn,We,he)}function Oi(L,K,P){const X={};return Object.entries(L.children).forEach(([he,We])=>{X[he]=We===K?P:Oi(We,K,P)}),new B(L.segments,X)}class Uo{isAbsolute;numberOfDoubleDots;commands;constructor(K,P,X){if(this.isAbsolute=K,this.numberOfDoubleDots=P,this.commands=X,K&&X.length>0&&Hn(X[0]))throw new i.wOt(4003,!1);const he=X.find(fr);if(he&&he!==Nt(X))throw new i.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ts{segmentGroup;processChildren;index;constructor(K,P,X){this.segmentGroup=K,this.processChildren=P,this.index=X}}function Do(L,K,P){if(L??=new B([],{}),0===L.segments.length&&L.hasChildren())return Ts(L,K,P);const X=function eo(L,K,P){let X=0,he=K;const We={match:!1,pathIndex:0,commandIndex:0};for(;he<L.segments.length;){if(X>=P.length)return We;const Ct=L.segments[he],vn=P[X];if(fr(vn))break;const nn=`${vn}`,pr=X<P.length-1?P[X+1]:null;if(he>0&&void 0===nn)break;if(nn&&pr&&"object"==typeof pr&&void 0===pr.outlets){if(!Je(nn,pr,Ct))return We;X+=2}else{if(!Je(nn,{},Ct))return We;X++}he++}return{match:!0,pathIndex:he,commandIndex:X}}(L,K,P),he=P.slice(X.commandIndex);if(X.match&&X.pathIndex<L.segments.length){const We=new B(L.segments.slice(0,X.pathIndex),{});return We.children[Ge]=new B(L.segments.slice(X.pathIndex),L.children),Ts(We,0,he)}return X.match&&0===he.length?new B(L.segments,{}):X.match&&!L.hasChildren()?oo(L,K,P):X.match?Ts(L,0,he):oo(L,K,P)}function Ts(L,K,P){if(0===P.length)return new B(L.segments,{});{const X=function Xo(L){return fr(L[0])?L[0].outlets:{[Ge]:L}}(P),he={};if(Object.keys(X).some(We=>We!==Ge)&&L.children[Ge]&&1===L.numberOfChildren&&0===L.children[Ge].segments.length){const We=Ts(L.children[Ge],K,P);return new B(L.segments,We.children)}return Object.entries(X).forEach(([We,Ct])=>{"string"==typeof Ct&&(Ct=[Ct]),null!==Ct&&(he[We]=Do(L.children[We],K,Ct))}),Object.entries(L.children).forEach(([We,Ct])=>{void 0===X[We]&&(he[We]=Ct)}),new B(L.segments,he)}}function oo(L,K,P){const X=L.segments.slice(0,K);let he=0;for(;he<P.length;){const We=P[he];if(fr(We)){const nn=Bi(We.outlets);return new B(X,nn)}if(0===he&&Hn(P[0])){X.push(new k(L.segments[K].path,Mo(P[0]))),he++;continue}const Ct=fr(We)?We.outlets[Ge]:`${We}`,vn=he<P.length-1?P[he+1]:null;Ct&&vn&&Hn(vn)?(X.push(new k(Ct,Mo(vn))),he+=2):(X.push(new k(Ct,{})),he++)}return new B(X,{})}function Bi(L){const K={};return Object.entries(L).forEach(([P,X])=>{"string"==typeof X&&(X=[X]),null!==X&&(K[P]=oo(new B([],{}),0,X))}),K}function Mo(L){const K={};return Object.entries(L).forEach(([P,X])=>K[P]=`${X}`),K}function Je(L,K,P){return L==P.path&&Jt(K,P.parameters)}const ct="imperative";var Et=function(L){return L[L.NavigationStart=0]="NavigationStart",L[L.NavigationEnd=1]="NavigationEnd",L[L.NavigationCancel=2]="NavigationCancel",L[L.NavigationError=3]="NavigationError",L[L.RoutesRecognized=4]="RoutesRecognized",L[L.ResolveStart=5]="ResolveStart",L[L.ResolveEnd=6]="ResolveEnd",L[L.GuardsCheckStart=7]="GuardsCheckStart",L[L.GuardsCheckEnd=8]="GuardsCheckEnd",L[L.RouteConfigLoadStart=9]="RouteConfigLoadStart",L[L.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",L[L.ChildActivationStart=11]="ChildActivationStart",L[L.ChildActivationEnd=12]="ChildActivationEnd",L[L.ActivationStart=13]="ActivationStart",L[L.ActivationEnd=14]="ActivationEnd",L[L.Scroll=15]="Scroll",L[L.NavigationSkipped=16]="NavigationSkipped",L}(Et||{});class ve{id;url;constructor(K,P){this.id=K,this.url=P}}class et extends ve{type=Et.NavigationStart;navigationTrigger;restoredState;constructor(K,P,X="imperative",he=null){super(K,P),this.navigationTrigger=X,this.restoredState=he}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Oe extends ve{urlAfterRedirects;type=Et.NavigationEnd;constructor(K,P,X){super(K,P),this.urlAfterRedirects=X}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var pt=function(L){return L[L.Redirect=0]="Redirect",L[L.SupersededByNewNavigation=1]="SupersededByNewNavigation",L[L.NoDataFromResolver=2]="NoDataFromResolver",L[L.GuardRejected=3]="GuardRejected",L}(pt||{}),$t=function(L){return L[L.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",L[L.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",L}($t||{});class Mt extends ve{reason;code;type=Et.NavigationCancel;constructor(K,P,X,he){super(K,P),this.reason=X,this.code=he}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class un extends ve{reason;code;type=Et.NavigationSkipped;constructor(K,P,X,he){super(K,P),this.reason=X,this.code=he}}class Cn extends ve{error;target;type=Et.NavigationError;constructor(K,P,X,he){super(K,P),this.error=X,this.target=he}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sn extends ve{urlAfterRedirects;state;type=Et.RoutesRecognized;constructor(K,P,X,he){super(K,P),this.urlAfterRedirects=X,this.state=he}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kn extends ve{urlAfterRedirects;state;type=Et.GuardsCheckStart;constructor(K,P,X,he){super(K,P),this.urlAfterRedirects=X,this.state=he}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Un extends ve{urlAfterRedirects;state;shouldActivate;type=Et.GuardsCheckEnd;constructor(K,P,X,he,We){super(K,P),this.urlAfterRedirects=X,this.state=he,this.shouldActivate=We}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jn extends ve{urlAfterRedirects;state;type=Et.ResolveStart;constructor(K,P,X,he){super(K,P),this.urlAfterRedirects=X,this.state=he}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr extends ve{urlAfterRedirects;state;type=Et.ResolveEnd;constructor(K,P,X,he){super(K,P),this.urlAfterRedirects=X,this.state=he}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kr{route;type=Et.RouteConfigLoadStart;constructor(K){this.route=K}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mr{route;type=Et.RouteConfigLoadEnd;constructor(K){this.route=K}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bi{snapshot;type=Et.ChildActivationStart;constructor(K){this.snapshot=K}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{snapshot;type=Et.ChildActivationEnd;constructor(K){this.snapshot=K}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gr{snapshot;type=Et.ActivationStart;constructor(K){this.snapshot=K}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{snapshot;type=Et.ActivationEnd;constructor(K){this.snapshot=K}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yo{routerEvent;position;anchor;type=Et.Scroll;constructor(K,P,X){this.routerEvent=K,this.position=P,this.anchor=X}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class $r{}class Ki{url;navigationBehaviorOptions;constructor(K,P){this.url=K,this.navigationBehaviorOptions=P}}function Gi(L){return L.outlet||Ge}function Ni(L){if(!L)return null;if(L.routeConfig?._injector)return L.routeConfig._injector;for(let K=L.parent;K;K=K.parent){const P=K.routeConfig;if(P?._loadedInjector)return P._loadedInjector;if(P?._injector)return P._injector}return null}class Ls{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ni(this.route?.snapshot)??this.rootInjector}constructor(K){this.rootInjector=K,this.children=new ns(this.rootInjector)}}let ns=(()=>{class L{rootInjector;contexts=new Map;constructor(P){this.rootInjector=P}onChildOutletCreated(P,X){const he=this.getOrCreateContext(P);he.outlet=X,this.contexts.set(P,he)}onChildOutletDestroyed(P){const X=this.getContext(P);X&&(X.outlet=null,X.attachRef=null)}onOutletDeactivated(){const P=this.contexts;return this.contexts=new Map,P}onOutletReAttached(P){this.contexts=P}getOrCreateContext(P){let X=this.getContext(P);return X||(X=new Ls(this.rootInjector),this.contexts.set(P,X)),X}getContext(P){return this.contexts.get(P)||null}static \u0275fac=function(X){return new(X||L)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();class qr{_root;constructor(K){this._root=K}get root(){return this._root.value}parent(K){const P=this.pathFromRoot(K);return P.length>1?P[P.length-2]:null}children(K){const P=rs(K,this._root);return P?P.children.map(X=>X.value):[]}firstChild(K){const P=rs(K,this._root);return P&&P.children.length>0?P.children[0].value:null}siblings(K){const P=is(K,this._root);return P.length<2?[]:P[P.length-2].children.map(he=>he.value).filter(he=>he!==K)}pathFromRoot(K){return is(K,this._root).map(P=>P.value)}}function rs(L,K){if(L===K.value)return K;for(const P of K.children){const X=rs(L,P);if(X)return X}return null}function is(L,K){if(L===K.value)return[K];for(const P of K.children){const X=is(L,P);if(X.length)return X.unshift(K),X}return[]}class to{value;children;constructor(K,P){this.value=K,this.children=P}toString(){return`TreeNode(${this.value})`}}function Wi(L){const K={};return L&&L.children.forEach(P=>K[P.value.outlet]=P),K}class ws extends qr{snapshot;constructor(K,P){super(K),this.snapshot=P,Ps(this,K)}toString(){return this.snapshot.toString()}}function Io(L){const K=function va(L){const We=new os([],{},{},"",{},Ge,L,null,{});return new Ms("",new to(We,[]))}(L),P=new w.t([new k("",{})]),X=new w.t({}),he=new w.t({}),We=new w.t({}),Ct=new w.t(""),vn=new tr(P,X,We,Ct,he,Ge,L,K.root);return vn.snapshot=K.root,new ws(new to(vn,[]),K)}class tr{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(K,P,X,he,We,Ct,vn,nn){this.urlSubject=K,this.paramsSubject=P,this.queryParamsSubject=X,this.fragmentSubject=he,this.dataSubject=We,this.outlet=Ct,this.component=vn,this._futureSnapshot=nn,this.title=this.dataSubject?.pipe((0,pe.T)(pr=>pr[He]))??(0,y.of)(void 0),this.url=K,this.params=P,this.queryParams=X,this.fragment=he,this.data=We}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,pe.T)(K=>se(K))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,pe.T)(K=>se(K))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xo(L,K,P="emptyOnly"){let X;const{routeConfig:he}=L;return X=null===K||"always"!==P&&""!==he?.path&&(K.component||K.routeConfig?.loadComponent)?{params:{...L.params},data:{...L.data},resolve:{...L.data,...L._resolvedData??{}}}:{params:{...K.params,...L.params},data:{...K.data,...L.data},resolve:{...L.data,...K.data,...he?.data,...L._resolvedData}},he&&ia(he)&&(X.resolve[He]=he.title),X}class os{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[He]}constructor(K,P,X,he,We,Ct,vn,nn,pr){this.url=K,this.params=P,this.queryParams=X,this.fragment=he,this.data=We,this.outlet=Ct,this.component=vn,this.routeConfig=nn,this._resolve=pr}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=se(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(X=>X.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ms extends qr{url;constructor(K,P){super(P),this.url=K,Ps(this,P)}toString(){return ya(this._root)}}function Ps(L,K){K.value._routerState=L,K.children.forEach(P=>Ps(L,P))}function ya(L){const K=L.children.length>0?` { ${L.children.map(ya).join(", ")} } `:"";return`${L.value}${K}`}function Yo(L){if(L.snapshot){const K=L.snapshot,P=L._futureSnapshot;L.snapshot=P,Jt(K.queryParams,P.queryParams)||L.queryParamsSubject.next(P.queryParams),K.fragment!==P.fragment&&L.fragmentSubject.next(P.fragment),Jt(K.params,P.params)||L.paramsSubject.next(P.params),function Rt(L,K){if(L.length!==K.length)return!1;for(let P=0;P<L.length;++P)if(!Jt(L[P],K[P]))return!1;return!0}(K.url,P.url)||L.urlSubject.next(P.url),Jt(K.data,P.data)||L.dataSubject.next(P.data)}else L.snapshot=L._futureSnapshot,L.dataSubject.next(L._futureSnapshot.data)}function Ai(L,K){const P=Jt(L.params,K.params)&&function j(L,K){return De(L,K)&&L.every((P,X)=>Jt(P.parameters,K[X].parameters))}(L.url,K.url);return P&&!(!L.parent!=!K.parent)&&(!L.parent||Ai(L.parent,K.parent))}function ia(L){return"string"==typeof L.title||null===L.title}const bl=new i.nKC("");let Qo=(()=>{class L{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ge;activateEvents=new i.bkB;deactivateEvents=new i.bkB;attachEvents=new i.bkB;detachEvents=new i.bkB;routerOutletData=(0,i.hFB)(void 0);parentContexts=(0,i.WQX)(ns);location=(0,i.WQX)(i.c1b);changeDetector=(0,i.WQX)(i.gRc);inputBinder=(0,i.WQX)(lo,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(P){if(P.name){const{firstChange:X,previousValue:he}=P.name;if(X)return;this.isTrackedInParentContexts(he)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(he)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(P){return this.parentContexts.getContext(P)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const P=this.parentContexts.getContext(this.name);P?.route&&(P.attachRef?this.attach(P.attachRef,P.route):this.activateWith(P.route,P.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.wOt(4012,!1);this.location.detach();const P=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(P.instance),P}attach(P,X){this.activated=P,this._activatedRoute=X,this.location.insert(P.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(P.instance)}deactivate(){if(this.activated){const P=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(P)}}activateWith(P,X){if(this.isActivated)throw new i.wOt(4013,!1);this._activatedRoute=P;const he=this.location,Ct=P.snapshot.component,vn=this.parentContexts.getOrCreateContext(this.name).children,nn=new oa(P,vn,he.injector,this.routerOutletData);this.activated=he.createComponent(Ct,{index:he.length,injector:nn,environmentInjector:X}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(X){return new(X||L)};static \u0275dir=i.FsC({type:L,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[i.OA$]})}return L})();class oa{route;childContexts;parent;outletData;__ngOutletInjector(K){return new oa(this.route,this.childContexts,K,this.outletData)}constructor(K,P,X,he){this.route=K,this.childContexts=P,this.parent=X,this.outletData=he}get(K,P){return K===tr?this.route:K===ns?this.childContexts:K===bl?this.outletData:this.parent.get(K,P)}}const lo=new i.nKC("");let ss=(()=>{class L{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(P){this.unsubscribeFromRouteData(P),this.subscribeToRouteData(P)}unsubscribeFromRouteData(P){this.outletDataSubscriptions.get(P)?.unsubscribe(),this.outletDataSubscriptions.delete(P)}subscribeToRouteData(P){const{activatedRoute:X}=P,he=(0,C.z)([X.queryParams,X.params,X.data]).pipe((0,Te.n)(([We,Ct,vn],nn)=>(vn={...We,...Ct,...vn},0===nn?(0,y.of)(vn):Promise.resolve(vn)))).subscribe(We=>{if(!P.isActivated||!P.activatedComponentRef||P.activatedRoute!==X||null===X.component)return void this.unsubscribeFromRouteData(P);const Ct=(0,i.HJs)(X.component);if(Ct)for(const{templateName:vn}of Ct.inputs)P.activatedComponentRef.setInput(vn,We[vn]);else this.unsubscribeFromRouteData(P)});this.outletDataSubscriptions.set(P,he)}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac})}return L})();function Zo(L,K,P){if(P&&L.shouldReuseRoute(K.value,P.value.snapshot)){const X=P.value;X._futureSnapshot=K.value;const he=function _i(L,K,P){return K.children.map(X=>{for(const he of P.children)if(L.shouldReuseRoute(X.value,he.value.snapshot))return Zo(L,X,he);return Zo(L,X)})}(L,K,P);return new to(X,he)}{if(L.shouldAttach(K.value)){const We=L.retrieve(K.value);if(null!==We){const Ct=We.route;return Ct.value._futureSnapshot=K.value,Ct.children=K.children.map(vn=>Zo(L,vn)),Ct}}const X=function La(L){return new tr(new w.t(L.url),new w.t(L.params),new w.t(L.queryParams),new w.t(L.fragment),new w.t(L.data),L.outlet,L.component,L)}(K.value),he=K.children.map(We=>Zo(L,We));return new to(X,he)}}class ko{redirectTo;navigationBehaviorOptions;constructor(K,P){this.redirectTo=K,this.navigationBehaviorOptions=P}}const Gs="ngNavigationCancelingError";function wl(L,K){const{redirectTo:P,navigationBehaviorOptions:X}=St(K)?{redirectTo:K,navigationBehaviorOptions:void 0}:K,he=Ga(!1,pt.Redirect);return he.url=P,he.navigationBehaviorOptions=X,he}function Ga(L,K){const P=new Error(`NavigationCancelingError: ${L||""}`);return P[Gs]=!0,P.cancellationCode=K,P}function Y(L){return!!L&&L[Gs]}class Xe{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(K,P,X,he,We){this.routeReuseStrategy=K,this.futureState=P,this.currState=X,this.forwardEvent=he,this.inputBindingEnabled=We}activate(K){const P=this.futureState._root,X=this.currState?this.currState._root:null;this.deactivateChildRoutes(P,X,K),Yo(this.futureState.root),this.activateChildRoutes(P,X,K)}deactivateChildRoutes(K,P,X){const he=Wi(P);K.children.forEach(We=>{const Ct=We.value.outlet;this.deactivateRoutes(We,he[Ct],X),delete he[Ct]}),Object.values(he).forEach(We=>{this.deactivateRouteAndItsChildren(We,X)})}deactivateRoutes(K,P,X){const he=K.value,We=P?P.value:null;if(he===We)if(he.component){const Ct=X.getContext(he.outlet);Ct&&this.deactivateChildRoutes(K,P,Ct.children)}else this.deactivateChildRoutes(K,P,X);else We&&this.deactivateRouteAndItsChildren(P,X)}deactivateRouteAndItsChildren(K,P){K.value.component&&this.routeReuseStrategy.shouldDetach(K.value.snapshot)?this.detachAndStoreRouteSubtree(K,P):this.deactivateRouteAndOutlet(K,P)}detachAndStoreRouteSubtree(K,P){const X=P.getContext(K.value.outlet),he=X&&K.value.component?X.children:P,We=Wi(K);for(const Ct of Object.values(We))this.deactivateRouteAndItsChildren(Ct,he);if(X&&X.outlet){const Ct=X.outlet.detach(),vn=X.children.onOutletDeactivated();this.routeReuseStrategy.store(K.value.snapshot,{componentRef:Ct,route:K,contexts:vn})}}deactivateRouteAndOutlet(K,P){const X=P.getContext(K.value.outlet),he=X&&K.value.component?X.children:P,We=Wi(K);for(const Ct of Object.values(We))this.deactivateRouteAndItsChildren(Ct,he);X&&(X.outlet&&(X.outlet.deactivate(),X.children.onOutletDeactivated()),X.attachRef=null,X.route=null)}activateChildRoutes(K,P,X){const he=Wi(P);K.children.forEach(We=>{this.activateRoutes(We,he[We.value.outlet],X),this.forwardEvent(new ai(We.value.snapshot))}),K.children.length&&this.forwardEvent(new si(K.value.snapshot))}activateRoutes(K,P,X){const he=K.value,We=P?P.value:null;if(Yo(he),he===We)if(he.component){const Ct=X.getOrCreateContext(he.outlet);this.activateChildRoutes(K,P,Ct.children)}else this.activateChildRoutes(K,P,X);else if(he.component){const Ct=X.getOrCreateContext(he.outlet);if(this.routeReuseStrategy.shouldAttach(he.snapshot)){const vn=this.routeReuseStrategy.retrieve(he.snapshot);this.routeReuseStrategy.store(he.snapshot,null),Ct.children.onOutletReAttached(vn.contexts),Ct.attachRef=vn.componentRef,Ct.route=vn.route.value,Ct.outlet&&Ct.outlet.attach(vn.componentRef,vn.route.value),Yo(vn.route.value),this.activateChildRoutes(K,null,Ct.children)}else Ct.attachRef=null,Ct.route=he,Ct.outlet&&Ct.outlet.activateWith(he,Ct.injector),this.activateChildRoutes(K,null,Ct.children)}else this.activateChildRoutes(K,null,X)}}class wt{path;route;constructor(K){this.path=K,this.route=this.path[this.path.length-1]}}class Ln{component;route;constructor(K,P){this.component=K,this.route=P}}function hn(L,K,P){const X=L._root;return Gr(X,K?K._root:null,P,[X.value])}function hr(L,K){const P=Symbol(),X=K.get(L,P);return X===P?"function"!=typeof L||(0,i.LfX)(L)?K.get(L):L:X}function Gr(L,K,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=Wi(K);return L.children.forEach(Ct=>{(function zi(L,K,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=L.value,Ct=K?K.value:null,vn=P?P.getContext(L.value.outlet):null;if(Ct&&We.routeConfig===Ct.routeConfig){const nn=function Or(L,K,P){if("function"==typeof P)return P(L,K);switch(P){case"pathParamsChange":return!De(L.url,K.url);case"pathParamsOrQueryParamsChange":return!De(L.url,K.url)||!Jt(L.queryParams,K.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ai(L,K)||!Jt(L.queryParams,K.queryParams);default:return!Ai(L,K)}}(Ct,We,We.routeConfig.runGuardsAndResolvers);nn?he.canActivateChecks.push(new wt(X)):(We.data=Ct.data,We._resolvedData=Ct._resolvedData),Gr(L,K,We.component?vn?vn.children:null:P,X,he),nn&&vn&&vn.outlet&&vn.outlet.isActivated&&he.canDeactivateChecks.push(new Ln(vn.outlet.component,Ct))}else Ct&&Dr(K,vn,he),he.canActivateChecks.push(new wt(X)),Gr(L,null,We.component?vn?vn.children:null:P,X,he)})(Ct,We[Ct.value.outlet],P,X.concat([Ct.value]),he),delete We[Ct.value.outlet]}),Object.entries(We).forEach(([Ct,vn])=>Dr(vn,P.getContext(Ct),he)),he}function Dr(L,K,P){const X=Wi(L),he=L.value;Object.entries(X).forEach(([We,Ct])=>{Dr(Ct,he.component?K?K.children.getContext(We):null:K,P)}),P.canDeactivateChecks.push(new Ln(he.component&&K&&K.outlet&&K.outlet.isActivated?K.outlet.component:null,he))}function Ei(L){return"function"==typeof L}function Ya(L){return L instanceof T.G||"EmptyError"===L?.name}const ba=Symbol("INITIAL_VALUE");function ue(){return(0,Te.n)(L=>(0,C.z)(L.map(K=>K.pipe((0,xe.s)(1),(0,Re.Z)(ba)))).pipe((0,pe.T)(K=>{for(const P of K)if(!0!==P){if(P===ba)return ba;if(!1===P||ce(P))return P}return!0}),(0,Me.p)(K=>K!==ba),(0,xe.s)(1)))}function ce(L){return St(L)||L instanceof ko}function rc(L){return(0,I.F)((0,Xt.M)(K=>{if("boolean"!=typeof K)throw wl(0,K)}),(0,pe.T)(K=>!0===K))}class cs{segmentGroup;constructor(K){this.segmentGroup=K||null}}class Fs extends Error{urlTree;constructor(K){super(),this.urlTree=K}}function Fa(L){return(0,N.$)(new cs(L))}class Cl{urlSerializer;urlTree;constructor(K,P){this.urlSerializer=K,this.urlTree=P}lineralizeSegments(K,P){let X=[],he=P.root;for(;;){if(X=X.concat(he.segments),0===he.numberOfChildren)return(0,y.of)(X);if(he.numberOfChildren>1||!he.children[Ge])return(0,N.$)(new i.wOt(4e3,!1));he=he.children[Ge]}}applyRedirectCommands(K,P,X,he,We){if("string"!=typeof P){const vn=P,{queryParams:nn,fragment:pr,routeConfig:ri,url:hi,outlet:io,params:as,data:Ko,title:xs}=he,Wr=(0,i.N4e)(We,()=>vn({params:as,data:Ko,queryParams:nn,fragment:pr,routeConfig:ri,url:hi,outlet:io,title:xs}));if(Wr instanceof ke)throw new Fs(Wr);P=Wr}const Ct=this.applyRedirectCreateUrlTree(P,this.urlSerializer.parse(P),K,X);if("/"===P[0])throw new Fs(Ct);return Ct}applyRedirectCreateUrlTree(K,P,X,he){const We=this.createSegmentGroup(K,P.root,X,he);return new ke(We,this.createQueryParams(P.queryParams,this.urlTree.queryParams),P.fragment)}createQueryParams(K,P){const X={};return Object.entries(K).forEach(([he,We])=>{if("string"==typeof We&&":"===We[0]){const vn=We.substring(1);X[he]=P[vn]}else X[he]=We}),X}createSegmentGroup(K,P,X,he){const We=this.createSegments(K,P.segments,X,he);let Ct={};return Object.entries(P.children).forEach(([vn,nn])=>{Ct[vn]=this.createSegmentGroup(K,nn,X,he)}),new B(We,Ct)}createSegments(K,P,X,he){return P.map(We=>":"===We.path[0]?this.findPosParam(K,We,he):this.findOrReturn(We,X))}findPosParam(K,P,X){const he=X[P.path.substring(1)];if(!he)throw new i.wOt(4001,!1);return he}findOrReturn(K,P){let X=0;for(const he of P){if(he.path===K.path)return P.splice(X),he;X++}return K}}const sa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ba(L,K,P,X,he){const We=_c(L,K,P);return We.matched?(X=function bs(L,K){return L.providers&&!L._injector&&(L._injector=(0,i.Ol2)(L.providers,K,`Route: ${L.path}`)),L._injector??K}(K,X),function El(L,K,P,X){const he=K.canMatch;if(!he||0===he.length)return(0,y.of)(!0);const We=he.map(Ct=>{const vn=hr(Ct,L);return Qt(function Wl(L){return L&&Ei(L.canMatch)}(vn)?vn.canMatch(K,P):(0,i.N4e)(L,()=>vn(K,P)))});return(0,y.of)(We).pipe(ue(),rc())}(X,K,P).pipe((0,pe.T)(Ct=>!0===Ct?We:{...sa}))):(0,y.of)(We)}function _c(L,K,P){if("**"===K.path)return function Pu(L){return{matched:!0,parameters:L.length>0?Nt(L).parameters:{},consumedSegments:L,remainingSegments:[],positionalParamSegments:{}}}(P);if(""===K.path)return"full"===K.pathMatch&&(L.hasChildren()||P.length>0)?{...sa}:{matched:!0,consumedSegments:[],remainingSegments:P,parameters:{},positionalParamSegments:{}};const he=(K.matcher||Ze)(P,L,K);if(!he)return{...sa};const We={};Object.entries(he.posParams??{}).forEach(([vn,nn])=>{We[vn]=nn.path});const Ct=he.consumed.length>0?{...We,...he.consumed[he.consumed.length-1].parameters}:We;return{matched:!0,consumedSegments:he.consumed,remainingSegments:P.slice(he.consumed.length),parameters:Ct,positionalParamSegments:he.posParams??{}}}function ic(L,K,P,X){return P.length>0&&function wa(L,K,P){return P.some(X=>Dl(L,K,X)&&Gi(X)!==Ge)}(L,P,X)?{segmentGroup:new B(K,zl(X,new B(P,L.children))),slicedSegments:[]}:0===P.length&&function Za(L,K,P){return P.some(X=>Dl(L,K,X))}(L,P,X)?{segmentGroup:new B(L.segments,Ua(L,P,X,L.children)),slicedSegments:P}:{segmentGroup:new B(L.segments,L.children),slicedSegments:P}}function Ua(L,K,P,X){const he={};for(const We of P)if(Dl(L,K,We)&&!X[Gi(We)]){const Ct=new B([],{});he[Gi(We)]=Ct}return{...X,...he}}function zl(L,K){const P={};P[Ge]=K;for(const X of L)if(""===X.path&&Gi(X)!==Ge){const he=new B([],{});P[Gi(X)]=he}return P}function Dl(L,K,P){return(!(L.hasChildren()||K.length>0)||"full"!==P.pathMatch)&&""===P.path}class uo{}class Jo{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(K,P,X,he,We,Ct,vn){this.injector=K,this.configLoader=P,this.rootComponentType=X,this.config=he,this.urlTree=We,this.paramsInheritanceStrategy=Ct,this.urlSerializer=vn,this.applyRedirects=new Cl(this.urlSerializer,this.urlTree)}noMatchError(K){return new i.wOt(4002,`'${K.segmentGroup}'`)}recognize(){const K=ic(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(K).pipe((0,pe.T)(({children:P,rootSnapshot:X})=>{const he=new to(X,P),We=new Ms("",he),Ct=function qe(L,K,P=null,X=null){return Wt(Dt(L),K,P,X)}(X,[],this.urlTree.queryParams,this.urlTree.fragment);return Ct.queryParams=this.urlTree.queryParams,We.url=this.urlSerializer.serialize(Ct),{state:We,tree:Ct}}))}match(K){const P=new os([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Ge,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,K,Ge,P).pipe((0,pe.T)(X=>({children:X,rootSnapshot:P})),(0,ln.W)(X=>{if(X instanceof Fs)return this.urlTree=X.urlTree,this.match(X.urlTree.root);throw X instanceof cs?this.noMatchError(X):X}))}processSegmentGroup(K,P,X,he,We){return 0===X.segments.length&&X.hasChildren()?this.processChildren(K,P,X,We):this.processSegment(K,P,X,X.segments,he,!0,We).pipe((0,pe.T)(Ct=>Ct instanceof to?[Ct]:[]))}processChildren(K,P,X,he){const We=[];for(const Ct of Object.keys(X.children))"primary"===Ct?We.unshift(Ct):We.push(Ct);return(0,c.H)(We).pipe((0,at.H)(Ct=>{const vn=X.children[Ct],nn=function Ks(L,K){const P=L.filter(X=>Gi(X)===K);return P.push(...L.filter(X=>Gi(X)!==K)),P}(P,Ct);return this.processSegmentGroup(K,nn,vn,Ct,he)}),function $n(L,K){return(0,le.N)((0,yn.S)(L,K,arguments.length>=2,!0))}((Ct,vn)=>(Ct.push(...vn),Ct)),Ie(null),function Qe(L,K){const P=arguments.length>=2;return X=>X.pipe(L?(0,Me.p)((he,We)=>L(he,We,X)):ht.D,bn(1),P?Ie(K):$e(()=>new T.G))}(),(0,Ce.Z)(Ct=>{if(null===Ct)return Fa(X);const vn=Sl(Ct);return function yc(L){L.sort((K,P)=>K.value.outlet===Ge?-1:P.value.outlet===Ge?1:K.value.outlet.localeCompare(P.value.outlet))}(vn),(0,y.of)(vn)}))}processSegment(K,P,X,he,We,Ct,vn){return(0,c.H)(P).pipe((0,at.H)(nn=>this.processSegmentAgainstRoute(nn._injector??K,P,nn,X,he,We,Ct,vn).pipe((0,ln.W)(pr=>{if(pr instanceof cs)return(0,y.of)(null);throw pr}))),vt(nn=>!!nn),(0,ln.W)(nn=>{if(Ya(nn))return function Ro(L,K,P){return 0===K.length&&!L.children[P]}(X,he,We)?(0,y.of)(new uo):Fa(X);throw nn}))}processSegmentAgainstRoute(K,P,X,he,We,Ct,vn,nn){return Gi(X)===Ct||Ct!==Ge&&Dl(he,We,X)?void 0===X.redirectTo?this.matchSegmentAgainstRoute(K,he,X,We,Ct,nn):this.allowRedirects&&vn?this.expandSegmentAgainstRouteUsingRedirect(K,he,P,X,We,Ct,nn):Fa(he):Fa(he)}expandSegmentAgainstRouteUsingRedirect(K,P,X,he,We,Ct,vn){const{matched:nn,parameters:pr,consumedSegments:ri,positionalParamSegments:hi,remainingSegments:io}=_c(P,he,We);if(!nn)return Fa(P);"string"==typeof he.redirectTo&&"/"===he.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const as=new os(We,pr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Al(he),Gi(he),he.component??he._loadedComponent??null,he,Xl(he)),Ko=xo(as,vn,this.paramsInheritanceStrategy);as.params=Object.freeze(Ko.params),as.data=Object.freeze(Ko.data);const xs=this.applyRedirects.applyRedirectCommands(ri,he.redirectTo,hi,as,K);return this.applyRedirects.lineralizeSegments(he,xs).pipe((0,Ce.Z)(Wr=>this.processSegment(K,X,P,Wr.concat(io),Ct,!1,vn)))}matchSegmentAgainstRoute(K,P,X,he,We,Ct){const vn=Ba(P,X,he,K);return"**"===X.path&&(P.children={}),vn.pipe((0,Te.n)(nn=>nn.matched?this.getChildConfig(K=X._injector??K,X,he).pipe((0,Te.n)(({routes:pr})=>{const ri=X._loadedInjector??K,{parameters:hi,consumedSegments:io,remainingSegments:as}=nn,Ko=new os(io,hi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Al(X),Gi(X),X.component??X._loadedComponent??null,X,Xl(X)),xs=xo(Ko,Ct,this.paramsInheritanceStrategy);Ko.params=Object.freeze(xs.params),Ko.data=Object.freeze(xs.data);const{segmentGroup:Wr,slicedSegments:hl}=ic(P,io,as,pr);if(0===hl.length&&Wr.hasChildren())return this.processChildren(ri,pr,Wr,Ko).pipe((0,pe.T)(ac=>new to(Ko,ac)));if(0===pr.length&&0===hl.length)return(0,y.of)(new to(Ko,[]));const xc=Gi(X)===We;return this.processSegment(ri,pr,Wr,hl,xc?Ge:We,!0,Ko).pipe((0,pe.T)(ac=>new to(Ko,ac instanceof to?[ac]:[])))})):Fa(P)))}getChildConfig(K,P,X){return P.children?(0,y.of)({routes:P.children,injector:K}):P.loadChildren?void 0!==P._loadedRoutes?(0,y.of)({routes:P._loadedRoutes,injector:P._loadedInjector}):function Lu(L,K,P,X){const he=K.canLoad;if(void 0===he||0===he.length)return(0,y.of)(!0);const We=he.map(Ct=>{const vn=hr(Ct,L);return Qt(function po(L){return L&&Ei(L.canLoad)}(vn)?vn.canLoad(K,P):(0,i.N4e)(L,()=>vn(K,P)))});return(0,y.of)(We).pipe(ue(),rc())}(K,P,X).pipe((0,Ce.Z)(he=>he?this.configLoader.loadChildren(K,P).pipe((0,Xt.M)(We=>{P._loadedRoutes=We.routes,P._loadedInjector=We.injector})):function xl(){return(0,N.$)(Ga(!1,pt.GuardRejected))}())):(0,y.of)({routes:[],injector:K})}}function al(L){const K=L.value.routeConfig;return K&&""===K.path}function Sl(L){const K=[],P=new Set;for(const X of L){if(!al(X)){K.push(X);continue}const he=K.find(We=>X.value.routeConfig===We.value.routeConfig);void 0!==he?(he.children.push(...X.children),P.add(he)):K.push(X)}for(const X of P){const he=Sl(X.children);K.push(new to(X.value,he))}return K.filter(X=>!P.has(X))}function Al(L){return L.data||{}}function Xl(L){return L.resolve||{}}function Ui(L){const K=L.children.map(P=>Ui(P)).flat();return[L,...K]}function no(L){return(0,Te.n)(K=>{const P=L(K);return P?(0,c.H)(P).pipe((0,pe.T)(()=>K)):(0,y.of)(K)})}let $o=(()=>{class L{buildTitle(P){let X,he=P.root;for(;void 0!==he;)X=this.getResolvedTitleForRoute(he)??X,he=he.children.find(We=>We.outlet===Ge);return X}getResolvedTitleForRoute(P){return P.data[He]}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(es),providedIn:"root"})}return L})(),es=(()=>{class L extends $o{title;constructor(P){super(),this.title=P}updateTitle(P){const X=this.buildTitle(P);void 0!==X&&this.title.setTitle(X)}static \u0275fac=function(X){return new(X||L)(i.KVO(dt.hE))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Po=new i.nKC("",{providedIn:"root",factory:()=>({})});let Fr=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275cmp=i.VBU({type:L,selectors:[["ng-component"]],decls:1,vars:0,template:function(X,he){1&X&&i.nrm(0,"router-outlet")},dependencies:[Qo],encapsulation:2})}return L})();function mo(L){const K=L.children&&L.children.map(mo),P=K?{...L,children:K}:{...L};return!P.component&&!P.loadComponent&&(K||P.loadChildren)&&P.outlet&&P.outlet!==Ge&&(P.component=Fr),P}const Is=new i.nKC("");let Rr=(()=>{class L{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(i.Ql9);loadComponent(P){if(this.componentLoaders.get(P))return this.componentLoaders.get(P);if(P._loadedComponent)return(0,y.of)(P._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(P);const X=Qt(P.loadComponent()).pipe((0,pe.T)($a),(0,Xt.M)(We=>{this.onLoadEndListener&&this.onLoadEndListener(P),P._loadedComponent=We}),(0,ze.j)(()=>{this.componentLoaders.delete(P)})),he=new Z.G(X,()=>new te.B).pipe((0,Fe.B)());return this.componentLoaders.set(P,he),he}loadChildren(P,X){if(this.childrenLoaders.get(X))return this.childrenLoaders.get(X);if(X._loadedRoutes)return(0,y.of)({routes:X._loadedRoutes,injector:X._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(X);const We=function go(L,K,P,X){return Qt(L.loadChildren()).pipe((0,pe.T)($a),(0,Ce.Z)(he=>he instanceof i.Co$||Array.isArray(he)?(0,y.of)(he):(0,c.H)(K.compileModuleAsync(he))),(0,pe.T)(he=>{X&&X(L);let We,Ct,vn=!1;return Array.isArray(he)?(Ct=he,!0):(We=he.create(P).injector,Ct=We.get(Is,[],{optional:!0,self:!0}).flat()),{routes:Ct.map(mo),injector:We}}))}(X,this.compiler,P,this.onLoadEndListener).pipe((0,ze.j)(()=>{this.childrenLoaders.delete(X)})),Ct=new Z.G(We,()=>new te.B).pipe((0,Fe.B)());return this.childrenLoaders.set(X,Ct),Ct}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();function $a(L){return function oc(L){return L&&"object"==typeof L&&"default"in L}(L)?L.default:L}let ro=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(ja),providedIn:"root"})}return L})(),ja=(()=>{class L{shouldProcessUrl(P){return!0}extract(P){return P}merge(P,X){return P}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Di=new i.nKC(""),Bs=new i.nKC("");function aa(L,K,P){const X=L.get(Bs),he=L.get(me.qQ);return L.get(i.SKi).runOutsideAngular(()=>{if(!he.startViewTransition||X.skipNextTransition)return X.skipNextTransition=!1,new Promise(pr=>setTimeout(pr));let We;const Ct=new Promise(pr=>{We=pr}),vn=he.startViewTransition(()=>(We(),function No(L){return new Promise(K=>{(0,i.mal)({read:()=>setTimeout(K)},{injector:L})})}(L))),{onViewTransitionCreated:nn}=X;return nn&&(0,i.N4e)(L,()=>nn({transition:vn,from:K,to:P})),Ct})}const $=new i.nKC("");let de=(()=>{class L{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new te.B;transitionAbortSubject=new te.B;configLoader=(0,i.WQX)(Rr);environmentInjector=(0,i.WQX)(i.uvJ);urlSerializer=(0,i.WQX)(ot);rootContexts=(0,i.WQX)(ns);location=(0,i.WQX)(me.aZ);inputBindingEnabled=null!==(0,i.WQX)(lo,{optional:!0});titleStrategy=(0,i.WQX)($o);options=(0,i.WQX)(Po,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(ro);createViewTransition=(0,i.WQX)(Di,{optional:!0});navigationErrorHandler=(0,i.WQX)($,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,y.of)(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=he=>this.events.next(new mr(he)),this.configLoader.onLoadStartListener=he=>this.events.next(new kr(he))}complete(){this.transitions?.complete()}handleNavigationRequest(P){const X=++this.navigationId;this.transitions?.next({...this.transitions.value,...P,id:X})}setupNavigations(P,X,he){return this.transitions=new w.t({id:0,currentUrlTree:X,currentRawUrl:X,extractedUrl:this.urlHandlingStrategy.extract(X),urlAfterRedirects:this.urlHandlingStrategy.extract(X),rawUrl:X,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ct,restoredState:null,currentSnapshot:he.snapshot,targetSnapshot:null,currentRouterState:he,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Me.p)(We=>0!==We.id),(0,pe.T)(We=>({...We,extractedUrl:this.urlHandlingStrategy.extract(We.rawUrl)})),(0,Te.n)(We=>{let Ct=!1,vn=!1;return(0,y.of)(We).pipe((0,Te.n)(nn=>{if(this.navigationId>We.id)return this.cancelNavigationTransition(We,"",pt.SupersededByNewNavigation),G.w;this.currentTransition=We,this.currentNavigation={id:nn.id,initialUrl:nn.rawUrl,extractedUrl:nn.extractedUrl,targetBrowserUrl:"string"==typeof nn.extras.browserUrl?this.urlSerializer.parse(nn.extras.browserUrl):nn.extras.browserUrl,trigger:nn.source,extras:nn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const pr=!P.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!pr&&"reload"!==(nn.extras.onSameUrlNavigation??P.onSameUrlNavigation)){const hi="";return this.events.next(new un(nn.id,this.urlSerializer.serialize(nn.rawUrl),hi,$t.IgnoredSameUrlNavigation)),nn.resolve(!1),G.w}if(this.urlHandlingStrategy.shouldProcessUrl(nn.rawUrl))return(0,y.of)(nn).pipe((0,Te.n)(hi=>{const io=this.transitions?.getValue();return this.events.next(new et(hi.id,this.urlSerializer.serialize(hi.extractedUrl),hi.source,hi.restoredState)),io!==this.transitions?.getValue()?G.w:Promise.resolve(hi)}),function Ca(L,K,P,X,he,We){return(0,Ce.Z)(Ct=>function Ea(L,K,P,X,he,We,Ct="emptyOnly"){return new Jo(L,K,P,X,he,Ct,We).recognize()}(L,K,P,X,Ct.extractedUrl,he,We).pipe((0,pe.T)(({state:vn,tree:nn})=>({...Ct,targetSnapshot:vn,urlAfterRedirects:nn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,P.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Xt.M)(hi=>{We.targetSnapshot=hi.targetSnapshot,We.urlAfterRedirects=hi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:hi.urlAfterRedirects};const io=new Sn(hi.id,this.urlSerializer.serialize(hi.extractedUrl),this.urlSerializer.serialize(hi.urlAfterRedirects),hi.targetSnapshot);this.events.next(io)}));if(pr&&this.urlHandlingStrategy.shouldProcessUrl(nn.currentRawUrl)){const{id:hi,extractedUrl:io,source:as,restoredState:Ko,extras:xs}=nn,Wr=new et(hi,this.urlSerializer.serialize(io),as,Ko);this.events.next(Wr);const hl=Io(this.rootComponentType).snapshot;return this.currentTransition=We={...nn,targetSnapshot:hl,urlAfterRedirects:io,extras:{...xs,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=io,(0,y.of)(We)}{const hi="";return this.events.next(new un(nn.id,this.urlSerializer.serialize(nn.extractedUrl),hi,$t.IgnoredByUrlHandlingStrategy)),nn.resolve(!1),G.w}}),(0,Xt.M)(nn=>{const pr=new kn(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects),nn.targetSnapshot);this.events.next(pr)}),(0,pe.T)(nn=>(this.currentTransition=We={...nn,guards:hn(nn.targetSnapshot,nn.currentSnapshot,this.rootContexts)},We)),function Q(L,K){return(0,Ce.Z)(P=>{const{targetSnapshot:X,currentSnapshot:he,guards:{canActivateChecks:We,canDeactivateChecks:Ct}}=P;return 0===Ct.length&&0===We.length?(0,y.of)({...P,guardsResult:!0}):function Le(L,K,P,X){return(0,c.H)(L).pipe((0,Ce.Z)(he=>function Pa(L,K,P,X,he){const We=K&&K.routeConfig?K.routeConfig.canDeactivate:null;if(!We||0===We.length)return(0,y.of)(!0);const Ct=We.map(vn=>{const nn=Ni(K)??he,pr=hr(vn,nn);return Qt(function Oo(L){return L&&Ei(L.canDeactivate)}(pr)?pr.canDeactivate(L,K,P,X):(0,i.N4e)(nn,()=>pr(L,K,P,X))).pipe(vt())});return(0,y.of)(Ct).pipe(ue())}(he.component,he.route,P,K,X)),vt(he=>!0!==he,!0))}(Ct,X,he,L).pipe((0,Ce.Z)(vn=>vn&&function ui(L){return"boolean"==typeof L}(vn)?function Ut(L,K,P,X){return(0,c.H)(K).pipe((0,at.H)(he=>(0,S.x)(function ni(L,K){return null!==L&&K&&K(new bi(L)),(0,y.of)(!0)}(he.route.parent,X),function _r(L,K){return null!==L&&K&&K(new gr(L)),(0,y.of)(!0)}(he.route,X),function qo(L,K,P){const X=K[K.length-1],We=K.slice(0,K.length-1).reverse().map(Ct=>function ur(L){const K=L.routeConfig?L.routeConfig.canActivateChild:null;return K&&0!==K.length?{node:L,guards:K}:null}(Ct)).filter(Ct=>null!==Ct).map(Ct=>(0,A.v)(()=>{const vn=Ct.guards.map(nn=>{const pr=Ni(Ct.node)??P,ri=hr(nn,pr);return Qt(function Ho(L){return L&&Ei(L.canActivateChild)}(ri)?ri.canActivateChild(X,L):(0,i.N4e)(pr,()=>ri(X,L))).pipe(vt())});return(0,y.of)(vn).pipe(ue())}));return(0,y.of)(We).pipe(ue())}(L,he.path,P),function So(L,K,P){const X=K.routeConfig?K.routeConfig.canActivate:null;if(!X||0===X.length)return(0,y.of)(!0);const he=X.map(We=>(0,A.v)(()=>{const Ct=Ni(K)??P,vn=hr(We,Ct);return Qt(function co(L){return L&&Ei(L.canActivate)}(vn)?vn.canActivate(K,L):(0,i.N4e)(Ct,()=>vn(K,L))).pipe(vt())}));return(0,y.of)(he).pipe(ue())}(L,he.route,P))),vt(he=>!0!==he,!0))}(X,We,L,K):(0,y.of)(vn)),(0,pe.T)(vn=>({...P,guardsResult:vn})))})}(this.environmentInjector,nn=>this.events.next(nn)),(0,Xt.M)(nn=>{if(We.guardsResult=nn.guardsResult,nn.guardsResult&&"boolean"!=typeof nn.guardsResult)throw wl(0,nn.guardsResult);const pr=new Un(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects),nn.targetSnapshot,!!nn.guardsResult);this.events.next(pr)}),(0,Me.p)(nn=>!!nn.guardsResult||(this.cancelNavigationTransition(nn,"",pt.GuardRejected),!1)),no(nn=>{if(nn.guards.canActivateChecks.length)return(0,y.of)(nn).pipe((0,Xt.M)(pr=>{const ri=new Jn(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects),pr.targetSnapshot);this.events.next(ri)}),(0,Te.n)(pr=>{let ri=!1;return(0,y.of)(pr).pipe(function us(L,K){return(0,Ce.Z)(P=>{const{targetSnapshot:X,guards:{canActivateChecks:he}}=P;if(!he.length)return(0,y.of)(P);const We=new Set(he.map(nn=>nn.route)),Ct=new Set;for(const nn of We)if(!Ct.has(nn))for(const pr of Ui(nn))Ct.add(pr);let vn=0;return(0,c.H)(Ct).pipe((0,at.H)(nn=>We.has(nn)?function zn(L,K,P,X){const he=L.routeConfig,We=L._resolve;return void 0!==he?.title&&!ia(he)&&(We[He]=he.title),function Ar(L,K,P,X){const he=fn(L);if(0===he.length)return(0,y.of)({});const We={};return(0,c.H)(he).pipe((0,Ce.Z)(Ct=>function Ao(L,K,P,X){const he=Ni(K)??X,We=hr(L,he);return Qt(We.resolve?We.resolve(K,P):(0,i.N4e)(he,()=>We(K,P)))}(L[Ct],K,P,X).pipe(vt(),(0,Xt.M)(vn=>{if(vn instanceof ko)throw wl(new Tt,vn);We[Ct]=vn}))),bn(1),(0,bt.u)(We),(0,ln.W)(Ct=>Ya(Ct)?G.w:(0,N.$)(Ct)))}(We,L,K,X).pipe((0,pe.T)(Ct=>(L._resolvedData=Ct,L.data=xo(L,L.parent,P).resolve,null)))}(nn,X,L,K):(nn.data=xo(nn,nn.parent,L).resolve,(0,y.of)(void 0))),(0,Xt.M)(()=>vn++),bn(1),(0,Ce.Z)(nn=>vn===Ct.size?(0,y.of)(P):G.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Xt.M)({next:()=>ri=!0,complete:()=>{ri||this.cancelNavigationTransition(pr,"",pt.NoDataFromResolver)}}))}),(0,Xt.M)(pr=>{const ri=new sr(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects),pr.targetSnapshot);this.events.next(ri)}))}),no(nn=>{const pr=ri=>{const hi=[];ri.routeConfig?.loadComponent&&!ri.routeConfig._loadedComponent&&hi.push(this.configLoader.loadComponent(ri.routeConfig).pipe((0,Xt.M)(io=>{ri.component=io}),(0,pe.T)(()=>{})));for(const io of ri.children)hi.push(...pr(io));return hi};return(0,C.z)(pr(nn.targetSnapshot.root)).pipe(Ie(null),(0,xe.s)(1))}),no(()=>this.afterPreactivation()),(0,Te.n)(()=>{const{currentSnapshot:nn,targetSnapshot:pr}=We,ri=this.createViewTransition?.(this.environmentInjector,nn.root,pr.root);return ri?(0,c.H)(ri).pipe((0,pe.T)(()=>We)):(0,y.of)(We)}),(0,pe.T)(nn=>{const pr=function bo(L,K,P){const X=Zo(L,K._root,P?P._root:void 0);return new ws(X,K)}(P.routeReuseStrategy,nn.targetSnapshot,nn.currentRouterState);return this.currentTransition=We={...nn,targetRouterState:pr},this.currentNavigation.targetRouterState=pr,We}),(0,Xt.M)(()=>{this.events.next(new $r)}),((L,K,P,X)=>(0,pe.T)(he=>(new Xe(K,he.targetRouterState,he.currentRouterState,P,X).activate(L),he)))(this.rootContexts,P.routeReuseStrategy,nn=>this.events.next(nn),this.inputBindingEnabled),(0,xe.s)(1),(0,Xt.M)({next:nn=>{Ct=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Oe(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects))),this.titleStrategy?.updateTitle(nn.targetRouterState.snapshot),nn.resolve(!0)},complete:()=>{Ct=!0}}),(0,Ft.Q)(this.transitionAbortSubject.pipe((0,Xt.M)(nn=>{throw nn}))),(0,ze.j)(()=>{!Ct&&!vn&&this.cancelNavigationTransition(We,"",pt.SupersededByNewNavigation),this.currentTransition?.id===We.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,ln.W)(nn=>{if(vn=!0,Y(nn))this.events.next(new Mt(We.id,this.urlSerializer.serialize(We.extractedUrl),nn.message,nn.cancellationCode)),function Xa(L){return Y(L)&&St(L.url)}(nn)?this.events.next(new Ki(nn.url,nn.navigationBehaviorOptions)):We.resolve(!1);else{const pr=new Cn(We.id,this.urlSerializer.serialize(We.extractedUrl),nn,We.targetSnapshot??void 0);try{const ri=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(pr));if(!(ri instanceof ko))throw this.events.next(pr),nn;{const{message:hi,cancellationCode:io}=wl(0,ri);this.events.next(new Mt(We.id,this.urlSerializer.serialize(We.extractedUrl),hi,io)),this.events.next(new Ki(ri.redirectTo,ri.navigationBehaviorOptions))}}catch(ri){this.options.resolveNavigationPromiseOnError?We.resolve(!1):We.reject(ri)}}return G.w}))}))}cancelNavigationTransition(P,X,he){const We=new Mt(P.id,this.urlSerializer.serialize(P.extractedUrl),X,he);this.events.next(We),P.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const P=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),X=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return P.toString()!==X?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();function q(L){return L!==ct}let _e=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(_n),providedIn:"root"})}return L})();class nt{shouldDetach(K){return!1}store(K,P){}shouldAttach(K){return!1}retrieve(K){return null}shouldReuseRoute(K,P){return K.routeConfig===P.routeConfig}}let _n=(()=>{class L extends nt{static \u0275fac=(()=>{let P;return function(he){return(P||(P=i.xGo(L)))(he||L)}})();static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),On=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(Cr),providedIn:"root"})}return L})(),Cr=(()=>{class L extends On{location=(0,i.WQX)(me.aZ);urlSerializer=(0,i.WQX)(ot);options=(0,i.WQX)(Po,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,i.WQX)(ro);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ke;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Io(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(P){return this.location.subscribe(X=>{"popstate"===X.type&&P(X.url,X.state)})}handleRouterEvent(P,X){if(P instanceof et)this.stateMemento=this.createStateMemento();else if(P instanceof un)this.rawUrlTree=X.initialUrl;else if(P instanceof Sn){if("eager"===this.urlUpdateStrategy&&!X.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(X.finalUrl,X.initialUrl);this.setBrowserUrl(X.targetBrowserUrl??he,X)}}else P instanceof $r?(this.currentUrlTree=X.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(X.finalUrl,X.initialUrl),this.routerState=X.targetRouterState,"deferred"===this.urlUpdateStrategy&&!X.extras.skipLocationChange&&this.setBrowserUrl(X.targetBrowserUrl??this.rawUrlTree,X)):P instanceof Mt&&(P.code===pt.GuardRejected||P.code===pt.NoDataFromResolver)?this.restoreHistory(X):P instanceof Cn?this.restoreHistory(X,!0):P instanceof Oe&&(this.lastSuccessfulId=P.id,this.currentPageId=this.browserPageId)}setBrowserUrl(P,X){const he=P instanceof ke?this.urlSerializer.serialize(P):P;if(this.location.isCurrentPathEqualTo(he)||X.extras.replaceUrl){const Ct={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId)};this.location.replaceState(he,"",Ct)}else{const We={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId+1)};this.location.go(he,"",We)}}restoreHistory(P,X=!1){if("computed"===this.canceledNavigationResolution){const We=this.currentPageId-this.browserPageId;0!==We?this.location.historyGo(We):this.currentUrlTree===P.finalUrl&&0===We&&(this.resetState(P),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(X&&this.resetState(P),this.resetUrlToCurrentUrlTree())}resetState(P){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,P.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(P,X){return"computed"===this.canceledNavigationResolution?{navigationId:P,\u0275routerPageId:X}:{navigationId:P}}static \u0275fac=(()=>{let P;return function(he){return(P||(P=i.xGo(L)))(he||L)}})();static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();var Yr=function(L){return L[L.COMPLETE=0]="COMPLETE",L[L.FAILED=1]="FAILED",L[L.REDIRECTING=2]="REDIRECTING",L}(Yr||{});function Li(L,K){L.events.pipe((0,Me.p)(P=>P instanceof Oe||P instanceof Mt||P instanceof Cn||P instanceof un),(0,pe.T)(P=>P instanceof Oe||P instanceof un?Yr.COMPLETE:P instanceof Mt&&(P.code===pt.Redirect||P.code===pt.SupersededByNewNavigation)?Yr.REDIRECTING:Yr.FAILED),(0,Me.p)(P=>P!==Yr.REDIRECTING),(0,xe.s)(1)).subscribe(()=>{K()})}const Hr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Qr=(()=>{class L{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(i.H3F);stateManager=(0,i.WQX)(On);options=(0,i.WQX)(Po,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.TgB);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(de);urlSerializer=(0,i.WQX)(ot);location=(0,i.WQX)(me.aZ);urlHandlingStrategy=(0,i.WQX)(ro);_events=new te.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(_e);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(Is,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(lo,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:P=>{this.console.warn(P)}}),this.subscribeToNavigationEvents()}eventsSubscription=new be.yU;subscribeToNavigationEvents(){const P=this.navigationTransitions.events.subscribe(X=>{try{const he=this.navigationTransitions.currentTransition,We=this.navigationTransitions.currentNavigation;if(null!==he&&null!==We)if(this.stateManager.handleRouterEvent(X,We),X instanceof Mt&&X.code!==pt.Redirect&&X.code!==pt.SupersededByNewNavigation)this.navigated=!0;else if(X instanceof Oe)this.navigated=!0;else if(X instanceof Ki){const Ct=X.navigationBehaviorOptions,vn=this.urlHandlingStrategy.merge(X.url,he.currentRawUrl),nn={browserUrl:he.extras.browserUrl,info:he.extras.info,skipLocationChange:he.extras.skipLocationChange,replaceUrl:he.extras.replaceUrl||"eager"===this.urlUpdateStrategy||q(he.source),...Ct};this.scheduleNavigation(vn,ct,null,nn,{resolve:he.resolve,reject:he.reject,promise:he.promise})}(function Fo(L){return!(L instanceof $r||L instanceof Ki)})(X)&&this._events.next(X)}catch(he){this.navigationTransitions.transitionAbortSubject.next(he)}});this.eventsSubscription.add(P)}resetRootComponentType(P){this.routerState.root.component=P,this.navigationTransitions.rootComponentType=P}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ct,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((P,X)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(P,"popstate",X)},0)})}navigateToSyncWithBrowser(P,X,he){const We={replaceUrl:!0},Ct=he?.navigationId?he:null;if(he){const nn={...he};delete nn.navigationId,delete nn.\u0275routerPageId,0!==Object.keys(nn).length&&(We.state=nn)}const vn=this.parseUrl(P);this.scheduleNavigation(vn,X,Ct,We)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(P){this.config=P.map(mo),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(P,X={}){const{relativeTo:he,queryParams:We,fragment:Ct,queryParamsHandling:vn,preserveFragment:nn}=X,pr=nn?this.currentUrlTree.fragment:Ct;let hi,ri=null;switch(vn??this.options.defaultQueryParamsHandling){case"merge":ri={...this.currentUrlTree.queryParams,...We};break;case"preserve":ri=this.currentUrlTree.queryParams;break;default:ri=We||null}null!==ri&&(ri=this.removeEmptyProps(ri));try{hi=Dt(he?he.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof P[0]||"/"!==P[0][0])&&(P=[]),hi=this.currentUrlTree.root}return Wt(hi,P,ri,pr??null)}navigateByUrl(P,X={skipLocationChange:!1}){const he=St(P)?P:this.parseUrl(P),We=this.urlHandlingStrategy.merge(he,this.rawUrlTree);return this.scheduleNavigation(We,ct,null,X)}navigate(P,X={skipLocationChange:!1}){return function di(L){for(let K=0;K<L.length;K++)if(null==L[K])throw new i.wOt(4008,!1)}(P),this.navigateByUrl(this.createUrlTree(P,X),X)}serializeUrl(P){return this.urlSerializer.serialize(P)}parseUrl(P){try{return this.urlSerializer.parse(P)}catch{return this.urlSerializer.parse("/")}}isActive(P,X){let he;if(he=!0===X?{...Hr}:!1===X?{...xi}:X,St(P))return En(this.currentUrlTree,P,he);const We=this.parseUrl(P);return En(this.currentUrlTree,We,he)}removeEmptyProps(P){return Object.entries(P).reduce((X,[he,We])=>(null!=We&&(X[he]=We),X),{})}scheduleNavigation(P,X,he,We,Ct){if(this.disposed)return Promise.resolve(!1);let vn,nn,pr;Ct?(vn=Ct.resolve,nn=Ct.reject,pr=Ct.promise):pr=new Promise((hi,io)=>{vn=hi,nn=io});const ri=this.pendingTasks.add();return Li(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ri))}),this.navigationTransitions.handleNavigationRequest({source:X,restoredState:he,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:P,extras:We,resolve:vn,reject:nn,promise:pr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),pr.catch(hi=>Promise.reject(hi))}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),Wo=(()=>{class L{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new te.B;constructor(P,X,he,We,Ct,vn){this.router=P,this.route=X,this.tabIndexAttribute=he,this.renderer=We,this.el=Ct,this.locationStrategy=vn;const nn=Ct.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===nn||"area"===nn,this.isAnchorElement?this.subscription=P.events.subscribe(pr=>{pr instanceof Oe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(P){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",P)}ngOnChanges(P){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(P){null==P?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=St(P)||Array.isArray(P)?P:[P],this.setTabIndexIfNotOnNativeEl("0"))}onClick(P,X,he,We,Ct){const vn=this.urlTree;return!!(null===vn||this.isAnchorElement&&(0!==P||X||he||We||Ct||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(vn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const P=this.urlTree;this.href=null!==P&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(P)):null;const X=null===this.href?null:(0,i.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",X)}applyAttributeValue(P,X){const he=this.renderer,We=this.el.nativeElement;null!==X?he.setAttribute(We,P,X):he.removeAttribute(We,P)}get urlTree(){return null===this.routerLinkInput?null:St(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(X){return new(X||L)(i.rXU(Qr),i.rXU(tr),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(me.hb))};static \u0275dir=i.FsC({type:L,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(X,he){1&X&&i.bIt("click",function(Ct){return he.onClick(Ct.button,Ct.ctrlKey,Ct.shiftKey,Ct.altKey,Ct.metaKey)}),2&X&&i.BMQ("target",he.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",i.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",i.L39],replaceUrl:[2,"replaceUrl","replaceUrl",i.L39],routerLink:"routerLink"},features:[i.GFd,i.OA$]})}return L})(),ds=(()=>{class L{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new i.bkB;constructor(P,X,he,We,Ct){this.router=P,this.element=X,this.renderer=he,this.cdr=We,this.link=Ct,this.routerEventsSubscription=P.events.subscribe(vn=>{vn instanceof Oe&&this.update()})}ngAfterContentInit(){(0,y.of)(this.links.changes,(0,y.of)(null)).pipe((0,Ke.U)()).subscribe(P=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const P=[...this.links.toArray(),this.link].filter(X=>!!X).map(X=>X.onChanges);this.linkInputChangesSubscription=(0,c.H)(P).pipe((0,Ke.U)()).subscribe(X=>{this._isActive!==this.isLinkActive(this.router)(X)&&this.update()})}set routerLinkActive(P){const X=Array.isArray(P)?P:P.split(" ");this.classes=X.filter(he=>!!he)}ngOnChanges(P){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const P=this.hasActiveLinks();this.classes.forEach(X=>{P?this.renderer.addClass(this.element.nativeElement,X):this.renderer.removeClass(this.element.nativeElement,X)}),P&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==P&&(this._isActive=P,this.cdr.markForCheck(),this.isActiveChange.emit(P))})}isLinkActive(P){const X=function jo(L){return!!L.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return he=>{const We=he.urlTree;return!!We&&P.isActive(We,X)}}hasActiveLinks(){const P=this.isLinkActive(this.router);return this.link&&P(this.link)||this.links.some(P)}static \u0275fac=function(X){return new(X||L)(i.rXU(Qr),i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.gRc),i.rXU(Wo,8))};static \u0275dir=i.FsC({type:L,selectors:[["","routerLinkActive",""]],contentQueries:function(X,he,We){if(1&X&&i.wni(We,Wo,5),2&X){let Ct;i.mGM(Ct=i.lsd())&&(he.links=Ct)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[i.OA$]})}return L})();class ks{}let Xs=(()=>{class L{router;injector;preloadingStrategy;loader;subscription;constructor(P,X,he,We,Ct){this.router=P,this.injector=he,this.preloadingStrategy=We,this.loader=Ct}setUpPreloading(){this.subscription=this.router.events.pipe((0,Me.p)(P=>P instanceof Oe),(0,at.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(P,X){const he=[];for(const We of X){We.providers&&!We._injector&&(We._injector=(0,i.Ol2)(We.providers,P,`Route: ${We.path}`));const Ct=We._injector??P,vn=We._loadedInjector??Ct;(We.loadChildren&&!We._loadedRoutes&&void 0===We.canLoad||We.loadComponent&&!We._loadedComponent)&&he.push(this.preloadConfig(Ct,We)),(We.children||We._loadedRoutes)&&he.push(this.processRoutes(vn,We.children??We._loadedRoutes))}return(0,c.H)(he).pipe((0,Ke.U)())}preloadConfig(P,X){return this.preloadingStrategy.preload(X,()=>{let he;he=X.loadChildren&&void 0===X.canLoad?this.loader.loadChildren(P,X):(0,y.of)(null);const We=he.pipe((0,Ce.Z)(Ct=>null===Ct?(0,y.of)(void 0):(X._loadedRoutes=Ct.routes,X._loadedInjector=Ct.injector,this.processRoutes(Ct.injector??P,Ct.routes))));if(X.loadComponent&&!X._loadedComponent){const Ct=this.loader.loadComponent(X);return(0,c.H)([We,Ct]).pipe((0,Ke.U)())}return We})}static \u0275fac=function(X){return new(X||L)(i.KVO(Qr),i.KVO(i.Ql9),i.KVO(i.uvJ),i.KVO(ks),i.KVO(Rr))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Sa=new i.nKC("");let ll=(()=>{class L{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(P,X,he,We,Ct={}){this.urlSerializer=P,this.transitions=X,this.viewportScroller=he,this.zone=We,this.options=Ct,Ct.scrollPositionRestoration||="disabled",Ct.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(P=>{P instanceof et?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=P.navigationTrigger,this.restoredId=P.restoredState?P.restoredState.navigationId:0):P instanceof Oe?(this.lastId=P.id,this.scheduleScrollEvent(P,this.urlSerializer.parse(P.urlAfterRedirects).fragment)):P instanceof un&&P.code===$t.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(P,this.urlSerializer.parse(P.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(P=>{P instanceof yo&&(P.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(P.position):P.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(P.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(P,X){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new yo(P,"popstate"===this.lastSource?this.store[this.restoredId]:null,X))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(X){i.QTQ()};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac})}return L})();function Ml(L,...K){return(0,i.EmA)([{provide:Is,multi:!0,useValue:L},[],{provide:tr,useFactory:cl,deps:[Qr]},{provide:i.iLQ,multi:!0,useFactory:To},K.map(P=>P.\u0275providers)])}function cl(L){return L.routerState.root}function la(L,K){return{\u0275kind:L,\u0275providers:K}}function sc(L={}){return la(4,[{provide:Sa,useFactory:()=>{const P=(0,i.WQX)(me.Xr),X=(0,i.WQX)(i.SKi),he=(0,i.WQX)(de),We=(0,i.WQX)(ot);return new ll(We,he,P,X,L)}}])}function To(){const L=(0,i.WQX)(i.zZn);return K=>{const P=L.get(i.o8S);if(K!==P.components[0])return;const X=L.get(Qr),he=L.get(qa);1===L.get(Ja)&&X.initialNavigation(),L.get(Os,null,i.$GK.Optional)?.setUpPreloading(),L.get(Sa,null,i.$GK.Optional)?.init(),X.resetRootComponentType(P.componentTypes[0]),he.closed||(he.next(),he.complete(),he.unsubscribe())}}const qa=new i.nKC("",{factory:()=>new te.B}),Ja=new i.nKC("",{providedIn:"root",factory:()=>1}),Os=new i.nKC("");function Qs(L){return la(0,[{provide:Os,useExisting:Xs},{provide:ks,useExisting:L}])}function su(L){return la(9,[{provide:Di,useValue:aa},{provide:Bs,useValue:{skipNextTransition:!!L?.skipInitialTransition,...L}}])}const wc=new i.nKC("ROUTER_FORROOT_GUARD"),ca=[me.aZ,{provide:ot,useClass:Tt},Qr,ns,{provide:tr,useFactory:cl,deps:[Qr]},Rr,[]];let ul=(()=>{class L{constructor(P){}static forRoot(P,X){return{ngModule:L,providers:[ca,[],{provide:Is,multi:!0,useValue:P},{provide:wc,useFactory:ua,deps:[[Qr,new i.Xx1,new i.kdw]]},X?.errorHandler?{provide:$,useValue:X.errorHandler}:[],{provide:Po,useValue:X||{}},X?.useHash?{provide:me.hb,useClass:me.fw}:{provide:me.hb,useClass:me.Sm},{provide:Sa,useFactory:()=>{const L=(0,i.WQX)(me.Xr),K=(0,i.WQX)(i.SKi),P=(0,i.WQX)(Po),X=(0,i.WQX)(de),he=(0,i.WQX)(ot);return P.scrollOffset&&L.setOffset(P.scrollOffset),new ll(he,X,L,K,P)}},X?.preloadingStrategy?Qs(X.preloadingStrategy).\u0275providers:[],X?.initialNavigation?dl(X):[],X?.bindToComponentInputs?la(8,[ss,{provide:lo,useExisting:ss}]).\u0275providers:[],X?.enableViewTransitions?su().\u0275providers:[],[{provide:Fu,useFactory:To},{provide:i.iLQ,multi:!0,useExisting:Fu}]]}}static forChild(P){return{ngModule:L,providers:[{provide:Is,multi:!0,useValue:P}]}}static \u0275fac=function(X){return new(X||L)(i.KVO(wc,8))};static \u0275mod=i.$C({type:L});static \u0275inj=i.G2t({})}return L})();function ua(L){return"guarded"}function dl(L){return["disabled"===L.initialNavigation?la(3,[{provide:i.hnV,multi:!0,useFactory:()=>{const K=(0,i.WQX)(Qr);return()=>{K.setUpLocationChangeListener()}}},{provide:Ja,useValue:2}]).\u0275providers:[],"enabledBlocking"===L.initialNavigation?la(2,[{provide:Ja,useValue:0},{provide:i.hnV,multi:!0,deps:[i.zZn],useFactory:K=>{const P=K.get(me.hj,Promise.resolve());return()=>P.then(()=>new Promise(X=>{const he=K.get(Qr),We=K.get(qa);Li(he,()=>{X(!0)}),K.get(de).afterPreactivation=()=>(X(!0),We.closed?(0,y.of)(void 0):We),he.initialNavigation()}))}}]).\u0275providers:[]]}const Fu=new i.nKC("")},5766:(o,s,r)=>{"use strict";r.d(s,{My:()=>Re,aT:()=>le});const xe=Array.from({length:256},(Qe,bt)=>bt.toString(16).padStart(2,"0"));function Re(Qe){!function c(Qe,...bt){if(!function a(Qe){return Qe instanceof Uint8Array||ArrayBuffer.isView(Qe)&&"Uint8Array"===Qe.constructor.name}(Qe))throw new Error("Uint8Array expected");if(bt.length>0&&!bt.includes(Qe.length))throw new Error("Uint8Array expected of length "+bt+", got length="+Qe.length)}(Qe);let bt="";for(let ze=0;ze<Qe.length;ze++)bt+=xe[Qe[ze]];return bt}const Me={_0:48,_9:57,A:65,F:70,a:97,f:102};function Ce(Qe){return Qe>=Me._0&&Qe<=Me._9?Qe-Me._0:Qe>=Me.A&&Qe<=Me.F?Qe-(Me.A-10):Qe>=Me.a&&Qe<=Me.f?Qe-(Me.a-10):void 0}function le(Qe){if("string"!=typeof Qe)throw new Error("hex string expected, got "+typeof Qe);const bt=Qe.length,ze=bt/2;if(bt%2)throw new Error("hex string expected, got unpadded hex of length "+bt);const Fe=new Uint8Array(ze);for(let Ft=0,Ke=0;Ft<ze;Ft++,Ke+=2){const dt=Ce(Qe.charCodeAt(Ke)),Ge=Ce(Qe.charCodeAt(Ke+1));if(void 0===dt||void 0===Ge)throw new Error('hex string expected, got non-hex character "'+(Qe[Ke]+Qe[Ke+1])+'" at index '+Ke);Fe[Ft]=16*dt+Ge}return Fe}},3813:(o,s,r)=>{"use strict";function i(He){if(!Number.isSafeInteger(He))throw new Error(`Wrong integer: ${He}`)}function a(...He){const mt=(Rt,Jt)=>fn=>Rt(Jt(fn));return{encode:Array.from(He).reverse().reduce((Rt,Jt)=>Rt?mt(Rt,Jt.encode):Jt.encode,void 0),decode:He.reduce((Rt,Jt)=>Rt?mt(Rt,Jt.decode):Jt.decode,void 0)}}function c(He){return{encode:mt=>{if(!Array.isArray(mt)||mt.length&&"number"!=typeof mt[0])throw new Error("alphabet.encode input should be an array of numbers");return mt.map(se=>{if(i(se),se<0||se>=He.length)throw new Error(`Digit index outside alphabet: ${se} (alphabet: ${He.length})`);return He[se]})},decode:mt=>{if(!Array.isArray(mt)||mt.length&&"string"!=typeof mt[0])throw new Error("alphabet.decode input should be array of strings");return mt.map(se=>{if("string"!=typeof se)throw new Error(`alphabet.decode: not string element=${se}`);const Ze=He.indexOf(se);if(-1===Ze)throw new Error(`Unknown letter: "${se}". Allowed: ${He}`);return Ze})}}}function y(He=""){if("string"!=typeof He)throw new Error("join separator should be string");return{encode:mt=>{if(!Array.isArray(mt)||mt.length&&"string"!=typeof mt[0])throw new Error("join.encode input should be array of strings");for(let se of mt)if("string"!=typeof se)throw new Error(`join.encode: non-string input=${se}`);return mt.join(He)},decode:mt=>{if("string"!=typeof mt)throw new Error("join.decode input should be string");return mt.split(He)}}}function w(He,mt="="){if(i(He),"string"!=typeof mt)throw new Error("padding chr should be string");return{encode(se){if(!Array.isArray(se)||se.length&&"string"!=typeof se[0])throw new Error("padding.encode input should be array of strings");for(let Ze of se)if("string"!=typeof Ze)throw new Error(`padding.encode: non-string input=${Ze}`);for(;se.length*He%8;)se.push(mt);return se},decode(se){if(!Array.isArray(se)||se.length&&"string"!=typeof se[0])throw new Error("padding.encode input should be array of strings");for(let Rt of se)if("string"!=typeof Rt)throw new Error(`padding.decode: non-string input=${Rt}`);let Ze=se.length;if(Ze*He%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;Ze>0&&se[Ze-1]===mt;Ze--)if(!((Ze-1)*He%8))throw new Error("Invalid padding: string has too much padding");return se.slice(0,Ze)}}}function C(He){if("function"!=typeof He)throw new Error("normalize fn should be function");return{encode:mt=>mt,decode:mt=>He(mt)}}function T(He,mt,se){if(mt<2)throw new Error(`convertRadix: wrong from=${mt}, base cannot be less than 2`);if(se<2)throw new Error(`convertRadix: wrong to=${se}, base cannot be less than 2`);if(!Array.isArray(He))throw new Error("convertRadix: data should be array");if(!He.length)return[];let Ze=0;const Rt=[],Jt=Array.from(He);for(Jt.forEach(fn=>{if(i(fn),fn<0||fn>=mt)throw new Error(`Wrong integer: ${fn}`)});;){let fn=0,Gn=!0;for(let Nt=Ze;Nt<Jt.length;Nt++){const Qt=Jt[Nt],an=mt*fn+Qt;if(!Number.isSafeInteger(an)||mt*fn/mt!==fn||an-Qt!=mt*fn)throw new Error("convertRadix: carry overflow");if(fn=an%se,Jt[Nt]=Math.floor(an/se),!Number.isSafeInteger(Jt[Nt])||Jt[Nt]*se+fn!==an)throw new Error("convertRadix: carry overflow");Gn&&(Jt[Nt]?Gn=!1:Ze=Nt)}if(Rt.push(fn),Gn)break}for(let fn=0;fn<He.length-1&&0===He[fn];fn++)Rt.push(0);return Rt.reverse()}r.d(s,{I:()=>$n,K3:()=>Re,Tq:()=>ht});const S=(He,mt)=>mt?S(mt,He%mt):He,A=(He,mt)=>He+(mt-S(He,mt));function I(He,mt,se,Ze){if(!Array.isArray(He))throw new Error("convertRadix2: data should be array");if(mt<=0||mt>32)throw new Error(`convertRadix2: wrong from=${mt}`);if(se<=0||se>32)throw new Error(`convertRadix2: wrong to=${se}`);if(A(mt,se)>32)throw new Error(`convertRadix2: carry overflow from=${mt} to=${se} carryBits=${A(mt,se)}`);let Rt=0,Jt=0;const fn=2**se-1,Gn=[];for(const Nt of He){if(i(Nt),Nt>=2**mt)throw new Error(`convertRadix2: invalid data word=${Nt} from=${mt}`);if(Rt=Rt<<mt|Nt,Jt+mt>32)throw new Error(`convertRadix2: carry overflow pos=${Jt} from=${mt}`);for(Jt+=mt;Jt>=se;Jt-=se)Gn.push((Rt>>Jt-se&fn)>>>0);Rt&=2**Jt-1}if(Rt=Rt<<se-Jt&fn,!Ze&&Jt>=mt)throw new Error("Excess padding");if(!Ze&&Rt)throw new Error(`Non-zero padding: ${Rt}`);return Ze&&Jt>0&&Gn.push(Rt>>>0),Gn}function G(He,mt=!1){if(i(He),He<=0||He>32)throw new Error("radix2: bits should be in (0..32]");if(A(8,He)>32||A(He,8)>32)throw new Error("radix2: carry overflow");return{encode:se=>{if(!(se instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return I(Array.from(se),8,He,!mt)},decode:se=>{if(!Array.isArray(se)||se.length&&"number"!=typeof se[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(I(se,He,8,mt))}}}function Z(He){if("function"!=typeof He)throw new Error("unsafeWrapper fn should be function");return function(...mt){try{return He.apply(null,mt)}catch{}}}a(G(4),c("0123456789ABCDEF"),y("")),a(G(5),c("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),w(5),y(""));const Re=(a(G(5),c("0123456789ABCDEFGHIJKLMNOPQRSTUV"),w(5),y("")),a(G(5),c("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),y(""),C(He=>He.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),a(G(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),w(6),y(""))),Ce=(a(G(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),w(6),y("")),He=>a(function N(He){return i(He),{encode:mt=>{if(!(mt instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return T(Array.from(mt),256,He)},decode:mt=>{if(!Array.isArray(mt)||mt.length&&"number"!=typeof mt[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(T(mt,He,256))}}}(58),c(He),y(""))),le=Ce("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ht=(Ce("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Ce("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),He=>a(function te(He,mt){if(i(He),"function"!=typeof mt)throw new Error("checksum fn should be function");return{encode(se){if(!(se instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const Ze=mt(se).slice(0,He),Rt=new Uint8Array(se.length+He);return Rt.set(se),Rt.set(Ze,se.length),Rt},decode(se){if(!(se instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const Ze=se.slice(0,-He),Rt=mt(Ze).slice(0,He),Jt=se.slice(-He);for(let fn=0;fn<He;fn++)if(Rt[fn]!==Jt[fn])throw new Error("Invalid checksum");return Ze}}}(4,mt=>He(He(mt))),le)),vt=a(c("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),y("")),at=[996825010,642813549,513874426,1027748829,705979059];function Xt(He){const mt=He>>25;let se=(33554431&He)<<5;for(let Ze=0;Ze<at.length;Ze++)1==(mt>>Ze&1)&&(se^=at[Ze]);return se}function ln(He,mt,se=1){const Ze=He.length;let Rt=1;for(let Jt=0;Jt<Ze;Jt++){const fn=He.charCodeAt(Jt);if(fn<33||fn>126)throw new Error(`Invalid prefix (${He})`);Rt=Xt(Rt)^fn>>5}Rt=Xt(Rt);for(let Jt=0;Jt<Ze;Jt++)Rt=Xt(Rt)^31&He.charCodeAt(Jt);for(let Jt of mt)Rt=Xt(Rt)^Jt;for(let Jt=0;Jt<6;Jt++)Rt=Xt(Rt);return Rt^=se,vt.encode(I([Rt%2**30],30,5,!1))}function yn(He){const mt="bech32"===He?1:734539939,se=G(5),Ze=se.decode,Rt=se.encode,Jt=Z(Ze);function Gn(an,Xn=90){if("string"!=typeof an)throw new Error("bech32.decode input should be string, not "+typeof an);if(an.length<8||!1!==Xn&&an.length>Xn)throw new TypeError(`Wrong string length: ${an.length} (${an}). Expected (8..${Xn})`);const En=an.toLowerCase();if(an!==En&&an!==an.toUpperCase())throw new Error("String must be lowercase or uppercase");const Gt=(an=En).lastIndexOf("1");if(0===Gt||-1===Gt)throw new Error('Letter "1" must be present between prefix and data only');const At=an.slice(0,Gt),Kt=an.slice(Gt+1);if(Kt.length<6)throw new Error("Data must be at least 6 characters long");const xn=vt.decode(Kt).slice(0,-6),Yn=ln(At,xn,mt);if(!Kt.endsWith(Yn))throw new Error(`Invalid checksum in ${an}: expected "${Yn}"`);return{prefix:At,words:xn}}return{encode:function fn(an,Xn,En=90){if("string"!=typeof an)throw new Error("bech32.encode prefix should be string, not "+typeof an);if(!Array.isArray(Xn)||Xn.length&&"number"!=typeof Xn[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Xn);const Gt=an.length+7+Xn.length;if(!1!==En&&Gt>En)throw new TypeError(`Length ${Gt} exceeds limit ${En}`);return`${an=an.toLowerCase()}1${vt.encode(Xn)}${ln(an,Xn,mt)}`},decode:Gn,decodeToBytes:function Qt(an){const{prefix:Xn,words:En}=Gn(an,!1);return{prefix:Xn,words:En,bytes:Ze(En)}},decodeUnsafe:Z(Gn),fromWords:Ze,fromWordsUnsafe:Jt,toWords:Rt}}const $n=yn("bech32");yn("bech32m"),a(G(4),c("0123456789abcdef"),y(""),C(He=>{if("string"!=typeof He||He.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof He} with length ${He.length}`);return He.toLowerCase()}))},6568:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(4713),a=r(1860);const y=(0,i.A)(a.A,"Map")},7730:(o,s,r)=>{"use strict";r.d(s,{A:()=>it});var c=r(1319);const w=function y(ot,Tt){for(var In=ot.length;In--;)if((0,c.A)(ot[In][0],Tt))return In;return-1};var T=Array.prototype.splice;function me(ot){var Tt=-1,In=null==ot?0:ot.length;for(this.clear();++Tt<In;){var Vt=ot[Tt];this.set(Vt[0],Vt[1])}}me.prototype.clear=function i(){this.__data__=[],this.size=0},me.prototype.delete=function S(ot){var Tt=this.__data__,In=w(Tt,ot);return!(In<0||(In==Tt.length-1?Tt.pop():T.call(Tt,In,1),--this.size,0))},me.prototype.get=function I(ot){var Tt=this.__data__,In=w(Tt,ot);return In<0?void 0:Tt[In][1]},me.prototype.has=function G(ot){return w(this.__data__,ot)>-1},me.prototype.set=function te(ot,Tt){var In=this.__data__,Vt=w(In,ot);return Vt<0?(++this.size,In.push([ot,Tt])):In[Vt][1]=Tt,this};const pe=me;var $e=r(6568);const vt=(0,r(4713).A)(Object,"create");var Qe=Object.prototype.hasOwnProperty;var Ft=Object.prototype.hasOwnProperty;function se(ot){var Tt=-1,In=null==ot?0:ot.length;for(this.clear();++Tt<In;){var Vt=ot[Tt];this.set(Vt[0],Vt[1])}}se.prototype.clear=function at(){this.__data__=vt?vt(null):{},this.size=0},se.prototype.delete=function ln(ot){var Tt=this.has(ot)&&delete this.__data__[ot];return this.size-=Tt?1:0,Tt},se.prototype.get=function bt(ot){var Tt=this.__data__;if(vt){var In=Tt[ot];return"__lodash_hash_undefined__"===In?void 0:In}return Qe.call(Tt,ot)?Tt[ot]:void 0},se.prototype.has=function Ke(ot){var Tt=this.__data__;return vt?void 0!==Tt[ot]:Ft.call(Tt,ot)},se.prototype.set=function He(ot,Tt){var In=this.__data__;return this.size+=this.has(ot)?0:1,In[ot]=vt&&void 0===Tt?"__lodash_hash_undefined__":Tt,this};const Ze=se,Qt=function Nt(ot,Tt){var In=ot.__data__;return function fn(ot){var Tt=typeof ot;return"string"==Tt||"number"==Tt||"symbol"==Tt||"boolean"==Tt?"__proto__"!==ot:null===ot}(Tt)?In["string"==typeof Tt?"string":"hash"]:In.map};function tt(ot){var Tt=-1,In=null==ot?0:ot.length;for(this.clear();++Tt<In;){var Vt=ot[Tt];this.set(Vt[0],Vt[1])}}tt.prototype.clear=function Rt(){this.size=0,this.__data__={hash:new Ze,map:new($e.A||pe),string:new Ze}},tt.prototype.delete=function an(ot){var Tt=Qt(this,ot).delete(ot);return this.size-=Tt?1:0,Tt},tt.prototype.get=function En(ot){return Qt(this,ot).get(ot)},tt.prototype.has=function At(ot){return Qt(this,ot).has(ot)},tt.prototype.set=function xn(ot,Tt){var In=Qt(this,ot),Vt=In.size;return In.set(ot,Tt),this.size+=In.size==Vt?0:1,this};const ke=tt;function De(ot){var Tt=this.__data__=new pe(ot);this.size=Tt.size}De.prototype.clear=function Te(){this.__data__=new pe,this.size=0},De.prototype.delete=function Re(ot){var Tt=this.__data__,In=Tt.delete(ot);return this.size=Tt.size,In},De.prototype.get=function Ce(ot){return this.__data__.get(ot)},De.prototype.has=function ae(ot){return this.__data__.has(ot)},De.prototype.set=function k(ot,Tt){var In=this.__data__;if(In instanceof pe){var Vt=In.__data__;if(!$e.A||Vt.length<199)return Vt.push([ot,Tt]),this.size=++In.size,this;In=this.__data__=new ke(Vt)}return In.set(ot,Tt),this.size=In.size,this};const it=De},6944:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=r(1860).A.Symbol},6726:(o,s,r)=>{"use strict";r.d(s,{A:()=>N});var c=r(6513),y=r(3744),w=r(9377),C=r(8606),T=r(8885),A=Object.prototype.hasOwnProperty;const N=function I(G,Z){var te=(0,y.A)(G),be=!te&&(0,c.A)(G),me=!te&&!be&&(0,w.A)(G),pe=!te&&!be&&!me&&(0,T.A)(G),Te=te||be||me||pe,xe=Te?function i(G,Z){for(var te=-1,be=Array(G);++te<G;)be[te]=Z(te);return be}(G.length,String):[],Re=xe.length;for(var Me in G)(Z||A.call(G,Me))&&(!Te||!("length"==Me||me&&("offset"==Me||"parent"==Me)||pe&&("buffer"==Me||"byteLength"==Me||"byteOffset"==Me)||(0,C.A)(Me,Re)))&&xe.push(Me);return xe}},1984:(o,s,r)=>{"use strict";r.d(s,{A:()=>C});var i=r(1827),a=r(1319),y=Object.prototype.hasOwnProperty;const C=function w(T,S,A){var I=T[S];(!y.call(T,S)||!(0,a.A)(I,A)||void 0===A&&!(S in T))&&(0,i.A)(T,S,A)}},1827:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(4746);const c=function a(y,w,C){"__proto__"==w&&i.A?(0,i.A)(y,w,{configurable:!0,enumerable:!0,value:C,writable:!0}):y[w]=C}},5281:(o,s,r)=>{"use strict";r.d(s,{A:()=>me});var i=r(6944),a=Object.prototype,c=a.hasOwnProperty,y=a.toString,w=i.A?i.A.toStringTag:void 0;var A=Object.prototype.toString;var te=i.A?i.A.toStringTag:void 0;const me=function be(pe){return null==pe?void 0===pe?"[object Undefined]":"[object Null]":te&&te in Object(pe)?function C(pe){var Te=c.call(pe,w),xe=pe[w];try{pe[w]=void 0;var Re=!0}catch{}var Me=y.call(pe);return Re&&(Te?pe[w]=xe:delete pe[w]),Me}(pe):function I(pe){return A.call(pe)}(pe)}},778:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return function(y){return c(y)}}},9750:(o,s,r)=>{"use strict";r.d(s,{A:()=>w});const c=r(1860).A.Uint8Array,w=function y(C){var T=new C.constructor(C.byteLength);return new c(T).set(new c(C)),T}},9933:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(1860),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a?i.A.Buffer:void 0,C=w?w.allocUnsafe:void 0;const S=function T(A,I){if(I)return A.slice();var N=A.length,G=C?C(N):new A.constructor(N);return A.copy(G),G}},4314:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(9750);const c=function a(y,w){var C=w?(0,i.A)(y.buffer):y.buffer;return new y.constructor(C,y.byteOffset,y.length)}},4528:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){var w=-1,C=c.length;for(y||(y=Array(C));++w<C;)y[w]=c[w];return y}},7517:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(1984),a=r(1827);const y=function c(w,C,T,S){var A=!T;T||(T={});for(var I=-1,N=C.length;++I<N;){var G=C[I],Z=S?S(T[G],w[G],G,T,w):void 0;void 0===Z&&(Z=w[G]),A?(0,a.A)(T,G,Z):(0,i.A)(T,G,Z)}return T}},4746:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(4713);const c=function(){try{var y=(0,i.A)(Object,"defineProperty");return y({},"",{}),y}catch{}}()},7133:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a="object"==typeof global&&global&&global.Object===Object&&global},4713:(o,s,r)=>{"use strict";r.d(s,{A:()=>Ce});var le,i=r(129),c=r(1860).A["__core-js_shared__"],w=(le=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var S=r(554),A=r(8736),N=/^\[object .+?Constructor\]$/,me=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function pe(le){return!(!(0,S.A)(le)||function C(le){return!!w&&w in le}(le))&&((0,i.A)(le)?me:N).test((0,A.A)(le))},Ce=function Me(le,ae){var Ie=function xe(le,ae){return le?.[ae]}(le,ae);return Te(Ie)?Ie:void 0}},8010:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=(0,r(8992).A)(Object.getPrototypeOf,Object)},923:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(554),a=Object.create;const y=function(){function A(){}return function(I){if(!(0,i.A)(I))return{};if(a)return a(I);A.prototype=I;var N=new A;return A.prototype=void 0,N}}();var w=r(8010),C=r(5776);const S=function T(A){return"function"!=typeof A.constructor||(0,C.A)(A)?{}:y((0,w.A)(A))}},8606:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var a=/^(?:0|[1-9]\d*)$/;const y=function c(w,C){var T=typeof w;return!!(C=C??9007199254740991)&&("number"==T||"symbol"!=T&&a.test(w))&&w>-1&&w%1==0&&w<C}},5776:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=Object.prototype;const c=function a(y){var w=y&&y.constructor;return y===("function"==typeof w&&w.prototype||i)}},3340:(o,s,r)=>{"use strict";r.d(s,{A:()=>T});var i=r(7133),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a&&i.A.process;const T=function(){try{return c&&c.require&&c.require("util").types||w&&w.binding&&w.binding("util")}catch{}}()},8992:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return function(w){return c(y(w))}}},1860:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(7133),a="object"==typeof self&&self&&self.Object===Object&&self;const y=i.A||a||Function("return this")()},8736:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var a=Function.prototype.toString;const y=function c(w){if(null!=w){try{return a.call(w)}catch{}try{return w+""}catch{}}return""}},1319:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return c===y||c!=c&&y!=y}},7680:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){for(var y=-1,w=null==c?0:c.length,C={};++y<w;){var T=c[y];C[T[0]]=T[1]}return C}},6513:(o,s,r)=>{"use strict";r.d(s,{A:()=>I});var i=r(5281),a=r(2661);const w=function y(N){return(0,a.A)(N)&&"[object Arguments]"==(0,i.A)(N)};var C=Object.prototype,T=C.hasOwnProperty,S=C.propertyIsEnumerable;const I=w(function(){return arguments}())?w:function(N){return(0,a.A)(N)&&T.call(N,"callee")&&!S.call(N,"callee")}},3744:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=Array.isArray},1287:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(129),a=r(5481);const y=function c(w){return null!=w&&(0,a.A)(w.length)&&!(0,i.A)(w)}},9377:(o,s,r)=>{"use strict";r.d(s,{A:()=>I});var i=r(1860),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=y&&"object"==typeof module&&module&&!module.nodeType&&module,T=w&&w.exports===y?i.A.Buffer:void 0;const I=(T?T.isBuffer:void 0)||function a(){return!1}},129:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(5281),a=r(554);const S=function T(A){if(!(0,a.A)(A))return!1;var I=(0,i.A)(A);return"[object Function]"==I||"[object GeneratorFunction]"==I||"[object AsyncFunction]"==I||"[object Proxy]"==I}},5481:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=function a(y){return"number"==typeof y&&y>-1&&y%1==0&&y<=9007199254740991}},554:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){var y=typeof c;return null!=c&&("object"==y||"function"==y)}},2661:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return null!=c&&"object"==typeof c}},8885:(o,s,r)=>{"use strict";r.d(s,{A:()=>bn});var i=r(5281),a=r(5481),c=r(2661),ht={};ht["[object Float32Array]"]=ht["[object Float64Array]"]=ht["[object Int8Array]"]=ht["[object Int16Array]"]=ht["[object Int32Array]"]=ht["[object Uint8Array]"]=ht["[object Uint8ClampedArray]"]=ht["[object Uint16Array]"]=ht["[object Uint32Array]"]=!0,ht["[object Arguments]"]=ht["[object Array]"]=ht["[object ArrayBuffer]"]=ht["[object Boolean]"]=ht["[object DataView]"]=ht["[object Date]"]=ht["[object Error]"]=ht["[object Function]"]=ht["[object Map]"]=ht["[object Number]"]=ht["[object Object]"]=ht["[object RegExp]"]=ht["[object Set]"]=ht["[object String]"]=ht["[object WeakMap]"]=!1;var Xt=r(778),ln=r(3340),yn=ln.A&&ln.A.isTypedArray;const bn=yn?(0,Xt.A)(yn):function vt(Qe){return(0,c.A)(Qe)&&(0,a.A)(Qe.length)&&!!ht[(0,i.A)(Qe)]}},133:(o,s,r)=>{"use strict";r.d(s,{A:()=>G});var i=r(6726),a=r(554),c=r(5776);var T=Object.prototype.hasOwnProperty;const A=function S(Z){if(!(0,a.A)(Z))return function y(Z){var te=[];if(null!=Z)for(var be in Object(Z))te.push(be);return te}(Z);var te=(0,c.A)(Z),be=[];for(var me in Z)"constructor"==me&&(te||!T.call(Z,me))||be.push(me);return be};var I=r(1287);const G=function N(Z){return(0,I.A)(Z)?(0,i.A)(Z,!0):A(Z)}},2401:(o,s,r)=>{"use strict";r.d(s,{A:()=>In});var i=r(7730),a=r(1827),c=r(1319);const w=function y(Vt,dn,Pn){(void 0!==Pn&&!(0,c.A)(Vt[dn],Pn)||void 0===Pn&&!(dn in Vt))&&(0,a.A)(Vt,dn,Pn)},A=function C(Vt){return function(dn,Pn,Fn){for(var Bn=-1,cr=Object(dn),Jr=Fn(dn),Xr=Jr.length;Xr--;){var _t=Jr[Vt?Xr:++Bn];if(!1===Pn(cr[_t],_t,cr))break}return dn}}();var I=r(9933),N=r(4314),G=r(4528),Z=r(923),te=r(6513),be=r(3744),me=r(1287),pe=r(2661);var Re=r(9377),Me=r(129),Ce=r(554),le=r(5281),ae=r(8010),ht=Function.prototype.toString,vt=Object.prototype.hasOwnProperty,at=ht.call(Object);var yn=r(8885);const bn=function $n(Vt,dn){if(("constructor"!==dn||"function"!=typeof Vt[dn])&&"__proto__"!=dn)return Vt[dn]};var Qe=r(7517),bt=r(133);const Ke=function Ft(Vt,dn,Pn,Fn,Bn,cr,Jr){var Xr=bn(Vt,Pn),_t=bn(dn,Pn),Bt=Jr.get(_t);if(Bt)w(Vt,Pn,Bt);else{var Ee=cr?cr(Xr,_t,Pn+"",Vt,dn,Jr):void 0,lt=void 0===Ee;if(lt){var Pe=(0,be.A)(_t),kt=!Pe&&(0,Re.A)(_t),ft=!Pe&&!kt&&(0,yn.A)(_t);Ee=_t,Pe||kt||ft?(0,be.A)(Xr)?Ee=Xr:function Te(Vt){return(0,pe.A)(Vt)&&(0,me.A)(Vt)}(Xr)?Ee=(0,G.A)(Xr):kt?(lt=!1,Ee=(0,I.A)(_t,!0)):ft?(lt=!1,Ee=(0,N.A)(_t,!0)):Ee=[]:function Xt(Vt){if(!(0,pe.A)(Vt)||"[object Object]"!=(0,le.A)(Vt))return!1;var dn=(0,ae.A)(Vt);if(null===dn)return!0;var Pn=vt.call(dn,"constructor")&&dn.constructor;return"function"==typeof Pn&&Pn instanceof Pn&&ht.call(Pn)==at}(_t)||(0,te.A)(_t)?(Ee=Xr,(0,te.A)(Xr)?Ee=function ze(Vt){return(0,Qe.A)(Vt,(0,bt.A)(Vt))}(Xr):(!(0,Ce.A)(Xr)||(0,Me.A)(Xr))&&(Ee=(0,Z.A)(_t))):lt=!1}lt&&(Jr.set(_t,Ee),Bn(Ee,_t,Fn,cr,Jr),Jr.delete(_t)),w(Vt,Pn,Ee)}},Ge=function dt(Vt,dn,Pn,Fn,Bn){Vt!==dn&&A(dn,function(cr,Jr){if(Bn||(Bn=new i.A),(0,Ce.A)(cr))Ke(Vt,dn,Jr,Pn,dt,Fn,Bn);else{var Xr=Fn?Fn(bn(Vt,Jr),cr,Jr+"",Vt,dn,Bn):void 0;void 0===Xr&&(Xr=cr),w(Vt,Jr,Xr)}},bt.A)},mt=function He(Vt){return Vt};var Rt=Math.max;const Nt=function Gn(Vt){return function(){return Vt}};var Qt=r(4746),At=Date.now;const tt=function Kt(Vt){var dn=0,Pn=0;return function(){var Fn=At(),Bn=16-(Fn-Pn);if(Pn=Fn,Bn>0){if(++dn>=800)return arguments[0]}else dn=0;return Vt.apply(void 0,arguments)}}(Qt.A?function(Vt,dn){return(0,Qt.A)(Vt,"toString",{configurable:!0,enumerable:!1,value:Nt(dn),writable:!0})}:mt),B=function ke(Vt,dn){return tt(function Jt(Vt,dn,Pn){return dn=Rt(void 0===dn?Vt.length-1:dn,0),function(){for(var Fn=arguments,Bn=-1,cr=Rt(Fn.length-dn,0),Jr=Array(cr);++Bn<cr;)Jr[Bn]=Fn[dn+Bn];Bn=-1;for(var Xr=Array(dn+1);++Bn<dn;)Xr[Bn]=Fn[Bn];return Xr[dn]=Pn(Jr),function se(Vt,dn,Pn){switch(Pn.length){case 0:return Vt.call(dn);case 1:return Vt.call(dn,Pn[0]);case 2:return Vt.call(dn,Pn[0],Pn[1]);case 3:return Vt.call(dn,Pn[0],Pn[1],Pn[2])}return Vt.apply(dn,Pn)}(Vt,this,Xr)}}(Vt,dn,mt),Vt+"")};var k=r(8606);const In=function it(Vt){return B(function(dn,Pn){var Fn=-1,Bn=Pn.length,cr=Bn>1?Pn[Bn-1]:void 0,Jr=Bn>2?Pn[2]:void 0;for(cr=Vt.length>3&&"function"==typeof cr?(Bn--,cr):void 0,Jr&&function j(Vt,dn,Pn){if(!(0,Ce.A)(Pn))return!1;var Fn=typeof dn;return!!("number"==Fn?(0,me.A)(Pn)&&(0,k.A)(dn,Pn.length):"string"==Fn&&dn in Pn)&&(0,c.A)(Pn[dn],Vt)}(Pn[0],Pn[1],Jr)&&(cr=Bn<3?void 0:cr,Bn=1),dn=Object(dn);++Fn<Bn;){var Xr=Pn[Fn];Xr&&Vt(dn,Xr,Fn,cr)}return dn})}(function(Vt,dn,Pn){Ge(Vt,dn,Pn)})},5373:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ts:()=>init,ql:()=>launch});var _home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(467),_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6218),_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(600),BUILD={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},__defProp$1=Object.defineProperty,__export$1=(o,s)=>{for(var r in s)__defProp$1(o,r,{get:s[r],enumerable:!0})},hostRefs=new WeakMap,getHostRef=o=>hostRefs.get(o),registerHost=(o,s)=>hostRefs.set(o,{$flags$:0,$hostElement$:o,$cmpMeta$:s,$instanceValues$:new Map}),isMemberInElement=(o,s)=>s in o,consoleError=(o,s)=>(0,console.error)(o,s),styles=new Map,modeResolutionChain=[],SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",win=typeof window<"u"?window:{},doc=win.document||{head:{}},H=win.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,s,r,i)=>o.addEventListener(s,r,i),rel:(o,s,r,i)=>o.removeEventListener(s,r,i),ce:(o,s)=>new CustomEvent(o,s)},supportsListenerOptions=(()=>{let o=!1;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){o=!0}}))}catch{}return o})(),promiseResolve=o=>Promise.resolve(o),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),queuePending=!1,queueDomReads=[],queueDomWrites=[],queueTask=(o,s)=>r=>{o.push(r),queuePending||(queuePending=!0,s&&4&plt.$flags$?nextTick(flush):plt.raf(flush))},consume=o=>{for(let s=0;s<o.length;s++)try{o[s](performance.now())}catch(r){consoleError(r)}o.length=0},flush=()=>{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=o=>promiseResolve().then(o),writeTask=queueTask(queueDomWrites,!0),EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=o=>null!=o,isComplexType=o=>"object"==(o=typeof o)||"function"===o;function queryNonceMetaTagContent(o){var s,r,i;return null!=(i=null==(r=null==(s=o.head)?void 0:s.querySelector('meta[name="csp-nonce"]'))?void 0:r.getAttribute("content"))?i:void 0}var result_exports={};__export$1(result_exports,{err:()=>err,map:()=>map,ok:()=>ok,unwrap:()=>unwrap$1,unwrapErr:()=>unwrapErr});var ok=o=>({isOk:!0,isErr:!1,value:o}),err=o=>({isOk:!1,isErr:!0,value:o});function map(o,s){if(o.isOk){const r=s(o.value);return r instanceof Promise?r.then(i=>ok(i)):ok(r)}if(o.isErr)return err(o.value);throw"should never get here"}var unwrap$1=o=>{if(o.isOk)return o.value;throw o.value},unwrapErr=o=>{if(o.isErr)return o.value;throw o.value},createTime=(o,s="")=>()=>{},h=(o,s,...r)=>{let i=null,a=null,c=null,y=!1,w=!1;const C=[],T=A=>{for(let I=0;I<A.length;I++)i=A[I],Array.isArray(i)?T(i):null!=i&&"boolean"!=typeof i&&((y="function"!=typeof o&&!isComplexType(i))&&(i=String(i)),y&&w?C[C.length-1].$text$+=i:C.push(y?newVNode(null,i):i),w=y)};if(T(r),s){s.key&&(a=s.key),s.name&&(c=s.name);{const A=s.className||s.class;A&&(s.class="object"!=typeof A?A:Object.keys(A).filter(I=>A[I]).join(" "))}}if("function"==typeof o)return o(null===s?{}:s,C,vdomFnUtils);const S=newVNode(o,null);return S.$attrs$=s,C.length>0&&(S.$children$=C),S.$key$=a,S.$name$=c,S},newVNode=(o,s)=>({$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=o=>o&&o.$tag$===Host,vdomFnUtils={forEach:(o,s)=>o.map(convertToPublic).forEach(s),map:(o,s)=>o.map(convertToPublic).map(s).map(convertToPrivate)},convertToPublic=o=>({vattrs:o.$attrs$,vchildren:o.$children$,vkey:o.$key$,vname:o.$name$,vtag:o.$tag$,vtext:o.$text$}),convertToPrivate=o=>{if("function"==typeof o.vtag){const r={...o.vattrs};return o.vkey&&(r.key=o.vkey),o.vname&&(r.name=o.vname),h(o.vtag,r,...o.vchildren||[])}const s=newVNode(o.vtag,o.vtext);return s.$attrs$=o.vattrs,s.$children$=o.vchildren,s.$key$=o.vkey,s.$name$=o.vname,s},computeMode=o=>modeResolutionChain.map(s=>s(o)).find(s=>!!s),parsePropertyValue=(o,s)=>null==o||isComplexType(o)?o:4&s?"false"!==o&&(""===o||!!o):2&s?parseFloat(o):1&s?String(o):o,getElement=o=>o,createEvent=(o,s,r)=>{const i=getElement(o);return{emit:a=>emitEvent(i,s,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:a})}},emitEvent=(o,s,r)=>{const i=plt.ce(s,r);return o.dispatchEvent(i),i},rootAppliedStyles=new WeakMap,registerStyle=(o,s,r)=>{let i=styles.get(o);supportsConstructableStylesheets&&r?(i=i||new CSSStyleSheet,"string"==typeof i?i=s:i.replaceSync(s)):i=s,styles.set(o,i)},addStyle=(o,s,r)=>{var i;const a=getScopeId(s,r),c=styles.get(a);if(o=11===o.nodeType?o:doc,c)if("string"==typeof c){let y,w=rootAppliedStyles.get(o=o.head||o);if(w||rootAppliedStyles.set(o,w=new Set),!w.has(a)){{y=doc.createElement("style"),y.innerHTML=c;const C=null!=(i=plt.$nonce$)?i:queryNonceMetaTagContent(doc);null!=C&&y.setAttribute("nonce",C),(!(1&s.$flags$)||1&s.$flags$&&"HEAD"!==o.nodeName)&&o.insertBefore(y,o.querySelector("link"))}4&s.$flags$&&(y.innerHTML+=SLOT_FB_CSS),w&&w.add(a)}}else o.adoptedStyleSheets.includes(c)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,c]);return a},attachStyles=o=>{const s=o.$cmpMeta$,r=o.$hostElement$,i=s.$flags$,a=createTime("attachStyles",s.$tagName$),c=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),s,o.$modeName$);10&i&&2&i&&(r["s-sc"]=c,r.classList.add(c+"-h"),2&i&&r.classList.add(c+"-s")),a()},getScopeId=(o,s)=>"sc-"+(s&&32&o.$flags$?o.$tagName$+"-"+s:o.$tagName$),setAccessor=(o,s,r,i,a,c)=>{if(r!==i){let y=isMemberInElement(o,s),w=s.toLowerCase();if("class"===s){const C=o.classList,T=parseClassList(r),S=parseClassList(i);C.remove(...T.filter(A=>A&&!S.includes(A))),C.add(...S.filter(A=>A&&!T.includes(A)))}else if("style"===s){for(const C in r)i&&null!=i[C]||(C.includes("-")?o.style.removeProperty(C):o.style[C]="");for(const C in i)r&&i[C]===r[C]||(C.includes("-")?o.style.setProperty(C,i[C]):o.style[C]=i[C])}else if("key"!==s)if("ref"===s)i&&i(o);else if(o.__lookupSetter__(s)||"o"!==s[0]||"n"!==s[1]){const C=isComplexType(i);if((y||C&&null!==i)&&!a)try{if(o.tagName.includes("-"))o[s]=i;else{const S=i??"";"list"===s?y=!1:null!=r&&o[s]==S||(o[s]=S)}}catch{}let T=!1;w!==(w=w.replace(/^xlink\:?/,""))&&(s=w,T=!0),null==i||!1===i?!1===i&&""!==o.getAttribute(s)||(T?o.removeAttributeNS(XLINK_NS,s):o.removeAttribute(s)):(!y||4&c||a)&&!C&&(i=!0===i?"":i,T?o.setAttributeNS(XLINK_NS,s,i):o.setAttribute(s,i))}else if(s="-"===s[2]?s.slice(3):isMemberInElement(win,w)?w.slice(2):w[2]+s.slice(3),r||i){const C=s.endsWith(CAPTURE_EVENT_SUFFIX);s=s.replace(CAPTURE_EVENT_REGEX,""),r&&plt.rel(o,s,r,C),i&&plt.ael(o,s,i,C)}}},parseClassListRegex=/\s/,parseClassList=o=>o?o.split(parseClassListRegex):[],CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(o,s,r)=>{const i=11===s.$elm$.nodeType&&s.$elm$.host?s.$elm$.host:s.$elm$,a=o&&o.$attrs$||EMPTY_OBJ,c=s.$attrs$||EMPTY_OBJ;for(const y of sortedAttrNames(Object.keys(a)))y in c||setAccessor(i,y,a[y],void 0,r,s.$flags$);for(const y of sortedAttrNames(Object.keys(c)))setAccessor(i,y,a[y],c[y],r,s.$flags$)},scopeId,contentRef,hostTagName;function sortedAttrNames(o){return o.includes("ref")?[...o.filter(s=>"ref"!==s),"ref"]:o}var useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,createElm=(o,s,r,i)=>{var a;const c=s.$children$[r];let y,w,C,T=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===c.$tag$&&(scopeId&&i.classList.add(scopeId+"-s"),c.$flags$|=c.$children$?2:1)),null!==c.$text$)y=c.$elm$=doc.createTextNode(c.$text$);else if(1&c.$flags$)y=c.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode="svg"===c.$tag$),y=c.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&2&c.$flags$?"slot-fb":c.$tag$),isSvgMode&&"foreignObject"===c.$tag$&&(isSvgMode=!1),updateElement(null,c,isSvgMode),y.getRootNode().querySelector("body")&&BUILD.scoped&&isDef(scopeId)&&y["s-si"]!==scopeId&&y.classList.add(y["s-si"]=scopeId),updateElementScopeIds(y,i),c.$children$)for(T=0;T<c.$children$.length;++T)w=createElm(o,c,T,y),w&&y.appendChild(w);"svg"===c.$tag$?isSvgMode=!1:"foreignObject"===y.tagName&&(isSvgMode=!0)}return y["s-hn"]=hostTagName,3&c.$flags$&&(y["s-sr"]=!0,y["s-cr"]=contentRef,y["s-sn"]=c.$name$||"",y["s-rf"]=null==(a=c.$attrs$)?void 0:a.ref,C=o&&o.$children$&&o.$children$[r],C&&C.$tag$===c.$tag$&&o.$elm$&&putBackInOriginalLocation(o.$elm$,!1)),y},putBackInOriginalLocation=(o,s)=>{plt.$flags$|=1;const r=Array.from(o.childNodes);if(o["s-sr"]&&BUILD.experimentalSlotFixes){let i=o;for(;i=i.nextSibling;)i&&i["s-sn"]===o["s-sn"]&&i["s-sh"]===hostTagName&&r.push(i)}for(let i=r.length-1;i>=0;i--){const a=r[i];a["s-hn"]!==hostTagName&&a["s-ol"]&&(insertBefore(parentReferenceNode(a),a,referenceNode(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,checkSlotRelocate=!0),s&&putBackInOriginalLocation(a,s)}plt.$flags$&=-2},addVnodes=(o,s,r,i,a,c)=>{let y,w=o["s-cr"]&&o["s-cr"].parentNode||o;for(w.shadowRoot&&w.tagName===hostTagName&&(w=w.shadowRoot);a<=c;++a)i[a]&&(y=createElm(null,r,a,o),y&&(i[a].$elm$=y,insertBefore(w,y,referenceNode(s))))},removeVnodes=(o,s,r)=>{for(let i=s;i<=r;++i){const a=o[i];if(a){const c=a.$elm$;nullifyVNodeRefs(a),c&&(checkSlotFallbackVisibility=!0,c["s-ol"]?c["s-ol"].remove():putBackInOriginalLocation(c,!0),c.remove())}}},updateChildren=(o,s,r,i,a=!1)=>{let c,y,w=0,C=0,T=0,S=0,A=s.length-1,I=s[0],N=s[A],G=i.length-1,Z=i[0],te=i[G];for(;w<=A&&C<=G;)if(null==I)I=s[++w];else if(null==N)N=s[--A];else if(null==Z)Z=i[++C];else if(null==te)te=i[--G];else if(isSameVnode(I,Z,a))patch(I,Z,a),I=s[++w],Z=i[++C];else if(isSameVnode(N,te,a))patch(N,te,a),N=s[--A],te=i[--G];else if(isSameVnode(I,te,a))"slot"!==I.$tag$&&"slot"!==te.$tag$||putBackInOriginalLocation(I.$elm$.parentNode,!1),patch(I,te,a),insertBefore(o,I.$elm$,N.$elm$.nextSibling),I=s[++w],te=i[--G];else if(isSameVnode(N,Z,a))"slot"!==I.$tag$&&"slot"!==te.$tag$||putBackInOriginalLocation(N.$elm$.parentNode,!1),patch(N,Z,a),insertBefore(o,N.$elm$,I.$elm$),N=s[--A],Z=i[++C];else{for(T=-1,S=w;S<=A;++S)if(s[S]&&null!==s[S].$key$&&s[S].$key$===Z.$key$){T=S;break}T>=0?(y=s[T],y.$tag$!==Z.$tag$?c=createElm(s&&s[C],r,T,o):(patch(y,Z,a),s[T]=void 0,c=y.$elm$),Z=i[++C]):(c=createElm(s&&s[C],r,C,o),Z=i[++C]),c&&insertBefore(parentReferenceNode(I.$elm$),c,referenceNode(I.$elm$))}w>A?addVnodes(o,null==i[G+1]?null:i[G+1].$elm$,r,i,C,G):C>G&&removeVnodes(s,w,A)},isSameVnode=(o,s,r=!1)=>!(o.$tag$!==s.$tag$||("slot"===o.$tag$?"$nodeId$"in o&&r&&8!==o.$elm$.nodeType||o.$name$!==s.$name$:!r&&o.$key$!==s.$key$)),referenceNode=o=>o&&o["s-ol"]||o,parentReferenceNode=o=>(o["s-ol"]?o["s-ol"]:o).parentNode,patch=(o,s,r=!1)=>{const i=s.$elm$=o.$elm$,a=o.$children$,c=s.$children$,y=s.$tag$,w=s.$text$;let C;null===w?(isSvgMode="svg"===y||"foreignObject"!==y&&isSvgMode,("slot"!==y||useNativeShadowDom)&&updateElement(o,s,isSvgMode),null!==a&&null!==c?updateChildren(i,a,s,c,r):null!==c?(null!==o.$text$&&(i.textContent=""),addVnodes(i,null,s,c,0,c.length-1)):!r&&BUILD.updatable&&null!==a&&removeVnodes(a,0,a.length-1),isSvgMode&&"svg"===y&&(isSvgMode=!1)):(C=i["s-cr"])?C.parentNode.textContent=w:o.$text$!==w&&(i.data=w)},updateFallbackSlotVisibility=o=>{const s=o.childNodes;for(const r of s)if(1===r.nodeType){if(r["s-sr"]){const i=r["s-sn"];r.hidden=!1;for(const a of s)if(a!==r)if(a["s-hn"]!==r["s-hn"]||""!==i){if(1===a.nodeType&&(i===a.getAttribute("slot")||i===a["s-sn"])||3===a.nodeType&&i===a["s-sn"]){r.hidden=!0;break}}else if(1===a.nodeType||3===a.nodeType&&""!==a.textContent.trim()){r.hidden=!0;break}}updateFallbackSlotVisibility(r)}},relocateNodes=[],markSlotContentForRelocation=o=>{let s,r,i;for(const a of o.childNodes){if(a["s-sr"]&&(s=a["s-cr"])&&s.parentNode){r=s.parentNode.childNodes;const c=a["s-sn"];for(i=r.length-1;i>=0;i--)if(s=r[i],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==a["s-hn"]&&!BUILD.experimentalSlotFixes)if(isNodeLocatedInSlot(s,c)){let y=relocateNodes.find(w=>w.$nodeToRelocate$===s);checkSlotFallbackVisibility=!0,s["s-sn"]=s["s-sn"]||c,y?(y.$nodeToRelocate$["s-sh"]=a["s-hn"],y.$slotRefNode$=a):(s["s-sh"]=a["s-hn"],relocateNodes.push({$slotRefNode$:a,$nodeToRelocate$:s})),s["s-sr"]&&relocateNodes.map(w=>{isNodeLocatedInSlot(w.$nodeToRelocate$,s["s-sn"])&&(y=relocateNodes.find(C=>C.$nodeToRelocate$===s),y&&!w.$slotRefNode$&&(w.$slotRefNode$=y.$slotRefNode$))})}else relocateNodes.some(y=>y.$nodeToRelocate$===s)||relocateNodes.push({$nodeToRelocate$:s})}1===a.nodeType&&markSlotContentForRelocation(a)}},isNodeLocatedInSlot=(o,s)=>1===o.nodeType?null===o.getAttribute("slot")&&""===s||o.getAttribute("slot")===s:o["s-sn"]===s||""===s,nullifyVNodeRefs=o=>{o.$attrs$&&o.$attrs$.ref&&o.$attrs$.ref(null),o.$children$&&o.$children$.map(nullifyVNodeRefs)},insertBefore=(o,s,r)=>{const i=o?.insertBefore(s,r);return updateElementScopeIds(s,o),i},findScopeIds=o=>{const s=[];return o&&s.push(...o["s-scs"]||[],o["s-si"],o["s-sc"],...findScopeIds(o.parentElement)),s},updateElementScopeIds=(o,s,r=!1)=>{var i;if(o&&s&&1===o.nodeType){const a=new Set(findScopeIds(s).filter(Boolean));if(a.size&&(null==(i=o.classList)||i.add(...o["s-scs"]=[...a]),o["s-ol"]||r))for(const c of Array.from(o.childNodes))updateElementScopeIds(c,o,!0)}},renderVdom=(o,s,r=!1)=>{var i,a,c,y,w;const C=o.$hostElement$,T=o.$cmpMeta$,S=o.$vnode$||newVNode(null,null),A=isHost(s)?s:h(null,null,s);if(hostTagName=C.tagName,T.$attrsToReflect$&&(A.$attrs$=A.$attrs$||{},T.$attrsToReflect$.map(([I,N])=>A.$attrs$[N]=C[I])),r&&A.$attrs$)for(const I of Object.keys(A.$attrs$))C.hasAttribute(I)&&!["key","ref","style","class"].includes(I)&&(A.$attrs$[I]=C[I]);if(A.$tag$=null,A.$flags$|=4,o.$vnode$=A,A.$elm$=S.$elm$=C.shadowRoot||C,scopeId=C["s-sc"],useNativeShadowDom=!!(1&T.$flags$),contentRef=C["s-cr"],checkSlotFallbackVisibility=!1,patch(S,A,r),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(A.$elm$);for(const I of relocateNodes){const N=I.$nodeToRelocate$;if(!N["s-ol"]){const G=doc.createTextNode("");G["s-nr"]=N,insertBefore(N.parentNode,N["s-ol"]=G,N)}}for(const I of relocateNodes){const N=I.$nodeToRelocate$,G=I.$slotRefNode$;if(G){const Z=G.parentNode;let te=G.nextSibling;{let be=null==(i=N["s-ol"])?void 0:i.previousSibling;for(;be;){let me=null!=(a=be["s-nr"])?a:null;if(me&&me["s-sn"]===N["s-sn"]&&Z===me.parentNode){for(me=me.nextSibling;me===N||me?.["s-sr"];)me=me?.nextSibling;if(!me||!me["s-nr"]){te=me;break}}be=be.previousSibling}}(!te&&Z!==N.parentNode||N.nextSibling!==te)&&N!==te&&(!N["s-hn"]&&N["s-ol"]&&(N["s-hn"]=N["s-ol"].parentNode.nodeName),insertBefore(Z,N,te),1===N.nodeType&&(N.hidden=null!=(c=N["s-ih"])&&c)),N&&"function"==typeof G["s-rf"]&&G["s-rf"](N)}else 1===N.nodeType&&(r&&(N["s-ih"]=null!=(y=N.hidden)&&y),N.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility(A.$elm$),plt.$flags$&=-2,relocateNodes.length=0,BUILD.experimentalScopedSlotChanges&&2&T.$flags$)for(const I of A.$elm$.childNodes)I["s-hn"]===hostTagName||I["s-sh"]||(r&&null==I["s-ih"]&&(I["s-ih"]=null!=(w=I.hidden)&&w),I.hidden=!0);contentRef=void 0},attachToAncestor=(o,s)=>{},scheduleUpdate=(o,s)=>(o.$flags$|=16,attachToAncestor(o,o.$ancestorComponent$),writeTask(()=>dispatchHooks(o,s))),dispatchHooks=(o,s)=>{const r=o.$hostElement$,i=createTime("scheduleUpdate",o.$cmpMeta$.$tagName$),a=r;if(!a)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let c;return c=safeCall(a,s?"componentWillLoad":"componentWillUpdate"),c=enqueue(c,()=>safeCall(a,"componentWillRender")),i(),enqueue(c,()=>updateComponent(o,a,s))},enqueue=(o,s)=>isPromisey(o)?o.then(s).catch(r=>{console.error(r),s()}):s(),isPromisey=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,updateComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i){const a=s.$hostElement$,c=createTime("update",s.$cmpMeta$.$tagName$);i&&attachStyles(s);const y=createTime("render",s.$cmpMeta$.$tagName$);callRender(s,r,a,i),y(),c(),postUpdateComponent(s)});return function(r,i,a){return o.apply(this,arguments)}}(),renderingRef=null,callRender=(o,s,r,i)=>{try{renderingRef=s,s=s.render&&s.render(),o.$flags$&=-17,o.$flags$|=2,(BUILD.hasRenderFn||BUILD.reflect)&&(BUILD.vdomRender||BUILD.reflect)&&(BUILD.hydrateServerSide||renderVdom(o,s,i))}catch(a){consoleError(a,o.$hostElement$)}return renderingRef=null,null},getRenderingRef=()=>renderingRef,postUpdateComponent=o=>{const r=o.$hostElement$,i=createTime("postUpdate",o.$cmpMeta$.$tagName$),a=r;safeCall(a,"componentDidRender"),64&o.$flags$?(safeCall(a,"componentDidUpdate"),i()):(o.$flags$|=64,safeCall(a,"componentDidLoad"),i())},forceUpdate=o=>{{const s=getHostRef(o),r=s.$hostElement$.isConnected;return r&&2==(18&s.$flags$)&&scheduleUpdate(s,!1),r}},safeCall=(o,s,r)=>{if(o&&o[s])try{return o[s](r)}catch(i){consoleError(i)}},getValue=(o,s)=>getHostRef(o).$instanceValues$.get(s),setValue=(o,s,r,i)=>{const a=getHostRef(o),c=o,y=a.$instanceValues$.get(s),w=a.$flags$,C=c;r=parsePropertyValue(r,i.$members$[s][0]);const T=Number.isNaN(y)&&Number.isNaN(r);if(r!==y&&!T){if(a.$instanceValues$.set(s,r),i.$watchers$&&128&w){const S=i.$watchers$[s];S&&S.map(A=>{try{C[A](r,y,s)}catch(I){consoleError(I,c)}})}if(2==(18&w)){if(C.componentShouldUpdate&&!1===C.componentShouldUpdate(r,y,s))return;scheduleUpdate(a,!1)}}},proxyComponent=(o,s,r)=>{var i,a;const c=o.prototype;if(s.$members$||s.$watchers$||o.watchers){o.watchers&&!s.$watchers$&&(s.$watchers$=o.watchers);const y=Object.entries(null!=(i=s.$members$)?i:{});y.map(([w,[C]])=>{(31&C||32&C)&&Object.defineProperty(c,w,{get(){return getValue(this,w)},set(T){setValue(this,w,T,s)},configurable:!0,enumerable:!0})});{const w=new Map;c.attributeChangedCallback=function(C,T,S){plt.jmp(()=>{var A;const I=w.get(C);if(this.hasOwnProperty(I))S=this[I],delete this[I];else{if(c.hasOwnProperty(I)&&"number"==typeof this[I]&&this[I]==S)return;if(null==I){const N=getHostRef(this),G=N?.$flags$;if(G&&!(8&G)&&128&G&&S!==T){const Z=this,te=null==(A=s.$watchers$)?void 0:A[C];te?.forEach(be=>{null!=Z[be]&&Z[be].call(Z,S,T,C)})}return}}this[I]=(null!==S||"boolean"!=typeof this[I])&&S})},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(a=s.$watchers$)?a:{}),...y.filter(([C,T])=>15&T[0]).map(([C,T])=>{var S;const A=T[1]||C;return w.set(A,C),512&T[0]&&(null==(S=s.$attrsToReflect$)||S.push([C,A])),A})]))}}return o},initializeComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i,a){let c;if(!(32&r.$flags$)&&(r.$flags$|=32,c=s.constructor,customElements.whenDefined(s.localName).then(()=>r.$flags$|=128),c&&c.style)){let y;"string"==typeof c.style?y=c.style:"string"!=typeof c.style&&(r.$modeName$=computeMode(s),r.$modeName$&&(y=c.style[r.$modeName$]));const w=getScopeId(i,r.$modeName$);if(!styles.has(w)){const C=createTime("registerStyles",i.$tagName$);registerStyle(w,y,!!(1&i.$flags$)),C()}}scheduleUpdate(r,!0)});return function(r,i,a,c){return o.apply(this,arguments)}}(),fireConnectedCallback=o=>{},connectedCallback=o=>{if(!(1&plt.$flags$)){const s=getHostRef(o),r=s.$cmpMeta$,i=createTime("connectedCallback",r.$tagName$);1&s.$flags$?(addHostEventListeners(o,s,r.$listeners$),s?.$lazyInstance$?fireConnectedCallback(s.$lazyInstance$):s?.$onReadyPromise$&&s.$onReadyPromise$.then(()=>fireConnectedCallback(s.$lazyInstance$))):(s.$flags$|=1,12&r.$flags$&&setContentReference(o),r.$members$&&Object.entries(r.$members$).map(([a,[c]])=>{if(31&c&&o.hasOwnProperty(a)){const y=o[a];delete o[a],o[a]=y}}),initializeComponent(o,s,r)),i()}},setContentReference=o=>{const s=o["s-cr"]=doc.createComment("");s["s-cn"]=!0,insertBefore(o,s,o.firstChild)},disconnectedCallback=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){if(!(1&plt.$flags$)){const r=getHostRef(s);r.$rmListeners$&&(r.$rmListeners$.map(i=>i()),r.$rmListeners$=void 0)}});return function(r){return o.apply(this,arguments)}}(),proxyCustomElement=(o,s)=>{const r={$flags$:s[0],$tagName$:s[1]};r.$members$=s[2],r.$listeners$=s[3],r.$watchers$=o.$watchers$,r.$attrsToReflect$=[];const i=o.prototype.connectedCallback,a=o.prototype.disconnectedCallback;return Object.assign(o.prototype,{__registerHost(){registerHost(this,r)},connectedCallback(){const c=getHostRef(this);addHostEventListeners(this,c,r.$listeners$),connectedCallback(this),i&&i.call(this)},disconnectedCallback(){disconnectedCallback(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${r.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.attachShadow({mode:"open",delegatesFocus:!!(16&r.$flags$)})}}),o.is=r.$tagName$,proxyComponent(o,r)},Fragment=(o,s)=>s,addHostEventListeners=(o,s,r,i)=>{r&&r.map(([a,c,y])=>{const w=getHostListenerTarget(o,a),C=hostListenerProxy(s,y),T=hostListenerOpts(a);plt.ael(w,c,C,T),(s.$rmListeners$=s.$rmListeners$||[]).push(()=>plt.rel(w,c,C,T))})},hostListenerProxy=(o,s)=>r=>{try{BUILD.lazyLoad||o.$hostElement$[s](r)}catch(i){consoleError(i)}},getHostListenerTarget=(o,s)=>4&s?doc:8&s?win:16&s?doc.body:o,hostListenerOpts=o=>supportsListenerOptions?{passive:!!(1&o),capture:!!(2&o)}:!!(2&o),CURRENT_MODULE,METHOD_MODULE,o;o=CURRENT_MODULE||(CURRENT_MODULE={}),o.WELCOME="welcome",o.WELCOME_LOGIN="welcome-login",o.WELCOME_SIGNUP="welcome-signup",o.INFO="info",o.LOGIN_BUNKER_URL="login-bunker-url",o.LOGIN_READ_ONLY="login-read-only",o.CONFIRM_LOGOUT="confirm-logout",o.IMPORT_FLOW="import",o.IMPORT_OTP="import-otp",o.LOGIN="login",o.SIGNUP="signup",o.LOCAL_SIGNUP="local-signup",o.EXTENSION="extension",o.LOADING="loading",o.PREVIOUSLY_LOGGED="switch-account",o.LOGIN_OTP="otp",o.CONNECT="connect",o.CONNECTION_STRING="connection-string",o.IFRAME="iframe",function(o){o.LOGIN="login",o.SIGNUP="signup",o.LOGOUT="logout",o.CONFIRM="confirm"}(METHOD_MODULE||(METHOD_MODULE={}));const appendToMap=(o,s,r)=>{const i=o.get(s);i?i.includes(r)||i.push(r):o.set(s,[r])},debounce=(o,s)=>{let r;return(...i)=>{r&&clearTimeout(r),r=setTimeout(()=>{r=0,o(...i)},s)}},isConnected=o=>!("isConnected"in o)||o.isConnected,cleanupElements=debounce(o=>{for(let s of o.keys())o.set(s,o.get(s).filter(isConnected))},2e3),stencilSubscription=()=>{if("function"!=typeof getRenderingRef)return{};const o=new Map;return{dispose:()=>o.clear(),get:s=>{const r=getRenderingRef();r&&appendToMap(o,s,r)},set:s=>{const r=o.get(s);r&&o.set(s,r.filter(forceUpdate)),cleanupElements(o)},reset:()=>{o.forEach(s=>s.forEach(forceUpdate)),cleanupElements(o)}}},unwrap=o=>"function"==typeof o?o():o,createObservableMap=(o,s=(r,i)=>r!==i)=>{const r=unwrap(o);let i=new Map(Object.entries(r??{}));const a={dispose:[],get:[],set:[],reset:[]},c=()=>{var S;i=new Map(Object.entries(null!==(S=unwrap(o))&&void 0!==S?S:{})),a.reset.forEach(A=>A())},y=S=>(a.get.forEach(A=>A(S)),i.get(S)),w=(S,A)=>{const I=i.get(S);s(A,I,S)&&(i.set(S,A),a.set.forEach(N=>N(S,A,I)))},C=typeof Proxy>"u"?{}:new Proxy(r,{get:(S,A)=>y(A),ownKeys:S=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(S,A)=>i.has(A),set:(S,A,I)=>(w(A,I),!0)}),T=(S,A)=>(a[S].push(A),()=>{removeFromArray(a[S],A)});return{state:C,get:y,set:w,on:T,onChange:(S,A)=>{const I=T("set",(G,Z)=>{G===S&&A(Z)}),N=T("reset",()=>A(unwrap(o)[S]));return()=>{I(),N()}},use:(...S)=>{const A=S.reduce((I,N)=>(N.set&&I.push(T("set",N.set)),N.get&&I.push(T("get",N.get)),N.reset&&I.push(T("reset",N.reset)),N.dispose&&I.push(T("dispose",N.dispose)),I),[]);return()=>A.forEach(I=>I())},dispose:()=>{a.dispose.forEach(S=>S()),c()},reset:c,forceUpdate:S=>{const A=i.get(S);a.set.forEach(I=>I(S,A,A))}}},removeFromArray=(o,s)=>{const r=o.indexOf(s);r>=0&&(o[r]=o[o.length-1],o.length--)},createStore=(o,s)=>{const r=createObservableMap(o,s);return r.use(stencilSubscription()),r},{state,onChange}=createStore({screen:CURRENT_MODULE.WELCOME,prevScreen:CURRENT_MODULE.WELCOME,path:[CURRENT_MODULE.WELCOME],error:"",isLoading:!1,isLoadingExtension:!1,isOTP:!1,authUrl:"",iframeUrl:"",localSignup:!1,nlSignin:{loginName:""},nlSignup:{signupName:"",domain:"",servers:[{name:"@nsec.app",value:"nsec.app"},{name:"@highlighter.com",value:"highlighter.com"}]},nlSigninBunkerUrl:{loginName:""},nlSigninReadOnly:{loginName:""},nlSigninOTP:{loginName:"",code:""},nlImport:null});onChange("screen",()=>{state.error="",state.nlSignin.loginName="",state.nlSignup.signupName="",state.nlSignup.domain=""});const baseCss="/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;color:#6b7280;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;print-color-adjust:exact;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.theme-default .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-default .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-description,.theme-default .nl-logo,.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-description,.theme-default .dark .nl-logo,.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.theme-default .nl-description a{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .dark .nl-description a{--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .nl-action-button{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-action-button{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.theme-default .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-divider{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .nl-divider:before{border-top-width:1px}.theme-default .nl-divider:after,.theme-default .nl-divider:before{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .dark .nl-divider{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.theme-default .dark .nl-divider:after,.theme-default .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .nl-footer{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-footer{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-default .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-default .nl-input{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-select-option{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.theme-default .nl-select-option.active-option{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity));color:rgb(30 58 138/var(--tw-text-opacity))}.theme-default .dark .nl-select-option{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-default .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-default .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-ocean .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(191 219 254/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-ocean .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(8 47 73/var(--tw-bg-opacity))}.theme-ocean .nl-description,.theme-ocean .nl-logo,.theme-ocean .nl-title{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-description,.theme-ocean .dark .nl-logo,.theme-ocean .dark .nl-title{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-action-button{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-action-button{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(224 242 254/var(--tw-bg-opacity));border-color:rgb(186 230 253/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.theme-ocean .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));border-color:rgb(8 47 73/var(--tw-border-opacity));color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-divider{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-divider:after,.theme-ocean .nl-divider:before{--tw-border-opacity:1;border-color:rgb(8 47 73/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .dark .nl-divider{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-divider:after,.theme-ocean .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .nl-footer{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-footer{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-ocean .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-ocean .nl-input{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select-list{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(3 105 161/var(--tw-bg-opacity))}.theme-ocean .nl-select-option{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.theme-ocean .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-option{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));color:rgb(125 211 252/var(--tw-text-opacity))}.theme-ocean .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-ocean .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-lemonade .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(187 247 208/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-lemonade .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(5 46 22/var(--tw-bg-opacity))}.theme-lemonade .nl-description,.theme-lemonade .nl-logo,.theme-lemonade .nl-title{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-description,.theme-lemonade .dark .nl-logo,.theme-lemonade .dark .nl-title{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-action-button{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-action-button{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(220 252 231/var(--tw-bg-opacity));border-color:rgb(187 247 208/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));border-color:rgb(5 46 22/var(--tw-border-opacity));color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-divider{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-divider:after,.theme-lemonade .nl-divider:before{--tw-border-opacity:1;border-color:rgb(5 46 22/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .dark .nl-divider{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-divider:after,.theme-lemonade .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .nl-footer{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-footer{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-lemonade .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-lemonade .nl-input{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select-list{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.theme-lemonade .nl-select-option{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.theme-lemonade .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-option{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));color:rgb(134 239 172/var(--tw-text-opacity))}.theme-lemonade .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-lemonade .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-purple .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(233 213 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-purple .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(59 7 100/var(--tw-bg-opacity))}.theme-purple .nl-description,.theme-purple .nl-logo,.theme-purple .nl-title{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-description,.theme-purple .dark .nl-logo,.theme-purple .dark .nl-title{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-action-button{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-action-button{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(243 232 255/var(--tw-bg-opacity));border-color:rgb(233 213 255/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(250 245 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));border-color:rgb(59 7 100/var(--tw-border-opacity));color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-divider{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-divider:after,.theme-purple .nl-divider:before{--tw-border-opacity:1;border-color:rgb(59 7 100/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .dark .nl-divider{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-divider:after,.theme-purple .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(233 213 255/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .nl-footer{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-footer{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-purple .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-purple .nl-input{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(126 34 206/var(--tw-bg-opacity))}.theme-purple .nl-select-option{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.theme-purple .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(233 213 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-option{--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));color:rgb(216 180 254/var(--tw-text-opacity))}.theme-purple .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-purple .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-purple .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-purple .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-crab .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(254 226 226/var(--tw-bg-opacity));border-color:rgb(254 202 202/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(69 10 10/var(--tw-text-opacity))}.theme-crab .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.theme-crab .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-color:rgb(69 10 10/var(--tw-border-opacity));color:rgb(254 202 202/var(--tw-text-opacity))}.theme-crab .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.show-slow{display:none;opacity:0;transition:.1s}.isOpen .show-slow{display:block;opacity:1;transition:.2s;transition-delay:.2s}:host{display:block}.animate-spin-loading{animation:spin2 1s linear infinite;background:var(--qa-dark-color)}@keyframes spin2{to{transform:rotate(1turn)}}.active{animation:blink .7s infinite alternate}@keyframes blink{0%{opacity:1}to{opacity:0}}.static{position:static}.inline-flex{display:inline-flex}.h-4{height:16px}.w-4{width:16px}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.gap-x-2{column-gap:8px}.rounded-lg{border-radius:.5rem}.px-3{padding-left:12px;padding-right:12px}.py-2\\.5{padding-bottom:10px;padding-top:10px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:focus\\:outline-none:focus:is(.dark *){outline:2px solid transparent;outline-offset:2px}.dark\\:focus\\:ring-1:focus:is(.dark *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:focus\\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.right-2{right:8px}.top-2{top:8px}.top-52{top:208px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:8px}.ml-0{margin-left:0}.ml-\\[2px\\]{margin-left:2px}.mr-0{margin-right:0}.mr-2{margin-right:8px}.mr-3\\.5{margin-right:14px}.mt-2{margin-top:8px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-12{height:48px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-\\[46px\\]{height:46px}.h-auto{height:auto}.w-0{width:0}.w-12{width:48px}.w-16{width:64px}.w-5{width:20px}.w-52{width:208px}.w-6{width:24px}.w-7{width:28px}.w-8{width:32px}.w-\\[48px\\]{width:48px}.min-w-40{min-width:160px}.max-w-40{max-width:160px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.place-items-center{place-items:center}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.rounded-r-lg{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-\\[0px\\]{border-width:0}.border-\\[2px\\]{border-width:2px}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-3{padding:12px}.px-2{padding-left:8px;padding-right:8px}.pl-\\[11px\\]{padding-left:11px}.text-center{text-align:center}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:right-2:hover{right:8px}.hover\\:rounded-r-lg:hover{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.left-0{left:0}.mt-1{margin-top:4px}.max-w-6{max-width:24px}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-x-3\\.5{column-gap:14px}.overflow-hidden,.truncate{overflow:hidden}.border-t-\\[1px\\]{border-top-width:1px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.p-2{padding:8px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-3{padding-bottom:12px;padding-top:12px}.pt-2{padding-top:8px}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-top-4:before{content:var(--tw-content);top:-16px}.before\\:start-0:before{content:var(--tw-content);inset-inline-start:0}.before\\:h-4:before{content:var(--tw-content);height:16px}.before\\:w-full:before{content:var(--tw-content);width:100%}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-bottom-4:after{bottom:-16px;content:var(--tw-content)}.after\\:start-0:after{content:var(--tw-content);inset-inline-start:0}.after\\:h-4:after{content:var(--tw-content);height:16px}.after\\:w-full:after{content:var(--tw-content);width:100%}.first\\:border-none:first-child{border-style:none}.first\\:pt-0:first-child{padding-top:0}.dark\\:border-transparent:is(.dark *){border-color:transparent}.w-auto{width:auto}.rounded-xl{border-radius:.75rem}.border-orange-300{--tw-border-opacity:1;border-color:rgb(253 186 116/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-teal-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-teal-100{--tw-bg-opacity:1;background-color:rgb(204 251 241/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.px-1{padding-left:4px;padding-right:4px}.text-\\[10px\\]{font-size:10px}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.start-0{inset-inline-start:0}.top-0{top:0}.z-\\[80\\]{z-index:80}.z-\\[81\\]{z-index:81}.h-full{height:100%}.max-w-96{max-width:384px}.gap-1{gap:4px}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-4{padding:16px}.pt-3,.py-3{padding-top:12px}.text-base{font-size:16px;line-height:24px}.font-light{font-weight:300}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}@media (min-width:640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}}.ml-auto,.mx-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-3{margin-top:12px}.w-60{width:240px}.text-4xl{font-size:36px;line-height:40px}.text-lg{font-size:18px;line-height:28px}.mt-0{margin-top:0}.max-h-0{max-height:0}.max-h-\\[500px\\]{max-height:500px}.max-w-52{max-width:208px}.max-w-7{max-width:28px}.gap-0\\.5{gap:2px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.border-b-\\[1px\\]{border-bottom-width:1px}.border-dashed{border-style:dashed}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.pb-1{padding-bottom:4px}.pb-1\\.5{padding-bottom:6px}.pb-5{padding-bottom:20px}.pe-4{padding-inline-end:16px}.ps-4{padding-inline-start:16px}.pt-5{padding-top:20px}.text-3xl{font-size:30px;line-height:36px}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.decoration-dashed{text-decoration-style:dashed}.duration-\\[0\\.25s\\]{transition-duration:.25s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.mb-0\\.5{margin-bottom:2px}.mb-5{margin-bottom:20px}.ml-auto{margin-left:auto}.w-72{width:288px}.max-w-72{max-width:288px}.border-\\[3px\\]{border-width:3px}.pb-2{padding-bottom:8px}.text-2xl{font-size:24px;line-height:32px}.mb-10{margin-bottom:40px}.mt-10{margin-top:40px}.h-20{height:80px}.w-20{width:80px}.border-\\[4px\\]{border-width:4px}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.pointer-events-none{pointer-events:none}.inset-y-0{bottom:0;top:0}.ps-11{padding-inline-start:44px}.peer:disabled~.peer-disabled\\:pointer-events-none{pointer-events:none}.peer:disabled~.peer-disabled\\:opacity-50{opacity:.5}.right-\\[-2px\\]{right:-2px}.right-\\[-3px\\]{right:-3px}.top-\\[-2px\\]{top:-2px}.top-\\[-3px\\]{top:-3px}.h-1\\.5{height:6px}.h-3{height:12px}.w-1\\.5{width:6px}.w-3{width:12px}.border-2{border-width:2px}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.pb-3{padding-bottom:12px}.pt-0{padding-top:0}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.hover\\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.hover\\:text-red-600:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.group:hover .group-hover\\:border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.min-w-\\[15rem\\]{min-width:15rem}.end-0{inset-inline-end:0}.h-\\[20px\\]{height:20px}.w-\\[20px\\]{width:20px}.pe-11{padding-inline-end:44px}",buttonBaseCss=baseCss,ButtonBaseStyle0=buttonBaseCss,ButtonBase=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}componentDidRender(){const o=this.element.querySelector("svg");o&&(o.classList.add("flex-shrink-0","w-4","h-4","block"),o.removeAttribute("style"))}render(){return h("div",{key:"1048576f0a9839c56cac030b1de7899b25b5f39e",class:`theme-${this.theme}`},h("div",{key:"ea29f74a1f7e4268802c6e4aaca5867dfd2e4c9b",class:"animate-spin-loading active"}),h("button",{key:"71f84d47b11aa3971818b686f8dddb74e0d36eb0",disabled:this.disabled,type:"button",class:"nl-button py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},h("slot",{key:"91a91994e20dc10e3bbb2576e4214fa98533be8e",name:"icon-start"}),this.titleBtn))}get element(){return this}static get style(){return ButtonBaseStyle0}},[4,"button-base",{theme:[1025],darkMode:[1028,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$q(){typeof customElements>"u"||["button-base"].forEach(o=>{"button-base"===o&&(customElements.get(o)||customElements.define(o,ButtonBase))})}defineCustomElement$q();const nlConfirmLogoutCss=baseCss,NlConfirmLogoutStyle0=nlConfirmLogoutCss,NlConfirmLogout$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleBackUpModal=createEvent(this,"handleBackUpModal",7),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Delete keys?",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible."}handleLogout(){this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.nlCloseModal.emit()}handleCancel(){this.nlCloseModal.emit()}handleBackUp(){state.path=[CURRENT_MODULE.IMPORT_FLOW]}render(){return h("div",{key:"fe605f38f9d0a440fe53e21f19288c41e4762c22",class:"p-4 overflow-y-auto"},h("h1",{key:"84d14a59035515b2fd612d262400a038887a10d7",class:"nl-title font-bold text-center text-4xl"},this.titleModal),h("p",{key:"83ef73271c76309561be95e0207f8130d75a161c",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description),h("div",{key:"fce0f132846beb95dd9e41357f5ab87be7229a56",class:"mt-3 ml-auto mr-auto w-60 flex flex-col gap-2"},h("button-base",{key:"c4fc722a7c98d84e797963ed7fe928164411b701",onClick:()=>this.handleBackUp(),titleBtn:"Backup keys",theme:"lemonade"}),h("button-base",{key:"39df385a9a8dc3fcd74f4196d4191bc4a308a16d",onClick:()=>this.handleLogout(),theme:"crab",titleBtn:"Logout and delete keys"})))}static get style(){return NlConfirmLogoutStyle0}},[0,"nl-confirm-logout",{titleModal:[1,"title-modal"],description:[1]}]);function defineCustomElement$p(){typeof customElements>"u"||["nl-confirm-logout","button-base"].forEach(o=>{switch(o){case"nl-confirm-logout":customElements.get(o)||customElements.define(o,NlConfirmLogout$1);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$p();const nlConnectCss=baseCss,NlConnectStyle0=nlConnectCss,NlConnect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlNostrConnect=createEvent(this,"nlNostrConnect",7),this.nlNostrConnectDefault=createEvent(this,"nlNostrConnectDefault",7),this.titleWelcome="Connect to key store",this.authMethods=[],this.hasOTP=!1,this.connectionStringServices=[],this.isOpenAdvancedLogin=!1}handleChangeScreen(o){state.path=[...state.path,o]}handleOpenAdvanced(){this.isOpenAdvancedLogin=!this.isOpenAdvancedLogin}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}componentWillLoad(){}handleOpenLink(o,s){o.preventDefault(),this.nlNostrConnect.emit(s)}handleConnectionString(){this.nlNostrConnectDefault.emit(),this.handleChangeScreen(CURRENT_MODULE.CONNECTION_STRING)}render(){const o=(this.isOpenAdvancedLogin?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-blue-500";return h(Fragment,{key:"a85f0a26b61b7e321025b7dd96e459a6c43958a9"},h("div",{key:"7af7ae501bed1bf028465e65f3caa3824a3948ca",class:"p-4 overflow-y-auto"},h("h1",{key:"7795a15c6d525d1b7ad0e6da63ad1889a64d6459",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"cf5b947b22757334cbf92059dfc7ffaef0c95951",class:"p-4"},!!this.connectionStringServices.length&&h("div",{key:"c5de66ab74b14d69993dc20cf123777a3b8a016e",class:"max-w-96 mx-auto pt-5"},h("p",{key:"f7ac9e48789870264707bf39e3f1b2d73218aad5",class:"nl-description font-medium text-sm pb-1.5"},"Select key store:"),h("ul",{key:"07c1bd1bf9ffaa80f0868481ce22a8d5c73a345b",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.connectionStringServices.map(s=>h("li",null,h("a",{href:s.link,target:"_blank",onClick:r=>this.handleOpenLink(r,s),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-300 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s.img?h("img",{class:"w-full rounded-full",src:s.img,alt:s.name}):h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#9ca3af",class:"w-4 h-4 block"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},s.name)))))))),h("div",{key:"2a9094524ef58b138d04411484264a40ce42db7c",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"d833546cba5fd4a904a0123e6e760b602fda0ff7",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("div",{key:"700aa690c440f2685c9330feeb58986669b46f85",class:"max-w-52 mx-auto pb-5"},(this.allowAuthMethod("connect")||this.allowAuthMethod("readOnly"))&&h("div",{key:"058706b54702ac9ca3cd74a8096f521c211e5a16",class:"flex justify-center"},h("div",{key:"073f2567734817ba3cc8f34b32fa1a284d2b8ab1",onClick:()=>this.handleOpenAdvanced(),class:"text-blue-500 mt-3 decoration-dashed cursor-pointer inline-flex gap-2 items-center pb-1 border-dashed border-b-[1px] border-blue-500 text-sm font-light"},"Advanced",h("svg",{key:"d433319920bc751f771086bf726a3d5f1e31320e",class:o,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"4cc3a36807664b0402a26420c4979a68ba77df9c",d:"m6 9 6 6 6-6"})))),h("div",{key:"76dc95f39af78bd124e5f61309d96ee443d53f2f",class:(this.isOpenAdvancedLogin?"max-h-[500px] mt-3 duration-300":"max-h-0 mt-0 duration-[0.25s]")+" transition-max-height ease-in flex gap-3 flex-col overflow-hidden"},this.allowAuthMethod("connect")&&h("button-base",{key:"616d8de815233bc6264b51fa849fbf26d98758ed",titleBtn:"User name",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN)},h("svg",{key:"fa2f51ca2a111920d15a87106258c55a7b1961ff",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},h("path",{key:"288dee2f9c21bde4471a7eebbf94c231c1acad12","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"8298c3ad602e2bc279ab084a5e5ea311fdc193e9",titleBtn:"Connection string",onClick:()=>this.handleConnectionString()},h("svg",{key:"b7f83a4b7fae0ff0965c2493aa70b09e1b1ab3d8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d580fdbb1eee16439ffa4a46fa4f30cafbf0fd36","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"}),h("path",{key:"ab90c206914cb2d6cae80b7e36ce45653c65b9b3","stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"c923265e7da4bb6815cf91c54a4b393c19f3d16d",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_BUNKER_URL),titleBtn:"Bunker URL"},h("svg",{key:"8c5bd04e91407a83d0021e4413ee58973b57aa54",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d115abfce6eee55572316a4cc2a808a176d17f46","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))))))}static get style(){return NlConnectStyle0}},[0,"nl-connect",{titleWelcome:[1,"title-welcome"],authMethods:[16],hasOTP:[4,"has-o-t-p"],connectionStringServices:[16],isOpenAdvancedLogin:[32]}]);function defineCustomElement$o(){typeof customElements>"u"||["nl-connect","button-base"].forEach(o=>{switch(o){case"nl-connect":customElements.get(o)||customElements.define(o,NlConnect);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$o();const nlIframeCss=baseCss,NlIframeStyle0=nlIframeCss,NlConfirmLogout=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Confirm",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible.",this.iframeUrl=""}handleCancel(){this.nlCloseModal.emit()}render(){return h("div",{key:"36ee9fd43bbb16768b7634783781ecffb1c9432a",class:"p-4 overflow-y-auto"},h("div",{key:"1634e1fd37bc44030f22bfdab9f7deec2806731b",class:"mt-3 flex flex-col gap-2"},this.iframeUrl&&h("iframe",{key:"2b1ab3032b152fb109f3531bb7600bb76aa1a562",src:this.iframeUrl,style:{width:"100%",height:"600px",border:"1px solid #ccc",borderRadius:"8px"}})))}static get style(){return NlIframeStyle0}},[0,"nl-iframe",{titleModal:[1,"title-modal"],description:[1],iframeUrl:[1,"iframe-url"]}]);function defineCustomElement$n(){typeof customElements>"u"||["nl-iframe"].forEach(o=>{"nl-iframe"===o&&(customElements.get(o)||customElements.define(o,NlConfirmLogout))})}defineCustomElement$n();const nlSelectCss=baseCss,NlSelectStyle0=nlSelectCss,NlSelect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.selectDomain=createEvent(this,"selectDomain",7),this.isOpen=!1,this.value=null,this.options=void 0,this.selected=void 0,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode,this.value=this.options[this.selected],this.selectDomain.emit(this.value.value)}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.value=o,this.isOpen=!1,this.selectDomain.emit(this.value.value)}render(){const o=(this.isOpen?"listClass":"hidden")+" min-w-[15rem] nl-select-list absolute left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500";return h("div",{key:"c86084c50712455e04682a4392e490bc0e20eb1d",class:`theme-${this.themeState}`},h("div",{key:"a90d9b4af52845a9971c39cec69c13493d511381",class:"relative",ref:r=>this.wrapperRef=r},h("button",{key:"1391137997bf8fcd0a5466cd9fa20c79b4ce27ba",ref:r=>this.buttonRef=r,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"224425ab92ba3599595924972e98a0fc9cb1a189",class:"truncate overflow-hidden"},this.value.name),h("svg",{key:"8eb2a2b552cb9ea36fb1abc61d804efb423afda6",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"feea1a7f54f4a111b7bf01e3945445311b97ab82",d:"m6 9 6 6 6-6"}))),h("ul",{key:"fca4982f04f4133d5c2a2f613a7e7d977dd5c241",ref:r=>this.ulRef=r,class:o},this.options.map(r=>h("li",{onClick:()=>this.handleChange(r),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},r.name)))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}}static get style(){return NlSelectStyle0}},[0,"nl-select",{options:[16],selected:[2],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],value:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}]);function defineCustomElement$m(){typeof customElements>"u"||["nl-select"].forEach(o=>{"nl-select"===o&&(customElements.get(o)||customElements.define(o,NlSelect))})}defineCustomElement$m();const nlImportFlowCss=baseCss,NlImportFlowStyle0=nlImportFlowCss,NlImportFlow$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.nlExportKeys=createEvent(this,"nlExportKeys",7),this.titleInfo="Back up your keys",this.titleImport="Choose a service",this.services=[],this.isContinued=!1,this.isKeyBackup=!1,this.isCopy=!1}handleDomainSelect(o){const s=this.services.find(r=>r.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}handleContinue(){this.isContinued=!0}handleContinueKeyBackup(){this.isKeyBackup=!0}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.nlExportKeys.emit(),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)})()}render(){if(!this.isContinued&&!this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleInfo),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Nostr profiles are controlled by cryptographic keys.",h("br",null),h("br",null),"Your keys are currently only stored in this browser tab, and may be lost if you close it.",h("br",null),h("br",null),"You should backup your keys.",h("br",null),h("br",null),"We recommend to import your keys into a key store service, to protect them and to use with other apps."),h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.handleContinue(),titleBtn:"Import to key store"})),h("div",{class:"ml-auto mr-auto w-72"},h("button-base",{onClick:()=>this.handleContinueKeyBackup(),titleBtn:"Export keys"})));if(this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},"Key export"),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Copy your keys and store them in a safe place, like a password manager.",h("br",null),h("br",null),"You can sign into other Nostr apps by pasting your keys into them.",h("br",null),h("br",null),"Your keys must be kept secret, never share them with anyone."),h("div",{class:"max-w-72 mx-auto"},h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.copyToClipboard(),titleBtn:this.isCopy?"Copied!":"Copy to clipboard"}))));const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,null,h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},"Your Nostr keys will be imported into the service you choose. You will manage your keys on their website.")),h("div",{class:"max-w-72 mx-auto mb-5"},h("div",{class:"mb-0.5"},h("nl-select",{onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlImportFlowStyle0}},[0,"nl-import-flow",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],services:[16],isContinued:[32],isKeyBackup:[32],isCopy:[32]}]);function defineCustomElement$l(){typeof customElements>"u"||["nl-import-flow","button-base","nl-select"].forEach(o=>{switch(o){case"nl-import-flow":customElements.get(o)||customElements.define(o,NlImportFlow$1);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$l();const nlInfoCss=baseCss,NlInfoStyle0=nlInfoCss,NlInfo=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"7463f42c27643903a9d6fb0160fbabe833679fcb",class:"p-4 overflow-y-auto"},h("svg",{key:"86c5f04f87b21553f3512d289425996b46eb6c57",class:"w-12 h-12 mx-auto mb-2",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{key:"6be61e0b2ff3d3f13e617e9b1df073fbe3b5678b",width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{key:"0c0aff7d5143022fe857de141cdae31397c3c2f4",d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("h1",{key:"3a89ee5051e2d74945347dec6055749cec126f27",class:"nl-title font-bold text-center text-4xl"},"Nostr ",h("span",{key:"96a49c22dffa4a30639f387a949d7695604c6a1f",class:"font-light"},"Login")),h("p",{key:"a6dded720da9db673173a1ff02bc5544e6a66d38",class:"text-green-800 dark:text-green-200 font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Version: 1.6.14"),h("p",{key:"9d9dbd36ade753d30db448139dc057921f29697d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Learn more about Nostr"," ",h("a",{key:"1811ad4f1acda7f5235566ea6f2ce8e70c62c91c",target:"_blank",href:"https://nostr.how"},"here"),".",h("br",{key:"127a6127e71f43caa1c262c6ec8108a5a6f40774"}),"This is an"," ",h("a",{key:"0e18839f8577229533eb2d2ef00f8657e6396aa1",target:"_blank",href:"https://github.com/nostrband/nostr-login"},"open-source")," ","tool by"," ",h("a",{key:"9affd14ad9dedae3e5d269a1477343eae63cd46b",target:"_blank",href:"https://nostr.band"},"Nostr.Band"),"."))}static get style(){return NlInfoStyle0}},[0,"nl-info"]);function defineCustomElement$k(){typeof customElements>"u"||["nl-info"].forEach(o=>{"nl-info"===o&&(customElements.get(o)||customElements.define(o,NlInfo))})}defineCustomElement$k();const nlInfoExtensionCss=baseCss,NlInfoExtensionStyle0=nlInfoExtensionCss,NlInfoExtension=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"9335feb745c6d09a213a2e771c40262036341b54",class:"p-4 overflow-y-auto"},state.isLoadingExtension?h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Signing in..."),h("div",{class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error))):h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Install browser extension!"),h("p",{class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Try"," ",h("a",{href:"https://getalby.com",target:"_blank"},"Alby"),","," ",h("a",{href:"https://chromewebstore.google.com/detail/nos2x/kpgefcfmnafjgpblomihpgmejjdanjjp",target:"_blank"},"nos2x")," ","or"," ",h("a",{href:"https://apps.apple.com/us/app/nostore/id1666553677",target:"_blank"},"Nostore"))))}static get style(){return NlInfoExtensionStyle0}},[0,"nl-info-extension"]);function defineCustomElement$j(){typeof customElements>"u"||["nl-info-extension"].forEach(o=>{"nl-info-extension"===o&&(customElements.get(o)||customElements.define(o,NlInfoExtension))})}defineCustomElement$j();const nlLoadingCss=baseCss,NlLoadingStyle0=nlLoadingCss,NlLoading=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.stopFetchHandler=createEvent(this,"stopFetchHandler",7),this.handleContinue=createEvent(this,"handleContinue",7),this.path=void 0}handleStop(o){o.preventDefault(),this.stopFetchHandler.emit()}handleContinueClick(o){o.preventDefault(),this.handleContinue.emit()}render(){let o="Connecting...",s="Establishing connection to your key storage.";this.path===CURRENT_MODULE.LOCAL_SIGNUP?(o="Creating...",s="Publishing your profile on Nostr."):state.authUrl&&(state.isLoading?(o="Confirming...",s="Please confirm the connection in your key storage app."):(o="Almost ready!",s="Continue to confirm the connection to your key storage."));const r=this.path!==CURRENT_MODULE.LOCAL_SIGNUP,i=!state.isLoading&&state.iframeUrl&&state.authUrl,a=`${state.iframeUrl}?connect=${encodeURIComponent(state.authUrl)}`;return h("div",{key:"516866bac0ab965ad91fa153040e38cc94ecfe43",class:"p-4 overflow-y-auto"},h("h1",{key:"51fffb5a84be838536699741d19eb072d4318517",class:"nl-title font-bold text-center text-4xl"},o),h("p",{key:"8c0825a89ca531b74d1fb11fa06632b9bddf11b4",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},s),!state.authUrl&&state.isLoading&&h("div",{key:"5b39a21b600a0524d7eff2885fa9b048b76daf8b",class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{key:"6ac53666049efdd495197b4c57536a3e09969cdb",slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{key:"1a7211d6d3d9f6e14ff02a3605c6c7b1d2dbff09",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"678cc1522ff896809fbc0309966497aafb308a36",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),a&&h("div",{key:"6b68b0afd47bb420e142d6cefbe5fb286a6871be",class:"mt-3 ml-auto mr-auto w-72 flex justify-center"},h("iframe",{key:"69526e3b7af7d255b00f2ba1aeb9f688261958eb",src:a,width:"180px",height:"80px",style:{display:i?"block":"none"}})),!i&&r&&h("div",{key:"ea17236efcb5ae4aebec89508337a12f682e35cd",class:"mt-3 ml-auto mr-auto w-72"},h("button-base",{key:"7c6a62128ece1a50a5e01df43f8948f95f42fab2",onClick:c=>{state.authUrl&&!state.isLoading?this.handleContinueClick(c):this.handleStop(c)},titleBtn:state.isLoading?"Cancel":"Continue"})))}static get style(){return NlLoadingStyle0}},[0,"nl-loading",{path:[1]}]);function defineCustomElement$i(){typeof customElements>"u"||["nl-loading","button-base"].forEach(o=>{switch(o){case"nl-loading":customElements.get(o)||customElements.define(o,NlLoading);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$i();const nlLocalSignupCss=baseCss,NlLocalSignupStyle0=nlLocalSignupCss,NlLocalSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLocalSignup=createEvent(this,"nlLocalSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create Nostr profile",this.description="Choose any username, you can always change it later.",this.isAvailable=!1}handleInputChange(o){state.nlSignup.signupName=o.target.value}handleCreateAccount(o){o.preventDefault(),this.nlLocalSignup.emit(`${state.nlSignup.signupName}`)}render(){return h(Fragment,{key:"1ef0db8a3af10d6bd50c0ee084968abcef035b31"},h("div",{key:"966dbcd09fc2da235a817cbcf01b75e64ba2a3df",class:"p-4 overflow-y-auto"},h("h1",{key:"121ad8a12bb0d30785e26261993c73af716da22a",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"6758bc49ee96973718cb301a96ce26949c446512",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"e8354901c534454753d055542226b56ae7a3ec67",class:"max-w-72 mx-auto"},h("div",{key:"2a84cdb7a830431318ddb3a32c10476ab7aa98c8",class:"relative mb-2"},h("input",{key:"50c84d948104ac51b647b941f1e086f4eecf03d9",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Enter username",value:state.nlSignup.signupName}),h("div",{key:"8c52f3d644a8a0cd278af7646e9dbb0998b56afe",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"8923dc1949a04c7a10398db3c1211d00ce7fe925",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"e3303cbea9146cb1a66e47d5ecf51da5a4a2e8b7","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"916d7e92cea31d802b74ce71dd202b7ae5f84ed8",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"9bb8ffd3c9a7c2d62f700af314305d6403e9b54d",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dcd3530cb7878ec853ea1985cecfda1e03ab8011",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlLocalSignupStyle0}},[0,"nl-local-signup",{titleSignup:[1,"title-signup"],description:[1],isAvailable:[32]}]);function defineCustomElement$h(){typeof customElements>"u"||["nl-local-signup","button-base"].forEach(o=>{switch(o){case"nl-local-signup":customElements.get(o)||customElements.define(o,NlLocalSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$h();const NlLoginStatus=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.info=void 0}render(){let o="",s="";if("extension"===this.info.authMethod)o="Extension",s="border-yellow-300 text-yellow-500 bg-yellow-100";else if("readOnly"===this.info.authMethod)o="Read only",s="border-gray-300 text-gray-400 bg-gray-100";else if("connect"===this.info.authMethod)o="Connect",s="border-teal-300 text-teal-600 bg-teal-100";else if("local"===this.info.authMethod)o="Temporary",s="border-red-300 text-red-600 bg-red-100";else{if("otp"!==this.info.authMethod)throw console.log("unknown auth method",this.info),new Error("Unknown auth method");o="Delegated",s="border-orange-300 text-orange-600 bg-orange-100"}return h("div",{key:"f7d43062e3d372b26fd7e9c462eabad823b762e1"},h("span",{key:"c79aafe47bf945f5c6bf26aa230debc4d950be71",class:`${s} rounded-xl border w-auto text-[10px] px-1 `},o))}},[0,"nl-login-status",{info:[16]}]);function defineCustomElement$g(){typeof customElements>"u"||["nl-login-status"].forEach(o=>{"nl-login-status"===o&&(customElements.get(o)||customElements.define(o,NlLoginStatus))})}defineCustomElement$g();const nlOtpMigrateCss=baseCss,NlOtpMigrateStyle0=nlOtpMigrateCss,NlImportFlow=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.titleInfo="Import keys to storage service",this.titleImport="Choose a service",this.textImport="You will be prompted to import keys to the chosen service, and this website will connect to your keys.",this.services=[]}handleDomainSelect(o){const s=this.services.find(r=>r.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}render(){const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,{key:"d27cbfa870975b4f9f0c6350ff6424e34b19dfad"},h("div",{key:"22618ac8a4e7cc53e111cfa47a7db3163ccc43ef",class:"p-4 overflow-y-auto"},h("h1",{key:"ebc3dc11334fa49479a1d071cf9a89bf204ca8ff",class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{key:"70795495de8e8f69488b2cebb2f8c5f1c2ace243",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.textImport)),h("div",{key:"a9f4df9d99623c686d22ed200bddb7657984a4f8",class:"max-w-72 mx-auto mb-5"},h("div",{key:"c9a0fedecd1e036f9a84a12aaf44ac6fd8bde10b",class:"mb-0.5"},h("nl-select",{key:"3db03a9a4fd78f544f670c6b1917af67ca818696",onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{key:"fc392301b3553c3fea01ab17341d8e0c829af408",class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{key:"e0dd51b7f1f9fe7ca367f309ea945cf5feffedf2",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4316dfbf51fb06b68f55d34bffe4450c29fc273c",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dfbd68892ba44c72d4c319725dc82cf3a1af7d96",disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlOtpMigrateStyle0}},[0,"nl-otp-migrate",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],textImport:[1,"text-import"],services:[16]}]);function defineCustomElement$f(){typeof customElements>"u"||["nl-otp-migrate","button-base","nl-select"].forEach(o=>{switch(o){case"nl-otp-migrate":customElements.get(o)||customElements.define(o,NlImportFlow);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$f();const nlPreviouslyLoggedCss=baseCss,NlPreviouslyLoggedStyle0=nlPreviouslyLoggedCss,NlPreviouslyLogged=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSwitchAccount=createEvent(this,"nlSwitchAccount",7),this.nlLoginRecentAccount=createEvent(this,"nlLoginRecentAccount",7),this.nlRemoveRecent=createEvent(this,"nlRemoveRecent",7),this.titlePage="Your profiles",this.description="Switch between active profiles or choose a recent one for fast login.",this.accounts=[],this.recents=[]}handleGoToWelcome(){state.path=[CURRENT_MODULE.WELCOME]}switchToWelcomeIfEmpty(){this.recents.length||this.accounts.length||(state.path=[CURRENT_MODULE.WELCOME])}watchAccounts(){this.switchToWelcomeIfEmpty()}watchRecents(){this.switchToWelcomeIfEmpty()}handleRemoveRecent(o){this.nlRemoveRecent.emit(o)}handleSwitch(o){this.nlSwitchAccount.emit(o)}handleLoginRecentAccount(o){this.nlLoginRecentAccount.emit(o)}render(){return h(Fragment,{key:"0b747732fe31ffb2d687859a8d5f5452de06cd82"},h("div",{key:"b696865acec55c2dc0f6f3ecf6360028f3911136",class:"p-4 pt-0 overflow-y-auto"},h("h1",{key:"156d95e32b1f14cdccfeabb2cb518bbba51b5da6",class:"nl-title font-bold text-center text-4xl"},this.titlePage),h("p",{key:"1d07d29dda5338c71c7831d4550c99af8717012d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3776d52ca658395479d7aaba1d96b707b144da5d",class:"p-4"},!!this.accounts.length&&h("div",{key:"77d80f7e11fd0ad09c5fa13c8b39939a9c011641",class:"max-w-96 mx-auto"},h("p",{key:"f32b9358755c561781e840383a2bc6b2bfe5c392",class:"nl-description font-medium text-sm pb-1.5"},"Active profiles"),h("ul",{key:"789082d6f3ad3d75ebe461cde35846d0ff37e912",class:"p-2 rounded-lg border border-blue-200 flex flex-col w-full gap-0.5"},this.accounts.map(o=>{const s=!!o?.picture,r=o.name||o.nip05||o.pubkey,i=!!r;return h("li",{onClick:()=>this.handleSwitch(o),class:"group hover:bg-gray-400 flex cursor-pointer gap-x-3.5 py-2 px-3 rounded-lg text-sm items-center justify-between"},h("div",{class:"flex items-center gap-x-3.5 w-full"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-2px] right-[-2px] bg-white border-2 border-white rounded-xl"},h("div",{class:"active h-1.5 w-1.5 bg-green-500 rounded-xl"})),h("div",{class:"group-hover:border-blue-400 uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?r[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},r),h("nl-login-status",{info:o}))))}))),!!this.recents.length&&h("div",{key:"e89d6cda8386575a0a87a2188a89e5d929b55e8d",class:"max-w-96 mx-auto pt-5"},h("p",{key:"811958459f3694f5e31c2f22c75611c49973b17b",class:"nl-description font-medium text-sm pb-1.5"},"Recent profiles"),h("ul",{key:"0c042b8bec46a9871551bf2965eb9f561b012f22",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.recents.map(o=>{const s=!!o?.picture,r=o.name||o.nip05||o.pubkey,i=!!r;return h("li",{onClick:()=>this.handleLoginRecentAccount(o),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-400 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-3px] right-[-3px] bg-white border border-white rounded-xl"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-3 h-3"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?r[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},r),h("nl-login-status",{info:o})),h("svg",{onClick:a=>{a.stopPropagation(),this.handleRemoveRecent(o)},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full max-w-6 h-6 text-red-500 hover:text-red-600 ml-auto"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})))})))),h("div",{key:"f70f67171d6727d25b9a38bdf48730146c46f4f2",class:"p-4 overflow-y-auto"},h("p",{key:"7289d6c89d90db640ecc63603657280dec8d3a82",class:"nl-footer font-light text-center text-sm max-w-96 mx-auto"},"You can also"," ",h("span",{key:"5c0d9e2954a37fc013d459a78b8a056b916cdd62",onClick:()=>this.handleGoToWelcome(),class:"cursor-pointer pb-3 text-blue-500"},"add another profile"))))}static get watchers(){return{accounts:["watchAccounts"],recents:["watchRecents"]}}static get style(){return NlPreviouslyLoggedStyle0}},[0,"nl-previously-logged",{titlePage:[1,"title-page"],description:[1],accounts:[16],recents:[16]},void 0,{accounts:["watchAccounts"],recents:["watchRecents"]}]);function defineCustomElement$e(){typeof customElements>"u"||["nl-previously-logged","nl-login-status"].forEach(o=>{switch(o){case"nl-previously-logged":customElements.get(o)||customElements.define(o,NlPreviouslyLogged);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$e();const nlSigninCss=baseCss,NlSigninStyle0=nlSigninCss,NlSignin=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect to key store",this.description="Please enter your user name.",this.isGood=!1}handleInputChange(o){state.nlSignin.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSignin.loginName)}render(){return h(Fragment,{key:"70d5c41620a53b3b84157044f33fdce851d9054d"},h("div",{key:"f8880d45479ef512694fe1300a3c99df8dc756f2",class:"p-4 overflow-y-auto"},h("h1",{key:"fb0379faf61fa39d283fd2d159932b0dba56ed60",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"389dcc582e456ba3241a202aa77026b5fe1f2f1c",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"0cbc1dd3dd3e8437d5f1be8c5612a48ebf589a73",class:"max-w-72 mx-auto"},h("div",{key:"6d8d1a649d6f9b4ec39e91cb50880ec55ae34469",class:"relative mb-2"},h("input",{key:"546c3c63fc1849275b86efdfb8fa5b016ae4282b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"name@domain.com",value:state.nlSignin.loginName}),h("div",{key:"c91b2fb461ca2ee751a0811381a771ed227d1c7b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"cd11d6e2e75a3e3e60696d825f494e49d587abc3",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"dd3d6d8e13a01fdb449dadbb5daa79141ae74217","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"e2aff3f44b41a2365f9c561410c2d8733e93943d",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4f3b61256e93001cbf6cf8e0eea61e73265abd65",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"64e9997f3163465cc99eae8600e7b13251ffe484",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninStyle0}},[0,"nl-signin",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$d(){typeof customElements>"u"||["nl-signin","button-base"].forEach(o=>{switch(o){case"nl-signin":customElements.get(o)||customElements.define(o,NlSignin);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$d();const nlSigninBunkerUrlCss=baseCss,NlSigninBunkerUrlStyle0=nlSigninBunkerUrlCss,NlSigninBunkerUrl=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect with bunker url",this.description="Please enter a bunker url provided by key store.",this.isGood=!1}handleInputChange(o){state.nlSigninBunkerUrl.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSigninBunkerUrl.loginName)}render(){return h(Fragment,{key:"0ac12fea476faa724c8fa9ba34bebbd58c0b324d"},h("div",{key:"94fc0ef392c7d6abedc1bba2c833ff3e734fde23",class:"p-4 overflow-y-auto"},h("h1",{key:"c8426115b8d12e24e349813302360dc37ae935ca",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"804a1e0b2329e78f80470da090cb06fd3165116f",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3dad7e0005f66ad81c616983921455bf77b95c31",class:"max-w-72 mx-auto"},h("div",{key:"3e2f1825061c8f65c300676624d244240abb9590",class:"relative mb-2"},h("input",{key:"048e82df548ed4018684b92a93cd20c6ea60af95",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"bunker://...",value:state.nlSigninBunkerUrl.loginName}),h("div",{key:"29afff805cfc2d5e135ece3d5d791e6a1506294b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"3ca9eb00e319357c690fa7d0027dba1e61d7fb83",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"2914d12af813da649534f1aca80f3b80d1e53193","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})))),h("div",{key:"83617653feed00b5d45b4d8318369a16185ca690",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"3548cd177582a91b8c4b383311f04fd4b8b2002e",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"8ae258e580cae2a08955ff02b4d21601a3be3aee",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninBunkerUrlStyle0}},[0,"nl-signin-bunker-url",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$c(){typeof customElements>"u"||["nl-signin-bunker-url","button-base"].forEach(o=>{switch(o){case"nl-signin-bunker-url":customElements.get(o)||customElements.define(o,NlSigninBunkerUrl);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$c();var browser$1={},canPromise$1=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1$1={};let toSJISFunction;const CODEWORDS_COUNT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];utils$1$1.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return 4*o+17},utils$1$1.getSymbolTotalCodewords=function(o){return CODEWORDS_COUNT[o]},utils$1$1.getBCHDigit=function(o){let s=0;for(;0!==o;)s++,o>>>=1;return s},utils$1$1.setToSJISFunction=function(o){if("function"!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=o},utils$1$1.isKanjiModeEnabled=function(){return void 0!==toSJISFunction},utils$1$1.toSJIS=function(o){return toSJISFunction(o)};var errorCorrectionLevel={},exports;function BitBuffer$1(){this.buffer=[],this.length=0}exports=errorCorrectionLevel,exports.L={bit:1},exports.M={bit:0},exports.Q={bit:3},exports.H={bit:2},exports.isValid=function(o){return o&&void 0!==o.bit&&o.bit>=0&&o.bit<4},exports.from=function(o,s){if(exports.isValid(o))return o;try{return function(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return exports.L;case"m":case"medium":return exports.M;case"q":case"quartile":return exports.Q;case"h":case"high":return exports.H;default:throw new Error("Unknown EC Level: "+r)}}(o)}catch{return s}},BitBuffer$1.prototype={get:function(o){const s=Math.floor(o/8);return 1==(this.buffer[s]>>>7-o%8&1)},put:function(o,s){for(let r=0;r<s;r++)this.putBit(1==(o>>>s-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),o&&(this.buffer[s]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}BitMatrix$1.prototype.set=function(o,s,r,i){const a=o*this.size+s;this.data[a]=r,i&&(this.reservedBit[a]=!0)},BitMatrix$1.prototype.get=function(o,s){return this.data[o*this.size+s]},BitMatrix$1.prototype.xor=function(o,s,r){this.data[o*this.size+s]^=r},BitMatrix$1.prototype.isReserved=function(o,s){return this.reservedBit[o*this.size+s]};var bitMatrix=BitMatrix$1,alignmentPattern={};!function(o){const s=utils$1$1.getSymbolSize;o.getRowColCoords=function(r){if(1===r)return[];const i=Math.floor(r/7)+2,a=s(r),c=145===a?26:2*Math.ceil((a-13)/(2*i-2)),y=[a-7];for(let w=1;w<i-1;w++)y[w]=y[w-1]-c;return y.push(6),y.reverse()},o.getPositions=function(r){const i=[],a=o.getRowColCoords(r),c=a.length;for(let y=0;y<c;y++)for(let w=0;w<c;w++)0===y&&0===w||0===y&&w===c-1||y===c-1&&0===w||i.push([a[y],a[w]]);return i}}(alignmentPattern);var finderPattern={};const getSymbolSize=utils$1$1.getSymbolSize,FINDER_PATTERN_SIZE=7;finderPattern.getPositions=function(o){const s=getSymbolSize(o);return[[0,0],[s-FINDER_PATTERN_SIZE,0],[0,s-FINDER_PATTERN_SIZE]]};var maskPattern={};!function(o){function c(y,w,C){switch(y){case o.Patterns.PATTERN000:return(w+C)%2==0;case o.Patterns.PATTERN001:return w%2==0;case o.Patterns.PATTERN010:return C%3==0;case o.Patterns.PATTERN011:return(w+C)%3==0;case o.Patterns.PATTERN100:return(Math.floor(w/2)+Math.floor(C/3))%2==0;case o.Patterns.PATTERN101:return w*C%2+w*C%3==0;case o.Patterns.PATTERN110:return(w*C%2+w*C%3)%2==0;case o.Patterns.PATTERN111:return(w*C%3+(w+C)%2)%2==0;default:throw new Error("bad maskPattern:"+y)}}o.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o.isValid=function(y){return null!=y&&""!==y&&!isNaN(y)&&y>=0&&y<=7},o.from=function(y){return o.isValid(y)?parseInt(y,10):void 0},o.getPenaltyN1=function(y){const w=y.size;let C=0,T=0,S=0,A=null,I=null;for(let N=0;N<w;N++){T=S=0,A=I=null;for(let G=0;G<w;G++){let Z=y.get(N,G);Z===A?T++:(T>=5&&(C+=T-5+3),A=Z,T=1),Z=y.get(G,N),Z===I?S++:(S>=5&&(C+=S-5+3),I=Z,S=1)}T>=5&&(C+=T-5+3),S>=5&&(C+=S-5+3)}return C},o.getPenaltyN2=function(y){const w=y.size;let C=0;for(let T=0;T<w-1;T++)for(let S=0;S<w-1;S++){const A=y.get(T,S)+y.get(T,S+1)+y.get(T+1,S)+y.get(T+1,S+1);4!==A&&0!==A||C++}return 3*C},o.getPenaltyN3=function(y){const w=y.size;let C=0,T=0,S=0;for(let A=0;A<w;A++){T=S=0;for(let I=0;I<w;I++)T=T<<1&2047|y.get(A,I),I>=10&&(1488===T||93===T)&&C++,S=S<<1&2047|y.get(I,A),I>=10&&(1488===S||93===S)&&C++}return 40*C},o.getPenaltyN4=function(y){let w=0;const C=y.data.length;for(let T=0;T<C;T++)w+=y.data[T];return 10*Math.abs(Math.ceil(100*w/C/5)-10)},o.applyMask=function(y,w){const C=w.size;for(let T=0;T<C;T++)for(let S=0;S<C;S++)w.isReserved(S,T)||w.xor(S,T,c(y,S,T))},o.getBestMask=function(y,w){const C=Object.keys(o.Patterns).length;let T=0,S=1/0;for(let A=0;A<C;A++){w(A),o.applyMask(A,y);const I=o.getPenaltyN1(y)+o.getPenaltyN2(y)+o.getPenaltyN3(y)+o.getPenaltyN4(y);o.applyMask(A,y),I<S&&(S=I,T=A)}return T}}(maskPattern);var errorCorrectionCode={};const ECLevel$1=errorCorrectionLevel,EC_BLOCKS_TABLE=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],EC_CODEWORDS_TABLE=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];errorCorrectionCode.getBlocksCount=function(o,s){switch(s){case ECLevel$1.L:return EC_BLOCKS_TABLE[4*(o-1)+0];case ECLevel$1.M:return EC_BLOCKS_TABLE[4*(o-1)+1];case ECLevel$1.Q:return EC_BLOCKS_TABLE[4*(o-1)+2];case ECLevel$1.H:return EC_BLOCKS_TABLE[4*(o-1)+3];default:return}},errorCorrectionCode.getTotalCodewordsCount=function(o,s){switch(s){case ECLevel$1.L:return EC_CODEWORDS_TABLE[4*(o-1)+0];case ECLevel$1.M:return EC_CODEWORDS_TABLE[4*(o-1)+1];case ECLevel$1.Q:return EC_CODEWORDS_TABLE[4*(o-1)+2];case ECLevel$1.H:return EC_CODEWORDS_TABLE[4*(o-1)+3];default:return}};var polynomial={},galoisField={};const EXP_TABLE=new Uint8Array(512),LOG_TABLE=new Uint8Array(256);(function(){let o=1;for(let s=0;s<255;s++)EXP_TABLE[s]=o,LOG_TABLE[o]=s,o<<=1,256&o&&(o^=285);for(let s=255;s<512;s++)EXP_TABLE[s]=EXP_TABLE[s-255]})(),galoisField.log=function(o){if(o<1)throw new Error("log("+o+")");return LOG_TABLE[o]},galoisField.exp=function(o){return EXP_TABLE[o]},galoisField.mul=function(o,s){return 0===o||0===s?0:EXP_TABLE[LOG_TABLE[o]+LOG_TABLE[s]]},function(o){const s=galoisField;o.mul=function(r,i){const a=new Uint8Array(r.length+i.length-1);for(let c=0;c<r.length;c++)for(let y=0;y<i.length;y++)a[c+y]^=s.mul(r[c],i[y]);return a},o.mod=function(r,i){let a=new Uint8Array(r);for(;a.length-i.length>=0;){const c=a[0];for(let w=0;w<i.length;w++)a[w]^=s.mul(i[w],c);let y=0;for(;y<a.length&&0===a[y];)y++;a=a.slice(y)}return a},o.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let a=0;a<r;a++)i=o.mul(i,new Uint8Array([1,s.exp(a)]));return i}}(polynomial);const Polynomial=polynomial;function ReedSolomonEncoder$1(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder$1.prototype.initialize=function(o){this.degree=o,this.genPoly=Polynomial.generateECPolynomial(this.degree)},ReedSolomonEncoder$1.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(o.length+this.degree);s.set(o);const r=Polynomial.mod(s,this.genPoly),i=this.degree-r.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(r,i),a}return r};var reedSolomonEncoder=ReedSolomonEncoder$1,version={},mode={},versionCheck={isValid:function(o){return!isNaN(o)&&o>=1&&o<=40}},regex$1={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+")(?:.|[\r\n]))+";regex$1.KANJI=new RegExp(kanji,"g"),regex$1.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),regex$1.BYTE=new RegExp(byte,"g"),regex$1.NUMERIC=new RegExp(numeric,"g"),regex$1.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex$1.testKanji=function(o){return TEST_KANJI.test(o)},regex$1.testNumeric=function(o){return TEST_NUMERIC.test(o)},regex$1.testAlphanumeric=function(o){return TEST_ALPHANUMERIC.test(o)},function(o){const s=versionCheck,r=regex$1;o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!s.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},o.getBestModeForData=function(i){return r.testNumeric(i)?o.NUMERIC:r.testAlphanumeric(i)?o.ALPHANUMERIC:r.testKanji(i)?o.KANJI:o.BYTE},o.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},o.isValid=function(i){return i&&i.bit&&i.ccBits},o.from=function(i,a){if(o.isValid(i))return i;try{return function(c){if("string"!=typeof c)throw new Error("Param is not a string");switch(c.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+c)}}(i)}catch{return a}}}(mode),function(o){const s=utils$1$1,r=errorCorrectionCode,i=errorCorrectionLevel,a=mode,c=versionCheck,y=s.getBCHDigit(7973);function w(T,S){return a.getCharCountIndicator(T,S)+4}function C(T,S){let A=0;return T.forEach(function(I){const N=w(I.mode,S);A+=N+I.getBitsLength()}),A}o.from=function(T,S){return c.isValid(T)?parseInt(T,10):S},o.getCapacity=function(T,S,A){if(!c.isValid(T))throw new Error("Invalid QR Code version");void 0===A&&(A=a.BYTE);const I=8*(s.getSymbolTotalCodewords(T)-r.getTotalCodewordsCount(T,S));if(A===a.MIXED)return I;const N=I-w(A,T);switch(A){case a.NUMERIC:return Math.floor(N/10*3);case a.ALPHANUMERIC:return Math.floor(N/11*2);case a.KANJI:return Math.floor(N/13);default:return Math.floor(N/8)}},o.getBestVersionForData=function(T,S){let A;const I=i.from(S,i.M);if(Array.isArray(T)){if(T.length>1)return function(N,G){for(let Z=1;Z<=40;Z++)if(C(N,Z)<=o.getCapacity(Z,G,a.MIXED))return Z}(T,I);if(0===T.length)return 1;A=T[0]}else A=T;return function(N,G,Z){for(let te=1;te<=40;te++)if(G<=o.getCapacity(te,Z,N))return te}(A.mode,A.getLength(),I)},o.getEncodedBits=function(T){if(!c.isValid(T)||T<7)throw new Error("Invalid QR Code version");let S=T<<12;for(;s.getBCHDigit(S)-y>=0;)S^=7973<<s.getBCHDigit(S)-y;return T<<12|S}}(version);var formatInfo={};const Utils$3=utils$1$1,G15=1335,G15_MASK=21522,G15_BCH=Utils$3.getBCHDigit(G15);formatInfo.getEncodedBits=function(o,s){const r=o.bit<<3|s;let i=r<<10;for(;Utils$3.getBCHDigit(i)-G15_BCH>=0;)i^=G15<<Utils$3.getBCHDigit(i)-G15_BCH;return(r<<10|i)^G15_MASK};var segments={};const Mode$4=mode;function NumericData(o){this.mode=Mode$4.NUMERIC,this.data=o.toString()}NumericData.getBitsLength=function(o){return 10*Math.floor(o/3)+(o%3?o%3*3+1:0)},NumericData.prototype.getLength=function(){return this.data.length},NumericData.prototype.getBitsLength=function(){return NumericData.getBitsLength(this.data.length)},NumericData.prototype.write=function(o){let s,r,i;for(s=0;s+3<=this.data.length;s+=3)r=this.data.substr(s,3),i=parseInt(r,10),o.put(i,10);const a=this.data.length-s;a>0&&(r=this.data.substr(s),i=parseInt(r,10),o.put(i,3*a+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(o){this.mode=Mode$3.ALPHANUMERIC,this.data=o}AlphanumericData.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},AlphanumericData.prototype.getLength=function(){return this.data.length},AlphanumericData.prototype.getBitsLength=function(){return AlphanumericData.getBitsLength(this.data.length)},AlphanumericData.prototype.write=function(o){let s;for(s=0;s+2<=this.data.length;s+=2){let r=45*ALPHA_NUM_CHARS.indexOf(this.data[s]);r+=ALPHA_NUM_CHARS.indexOf(this.data[s+1]),o.put(r,11)}this.data.length%2&&o.put(ALPHA_NUM_CHARS.indexOf(this.data[s]),6)};var alphanumericData=AlphanumericData;const Mode$2=mode;function ByteData(o){this.mode=Mode$2.BYTE,this.data="string"==typeof o?(new TextEncoder).encode(o):new Uint8Array(o)}ByteData.getBitsLength=function(o){return 8*o},ByteData.prototype.getLength=function(){return this.data.length},ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(o){for(let s=0,r=this.data.length;s<r;s++)o.put(this.data[s],8)};var byteData=ByteData;const Mode$1=mode,Utils$2=utils$1$1;function KanjiData(o){this.mode=Mode$1.KANJI,this.data=o}KanjiData.getBitsLength=function(o){return 13*o},KanjiData.prototype.getLength=function(){return this.data.length},KanjiData.prototype.getBitsLength=function(){return KanjiData.getBitsLength(this.data.length)},KanjiData.prototype.write=function(o){let s;for(s=0;s<this.data.length;s++){let r=Utils$2.toSJIS(this.data[s]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),o.put(r,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(o){var s={single_source_shortest_paths:function(r,i,a){var c={},y={};y[i]=0;var w,C,T,S,A,I,G=s.PriorityQueue.make();for(G.push(i,0);!G.empty();)for(T in C=(w=G.pop()).value,S=w.cost,A=r[C]||{})A.hasOwnProperty(T)&&(I=S+A[T],(void 0===y[T]||y[T]>I)&&(y[T]=I,G.push(T,I),c[T]=C));if(void 0!==a&&void 0===y[a]){var Z=["Could not find a path from ",i," to ",a,"."].join("");throw new Error(Z)}return c},extract_shortest_path_from_predecessor_list:function(r,i){for(var a=[],c=i;c;)a.push(c),c=r[c];return a.reverse(),a},find_path:function(r,i,a){var c=s.single_source_shortest_paths(r,i,a);return s.extract_shortest_path_from_predecessor_list(c,a)},PriorityQueue:{make:function(r){var i,a=s.PriorityQueue,c={};for(i in r=r||{},a)a.hasOwnProperty(i)&&(c[i]=a[i]);return c.queue=[],c.sorter=r.sorter||a.default_sorter,c},default_sorter:function(r,i){return r.cost-i.cost},push:function(r,i){this.queue.push({value:r,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};o.exports=s})(dijkstra),function(o){const s=mode,r=numericData,i=alphanumericData,a=byteData,c=kanjiData,y=regex$1,w=utils$1$1,C=dijkstra.exports;function T(G){return unescape(encodeURIComponent(G)).length}function S(G,Z,te){const be=[];let me;for(;null!==(me=G.exec(te));)be.push({data:me[0],index:me.index,mode:Z,length:me[0].length});return be}function A(G){const Z=S(y.NUMERIC,s.NUMERIC,G),te=S(y.ALPHANUMERIC,s.ALPHANUMERIC,G);let be,me;return w.isKanjiModeEnabled()?(be=S(y.BYTE,s.BYTE,G),me=S(y.KANJI,s.KANJI,G)):(be=S(y.BYTE_KANJI,s.BYTE,G),me=[]),Z.concat(te,be,me).sort(function(pe,Te){return pe.index-Te.index}).map(function(pe){return{data:pe.data,mode:pe.mode,length:pe.length}})}function I(G,Z){switch(Z){case s.NUMERIC:return r.getBitsLength(G);case s.ALPHANUMERIC:return i.getBitsLength(G);case s.KANJI:return c.getBitsLength(G);case s.BYTE:return a.getBitsLength(G)}}function N(G,Z){let te;const be=s.getBestModeForData(G);if(te=s.from(Z,be),te!==s.BYTE&&te.bit<be.bit)throw new Error('"'+G+'" cannot be encoded with mode '+s.toString(te)+".\n Suggested mode is: "+s.toString(be));switch(te!==s.KANJI||w.isKanjiModeEnabled()||(te=s.BYTE),te){case s.NUMERIC:return new r(G);case s.ALPHANUMERIC:return new i(G);case s.KANJI:return new c(G);case s.BYTE:return new a(G)}}o.fromArray=function(G){return G.reduce(function(Z,te){return"string"==typeof te?Z.push(N(te,null)):te.data&&Z.push(N(te.data,te.mode)),Z},[])},o.fromString=function(G,Z){const be=function(Te,xe){const Re={},Me={start:{}};let Ce=["start"];for(let le=0;le<Te.length;le++){const ae=Te[le],Ie=[];for(let $e=0;$e<ae.length;$e++){const st=ae[$e],ht=""+le+$e;Ie.push(ht),Re[ht]={node:st,lastCount:0},Me[ht]={};for(let vt=0;vt<Ce.length;vt++){const at=Ce[vt];Re[at]&&Re[at].node.mode===st.mode?(Me[at][ht]=I(Re[at].lastCount+st.length,st.mode)-I(Re[at].lastCount,st.mode),Re[at].lastCount+=st.length):(Re[at]&&(Re[at].lastCount=st.length),Me[at][ht]=I(st.length,st.mode)+4+s.getCharCountIndicator(st.mode,xe))}}Ce=Ie}for(let le=0;le<Ce.length;le++)Me[Ce[le]].end=0;return{map:Me,table:Re}}(function(Te){const xe=[];for(let Re=0;Re<Te.length;Re++){const Me=Te[Re];switch(Me.mode){case s.NUMERIC:xe.push([Me,{data:Me.data,mode:s.ALPHANUMERIC,length:Me.length},{data:Me.data,mode:s.BYTE,length:Me.length}]);break;case s.ALPHANUMERIC:xe.push([Me,{data:Me.data,mode:s.BYTE,length:Me.length}]);break;case s.KANJI:xe.push([Me,{data:Me.data,mode:s.BYTE,length:T(Me.data)}]);break;case s.BYTE:xe.push([{data:Me.data,mode:s.BYTE,length:T(Me.data)}])}}return xe}(A(G,w.isKanjiModeEnabled())),Z),me=C.find_path(be.map,"start","end"),pe=[];for(let Te=1;Te<me.length-1;Te++)pe.push(be.table[me[Te]].node);return o.fromArray(pe.reduce(function(xe,Re){const Me=xe.length-1>=0?xe[xe.length-1]:null;return Me&&Me.mode===Re.mode?(xe[xe.length-1].data+=Re.data,xe):(xe.push(Re),xe)},[]))},o.rawSplit=function(G){return o.fromArray(A(G,w.isKanjiModeEnabled()))}}(segments);const Utils$1=utils$1$1,ECLevel=errorCorrectionLevel,BitBuffer=bitBuffer,BitMatrix=bitMatrix,AlignmentPattern=alignmentPattern,FinderPattern=finderPattern,MaskPattern=maskPattern,ECCode=errorCorrectionCode,ReedSolomonEncoder=reedSolomonEncoder,Version=version,FormatInfo=formatInfo,Mode=mode,Segments=segments;function setupFinderPattern(o,s){const r=o.size,i=FinderPattern.getPositions(s);for(let a=0;a<i.length;a++){const c=i[a][0],y=i[a][1];for(let w=-1;w<=7;w++)if(!(c+w<=-1||r<=c+w))for(let C=-1;C<=7;C++)y+C<=-1||r<=y+C||o.set(c+w,y+C,w>=0&&w<=6&&(0===C||6===C)||C>=0&&C<=6&&(0===w||6===w)||w>=2&&w<=4&&C>=2&&C<=4,!0)}}function setupTimingPattern(o){const s=o.size;for(let r=8;r<s-8;r++){const i=r%2==0;o.set(r,6,i,!0),o.set(6,r,i,!0)}}function setupAlignmentPattern(o,s){const r=AlignmentPattern.getPositions(s);for(let i=0;i<r.length;i++){const a=r[i][0],c=r[i][1];for(let y=-2;y<=2;y++)for(let w=-2;w<=2;w++)o.set(a+y,c+w,-2===y||2===y||-2===w||2===w||0===y&&0===w,!0)}}function setupVersionInfo(o,s){const r=o.size,i=Version.getEncodedBits(s);let a,c,y;for(let w=0;w<18;w++)a=Math.floor(w/3),c=w%3+r-8-3,y=1==(i>>w&1),o.set(a,c,y,!0),o.set(c,a,y,!0)}function setupFormatInfo(o,s,r){const i=o.size,a=FormatInfo.getEncodedBits(s,r);let c,y;for(c=0;c<15;c++)y=1==(a>>c&1),o.set(c<6?c:c<8?c+1:i-15+c,8,y,!0),o.set(8,c<8?i-c-1:c<9?15-c-1+1:15-c-1,y,!0);o.set(i-8,8,1,!0)}function setupData(o,s){const r=o.size;let i=-1,a=r-1,c=7,y=0;for(let w=r-1;w>0;w-=2)for(6===w&&w--;;){for(let C=0;C<2;C++)if(!o.isReserved(a,w-C)){let T=!1;y<s.length&&(T=1==(s[y]>>>c&1)),o.set(a,w-C,T),c--,-1===c&&(y++,c=7)}if(a+=i,a<0||r<=a){a-=i,i=-i;break}}}function createData(o,s,r){const i=new BitBuffer;r.forEach(function(y){i.put(y.mode.bit,4),i.put(y.getLength(),Mode.getCharCountIndicator(y.mode,o)),y.write(i)});const a=8*(Utils$1.getSymbolTotalCodewords(o)-ECCode.getTotalCodewordsCount(o,s));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(a-i.getLengthInBits())/8;for(let y=0;y<c;y++)i.put(y%2?17:236,8);return createCodewords(i,o,s)}function createCodewords(o,s,r){const i=Utils$1.getSymbolTotalCodewords(s),a=i-ECCode.getTotalCodewordsCount(s,r),c=ECCode.getBlocksCount(s,r),y=c-i%c,w=Math.floor(i/c),C=Math.floor(a/c),T=C+1,S=w-C,A=new ReedSolomonEncoder(S);let I=0;const N=new Array(c),G=new Array(c);let Z=0;const te=new Uint8Array(o.buffer);for(let xe=0;xe<c;xe++){const Re=xe<y?C:T;N[xe]=te.slice(I,I+Re),G[xe]=A.encode(N[xe]),I+=Re,Z=Math.max(Z,Re)}const be=new Uint8Array(i);let me,pe,Te=0;for(me=0;me<Z;me++)for(pe=0;pe<c;pe++)me<N[pe].length&&(be[Te++]=N[pe][me]);for(me=0;me<S;me++)for(pe=0;pe<c;pe++)be[Te++]=G[pe][me];return be}function createSymbol(o,s,r,i){let a;if(Array.isArray(o))a=Segments.fromArray(o);else{if("string"!=typeof o)throw new Error("Invalid data");{let T=s;if(!T){const S=Segments.rawSplit(o);T=Version.getBestVersionForData(S,r)}a=Segments.fromString(o,T||40)}}const c=Version.getBestVersionForData(a,r);if(!c)throw new Error("The amount of data is too big to be stored in a QR Code");if(s){if(s<c)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+c+".\n")}else s=c;const y=createData(s,r,a),w=Utils$1.getSymbolSize(s),C=new BitMatrix(w);return setupFinderPattern(C,s),setupTimingPattern(C),setupAlignmentPattern(C,s),setupFormatInfo(C,r,0),s>=7&&setupVersionInfo(C,s),setupData(C,y),isNaN(i)&&(i=MaskPattern.getBestMask(C,setupFormatInfo.bind(null,C,r))),MaskPattern.applyMask(i,C),setupFormatInfo(C,r,i),{modules:C,version:s,errorCorrectionLevel:r,maskPattern:i,segments:a}}qrcode.create=function(o,s){if(void 0===o||""===o)throw new Error("No input text");let r,i,a=ECLevel.M;return void 0!==s&&(a=ECLevel.from(s.errorCorrectionLevel,ECLevel.M),r=Version.from(s.version),i=MaskPattern.from(s.maskPattern),s.toSJISFunc&&Utils$1.setToSJISFunction(s.toSJISFunc)),createSymbol(o,r,a,i)};var canvas={},utils$3={};(function(o){function s(r){if("number"==typeof r&&(r=r.toString()),"string"!=typeof r)throw new Error("Color should be defined as hex string");let i=r.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+r);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map(function(c){return[c,c]}))),6===i.length&&i.push("F","F");const a=parseInt(i.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+i.slice(0,6).join("")}}o.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=r.width&&r.width>=21?r.width:void 0;return{width:a,scale:a?4:r.scale||4,margin:null==r.margin||r.margin<0?4:r.margin,color:{dark:s(r.color.dark||"#000000ff"),light:s(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},o.getScale=function(r,i){return i.width&&i.width>=r+2*i.margin?i.width/(r+2*i.margin):i.scale},o.getImageWidth=function(r,i){const a=o.getScale(r,i);return Math.floor((r+2*i.margin)*a)},o.qrToImageData=function(r,i,a){const c=i.modules.size,y=i.modules.data,w=o.getScale(c,a),C=Math.floor((c+2*a.margin)*w),T=a.margin*w,S=[a.color.light,a.color.dark];for(let A=0;A<C;A++)for(let I=0;I<C;I++){let N=4*(A*C+I),G=a.color.light;A>=T&&I>=T&&A<C-T&&I<C-T&&(G=S[y[Math.floor((A-T)/w)*c+Math.floor((I-T)/w)]?1:0]),r[N++]=G.r,r[N++]=G.g,r[N++]=G.b,r[N]=G.a}}})(utils$3),function(o){const s=utils$3;o.render=function(r,i,a){let c=a,y=i;void 0!==c||i&&i.getContext||(c=i,i=void 0),i||(y=function(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),c=s.getOptions(c);const w=s.getImageWidth(r.modules.size,c),C=y.getContext("2d"),T=C.createImageData(w,w);return s.qrToImageData(T.data,r,c),I=w,C.clearRect(0,0,(A=y).width,A.height),A.style||(A.style={}),A.height=I,A.width=I,A.style.height=I+"px",A.style.width=I+"px",C.putImageData(T,0,0),y;var A,I},o.renderToDataURL=function(r,i,a){let c=a;return void 0!==c||i&&i.getContext||(c=i,i=void 0),c||(c={}),o.render(r,i,c).toDataURL(c.type||"image/png",(c.rendererOpts||{}).quality)}}(canvas);var svgTag={};const Utils=utils$3;function getColorAttrib(o,s){const r=o.a/255,i=s+'="'+o.hex+'"';return r<1?i+" "+s+'-opacity="'+r.toFixed(2).slice(1)+'"':i}function svgCmd(o,s,r){let i=o+s;return void 0!==r&&(i+=" "+r),i}function qrToPath(o,s,r){let i="",a=0,c=!1,y=0;for(let w=0;w<o.length;w++){const C=Math.floor(w%s),T=Math.floor(w/s);C||c||(c=!0),o[w]?(y++,w>0&&C>0&&o[w-1]||(i+=c?svgCmd("M",C+r,.5+T+r):svgCmd("m",a,0),a=0,c=!1),C+1<s&&o[w+1]||(i+=svgCmd("h",y),y=0)):a++}return i}svgTag.render=function(o,s,r){const i=Utils.getOptions(s),a=o.modules.size,c=o.modules.data,y=a+2*i.margin,w=i.color.light.a?"<path "+getColorAttrib(i.color.light,"fill")+' d="M0 0h'+y+"v"+y+'H0z"/>':"",C="<path "+getColorAttrib(i.color.dark,"stroke")+' d="'+qrToPath(c,a,i.margin)+'"/>',S='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+'viewBox="0 0 '+y+" "+y+'" shape-rendering="crispEdges">'+w+C+"</svg>\n";return"function"==typeof r&&r(null,S),S};const canPromise=canPromise$1,QRCode=qrcode,CanvasRenderer=canvas,SvgRenderer=svgTag;function renderCanvas(o,s,r,i,a){const c=[].slice.call(arguments,1),y=c.length,w="function"==typeof c[y-1];if(!w&&!canPromise())throw new Error("Callback required as last argument");if(!w){if(y<1)throw new Error("Too few arguments provided");return 1===y?(r=s,s=i=void 0):2!==y||s.getContext||(i=r,r=s,s=void 0),new Promise(function(C,T){try{const S=QRCode.create(r,i);C(o(S,s,i))}catch(S){T(S)}})}if(y<2)throw new Error("Too few arguments provided");2===y?(a=r,r=s,s=i=void 0):3===y&&(s.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=s,s=void 0));try{const C=QRCode.create(r,i);a(null,o(C,s,i))}catch(C){a(C)}}browser$1.create=QRCode.create,browser$1.toCanvas=renderCanvas.bind(null,CanvasRenderer.render),browser$1.toDataURL=renderCanvas.bind(null,CanvasRenderer.renderToDataURL),browser$1.toString=renderCanvas.bind(null,function(o,s,r){return SvgRenderer.render(o,r)});const nlSigninConnectionStringCss=baseCss,NlSigninConnectionStringStyle0=nlSigninConnectionStringCss,NlSigninConnectionString=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleLogin="Connection string",this.description="Scan or copy the connection string with key store app",this.connectionString="",this.isCopy=!1}componentDidLoad(){this.generateQRCode()}generateQRCode(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.connectionString&&o.canvasElement)try{yield browser$1.toCanvas(o.canvasElement,o.connectionString)}catch(s){console.error("Error generating QR Code:",s)}})()}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(o.connectionString),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)}catch(s){console.error("Failed to copy connectionString: ",s)}})()}render(){return h(Fragment,{key:"4dfdad6e2e948203e0dfe7aa8608d95cd3495c41"},h("div",{key:"852159a0231473f13c6452e307b90f02e7efd445",class:"p-4 overflow-y-auto"},h("h1",{key:"07859d4b83c5fb6ac12732f1708db3ba3b700380",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"200d00f3785f4a684c798225f0061d9ef4ed2fa1",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("canvas",{key:"e27335a378a7853fd73cdf0b701a9922f9e87a98",class:"mx-auto mb-2",ref:o=>this.canvasElement=o}),h("div",{key:"5e93edcf3b13f1d02b6feca2a192ef275891032a",class:"px-4"},h("div",{key:"96643d192fc3e3c652027fc7b9da2c8186205b1f",class:"max-w-72 mx-auto"},h("div",{key:"24faf8ea390198fc185f94d77d0ac3faa3c03e9f",class:"relative mb-2"},h("input",{key:"45f531795476a136897925509955fa9fdaf66503",type:"text",class:"nl-input peer py-3 px-4 pe-11 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:this.connectionString,disabled:!0}),h("div",{key:"3f3bb777777890fb68152c94d16cd83abde57cac",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"c99e6d36b5f3e85a03b2922a3984803601ce4747",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"1d72c6d727215e897c88b923f1eb65a83bc9eda9","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"5c40e5fd22377e528bdc3fe77db8975dfe015286","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.isCopy?h("div",{class:"absolute inset-y-0 end-0 flex items-center p-2 rounded-lg"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#00cc00",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))):h("div",{class:"absolute inset-y-0 end-0 flex items-center cursor-pointer p-2 rounded-lg",onClick:()=>this.copyToClipboard()},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"})))),h("div",{key:"26403008de1debe9660fbacda25b6c5eb1ce81c8",class:"mt-10 justify-center items-center flex gap-2"},h("span",{key:"2cc09432eb515db009f4ca5909b8ba943c90bbd6",slot:"icon-start",class:"animate-spin-loading inline-block w-[20px] h-[20px] border-[2px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),h("span",{key:"b2d8a70b65950ec00d9544c4ba50a51bffc48335",class:"nl-footer"},"Waiting for connection")))))}static get style(){return NlSigninConnectionStringStyle0}},[0,"nl-signin-connection-string",{titleLogin:[1,"title-login"],description:[1],connectionString:[1,"connection-string"],isCopy:[32]}]);function defineCustomElement$b(){typeof customElements>"u"||["nl-signin-connection-string"].forEach(o=>{"nl-signin-connection-string"===o&&(customElements.get(o)||customElements.define(o,NlSigninConnectionString))})}defineCustomElement$b();const nlSigninOtpCss=baseCss,NlSigninOtpStyle0=nlSigninOtpCss,NlSigninOtp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginOTPUser=createEvent(this,"nlLoginOTPUser",7),this.nlLoginOTPCode=createEvent(this,"nlLoginOTPCode",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in with DM",this.description="Please enter your user name or npub, and we will send you a direct message with a one-time code.",this.titleLoginOTP="Enter the code",this.descriptionOTP="Please enter the one-time code we sent to you as a direct message on Nostr.",this.isGood=!1}handleInputChange(o){state.isOTP?state.nlSigninOTP.code=o.target.value:(state.nlSigninOTP.loginName=o.target.value,this.nlCheckLogin.emit(state.nlSigninOTP.loginName))}handleLogin(o){o.preventDefault(),state.isOTP?this.nlLoginOTPCode.emit(state.nlSigninOTP.code):this.nlLoginOTPUser.emit(state.nlSigninOTP.loginName)}render(){return h(Fragment,{key:"a93b9af1f6a2a881d75e9aa1e547a63678ad4dc5"},h("div",{key:"ae6c700a09e753e0148b5ddfd27f20c2a0850d3d",class:"p-4 overflow-y-auto"},h("h1",{key:"e0998107834bf9e90b6372580ccb31bb0d726904",class:"nl-title font-bold text-center text-2xl"},state.isOTP?this.titleLoginOTP:this.titleLogin),h("p",{key:"29e894bbfcdfb326ae807055c57fbb32b1b4bfa9",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},state.isOTP?this.descriptionOTP:this.description)),h("div",{key:"911cee576416be96c64d38fc362cdb656293e198",class:"max-w-72 mx-auto"},h("div",{key:"f72d607dd7beb554c248c7c4128de6d33a8f246f",class:"relative mb-2"},h("input",{key:"24e6a78d257e84d4f5c71b4aee31c453a504cd93",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:state.isOTP?"code from direct message":"npub or name@domain",value:state.isOTP?state.nlSigninOTP.code:state.nlSigninOTP.loginName}),h("div",{key:"438171f72c2c64d1754a2d5fda95a7b5d3816894",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"b31663307181bb1d58884a3ecce192728b164b70",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"8b80421658eea7b0b49708c994a9d94b965895f1","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6d184bdf20d124a312e1817e27111de1fd0b8eb1","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"ab8948cbd67e068fc2f113fcc5e61137d799e636",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"719399b9f40ae23ba11ae22e4223314c815c821f",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"b2ce8bbaceeddc82ea079dba280dc04600d7f725",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"7764fb6ecf8452c06047dc7832e274ebccdd6379",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninOtpStyle0}},[0,"nl-signin-otp",{titleLogin:[1,"title-login"],description:[1],titleLoginOTP:[1,"title-login-o-t-p"],descriptionOTP:[1,"description-o-t-p"],isGood:[32]}]);function defineCustomElement$a(){typeof customElements>"u"||["nl-signin-otp","button-base"].forEach(o=>{switch(o){case"nl-signin-otp":customElements.get(o)||customElements.define(o,NlSigninOtp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$a();const nlSigninReadOnlyCss=baseCss,NlSigninReadOnlyStyle0=nlSigninReadOnlyCss,NlSigninReadOnly=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginReadOnly=createEvent(this,"nlLoginReadOnly",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in to read only",this.description="Please enter the user name or npub of any Nostr user.",this.isGood=!1}handleInputChange(o){state.nlSigninReadOnly.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLoginReadOnly.emit(state.nlSigninReadOnly.loginName)}render(){return h(Fragment,{key:"5ff970ee20c505cab00b3c9263dd9a6ebd6b62a8"},h("div",{key:"036a6b49de93c20ed4af3c47c7ecc10c81818f86",class:"p-4 overflow-y-auto"},h("h1",{key:"97951254c835d38f95832882225fdc2b50bf578a",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"e811a52ee24540b018f95ebffd1406330005a5f2",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"ae07b4fbe663e17733b6bd1efaa1c974276c8fd6",class:"max-w-72 mx-auto"},h("div",{key:"0a935603a2742e049bd5b2ca3c1b13f07d63ac2b",class:"relative mb-2"},h("input",{key:"1221b6501de2c739fc1470f82142b623afe4749b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:state.nlSigninReadOnly.loginName}),h("div",{key:"820f77d6c814aea1794463b6216df338c6f0863d",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"9922ba1b7b536ddc8d560d76087fd735e1aa000c",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"250dae1273e5346920bb6d5cad3644c678a9eae8","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"e94192cf4f271cf3477ebe2f186597a5c5a7b474","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"8d548af75b9c39dfe0bf2eeae805e58d2cb324c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"7cc88f5116a24e1b309e320c63c34f5cc8c5b656",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"156e8a30228a8d34009c5cb020588c82f039eac5",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"14082758440bf5ec897629c92faf949f80895be8",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninReadOnlyStyle0}},[0,"nl-signin-read-only",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$9(){typeof customElements>"u"||["nl-signin-read-only","button-base"].forEach(o=>{switch(o){case"nl-signin-read-only":customElements.get(o)||customElements.define(o,NlSigninReadOnly);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$9();const nlSignupCss=baseCss,NlSignupStyle0=nlSignupCss,NlSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSignup=createEvent(this,"nlSignup",7),this.nlCheckSignup=createEvent(this,"nlCheckSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create keys with key store",this.description="Choose some username and a key store service.",this.bunkers="nsec.app,highlighter.com",this.isAvailable=!1}formatServers(o){return o.split(",").map(s=>({name:"@"+s,value:s}))}handleInputChange(o){state.nlSignup.signupName=o.target.value,this.nlCheckSignup.emit(`${o.target.value}@${state.nlSignup.domain}`)}handleDomainSelect(o){state.nlSignup.domain=o.detail,this.nlCheckSignup.emit(`${state.nlSignup.signupName}@${o.detail}`)}handleCreateAccount(o){o.preventDefault(),this.nlSignup.emit(`${state.nlSignup.signupName}@${state.nlSignup.domain}`)}watchBunkersHandler(o){state.nlSignup.servers=this.formatServers(o)}componentWillLoad(){state.nlSignup.servers=this.formatServers(this.bunkers)}render(){return h(Fragment,{key:"f7b56fee1ec9c6dd3632bed5d46c661b090a32cd"},h("div",{key:"a7fd1b6249688b0974a0c56a0573f36eb1f1d7a4",class:"p-4 overflow-y-auto"},h("h1",{key:"01d5a745026ea0a293fd248880f00d335355f5bf",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"1fe9362df4c08bee7966a3d7f06aca0c8c9f9e38",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"15eadc1d7189a9a99efad1c42a430fb316d3ae1a",class:"max-w-72 mx-auto"},h("div",{key:"011c9eb5d2d16cd6b784f0d879fd4f504c522905",class:"relative mb-2"},h("input",{key:"123e130805b229fe68c64765c434a36840cc137e",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Name",value:state.nlSignup.signupName}),h("div",{key:"ee00cfd158acb362567e909a6f90d2651a4acd05",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"bc8a81c9a62cb215efb0cdff30980ee447371ec5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"fb78fc743ec535bb92d30e2b43927d499f6299ca","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"f541cd6ed4d04a52afb093053c6fea85d0926ce1",class:"mb-2"},h("nl-select",{key:"dbce850d0c1d2e1cfdf4ce250978ce508abc173a",onSelectDomain:o=>this.handleDomainSelect(o),selected:0,options:state.nlSignup.servers})),h("div",{key:"a68612eabd83e3f7e61b533fd247f1768554b0c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"25c8a89289071d5fca16b5e8918026c41afb3a77",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"6cbf8ff97e9ebf1bd830e86337219ee386f978ea",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get watchers(){return{bunkers:["watchBunkersHandler"]}}static get style(){return NlSignupStyle0}},[0,"nl-signup",{titleSignup:[1,"title-signup"],description:[1],bunkers:[1],isAvailable:[32]},void 0,{bunkers:["watchBunkersHandler"]}]);function defineCustomElement$8(){typeof customElements>"u"||["nl-signup","button-base","nl-select"].forEach(o=>{switch(o){case"nl-signup":customElements.get(o)||customElements.define(o,NlSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$8();const nlWelcomeCss=baseCss,NlWelcomeStyle0=nlWelcomeCss,NlWelcome=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Welcome to Nostr!",this.description="This website is part of the Nostr network. Log in with your Nostr profile or sign up to join."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"d3fb00029cb12cc8b00f26eaed6bd76e90402363"},h("div",{key:"e41a79654adb620ee433848c965fd872cdfcc58c",class:"p-4 overflow-y-auto"},h("h1",{key:"28e5c6ec6a4e4982a386daff93446db4efcd0737",class:"nl-title font-bold text-center text-4xl"},this.titleWelcome),h("p",{key:"d0afbc9587aafe4d93c547b34f5f55c268b42e48",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"d5570f014a56f326348b8077429c198b55b66683",class:"max-w-52 mx-auto pb-5"},h("div",{key:"3f4095a715c960544264eae1dc809c3bc68de2a8",class:"flex gap-3 flex-col mb-2"},h("button-base",{key:"a154d028e883fb9d9ea1823a5df0d2500bfdb726",titleBtn:"Log in",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_LOGIN)},h("svg",{key:"2b256c1a23f88a3232e59fa3d56c344eae398690",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"bf629d871a100f59c2b465d50f58081290b4300a","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("button-base",{key:"6fdf8ff44483ec67cff96015ebc7d1832a676fa3",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_SIGNUP),titleBtn:"Sign up"},h("svg",{key:"6714790ee5ccb91a6bda3424e515ea273f2163f9",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"e31e8d7667a33a8713387f8eb73252a4016b5de4","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlWelcomeStyle0}},[0,"nl-welcome",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$7(){typeof customElements>"u"||["nl-welcome","button-base"].forEach(o=>{switch(o){case"nl-welcome":customElements.get(o)||customElements.define(o,NlWelcome);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$7();const nlWelcomeSigninCss=baseCss,NlWelcomeSigninStyle0=nlWelcomeSigninCss,NlWelcomeSignIn=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginExtension=createEvent(this,"nlLoginExtension",7),this.titleWelcome="Log in",this.hasExtension=!1,this.authMethods=[],this.hasOTP=!1}handleChangeScreen(o){state.path=[...state.path,o],o===CURRENT_MODULE.EXTENSION&&this.nlLoginExtension.emit()}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}renderSignInWithExtension(){return h("button-base",{onClick:()=>this.handleChangeScreen(CURRENT_MODULE.EXTENSION),titleBtn:"With extension"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})))}render(){return h(Fragment,{key:"49598c3d31f3a4c2fc9d3579283163c43f19b6c7"},h("div",{key:"6b3c16634c1dc4be65c425edb65f5070990fee91",class:"p-4 overflow-y-auto"},h("h1",{key:"1f60d1f489afaa42c47e28563fadc0fa7b46a3df",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"01507d2b6d0bba54527e12d664ddefd7244a9697",class:"max-w-52 mx-auto pb-5"},h("div",{key:"82deccfff688e1cbb67191c90a3ca6f22f285744",class:"flex gap-3 flex-col"},this.allowAuthMethod("connect")&&h("button-base",{key:"177bbcf244409242ab1c7c03cfb60300e848fed2",titleBtn:"Connect",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.CONNECT)},h("svg",{key:"1fa2c695562eb093430389253dd7f94733d63976",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"16323646bde098c55c787cc90b66b4952c803542","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))),this.allowAuthMethod("readOnly")&&h("button-base",{key:"9b6d546d7f34ca197baa13ec0f280890ff0d8c7f",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_READ_ONLY),titleBtn:"Read only"},h("svg",{key:"2ab8c1763d88e7c5678cafc3c15817d60a7bb6c0",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"faa5a61e8d35daf7fbb64fc5783c23b8881d8100","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6083db853e798c9764b11ed4701dab048d4f30f2","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.hasOTP&&this.allowAuthMethod("otp")&&h("button-base",{key:"f45b1afed2d9b10a2d77eaa59b1aa168eabb191d",titleBtn:"One-time code",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_OTP)},h("svg",{key:"84fbe5952fecd429f8074c65675d2111eb2d7fe8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"83dc6eaa4e128065dfd7e97f0950cd00f0be6d54","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),this.hasExtension&&this.allowAuthMethod("extension")&&this.renderSignInWithExtension(),!this.allowAuthMethod("connect")&&!this.hasExtension&&h("p",{key:"f94e3302a807855f45855302482542e6f79f8ec8",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"No Nostr extension!"),!this.allowAuthMethod("connect")&&this.hasExtension&&!this.allowAuthMethod("extension")&&h("p",{key:"552762dfd2b9d24c7279c1f500ccd94500e35be1",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Use advanced options."))))}static get style(){return NlWelcomeSigninStyle0}},[0,"nl-welcome-signin",{titleWelcome:[1,"title-welcome"],hasExtension:[4,"has-extension"],authMethods:[16],hasOTP:[4,"has-o-t-p"]}]);function defineCustomElement$6(){typeof customElements>"u"||["nl-welcome-signin","button-base"].forEach(o=>{switch(o){case"nl-welcome-signin":customElements.get(o)||customElements.define(o,NlWelcomeSignIn);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$6();const nlWelcomeSignupCss=baseCss,NlWelcomeSignupStyle0=nlWelcomeSignupCss,NlWelcomeSignUp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Sign up",this.description="Nostr profiles are based on cryptographic keys. You can create keys right here, or with a key storage app."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"95a13ee24b5203b1f1fe9f355524abba9dc55dcb"},h("div",{key:"23209055b5ab42ed4e147f0d7e38ec320437f783",class:"p-4 overflow-y-auto"},h("h1",{key:"8f06a983aa9ca0caa01dd35d4907552696ffc996",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome),h("p",{key:"14d88998c67951b047b79dd0d9358ae2b7a19895",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"62344241204e1c08e2d497b0bbc28b9aff3d7640",class:"max-w-52 mx-auto pb-5"},h("div",{key:"641c269ff23d94330acf465e62d294ce42b05212",class:"flex gap-3 flex-col"},h("button-base",{key:"aaa7f28f647f05506e93756df2895cef952b2912",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOCAL_SIGNUP),titleBtn:"Create keys"},h("svg",{key:"2e8c77cdd122a51638f9a2e606d9ff33581b84c7",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"b6d0e6199dcc11a7ac9f4ba47c86219e325fa987","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{key:"3c239d1df872ac71424478fd3f6857c5a9148ef6",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.SIGNUP),titleBtn:"With key store"},h("svg",{key:"4600c4e8bb4e62d9a0303ae1abc464c6d6fc7899",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"c36bef296a15f3bb43c984ed083a8defeb530ab4","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))))))}static get style(){return NlWelcomeSignupStyle0}},[0,"nl-welcome-signup",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$5(){typeof customElements>"u"||["nl-welcome-signup","button-base"].forEach(o=>{switch(o){case"nl-welcome-signup":customElements.get(o)||customElements.define(o,NlWelcomeSignUp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$5();const nlAuthCss=baseCss,NlAuthStyle0=nlAuthCss,NlAuth=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.nlChangeDarkMode=createEvent(this,"nlChangeDarkMode",7),this.theme="default",this.bunkers="",this.startScreen=CURRENT_MODULE.WELCOME,this.authMethods=[],this.hasExtension=!1,this.hasOTP=!1,this.isLoading=!1,this.isLoadingExtension=!1,this.isOTP=!1,this.authUrl="",this.iframeUrl="",this.error="",this.localSignup=!1,this.accounts=[],this.recents=[],this.darkMode=!1,this.welcomeTitle="",this.welcomeDescription="",this.connectionString="",this.connectionStringServices=[]}watchLocalSignupHandler(o){state.localSignup=o}watchLoadingHandler(o){state.isLoading=o}watchLoadingExtensionHandler(o){state.isLoadingExtension=o}watchOTPHandler(o){state.isOTP=o}watchAuthUrlHandler(o){state.authUrl=o}watchIframeUrlHandler(o){state.iframeUrl=o}watchErrorHandler(o){state.error=o}handleClose(){this.nlCloseModal.emit()}handleChangeDarkMode(){this.nlChangeDarkMode.emit(!this.darkMode)}componentWillLoad(){state.path=[this.startScreen],state.localSignup=this.localSignup,state.error="",state.iframeUrl="",state.authUrl="",state.isLoading=!1,state.isLoadingExtension=!1,state.isOTP=!1,console.log("path",state.path)}handleClickToBack(){state.path.pop(),state.path=[...state.path],state.isLoading=!1,state.isLoadingExtension=!1,state.authUrl="",state.isOTP=!1}switchSignSignUpStrategy(o){state.path=CURRENT_MODULE.LOCAL_SIGNUP!==o?[CURRENT_MODULE.WELCOME,o]:[CURRENT_MODULE.WELCOME,CURRENT_MODULE.WELCOME_SIGNUP,o]}render(){const o="w-full h-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto flex items-center "+(this.darkMode?"dark":""),s=state.path.at(-1),r=state.isOTP||s!==CURRENT_MODULE.INFO&&s!==CURRENT_MODULE.CONFIRM_LOGOUT&&s!==CURRENT_MODULE.IMPORT_FLOW&&s!==CURRENT_MODULE.WELCOME&&s!==CURRENT_MODULE.EXTENSION&&s!==CURRENT_MODULE.IFRAME&&s!==CURRENT_MODULE.PREVIOUSLY_LOGGED,i=s!==CURRENT_MODULE.IFRAME&&(!this.authMethods.length||!this.localSignup&&this.authMethods.includes("connect")||this.localSignup&&this.authMethods.includes("local"));return h("div",{class:`theme-${this.theme}`,dir:"ltr"},h("div",{class:o},h("div",{onClick:()=>this.handleClose(),class:"absolute top-0 left-0 w-full h-full bg-gray-500 bg-opacity-75 z-[80]"}),h("div",{class:"nl-bg relative z-[81] w-full flex flex-col rounded-xl sm:max-w-lg sm:w-full sm:mx-auto"},h("div",{class:"flex justify-between items-center py-3 px-4"},h("div",{class:"flex gap-2 items-center"},h("svg",{class:"w-7 h-7",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("p",{class:"font-bold nl-logo text-base"},"Nostr ",h("span",{class:"font-light"},"Login"))),h("div",{class:"flex gap-1"},h("button",{onClick:()=>this.handleChangeDarkMode(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Change theme"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",this.darkMode?{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))),!state.isLoading&&h("button",{onClick:()=>state.path=[...state.path,CURRENT_MODULE.INFO],type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Info"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))))),state.path.length>1&&!state.isLoading&&h("div",{class:"p-4"},h("button",{onClick:()=>this.handleClickToBack(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600","data-hs-overlay":"#hs-vertically-centered-modal"},h("span",{class:"sr-only"},"Back"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})))),state.isLoading||state.authUrl?h("nl-loading",{path:s}):h(Fragment,null,(()=>{if(state.isOTP)return h("nl-signin-otp",null);switch(s){case CURRENT_MODULE.WELCOME:return h("nl-welcome",{titleWelcome:this.welcomeTitle||void 0,description:this.welcomeDescription||void 0});case CURRENT_MODULE.LOGIN:return h("nl-signin",null);case CURRENT_MODULE.SIGNUP:return h("nl-signup",{bunkers:this.bunkers});case CURRENT_MODULE.LOCAL_SIGNUP:return h("nl-local-signup",null);case CURRENT_MODULE.CONFIRM_LOGOUT:return h("nl-confirm-logout",null);case CURRENT_MODULE.IMPORT_FLOW:return h("nl-import-flow",{services:this.connectionStringServices});case CURRENT_MODULE.IMPORT_OTP:return h("nl-otp-migrate",{services:this.connectionStringServices});case CURRENT_MODULE.INFO:return h("nl-info",null);case CURRENT_MODULE.EXTENSION:return h("nl-info-extension",null);case CURRENT_MODULE.LOGIN_READ_ONLY:return h("nl-signin-read-only",null);case CURRENT_MODULE.LOGIN_BUNKER_URL:return h("nl-signin-bunker-url",null);case CURRENT_MODULE.LOGIN_OTP:return h("nl-signin-otp",null);case CURRENT_MODULE.WELCOME_LOGIN:return h("nl-welcome-signin",{hasOTP:this.hasOTP,authMethods:this.authMethods,hasExtension:this.hasExtension});case CURRENT_MODULE.WELCOME_SIGNUP:return h("nl-welcome-signup",null);case CURRENT_MODULE.CONNECTION_STRING:return h("nl-signin-connection-string",{connectionString:this.connectionString});case CURRENT_MODULE.CONNECT:return h("nl-connect",{connectionStringServices:this.connectionStringServices,authMethods:this.authMethods});case CURRENT_MODULE.PREVIOUSLY_LOGGED:return h("nl-previously-logged",{accounts:this.accounts,recents:this.recents});case CURRENT_MODULE.IFRAME:return h("nl-iframe",{iframeUrl:this.authUrl});default:return h("nl-welcome",null)}})(),r&&h(Fragment,null,s===CURRENT_MODULE.WELCOME_SIGNUP||s===CURRENT_MODULE.SIGNUP||s===CURRENT_MODULE.LOCAL_SIGNUP?h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you already have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(CURRENT_MODULE.WELCOME_LOGIN),class:"cursor-pointer text-blue-400"},"log in"),".")):i&&h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you don't have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(this.localSignup?CURRENT_MODULE.LOCAL_SIGNUP:CURRENT_MODULE.WELCOME_SIGNUP),class:"cursor-pointer text-blue-400"},"sign up"),".")))))))}static get watchers(){return{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}}static get style(){return NlAuthStyle0}},[1,"nl-auth",{theme:[1025],bunkers:[1],startScreen:[1,"start-screen"],authMethods:[16],hasExtension:[4,"has-extension"],hasOTP:[4,"has-o-t-p"],isLoading:[4,"is-loading"],isLoadingExtension:[4,"is-loading-extension"],isOTP:[4,"is-o-t-p"],authUrl:[1,"auth-url"],iframeUrl:[1,"iframe-url"],error:[1],localSignup:[4,"local-signup"],accounts:[1040],recents:[1040],darkMode:[1028,"dark-mode"],welcomeTitle:[1,"welcome-title"],welcomeDescription:[1,"welcome-description"],connectionString:[1,"connection-string"],connectionStringServices:[16]},void 0,{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}]);function defineCustomElement$4(){typeof customElements>"u"||["nl-auth","button-base","nl-confirm-logout","nl-connect","nl-iframe","nl-import-flow","nl-info","nl-info-extension","nl-loading","nl-local-signup","nl-login-status","nl-otp-migrate","nl-previously-logged","nl-select","nl-signin","nl-signin-bunker-url","nl-signin-connection-string","nl-signin-otp","nl-signin-read-only","nl-signup","nl-welcome","nl-welcome-signin","nl-welcome-signup"].forEach(o=>{switch(o){case"nl-auth":customElements.get(o)||customElements.define(o,NlAuth);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-confirm-logout":customElements.get(o)||defineCustomElement$p();break;case"nl-connect":customElements.get(o)||defineCustomElement$o();break;case"nl-iframe":customElements.get(o)||defineCustomElement$n();break;case"nl-import-flow":customElements.get(o)||defineCustomElement$l();break;case"nl-info":customElements.get(o)||defineCustomElement$k();break;case"nl-info-extension":customElements.get(o)||defineCustomElement$j();break;case"nl-loading":customElements.get(o)||defineCustomElement$i();break;case"nl-local-signup":customElements.get(o)||defineCustomElement$h();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g();break;case"nl-otp-migrate":customElements.get(o)||defineCustomElement$f();break;case"nl-previously-logged":customElements.get(o)||defineCustomElement$e();break;case"nl-select":customElements.get(o)||defineCustomElement$m();break;case"nl-signin":customElements.get(o)||defineCustomElement$d();break;case"nl-signin-bunker-url":customElements.get(o)||defineCustomElement$c();break;case"nl-signin-connection-string":customElements.get(o)||defineCustomElement$b();break;case"nl-signin-otp":customElements.get(o)||defineCustomElement$a();break;case"nl-signin-read-only":customElements.get(o)||defineCustomElement$9();break;case"nl-signup":customElements.get(o)||defineCustomElement$8();break;case"nl-welcome":customElements.get(o)||defineCustomElement$7();break;case"nl-welcome-signin":customElements.get(o)||defineCustomElement$6();break;case"nl-welcome-signup":customElements.get(o)||defineCustomElement$5()}})}defineCustomElement$4();const NlButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}render(){return h("button-base",{key:"9f7936090efc7263cce71d1ad89490d7f5445991",theme:this.theme,darkMode:this.darkMode,titleBtn:this.titleBtn,disabled:this.disabled})}},[1,"nl-button",{theme:[1],darkMode:[4,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$3(){typeof customElements>"u"||["nl-button","button-base"].forEach(o=>{switch(o){case"nl-button":customElements.get(o)||customElements.define(o,NlButton);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$3();const nlChangeAccountCss=baseCss,NlChangeAccountStyle0=nlChangeAccountCss,NLChangeAccount=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleSwitchAccount=createEvent(this,"handleSwitchAccount",7),this.isOpen=!1,this.options=[],this.accounts=[],this.currentAccount=null,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}watchAccountsHandler(o){this.options=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.handleSwitchAccount.emit(o)}handleOpenModal(){this.handleOpenWelcomeModal.emit()}render(){const o=(this.isOpen?"listClass flex flex-col gap-2":"hidden")+" w-full nl-select-list absolute z-10 left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500",r=this.options&&this.currentAccount?this.options.filter(i=>i.pubkey!==this.currentAccount.pubkey||i.authMethod!==this.currentAccount.authMethod):[];return h("div",{key:"4e15e39f7ac6a552bfc772396e3e9ef8eeca95cc",class:`theme-${this.themeState}`},h("div",{key:"eae10769ce35dc4cc072d2361c1ee1390c79c822",class:"relative",ref:i=>this.wrapperRef=i},h("button",{key:"e585a44168809f27b99201f7e13bd5db5e4f6569",ref:i=>this.buttonRef=i,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"006ed9a67b57227d4dab51f0b6bcb8290cd9d3ac",class:"text-gray-500"},"Switch profile"),h("svg",{key:"5f824a479165929698fab31b8837b89418587652",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"600914907723c9f8d01a15da357ccb825c1d1e6a",d:"m6 9 6 6 6-6"}))),h("ul",{key:"9b5b68724a3bce995e6b8b0a9d0eb653baedf79a",ref:i=>this.ulRef=i,class:o},this.options&&r.map(i=>{const c=i.name||i.nip05||i.pubkey;return h("li",{onClick:()=>this.handleChange(i),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{class:"uppercase font-bold w-full max-w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},i?.picture?h("img",{class:"w-full rounded-full",src:i.picture,alt:"Logo"}):c?c[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"truncate overflow-hidden"},c),h("nl-login-status",{info:i})))}),h("li",{key:"936f2b75ca2dfca3483650d5d62fc50182cfc8f2",class:"first:pt-0 pt-2 border-t-[1px] first:border-none border-gray-300"},h("div",{key:"be0b4f29e70d8e2bc9fd1cc04c0fb43ad3dd5cac",onClick:()=>this.handleOpenModal(),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{key:"bdd2a67e5763726666fcea91b0e7de67fe855994",class:"uppercase font-bold w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},h("svg",{key:"f3a258f3e510ccb83b95bf3abecf65c248c8b0f1",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4"},h("path",{key:"dafaa898f3e042531a923a9a77b94511895c6102","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"}))),"Add profile")))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}}static get style(){return NlChangeAccountStyle0}},[0,"nl-change-account",{accounts:[16],currentAccount:[16],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],options:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}]);function defineCustomElement$2(){typeof customElements>"u"||["nl-change-account","nl-login-status"].forEach(o=>{switch(o){case"nl-change-account":customElements.get(o)||customElements.define(o,NLChangeAccount);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$2();const nlDialogCss=baseCss,NlDialogStyle0=nlDialogCss,NlDialog=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}componentDidLoad(){var o;null===(o=this.dialogElement)||void 0===o||o.showModal()}disconnectedCallback(){var o;null===(o=this.dialogElement)||void 0===o||o.close()}render(){return h("dialog",{key:"9c20328d937c160bcb9b9bf731d744721e84f189",ref:o=>this.dialogElement=o,class:"m-auto nl-banner-dialog"},h("slot",{key:"2e047d7c9e8904d590c588b73a5480cb1605ff86"}))}static get style(){return NlDialogStyle0}},[1,"nl-dialog"]);function defineCustomElement$1(){typeof customElements>"u"||["nl-dialog"].forEach(o=>{"nl-dialog"===o&&(customElements.get(o)||customElements.define(o,NlDialog))})}defineCustomElement$1();const nlBannerCss=baseCss,NlBannerStyle0=nlBannerCss,NlBanner=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.handleNotifyConfirmBanner=createEvent(this,"handleNotifyConfirmBanner",7),this.handleNotifyConfirmBannerIframe=createEvent(this,"handleNotifyConfirmBannerIframe",7),this.handleLoginBanner=createEvent(this,"handleLoginBanner",7),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleConfirmLogout=createEvent(this,"handleConfirmLogout",7),this.handleImportModal=createEvent(this,"handleImportModal",7),this.theme="default",this.darkMode=!1,this.hiddenMode=!1,this.titleBanner="",this.isOpen=!1,this.isLoading=!1,this.notify=null,this.userInfo=null,this.accounts=[],this.isUserImgError=!1,this.domain="",this.mode="",this.url="",this.isOpenConfirm=!1}watchNotifyHandler(o){var s,r,i,a;this.isOpen=!0,this.isOpenConfirm=!0,this.domain=(null===(s=this.userInfo)||void 0===s?void 0:s.domain)||(null===(a=null===(i=null===(r=this.userInfo)||void 0===r?void 0:r.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[1])||"",this.mode=o.mode,this.url=o.url,this.mode||(this.isOpenConfirm=!1,this.isOpen=!1)}handleOpen(){this.userInfo?this.isOpen=!0:this.handleOpenWelcomeModal.emit()}handleClose(){this.isOpen=!1}handleLogin(){this.handleLoginBanner.emit(METHOD_MODULE.LOGIN),this.handleClose()}handleSignup(){this.handleLoginBanner.emit(METHOD_MODULE.SIGNUP),this.handleClose()}handleImport(){this.handleImportModal.emit(),this.handleClose()}handleLogout(){if(localStorage.getItem("backupKey"))return this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose(),void localStorage.removeItem("backupKey");"local"===this.userInfo.authMethod?this.handleConfirmLogout.emit():this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose()}handleConfirm(){switch(this.mode){case"authUrl":this.handleNotifyConfirmBanner.emit(this.url);break;case"iframeAuthUrl":this.handleNotifyConfirmBannerIframe.emit(this.url)}this.handleClose()}render(){var o,s,r,i,a,c;const y=!(null===(o=this.userInfo)||void 0===o||!o.picture),w=(null===(s=this.userInfo)||void 0===s?void 0:s.name)||(null===(a=null===(i=null===(r=this.userInfo)||void 0===r?void 0:r.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[0])||(null===(c=this.userInfo)||void 0===c?void 0:c.pubkey)||"",C=!!w,T=this.userInfo&&"local"===this.userInfo.authMethod,S=localStorage.getItem("backupKey"),A=h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),I=h(Fragment,null,h("div",{class:"block w-[48px] h-[46px] relative z-10"},h("div",{onClick:()=>this.handleOpen(),class:"flex w-52 h-[46px] items-center pl-[11px]"},h("span",{class:(this.isLoading?"w-5 h-5 border-[2px] mr-3.5 ml-[2px] opacity-1":"w-0 h-0 border-[0px] mr-0 opacity-0 ml-0")+" animate-spin transition-all duration-300 ease-in-out inline-block border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),this.userInfo?h("div",{class:"uppercase font-bold w-6 h-6 mr-2 rounded-full border border-gray-200 flex justify-center items-center"},y?this.isUserImgError?A:h("img",{class:"w-full rounded-full",src:this.userInfo.picture,alt:"Logo",onError:()=>this.isUserImgError=!0}):C?w[0]:A):h("div",{class:"flex justify-center items-center"},h("svg",{class:"w-6 h-6",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),this.isOpen&&h("span",{class:"px-2"},h("b",null,"Nostr")," Login")),this.isOpen&&C&&h("div",{class:"show-slow truncate w-16 text-xs"},w),this.isOpen&&C&&h("nl-login-status",{info:this.userInfo}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:(this.isOpen?"z-20":"z-0")+" nl-action-button absolute right-2 top-2 z-0 show-slow grid place-items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))),h("div",{class:"p-3 show-slow"},this.isOpenConfirm?h("div",null,h("div",{class:"w-8 h-8 p-1/2 rounded-full border border-gray-200 bg-white mb-2 mt-2 show-slow m-auto"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#5a68ff",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("p",{class:"mb-2 text-center max-w-40 min-w-40 mx-auto"},"timeout"===this.mode?"Keys not responding, check your key storage app":`Confirmation required at ${this.domain}`),"timeout"===this.mode?h("a",{onClick:()=>this.handleClose(),href:`https://${this.domain}`,target:"_blank",class:"nl-button text-nowrap py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},"Go to ",this.domain):"rebind"===this.mode?h("iframe",{src:this.url,width:"180",height:"80"}):h("button-base",{onClick:()=>this.handleConfirm(),titleBtn:"Confirm"})):h("div",null,h("div",null,this.titleBanner&&h("p",{class:"mb-2 text-center show-slow max-w-40 min-w-40 mx-auto"},this.titleBanner),T&&h(Fragment,null,!S&&h("p",{class:"mb-2 text-center show-slow text-red-400 max-w-40 min-w-40 mx-auto"},"Your profile may be lost if you close this tab"),h("div",{class:"mb-2"},h("button-base",{onClick:()=>this.handleImport(),theme:"lemonade",titleBtn:"Back up profile"}))),h("div",{class:"mb-2"},h("nl-change-account",{currentAccount:this.userInfo,accounts:this.accounts})),this.userInfo?h("button-base",{onClick:()=>this.handleLogout(),titleBtn:"Log out"}):h("div",null,h("button-base",{onClick:()=>this.handleLogin(),titleBtn:"Log in"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{onClick:()=>this.handleSignup(),titleBtn:"Sign up"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))))),G=!!function Z(te,be){be=be||document.body;const me=Array.from(be.querySelectorAll(te)),pe=function(Te){Z(te,Te).forEach(xe=>{me.includes(xe)||me.push(xe)})};be.shadowRoot&&pe(be.shadowRoot);for(const Te of Array.from(be.querySelectorAll("*")))Te.shadowRoot&&pe(Te.shadowRoot);return me}("dialog").find(Z=>Z.open&&!Z.classList.contains("nl-banner-dialog"));return console.log("nostr-login need dialog",G),h("div",{class:`theme-${this.theme} ${!this.isOpen&&this.hiddenMode?"hidden":""}`},h("div",{class:this.darkMode&&"dark",dir:"ltr"},this.isOpenConfirm&&G?h("nl-dialog",null,h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen ":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},I)):h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},I)))}static get watchers(){return{notify:["watchNotifyHandler"]}}static get style(){return NlBannerStyle0}},[1,"nl-banner",{theme:[1025],darkMode:[1028,"dark-mode"],hiddenMode:[1028,"hidden-mode"],titleBanner:[1,"title-banner"],isOpen:[1028,"is-open"],isLoading:[4,"is-loading"],notify:[16],userInfo:[16],accounts:[1040],isUserImgError:[32],domain:[32],mode:[32],url:[32],isOpenConfirm:[32]},void 0,{notify:["watchNotifyHandler"]}]);function defineCustomElement(){typeof customElements>"u"||["nl-banner","button-base","nl-change-account","nl-dialog","nl-login-status"].forEach(o=>{switch(o){case"nl-banner":customElements.get(o)||customElements.define(o,NlBanner);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-change-account":customElements.get(o)||defineCustomElement$2();break;case"nl-dialog":customElements.get(o)||defineCustomElement$1();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var lib$1={},types={};Object.defineProperty(types,"__esModule",{value:!0});var ee={},taskCollection$1={},taskCollection={},bakeCollection={};(function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.bakeCollectionVariadic=exports.bakeCollectionAwait=exports.bakeCollection=exports.BAKED_EMPTY_FUNC=void 0,exports.BAKED_EMPTY_FUNC=function(){};var FORLOOP_FALLBACK=1500;function generateArgsDefCode(o){var s="";if(0===o)return s;for(var r=0;r<o-1;++r)s+="arg"+String(r)+", ";return s+"arg"+String(o-1)}function generateBodyPartsCode(o,s){for(var r="",i="",a=0;a<s;++a)r+="var f".concat(a," = collection[").concat(a,"];\n"),i+="f".concat(a,"(").concat(o,")\n");return{funcDefCode:r,funcCallCode:i}}function generateBodyPartsVariadicCode(o){for(var s="",r="",i=0;i<o;++i)s+="var f".concat(i," = collection[").concat(i,"];\n"),r+="f".concat(i,".apply(undefined, arguments)\n");return{funcDefCode:s,funcCallCode:r}}function bakeCollection(collection,fixedArgsNum){if(0===collection.length)return exports.BAKED_EMPTY_FUNC;if(1===collection.length)return collection[0];var funcFactoryCode;if(collection.length<FORLOOP_FALLBACK){var argsDefCode=generateArgsDefCode(fixedArgsNum),_a=generateBodyPartsCode(argsDefCode,collection.length),funcDefCode=_a.funcDefCode,funcCallCode=_a.funcCallCode;funcFactoryCode="(function(collection) {\n ".concat(funcDefCode,"\n collection = undefined;\n return (function(").concat(argsDefCode,") {\n ").concat(funcCallCode,"\n });\n })")}else{var argsDefCode=generateArgsDefCode(fixedArgsNum);funcFactoryCode=collection.length%10==0?"(function(collection) {\n return (function(".concat(argsDefCode,") {\n for (var i = 0; i < collection.length; i += 10) {\n collection[i](").concat(argsDefCode,");\n collection[i+1](").concat(argsDefCode,");\n collection[i+2](").concat(argsDefCode,");\n collection[i+3](").concat(argsDefCode,");\n collection[i+4](").concat(argsDefCode,");\n collection[i+5](").concat(argsDefCode,");\n collection[i+6](").concat(argsDefCode,");\n collection[i+7](").concat(argsDefCode,");\n collection[i+8](").concat(argsDefCode,");\n collection[i+9](").concat(argsDefCode,");\n }\n });\n })"):collection.length%4==0?"(function(collection) {\n return (function(".concat(argsDefCode,") {\n for (var i = 0; i < collection.length; i += 4) {\n collection[i](").concat(argsDefCode,");\n collection[i+1](").concat(argsDefCode,");\n collection[i+2](").concat(argsDefCode,");\n collection[i+3](").concat(argsDefCode,");\n }\n });\n })"):collection.length%3==0?"(function(collection) {\n return (function(".concat(argsDefCode,") {\n for (var i = 0; i < collection.length; i += 3) {\n collection[i](").concat(argsDefCode,");\n collection[i+1](").concat(argsDefCode,");\n collection[i+2](").concat(argsDefCode,");\n }\n });\n })"):"(function(collection) {\n return (function(".concat(argsDefCode,") {\n for (var i = 0; i < collection.length; ++i) {\n collection[i](").concat(argsDefCode,");\n }\n });\n })")}var funcFactory=eval(funcFactoryCode);return funcFactory(collection)}function bakeCollectionAwait(collection,fixedArgsNum){if(0===collection.length)return exports.BAKED_EMPTY_FUNC;if(1===collection.length)return collection[0];var funcFactoryCode;if(collection.length<FORLOOP_FALLBACK){var argsDefCode=generateArgsDefCode(fixedArgsNum),_a=generateBodyPartsCode(argsDefCode,collection.length),funcDefCode=_a.funcDefCode,funcCallCode=_a.funcCallCode;funcFactoryCode="(function(collection) {\n ".concat(funcDefCode,"\n collection = undefined;\n return (function(").concat(argsDefCode,") {\n return Promise.all([ ").concat(funcCallCode," ]);\n });\n })")}else{var argsDefCode=generateArgsDefCode(fixedArgsNum);funcFactoryCode="(function(collection) {\n return (function(".concat(argsDefCode,") {\n var promises = Array(collection.length);\n for (var i = 0; i < collection.length; ++i) {\n promises[i] = collection[i](").concat(argsDefCode,");\n }\n return Promise.all(promises);\n });\n })")}var funcFactory=eval(funcFactoryCode);return funcFactory(collection)}function bakeCollectionVariadic(collection){if(0===collection.length)return exports.BAKED_EMPTY_FUNC;if(1===collection.length)return collection[0];var funcFactoryCode;if(collection.length<FORLOOP_FALLBACK){var _a=generateBodyPartsVariadicCode(collection.length),funcDefCode=_a.funcDefCode,funcCallCode=_a.funcCallCode;funcFactoryCode="(function(collection) {\n ".concat(funcDefCode,"\n collection = undefined;\n return (function() {\n ").concat(funcCallCode,"\n });\n })")}else funcFactoryCode="(function(collection) {\n return (function() {\n for (var i = 0; i < collection.length; ++i) {\n collection[i].apply(undefined, arguments);\n }\n });\n })";var funcFactory=eval(funcFactoryCode);return funcFactory(collection)}exports.bakeCollection=bakeCollection,exports.bakeCollectionAwait=bakeCollectionAwait,exports.bakeCollectionVariadic=bakeCollectionVariadic})(bakeCollection);var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(o,s,r){if(r||2===arguments.length)for(var i,a=0,c=s.length;a<c;a++)!i&&a in s||(i||(i=Array.prototype.slice.call(s,0,a)),i[a]=s[a]);return o.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(taskCollection,"__esModule",{value:!0}),taskCollection.TaskCollection=taskCollection._fast_remove_single=void 0;var bake_collection_1=bakeCollection;function push_norebuild(o,s){var r,i=this.length;if(i>1)s?((r=this._tasks).push.apply(r,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++}function push_rebuild(o,s){var r,i=this.length;if(i>1)s?((r=this._tasks).push.apply(r,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++;this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}function _fast_remove_single(o,s){-1!==s&&(0===s?o.shift():s===o.length-1?o.length=o.length-1:o.splice(s,1))}function removeLast_norebuild(o){0!==this.length&&(1===this.length?this._tasks===o&&(this.length=0):(_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length))}function removeLast_rebuild(o){if(0!==this.length){if(1===this.length)return this._tasks===o&&(this.length=0),this.firstEmitBuildStrategy?void(this.call=bake_collection_1.BAKED_EMPTY_FUNC):void this.rebuild();_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length,this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}}function insert_norebuild(o){for(var s,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];0===this.length?(this._tasks=r,this.length=1):1===this.length?(r.unshift(this._tasks),this._tasks=r,this.length=this._tasks.length):((s=this._tasks).splice.apply(s,__spreadArray$1([o,0],r,!1)),this.length=this._tasks.length)}function insert_rebuild(o){for(var s,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];0===this.length?(this._tasks=r,this.length=1):1===this.length?(r.unshift(this._tasks),this._tasks=r,this.length=this._tasks.length):((s=this._tasks).splice.apply(s,__spreadArray$1([o,0],r,!1)),this.length=this._tasks.length),this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}function rebuild_noawait(){this.call=0===this.length?bake_collection_1.BAKED_EMPTY_FUNC:1===this.length?this._tasks:(0,bake_collection_1.bakeCollection)(this._tasks,this.argsNum)}function rebuild_await(){this.call=0===this.length?bake_collection_1.BAKED_EMPTY_FUNC:1===this.length?this._tasks:(0,bake_collection_1.bakeCollectionAwait)(this._tasks,this.argsNum)}function rebuild_on_first_call(){this.rebuild(),this.call.apply(void 0,arguments)}taskCollection._fast_remove_single=_fast_remove_single;var TaskCollection=function(o,s,r,i){void 0===s&&(s=!0),void 0===r&&(r=null),void 0===i&&(i=!1),this.awaitTasks=i,this.call=bake_collection_1.BAKED_EMPTY_FUNC,this.argsNum=o,this.firstEmitBuildStrategy=!0,this.rebuild=i?rebuild_await.bind(this):rebuild_noawait.bind(this),this.setAutoRebuild(s),r?"function"==typeof r?(this._tasks=r,this.length=1):(this._tasks=r,this.length=r.length):(this._tasks=null,this.length=0),s&&this.rebuild()};function fastClear(){this._tasks=null,this.length=0,this.call=bake_collection_1.BAKED_EMPTY_FUNC}function clear(){this._tasks=null,this.length=0,this.call=bake_collection_1.BAKED_EMPTY_FUNC}function growArgsNum(o){this.argsNum<o&&(this.argsNum=o,this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild())}function setAutoRebuild(o){o?(this.push=push_rebuild.bind(this),this.insert=insert_rebuild.bind(this),this.removeLast=removeLast_rebuild.bind(this)):(this.push=push_norebuild.bind(this),this.insert=insert_norebuild.bind(this),this.removeLast=removeLast_norebuild.bind(this))}function tasksAsArray(){return 0===this.length?[]:1===this.length?[this._tasks]:this._tasks}function setTasks(o){0===o.length?(this.length=0,this.call=bake_collection_1.BAKED_EMPTY_FUNC):1===o.length?(this.length=1,this.call=o[0],this._tasks=o[0]):(this.length=o.length,this._tasks=o,this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild())}taskCollection.TaskCollection=TaskCollection,TaskCollection.prototype.fastClear=fastClear,TaskCollection.prototype.clear=clear,TaskCollection.prototype.growArgsNum=growArgsNum,TaskCollection.prototype.setAutoRebuild=setAutoRebuild,TaskCollection.prototype.tasksAsArray=tasksAsArray,TaskCollection.prototype.setTasks=setTasks,function(o){var s=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(i,a,c,y){void 0===y&&(y=c);var w=Object.getOwnPropertyDescriptor(a,c);w&&!("get"in w?!a.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,y,w)}:function(i,a,c,y){void 0===y&&(y=c),i[y]=a[c]}),r=commonjsGlobal&&commonjsGlobal.__exportStar||function(i,a){for(var c in i)"default"===c||Object.prototype.hasOwnProperty.call(a,c)||s(a,i,c)};Object.defineProperty(o,"__esModule",{value:!0}),r(taskCollection,o)}(taskCollection$1);var utils$2={};function nullObj(){return{__proto__:null,prototype:null}}Object.defineProperty(utils$2,"__esModule",{value:!0}),utils$2.nullObj=void 0,utils$2.nullObj=nullObj;var __spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(o,s,r){if(r||2===arguments.length)for(var i,a=0,c=s.length;a<c;a++)!i&&a in s||(i||(i=Array.prototype.slice.call(s,0,a)),i[a]=s[a]);return o.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(ee,"__esModule",{value:!0}),ee.EventEmitter=void 0;var task_collection_1=taskCollection$1,utils_1=utils$2;function emit(o,s,r,i,a,c){var y=this.events[o];return!!y&&0!==y.length&&(y.argsNum<6?y.call(s,r,i,a,c):y.call.apply(void 0,arguments),!0)}function emitHasOnce(o,s,r,i,a,c){var y=this.events[o];if(y){if(0===y.length)return!1;y.argsNum<6?y.call(s,r,i,a,c):y.call.apply(void 0,arguments)}var w=this.onceEvents[o];if(w){if("function"==typeof w)this.onceEvents[o]=void 0,arguments.length<6?w(s,r,i,a,c):w.apply(void 0,arguments);else{var C=w;if(this.onceEvents[o]=void 0,arguments.length<6)for(var T=0;T<C.length;++T)C[T](s,r,i,a,c);else for(T=0;T<C.length;++T)C[T].apply(void 0,arguments)}return!0}return!!y}var EventEmitter=function(){function o(){this.events=(0,utils_1.nullObj)(),this.onceEvents=(0,utils_1.nullObj)(),this._symbolKeys=new Set,this.maxListeners=1/0}return Object.defineProperty(o.prototype,"_eventsCount",{get:function(){return this.eventNames().length},enumerable:!1,configurable:!0}),o}();function once(o,s){switch(this.emit===emit&&(this.emit=emitHasOnce),typeof this.onceEvents[o]){case"undefined":this.onceEvents[o]=s,"symbol"==typeof o&&this._symbolKeys.add(o);break;case"function":this.onceEvents[o]=[this.onceEvents[o],s];break;case"object":this.onceEvents[o].push(s)}return this}function addListener(o,s,r){if(void 0===r&&(r=s.length),"function"!=typeof s)throw new TypeError("The listener must be a function");var i=this.events[o];return i?(i.push(s),i.growArgsNum(r),this.maxListeners!==1/0&&this.maxListeners<=i.length&&console.warn('Maximum event listeners for "'.concat(String(o),'" event!'))):(this.events[o]=new task_collection_1.TaskCollection(r,!0,s,!1),"symbol"==typeof o&&this._symbolKeys.add(o)),this}function removeListener(o,s){var r=this.events[o];r&&r.removeLast(s);var i=this.onceEvents[o];return i&&("function"==typeof i?this.onceEvents[o]=void 0:"object"==typeof i&&(1===i.length&&i[0]===s?this.onceEvents[o]=void 0:(0,task_collection_1._fast_remove_single)(i,i.lastIndexOf(s)))),this}function addListenerBound(o,s,r,i){void 0===r&&(r=this),void 0===i&&(i=s.length),this.boundFuncs||(this.boundFuncs=new Map);var a=s.bind(r);return this.boundFuncs.set(s,a),this.addListener(o,a,i)}function removeListenerBound(o,s){var r,i,a=null===(r=this.boundFuncs)||void 0===r?void 0:r.get(s);return null===(i=this.boundFuncs)||void 0===i||i.delete(s),this.removeListener(o,a)}function hasListeners(o){return this.events[o]&&!!this.events[o].length}function prependListener(o,s,r){if(void 0===r&&(r=s.length),"function"!=typeof s)throw new TypeError("The listener must be a function");var i=this.events[o];return i&&i instanceof task_collection_1.TaskCollection?(i.insert(0,s),i.growArgsNum(r),this.maxListeners!==1/0&&this.maxListeners<=i.length&&console.warn('Maximum event listeners for "'.concat(String(o),'" event!'))):(i=this.events[o]=new task_collection_1.TaskCollection(r,!0,s,!1),"symbol"==typeof o&&this._symbolKeys.add(o)),this}function prependOnceListener(o,s){this.emit===emit&&(this.emit=emitHasOnce);var r=this.onceEvents[o];return r?"object"!=typeof r?(this.onceEvents[o]=[s,r],"symbol"==typeof o&&this._symbolKeys.add(o)):(r.unshift(s),this.maxListeners!==1/0&&this.maxListeners<=r.length&&console.warn('Maximum event listeners for "'.concat(String(o),'" once event!'))):(this.onceEvents[o]=[s],"symbol"==typeof o&&this._symbolKeys.add(o)),this}function removeAllListeners(o){return void 0===o?(this.events=(0,utils_1.nullObj)(),this.onceEvents=(0,utils_1.nullObj)(),this._symbolKeys=new Set):(this.events[o]=void 0,this.onceEvents[o]=void 0,"symbol"==typeof o&&this._symbolKeys.delete(o)),this}function setMaxListeners(o){return this.maxListeners=o,this}function getMaxListeners(){return this.maxListeners}function listeners(o){return this.emit===emit?this.events[o]?this.events[o].tasksAsArray().slice():[]:this.events[o]&&this.onceEvents[o]?__spreadArray(__spreadArray([],this.events[o].tasksAsArray(),!0),"function"==typeof this.onceEvents[o]?[this.onceEvents[o]]:this.onceEvents[o],!0):this.events[o]?this.events[o].tasksAsArray():this.onceEvents[o]?"function"==typeof this.onceEvents[o]?[this.onceEvents[o]]:this.onceEvents[o]:[]}function eventNames(){var o=this;if(this.emit===emit){var s=Object.keys(this.events);return __spreadArray(__spreadArray([],s,!0),Array.from(this._symbolKeys),!0).filter(function(i){return i in o.events&&o.events[i]&&o.events[i].length})}s=Object.keys(this.events).filter(function(i){return o.events[i]&&o.events[i].length});var r=Object.keys(this.onceEvents).filter(function(i){return o.onceEvents[i]&&o.onceEvents[i].length});return __spreadArray(__spreadArray(__spreadArray([],s,!0),r,!0),Array.from(this._symbolKeys).filter(function(i){return i in o.events&&o.events[i]&&o.events[i].length||i in o.onceEvents&&o.onceEvents[i]&&o.onceEvents[i].length}),!0)}function listenerCount(o){return this.emit===emit?this.events[o]&&this.events[o].length||0:(this.events[o]&&this.events[o].length||0)+(this.onceEvents[o]&&this.onceEvents[o].length||0)}function number$3(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$3(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function bytes$3(o,...s){if(!(o instanceof Uint8Array))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$3(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$3(o.outputLen),number$3(o.blockLen)}function exists$3(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$3(o,s){bytes$3(o);const r=s.outputLen;if(o.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}ee.EventEmitter=EventEmitter,EventEmitter.prototype.emit=emit,EventEmitter.prototype.on=addListener,EventEmitter.prototype.once=once,EventEmitter.prototype.addListener=addListener,EventEmitter.prototype.removeListener=removeListener,EventEmitter.prototype.addListenerBound=addListenerBound,EventEmitter.prototype.removeListenerBound=removeListenerBound,EventEmitter.prototype.hasListeners=hasListeners,EventEmitter.prototype.prependListener=prependListener,EventEmitter.prototype.prependOnceListener=prependOnceListener,EventEmitter.prototype.off=removeListener,EventEmitter.prototype.removeAllListeners=removeAllListeners,EventEmitter.prototype.setMaxListeners=setMaxListeners,EventEmitter.prototype.getMaxListeners=getMaxListeners,EventEmitter.prototype.listeners=listeners,EventEmitter.prototype.eventNames=eventNames,EventEmitter.prototype.listenerCount=listenerCount,function(o){var s=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(i,a,c,y){void 0===y&&(y=c);var w=Object.getOwnPropertyDescriptor(a,c);w&&!("get"in w?!a.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,y,w)}:function(i,a,c,y){void 0===y&&(y=c),i[y]=a[c]}),r=commonjsGlobal&&commonjsGlobal.__exportStar||function(i,a){for(var c in i)"default"===c||Object.prototype.hasOwnProperty.call(a,c)||s(a,i,c)};Object.defineProperty(o,"__esModule",{value:!0}),r(types,o),r(ee,o)}(lib$1);const assert$3={number:number$3,bool:bool$3,bytes:bytes$3,hash:hash$3,exists:exists$3,output:output$3},crypto$3="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,u8a$3=o=>o instanceof Uint8Array,createView$2=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$2=(o,s)=>o<<32-s|o>>>s,isLE$3=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$3)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes$4(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes$3(o){if("string"==typeof o&&(o=utf8ToBytes$4(o)),!u8a$3(o))throw new Error("expected Uint8Array, got "+typeof o);return o}function concatBytes$3(...o){const s=new Uint8Array(o.reduce((i,a)=>i+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$3(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));let Hash$2=class{clone(){return this._cloneInto()}};function wrapConstructor$2(o){const s=i=>o().update(toBytes$3(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes$2(o=32){if(crypto$3&&"function"==typeof crypto$3.getRandomValues)return crypto$3.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function setBigUint64$2(o,s,r,i){if("function"==typeof o.setBigUint64)return o.setBigUint64(s,r,i);const a=BigInt(32),c=BigInt(4294967295),y=Number(r>>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$2=class extends Hash$2{constructor(o,s,r,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$2(this.buffer)}update(o){assert$3.exists(this);const{view:s,buffer:r,blockLen:i}=this,a=(o=toBytes$3(o)).length;for(let c=0;c<a;){const y=Math.min(i-this.pos,a-c);if(y!==i)r.set(o.subarray(c,c+y),this.pos),this.pos+=y,c+=y,this.pos===i&&(this.process(s,0),this.pos=0);else{const w=createView$2(o);for(;i<=a-c;c+=i)this.process(w,c)}}return this.length+=o.length,this.roundClean(),this}digestInto(o){assert$3.exists(this),assert$3.output(o,this),this.finished=!0;const{buffer:s,view:r,blockLen:i,isLE:a}=this;let{pos:c}=this;s[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>i-c&&(this.process(r,0),c=0);for(let S=c;S<i;S++)s[S]=0;setBigUint64$2(r,i-8,BigInt(8*this.length),a),this.process(r,0);const y=createView$2(o),w=this.outputLen;if(w%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const C=w/4,T=this.get();if(C>T.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;S<C;S++)y.setUint32(4*S,T[S],a)}digest(){const{buffer:o,outputLen:s}=this;this.digestInto(o);const r=o.slice(0,s);return this.destroy(),r}_cloneInto(o){o||(o=new this.constructor),o.set(...this.get());const{blockLen:s,buffer:r,length:i,finished:a,destroyed:c,pos:y}=this;return o.length=i,o.pos=y,o.finished=a,o.destroyed=c,i%s&&o.buffer.set(r),o}};const Chi$2=(o,s,r)=>o&s^~o&r,Maj$2=(o,s,r)=>o&s^o&r^s&r,SHA256_K$2=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV$2=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$2=new Uint32Array(64);let SHA256$2=class extends SHA2$2{constructor(){super(64,32,8,!1),this.A=0|IV$2[0],this.B=0|IV$2[1],this.C=0|IV$2[2],this.D=0|IV$2[3],this.E=0|IV$2[4],this.F=0|IV$2[5],this.G=0|IV$2[6],this.H=0|IV$2[7]}get(){const{A:o,B:s,C:r,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,r,i,a,c,y,w]}set(o,s,r,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|r,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$2[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const A=SHA256_W$2[S-15],I=SHA256_W$2[S-2],N=rotr$2(A,7)^rotr$2(A,18)^A>>>3,G=rotr$2(I,17)^rotr$2(I,19)^I>>>10;SHA256_W$2[S]=G+SHA256_W$2[S-7]+N+SHA256_W$2[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const A=T+(rotr$2(y,6)^rotr$2(y,11)^rotr$2(y,25))+Chi$2(y,w,C)+SHA256_K$2[S]+SHA256_W$2[S]|0,I=(rotr$2(r,2)^rotr$2(r,13)^rotr$2(r,22))+Maj$2(r,i,a)|0;T=C,C=w,w=y,y=c+A|0,c=a,a=i,i=r,r=A+I|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(r,i,a,c,y,w,C,T)}roundClean(){SHA256_W$2.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},SHA224$1=class extends SHA256$2{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};const sha256$2=wrapConstructor$2(()=>new SHA256$2);wrapConstructor$2(()=>new SHA224$1);const _0n$4=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a$2=o=>o instanceof Uint8Array,hexes$2=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$2(o){if(!u8a$2(o))throw new Error("Uint8Array expected");let s="";for(let r=0;r<o.length;r++)s+=hexes$2[o[r]];return s}function numberToHexUnpadded(o){const s=o.toString(16);return 1&s.length?`0${s}`:s}function hexToNumber(o){if("string"!=typeof o)throw new Error("hex string expected, got "+typeof o);return BigInt(""===o?"0":`0x${o}`)}function hexToBytes$2(o){if("string"!=typeof o)throw new Error("hex string expected, got "+typeof o);const s=o.length;if(s%2)throw new Error("padded hex string expected, got unpadded hex of length "+s);const r=new Uint8Array(s/2);for(let i=0;i<r.length;i++){const a=2*i,c=o.slice(a,a+2),y=Number.parseInt(c,16);if(Number.isNaN(y)||y<0)throw new Error("Invalid byte sequence");r[i]=y}return r}function bytesToNumberBE(o){return hexToNumber(bytesToHex$2(o))}function bytesToNumberLE(o){if(!u8a$2(o))throw new Error("Uint8Array expected");return hexToNumber(bytesToHex$2(Uint8Array.from(o).reverse()))}function numberToBytesBE(o,s){return hexToBytes$2(o.toString(16).padStart(2*s,"0"))}function numberToBytesLE(o,s){return numberToBytesBE(o,s).reverse()}function numberToVarBytesBE(o){return hexToBytes$2(numberToHexUnpadded(o))}function ensureBytes$1(o,s,r){let i;if("string"==typeof s)try{i=hexToBytes$2(s)}catch(c){throw new Error(`${o} must be valid hex string, got "${s}". Cause: ${c}`)}else{if(!u8a$2(s))throw new Error(`${o} must be hex string or Uint8Array`);i=Uint8Array.from(s)}const a=i.length;if("number"==typeof r&&a!==r)throw new Error(`${o} expected ${r} bytes, got ${a}`);return i}function concatBytes$2(...o){const s=new Uint8Array(o.reduce((i,a)=>i+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$2(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}function equalBytes$1(o,s){if(o.length!==s.length)return!1;for(let r=0;r<o.length;r++)if(o[r]!==s[r])return!1;return!0}function utf8ToBytes$3(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function bitLen(o){let s;for(s=0;o>_0n$4;o>>=_1n$4,s+=1);return s}function bitGet(o,s){return o>>BigInt(s)&_1n$4}const bitSet=(o,s,r)=>o|(r?_1n$4:_0n$4)<<BigInt(s),bitMask=o=>(_2n$2<<BigInt(o-1))-_1n$4,u8n=o=>new Uint8Array(o),u8fr=o=>Uint8Array.from(o);function createHmacDrbg(o,s,r){if("number"!=typeof o||o<2)throw new Error("hashLen must be a number");if("number"!=typeof s||s<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let i=u8n(o),a=u8n(o),c=0;const y=()=>{i.fill(1),a.fill(0),c=0},w=(...S)=>r(a,i,...S),C=(S=u8n())=>{a=w(u8fr([0]),S),i=w(),0!==S.length&&(a=w(u8fr([1]),S),i=w())},T=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let S=0;const A=[];for(;S<s;){i=w();const I=i.slice();A.push(I),S+=i.length}return concatBytes$2(...A)};return(S,A)=>{let I;for(y(),C(S);!(I=A(T()));)C();return y(),I}}const validatorFns={bigint:o=>"bigint"==typeof o,function:o=>"function"==typeof o,boolean:o=>"boolean"==typeof o,string:o=>"string"==typeof o,isSafeInteger:o=>Number.isSafeInteger(o),array:o=>Array.isArray(o),field:(o,s)=>s.Fp.isValid(o),hash:o=>"function"==typeof o&&Number.isSafeInteger(o.outputLen)};function validateObject(o,s,r={}){const i=(a,c,y)=>{const w=validatorFns[c];if("function"!=typeof w)throw new Error(`Invalid validator "${c}", expected function`);const C=o[a];if(!(y&&void 0===C||w(C,o)))throw new Error(`Invalid param ${String(a)}=${C} (${typeof C}), expected ${c}`)};for(const[a,c]of Object.entries(s))i(a,c,!1);for(const[a,c]of Object.entries(r))i(a,c,!0);return o}var ut=Object.freeze({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex:bytesToHex$2,bytesToNumberBE,bytesToNumberLE,concatBytes:concatBytes$2,createHmacDrbg,ensureBytes:ensureBytes$1,equalBytes:equalBytes$1,hexToBytes:hexToBytes$2,hexToNumber,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes:utf8ToBytes$3,validateObject});const _0n$3=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);function mod(o,s){const r=o%s;return r>=_0n$3?r:s+r}function pow(o,s,r){if(r<=_0n$3||s<_0n$3)throw new Error("Expected power/modulo > 0");if(r===_1n$3)return _0n$3;let i=_1n$3;for(;s>_0n$3;)s&_1n$3&&(i=i*o%r),o=o*o%r,s>>=_1n$3;return i}function pow2(o,s,r){let i=o;for(;s-- >_0n$3;)i*=i,i%=r;return i}function invert(o,s){if(o===_0n$3||s<=_0n$3)throw new Error(`invert: expected positive integers, got n=${o} mod=${s}`);let r=mod(o,s),i=s,a=_0n$3,c=_1n$3;for(;r!==_0n$3;){const y=i%r,w=a-c*(i/r);i=r,r=y,a=c,c=w}if(i!==_1n$3)throw new Error("invert: does not exist");return mod(a,s)}function tonelliShanks(o){const s=(o-_1n$3)/_2n$1;let r,i,a;for(r=o-_1n$3,i=0;r%_2n$1===_0n$3;r/=_2n$1,i++);for(a=_2n$1;a<o&&pow(a,s,o)!==o-_1n$3;a++);if(1===i){const y=(o+_1n$3)/_4n;return function(w,C){const T=w.pow(C,y);if(!w.eql(w.sqr(T),C))throw new Error("Cannot find square root");return T}}const c=(r+_1n$3)/_2n$1;return function(y,w){if(y.pow(w,s)===y.neg(y.ONE))throw new Error("Cannot find square root");let C=i,T=y.pow(y.mul(y.ONE,a),r),S=y.pow(w,c),A=y.pow(w,r);for(;!y.eql(A,y.ONE);){if(y.eql(A,y.ZERO))return y.ZERO;let I=1;for(let G=y.sqr(A);I<C&&!y.eql(G,y.ONE);I++)G=y.sqr(G);const N=y.pow(T,_1n$3<<BigInt(C-I-1));T=y.sqr(N),S=y.mul(S,N),A=y.mul(A,T),C=I}return S}}function FpSqrt(o){if(o%_4n===_3n$1){const s=(o+_1n$3)/_4n;return function(r,i){const a=r.pow(i,s);if(!r.eql(r.sqr(a),i))throw new Error("Cannot find square root");return a}}if(o%_8n===_5n){const s=(o-_5n)/_8n;return function(r,i){const a=r.mul(i,_2n$1),c=r.pow(a,s),y=r.mul(i,c),w=r.mul(r.mul(y,_2n$1),c),C=r.mul(y,r.sub(w,r.ONE));if(!r.eql(r.sqr(C),i))throw new Error("Cannot find square root");return C}}return tonelliShanks(o)}BigInt(9),BigInt(16);const FIELD_FIELDS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField(o){return validateObject(o,FIELD_FIELDS.reduce((r,i)=>(r[i]="function",r),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}function FpPow(o,s,r){if(r<_0n$3)throw new Error("Expected power > 0");if(r===_0n$3)return o.ONE;if(r===_1n$3)return s;let i=o.ONE,a=s;for(;r>_0n$3;)r&_1n$3&&(i=o.mul(i,a)),a=o.sqr(a),r>>=_1n$3;return i}function FpInvertBatch(o,s){const r=new Array(s.length),i=s.reduce((c,y,w)=>o.is0(y)?c:(r[w]=c,o.mul(c,y)),o.ONE),a=o.inv(i);return s.reduceRight((c,y,w)=>o.is0(y)?c:(r[w]=o.mul(c,r[w]),o.mul(c,y)),a),r}function nLength(o,s){const r=void 0!==s?s:o.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function Field(o,s,r=!1,i={}){if(o<=_0n$3)throw new Error(`Expected Fp ORDER > 0, got ${o}`);const{nBitLength:a,nByteLength:c}=nLength(o,s);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const y=FpSqrt(o),w=Object.freeze({ORDER:o,BITS:a,BYTES:c,MASK:bitMask(a),ZERO:_0n$3,ONE:_1n$3,create:C=>mod(C,o),isValid:C=>{if("bigint"!=typeof C)throw new Error("Invalid field element: expected bigint, got "+typeof C);return _0n$3<=C&&C<o},is0:C=>C===_0n$3,isOdd:C=>(C&_1n$3)===_1n$3,neg:C=>mod(-C,o),eql:(C,T)=>C===T,sqr:C=>mod(C*C,o),add:(C,T)=>mod(C+T,o),sub:(C,T)=>mod(C-T,o),mul:(C,T)=>mod(C*T,o),pow:(C,T)=>FpPow(w,C,T),div:(C,T)=>mod(C*invert(T,o),o),sqrN:C=>C*C,addN:(C,T)=>C+T,subN:(C,T)=>C-T,mulN:(C,T)=>C*T,inv:C=>invert(C,o),sqrt:i.sqrt||(C=>y(w,C)),invertBatch:C=>FpInvertBatch(w,C),cmov:(C,T,S)=>S?T:C,toBytes:C=>r?numberToBytesLE(C,c):numberToBytesBE(C,c),fromBytes:C=>{if(C.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${C.length}`);return r?bytesToNumberLE(C):bytesToNumberBE(C)}});return Object.freeze(w)}function hashToPrivateScalar(o,s,r=!1){const i=(o=ensureBytes$1("privateHash",o)).length,a=nLength(s).nByteLength+8;if(a<24||i<a||i>1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);return mod(r?bytesToNumberLE(o):bytesToNumberBE(o),s-_1n$3)+_1n$3}const _0n$2=BigInt(0),_1n$2=BigInt(1);function wNAF(o,s){const r=(a,c)=>{const y=c.negate();return a?y:c},i=a=>({windows:Math.ceil(s/a)+1,windowSize:2**(a-1)});return{constTimeNegate:r,unsafeLadder(a,c){let y=o.ZERO,w=a;for(;c>_0n$2;)c&_1n$2&&(y=y.add(w)),w=w.double(),c>>=_1n$2;return y},precomputeWindow(a,c){const{windows:y,windowSize:w}=i(c),C=[];let T=a,S=T;for(let A=0;A<y;A++){S=T,C.push(S);for(let I=1;I<w;I++)S=S.add(T),C.push(S);T=S.double()}return C},wNAF(a,c,y){const{windows:w,windowSize:C}=i(a);let T=o.ZERO,S=o.BASE;const A=BigInt(2**a-1),I=2**a,N=BigInt(a);for(let G=0;G<w;G++){const Z=G*C;let te=Number(y&A);y>>=N,te>C&&(te-=I,y+=_1n$2);const be=Z,me=Z+Math.abs(te)-1,Te=te<0;0===te?S=S.add(r(G%2!=0,c[be])):T=T.add(r(Te,c[me]))}return{p:T,f:S}},wNAFCached(a,c,y,w){const C=a._WINDOW_SIZE||1;let T=c.get(a);return T||(T=this.precomputeWindow(a,C),1!==C&&c.set(a,w(T))),this.wNAF(C,T,y)}}}function validateBasic(o){return validateField(o.Fp),validateObject(o,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(o.n,o.nBitLength),...o,p:o.Fp.ORDER})}function validatePointOpts(o){const s=validateBasic(o);validateObject(s,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:i,a}=s;if(r){if(!i.eql(a,i.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...s})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(o=""){super(o)}},_parseInt(o){const{Err:s}=DER;if(o.length<2||2!==o[0])throw new s("Invalid signature integer tag");const r=o[1],i=o.subarray(2,r+2);if(!r||i.length!==r)throw new s("Invalid signature integer: wrong length");if(128&i[0])throw new s("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new s("Invalid signature integer: unnecessary leading zero");return{d:b2n(i),l:o.subarray(r+2)}},toSig(o){const{Err:s}=DER,r="string"==typeof o?h2b(o):o;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let i=r.length;if(i<2||48!=r[0])throw new s("Invalid signature tag");if(r[1]!==i-2)throw new s("Invalid signature: incorrect length");const{d:a,l:c}=DER._parseInt(r.subarray(2)),{d:y,l:w}=DER._parseInt(c);if(w.length)throw new s("Invalid signature: left bytes after parsing");return{r:a,s:y}},hexFromSig(o){const s=T=>8&Number.parseInt(T[0],16)?"00"+T:T,r=T=>{const S=T.toString(16);return 1&S.length?`0${S}`:S},i=s(r(o.s)),a=s(r(o.r)),c=i.length/2,y=a.length/2,w=r(c),C=r(y);return`30${r(y+c+4)}02${C}${a}02${w}${i}`}},_0n$1=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);function weierstrassPoints(o){const s=validatePointOpts(o),{Fp:r}=s,i=s.toBytes||((G,Z,te)=>{const be=Z.toAffine();return concatBytes$2(Uint8Array.from([4]),r.toBytes(be.x),r.toBytes(be.y))}),a=s.fromBytes||(G=>{const Z=G.subarray(1);return{x:r.fromBytes(Z.subarray(0,r.BYTES)),y:r.fromBytes(Z.subarray(r.BYTES,2*r.BYTES))}});function c(G){const{a:Z,b:te}=s,be=r.sqr(G),me=r.mul(be,G);return r.add(r.add(me,r.mul(G,Z)),te)}if(!r.eql(r.sqr(s.Gy),c(s.Gx)))throw new Error("bad generator point: equation left != right");function y(G){return"bigint"==typeof G&&_0n$1<G&&G<s.n}function w(G){if(!y(G))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function C(G){const{allowedPrivateKeyLengths:Z,nByteLength:te,wrapPrivateKey:be,n:me}=s;if(Z&&"bigint"!=typeof G){if(G instanceof Uint8Array&&(G=bytesToHex$2(G)),"string"!=typeof G||!Z.includes(G.length))throw new Error("Invalid key");G=G.padStart(2*te,"0")}let pe;try{pe="bigint"==typeof G?G:bytesToNumberBE(ensureBytes$1("private key",G,te))}catch{throw new Error(`private key must be ${te} bytes, hex or bigint, not ${typeof G}`)}return be&&(pe=mod(pe,me)),w(pe),pe}const T=new Map;function S(G){if(!(G instanceof A))throw new Error("ProjectivePoint expected")}class A{constructor(Z,te,be){if(this.px=Z,this.py=te,this.pz=be,null==Z||!r.isValid(Z))throw new Error("x required");if(null==te||!r.isValid(te))throw new Error("y required");if(null==be||!r.isValid(be))throw new Error("z required")}static fromAffine(Z){const{x:te,y:be}=Z||{};if(!Z||!r.isValid(te)||!r.isValid(be))throw new Error("invalid affine point");if(Z instanceof A)throw new Error("projective point not allowed");const me=pe=>r.eql(pe,r.ZERO);return me(te)&&me(be)?A.ZERO:new A(te,be,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const te=r.invertBatch(Z.map(be=>be.pz));return Z.map((be,me)=>be.toAffine(te[me])).map(A.fromAffine)}static fromHex(Z){const te=A.fromAffine(a(ensureBytes$1("pointHex",Z)));return te.assertValidity(),te}static fromPrivateKey(Z){return A.BASE.multiply(C(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,T.delete(this)}assertValidity(){if(this.is0()){if(s.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Z,y:te}=this.toAffine();if(!r.isValid(Z)||!r.isValid(te))throw new Error("bad point: x or y not FE");const be=r.sqr(te),me=c(Z);if(!r.eql(be,me))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Z}=this.toAffine();if(r.isOdd)return!r.isOdd(Z);throw new Error("Field doesn't support isOdd")}equals(Z){S(Z);const{px:te,py:be,pz:me}=this,{px:pe,py:Te,pz:xe}=Z,Re=r.eql(r.mul(te,xe),r.mul(pe,me)),Me=r.eql(r.mul(be,xe),r.mul(Te,me));return Re&&Me}negate(){return new A(this.px,r.neg(this.py),this.pz)}double(){const{a:Z,b:te}=s,be=r.mul(te,_3n),{px:me,py:pe,pz:Te}=this;let xe=r.ZERO,Re=r.ZERO,Me=r.ZERO,Ce=r.mul(me,me),le=r.mul(pe,pe),ae=r.mul(Te,Te),Ie=r.mul(me,pe);return Ie=r.add(Ie,Ie),Me=r.mul(me,Te),Me=r.add(Me,Me),xe=r.mul(Z,Me),Re=r.mul(be,ae),Re=r.add(xe,Re),xe=r.sub(le,Re),Re=r.add(le,Re),Re=r.mul(xe,Re),xe=r.mul(Ie,xe),Me=r.mul(be,Me),ae=r.mul(Z,ae),Ie=r.sub(Ce,ae),Ie=r.mul(Z,Ie),Ie=r.add(Ie,Me),Me=r.add(Ce,Ce),Ce=r.add(Me,Ce),Ce=r.add(Ce,ae),Ce=r.mul(Ce,Ie),Re=r.add(Re,Ce),ae=r.mul(pe,Te),ae=r.add(ae,ae),Ce=r.mul(ae,Ie),xe=r.sub(xe,Ce),Me=r.mul(ae,le),Me=r.add(Me,Me),Me=r.add(Me,Me),new A(xe,Re,Me)}add(Z){S(Z);const{px:te,py:be,pz:me}=this,{px:pe,py:Te,pz:xe}=Z;let Re=r.ZERO,Me=r.ZERO,Ce=r.ZERO;const le=s.a,ae=r.mul(s.b,_3n);let Ie=r.mul(te,pe),$e=r.mul(be,Te),st=r.mul(me,xe),ht=r.add(te,be),vt=r.add(pe,Te);ht=r.mul(ht,vt),vt=r.add(Ie,$e),ht=r.sub(ht,vt),vt=r.add(te,me);let at=r.add(pe,xe);return vt=r.mul(vt,at),at=r.add(Ie,st),vt=r.sub(vt,at),at=r.add(be,me),Re=r.add(Te,xe),at=r.mul(at,Re),Re=r.add($e,st),at=r.sub(at,Re),Ce=r.mul(le,vt),Re=r.mul(ae,st),Ce=r.add(Re,Ce),Re=r.sub($e,Ce),Ce=r.add($e,Ce),Me=r.mul(Re,Ce),$e=r.add(Ie,Ie),$e=r.add($e,Ie),st=r.mul(le,st),vt=r.mul(ae,vt),$e=r.add($e,st),st=r.sub(Ie,st),st=r.mul(le,st),vt=r.add(vt,st),Ie=r.mul($e,vt),Me=r.add(Me,Ie),Ie=r.mul(at,vt),Re=r.mul(ht,Re),Re=r.sub(Re,Ie),Ie=r.mul(ht,$e),Ce=r.mul(at,Ce),Ce=r.add(Ce,Ie),new A(Re,Me,Ce)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(A.ZERO)}wNAF(Z){return N.wNAFCached(this,T,Z,te=>{const be=r.invertBatch(te.map(me=>me.pz));return te.map((me,pe)=>me.toAffine(be[pe])).map(A.fromAffine)})}multiplyUnsafe(Z){const te=A.ZERO;if(Z===_0n$1)return te;if(w(Z),Z===_1n$1)return this;const{endo:be}=s;if(!be)return N.unsafeLadder(this,Z);let{k1neg:me,k1:pe,k2neg:Te,k2:xe}=be.splitScalar(Z),Re=te,Me=te,Ce=this;for(;pe>_0n$1||xe>_0n$1;)pe&_1n$1&&(Re=Re.add(Ce)),xe&_1n$1&&(Me=Me.add(Ce)),Ce=Ce.double(),pe>>=_1n$1,xe>>=_1n$1;return me&&(Re=Re.negate()),Te&&(Me=Me.negate()),Me=new A(r.mul(Me.px,be.beta),Me.py,Me.pz),Re.add(Me)}multiply(Z){w(Z);let te,be,me=Z;const{endo:pe}=s;if(pe){const{k1neg:Te,k1:xe,k2neg:Re,k2:Me}=pe.splitScalar(me);let{p:Ce,f:le}=this.wNAF(xe),{p:ae,f:Ie}=this.wNAF(Me);Ce=N.constTimeNegate(Te,Ce),ae=N.constTimeNegate(Re,ae),ae=new A(r.mul(ae.px,pe.beta),ae.py,ae.pz),te=Ce.add(ae),be=le.add(Ie)}else{const{p:Te,f:xe}=this.wNAF(me);te=Te,be=xe}return A.normalizeZ([te,be])[0]}multiplyAndAddUnsafe(Z,te,be){const me=A.BASE,pe=(xe,Re)=>Re!==_0n$1&&Re!==_1n$1&&xe.equals(me)?xe.multiply(Re):xe.multiplyUnsafe(Re),Te=pe(this,te).add(pe(Z,be));return Te.is0()?void 0:Te}toAffine(Z){const{px:te,py:be,pz:me}=this,pe=this.is0();null==Z&&(Z=pe?r.ONE:r.inv(me));const Te=r.mul(te,Z),xe=r.mul(be,Z),Re=r.mul(me,Z);if(pe)return{x:r.ZERO,y:r.ZERO};if(!r.eql(Re,r.ONE))throw new Error("invZ was invalid");return{x:Te,y:xe}}isTorsionFree(){const{h:Z,isTorsionFree:te}=s;if(Z===_1n$1)return!0;if(te)return te(A,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:te}=s;return Z===_1n$1?this:te?te(A,this):this.multiplyUnsafe(s.h)}toRawBytes(Z=!0){return this.assertValidity(),i(A,this,Z)}toHex(Z=!0){return bytesToHex$2(this.toRawBytes(Z))}}A.BASE=new A(s.Gx,s.Gy,r.ONE),A.ZERO=new A(r.ZERO,r.ONE,r.ZERO);const I=s.nBitLength,N=wNAF(A,s.endo?Math.ceil(I/2):I);return{CURVE:s,ProjectivePoint:A,normPrivateKeyToScalar:C,weierstrassEquation:c,isWithinCurveOrder:y}}function validateOpts(o){const s=validateBasic(o);return validateObject(s,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...s})}function weierstrass(o){const s=validateOpts(o),{Fp:r,n:i}=s,a=r.BYTES+1,c=2*r.BYTES+1;function y(le){return mod(le,i)}function w(le){return invert(le,i)}const{ProjectivePoint:C,normPrivateKeyToScalar:T,weierstrassEquation:S,isWithinCurveOrder:A}=weierstrassPoints({...s,toBytes(le,ae,Ie){const $e=ae.toAffine(),st=r.toBytes($e.x),ht=concatBytes$2;return Ie?ht(Uint8Array.from([ae.hasEvenY()?2:3]),st):ht(Uint8Array.from([4]),st,r.toBytes($e.y))},fromBytes(le){const ae=le.length,Ie=le[0],$e=le.subarray(1);if(ae!==a||2!==Ie&&3!==Ie){if(ae===c&&4===Ie)return{x:r.fromBytes($e.subarray(0,r.BYTES)),y:r.fromBytes($e.subarray(r.BYTES,2*r.BYTES))};throw new Error(`Point of length ${ae} was invalid. Expected ${a} compressed bytes or ${c} uncompressed bytes`)}{const ht=bytesToNumberBE($e);if(!(_0n$1<(st=ht)&&st<r.ORDER))throw new Error("Point is not on curve");const vt=S(ht);let at=r.sqrt(vt);return!(1&~Ie)!=((at&_1n$1)===_1n$1)&&(at=r.neg(at)),{x:ht,y:at}}var st}}),I=le=>bytesToHex$2(numberToBytesBE(le,s.nByteLength));function N(le){return le>i>>_1n$1}const G=(le,ae,Ie)=>bytesToNumberBE(le.slice(ae,Ie));class Z{constructor(ae,Ie,$e){this.r=ae,this.s=Ie,this.recovery=$e,this.assertValidity()}static fromCompact(ae){const Ie=s.nByteLength;return ae=ensureBytes$1("compactSignature",ae,2*Ie),new Z(G(ae,0,Ie),G(ae,Ie,2*Ie))}static fromDER(ae){const{r:Ie,s:$e}=DER.toSig(ensureBytes$1("DER",ae));return new Z(Ie,$e)}assertValidity(){if(!A(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!A(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ae){return new Z(this.r,this.s,ae)}recoverPublicKey(ae){const{r:Ie,s:$e,recovery:st}=this,ht=pe(ensureBytes$1("msgHash",ae));if(null==st||![0,1,2,3].includes(st))throw new Error("recovery id invalid");const vt=2===st||3===st?Ie+s.n:Ie;if(vt>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const Xt=C.fromHex((1&st?"03":"02")+I(vt)),ln=w(vt),yn=y(-ht*ln),$n=y($e*ln),bn=C.BASE.multiplyAndAddUnsafe(Xt,yn,$n);if(!bn)throw new Error("point at infinify");return bn.assertValidity(),bn}hasHighS(){return N(this.s)}normalizeS(){return this.hasHighS()?new Z(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$2(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$2(this.toCompactHex())}toCompactHex(){return I(this.r)+I(this.s)}}const te={isValidPrivateKey(le){try{return T(le),!0}catch{return!1}},normPrivateKeyToScalar:T,randomPrivateKey:()=>numberToBytesBE(hashToPrivateScalar(s.randomBytes(r.BYTES+8),i),s.nByteLength),precompute:(le=8,ae=C.BASE)=>(ae._setWindowSize(le),ae.multiply(BigInt(3)),ae)};function be(le){const ae=le instanceof Uint8Array,Ie="string"==typeof le,$e=(ae||Ie)&&le.length;return ae?$e===a||$e===c:Ie?$e===2*a||$e===2*c:le instanceof C}const me=s.bits2int||function(le){const ae=bytesToNumberBE(le),Ie=8*le.length-s.nBitLength;return Ie>0?ae>>BigInt(Ie):ae},pe=s.bits2int_modN||function(le){return y(me(le))},Te=bitMask(s.nBitLength);function xe(le){if("bigint"!=typeof le)throw new Error("bigint expected");if(!(_0n$1<=le&&le<Te))throw new Error(`bigint expected < 2^${s.nBitLength}`);return numberToBytesBE(le,s.nByteLength)}const Me={lowS:s.lowS,prehash:!1},Ce={lowS:s.lowS,prehash:!1};return C.BASE._setWindowSize(8),{CURVE:s,getPublicKey:function(le,ae=!0){return C.fromPrivateKey(le).toRawBytes(ae)},getSharedSecret:function(le,ae,Ie=!0){if(be(le))throw new Error("first arg must be private key");if(!be(ae))throw new Error("second arg must be public key");return C.fromHex(ae).multiply(T(le)).toRawBytes(Ie)},sign:function(le,ae,Ie=Me){const{seed:$e,k2sig:st}=function Re(le,ae,Ie=Me){if(["recovered","canonical"].some(Qe=>Qe in Ie))throw new Error("sign() legacy options not supported");const{hash:$e,randomBytes:st}=s;let{lowS:ht,prehash:vt,extraEntropy:at}=Ie;null==ht&&(ht=!0),le=ensureBytes$1("msgHash",le),vt&&(le=ensureBytes$1("prehashed msgHash",$e(le)));const Xt=pe(le),ln=T(ae),yn=[xe(ln),xe(Xt)];if(null!=at){const Qe=!0===at?st(r.BYTES):at;yn.push(ensureBytes$1("extraEntropy",Qe,r.BYTES))}const $n=concatBytes$2(...yn),bn=Xt;return{seed:$n,k2sig:function(Qe){const bt=me(Qe);if(!A(bt))return;const ze=w(bt),Fe=C.BASE.multiply(bt).toAffine(),Ft=y(Fe.x);if(Ft===_0n$1)return;const Ke=y(ze*y(bn+Ft*ln));if(Ke===_0n$1)return;let dt=(Fe.x===Ft?0:2)|Number(Fe.y&_1n$1),Ge=Ke;return ht&&N(Ke)&&(Ge=N(He=Ke)?y(-He):He,dt^=1),new Z(Ft,Ge,dt);var He}}}(le,ae,Ie);return createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)($e,st)},verify:function(le,ae,Ie,$e=Ce){const st=le;if(ae=ensureBytes$1("msgHash",ae),Ie=ensureBytes$1("publicKey",Ie),"strict"in $e)throw new Error("options.strict was renamed to lowS");const{lowS:ht,prehash:vt}=$e;let at,Xt;try{if("string"==typeof st||st instanceof Uint8Array)try{at=Z.fromDER(st)}catch(Fe){if(!(Fe instanceof DER.Err))throw Fe;at=Z.fromCompact(st)}else{if("object"!=typeof st||"bigint"!=typeof st.r||"bigint"!=typeof st.s)throw new Error("PARSE");{const{r:Fe,s:Ft}=st;at=new Z(Fe,Ft)}}Xt=C.fromHex(Ie)}catch(Fe){if("PARSE"===Fe.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ht&&at.hasHighS())return!1;vt&&(ae=s.hash(ae));const{r:ln,s:yn}=at,$n=pe(ae),bn=w(yn),Qe=y($n*bn),bt=y(ln*bn),ze=C.BASE.multiplyAndAddUnsafe(Xt,Qe,bt)?.toAffine();return!!ze&&y(ze.x)===ln},ProjectivePoint:C,Signature:Z,utils:te}}BigInt(4);let HMAC$2=class extends Hash$2{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,assert$3.hash(o);const r=toBytes$3(s);if(this.iHash=o.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?o.create().update(r).digest():r);for(let c=0;c<a.length;c++)a[c]^=54;this.iHash.update(a),this.oHash=o.create();for(let c=0;c<a.length;c++)a[c]^=106;this.oHash.update(a),a.fill(0)}update(o){return assert$3.exists(this),this.iHash.update(o),this}digestInto(o){assert$3.exists(this),assert$3.bytes(o,this.outputLen),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||(o=Object.create(Object.getPrototypeOf(this),{}));const{oHash:s,iHash:r,finished:i,destroyed:a,blockLen:c,outputLen:y}=this;return o.finished=i,o.destroyed=a,o.blockLen=c,o.outputLen=y,o.oHash=s._cloneInto(o.oHash),o.iHash=r._cloneInto(o.iHash),o}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};const hmac$2=(o,s,r)=>new HMAC$2(o,s).update(r).digest();function getHash(o){return{hash:o,hmac:(s,...r)=>hmac$2(o,s,concatBytes$3(...r)),randomBytes:randomBytes$2}}function createCurve(o,s){const r=i=>weierstrass({...o,...getHash(i)});return Object.freeze({...r(s),create:r})}hmac$2.create=(o,s)=>new HMAC$2(o,s);const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(o,s)=>(o+s/_2n)/s;function sqrtMod(o){const s=secp256k1P,r=BigInt(3),i=BigInt(6),a=BigInt(11),c=BigInt(22),y=BigInt(23),w=BigInt(44),C=BigInt(88),T=o*o*o%s,S=T*T*o%s,A=pow2(S,r,s)*S%s,I=pow2(A,r,s)*S%s,N=pow2(I,_2n,s)*T%s,G=pow2(N,a,s)*N%s,Z=pow2(G,c,s)*G%s,te=pow2(Z,w,s)*Z%s,be=pow2(te,C,s)*te%s,me=pow2(be,w,s)*Z%s,pe=pow2(me,r,s)*S%s,Te=pow2(pe,y,s)*G%s,xe=pow2(Te,i,s)*T%s,Re=pow2(xe,_2n,s);if(!Fp.eql(Fp.sqr(Re),o))throw new Error("Cannot find square root");return Re}const Fp=Field(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:o=>{const s=secp256k1N,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),c=r,y=BigInt("0x100000000000000000000000000000000"),w=divNearest(c*o,s),C=divNearest(-i*o,s);let T=mod(o-w*r-C*a,s),S=mod(-w*i-C*c,s);const A=T>y,I=S>y;if(A&&(T=s-T),I&&(S=s-S),T>y||S>y)throw new Error("splitScalar: Endomorphism failed, k="+o);return{k1neg:A,k1:T,k2neg:I,k2:S}}}},sha256$2),_0n=BigInt(0),fe=o=>"bigint"==typeof o&&_0n<o&&o<secp256k1P,ge=o=>"bigint"==typeof o&&_0n<o&&o<secp256k1N,TAGGED_HASH_PREFIXES={};function taggedHash(o,...s){let r=TAGGED_HASH_PREFIXES[o];if(void 0===r){const i=sha256$2(Uint8Array.from(o,a=>a.charCodeAt(0)));r=concatBytes$2(i,i),TAGGED_HASH_PREFIXES[o]=r}return sha256$2(concatBytes$2(r,...s))}const pointToBytes=o=>o.toRawBytes(!0).slice(1),numTo32b=o=>numberToBytesBE(o,32),modP=o=>mod(o,secp256k1P),modN=o=>mod(o,secp256k1N),Point$1=secp256k1.ProjectivePoint,GmulAdd=(o,s,r)=>Point$1.BASE.multiplyAndAddUnsafe(o,s,r);function schnorrGetExtPubKey(o){let s=secp256k1.utils.normPrivateKeyToScalar(o),r=Point$1.fromPrivateKey(s);return{scalar:r.hasEvenY()?s:modN(-s),bytes:pointToBytes(r)}}function lift_x(o){if(!fe(o))throw new Error("bad x: need 0 < x < p");const s=modP(o*o);let r=sqrtMod(modP(s*o+BigInt(7)));r%_2n!==_0n&&(r=modP(-r));const i=new Point$1(o,r,_1n);return i.assertValidity(),i}function challenge(...o){return modN(bytesToNumberBE(taggedHash("BIP0340/challenge",...o)))}function schnorrGetPublicKey(o){return schnorrGetExtPubKey(o).bytes}function schnorrSign(o,s,r=randomBytes$2(32)){const i=ensureBytes$1("message",o),{bytes:a,scalar:c}=schnorrGetExtPubKey(s),y=ensureBytes$1("auxRand",r,32),w=numTo32b(c^bytesToNumberBE(taggedHash("BIP0340/aux",y))),C=taggedHash("BIP0340/nonce",w,a,i),T=modN(bytesToNumberBE(C));if(T===_0n)throw new Error("sign failed: k is zero");const{bytes:S,scalar:A}=schnorrGetExtPubKey(T),I=challenge(S,a,i),N=new Uint8Array(64);if(N.set(S,0),N.set(numTo32b(modN(A+I*c)),32),!schnorrVerify(N,i,a))throw new Error("sign: Invalid signature produced");return N}function schnorrVerify(o,s,r){const i=ensureBytes$1("signature",o,64),a=ensureBytes$1("message",s),c=ensureBytes$1("publicKey",r,32);try{const y=lift_x(bytesToNumberBE(c)),w=bytesToNumberBE(i.subarray(0,32));if(!fe(w))return!1;const C=bytesToNumberBE(i.subarray(32,64));if(!ge(C))return!1;const T=challenge(numTo32b(w),pointToBytes(y),a),S=GmulAdd(y,C,modN(-T));return!(!S||!S.hasEvenY()||S.toAffine().x!==w)}catch{return!1}}const schnorr={getPublicKey:schnorrGetPublicKey,sign:schnorrSign,verify:schnorrVerify,utils:{randomPrivateKey:secp256k1.utils.randomPrivateKey,lift_x,pointToBytes,numberToBytesBE,bytesToNumberBE,taggedHash,mod}},crypto$2="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,u8a$1=o=>o instanceof Uint8Array,createView$1=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$1=(o,s)=>o<<32-s|o>>>s,isLE$2=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$2)throw new Error("Non little-endian hardware is not supported");const hexes$1=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$1(o){if(!u8a$1(o))throw new Error("Uint8Array expected");let s="";for(let r=0;r<o.length;r++)s+=hexes$1[o[r]];return s}function hexToBytes$1(o){if("string"!=typeof o)throw new Error("hex string expected, got "+typeof o);const s=o.length;if(s%2)throw new Error("padded hex string expected, got unpadded hex of length "+s);const r=new Uint8Array(s/2);for(let i=0;i<r.length;i++){const a=2*i,c=o.slice(a,a+2),y=Number.parseInt(c,16);if(Number.isNaN(y)||y<0)throw new Error("Invalid byte sequence");r[i]=y}return r}function utf8ToBytes$2(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes$2(o){if("string"==typeof o&&(o=utf8ToBytes$2(o)),!u8a$1(o))throw new Error("expected Uint8Array, got "+typeof o);return o}function concatBytes$1(...o){const s=new Uint8Array(o.reduce((i,a)=>i+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$1(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}let Hash$1=class{clone(){return this._cloneInto()}};function wrapConstructor$1(o){const s=i=>o().update(toBytes$2(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes$1(o=32){if(crypto$2&&"function"==typeof crypto$2.getRandomValues)return crypto$2.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function number$2(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$2(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function bytes$2(o,...s){if(!(o instanceof Uint8Array))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$2(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$2(o.outputLen),number$2(o.blockLen)}function exists$2(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$2(o,s){bytes$2(o);const r=s.outputLen;if(o.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}const assert$2={number:number$2,bool:bool$2,bytes:bytes$2,hash:hash$2,exists:exists$2,output:output$2};function setBigUint64$1(o,s,r,i){if("function"==typeof o.setBigUint64)return o.setBigUint64(s,r,i);const a=BigInt(32),c=BigInt(4294967295),y=Number(r>>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$1=class extends Hash$1{constructor(o,s,r,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$1(this.buffer)}update(o){assert$2.exists(this);const{view:s,buffer:r,blockLen:i}=this,a=(o=toBytes$2(o)).length;for(let c=0;c<a;){const y=Math.min(i-this.pos,a-c);if(y!==i)r.set(o.subarray(c,c+y),this.pos),this.pos+=y,c+=y,this.pos===i&&(this.process(s,0),this.pos=0);else{const w=createView$1(o);for(;i<=a-c;c+=i)this.process(w,c)}}return this.length+=o.length,this.roundClean(),this}digestInto(o){assert$2.exists(this),assert$2.output(o,this),this.finished=!0;const{buffer:s,view:r,blockLen:i,isLE:a}=this;let{pos:c}=this;s[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>i-c&&(this.process(r,0),c=0);for(let S=c;S<i;S++)s[S]=0;setBigUint64$1(r,i-8,BigInt(8*this.length),a),this.process(r,0);const y=createView$1(o),w=this.outputLen;if(w%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const C=w/4,T=this.get();if(C>T.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;S<C;S++)y.setUint32(4*S,T[S],a)}digest(){const{buffer:o,outputLen:s}=this;this.digestInto(o);const r=o.slice(0,s);return this.destroy(),r}_cloneInto(o){o||(o=new this.constructor),o.set(...this.get());const{blockLen:s,buffer:r,length:i,finished:a,destroyed:c,pos:y}=this;return o.length=i,o.pos=y,o.finished=a,o.destroyed=c,i%s&&o.buffer.set(r),o}};const Chi$1=(o,s,r)=>o&s^~o&r,Maj$1=(o,s,r)=>o&s^o&r^s&r,SHA256_K$1=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$1=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=0|IV$1[0],this.B=0|IV$1[1],this.C=0|IV$1[2],this.D=0|IV$1[3],this.E=0|IV$1[4],this.F=0|IV$1[5],this.G=0|IV$1[6],this.H=0|IV$1[7]}get(){const{A:o,B:s,C:r,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,r,i,a,c,y,w]}set(o,s,r,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|r,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$1[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const A=SHA256_W$1[S-15],I=SHA256_W$1[S-2],N=rotr$1(A,7)^rotr$1(A,18)^A>>>3,G=rotr$1(I,17)^rotr$1(I,19)^I>>>10;SHA256_W$1[S]=G+SHA256_W$1[S-7]+N+SHA256_W$1[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const A=T+(rotr$1(y,6)^rotr$1(y,11)^rotr$1(y,25))+Chi$1(y,w,C)+SHA256_K$1[S]+SHA256_W$1[S]|0,I=(rotr$1(r,2)^rotr$1(r,13)^rotr$1(r,22))+Maj$1(r,i,a)|0;T=C,C=w,w=y,y=c+A|0,c=a,a=i,i=r,r=A+I|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(r,i,a,c,y,w,C,T)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};class SHA224 extends SHA256$1{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const sha256$1=wrapConstructor$1(()=>new SHA256$1);function assertNumber(o){if(!Number.isSafeInteger(o))throw new Error(`Wrong integer: ${o}`)}function chain$1(...o){const s=(r,i)=>a=>r(i(a));return{encode:Array.from(o).reverse().reduce((r,i)=>r?s(r,i.encode):i.encode,void 0),decode:o.reduce((r,i)=>r?s(r,i.decode):i.decode,void 0)}}function alphabet$1(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(r=>{if(assertNumber(r),r<0||r>=o.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${o.length})`);return o[r]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(r=>{if("string"!=typeof r)throw new Error(`alphabet.decode: not string element=${r}`);const i=o.indexOf(r);if(-1===i)throw new Error(`Unknown letter: "${r}". Allowed: ${o}`);return i})}}}function join$1(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let r of s)if("string"!=typeof r)throw new Error(`join.encode: non-string input=${r}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding$1(o,s="="){if(assertNumber(o),"string"!=typeof s)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let i of r)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;r.length*o%8;)r.push(s);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let a of r)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=r.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&r[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,i)}}}function normalize$1(o){if("function"!=typeof o)throw new Error("normalize fn should be function");return{encode:s=>s,decode:s=>o(s)}}function convertRadix$1(o,s,r){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(assertNumber(y),y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;C<c.length;C++){const T=c[C],S=s*y+T;if(!Number.isSafeInteger(S)||s*y/s!==y||S-T!=s*y)throw new Error("convertRadix: carry overflow");if(y=S%r,c[C]=Math.floor(S/r),!Number.isSafeInteger(c[C])||c[C]*r+y!==S)throw new Error("convertRadix: carry overflow");w&&(c[C]?w=!1:i=C)}if(a.push(y),w)break}for(let y=0;y<o.length-1&&0===o[y];y++)a.push(0);return a.reverse()}wrapConstructor$1(()=>new SHA224);const gcd$1=(o,s)=>s?gcd$1(s,o%s):o,radix2carry$1=(o,s)=>o+(s-gcd$1(o,s));function convertRadix2$1(o,s,r,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(radix2carry$1(s,r)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${r} carryBits=${radix2carry$1(s,r)}`);let a=0,c=0;const y=2**r-1,w=[];for(const C of o){if(assertNumber(C),C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<<s|C,c+s>32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=r;c-=r)w.push((a>>c-r&y)>>>0);a&=2**c-1}if(a=a<<r-c&y,!i&&c>=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix$1(o){return assertNumber(o),{encode:s=>{if(!(s instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return convertRadix$1(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(convertRadix$1(s,o,256))}}}function radix2$1(o,s=!1){if(assertNumber(o),o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry$1(8,o)>32||radix2carry$1(o,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!(r instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2$1(Array.from(r),8,o,!s)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(convertRadix2$1(r,o,8,s))}}}function unsafeWrapper$1(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}const base16=chain$1(radix2$1(4),alphabet$1("0123456789ABCDEF"),join$1("")),base32=chain$1(radix2$1(5),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),padding$1(5),join$1(""));chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHIJKLMNOPQRSTUV"),padding$1(5),join$1("")),chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),join$1(""),normalize$1(o=>o.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const base64$1=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),padding$1(6),join$1("")),base64url=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),padding$1(6),join$1("")),genBase58$1=o=>chain$1(radix$1(58),alphabet$1(o),join$1("")),base58$1=genBase58$1("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");genBase58$1("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),genBase58$1("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const XMR_BLOCK_LEN=[0,2,3,5,6,7,9,10,11],base58xmr={encode(o){let s="";for(let r=0;r<o.length;r+=8){const i=o.subarray(r,r+8);s+=base58$1.encode(i).padStart(XMR_BLOCK_LEN[i.length],"1")}return s},decode(o){let s=[];for(let r=0;r<o.length;r+=11){const i=o.slice(r,r+11),a=XMR_BLOCK_LEN.indexOf(i.length),c=base58$1.decode(i);for(let y=0;y<c.length-a;y++)if(0!==c[y])throw new Error("base58xmr: wrong padding");s=s.concat(Array.from(c.slice(c.length-a)))}return Uint8Array.from(s)}},BECH_ALPHABET$1=chain$1(alphabet$1("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),join$1("")),POLYMOD_GENERATORS$1=[996825010,642813549,513874426,1027748829,705979059];function bech32Polymod$1(o){const s=o>>25;let r=(33554431&o)<<5;for(let i=0;i<POLYMOD_GENERATORS$1.length;i++)1==(s>>i&1)&&(r^=POLYMOD_GENERATORS$1[i]);return r}function bechChecksum$1(o,s,r=1){const i=o.length;let a=1;for(let c=0;c<i;c++){const y=o.charCodeAt(c);if(y<33||y>126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod$1(a)^y>>5}a=bech32Polymod$1(a);for(let c=0;c<i;c++)a=bech32Polymod$1(a)^31&o.charCodeAt(c);for(let c of s)a=bech32Polymod$1(a)^c;for(let c=0;c<6;c++)a=bech32Polymod$1(a);return a^=r,BECH_ALPHABET$1.encode(convertRadix2$1([a%2**30],30,5,!1))}function genBech32$1(o){const s="bech32"===o?1:734539939,r=radix2$1(5),i=r.decode,a=r.encode,c=unsafeWrapper$1(i);function y(w,C=90){if("string"!=typeof w)throw new Error("bech32.decode input should be string, not "+typeof w);if(w.length<8||!1!==C&&w.length>C)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const A=w.slice(0,S),I=w.slice(S+1);if(I.length<6)throw new Error("Data must be at least 6 characters long");const N=BECH_ALPHABET$1.decode(I).slice(0,-6),G=bechChecksum$1(A,N,s);if(!I.endsWith(G))throw new Error(`Invalid checksum in ${w}: expected "${G}"`);return{prefix:A,words:N}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);return`${w=w.toLowerCase()}1${BECH_ALPHABET$1.encode(C)}${bechChecksum$1(w,C,s)}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper$1(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32$1=genBech32$1("bech32");genBech32$1("bech32m");const utf8={encode:o=>(new TextDecoder).decode(o),decode:o=>(new TextEncoder).encode(o)},hex=chain$1(radix2$1(4),alphabet$1("0123456789abcdef"),join$1(""),normalize$1(o=>{if("string"!=typeof o||o.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof o} with length ${o.length}`);return o.toLowerCase()})),CODERS={utf8,hex,base16,base32,base64:base64$1,base64url,base58:base58$1,base58xmr};Object.keys(CODERS).join(", ");const wordlist="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n");function number$1(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$1(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function isBytes$2(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function bytes$1(o,...s){if(!isBytes$2(o))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$1(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(o.outputLen),number$1(o.blockLen)}function exists$1(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$1(o,s){bytes$1(o);const r=s.outputLen;if(o.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}const assert$1={number:number$1,bool:bool$1,bytes:bytes$1,hash:hash$1,exists:exists$1,output:output$1},crypto$1="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function isBytes$1(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}const createView=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr=(o,s)=>o<<32-s|o>>>s,isLE$1=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$1)throw new Error("Non little-endian hardware is not supported");const hexes=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex(o){if(!isBytes$1(o))throw new Error("Uint8Array expected");let s="";for(let r=0;r<o.length;r++)s+=hexes[o[r]];return s}const asciis={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function asciiToBase16(o){return o>=asciis._0&&o<=asciis._9?o-asciis._0:o>=asciis._A&&o<=asciis._F?o-(asciis._A-10):o>=asciis._a&&o<=asciis._f?o-(asciis._a-10):void 0}function hexToBytes(o){if("string"!=typeof o)throw new Error("hex string expected, got "+typeof o);const s=o.length,r=s/2;if(s%2)throw new Error("padded hex string expected, got unpadded hex of length "+s);const i=new Uint8Array(r);for(let a=0,c=0;a<r;a++,c+=2){const y=asciiToBase16(o.charCodeAt(c)),w=asciiToBase16(o.charCodeAt(c+1));if(void 0===y||void 0===w)throw new Error('hex string expected, got non-hex character "'+(o[c]+o[c+1])+'" at index '+c);i[a]=16*y+w}return i}function utf8ToBytes$1(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes$1(o){if("string"==typeof o&&(o=utf8ToBytes$1(o)),!isBytes$1(o))throw new Error("expected Uint8Array, got "+typeof o);return o}function concatBytes(...o){let s=0;for(let i=0;i<o.length;i++){const a=o[i];if(!isBytes$1(a))throw new Error("Uint8Array expected");s+=a.length}const r=new Uint8Array(s);for(let i=0,a=0;i<o.length;i++){const c=o[i];r.set(c,a),a+=c.length}return r}class Hash{clone(){return this._cloneInto()}}const toStr={}.toString;function checkOpts$1(o,s){if(void 0!==s&&"[object Object]"!==toStr.call(s))throw new Error("Options should be object or undefined");return Object.assign(o,s)}function wrapConstructor(o){const s=i=>o().update(toBytes$1(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes(o=32){if(crypto$1&&"function"==typeof crypto$1.getRandomValues)return crypto$1.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}let HMAC$1=class extends Hash{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,hash$1(o);const r=toBytes$1(s);if(this.iHash=o.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?o.create().update(r).digest():r);for(let c=0;c<a.length;c++)a[c]^=54;this.iHash.update(a),this.oHash=o.create();for(let c=0;c<a.length;c++)a[c]^=106;this.oHash.update(a),a.fill(0)}update(o){return exists$1(this),this.iHash.update(o),this}digestInto(o){exists$1(this),bytes$1(o,this.outputLen),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||(o=Object.create(Object.getPrototypeOf(this),{}));const{oHash:s,iHash:r,finished:i,destroyed:a,blockLen:c,outputLen:y}=this;return o.finished=i,o.destroyed=a,o.blockLen=c,o.outputLen=y,o.oHash=s._cloneInto(o.oHash),o.iHash=r._cloneInto(o.iHash),o}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};const hmac$1=(o,s,r)=>new HMAC$1(o,s).update(r).digest();function pbkdf2Init(o,s,r,i){hash$1(o);const a=checkOpts$1({dkLen:32,asyncTick:10},i),{c,dkLen:y,asyncTick:w}=a;if(number$1(c),number$1(y),number$1(w),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const C=toBytes$1(s),T=toBytes$1(r),S=new Uint8Array(y),A=hmac$1.create(o,C),I=A._cloneInto().update(T);return{c,dkLen:y,asyncTick:w,DK:S,PRF:A,PRFSalt:I}}function pbkdf2Output(o,s,r,i,a){return o.destroy(),s.destroy(),i&&i.destroy(),a.fill(0),r}function pbkdf2(o,s,r,i){const{c:a,dkLen:c,DK:y,PRF:w,PRFSalt:C}=pbkdf2Init(o,s,r,i);let T;const S=new Uint8Array(4),A=createView(S),I=new Uint8Array(w.outputLen);for(let N=1,G=0;G<c;N++,G+=w.outputLen){const Z=y.subarray(G,G+w.outputLen);A.setInt32(0,N,!1),(T=C._cloneInto(T)).update(S).digestInto(I),Z.set(I.subarray(0,Z.length));for(let te=1;te<a;te++){w._cloneInto(T).update(I).digestInto(I);for(let be=0;be<Z.length;be++)Z[be]^=I[be]}}return pbkdf2Output(w,C,y,T,I)}function setBigUint64(o,s,r,i){if("function"==typeof o.setBigUint64)return o.setBigUint64(s,r,i);const a=BigInt(32),c=BigInt(4294967295),y=Number(r>>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}hmac$1.create=(o,s)=>new HMAC$1(o,s);class SHA2 extends Hash{constructor(s,r,i,a){super(),this.blockLen=s,this.outputLen=r,this.padOffset=i,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(s),this.view=createView(this.buffer)}update(s){exists$1(this);const{view:r,buffer:i,blockLen:a}=this,c=(s=toBytes$1(s)).length;for(let y=0;y<c;){const w=Math.min(a-this.pos,c-y);if(w!==a)i.set(s.subarray(y,y+w),this.pos),this.pos+=w,y+=w,this.pos===a&&(this.process(r,0),this.pos=0);else{const C=createView(s);for(;a<=c-y;y+=a)this.process(C,y)}}return this.length+=s.length,this.roundClean(),this}digestInto(s){exists$1(this),output$1(s,this),this.finished=!0;const{buffer:r,view:i,blockLen:a,isLE:c}=this;let{pos:y}=this;r[y++]=128,this.buffer.subarray(y).fill(0),this.padOffset>a-y&&(this.process(i,0),y=0);for(let A=y;A<a;A++)r[A]=0;setBigUint64(i,a-8,BigInt(8*this.length),c),this.process(i,0);const w=createView(s),C=this.outputLen;if(C%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const T=C/4,S=this.get();if(T>S.length)throw new Error("_sha2: outputLen bigger than state");for(let A=0;A<T;A++)w.setUint32(4*A,S[A],c)}digest(){const{buffer:s,outputLen:r}=this;this.digestInto(s);const i=s.slice(0,r);return this.destroy(),i}_cloneInto(s){s||(s=new this.constructor),s.set(...this.get());const{blockLen:r,buffer:i,length:a,finished:c,destroyed:y,pos:w}=this;return s.length=a,s.pos=w,s.finished=c,s.destroyed=y,a%r&&s.buffer.set(i),s}}const Chi=(o,s,r)=>o&s^~o&r,Maj=(o,s,r)=>o&s^o&r^s&r,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=0|IV[0],this.B=0|IV[1],this.C=0|IV[2],this.D=0|IV[3],this.E=0|IV[4],this.F=0|IV[5],this.G=0|IV[6],this.H=0|IV[7]}get(){const{A:s,B:r,C:i,D:a,E:c,F:y,G:w,H:C}=this;return[s,r,i,a,c,y,w,C]}set(s,r,i,a,c,y,w,C){this.A=0|s,this.B=0|r,this.C=0|i,this.D=0|a,this.E=0|c,this.F=0|y,this.G=0|w,this.H=0|C}process(s,r){for(let A=0;A<16;A++,r+=4)SHA256_W[A]=s.getUint32(r,!1);for(let A=16;A<64;A++){const I=SHA256_W[A-15],N=SHA256_W[A-2],G=rotr(I,7)^rotr(I,18)^I>>>3,Z=rotr(N,17)^rotr(N,19)^N>>>10;SHA256_W[A]=Z+SHA256_W[A-7]+G+SHA256_W[A-16]|0}let{A:i,B:a,C:c,D:y,E:w,F:C,G:T,H:S}=this;for(let A=0;A<64;A++){const I=S+(rotr(w,6)^rotr(w,11)^rotr(w,25))+Chi(w,C,T)+SHA256_K[A]+SHA256_W[A]|0,N=(rotr(i,2)^rotr(i,13)^rotr(i,22))+Maj(i,a,c)|0;S=T,T=C,C=w,w=y+I|0,y=c,c=a,a=i,i=I+N|0}i=i+this.A|0,a=a+this.B|0,c=c+this.C|0,y=y+this.D|0,w=w+this.E|0,C=C+this.F|0,T=T+this.G|0,S=S+this.H|0,this.set(i,a,c,y,w,C,T,S)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sha256=wrapConstructor(()=>new SHA256),U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(o,s=!1){return s?{h:Number(o&U32_MASK64),l:Number(o>>_32n&U32_MASK64)}:{h:0|Number(o>>_32n&U32_MASK64),l:0|Number(o&U32_MASK64)}}function split(o,s=!1){let r=new Uint32Array(o.length),i=new Uint32Array(o.length);for(let a=0;a<o.length;a++){const{h:c,l:y}=fromBig(o[a],s);[r[a],i[a]]=[c,y]}return[r,i]}const toBig=(o,s)=>BigInt(o>>>0)<<_32n|BigInt(s>>>0),shrSH=(o,s,r)=>o>>>r,shrSL=(o,s,r)=>o<<32-r|s>>>r,rotrSH=(o,s,r)=>o>>>r|s<<32-r,rotrSL=(o,s,r)=>o<<32-r|s>>>r,rotrBH=(o,s,r)=>o<<64-r|s>>>r-32,rotrBL=(o,s,r)=>o>>>r-32|s<<64-r,rotr32H=(o,s)=>s,rotr32L=(o,s)=>o,rotlSH=(o,s,r)=>o<<r|s>>>32-r,rotlSL=(o,s,r)=>s<<r|o>>>32-r,rotlBH=(o,s,r)=>s<<r-32|o>>>64-r,rotlBL=(o,s,r)=>o<<r-32|s>>>64-r;function add(o,s,r,i){const a=(s>>>0)+(i>>>0);return{h:o+r+(a/2**32|0)|0,l:0|a}}const add3L=(o,s,r)=>(o>>>0)+(s>>>0)+(r>>>0),add3H=(o,s,r,i)=>s+r+i+(o/2**32|0)|0,add4L=(o,s,r,i)=>(o>>>0)+(s>>>0)+(r>>>0)+(i>>>0),add4H=(o,s,r,i,a)=>s+r+i+a+(o/2**32|0)|0,add5L=(o,s,r,i,a)=>(o>>>0)+(s>>>0)+(r>>>0)+(i>>>0)+(a>>>0),add5H=(o,s,r,i,a,c)=>s+r+i+a+c+(o/2**32|0)|0,u64={fromBig,split,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA512_Kh,SHA512_Kl]=u64.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(o=>BigInt(o))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:s,Al:r,Bh:i,Bl:a,Ch:c,Cl:y,Dh:w,Dl:C,Eh:T,El:S,Fh:A,Fl:I,Gh:N,Gl:G,Hh:Z,Hl:te}=this;return[s,r,i,a,c,y,w,C,T,S,A,I,N,G,Z,te]}set(s,r,i,a,c,y,w,C,T,S,A,I,N,G,Z,te){this.Ah=0|s,this.Al=0|r,this.Bh=0|i,this.Bl=0|a,this.Ch=0|c,this.Cl=0|y,this.Dh=0|w,this.Dl=0|C,this.Eh=0|T,this.El=0|S,this.Fh=0|A,this.Fl=0|I,this.Gh=0|N,this.Gl=0|G,this.Hh=0|Z,this.Hl=0|te}process(s,r){for(let pe=0;pe<16;pe++,r+=4)SHA512_W_H[pe]=s.getUint32(r),SHA512_W_L[pe]=s.getUint32(r+=4);for(let pe=16;pe<80;pe++){const Te=0|SHA512_W_H[pe-15],xe=0|SHA512_W_L[pe-15],Re=u64.rotrSH(Te,xe,1)^u64.rotrSH(Te,xe,8)^u64.shrSH(Te,xe,7),Me=u64.rotrSL(Te,xe,1)^u64.rotrSL(Te,xe,8)^u64.shrSL(Te,xe,7),Ce=0|SHA512_W_H[pe-2],le=0|SHA512_W_L[pe-2],ae=u64.rotrSH(Ce,le,19)^u64.rotrBH(Ce,le,61)^u64.shrSH(Ce,le,6),Ie=u64.rotrSL(Ce,le,19)^u64.rotrBL(Ce,le,61)^u64.shrSL(Ce,le,6),$e=u64.add4L(Me,Ie,SHA512_W_L[pe-7],SHA512_W_L[pe-16]),st=u64.add4H($e,Re,ae,SHA512_W_H[pe-7],SHA512_W_H[pe-16]);SHA512_W_H[pe]=0|st,SHA512_W_L[pe]=0|$e}let{Ah:i,Al:a,Bh:c,Bl:y,Ch:w,Cl:C,Dh:T,Dl:S,Eh:A,El:I,Fh:N,Fl:G,Gh:Z,Gl:te,Hh:be,Hl:me}=this;for(let pe=0;pe<80;pe++){const Te=u64.rotrSH(A,I,14)^u64.rotrSH(A,I,18)^u64.rotrBH(A,I,41),xe=u64.rotrSL(A,I,14)^u64.rotrSL(A,I,18)^u64.rotrBL(A,I,41),Re=A&N^~A&Z,Ce=u64.add5L(me,xe,I&G^~I&te,SHA512_Kl[pe],SHA512_W_L[pe]),le=u64.add5H(Ce,be,Te,Re,SHA512_Kh[pe],SHA512_W_H[pe]),ae=0|Ce,Ie=u64.rotrSH(i,a,28)^u64.rotrBH(i,a,34)^u64.rotrBH(i,a,39),$e=u64.rotrSL(i,a,28)^u64.rotrBL(i,a,34)^u64.rotrBL(i,a,39),st=i&c^i&w^c&w,ht=a&y^a&C^y&C;be=0|Z,me=0|te,Z=0|N,te=0|G,N=0|A,G=0|I,({h:A,l:I}=u64.add(0|T,0|S,0|le,0|ae)),T=0|w,S=0|C,w=0|c,C=0|y,c=0|i,y=0|a;const vt=u64.add3L(ae,$e,ht);i=u64.add3H(vt,le,Ie,st),a=0|vt}({h:i,l:a}=u64.add(0|this.Ah,0|this.Al,0|i,0|a)),({h:c,l:y}=u64.add(0|this.Bh,0|this.Bl,0|c,0|y)),({h:w,l:C}=u64.add(0|this.Ch,0|this.Cl,0|w,0|C)),({h:T,l:S}=u64.add(0|this.Dh,0|this.Dl,0|T,0|S)),({h:A,l:I}=u64.add(0|this.Eh,0|this.El,0|A,0|I)),({h:N,l:G}=u64.add(0|this.Fh,0|this.Fl,0|N,0|G)),({h:Z,l:te}=u64.add(0|this.Gh,0|this.Gl,0|Z,0|te)),({h:be,l:me}=u64.add(0|this.Hh,0|this.Hl,0|be,0|me)),this.set(i,a,c,y,w,C,T,S,A,I,N,G,Z,te,be,me)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const sha512=wrapConstructor(()=>new SHA512);function isBytes(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function chain(...o){const s=i=>i,r=(i,a)=>c=>i(a(c));return{encode:o.map(i=>i.encode).reduceRight(r,s),decode:o.map(i=>i.decode).reduce(r,s)}}function alphabet(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(r=>{if(r<0||r>=o.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${o.length})`);return o[r]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(r=>{if("string"!=typeof r)throw new Error(`alphabet.decode: not string element=${r}`);const i=o.indexOf(r);if(-1===i)throw new Error(`Unknown letter: "${r}". Allowed: ${o}`);return i})}}}function join(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let r of s)if("string"!=typeof r)throw new Error(`join.encode: non-string input=${r}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding(o,s="="){if("string"!=typeof s)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let i of r)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;r.length*o%8;)r.push(s);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let a of r)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=r.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&r[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,i)}}}function convertRadix(o,s,r){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;C<c.length;C++){const T=c[C],S=s*y+T;if(!Number.isSafeInteger(S)||s*y/s!==y||S-T!=s*y)throw new Error("convertRadix: carry overflow");y=S%r;const A=Math.floor(S/r);if(c[C]=A,!Number.isSafeInteger(A)||A*r+y!==S)throw new Error("convertRadix: carry overflow");w&&(A?w=!1:i=C)}if(a.push(y),w)break}for(let y=0;y<o.length-1&&0===o[y];y++)a.push(0);return a.reverse()}const gcd=(o,s)=>s?gcd(s,o%s):o,radix2carry=(o,s)=>o+(s-gcd(o,s));function convertRadix2(o,s,r,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(radix2carry(s,r)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${r} carryBits=${radix2carry(s,r)}`);let a=0,c=0;const y=2**r-1,w=[];for(const C of o){if(C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<<s|C,c+s>32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=r;c-=r)w.push((a>>c-r&y)>>>0);a&=2**c-1}if(a=a<<r-c&y,!i&&c>=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix(o){return{encode:s=>{if(!isBytes(s))throw new Error("radix.encode input should be Uint8Array");return convertRadix(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(convertRadix(s,o,256))}}}function radix2(o,s=!1){if(o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry(8,o)>32||radix2carry(o,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!isBytes(r))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2(Array.from(r),8,o,!s)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(convertRadix2(r,o,8,s))}}}function unsafeWrapper(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}function checksum(o,s){if("function"!=typeof s)throw new Error("checksum fn should be function");return{encode(r){if(!isBytes(r))throw new Error("checksum.encode: input should be Uint8Array");const i=s(r).slice(0,o),a=new Uint8Array(r.length+o);return a.set(r),a.set(i,r.length),a},decode(r){if(!isBytes(r))throw new Error("checksum.decode: input should be Uint8Array");const i=r.slice(0,-o),a=s(i).slice(0,o),c=r.slice(-o);for(let y=0;y<o;y++)if(a[y]!==c[y])throw new Error("Invalid checksum");return i}}}const utils$1={alphabet,chain,checksum,convertRadix,convertRadix2,radix,radix2,join,padding},base64=chain(radix2(6),alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),padding(6),join("")),genBase58=o=>chain(radix(58),alphabet(o),join("")),base58=genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),createBase58check=o=>chain(checksum(4,s=>o(o(s))),base58),base58check$1=createBase58check,BECH_ALPHABET=chain(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),join("")),POLYMOD_GENERATORS=[996825010,642813549,513874426,1027748829,705979059];function bech32Polymod(o){const s=o>>25;let r=(33554431&o)<<5;for(let i=0;i<POLYMOD_GENERATORS.length;i++)1==(s>>i&1)&&(r^=POLYMOD_GENERATORS[i]);return r}function bechChecksum(o,s,r=1){const i=o.length;let a=1;for(let c=0;c<i;c++){const y=o.charCodeAt(c);if(y<33||y>126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod(a)^y>>5}a=bech32Polymod(a);for(let c=0;c<i;c++)a=bech32Polymod(a)^31&o.charCodeAt(c);for(let c of s)a=bech32Polymod(a)^c;for(let c=0;c<6;c++)a=bech32Polymod(a);return a^=r,BECH_ALPHABET.encode(convertRadix2([a%2**30],30,5,!1))}function genBech32(o){const s="bech32"===o?1:734539939,r=radix2(5),i=r.decode,a=r.encode,c=unsafeWrapper(i);function y(w,C=90){if("string"!=typeof w)throw new Error("bech32.decode input should be string, not "+typeof w);if(w.length<8||!1!==C&&w.length>C)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const A=w.slice(0,S),I=w.slice(S+1);if(I.length<6)throw new Error("Data must be at least 6 characters long");const N=BECH_ALPHABET.decode(I).slice(0,-6),G=bechChecksum(A,N,s);if(!I.endsWith(G))throw new Error(`Invalid checksum in ${w}: expected "${G}"`);return{prefix:A,words:N}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);const A=w.toLowerCase(),I=bechChecksum(A,C,s);return`${A}1${BECH_ALPHABET.encode(C)}${I}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32=genBech32("bech32"),isJapanese=o=>"\u3042\u3044\u3053\u304f\u3057\u3093"===o[0];function nfkd(o){if("string"!=typeof o)throw new TypeError("Invalid mnemonic type: "+typeof o);return o.normalize("NFKD")}function normalize(o){const s=nfkd(o),r=s.split(" ");if(![12,15,18,21,24].includes(r.length))throw new Error("Invalid mnemonic");return{nfkd:s,words:r}}function assertEntropy(o){assert$1.bytes(o,16,20,24,28,32)}function generateMnemonic(o,s=128){if(assert$1.number(s),s%32!=0||s>256)throw new TypeError("Invalid entropy");return entropyToMnemonic(randomBytes(s/8),o)}const calcChecksum=o=>{const s=8-o.length/4;return new Uint8Array([sha256(o)[0]>>s<<s])};function getCoder(o){if(!Array.isArray(o)||2048!==o.length||"string"!=typeof o[0])throw new Error("Worlist: expected array of 2048 strings");return o.forEach(s=>{if("string"!=typeof s)throw new Error(`Wordlist: non-string element: ${s}`)}),utils$1.chain(utils$1.checksum(1,calcChecksum),utils$1.radix2(11,!0),utils$1.alphabet(o))}function mnemonicToEntropy(o,s){const{words:r}=normalize(o),i=getCoder(s).decode(r);return assertEntropy(i),i}function entropyToMnemonic(o,s){return assertEntropy(o),getCoder(s).encode(o).join(isJapanese(s)?"\u3000":" ")}function validateMnemonic(o,s){try{mnemonicToEntropy(o,s)}catch{return!1}return!0}const salt=o=>nfkd(`mnemonic${o}`);function mnemonicToSeedSync(o,s=""){return pbkdf2(sha512,normalize(o).nfkd,salt(s),{c:2048,dkLen:64})}const Rho=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id=Uint8Array.from({length:16},(o,s)=>s),Pi=Id.map(o=>(9*o+5)%16);let idxL=[Id],idxR=[Pi];for(let o=0;o<4;o++)for(let s of[idxL,idxR])s.push(s[o].map(r=>Rho[r]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(o=>new Uint8Array(o)),shiftsL=idxL.map((o,s)=>o.map(r=>shifts[s][r])),shiftsR=idxR.map((o,s)=>o.map(r=>shifts[s][r])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(o,s)=>o<<s|o>>>32-s;function f(o,s,r,i){return 0===o?s^r^i:1===o?s&r|~s&i:2===o?(s|~r)^i:3===o?s&i|r&~i:s^(r|~i)}const BUF=new Uint32Array(16);class RIPEMD160 extends SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:s,h1:r,h2:i,h3:a,h4:c}=this;return[s,r,i,a,c]}set(s,r,i,a,c){this.h0=0|s,this.h1=0|r,this.h2=0|i,this.h3=0|a,this.h4=0|c}process(s,r){for(let N=0;N<16;N++,r+=4)BUF[N]=s.getUint32(r,!0);let i=0|this.h0,a=i,c=0|this.h1,y=c,w=0|this.h2,C=w,T=0|this.h3,S=T,A=0|this.h4,I=A;for(let N=0;N<5;N++){const G=4-N,Z=Kl[N],te=Kr[N],be=idxL[N],me=idxR[N],pe=shiftsL[N],Te=shiftsR[N];for(let xe=0;xe<16;xe++){const Re=rotl$1(i+f(N,c,w,T)+BUF[be[xe]]+Z,pe[xe])+A|0;i=A,A=T,T=0|rotl$1(w,10),w=c,c=Re}for(let xe=0;xe<16;xe++){const Re=rotl$1(a+f(G,y,C,S)+BUF[me[xe]]+te,Te[xe])+I|0;a=I,I=S,S=0|rotl$1(C,10),C=y,y=Re}}this.set(this.h1+w+S|0,this.h2+T+I|0,this.h3+A+a|0,this.h4+i+y|0,this.h0+c+C|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ripemd160=wrapConstructor(()=>new RIPEMD160),Point=secp256k1.ProjectivePoint,base58check=base58check$1(sha256);function bytesToNumber(o){return BigInt(`0x${bytesToHex(o)}`)}function numberToBytes(o){return hexToBytes(o.toString(16).padStart(64,"0"))}const MASTER_SECRET=utf8ToBytes$1("Bitcoin seed"),BITCOIN_VERSIONS={private:76066276,public:76067358},HARDENED_OFFSET=2147483648,hash160=o=>ripemd160(sha256(o)),fromU32=o=>createView(o).getUint32(0,!1),toU32=o=>{if(!Number.isSafeInteger(o)||o<0||o>2**32-1)throw new Error(`Invalid number=${o}. Should be from 0 to 2 ** 32 - 1`);const s=new Uint8Array(4);return createView(s).setUint32(0,o,!1),s};class HDKey{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return fromU32(this.pubHash)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const s=this.privateKey;if(!s)throw new Error("No private key");return base58check.encode(this.serialize(this.versions.private,concatBytes(new Uint8Array([0]),s)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return base58check.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(s,r=BITCOIN_VERSIONS){if(bytes$1(s),8*s.length<128||8*s.length>512)throw new Error(`HDKey: wrong seed length=${s.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const i=hmac$1(sha512,MASTER_SECRET,s);return new HDKey({versions:r,chainCode:i.slice(32),privateKey:i.slice(0,32)})}static fromExtendedKey(s,r=BITCOIN_VERSIONS){const i=base58check.decode(s),a=createView(i),c=a.getUint32(0,!1),y={versions:r,depth:i[4],parentFingerprint:a.getUint32(5,!1),index:a.getUint32(9,!1),chainCode:i.slice(13,45)},w=i.slice(45),C=0===w[0];if(c!==r[C?"private":"public"])throw new Error("Version mismatch");return new HDKey(C?{...y,privateKey:w.slice(1)}:{...y,publicKey:w})}static fromJSON(s){return HDKey.fromExtendedKey(s.xpriv)}constructor(s){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!s||"object"!=typeof s)throw new Error("HDKey.constructor must not be called directly");if(this.versions=s.versions||BITCOIN_VERSIONS,this.depth=s.depth||0,this.chainCode=s.chainCode,this.index=s.index||0,this.parentFingerprint=s.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(s.publicKey&&s.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(s.privateKey){if(!secp256k1.utils.isValidPrivateKey(s.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof s.privateKey?s.privateKey:bytesToNumber(s.privateKey),this.privKeyBytes=numberToBytes(this.privKey),this.pubKey=secp256k1.getPublicKey(s.privateKey,!0)}else{if(!s.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=Point.fromHex(s.publicKey).toRawBytes(!0)}this.pubHash=hash160(this.pubKey)}derive(s){if(!/^[mM]'?/.test(s))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(s))return this;const r=s.replace(/^[mM]'?\//,"").split("/");let i=this;for(const a of r){const c=/^(\d+)('?)$/.exec(a);if(!c||3!==c.length)throw new Error(`Invalid child index: ${a}`);let y=+c[1];if(!Number.isSafeInteger(y)||y>=HARDENED_OFFSET)throw new Error("Invalid index");"'"===c[2]&&(y+=HARDENED_OFFSET),i=i.deriveChild(y)}return i}deriveChild(s){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let r=toU32(s);if(s>=HARDENED_OFFSET){const w=this.privateKey;if(!w)throw new Error("Could not derive hardened child key");r=concatBytes(new Uint8Array([0]),w,r)}else r=concatBytes(this.pubKey,r);const i=hmac$1(sha512,this.chainCode,r),a=bytesToNumber(i.slice(0,32)),c=i.slice(32);if(!secp256k1.utils.isValidPrivateKey(a))throw new Error("Tweak bigger than curve order");const y={versions:this.versions,chainCode:c,depth:this.depth+1,parentFingerprint:this.fingerprint,index:s};try{if(this.privateKey){const w=mod(this.privKey+a,secp256k1.CURVE.n);if(!secp256k1.utils.isValidPrivateKey(w))throw new Error("The tweak was out of range or the resulted private key is invalid");y.privateKey=w}else{const w=Point.fromHex(this.pubKey).add(Point.fromPrivateKey(a));if(w.equals(Point.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");y.publicKey=w.toRawBytes(!0)}return new HDKey(y)}catch{return this.deriveChild(s+1)}}sign(s){if(!this.privateKey)throw new Error("No privateKey set!");return bytes$1(s,32),secp256k1.sign(s,this.privKey).toCompactRawBytes()}verify(s,r){if(bytes$1(s,32),bytes$1(r,64),!this.publicKey)throw new Error("No publicKey set!");let i;try{i=secp256k1.Signature.fromCompact(r)}catch{return!1}return secp256k1.verify(i,s,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(s,r){if(!this.chainCode)throw new Error("No chainCode set");return bytes$1(r,33),concatBytes(toU32(s),new Uint8Array([this.depth]),toU32(this.parentFingerprint),toU32(this.index),this.chainCode,r)}}const u8a=o=>o instanceof Uint8Array,u32=o=>new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)),isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes(o){if("string"==typeof o&&(o=utf8ToBytes(o)),!u8a(o))throw new Error("expected Uint8Array, got "+typeof o);return o}const isPlainObject=o=>"[object Object]"===Object.prototype.toString.call(o)&&o.constructor===Object;function checkOpts(o,s){if(void 0!==s&&("object"!=typeof s||!isPlainObject(s)))throw new Error("options must be object or undefined");return Object.assign(o,s)}function ensureBytes(o,s){if(!(o instanceof Uint8Array))throw new Error("Uint8Array expected");if("number"==typeof s&&o.length!==s)throw new Error(`Uint8Array length ${s} expected`)}function equalBytes(o,s){if(o.length!==s.length)throw new Error("equalBytes: Different size of Uint8Arrays");let r=!0;for(let i=0;i<o.length;i++)r&&(r=o[i]===s[i]);return r}function number(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function bytes(o,...s){if(!(o instanceof Uint8Array))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("hash must be wrapped by utils.wrapConstructor");number(o.outputLen),number(o.blockLen)}function exists(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output(o,s){bytes(o);const r=s.outputLen;if(o.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}const assert={number,bool,bytes,hash,exists,output},u8to16=(o,s)=>255&o[s++]|(255&o[s++])<<8;class Poly1305{constructor(s){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,ensureBytes(s=toBytes(s),32);const r=u8to16(s,0),i=u8to16(s,2),a=u8to16(s,4),c=u8to16(s,6),y=u8to16(s,8),w=u8to16(s,10),C=u8to16(s,12),T=u8to16(s,14);this.r[0]=8191&r,this.r[1]=8191&(r>>>13|i<<3),this.r[2]=7939&(i>>>10|a<<6),this.r[3]=8191&(a>>>7|c<<9),this.r[4]=255&(c>>>4|y<<12),this.r[5]=y>>>1&8190,this.r[6]=8191&(y>>>14|w<<2),this.r[7]=8065&(w>>>11|C<<5),this.r[8]=8191&(C>>>8|T<<8),this.r[9]=T>>>5&127;for(let S=0;S<8;S++)this.pad[S]=u8to16(s,16+2*S)}process(s,r,i=!1){const a=i?0:2048,{h:c,r:y}=this,w=y[0],C=y[1],T=y[2],S=y[3],A=y[4],I=y[5],N=y[6],G=y[7],Z=y[8],te=y[9],be=u8to16(s,r+0),me=u8to16(s,r+2),pe=u8to16(s,r+4),Te=u8to16(s,r+6),xe=u8to16(s,r+8),Re=u8to16(s,r+10),Me=u8to16(s,r+12),Ce=u8to16(s,r+14);let le=c[0]+(8191&be),ae=c[1]+(8191&(be>>>13|me<<3)),Ie=c[2]+(8191&(me>>>10|pe<<6)),$e=c[3]+(8191&(pe>>>7|Te<<9)),st=c[4]+(8191&(Te>>>4|xe<<12)),ht=c[5]+(xe>>>1&8191),vt=c[6]+(8191&(xe>>>14|Re<<2)),at=c[7]+(8191&(Re>>>11|Me<<5)),Xt=c[8]+(8191&(Me>>>8|Ce<<8)),ln=c[9]+(Ce>>>5|a),yn=0,$n=yn+le*w+ae*(5*te)+Ie*(5*Z)+$e*(5*G)+st*(5*N);yn=$n>>>13,$n&=8191,$n+=ht*(5*I)+vt*(5*A)+at*(5*S)+Xt*(5*T)+ln*(5*C),yn+=$n>>>13,$n&=8191;let bn=yn+le*C+ae*w+Ie*(5*te)+$e*(5*Z)+st*(5*G);yn=bn>>>13,bn&=8191,bn+=ht*(5*N)+vt*(5*I)+at*(5*A)+Xt*(5*S)+ln*(5*T),yn+=bn>>>13,bn&=8191;let Qe=yn+le*T+ae*C+Ie*w+$e*(5*te)+st*(5*Z);yn=Qe>>>13,Qe&=8191,Qe+=ht*(5*G)+vt*(5*N)+at*(5*I)+Xt*(5*A)+ln*(5*S),yn+=Qe>>>13,Qe&=8191;let bt=yn+le*S+ae*T+Ie*C+$e*w+st*(5*te);yn=bt>>>13,bt&=8191,bt+=ht*(5*Z)+vt*(5*G)+at*(5*N)+Xt*(5*I)+ln*(5*A),yn+=bt>>>13,bt&=8191;let ze=yn+le*A+ae*S+Ie*T+$e*C+st*w;yn=ze>>>13,ze&=8191,ze+=ht*(5*te)+vt*(5*Z)+at*(5*G)+Xt*(5*N)+ln*(5*I),yn+=ze>>>13,ze&=8191;let Fe=yn+le*I+ae*A+Ie*S+$e*T+st*C;yn=Fe>>>13,Fe&=8191,Fe+=ht*w+vt*(5*te)+at*(5*Z)+Xt*(5*G)+ln*(5*N),yn+=Fe>>>13,Fe&=8191;let Ft=yn+le*N+ae*I+Ie*A+$e*S+st*T;yn=Ft>>>13,Ft&=8191,Ft+=ht*C+vt*w+at*(5*te)+Xt*(5*Z)+ln*(5*G),yn+=Ft>>>13,Ft&=8191;let Ke=yn+le*G+ae*N+Ie*I+$e*A+st*S;yn=Ke>>>13,Ke&=8191,Ke+=ht*T+vt*C+at*w+Xt*(5*te)+ln*(5*Z),yn+=Ke>>>13,Ke&=8191;let dt=yn+le*Z+ae*G+Ie*N+$e*I+st*A;yn=dt>>>13,dt&=8191,dt+=ht*S+vt*T+at*C+Xt*w+ln*(5*te),yn+=dt>>>13,dt&=8191;let Ge=yn+le*te+ae*Z+Ie*G+$e*N+st*I;yn=Ge>>>13,Ge&=8191,Ge+=ht*A+vt*S+at*T+Xt*C+ln*w,yn+=Ge>>>13,Ge&=8191,yn=(yn<<2)+yn|0,yn=yn+$n|0,$n=8191&yn,yn>>>=13,bn+=yn,c[0]=$n,c[1]=bn,c[2]=Qe,c[3]=bt,c[4]=ze,c[5]=Fe,c[6]=Ft,c[7]=Ke,c[8]=dt,c[9]=Ge}finalize(){const{h:s,pad:r}=this,i=new Uint16Array(10);let a=s[1]>>>13;s[1]&=8191;for(let w=2;w<10;w++)s[w]+=a,a=s[w]>>>13,s[w]&=8191;s[0]+=5*a,a=s[0]>>>13,s[0]&=8191,s[1]+=a,a=s[1]>>>13,s[1]&=8191,s[2]+=a,i[0]=s[0]+5,a=i[0]>>>13,i[0]&=8191;for(let w=1;w<10;w++)i[w]=s[w]+a,a=i[w]>>>13,i[w]&=8191;i[9]-=8192;let c=(1^a)-1;for(let w=0;w<10;w++)i[w]&=c;c=~c;for(let w=0;w<10;w++)s[w]=s[w]&c|i[w];s[0]=65535&(s[0]|s[1]<<13),s[1]=65535&(s[1]>>>3|s[2]<<10),s[2]=65535&(s[2]>>>6|s[3]<<7),s[3]=65535&(s[3]>>>9|s[4]<<4),s[4]=65535&(s[4]>>>12|s[5]<<1|s[6]<<14),s[5]=65535&(s[6]>>>2|s[7]<<11),s[6]=65535&(s[7]>>>5|s[8]<<8),s[7]=65535&(s[8]>>>8|s[9]<<5);let y=s[0]+r[0];s[0]=65535&y;for(let w=1;w<8;w++)y=(s[w]+r[w]|0)+(y>>>16)|0,s[w]=65535&y}update(s){assert.exists(this);const{buffer:r,blockLen:i}=this,a=(s=toBytes(s)).length;for(let c=0;c<a;){const y=Math.min(i-this.pos,a-c);if(y!==i)r.set(s.subarray(c,c+y),this.pos),this.pos+=y,c+=y,this.pos===i&&(this.process(r,0,!1),this.pos=0);else for(;i<=a-c;c+=i)this.process(s,c)}return this}destroy(){this.h.fill(0),this.r.fill(0),this.buffer.fill(0),this.pad.fill(0)}digestInto(s){assert.exists(this),assert.output(s,this),this.finished=!0;const{buffer:r,h:i}=this;let{pos:a}=this;if(a){for(r[a++]=1;a<16;a++)r[a]=0;this.process(r,0,!0)}this.finalize();let c=0;for(let y=0;y<8;y++)s[c++]=i[y]>>>0,s[c++]=i[y]>>>8;return s}digest(){const{buffer:s,outputLen:r}=this;this.digestInto(s);const i=s.slice(0,r);return this.destroy(),i}}function wrapConstructorWithKey(o){const s=(i,a)=>o(a).update(toBytes(i)).digest(),r=o(new Uint8Array(32));return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=i=>o(i),s}wrapConstructorWithKey(o=>new Poly1305(o));const sigma16=utf8ToBytes("expand 16-byte k"),sigma32=utf8ToBytes("expand 32-byte k"),sigma16_32=u32(sigma16),sigma32_32=u32(sigma32),isAligned32=o=>!(o.byteOffset%4),salsaBasic=o=>{const{core:s,rounds:r,counterRight:i,counterLen:a,allow128bitKeys:c,extendNonceFn:y,blockLen:w}=checkOpts({rounds:20,counterRight:!1,counterLen:8,allow128bitKeys:!0,blockLen:64},o);assert.number(a),assert.number(r),assert.number(w),assert.bool(i),assert.bool(c);const C=w/4;if(w%4!=0)throw new Error("Salsa/ChaCha: blockLen must be aligned to 4 bytes");return(T,S,A,I,N=0)=>{if(assert.bytes(T),assert.bytes(S),assert.bytes(A),I||(I=new Uint8Array(A.length)),assert.bytes(I),assert.number(N),N<0||N>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(I.length<A.length)throw new Error(`Salsa/ChaCha: output (${I.length}) is shorter than data (${A.length})`);const G=[];let Z,te;if(32===T.length)Z=T,te=sigma32_32;else{if(16!==T.length||!c)throw new Error(`Salsa/ChaCha: invalid 32-byte key, got length=${T.length}`);Z=new Uint8Array(32),Z.set(T),Z.set(T,16),te=sigma16_32,G.push(Z)}if(y){if(S.length<=16)throw new Error("Salsa/ChaCha: extended nonce must be bigger than 16 bytes");Z=y(te,Z,S.subarray(0,16),new Uint8Array(32)),G.push(Z),S=S.subarray(16)}const be=16-a;if(S.length!==be)throw new Error(`Salsa/ChaCha: nonce must be ${be} or 16 bytes`);if(12!==be){const le=new Uint8Array(12);le.set(S,i?0:12-S.length),G.push(S=le)}const me=new Uint8Array(w),pe=u32(me),Te=u32(Z),xe=u32(S),Re=isAligned32(A)&&u32(A),Me=isAligned32(I)&&u32(I);G.push(pe);const Ce=A.length;for(let le=0,ae=N;le<Ce;ae++){if(s(te,Te,xe,pe,ae,r),ae>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const Ie=Math.min(w,Ce-le);if(Ie===w&&Me&&Re){const $e=le/4;if(le%4!=0)throw new Error("Salsa/ChaCha: invalid block position");for(let st=0;st<C;st++)Me[$e+st]=Re[$e+st]^pe[st];le+=w}else{for(let $e=0;$e<Ie;$e++)I[le+$e]=A[le+$e]^me[$e];le+=Ie}}for(let le=0;le<G.length;le++)G[le].fill(0);return I}},rotl=(o,s)=>o<<s|o>>>32-s;function chachaCore(o,s,r,i,a,c=20){let y=o[0],w=o[1],C=o[2],T=o[3],S=s[0],A=s[1],I=s[2],N=s[3],G=s[4],Z=s[5],te=s[6],be=s[7],me=a,pe=r[0],Te=r[1],xe=r[2],Re=y,Me=w,Ce=C,le=T,ae=S,Ie=A,$e=I,st=N,ht=G,vt=Z,at=te,Xt=be,ln=me,yn=pe,$n=Te,bn=xe;for(let bt=0;bt<c;bt+=2)Re=Re+ae|0,ln=rotl(ln^Re,16),ht=ht+ln|0,ae=rotl(ae^ht,12),Re=Re+ae|0,ln=rotl(ln^Re,8),ht=ht+ln|0,ae=rotl(ae^ht,7),Me=Me+Ie|0,yn=rotl(yn^Me,16),vt=vt+yn|0,Ie=rotl(Ie^vt,12),Me=Me+Ie|0,yn=rotl(yn^Me,8),vt=vt+yn|0,Ie=rotl(Ie^vt,7),Ce=Ce+$e|0,$n=rotl($n^Ce,16),at=at+$n|0,$e=rotl($e^at,12),Ce=Ce+$e|0,$n=rotl($n^Ce,8),at=at+$n|0,$e=rotl($e^at,7),le=le+st|0,bn=rotl(bn^le,16),Xt=Xt+bn|0,st=rotl(st^Xt,12),le=le+st|0,bn=rotl(bn^le,8),Xt=Xt+bn|0,st=rotl(st^Xt,7),Re=Re+Ie|0,bn=rotl(bn^Re,16),at=at+bn|0,Ie=rotl(Ie^at,12),Re=Re+Ie|0,bn=rotl(bn^Re,8),at=at+bn|0,Ie=rotl(Ie^at,7),Me=Me+$e|0,ln=rotl(ln^Me,16),Xt=Xt+ln|0,$e=rotl($e^Xt,12),Me=Me+$e|0,ln=rotl(ln^Me,8),Xt=Xt+ln|0,$e=rotl($e^Xt,7),Ce=Ce+st|0,yn=rotl(yn^Ce,16),ht=ht+yn|0,st=rotl(st^ht,12),Ce=Ce+st|0,yn=rotl(yn^Ce,8),ht=ht+yn|0,st=rotl(st^ht,7),le=le+ae|0,$n=rotl($n^le,16),vt=vt+$n|0,ae=rotl(ae^vt,12),le=le+ae|0,$n=rotl($n^le,8),vt=vt+$n|0,ae=rotl(ae^vt,7);let Qe=0;i[Qe++]=y+Re|0,i[Qe++]=w+Me|0,i[Qe++]=C+Ce|0,i[Qe++]=T+le|0,i[Qe++]=S+ae|0,i[Qe++]=A+Ie|0,i[Qe++]=I+$e|0,i[Qe++]=N+st|0,i[Qe++]=G+ht|0,i[Qe++]=Z+vt|0,i[Qe++]=te+at|0,i[Qe++]=be+Xt|0,i[Qe++]=me+ln|0,i[Qe++]=pe+yn|0,i[Qe++]=Te+$n|0,i[Qe++]=xe+bn|0}const chacha20=salsaBasic({core:chachaCore,counterRight:!1,counterLen:4,allow128bitKeys:!1});class HMAC extends Hash$1{constructor(s,r){super(),this.finished=!1,this.destroyed=!1,assert$2.hash(s);const i=toBytes$2(r);if(this.iHash=s.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,c=new Uint8Array(a);c.set(i.length>a?s.create().update(i).digest():i);for(let y=0;y<c.length;y++)c[y]^=54;this.iHash.update(c),this.oHash=s.create();for(let y=0;y<c.length;y++)c[y]^=106;this.oHash.update(c),c.fill(0)}update(s){return assert$2.exists(this),this.iHash.update(s),this}digestInto(s){assert$2.exists(this),assert$2.bytes(s,this.outputLen),this.finished=!0,this.iHash.digestInto(s),this.oHash.update(s),this.oHash.digestInto(s),this.destroy()}digest(){const s=new Uint8Array(this.oHash.outputLen);return this.digestInto(s),s}_cloneInto(s){s||(s=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:i,finished:a,destroyed:c,blockLen:y,outputLen:w}=this;return s.finished=a,s.destroyed=c,s.blockLen=y,s.outputLen=w,s.oHash=r._cloneInto(s.oHash),s.iHash=i._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const hmac=(o,s,r)=>new HMAC(o,s).update(r).digest();function extract$1(o,s,r){return assert$2.hash(o),void 0===r&&(r=new Uint8Array(o.outputLen)),hmac(o,toBytes$2(r),toBytes$2(s))}hmac.create=(o,s)=>new HMAC(o,s);const HKDF_COUNTER$1=new Uint8Array([0]),EMPTY_BUFFER$1=new Uint8Array;function expand$1(o,s,r,i=32){if(assert$2.hash(o),assert$2.number(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===r&&(r=EMPTY_BUFFER$1);const c=new Uint8Array(a*o.outputLen),y=hmac.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;T<a;T++)HKDF_COUNTER$1[0]=T+1,w.update(0===T?EMPTY_BUFFER$1:C).update(r).update(HKDF_COUNTER$1).digestInto(C),c.set(C,o.outputLen*T),y._cloneInto(w);return y.destroy(),w.destroy(),C.fill(0),HKDF_COUNTER$1.fill(0),c.slice(0,i)}const hkdf=(o,s,r,i,a)=>expand$1(o,extract$1(o,s,r),i,a);var __defProp=Object.defineProperty,__export=(o,s)=>{for(var r in s)__defProp(o,r,{get:s[r],enumerable:!0})};function generatePrivateKey(){return bytesToHex$1(schnorr.utils.randomPrivateKey())}function getPublicKey(o){return bytesToHex$1(schnorr.getPublicKey(o))}var utils_exports={};__export(utils_exports,{MessageNode:()=>MessageNode,MessageQueue:()=>MessageQueue,insertEventIntoAscendingList:()=>insertEventIntoAscendingList,insertEventIntoDescendingList:()=>insertEventIntoDescendingList,normalizeURL:()=>normalizeURL,utf8Decoder:()=>utf8Decoder,utf8Encoder:()=>utf8Encoder});var utf8Decoder=new TextDecoder("utf-8"),utf8Encoder=new TextEncoder;function normalizeURL(o){let s=new URL(o);return s.pathname=s.pathname.replace(/\/+/g,"/"),s.pathname.endsWith("/")&&(s.pathname=s.pathname.slice(0,-1)),("80"===s.port&&"ws:"===s.protocol||"443"===s.port&&"wss:"===s.protocol)&&(s.port=""),s.searchParams.sort(),s.hash="",s.toString()}function insertEventIntoDescendingList(o,s){let r,i=0,a=o.length-1,c=i;if(a<0)c=0;else if(s.created_at<o[a].created_at)c=a+1;else if(s.created_at>=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(r=Math.floor(i+(a-i)/2),o[r].created_at>s.created_at)i=r;else{if(!(o[r].created_at<s.created_at)){c=r;break}a=r}}return o[c]?.id!==s.id?[...o.slice(0,c),s,...o.slice(c)]:o}function insertEventIntoAscendingList(o,s){let r,i=0,a=o.length-1,c=i;if(a<0)c=0;else if(s.created_at>o[a].created_at)c=a+1;else if(s.created_at<=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(r=Math.floor(i+(a-i)/2),o[r].created_at<s.created_at)i=r;else{if(!(o[r].created_at>s.created_at)){c=r;break}a=r}}return o[c]?.id!==s.id?[...o.slice(0,c),s,...o.slice(c)]:o}var MessageNode=class{_value;_next;get value(){return this._value}set value(o){this._value=o}get next(){return this._next}set next(o){this._next=o}constructor(o){this._value=o,this._next=null}},MessageQueue=class{_first;_last;get first(){return this._first}set first(o){this._first=o}get last(){return this._last}set last(o){this._last=o}_size;get size(){return this._size}set size(o){this._size=o}constructor(){this._first=null,this._last=null,this._size=0}enqueue(o){const s=new MessageNode(o);return 0!==this._size&&this._last?(this._last.next=s,this._last=s):(this._first=s,this._last=s),this._size++,!0}dequeue(){if(0===this._size||!this._first)return null;let o=this._first;return this._first=o.next,o.next=null,this._size--,o.value}},verifiedSymbol=Symbol("verified");function getBlankEvent(o=255){return{kind:o,content:"",tags:[],created_at:0}}function finishEvent(o,s){const r=o;return r.pubkey=getPublicKey(s),r.id=getEventHash(r),r.sig=getSignature(r,s),r[verifiedSymbol]=!0,r}function serializeEvent(o){if(!validateEvent(o))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,o.pubkey,o.created_at,o.kind,o.tags,o.content])}function getEventHash(o){return bytesToHex$1(sha256$1(utf8Encoder.encode(serializeEvent(o))))}var isRecord=o=>o instanceof Object;function validateEvent(o){if(!isRecord(o)||"number"!=typeof o.kind||"string"!=typeof o.content||"number"!=typeof o.created_at||"string"!=typeof o.pubkey||!o.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(o.tags))return!1;for(let s=0;s<o.tags.length;s++){let r=o.tags[s];if(!Array.isArray(r))return!1;for(let i=0;i<r.length;i++)if("object"==typeof r[i])return!1}return!0}function verifySignature(o){if("boolean"==typeof o[verifiedSymbol])return o[verifiedSymbol];const s=getEventHash(o);if(s!==o.id)return o[verifiedSymbol]=!1;try{return o[verifiedSymbol]=schnorr.verify(o.sig,s,o.pubkey)}catch{return o[verifiedSymbol]=!1}}function getSignature(o,s){return bytesToHex$1(schnorr.sign(getEventHash(o),s))}function matchFilter(o,s){if(o.ids&&-1===o.ids.indexOf(s.id)&&!o.ids.some(r=>s.id.startsWith(r))||o.kinds&&-1===o.kinds.indexOf(s.kind)||o.authors&&-1===o.authors.indexOf(s.pubkey)&&!o.authors.some(r=>s.pubkey.startsWith(r)))return!1;for(let r in o)if("#"===r[0]){let i=o[`#${r.slice(1)}`];if(i&&!s.tags.find(([a,c])=>a===r.slice(1)&&-1!==i.indexOf(c)))return!1}return!(o.since&&s.created_at<o.since||o.until&&s.created_at>o.until)}function matchFilters(o,s){for(let r=0;r<o.length;r++)if(matchFilter(o[r],s))return!0;return!1}var fakejson_exports={};function getHex64(o,s){let r=s.length+3,i=o.indexOf(`"${s}":`)+r,a=o.slice(i).indexOf('"')+i+1;return o.slice(a,a+64)}function getInt(o,s){let r=s.length,i=o.indexOf(`"${s}":`)+r+3,a=o.slice(i),c=Math.min(a.indexOf(","),a.indexOf("}"));return parseInt(a.slice(0,c),10)}function getSubscriptionId(o){let s=o.slice(0,22).indexOf('"EVENT"');if(-1===s)return null;let r=o.slice(s+7+1).indexOf('"');if(-1===r)return null;let i=s+7+1+r,a=o.slice(i+1,80).indexOf('"');return-1===a?null:o.slice(i+1,i+1+a)}function matchEventId(o,s){return s===getHex64(o,"id")}function matchEventPubkey(o,s){return s===getHex64(o,"pubkey")}function matchEventKind(o,s){return s===getInt(o,"kind")}__export(fakejson_exports,{getHex64:()=>getHex64,getInt:()=>getInt,getSubscriptionId:()=>getSubscriptionId,matchEventId:()=>matchEventId,matchEventKind:()=>matchEventKind,matchEventPubkey:()=>matchEventPubkey});var newListeners=()=>({connect:[],disconnect:[],error:[],notice:[],auth:[]});function relayInit(o,s={}){let{listTimeout:r=3e3,getTimeout:i=3e3,countTimeout:a=3e3}=s;var c,y,w={},C=newListeners(),T={},S={};function A(){return 1===c?.readyState}function I(te){return N.apply(this,arguments)}function N(){return(N=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(te){let be=JSON.stringify(te);if(A()||(yield new Promise(me=>setTimeout(me,1e3)),A()))try{c.send(be)}catch(me){console.log(me)}})).apply(this,arguments)}const G=(te,{verb:be="REQ",skipVerification:me=!1,alreadyHaveEvent:pe=null,id:Te=Math.random().toString().slice(2)}={})=>{let xe=Te;w[xe]={id:xe,filters:te,skipVerification:me,alreadyHaveEvent:pe},I([be,xe,...te]);let Re={sub:(Me,Ce={})=>G(Me||te,{skipVerification:Ce.skipVerification||me,alreadyHaveEvent:Ce.alreadyHaveEvent||pe,id:xe}),unsub:()=>{delete w[xe],delete T[xe],I(["CLOSE",xe])},on:(Me,Ce)=>{T[xe]=T[xe]||{event:[],count:[],eose:[]},T[xe][Me].push(Ce)},off:(Me,Ce)=>{let le=T[xe],ae=le[Me].indexOf(Ce);ae>=0&&le[Me].splice(ae,1)},get events(){return eventsGenerator(Re)}};return Re};function Z(te,be){return new Promise((me,pe)=>{if(!te.id)return void pe(new Error(`event ${te} has no id`));let Te=te.id;I([be,te]),S[Te]={resolve:me,reject:pe}})}return{url:o,sub:G,on:(te,be)=>{C[te].push(be),"connect"===te&&1===c?.readyState&&be()},off:(te,be)=>{let me=C[te].indexOf(be);-1!==me&&C[te].splice(me,1)},list:(te,be)=>new Promise(me=>{let pe=G(te,be),Te=[],xe=setTimeout(()=>{pe.unsub(),me(Te)},r);pe.on("eose",()=>{pe.unsub(),clearTimeout(xe),me(Te)}),pe.on("event",Re=>{Te.push(Re)})}),get:(te,be)=>new Promise(me=>{let pe=G([te],be),Te=setTimeout(()=>{pe.unsub(),me(null)},i);pe.on("event",xe=>{pe.unsub(),clearTimeout(Te),me(xe)})}),count:te=>new Promise(be=>{let me=G(te,{...G,verb:"COUNT"}),pe=setTimeout(()=>{me.unsub(),be(null)},a);me.on("count",Te=>{me.unsub(),clearTimeout(pe),be(Te)})}),publish:te=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(te,"EVENT")})(),auth:te=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(te,"AUTH")})(),connect:(te=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){A()||(yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return y||(y=new Promise((be,me)=>{try{c=new WebSocket(o)}catch(Re){me(Re)}c.onopen=()=>{C.connect.forEach(Re=>Re()),be()},c.onerror=()=>{y=void 0,C.error.forEach(Re=>Re()),me()},c.onclose=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y=void 0,C.disconnect.forEach(Re=>Re())});let pe,Te=new MessageQueue;function xe(){if(0===Te.size)return clearInterval(pe),void(pe=null);var Re=Te.dequeue();if(!Re)return;let Me=getSubscriptionId(Re);if(Me){let Ce=w[Me];if(Ce&&Ce.alreadyHaveEvent&&Ce.alreadyHaveEvent(getHex64(Re,"id"),o))return}try{let Ce=JSON.parse(Re);switch(Ce[0]){case"EVENT":{let $e=Ce[1],st=Ce[2];return void(validateEvent(st)&&w[$e]&&(w[$e].skipVerification||verifySignature(st))&&matchFilters(w[$e].filters,st)&&(T[$e]?.event||[]).forEach(ht=>ht(st)))}case"COUNT":let le=Ce[1],ae=Ce[2];return void(w[le]&&(T[le]?.count||[]).forEach($e=>$e(ae)));case"EOSE":{let $e=Ce[1];return void($e in T&&(T[$e].eose.forEach(st=>st()),T[$e].eose=[]))}case"OK":{let $e=Ce[1],st=Ce[2],ht=Ce[3]||"";if($e in S){let{resolve:vt,reject:at}=S[$e];st?vt(null):at(new Error(ht))}return}case"NOTICE":let Ie=Ce[1];return void C.notice.forEach($e=>$e(Ie));case"AUTH":{let $e=Ce[1];return void C.auth?.forEach(st=>st($e))}}}catch{return}}c.onmessage=Re=>{Te.enqueue(Re.data),pe||(pe=setInterval(xe,0))}}))})())}),function(){return te.apply(this,arguments)}),close(){C=newListeners(),T={},S={},c?.readyState===WebSocket.OPEN&&c.close()},get status(){return c?.readyState??3}};var te}function eventsGenerator(o){return _eventsGenerator.apply(this,arguments)}function _eventsGenerator(){return _eventsGenerator=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(o){let s;const r=[],i=a=>{s?(s(a),s=void 0):r.push(a)};o.on("event",i);try{for(;;)r.length>0?yield r.shift():yield yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__.A)(new Promise(c=>{s=c}))}finally{o.off("event",i)}}),_eventsGenerator.apply(this,arguments)}var nip19_exports={};__export(nip19_exports,{BECH32_REGEX:()=>BECH32_REGEX,decode:()=>decode,naddrEncode:()=>naddrEncode,neventEncode:()=>neventEncode,noteEncode:()=>noteEncode,nprofileEncode:()=>nprofileEncode,npubEncode:()=>npubEncode,nrelayEncode:()=>nrelayEncode,nsecEncode:()=>nsecEncode});var Bech32MaxSize=5e3,BECH32_REGEX=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function integerToUint8Array(o){const s=new Uint8Array(4);return s[0]=o>>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,s}function decode(o){let{prefix:s,words:r}=bech32$1.decode(o,Bech32MaxSize),i=new Uint8Array(bech32$1.fromWords(r));switch(s){case"nprofile":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nevent":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(a[2]&&32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(a[3]&&4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[],author:a[2]?.[0]?bytesToHex$1(a[2][0]):void 0,kind:a[3]?.[0]?parseInt(bytesToHex$1(a[3][0]),16):void 0}}}case"naddr":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!a[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!a[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:utf8Decoder.decode(a[0][0]),pubkey:bytesToHex$1(a[2][0]),kind:parseInt(bytesToHex$1(a[3][0]),16),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nrelay":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:utf8Decoder.decode(a[0][0])}}case"nsec":case"npub":case"note":return{type:s,data:bytesToHex$1(i)};default:throw new Error(`unknown prefix ${s}`)}}function parseTLV(o){let s={},r=o;for(;r.length>0;){let i=r[0],a=r[1];if(!a)throw new Error(`malformed TLV ${i}`);let c=r.slice(2,2+a);if(r=r.slice(2+a),c.length<a)throw new Error(`not enough data to read on TLV ${i}`);s[i]=s[i]||[],s[i].push(c)}return s}function nsecEncode(o){return encodeBytes("nsec",o)}function npubEncode(o){return encodeBytes("npub",o)}function noteEncode(o){return encodeBytes("note",o)}function encodeBech32(o,s){let r=bech32$1.toWords(s);return bech32$1.encode(o,r,Bech32MaxSize)}function encodeBytes(o,s){return encodeBech32(o,hexToBytes$1(s))}function nprofileEncode(o){return encodeBech32("nprofile",encodeTLV({0:[hexToBytes$1(o.pubkey)],1:(o.relays||[]).map(s=>utf8Encoder.encode(s))}))}function neventEncode(o){let s;return null!=o.kind&&(s=integerToUint8Array(o.kind)),encodeBech32("nevent",encodeTLV({0:[hexToBytes$1(o.id)],1:(o.relays||[]).map(r=>utf8Encoder.encode(r)),2:o.author?[hexToBytes$1(o.author)]:[],3:s?[new Uint8Array(s)]:[]}))}function naddrEncode(o){let s=new ArrayBuffer(4);return new DataView(s).setUint32(0,o.kind,!1),encodeBech32("naddr",encodeTLV({0:[utf8Encoder.encode(o.identifier)],1:(o.relays||[]).map(r=>utf8Encoder.encode(r)),2:[hexToBytes$1(o.pubkey)],3:[new Uint8Array(s)]}))}function nrelayEncode(o){return encodeBech32("nrelay",encodeTLV({0:[utf8Encoder.encode(o)]}))}function encodeTLV(o){let s=[];return Object.entries(o).forEach(([r,i])=>{i.forEach(a=>{let c=new Uint8Array(a.length+2);c.set([parseInt(r)],0),c.set([a.length],1),c.set(a,2),s.push(c)})}),concatBytes$1(...s)}var nip04_exports={};function encrypt$1(o,s,r){return _encrypt$.apply(this,arguments)}function _encrypt$(){return _encrypt$=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){const i=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s));let a=Uint8Array.from(randomBytes$1(16)),c=utf8Encoder.encode(r),y=yield crypto.subtle.importKey("raw",i,{name:"AES-CBC"},!1,["encrypt"]),w=yield crypto.subtle.encrypt({name:"AES-CBC",iv:a},y,c);return`${base64$1.encode(new Uint8Array(w))}?iv=${base64$1.encode(new Uint8Array(a.buffer))}`}),_encrypt$.apply(this,arguments)}function decrypt$1(o,s,r){return _decrypt$.apply(this,arguments)}function _decrypt$(){return _decrypt$=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){let[i,a]=r.split("?iv="),c=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s)),y=yield crypto.subtle.importKey("raw",c,{name:"AES-CBC"},!1,["decrypt"]),w=base64$1.decode(i),C=base64$1.decode(a),T=yield crypto.subtle.decrypt({name:"AES-CBC",iv:C},y,w);return utf8Decoder.decode(T)}),_decrypt$.apply(this,arguments)}function getNormalizedX(o){return o.slice(1,33)}__export(nip04_exports,{decrypt:()=>decrypt$1,encrypt:()=>encrypt$1}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle);var nip05_exports={};__export(nip05_exports,{NIP05_REGEX:()=>NIP05_REGEX$1,queryProfile:()=>queryProfile,searchDomain:()=>searchDomain,useFetchImplementation:()=>useFetchImplementation});var NIP05_REGEX$1=/^(?:([\w.+-]+)@)?([\w.-]+)$/,_fetch;try{_fetch=fetch}catch{}function useFetchImplementation(o){_fetch=o}function searchDomain(o){return _searchDomain.apply(this,arguments)}function _searchDomain(){return _searchDomain=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=""){try{return(yield(yield _fetch(`https://${o}/.well-known/nostr.json?name=${s}`)).json()).names}catch{return{}}}),_searchDomain.apply(this,arguments)}function queryProfile(o){return _queryProfile.apply(this,arguments)}function _queryProfile(){return _queryProfile=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){const s=o.match(NIP05_REGEX$1);if(!s)return null;const[r,i="_",a]=s;try{const c=yield _fetch(`https://${a}/.well-known/nostr.json?name=${i}`),{names:y,relays:w}=parseNIP05Result$1(yield c.json()),C=y[i];return C?{pubkey:C,relays:w?.[C]}:null}catch{return null}}),_queryProfile.apply(this,arguments)}function parseNIP05Result$1(o){const s={names:{}};for(const[r,i]of Object.entries(o.names))"string"==typeof r&&"string"==typeof i&&(s.names[r]=i);if(o.relays){s.relays={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.relays[r]=i.filter(a=>"string"==typeof a))}return s}var nip06_exports={};function privateKeyFromSeedWords(o,s){let r=HDKey.fromMasterSeed(mnemonicToSeedSync(o,s)).derive("m/44'/1237'/0'/0/0").privateKey;if(!r)throw new Error("could not derive private key");return bytesToHex$1(r)}function generateSeedWords(){return generateMnemonic(wordlist)}function validateWords(o){return validateMnemonic(o,wordlist)}__export(nip06_exports,{generateSeedWords:()=>generateSeedWords,privateKeyFromSeedWords:()=>privateKeyFromSeedWords,validateWords:()=>validateWords});var nip10_exports={};function parse(o){const s={reply:void 0,root:void 0,mentions:[],profiles:[]},r=[];for(const i of o.tags)"e"===i[0]&&i[1]&&r.push(i),"p"===i[0]&&i[1]&&s.profiles.push({pubkey:i[1],relays:i[2]?[i[2]]:[]});for(let i=0;i<r.length;i++){const a=r[i],[c,y,w,C]=a,T={id:y,relays:w?[w]:[]},A=i===r.length-1;"root"!==C?"reply"!==C?"mention"!==C?0===i?s.root=T:A?s.reply=T:s.mentions.push(T):s.mentions.push(T):s.reply=T:s.root=T}return s}__export(nip10_exports,{parse:()=>parse});var nip13_exports={};function getPow(o){let s=0;for(let r=0;r<o.length;r++){const i=parseInt(o[r],16);if(0!==i){s+=Math.clz32(i)-28;break}s+=4}return s}function minePow(o,s){let r=0;const i=o,a=["nonce",r.toString(),s.toString()];for(i.tags.push(a);;){const c=Math.floor((new Date).getTime()/1e3);if(c!==i.created_at&&(r=0,i.created_at=c),a[1]=(++r).toString(),i.id=getEventHash(i),getPow(i.id)>=s)break}return i}__export(nip13_exports,{getPow:()=>getPow,minePow:()=>minePow});var nip18_exports={};function finishRepostEvent(o,s,r,i){return finishEvent({kind:6,tags:[...o.tags??[],["e",s.id,r],["p",s.pubkey]],content:""===o.content?"":JSON.stringify(s),created_at:o.created_at},i)}function getRepostedEventPointer(o){if(6!==o.kind)return;let s,r;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===r);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===r&&(r=a))}return void 0!==s?{id:s[1],relays:[s[2],r?.[2]].filter(i=>"string"==typeof i),author:r?.[1]}:void 0}function getRepostedEvent(o,{skipVerification:s}={}){const r=getRepostedEventPointer(o);if(void 0===r||""===o.content)return;let i;try{i=JSON.parse(o.content)}catch{return}return i.id===r.id&&(s||verifySignature(i))?i:void 0}__export(nip18_exports,{finishRepostEvent:()=>finishRepostEvent,getRepostedEvent:()=>getRepostedEvent,getRepostedEventPointer:()=>getRepostedEventPointer});var nip21_exports={};__export(nip21_exports,{NOSTR_URI_REGEX:()=>NOSTR_URI_REGEX,parse:()=>parse2,test:()=>test});var NOSTR_URI_REGEX=new RegExp(`nostr:(${BECH32_REGEX.source})`);function test(o){return"string"==typeof o&&new RegExp(`^${NOSTR_URI_REGEX.source}$`).test(o)}function parse2(o){const s=o.match(new RegExp(`^${NOSTR_URI_REGEX.source}$`));if(!s)throw new Error(`Invalid Nostr URI: ${o}`);return{uri:s[0],value:s[1],decoded:decode(s[1])}}var nip25_exports={};function finishReactionEvent(o,s,r){const i=s.tags.filter(a=>a.length>=2&&("e"===a[0]||"p"===a[0]));return finishEvent({...o,kind:7,tags:[...o.tags??[],...i,["e",s.id],["p",s.pubkey]],content:o.content??"+"},r)}function getReactedEventPointer(o){if(7!==o.kind)return;let s,r;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===r);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===r&&(r=a))}return void 0!==s&&void 0!==r?{id:s[1],relays:[s[2],r[2]].filter(i=>void 0!==i),author:r[1]}:void 0}__export(nip25_exports,{finishReactionEvent:()=>finishReactionEvent,getReactedEventPointer:()=>getReactedEventPointer});var nip26_exports={};function createDelegation(o,s){let r=[];(s.kind||-1)>=0&&r.push(`kind=${s.kind}`),s.until&&r.push(`created_at<${s.until}`),s.since&&r.push(`created_at>${s.since}`);let i=r.join("&");if(""===i)throw new Error("refusing to create a delegation without any conditions");let a=sha256$1(utf8Encoder.encode(`nostr:delegation:${s.pubkey}:${i}`)),c=bytesToHex$1(schnorr.sign(a,o));return{from:getPublicKey(o),to:s.pubkey,cond:i,sig:c}}function getDelegator(o){let s=o.tags.find(w=>"delegation"===w[0]&&w.length>=4);if(!s)return null;let r=s[1],i=s[2],a=s[3],c=i.split("&");for(let w=0;w<c.length;w++){let[C,T,S]=c[w].split(/\b/);if(("kind"!==C||"="!==T||o.kind!==parseInt(S))&&!("created_at"===C&&"<"===T&&o.created_at<parseInt(S)||"created_at"===C&&">"===T&&o.created_at>parseInt(S)))return null}let y=sha256$1(utf8Encoder.encode(`nostr:delegation:${o.pubkey}:${i}`));return schnorr.verify(a,y,r)?r:null}__export(nip26_exports,{createDelegation:()=>createDelegation,getDelegator:()=>getDelegator});var nip27_exports={};__export(nip27_exports,{matchAll:()=>matchAll,regex:()=>regex,replaceAll:()=>replaceAll});var regex=()=>new RegExp(`\\b${NOSTR_URI_REGEX.source}\\b`,"g");function*matchAll(o){const s=o.matchAll(regex());for(const r of s)try{const[i,a]=r;yield{uri:i,value:a,decoded:decode(a),start:r.index,end:r.index+i.length}}catch{}}function replaceAll(o,s){return o.replaceAll(regex(),(r,i)=>s({uri:r,value:i,decoded:decode(i)}))}var nip28_exports={};__export(nip28_exports,{channelCreateEvent:()=>channelCreateEvent,channelHideMessageEvent:()=>channelHideMessageEvent,channelMessageEvent:()=>channelMessageEvent,channelMetadataEvent:()=>channelMetadataEvent,channelMuteUserEvent:()=>channelMuteUserEvent});var channelCreateEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:40,tags:[...o.tags??[]],content:r,created_at:o.created_at},s)},channelMetadataEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:41,tags:[["e",o.channel_create_event_id],...o.tags??[]],content:r,created_at:o.created_at},s)},channelMessageEvent=(o,s)=>{const r=[["e",o.channel_create_event_id,o.relay_url,"root"]];return o.reply_to_channel_message_event_id&&r.push(["e",o.reply_to_channel_message_event_id,o.relay_url,"reply"]),finishEvent({kind:42,tags:[...r,...o.tags??[]],content:o.content,created_at:o.created_at},s)},channelHideMessageEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:43,tags:[["e",o.channel_message_event_id],...o.tags??[]],content:r,created_at:o.created_at},s)},channelMuteUserEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:44,tags:[["p",o.pubkey_to_mute],...o.tags??[]],content:r,created_at:o.created_at},s)},nip39_exports={},_fetch2;__export(nip39_exports,{useFetchImplementation:()=>useFetchImplementation2,validateGithub:()=>validateGithub});try{_fetch2=fetch}catch{}function useFetchImplementation2(o){_fetch2=o}function validateGithub(o,s,r){return _validateGithub.apply(this,arguments)}function _validateGithub(){return _validateGithub=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){try{return(yield(yield _fetch2(`https://gist.github.com/${s}/${r}/raw`)).text())===`Verifying that I control the following Nostr public key: ${o}`}catch{return!1}}),_validateGithub.apply(this,arguments)}var nip42_exports={};__export(nip42_exports,{authenticate:()=>authenticate});var authenticate=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({challenge:s,relay:r,sign:i}){const a={kind:22242,created_at:Math.floor(Date.now()/1e3),tags:[["relay",r.url],["challenge",s]],content:""};return r.auth(yield i(a))});return function(r){return o.apply(this,arguments)}}(),nip44_exports={};__export(nip44_exports,{decrypt:()=>decrypt2,encrypt:()=>encrypt2,utils:()=>utils});var utils={v2:{maxPlaintextSize:65408,minCiphertextSize:100,maxCiphertextSize:102400,getConversationKey:(o,s)=>secp256k1.getSharedSecret(o,"02"+s).subarray(1,33),getMessageKeys(o,s){const r=hkdf(sha256$1,o,s,"nip44-v2",76);return{encryption:r.subarray(0,32),nonce:r.subarray(32,44),auth:r.subarray(44,76)}},calcPadding(o){if(!Number.isSafeInteger(o)||o<0)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<<Math.floor(Math.log2(o-1))+1,r=s<=256?32:s/8;return r*(Math.floor((o-1)/r)+1)},pad(o){const s=utf8Encoder.encode(o),r=s.length;if(r<1||r>=utils.v2.maxPlaintextSize)throw new Error("invalid plaintext length: must be between 1b and 64KB");const i=utils.v2.calcPadding(r),a=new Uint8Array(i-r),c=new Uint8Array(2);return new DataView(c.buffer).setUint16(0,r),concatBytes$1(c,s,a)},unpad(o){const s=new DataView(o.buffer).getUint16(0),r=o.subarray(2,2+s);if(0===s||r.length!==s||o.length!==2+utils.v2.calcPadding(s))throw new Error("invalid padding");return utf8Decoder.decode(r)}}};function encrypt2(o,s,r={}){const i=r.version??2;if(2!==i)throw new Error("unknown encryption version "+i);const a=r.salt??randomBytes$1(32);ensureBytes(a,32);const c=utils.v2.getMessageKeys(o,a),y=utils.v2.pad(s),w=chacha20(c.encryption,c.nonce,y),C=hmac(sha256$1,c.auth,w);return base64$1.encode(concatBytes$1(new Uint8Array([i]),a,w,C))}function decrypt2(o,s){const r=utils.v2;ensureBytes(o,32);const i=s.length;if(i<r.minCiphertextSize||i>=r.maxCiphertextSize)throw new Error("invalid ciphertext length: "+i);if("#"===s[0])throw new Error("unknown encryption version");let a;try{a=base64$1.decode(s)}catch(A){throw new Error("invalid base64: "+A.message)}const c=a.subarray(0,1)[0];if(2!==c)throw new Error("unknown encryption version "+c);const y=a.subarray(1,33),w=a.subarray(33,-32),C=a.subarray(-32),T=r.getMessageKeys(o,y);if(!equalBytes(hmac(sha256$1,T.auth,w),C))throw new Error("invalid MAC");const S=chacha20(T.encryption,T.nonce,w);return r.unpad(S)}var nip47_exports={};function parseConnectionString(o){const{pathname:s,searchParams:r}=new URL(o),i=s,a=r.get("relay"),c=r.get("secret");if(!i||!a||!c)throw new Error("invalid connection string");return{pubkey:i,relay:a,secret:c}}function makeNwcRequestEvent(o){return _makeNwcRequestEvent.apply(this,arguments)}function _makeNwcRequestEvent(){return _makeNwcRequestEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({pubkey:o,secret:s,invoice:r}){const i={method:"pay_invoice",params:{invoice:r}},a=yield encrypt$1(s,o,JSON.stringify(i));return finishEvent({kind:23194,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o]]},s)}),_makeNwcRequestEvent.apply(this,arguments)}__export(nip47_exports,{makeNwcRequestEvent:()=>makeNwcRequestEvent,parseConnectionString:()=>parseConnectionString});var nip57_exports={},_fetch3;__export(nip57_exports,{getZapEndpoint:()=>getZapEndpoint,makeZapReceipt:()=>makeZapReceipt,makeZapRequest:()=>makeZapRequest,useFetchImplementation:()=>useFetchImplementation3,validateZapRequest:()=>validateZapRequest});try{_fetch3=fetch}catch{}function useFetchImplementation3(o){_fetch3=o}function getZapEndpoint(o){return _getZapEndpoint.apply(this,arguments)}function _getZapEndpoint(){return _getZapEndpoint=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){try{let s="",{lud06:r,lud16:i}=JSON.parse(o.content);if(r){let{words:y}=bech32$1.decode(r,1e3),w=bech32$1.fromWords(y);s=utf8Decoder.decode(w)}else{if(!i)return null;{let[y,w]=i.split("@");s=`https://${w}/.well-known/lnurlp/${y}`}}let a=yield _fetch3(s),c=yield a.json();if(c.allowsNostr&&c.nostrPubkey)return c.callback}catch{}return null}),_getZapEndpoint.apply(this,arguments)}function makeZapRequest({profile:o,event:s,amount:r,relays:i,comment:a=""}){if(!r)throw new Error("amount not given");if(!o)throw new Error("profile not given");let c={kind:9734,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o],["amount",r.toString()],["relays",...i]]};return s&&c.tags.push(["e",s]),c}function validateZapRequest(o){let s;try{s=JSON.parse(o)}catch{return"Invalid zap request JSON."}if(!validateEvent(s))return"Zap request is not a valid Nostr event.";if(!verifySignature(s))return"Invalid signature on zap request.";let r=s.tags.find(([a,c])=>"p"===a&&c);if(!r)return"Zap request doesn't have a 'p' tag.";if(!r[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let i=s.tags.find(([a,c])=>"e"===a&&c);return i&&!i[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":s.tags.find(([a,c])=>"relays"===a&&c)?null:"Zap request doesn't have a 'relays' tag."}function makeZapReceipt({zapRequest:o,preimage:s,bolt11:r,paidAt:i}){let a=JSON.parse(o).tags.filter(([y])=>"e"===y||"p"===y||"a"===y),c={kind:9735,created_at:Math.round(i.getTime()/1e3),content:"",tags:[...a,["bolt11",r],["description",o]]};return s&&c.tags.push(["preimage",s]),c}var nip98_exports={};__export(nip98_exports,{getToken:()=>getToken,unpackEventFromToken:()=>unpackEventFromToken,validateEvent:()=>validateEvent2,validateToken:()=>validateToken});var _authorizationScheme="Nostr ";function getToken(o,s,r){return _getToken.apply(this,arguments)}function _getToken(){return _getToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r,i=!1){if(!o||!s)throw new Error("Missing loginUrl or httpMethod");const a=getBlankEvent(27235);a.tags=[["u",o],["method",s]],a.created_at=Math.round((new Date).getTime()/1e3);const c=yield r(a);return(i?_authorizationScheme:"")+base64$1.encode(utf8Encoder.encode(JSON.stringify(c)))}),_getToken.apply(this,arguments)}function validateToken(o,s,r){return _validateToken.apply(this,arguments)}function _validateToken(){return _validateToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){const i=yield unpackEventFromToken(o).catch(a=>{throw a});return yield validateEvent2(i,s,r).catch(a=>{throw a})}),_validateToken.apply(this,arguments)}function unpackEventFromToken(o){return _unpackEventFromToken.apply(this,arguments)}function _unpackEventFromToken(){return _unpackEventFromToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){if(!o)throw new Error("Missing token");o=o.replace(_authorizationScheme,"");const s=utf8Decoder.decode(base64$1.decode(o));if(!s||0===s.length||!s.startsWith("{"))throw new Error("Invalid token");return JSON.parse(s)}),_unpackEventFromToken.apply(this,arguments)}function validateEvent2(o,s,r){return _validateEvent.apply(this,arguments)}function _validateEvent(){return _validateEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){if(!o)throw new Error("Invalid nostr event");if(!verifySignature(o))throw new Error("Invalid nostr event, signature invalid");if(27235!==o.kind)throw new Error("Invalid nostr event, kind invalid");if(!o.created_at)throw new Error("Invalid nostr event, created_at invalid");if(Math.round((new Date).getTime()/1e3)-o.created_at>60)throw new Error("Invalid nostr event, expired");const i=o.tags.find(c=>"u"===c[0]);if(1!==i?.length&&i?.[1]!==s)throw new Error("Invalid nostr event, url tag invalid");const a=o.tags.find(c=>"method"===c[0]);if(1!==a?.length&&a?.[1].toLowerCase()!==r.toLowerCase())throw new Error("Invalid nostr event, method tag invalid");return!0}),_validateEvent.apply(this,arguments)}var browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var o=1e3,s=60*o,r=60*s,i=24*r,a=7*i;function y(w,C,T,S){var A=C>=1.5*T;return Math.round(w/T)+" "+S+(A?"s":"")}return ms=function(w,C){C=C||{};var S,A,T=typeof w;if("string"===T&&w.length>0)return function(S){if(!((S=String(S)).length>100)){var A=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(A){var I=parseFloat(A[1]);switch((A[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*I;case"weeks":case"week":case"w":return I*a;case"days":case"day":case"d":return I*i;case"hours":case"hour":case"hrs":case"hr":case"h":return I*r;case"minutes":case"minute":case"mins":case"min":case"m":return I*s;case"seconds":case"second":case"secs":case"sec":case"s":return I*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return I;default:return}}}}(w);if("number"===T&&isFinite(w))return C.long?(S=w,(A=Math.abs(S))>=i?y(S,A,i,"day"):A>=r?y(S,A,r,"hour"):A>=s?y(S,A,s,"minute"):A>=o?y(S,A,o,"second"):S+" ms"):function(S){var A=Math.abs(S);return A>=i?Math.round(S/i)+"d":A>=r?Math.round(S/r)+"h":A>=s?Math.round(S/s)+"m":A>=o?Math.round(S/o)+"s":S+"ms"}(w);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(w))}}function setup(o){function s(a){let c,y,w,C=null;function T(...S){if(!T.enabled)return;const A=T,I=Number(new Date);A.diff=I-(c||I),A.prev=c,A.curr=I,c=I,S[0]=s.coerce(S[0]),"string"!=typeof S[0]&&S.unshift("%O");let G=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(Z,te)=>{if("%%"===Z)return"%";G++;const be=s.formatters[te];return"function"==typeof be&&(Z=be.call(A,S[G]),S.splice(G,1),G--),Z}),s.formatArgs.call(A,S),(A.log||s.log).apply(A,S)}return T.namespace=a,T.useColors=s.useColors(),T.color=s.selectColor(a),T.extend=r,T.destroy=s.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==C?C:(y!==s.namespaces&&(y=s.namespaces,w=s.enabled(a)),w),set:S=>{C=S}}),"function"==typeof s.init&&s.init(T),T}function r(a,c){const y=s(this.namespace+(void 0===c?":":c)+a);return y.log=this.log,y}function i(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names.map(i),...s.skips.map(i).map(c=>"-"+c)].join(",");return s.enable(""),a},s.enable=function(a){let c;s.save(a),s.namespaces=a,s.names=[],s.skips=[];const y=("string"==typeof a?a:"").split(/[\s,]+/),w=y.length;for(c=0;c<w;c++)y[c]&&("-"===(a=y[c].replace(/\*/g,".*?"))[0]?s.skips.push(new RegExp("^"+a.slice(1)+"$")):s.names.push(new RegExp("^"+a+"$")))},s.enabled=function(a){if("*"===a[a.length-1])return!0;let c,y;for(c=0,y=s.skips.length;c<y;c++)if(s.skips[c].test(a))return!1;for(c=0,y=s.names.length;c<y;c++)if(s.names[c].test(a))return!0;return!1},s.humanize=requireMs(),s.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(o).forEach(a=>{s[a]=o[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let c=0;for(let y=0;y<a.length;y++)c=(c<<5)-c+a.charCodeAt(y),c|=0;return s.colors[Math.abs(c)%s.colors.length]},s.enable(s.load()),s}var common=setup;!function(o,s){s.formatArgs=function(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+o.exports.humanize(this.diff),!this.useColors)return;const a="color: "+this.color;i.splice(1,0,a,"color: inherit");let c=0,y=0;i[0].replace(/%[a-zA-Z%]/g,w=>{"%%"!==w&&(c++,"%c"===w&&(y=c))}),i.splice(y,0,a)},s.save=function(i){try{i?s.storage.setItem("debug",i):s.storage.removeItem("debug")}catch{}},s.load=function(){let i;try{i=s.storage.getItem("debug")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i},s.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},s.storage=function(){try{return localStorage}catch{}}(),s.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],s.log=console.debug||console.log||(()=>{}),o.exports=common(s);const{formatters:r}=o.exports;r.j=function(i){try{return JSON.stringify(i)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}(browser,browser.exports);var browserExports=browser.exports,debug3=getDefaultExportFromCjs(browserExports),dist={},LRUCache$1={},LRUCacheNode$1={};Object.defineProperty(LRUCacheNode$1,"__esModule",{value:!0}),LRUCacheNode$1.LRUCacheNode=void 0;class LRUCacheNode{constructor(s,r,i){const{entryExpirationTimeInMS:a=null,next:c=null,prev:y=null,onEntryEvicted:w,onEntryMarkedAsMostRecentlyUsed:C,clone:T,cloneFn:S}=i??{};if("number"==typeof a&&(a<=0||Number.isNaN(a)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.clone=null!=T&&T,this.cloneFn=S??this.defaultClone,this.key=s,this.internalValue=this.clone?this.cloneFn(r):r,this.created=Date.now(),this.entryExpirationTimeInMS=a,this.next=c,this.prev=y,this.onEntryEvicted=w,this.onEntryMarkedAsMostRecentlyUsed=C}get value(){return this.clone?this.cloneFn(this.internalValue):this.internalValue}get isExpired(){return"number"==typeof this.entryExpirationTimeInMS&&Date.now()-this.created>this.entryExpirationTimeInMS}invokeOnEvicted(){if(this.onEntryEvicted){const{key:s,value:r,isExpired:i}=this;this.onEntryEvicted({key:s,value:r,isExpired:i})}}invokeOnEntryMarkedAsMostRecentlyUsed(){if(this.onEntryMarkedAsMostRecentlyUsed){const{key:s,value:r}=this;this.onEntryMarkedAsMostRecentlyUsed({key:s,value:r})}}defaultClone(s){return"boolean"==typeof s||"string"==typeof s||"number"==typeof s?s:JSON.parse(JSON.stringify(s))}}LRUCacheNode$1.LRUCacheNode=LRUCacheNode,Object.defineProperty(LRUCache$1,"__esModule",{value:!0}),LRUCache$1.LRUCache=void 0;const LRUCacheNode_1=LRUCacheNode$1;class LRUCache{constructor(s){this.lookupTable=new Map,this.head=null,this.tail=null;const{maxSize:r=25,entryExpirationTimeInMS:i=null,onEntryEvicted:a,onEntryMarkedAsMostRecentlyUsed:c,cloneFn:y,clone:w}=s??{};if(Number.isNaN(r)||r<=0)throw new Error("maxSize must be greater than 0.");if("number"==typeof i&&(i<=0||Number.isNaN(i)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.maxSizeInternal=r,this.entryExpirationTimeInMS=i,this.onEntryEvicted=a,this.onEntryMarkedAsMostRecentlyUsed=c,this.clone=w,this.cloneFn=y}get size(){return this.cleanCache(),this.lookupTable.size}get remainingSize(){return this.maxSizeInternal-this.size}get newest(){return this.head?this.head.isExpired?(this.removeNodeFromListAndLookupTable(this.head),this.newest):this.mapNodeToEntry(this.head):null}get oldest(){return this.tail?this.tail.isExpired?(this.removeNodeFromListAndLookupTable(this.tail),this.oldest):this.mapNodeToEntry(this.tail):null}get maxSize(){return this.maxSizeInternal}set maxSize(s){if(Number.isNaN(s)||s<=0)throw new Error("maxSize must be greater than 0.");this.maxSizeInternal=s,this.enforceSizeLimit()}set(s,r,i){const a=this.lookupTable.get(s);a&&this.removeNodeFromListAndLookupTable(a);const c=new LRUCacheNode_1.LRUCacheNode(s,r,{entryExpirationTimeInMS:this.entryExpirationTimeInMS,onEntryEvicted:this.onEntryEvicted,onEntryMarkedAsMostRecentlyUsed:this.onEntryMarkedAsMostRecentlyUsed,clone:this.clone,cloneFn:this.cloneFn,...i});return this.setNodeAsHead(c),this.lookupTable.set(s,c),this.enforceSizeLimit(),this}get(s){const r=this.lookupTable.get(s);return r?r.isExpired?(this.removeNodeFromListAndLookupTable(r),null):(this.setNodeAsHead(r),r.value):null}peek(s){const r=this.lookupTable.get(s);return r?r.isExpired?(this.removeNodeFromListAndLookupTable(r),null):r.value:null}delete(s){const r=this.lookupTable.get(s);return!!r&&this.removeNodeFromListAndLookupTable(r)}has(s){const r=this.lookupTable.get(s);return!(!r||r.isExpired&&(this.removeNodeFromListAndLookupTable(r),1))}clear(){this.head=null,this.tail=null,this.lookupTable.clear()}find(s){let r=this.head;for(;r;){if(r.isExpired){const a=r.next;this.removeNodeFromListAndLookupTable(r),r=a;continue}const i=this.mapNodeToEntry(r);if(s(i))return this.setNodeAsHead(r),i;r=r.next}return null}forEach(s){let r=this.head,i=0;for(;r;)if(r.isExpired){const a=r.next;this.removeNodeFromListAndLookupTable(r),r=a}else s(r.value,r.key,i),r=r.next,i++}*values(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield s.value,s=s.next}*keys(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield s.key,s=s.next}*entries(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield this.mapNodeToEntry(s),s=s.next}*[Symbol.iterator](){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield this.mapNodeToEntry(s),s=s.next}enforceSizeLimit(){let s=this.tail;for(;null!==s&&this.size>this.maxSizeInternal;){const r=s.prev;this.removeNodeFromListAndLookupTable(s),s=r}}mapNodeToEntry({key:s,value:r}){return{key:s,value:r}}setNodeAsHead(s){this.removeNodeFromList(s),this.head?(s.next=this.head,this.head.prev=s,this.head=s):(this.head=s,this.tail=s),s.invokeOnEntryMarkedAsMostRecentlyUsed()}removeNodeFromList(s){null!==s.prev&&(s.prev.next=s.next),null!==s.next&&(s.next.prev=s.prev),this.head===s&&(this.head=s.next),this.tail===s&&(this.tail=s.prev),s.next=null,s.prev=null}removeNodeFromListAndLookupTable(s){return s.invokeOnEvicted(),this.removeNodeFromList(s),this.lookupTable.delete(s.key)}cleanCache(){if(!this.entryExpirationTimeInMS)return;const s=[];for(const r of this.lookupTable.values())r.isExpired&&s.push(r);s.forEach(r=>this.removeNodeFromListAndLookupTable(r))}}LRUCache$1.LRUCache=LRUCache,function(o){var s=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(i,a,c,y){void 0===y&&(y=c);var w=Object.getOwnPropertyDescriptor(a,c);w&&!("get"in w?!a.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,y,w)}:function(i,a,c,y){void 0===y&&(y=c),i[y]=a[c]}),r=commonjsGlobal&&commonjsGlobal.__exportStar||function(i,a){for(var c in i)"default"===c||Object.prototype.hasOwnProperty.call(a,c)||s(a,i,c)};Object.defineProperty(o,"__esModule",{value:!0}),r(LRUCache$1,o)}(dist);var lib={};(function(o){function s(Ce){if(!Number.isSafeInteger(Ce))throw new Error(`Wrong integer: ${Ce}`)}function r(...Ce){const le=(ae,Ie)=>$e=>ae(Ie($e));return{encode:Array.from(Ce).reverse().reduce((ae,Ie)=>ae?le(ae,Ie.encode):Ie.encode,void 0),decode:Ce.reduce((ae,Ie)=>ae?le(ae,Ie.decode):Ie.decode,void 0)}}function i(Ce){return{encode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("alphabet.encode input should be an array of numbers");return le.map(ae=>{if(s(ae),ae<0||ae>=Ce.length)throw new Error(`Digit index outside alphabet: ${ae} (alphabet: ${Ce.length})`);return Ce[ae]})},decode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("alphabet.decode input should be array of strings");return le.map(ae=>{if("string"!=typeof ae)throw new Error(`alphabet.decode: not string element=${ae}`);const Ie=Ce.indexOf(ae);if(-1===Ie)throw new Error(`Unknown letter: "${ae}". Allowed: ${Ce}`);return Ie})}}}function a(Ce=""){if("string"!=typeof Ce)throw new Error("join separator should be string");return{encode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("join.encode input should be array of strings");for(let ae of le)if("string"!=typeof ae)throw new Error(`join.encode: non-string input=${ae}`);return le.join(Ce)},decode:le=>{if("string"!=typeof le)throw new Error("join.decode input should be string");return le.split(Ce)}}}function c(Ce,le="="){if(s(Ce),"string"!=typeof le)throw new Error("padding chr should be string");return{encode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let Ie of ae)if("string"!=typeof Ie)throw new Error(`padding.encode: non-string input=${Ie}`);for(;ae.length*Ce%8;)ae.push(le);return ae},decode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let $e of ae)if("string"!=typeof $e)throw new Error(`padding.decode: non-string input=${$e}`);let Ie=ae.length;if(Ie*Ce%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;Ie>0&&ae[Ie-1]===le;Ie--)if(!((Ie-1)*Ce%8))throw new Error("Invalid padding: string has too much padding");return ae.slice(0,Ie)}}}function y(Ce){if("function"!=typeof Ce)throw new Error("normalize fn should be function");return{encode:le=>le,decode:le=>Ce(le)}}function w(Ce,le,ae){if(le<2)throw new Error(`convertRadix: wrong from=${le}, base cannot be less than 2`);if(ae<2)throw new Error(`convertRadix: wrong to=${ae}, base cannot be less than 2`);if(!Array.isArray(Ce))throw new Error("convertRadix: data should be array");if(!Ce.length)return[];let Ie=0;const $e=[],st=Array.from(Ce);for(st.forEach(ht=>{if(s(ht),ht<0||ht>=le)throw new Error(`Wrong integer: ${ht}`)});;){let ht=0,vt=!0;for(let at=Ie;at<st.length;at++){const Xt=st[at],ln=le*ht+Xt;if(!Number.isSafeInteger(ln)||le*ht/le!==ht||ln-Xt!=le*ht)throw new Error("convertRadix: carry overflow");if(ht=ln%ae,st[at]=Math.floor(ln/ae),!Number.isSafeInteger(st[at])||st[at]*ae+ht!==ln)throw new Error("convertRadix: carry overflow");vt&&(st[at]?vt=!1:Ie=at)}if($e.push(ht),vt)break}for(let ht=0;ht<Ce.length-1&&0===Ce[ht];ht++)$e.push(0);return $e.reverse()}Object.defineProperty(o,"__esModule",{value:!0}),o.bytes=o.stringToBytes=o.str=o.bytesToString=o.hex=o.utf8=o.bech32m=o.bech32=o.base58check=o.base58xmr=o.base58xrp=o.base58flickr=o.base58=o.base64url=o.base64=o.base32crockford=o.base32hex=o.base32=o.base16=o.utils=o.assertNumber=void 0,o.assertNumber=s;const C=(Ce,le)=>le?C(le,Ce%le):Ce,T=(Ce,le)=>Ce+(le-C(Ce,le));function S(Ce,le,ae,Ie){if(!Array.isArray(Ce))throw new Error("convertRadix2: data should be array");if(le<=0||le>32)throw new Error(`convertRadix2: wrong from=${le}`);if(ae<=0||ae>32)throw new Error(`convertRadix2: wrong to=${ae}`);if(T(le,ae)>32)throw new Error(`convertRadix2: carry overflow from=${le} to=${ae} carryBits=${T(le,ae)}`);let $e=0,st=0;const ht=2**ae-1,vt=[];for(const at of Ce){if(s(at),at>=2**le)throw new Error(`convertRadix2: invalid data word=${at} from=${le}`);if($e=$e<<le|at,st+le>32)throw new Error(`convertRadix2: carry overflow pos=${st} from=${le}`);for(st+=le;st>=ae;st-=ae)vt.push(($e>>st-ae&ht)>>>0);$e&=2**st-1}if($e=$e<<ae-st&ht,!Ie&&st>=le)throw new Error("Excess padding");if(!Ie&&$e)throw new Error(`Non-zero padding: ${$e}`);return Ie&&st>0&&vt.push($e>>>0),vt}function A(Ce){return s(Ce),{encode:le=>{if(!(le instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return w(Array.from(le),256,Ce)},decode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(w(le,Ce,256))}}}function I(Ce,le=!1){if(s(Ce),Ce<=0||Ce>32)throw new Error("radix2: bits should be in (0..32]");if(T(8,Ce)>32||T(Ce,8)>32)throw new Error("radix2: carry overflow");return{encode:ae=>{if(!(ae instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return S(Array.from(ae),8,Ce,!le)},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(S(ae,Ce,8,le))}}}function N(Ce){if("function"!=typeof Ce)throw new Error("unsafeWrapper fn should be function");return function(...le){try{return Ce.apply(null,le)}catch{}}}function G(Ce,le){if(s(Ce),"function"!=typeof le)throw new Error("checksum fn should be function");return{encode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const Ie=le(ae).slice(0,Ce),$e=new Uint8Array(ae.length+Ce);return $e.set(ae),$e.set(Ie,ae.length),$e},decode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const Ie=ae.slice(0,-Ce),$e=le(Ie).slice(0,Ce),st=ae.slice(-Ce);for(let ht=0;ht<Ce;ht++)if($e[ht]!==st[ht])throw new Error("Invalid checksum");return Ie}}}o.utils={alphabet:i,chain:r,checksum:G,radix:A,radix2:I,join:a,padding:c},o.base16=r(I(4),i("0123456789ABCDEF"),a("")),o.base32=r(I(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),c(5),a("")),o.base32hex=r(I(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),c(5),a("")),o.base32crockford=r(I(5),i("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),a(""),y(Ce=>Ce.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),o.base64=r(I(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c(6),a("")),o.base64url=r(I(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c(6),a(""));const Z=Ce=>r(A(58),i(Ce),a(""));o.base58=Z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),o.base58flickr=Z("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),o.base58xrp=Z("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const te=[0,2,3,5,6,7,9,10,11];o.base58xmr={encode(Ce){let le="";for(let ae=0;ae<Ce.length;ae+=8){const Ie=Ce.subarray(ae,ae+8);le+=o.base58.encode(Ie).padStart(te[Ie.length],"1")}return le},decode(Ce){let le=[];for(let ae=0;ae<Ce.length;ae+=11){const Ie=Ce.slice(ae,ae+11),$e=te.indexOf(Ie.length),st=o.base58.decode(Ie);for(let ht=0;ht<st.length-$e;ht++)if(0!==st[ht])throw new Error("base58xmr: wrong padding");le=le.concat(Array.from(st.slice(st.length-$e)))}return Uint8Array.from(le)}},o.base58check=Ce=>r(G(4,le=>Ce(Ce(le))),o.base58);const be=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),me=[996825010,642813549,513874426,1027748829,705979059];function pe(Ce){const le=Ce>>25;let ae=(33554431&Ce)<<5;for(let Ie=0;Ie<me.length;Ie++)1==(le>>Ie&1)&&(ae^=me[Ie]);return ae}function Te(Ce,le,ae=1){const Ie=Ce.length;let $e=1;for(let st=0;st<Ie;st++){const ht=Ce.charCodeAt(st);if(ht<33||ht>126)throw new Error(`Invalid prefix (${Ce})`);$e=pe($e)^ht>>5}$e=pe($e);for(let st=0;st<Ie;st++)$e=pe($e)^31&Ce.charCodeAt(st);for(let st of le)$e=pe($e)^st;for(let st=0;st<6;st++)$e=pe($e);return $e^=ae,be.encode(S([$e%2**30],30,5,!1))}function xe(Ce){const le="bech32"===Ce?1:734539939,ae=I(5),Ie=ae.decode,$e=ae.encode,st=N(Ie);function ht(vt,at=90){if("string"!=typeof vt)throw new Error("bech32.decode input should be string, not "+typeof vt);if(vt.length<8||!1!==at&&vt.length>at)throw new TypeError(`Wrong string length: ${vt.length} (${vt}). Expected (8..${at})`);const Xt=vt.toLowerCase();if(vt!==Xt&&vt!==vt.toUpperCase())throw new Error("String must be lowercase or uppercase");const ln=(vt=Xt).lastIndexOf("1");if(0===ln||-1===ln)throw new Error('Letter "1" must be present between prefix and data only');const yn=vt.slice(0,ln),$n=vt.slice(ln+1);if($n.length<6)throw new Error("Data must be at least 6 characters long");const bn=be.decode($n).slice(0,-6),Qe=Te(yn,bn,le);if(!$n.endsWith(Qe))throw new Error(`Invalid checksum in ${vt}: expected "${Qe}"`);return{prefix:yn,words:bn}}return{encode:function(vt,at,Xt=90){if("string"!=typeof vt)throw new Error("bech32.encode prefix should be string, not "+typeof vt);if(!Array.isArray(at)||at.length&&"number"!=typeof at[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof at);const ln=vt.length+7+at.length;if(!1!==Xt&&ln>Xt)throw new TypeError(`Length ${ln} exceeds limit ${Xt}`);return`${vt=vt.toLowerCase()}1${be.encode(at)}${Te(vt,at,le)}`},decode:ht,decodeToBytes:function(vt){const{prefix:at,words:Xt}=ht(vt,!1);return{prefix:at,words:Xt,bytes:Ie(Xt)}},decodeUnsafe:N(ht),fromWords:Ie,fromWordsUnsafe:st,toWords:$e}}o.bech32=xe("bech32"),o.bech32m=xe("bech32m"),o.utf8={encode:Ce=>(new TextDecoder).decode(Ce),decode:Ce=>(new TextEncoder).encode(Ce)},o.hex=r(I(4),i("0123456789abcdef"),a(""),y(Ce=>{if("string"!=typeof Ce||Ce.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof Ce} with length ${Ce.length}`);return Ce.toLowerCase()}));const Re={utf8:o.utf8,hex:o.hex,base16:o.base16,base32:o.base32,base64:o.base64,base64url:o.base64url,base58:o.base58,base58xmr:o.base58xmr},Me=`Invalid encoding type. Available types: ${Object.keys(Re).join(", ")}`;o.bytesToString=(Ce,le)=>{if("string"!=typeof Ce||!Re.hasOwnProperty(Ce))throw new TypeError(Me);if(!(le instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return Re[Ce].encode(le)},o.str=o.bytesToString,o.stringToBytes=(Ce,le)=>{if(!Re.hasOwnProperty(Ce))throw new TypeError(Me);if("string"!=typeof le)throw new TypeError("stringToBytes() expects string");return Re[Ce].decode(le)},o.bytes=o.stringToBytes})(lib),BigInt(1e3),BigInt(1e6),BigInt(1e9),BigInt(1e12),BigInt("2100000000000000000"),BigInt(1e11);const TAGCODES={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27};for(let o=0,s=Object.keys(TAGCODES);o<s.length;o++)TAGCODES[s[o]].toString();var NDKRelayConnectivity=class{ndkRelay;_status;relay;connectedAt;_connectionStats={attempts:0,success:0,durations:[]};debug;constructor(o){this.ndkRelay=o,this._status=3,this.relay=relayInit(this.ndkRelay.url),this.debug=this.ndkRelay.debug.extend("connectivity"),this.relay.on("notice",s=>this.handleNotice(s))}initiateAuth(o={limit:1}){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.debug("Initiating authentication");const r=s.relay.sub([o],{id:"auth-test"});r.on("eose",()=>{r.unsub(),s._status=1,s.ndkRelay.emit("ready"),s.debug("Authentication not required"),r.unsub()}),s.debug("Authentication request started")})()}connect(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=()=>{o.updateConnectionStats.connected(),o.ndkRelay.authRequired?(o._status=6,o.ndkRelay.emit("connect"),o.initiateAuth()):(o._status=1,o.ndkRelay.emit("connect"),o.ndkRelay.emit("ready"))},r=()=>{o.updateConnectionStats.disconnected(),1===o._status&&(o._status=3,o.handleReconnection()),o.ndkRelay.emit("disconnect")},i=function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){o.debug("Relay requested authentication",{havePolicy:!!o.ndkRelay.authPolicy}),o.ndkRelay.authPolicy?7!==o._status&&(o._status=7,yield o.ndkRelay.authPolicy(o.ndkRelay,c),7===o._status&&(o.debug("Authentication policy finished"),o._status=1,o.ndkRelay.emit("ready"))):yield o.ndkRelay.emit("auth",c)});return function(y){return a.apply(this,arguments)}}();try{o.updateConnectionStats.attempt(),o._status=0,o.relay.off("connect",s),o.relay.off("disconnect",r),o.relay.on("connect",s),o.relay.on("disconnect",r),o.relay.on("auth",i),yield o.relay.connect()}catch(a){throw o.debug("Failed to connect",a),o._status=3,a}})()}disconnect(){this._status=2,this.relay.close()}get status(){return this._status}isAvailable(){return 1===this._status}isFlapping(){const o=this._connectionStats.durations;if(o.length%3!=0)return!1;const s=o.reduce((i,a)=>i+a,0)/o.length,r=o.map(i=>Math.pow(i-s,2)).reduce((i,a)=>i+a,0)/o.length;return Math.sqrt(r)<1e3}handleNotice(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){(o.includes("oo many")||o.includes("aximum"))&&(s.disconnect(),setTimeout(()=>s.connect(),2e3),s.debug(s.relay.url,"Relay complaining?",o)),s.ndkRelay.emit("notice",s,o)})()}handleReconnection(o=0){if(this.isFlapping())return this.ndkRelay.emit("flapping",this,this._connectionStats),void(this._status=5);const s=this.connectedAt?Math.max(0,6e4-(Date.now()-this.connectedAt)):0;setTimeout(()=>{this._status=4,this.connect().then(()=>{this.debug("Reconnected")}).catch(r=>{this.debug("Reconnect failed",r),o<5?setTimeout(()=>{this.handleReconnection(o+1)},6e4):this.debug("Reconnect failed after 5 attempts")})},s)}updateConnectionStats={connected:()=>{this._connectionStats.success++,this._connectionStats.connectedAt=Date.now()},disconnected:()=>{this._connectionStats.connectedAt&&(this._connectionStats.durations.push(Date.now()-this._connectionStats.connectedAt),this._connectionStats.durations.length>100&&this._connectionStats.durations.shift()),this._connectionStats.connectedAt=void 0},attempt:()=>{this._connectionStats.attempts++}};get connectionStats(){return this._connectionStats}},NDKRelayPublisher=class{ndkRelay;constructor(o){this.ndkRelay=o}publish(o,s=2500){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=()=>new Promise((C,T)=>{try{r.publishEvent(o,s).then(S=>C(S)).catch(S=>T(S))}catch(S){T(S)}}),a=new Promise((C,T)=>{setTimeout(()=>T(new Error("Timeout")),s)}),c=()=>{i().then(C=>y(C)).catch(C=>w(C))};let y,w;return 1===r.ndkRelay.status?Promise.race([i(),a]):Promise.race([new Promise((C,T)=>{y=C,w=T,r.ndkRelay.once("connect",c)}),a]).finally(()=>{r.ndkRelay.removeListener("connect",c)})})()}publishEvent(o,s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=yield o.toNostrEvent(),a=r.ndkRelay.connectivity.relay.publish(i);let c;const y=new Promise((C,T)=>{a.then(()=>{clearTimeout(c),r.ndkRelay.emit("published",o),C(!0)}).catch(S=>{clearTimeout(c),r.ndkRelay.debug("Publish failed",S,o.id),r.ndkRelay.emit("publish:failed",o,S),T(S)})});if(!s||o.isEphemeral())return y;const w=new Promise((C,T)=>{c=setTimeout(()=>{r.ndkRelay.debug("Publish timed out",o.rawEvent()),r.ndkRelay.emit("publish:failed",o,"Timeout"),T(new Error("Publish operation timed out"))},s)});return Promise.race([y,w])})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.ndkRelay.connectivity.relay.auth(o.rawEvent())})()}};function calculateGroupableId(o){const s=[];for(const r of o){if(r.since||r.until)return null;const i=Object.keys(r||{}).sort().join("-");s.push(i)}return s.join("|")}function mergeFilters(o){const s={};return o.forEach(r=>{Object.entries(r).forEach(([i,a])=>{s[i]=Array.isArray(a)?void 0===s[i]?[...a]:Array.from(new Set([...s[i],...a])):a})}),s}var MAX_SUBID_LENGTH=20;function queryFullyFilled(o){return!(!filterIncludesIds(o.filter)||!resultHasAllRequestedIds(o))}function compareFilter(o,s){if(Object.keys(o).length!==Object.keys(s).length)return!1;for(const[r,i]of Object.entries(o)){const a=s[r];if(!a)return!1;if(Array.isArray(i)&&Array.isArray(a)){const c=i;for(const y of a)if(!c.includes(y))return!1}else if(a!==i)return!1}return!0}function filterIncludesIds(o){return!!o.ids}function resultHasAllRequestedIds(o){const s=o.filter.ids;return!!s&&s.length===o.eventFirstSeen.size}function generateSubId(o,s){const r=o.map(w=>w.subId).filter(Boolean),i=[],a=new Set,c=new Set;if(r.length>0)i.push(Array.from(new Set(r)).join(","));else{for(const w of s)for(const C of Object.keys(w))"kinds"===C?w.kinds?.forEach(T=>c.add(T)):a.add(C);c.size>0&&i.push("kinds:"+Array.from(c).join(",")),a.size>0&&i.push(Array.from(a).join(","))}let y=i.join("-");return y.length>MAX_SUBID_LENGTH&&(y=y.substring(0,MAX_SUBID_LENGTH)),1!==r.length&&(y+="-"+Math.floor(999*Math.random()).toString()),y}function filterFromId(o){let s;if(o.match(NIP33_A_REGEX)){const[r,i,a]=o.split(":"),c={authors:[i],kinds:[parseInt(r)]};return a&&(c["#d"]=[a]),c}try{switch(s=nip19_exports.decode(o),s.type){case"nevent":return{ids:[s.data.id]};case"note":return{ids:[s.data]};case"naddr":return{authors:[s.data.pubkey],"#d":[s.data.identifier],kinds:[s.data.kind]}}}catch{}return{ids:[o]}}function isNip33AValue(o){return null!==o.match(NIP33_A_REGEX)}var NIP33_A_REGEX=/^(\d+):([0-9A-Fa-f]+)(?::(.*))?$/;function relaysFromBech32(o){try{const s=nip19_exports.decode(o);if(["naddr","nevent"].includes(s?.type)){const r=s.data;if(r?.relays)return r.relays.map(i=>new NDKRelay(i))}}catch{}return[]}var NDKGroupedSubscriptions=class extends lib$1.EventEmitter{subscriptions;req;debug;constructor(o,s){super(),this.subscriptions=o,this.debug=s||this.subscriptions[0].subscription.debug.extend("grouped");for(const r of o)this.handleSubscriptionClosure(r)}addSubscription(o){this.subscriptions.push(o),this.handleSubscriptionClosure(o)}eventReceived(o){for(const s of this.subscriptions)s.eventReceived(o)}eoseReceived(o){Array.from(this.subscriptions).forEach(function(){var s=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(r){r.subscription.eoseReceived(o)});return function(r){return s.apply(this,arguments)}}())}handleSubscriptionClosure(o){o.subscription.on("close",()=>{const s=this.subscriptions.findIndex(r=>r.subscription===o.subscription);this.subscriptions.splice(s,1),this.subscriptions.length<=0&&this.emit("close")})}map(o){return this.subscriptions.map(o)}[Symbol.iterator](){let o=0;const s=this.subscriptions;return{next:()=>o<s.length?{value:s[o++],done:!1}:{value:null,done:!0}}}},NDKSubscriptionFilters=class{subscription;filters=[];ndkRelay;constructor(o,s,r){this.subscription=o,this.filters=s,this.ndkRelay=r}eventReceived(o){this.eventMatchesLocalFilter(o)&&this.subscription.eventReceived(o,this.ndkRelay,!1)}eventMatchesLocalFilter(o){const s=o.rawEvent();return this.filters.some(r=>matchFilter(r,s))}};function findMatchingActiveSubscriptions(o,s){if(o.length!==s.length)return!1;for(let r=0;r<o.length&&compareFilter(o[r],s[r]);r++)return o[r]}var NDKRelaySubscriptions=class{ndkRelay;delayedItems=new Map;delayedTimers=new Map;activeSubscriptions=new Map;activeSubscriptionsByGroupId=new Map;executionTimeoutsByGroupId=new Map;debug;groupingDebug;conn;constructor(o){this.ndkRelay=o,this.conn=o.connectivity,this.debug=o.debug.extend("subscriptions"),this.groupingDebug=o.debug.extend("grouping")}subscribe(o,s){const r=calculateGroupableId(s),i=new NDKSubscriptionFilters(o,s,this.ndkRelay);if(!r||!o.isGroupable())return void this.executeSubscriptions(r,new NDKGroupedSubscriptions([i]),s);const a=this.activeSubscriptionsByGroupId.get(r);if(a&&findMatchingActiveSubscriptions(a.filters,s))return void this.activeSubscriptions.get(a.sub)?.addSubscription(new NDKSubscriptionFilters(o,s,this.ndkRelay));let c=this.delayedItems.get(r);c?c.addSubscription(i):(c=new NDKGroupedSubscriptions([i]),this.delayedItems.set(r,c),c.once("close",()=>{this.delayedItems.get(r)&&this.delayedItems.delete(r)}));let y=this.executionTimeoutsByGroupId.get(r);y&&"at-most"!==o.opts.groupableDelayType||(y=setTimeout(()=>{this.executeGroup(r,o)},o.opts.groupableDelay),this.executionTimeoutsByGroupId.set(r,y)),this.delayedTimers.has(r)?this.delayedTimers.get(r).push(y):this.delayedTimers.set(r,[y])}executeGroup(o,s){const r=this.delayedItems.get(o);this.delayedItems.delete(o);const i=this.delayedTimers.get(o);if(this.delayedTimers.delete(o),i)for(const a of i)clearTimeout(a);if(r){const a=r.subscriptions[0].filters.length,c=[];for(let y=0;y<a;y++){const w=r.map(C=>C.filters[y]);c.push(mergeFilters(w))}this.executeSubscriptions(o,r,c)}}executeSubscriptionsWhenConnected(o,s,r){const i=()=>{this.debug("new relay coming online for active subscription",{relay:this.ndkRelay.url,mergeFilters}),this.executeSubscriptionsConnected(o,s,r)};this.ndkRelay.once("ready",i),s.once("close",()=>{this.ndkRelay.removeListener("ready",i)})}executeSubscriptions(o,s,r){this.conn.isAvailable()?this.executeSubscriptionsConnected(o,s,r):this.executeSubscriptionsWhenConnected(o,s,r)}executeSubscriptionsConnected(o,s,r){const i=[];for(const{subscription:w}of s)i.push(w);const a=generateSubId(i,r);s.req=r;const c={id:a};(this.ndkRelay.trusted||i.every(w=>w.opts.skipVerification))&&(c.skipVerification=!0);const y=this.conn.relay.sub(r,c);return this.activeSubscriptions.set(y,s),o&&this.activeSubscriptionsByGroupId.set(o,{filters:r,sub:y}),y.on("event",w=>{const C=new NDKEvent(void 0,w);C.relay=this.ndkRelay,this.activeSubscriptions.get(y)?.eventReceived(C)}),y.on("eose",()=>{this.activeSubscriptions.get(y)?.eoseReceived(this.ndkRelay)}),s.once("close",()=>{y.unsub(),this.activeSubscriptions.delete(y),o&&this.activeSubscriptionsByGroupId.delete(o)}),this.executeSubscriptionsWhenConnected(o,s,r),y}executedFilters(){const o=new Map;for(const[,s]of this.activeSubscriptions)o.set(s.req,s.map(r=>r.subscription));return o}},NDKRelay=class extends lib$1.EventEmitter{url;scores;connectivity;subs;publisher;authPolicy;authRequired=!1;trusted=!1;complaining=!1;debug;constructor(o,s){super(),this.url=o,this.scores=new Map,this.debug=debug3(`ndk:relay:${o}`),this.connectivity=new NDKRelayConnectivity(this),this.subs=new NDKRelaySubscriptions(this),this.publisher=new NDKRelayPublisher(this),this.authPolicy=s}get status(){return this.connectivity.status}get connectionStats(){return this.connectivity.connectionStats}connect(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.connectivity.connect()})()}disconnect(){3!==this.status&&this.connectivity.disconnect()}subscribe(o,s){this.subs.subscribe(o,s)}publish(o,s=2500){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.publisher.publish(o,s)})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.publisher.auth(o)})()}scoreSlowerEvent(o){}tagReference(o){const s=["r",this.url];return o&&s.push(o),s}referenceTags(){return[["r",this.url]]}activeSubscriptions(){return this.subs.executedFilters()}},PublishError=class extends Error{errors;constructor(o,s){super(o),this.errors=s}},NDKRelaySet=class qD{relays;debug;ndk;constructor(s,r){this.relays=s,this.ndk=r,this.debug=r.debug.extend("relayset")}addRelay(s){this.relays.add(s)}static fromRelayUrls(s,r){const i=new Set;for(const a of s){const c=r.pool.relays.get(a);if(c)i.add(c);else{const y=new NDKRelay(a);r.pool.useTemporaryRelay(y),i.add(y)}}return new qD(new Set(i),r)}publish(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new Set,c=new Map,y=s.isEphemeral(),w=Array.from(i.relays).map(C=>new Promise(T=>{C.publish(s,r).then(()=>{a.add(C),T()}).catch(S=>{y||(c.set(C,S),i.debug("error publishing to relay",{relay:C.url,err:S})),T()})}));if(yield Promise.all(w),0===a.size&&!y)throw new PublishError("No relay was able to receive the event",c);return a})()}size(){return this.relays.size}};function calculateRelaySetFromEvent(o,s){const r=new Set;return o.pool?.relays.forEach(i=>r.add(i)),new NDKRelaySet(r,o)}function getWriteRelaysFor(o,s){if(o.outboxTracker)return o.outboxTracker.data.get(s)?.writeRelays}function calculateRelaySetsFromFilter(o,s){const r=new Map,i=new Set;if(s.forEach(a=>{a.authors&&a.authors.forEach(c=>i.add(c))}),i.size>0){const a=new Map;for(const c of i){const y=getWriteRelaysFor(o,c);y&&y.size>0?(o.debug(`Adding ${y.size} relays for ${c}`),y.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})):o.explicitRelayUrls?.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})}for(const c of a.keys())r.set(c,[]);for(const c of s)if(c.authors)for(const[y,w]of a.entries()){const C=c.authors.filter(T=>w.includes(T));r.set(y,[...r.get(y),{...c,authors:C}])}else for(const y of a.keys())r.set(y,[...r.get(y),c])}else o.explicitRelayUrls?.forEach(a=>{r.set(a,s)});return r}function calculateRelaySetsFromFilters(o,s){return calculateRelaySetsFromFilter(o,s)}var DEFAULT_RELAYS=["wss://nos.lol","wss://relay.nostr.band","wss://relay.f7z.io","wss://relay.damus.io","wss://nostr.mom","wss://no.str.cr"],Zap=class extends lib$1.EventEmitter{ndk;zappedEvent;zappedUser;constructor(o){super(),this.ndk=o.ndk,this.zappedEvent=o.zappedEvent,this.zappedUser=o.zappedUser||this.ndk.getUser({hexpubkey:this.zappedEvent?.pubkey})}getZapEndpoint(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s,r,i,a;if(o.zappedUser&&(o.zappedUser.profile||(yield o.zappedUser.fetchProfile({groupable:!1})),s=(o.zappedUser.profile||{}).lud06,r=(o.zappedUser.profile||{}).lud16),r&&!r.startsWith("LNURL")){const[c,y]=r.split("@");i=`https://${y}/.well-known/lnurlp/${c}`}else if(s){const{words:c}=bech32.decode(s,1e3),y=bech32.fromWords(c);i=new TextDecoder("utf-8").decode(y)}if(!i)throw new Error("No zap endpoint found");try{const c=o.ndk.httpFetch||fetch,y=yield c(i);if(200!==y.status){const C=yield y.text();throw new Error(`Unable to fetch zap endpoint ${i}: ${C}`)}const w=yield y.json();return w?.allowsNostr&&(w?.nostrPubkey||w?.nostrPubKey)&&(a=w.callback),a}catch(c){throw new Error(`Unable to fetch zap endpoint ${i}: ${c}`)}})()}createZapRequest(o,s,r,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.generateZapRequest(o,s,r,i);if(!y)return null;const{event:w,zapEndpoint:C}=y;if(!w)throw new Error("No zap request event found");let T;yield w.sign(a);try{T=yield c.getInvoice(w,o,C)}catch(S){throw new Error("Failed to get invoice: "+S)}return T})()}getInvoice(o,s,r){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return(yield(yield fetch(`${r}?`+new URLSearchParams({amount:s.toString(),nostr:JSON.stringify(o.rawEvent())}))).json()).pr})()}generateZapRequest(o,s,r,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.getZapEndpoint();if(!y)throw new Error("No zap endpoint found");if(!c.zappedEvent&&!c.zappedUser)throw new Error("No zapped event or user found");const w=nip57_exports.makeZapRequest({profile:c.zappedUser.pubkey,event:null,amount:o,comment:s||"",relays:i??c.relays()});if(c.zappedEvent){const T=c.zappedEvent.referenceTags();w.tags.push(...T)}w.tags.push(["lnurl",y]);const C=new NDKEvent(c.ndk,w);return r&&(C.tags=C.tags.concat(r)),{event:C,zapEndpoint:y}})()}relays(){let o=[];return this.ndk?.pool?.relays&&(o=this.ndk.pool.urls()),o.length||(o=DEFAULT_RELAYS),o}};function mergeTags(o,s){const r=new Map,i=(a,c)=>a.every((y,w)=>y===c[w]);return o.concat(s).forEach(a=>{for(let[c,y]of r)if(i(y,a)||i(a,y))return void(a.length>=y.length&&r.set(c,a));r.set(a.join(","),a)}),Array.from(r.values())}function generateContentTags(o){return _generateContentTags.apply(this,arguments)}function _generateContentTags(){return _generateContentTags=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=[]){let r=[];const i=a=>{s.find(c=>c[0]===a[0]&&c[1]===a[1])||s.push(a)};return o=o.replace(/(@|nostr:)(npub|nprofile|note|nevent|naddr)[a-zA-Z0-9]+/g,a=>{try{const c=a.split(/(@|nostr:)/)[2],{type:y,data:w}=nip19_exports.decode(c);let C;switch(y){case"npub":C=["p",w];break;case"nprofile":C=["p",w.pubkey];break;case"note":r.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){i(["e",w,yield maybeGetEventRelayUrl(c),"mention"]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"nevent":r.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){let{id:A,relays:I,author:N}=w;I&&0!==I.length||(I=[yield maybeGetEventRelayUrl(c)]),i(["e",A,I[0],"mention"]),N&&i(["p",N]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"naddr":r.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){const A=[w.kind,w.pubkey,w.identifier].join(":");let I=w.relays??[];0===I.length&&(I=[yield maybeGetEventRelayUrl(c)]),i(["a",A,I[0],"mention"]),i(["p",w.pubkey]),S()});return function(S){return T.apply(this,arguments)}}()));break;default:return a}return C&&i(C),`nostr:${c}`}catch{return a}}),yield Promise.all(r),{content:o=o.replace(/#(\w+)/g,(a,c)=>{const y=["t",c];return s.find(w=>w[0]===y[0]&&w[1]===y[1])||s.push(y),a}),tags:s}}),_generateContentTags.apply(this,arguments)}function maybeGetEventRelayUrl(o){return _maybeGetEventRelayUrl.apply(this,arguments)}function _maybeGetEventRelayUrl(){return(_maybeGetEventRelayUrl=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){return""})).apply(this,arguments)}function isReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=1e4&&this.kind<2e4}function isEphemeral(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=2e4&&this.kind<3e4}function isParamReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=3e4&&this.kind<4e4}function encrypt(o,s){return _encrypt.apply(this,arguments)}function _encrypt(){return _encrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");if(s||(yield this.ndk.assertSigner(),s=this.ndk.signer),!o){const r=this.getMatchingTags("p");if(1!==r.length)throw new Error("No recipient could be determined and no explicit recipient was provided");o=this.ndk.getUser({hexpubkey:r[0][1]})}this.content=yield s?.encrypt(o,this.content)}),_encrypt.apply(this,arguments)}function decrypt(o,s){return _decrypt.apply(this,arguments)}function _decrypt(){return _decrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");s||(yield this.ndk.assertSigner(),s=this.ndk.signer),o||(o=this.author),this.content=yield s?.decrypt(o,this.content)}),_decrypt.apply(this,arguments)}function encode(){return this.isParamReplaceable()?nip19_exports.naddrEncode({kind:this.kind,pubkey:this.pubkey,identifier:this.replaceableDTag(),relays:this.relay?[this.relay.url]:[]}):this.relay?nip19_exports.neventEncode({id:this.tagId(),relays:[this.relay.url],author:this.pubkey}):nip19_exports.noteEncode(this.tagId())}function repost(){return _repost.apply(this,arguments)}function _repost(){return _repost=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o=!0,s){if(!s&&o){if(!this.ndk)throw new Error("No NDK instance found");this.ndk.assertSigner(),s=this.ndk.signer}const r=new NDKEvent(this.ndk,{kind:getKind(this),content:""});return r.tag(this),16===r.kind&&r.tags.push(["k",`${this.kind}`]),s&&(yield r.sign(s)),o&&(yield r.publish()),r}),_repost.apply(this,arguments)}function getKind(o){return 1===o.kind?6:16}var NDKEvent=class H_ extends lib$1.EventEmitter{ndk;created_at;content="";tags=[];kind;id="";sig;pubkey="";_author=void 0;relay;constructor(s,r){super(),this.ndk=s,this.created_at=r?.created_at,this.content=r?.content||"",this.tags=r?.tags||[],this.id=r?.id||"",this.sig=r?.sig,this.pubkey=r?.pubkey||"",this.kind=r?.kind}rawEvent(){return{created_at:this.created_at,content:this.content,tags:this.tags,kind:this.kind,pubkey:this.pubkey,id:this.id,sig:this.sig}}set author(s){this.pubkey=s.hexpubkey,this._author=void 0}get author(){if(this._author)return this._author;if(!this.ndk)throw new Error("No NDK instance found");const s=this.ndk.getUser({hexpubkey:this.pubkey});return this._author=s,s}tag(s,r){let i=[];if(s instanceof NDKUser){const a=["p",s.pubkey];r&&a.push(r),i.push(a)}else if(s instanceof H_){const a=s;i=a.referenceTags(r,a?.pubkey===this.pubkey);for(const y of a.getMatchingTags("p"))y[1]!==this.pubkey&&(this.tags.find(w=>"p"===w[0]&&w[1]===y[1])||this.tags.push(["p",y[1]]))}else i=[s];this.tags=mergeTags(this.tags,i)}toNostrEvent(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s&&""===r.pubkey){const y=yield r.ndk?.signer?.user();r.pubkey=y?.hexpubkey||""}r.created_at||(r.created_at=Math.floor(Date.now()/1e3));const i=r.rawEvent(),{content:a,tags:c}=yield r.generateTags();i.content=a||"",i.tags=c;try{r.id=getEventHash(i)}catch{}return r.id&&(i.id=r.id),r.sig&&(i.sig=r.sig),i})()}isReplaceable=isReplaceable.bind(this);isEphemeral=isEphemeral.bind(this);isParamReplaceable=isParamReplaceable.bind(this);encode=encode.bind(this);encrypt=encrypt.bind(this);decrypt=decrypt.bind(this);getMatchingTags(s){return this.tags.filter(r=>r[0]===s)}tagValue(s){const r=this.getMatchingTags(s);if(0!==r.length)return r[0][1]}get alt(){return this.tagValue("alt")}set alt(s){this.removeTag("alt"),s&&this.tags.push(["alt",s])}removeTag(s){this.tags=this.tags.filter(r=>r[0]!==s)}sign(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s?r.author=yield s.user():(r.ndk?.assertSigner(),s=r.ndk.signer),yield r.generateTags(),r.isReplaceable()&&(r.created_at=Math.floor(Date.now()/1e3));const i=yield r.toNostrEvent();return r.sig=yield s.sign(i),r.sig})()}publish(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(i.sig||(yield i.sign()),!i.ndk)throw new Error("NDKEvent must be associated with an NDK instance to publish");return s||(s=i.ndk.devWriteRelaySet||calculateRelaySetFromEvent(i.ndk)),s.publish(i,r)})()}generateTags(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let r=[];const i=yield generateContentTags(s.content,s.tags),a=i.content;if(r=i.tags,s.kind&&s.isParamReplaceable()&&!s.getMatchingTags("d")[0]){const c=s.tagValue("title");let y=[...Array(c?6:16)].map(()=>Math.random().toString(36)[2]).join("");c&&c.length>0&&(y=c.replace(/[^a-z0-9]+/gi,"-").replace(/^-|-$/g,"")+"-"+y),r.push(["d",y])}if((s.ndk?.clientName||s.ndk?.clientNip89)&&!s.tagValue("client")){const c=["client",s.ndk.clientName??""];s.ndk.clientNip89&&c.push(s.ndk.clientNip89),r.push(c)}return{content:a||"",tags:r}})()}muted(){const s=this.ndk?.mutedIds.get(this.pubkey);if(s&&"p"===s)return"author";const r=this.tagReference(),i=this.ndk?.mutedIds.get(r[1]);return i&&i===r[0]?"event":null}replaceableDTag(){if(this.kind&&this.kind>=3e4&&this.kind<=4e4){const s=this.getMatchingTags("d")[0];return s?s[1]:""}throw new Error("Event is not a parameterized replaceable event")}deduplicationKey(){return 0===this.kind||3===this.kind||this.kind&&this.kind>=1e4&&this.kind<2e4?`${this.kind}:${this.pubkey}`:this.tagId()}tagId(){return this.isParamReplaceable()?this.tagAddress():this.id}tagAddress(){if(!this.isParamReplaceable())throw new Error("This must only be called on replaceable events");const s=this.replaceableDTag();return`${this.kind}:${this.pubkey}:${s}`}tagReference(s){let r;return r=this.isParamReplaceable()?["a",this.tagAddress()]:["e",this.tagId()],r.push(this.relay?this.relay.url:""),s&&r.push(s),r}referenceTags(s,r){let i=[];return i=this.isParamReplaceable()?[["a",this.tagAddress()],["e",this.id]]:[["e",this.id]],this.relay?.url?i=i.map(a=>(a.push(this.relay?.url),a)):s&&(i=i.map(a=>(a.push(""),a))),s&&i.forEach(a=>a.push(s)),r||i.push(...this.author.referenceTags()),i}filter(){return this.isParamReplaceable()?{"#a":[this.tagId()]}:{"#e":[this.tagId()]}}zap(s,r,i,a,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!y.ndk)throw new Error("No NDK instance found");c||y.ndk.assertSigner();const w=new Zap({ndk:y.ndk,zappedEvent:y,zappedUser:a}),C=Array.from(y.ndk.pool.relays.keys());return yield w.createZapRequest(s,r,i,C,c)})()}delete(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("No NDK instance found");r.ndk.assertSigner();const i=new H_(r.ndk,{kind:5,content:s||""});return i.tag(r),yield i.publish(),i})()}repost=repost.bind(this);react(s,r=!0){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("No NDK instance found");i.ndk.assertSigner();const a=new H_(i.ndk,{kind:7,content:s});return a.tag(i),r?yield a.publish():yield a.sign(),a})()}get isValid(){return!0}},READ_MARKER="read",WRITE_MARKER="write",NDKRelayList=class JD extends NDKEvent{constructor(s,r){super(s,r),this.kind??=10002}static from(s){return new JD(s.ndk,s.rawEvent())}get readRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===READ_MARKER).map(s=>s[1])}set readRelayUrls(s){for(const r of s)this.tags.push(["r",r,READ_MARKER])}get writeRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===WRITE_MARKER).map(s=>s[1])}set writeRelayUrls(s){for(const r of s)this.tags.push(["r",r,WRITE_MARKER])}get bothRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]).map(s=>s[1])}set bothRelayUrls(s){for(const r of s)this.tags.push(["r",r])}get relays(){return this.getMatchingTags("r").map(s=>s[1])}},NDKSubscriptionCacheUsage=(o=>(o.ONLY_CACHE="ONLY_CACHE",o.CACHE_FIRST="CACHE_FIRST",o.PARALLEL="PARALLEL",o.ONLY_RELAY="ONLY_RELAY",o))(NDKSubscriptionCacheUsage||{}),defaultOpts={closeOnEose:!1,cacheUsage:"CACHE_FIRST",groupable:!0,groupableDelay:100,groupableDelayType:"at-most"},NDKSubscription=class extends lib$1.EventEmitter{subId;filters;opts;pool;skipVerification=!1;skipValidation=!1;relayFilters;relaySet;ndk;debug;eoseDebug;eventFirstSeen=new Map;eosesSeen=new Set;eventsPerRelay=new Map;lastEventReceivedAt;internalId;constructor(o,s,r,i,a){if(super(),this.ndk=o,this.pool=r?.pool||o.pool,this.opts={...defaultOpts,...r||{}},this.filters=s instanceof Array?s:[s],this.subId=a||r?.subId,this.internalId=Math.random().toString(36).substring(7),this.relaySet=i,this.debug=o.debug.extend(`subscription[${r?.subId??this.internalId}]`),this.eoseDebug=this.debug.extend("eose"),this.skipVerification=r?.skipVerification||!1,this.skipValidation=r?.skipValidation||!1,this.opts.closeOnEose||this.debug("Creating a permanent subscription",this.opts,JSON.stringify(this.filters)),"ONLY_CACHE"===this.opts.cacheUsage&&!this.opts.closeOnEose)throw new Error("Cannot use cache-only options with a persistent subscription")}get filter(){return this.filters[0]}isGroupable(){return this.opts?.groupable||!1}shouldQueryCache(){return"ONLY_RELAY"!==this.opts?.cacheUsage}shouldQueryRelays(){return"ONLY_CACHE"!==this.opts?.cacheUsage}shouldWaitForCache(){return this.opts.closeOnEose&&!!this.ndk.cacheAdapter?.locking&&"PARALLEL"!==this.opts.cacheUsage}start(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s;o.shouldQueryCache()&&(s=o.startWithCache(),o.shouldWaitForCache()&&(yield s,queryFullyFilled(o)))?o.emit("eose",o):o.shouldQueryRelays()?o.startWithRelays():o.emit("eose",o)})()}stop(){this.emit("close",this),this.removeAllListeners()}hasAuthorsFilter(){return this.filters.some(o=>o.authors?.length)}startWithCache(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.ndk.cacheAdapter?.query){const s=o.ndk.cacheAdapter.query(o);o.ndk.cacheAdapter.locking&&(yield s)}})()}startWithRelays(){if(this.relaySet){this.relayFilters=new Map;for(const o of this.relaySet.relays)this.relayFilters.set(o.url,this.filters)}else this.relayFilters=calculateRelaySetsFromFilters(this.ndk,this.filters);if(this.relayFilters&&0!==this.relayFilters.size)for(const[o,s]of this.relayFilters)this.pool.getRelay(o).subscribe(this,s);else this.debug("No relays to subscribe to",this.ndk.explicitRelayUrls)}eventReceived(o,s,r=!1){if(s&&(o.relay=s),s||(s=o.relay),this.skipValidation||o.isValid){if(!r&&s){let i=this.eventsPerRelay.get(s);if(i||(i=new Set,this.eventsPerRelay.set(s,i)),i.add(o.id),this.eventFirstSeen.has(o.id)){const a=Date.now()-(this.eventFirstSeen.get(o.id)||0);return s.scoreSlowerEvent(a),void this.emit("event:dup",o,s,a,this)}this.ndk.cacheAdapter&&this.ndk.cacheAdapter.setEvent(o,this.filters,s),this.eventFirstSeen.set(o.id,Date.now())}else this.eventFirstSeen.set(o.id,0);o.ndk||(o.ndk=this.ndk),this.emit("event",o,s,this),this.lastEventReceivedAt=Date.now()}else this.debug("Event failed validation",o)}eoseTimeout;eoseReceived(o){this.eosesSeen.add(o),this.eoseDebug(`received from ${o.url}`);let s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0;const r=this.eosesSeen.size===this.relayFilters?.size;if(queryFullyFilled(this))this.emit("eose"),this.eoseDebug("Query fully filled"),this.opts?.closeOnEose&&this.stop();else if(r)this.emit("eose"),this.eoseDebug("All EOSEs seen"),this.opts?.closeOnEose&&this.stop();else{let i=1e3;const a=this.eosesSeen.size/this.relayFilters.size;if(this.eosesSeen.size>=2&&a>=.5){i*=1-a,this.eoseTimeout&&clearTimeout(this.eoseTimeout);const c=()=>{s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0,void 0!==s&&s<20?this.eoseTimeout=setTimeout(c,i):(this.emit("eose"),this.opts?.closeOnEose&&this.stop())};this.eoseTimeout=setTimeout(c,i)}}}};function follows(o,s){return _follows.apply(this,arguments)}function _follows(){return _follows=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r=3){if(!this.ndk)throw new Error("NDK not set");const i=Array.from(yield this.ndk.fetchEvents({kinds:[r],authors:[this.pubkey]},o||{groupable:!1}))[0];if(i){const a=new Set;return i.tags.forEach(c=>{if("p"===c[0])try{a.add(c[1]),s&&this.ndk?.outboxTracker?.trackUsers([c[1]])}catch{}}),[...a].reduce((c,y)=>{const w=new NDKUser({pubkey:y});return w.ndk=this.ndk,c.add(w),c},new Set)}return new Set}),_follows.apply(this,arguments)}function profileFromEvent(o){const s={};let r;try{r=JSON.parse(o.content)}catch(i){throw new Error(`Failed to parse profile event: ${i}`)}return Object.keys(r).forEach(i=>{switch(i){case"name":s.name=r.name;break;case"display_name":s.displayName=r.display_name;break;case"image":case"picture":s.image=r.image||r.picture;break;case"banner":s.banner=r.banner;break;case"bio":s.bio=r.bio;break;case"nip05":s.nip05=r.nip05;break;case"lud06":s.lud06=r.lud06;break;case"lud16":s.lud16=r.lud16;break;case"about":s.about=r.about;break;case"zapService":s.zapService=r.zapService;break;case"website":s.website=r.website;break;default:s[i]=r[i]}}),s}function serializeProfile(o){const s={};for(const[r,i]of Object.entries(o))switch(r){case"username":case"name":s.name=i;break;case"displayName":s.display_name=i;break;case"image":case"picture":s.picture=i;break;case"bio":case"about":s.about=i;break;default:s[r]=i}return JSON.stringify(s)}var NDKList=class e2 extends NDKEvent{_encryptedTags;encryptedTagsLength;constructor(s,r){super(s,r),this.kind??=30001}static from(s){return new e2(s.ndk,s.rawEvent())}get title(){const s=this.tagValue("title")||this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set title(s){if(this.removeTag("title"),this.removeTag("name"),!s)throw new Error("Title cannot be empty");this.tags.push(["title",s])}get name(){const s=this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set name(s){if(this.removeTag("name"),!s)throw new Error("Name cannot be empty");this.tags.push(["title",s])}get description(){return this.tagValue("description")}set description(s){s?this.tags.push(["description",s]):this.removeTag("description")}isEncryptedTagsCacheValid(){return!(!this._encryptedTags||this.encryptedTagsLength!==this.content.length)}encryptedTags(s=!0){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s&&r.isEncryptedTagsCacheValid())return r._encryptedTags;if(!r.ndk)throw new Error("NDK instance not set");if(!r.ndk.signer)throw new Error("NDK signer not set");const i=yield r.ndk.signer.user();try{if(r.content.length>0)try{const a=yield r.ndk.signer.decrypt(i,r.content),c=JSON.parse(a);return c&&c[0]?(r.encryptedTagsLength=r.content.length,r._encryptedTags=c):(r.encryptedTagsLength=r.content.length,r._encryptedTags=[])}catch{console.log(`error decrypting ${r.content}`)}}catch{}return[]})()}validateTag(s){return!0}get items(){return this.tags.filter(s=>!["d","L","l","title","name","description","summary","image","thumb","alt","expiration","subject"].includes(s[0]))}addItem(s,r=void 0,i=!1){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("NDK instance not set");if(!a.ndk.signer)throw new Error("NDK signer not set");let c;if(s instanceof NDKEvent)c=s.referenceTags();else if(s instanceof NDKUser)c=s.referenceTags();else if(s instanceof NDKRelay)c=s.referenceTags();else{if(!Array.isArray(s))throw new Error("Invalid object type");c=[s]}if(r&&c[0].push(r),i){const y=yield a.ndk.signer.user(),w=yield a.encryptedTags();w.push(...c),a._encryptedTags=w,a.encryptedTagsLength=a.content.length,a.content=JSON.stringify(w),yield a.encrypt(y)}else a.tags.push(...c);a.created_at=Math.floor(Date.now()/1e3),a.emit("change")})()}removeItem(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("NDK instance not set");if(!i.ndk.signer)throw new Error("NDK signer not set");if(r){const a=yield i.ndk.signer.user(),c=yield i.encryptedTags();c.splice(s,1),i._encryptedTags=c,i.encryptedTagsLength=i.content.length,i.content=JSON.stringify(c),yield i.encrypt(a)}else i.tags.splice(s,1);return i.created_at=Math.floor(Date.now()/1e3),i.emit("change"),i})()}},lists_default=NDKList;function pin(o,s,r){return _pin.apply(this,arguments)}function _pin(){return _pin=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){if(!this.ndk)throw new Error("No NDK instance found");if(this.ndk.assertSigner(),!s){const i=yield this.ndk.fetchEvents({kinds:[10001],authors:[this.pubkey]},{cacheUsage:"ONLY_RELAY"});s=i.size>0?lists_default.from(Array.from(i)[0]):new NDKEvent(this.ndk,{kind:10001})}return s.tag(o),r&&(yield s.publish()),s}),_pin.apply(this,arguments)}var NIP05_REGEX=/^(?:([\w.+-]+)@)?([\w.-]+)$/;function getNip05For(o){return _getNip05For.apply(this,arguments)}function _getNip05For(){return _getNip05For=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=fetch,r={}){const i=o.match(NIP05_REGEX);if(!i)return null;const[a,c="_",y]=i;try{const w=yield s(`https://${y}/.well-known/nostr.json?name=${c}`,r),{names:C,relays:T,nip46:S}=parseNIP05Result(yield w.json()),A=C[c];return A?{pubkey:A,relays:T?.[A],nip46:S?.[A]}:null}catch{return null}}),_getNip05For.apply(this,arguments)}function parseNIP05Result(o){const s={names:{}};for(const[r,i]of Object.entries(o.names))"string"==typeof r&&"string"==typeof i&&(s.names[r]=i);if(o.relays){s.relays={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.relays[r]=i.filter(a=>"string"==typeof a))}if(o.nip46){s.nip46={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.nip46[r]=i.filter(a=>"string"==typeof a))}return s}var NDKUser=class gw{ndk;profile;_npub;_pubkey;relayUrls=[];nip46Urls=[];constructor(s){s.npub&&(this._npub=s.npub),s.hexpubkey&&(this._pubkey=s.hexpubkey),s.pubkey&&(this._pubkey=s.pubkey),s.relayUrls&&(this.relayUrls=s.relayUrls),s.nip46Urls&&(this.nip46Urls=s.nip46Urls)}get npub(){if(!this._npub){if(!this._pubkey)throw new Error("hexpubkey not set");this._npub=nip19_exports.npubEncode(this.pubkey)}return this._npub}set npub(s){this._npub=s}get hexpubkey(){return this.pubkey}set hexpubkey(s){this._pubkey=s}get pubkey(){if(!this._pubkey){if(!this._npub)throw new Error("npub not set");this._pubkey=nip19_exports.decode(this.npub).data}return this._pubkey}set pubkey(s){this._pubkey=s}static fromNip05(s,r,i=!1){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r?.cacheAdapter&&r.cacheAdapter.loadNip05){const y=yield r.cacheAdapter.loadNip05(s);if(y){const w=new gw({pubkey:y.pubkey,relayUrls:y.relays,nip46Urls:y.nip46});return w.ndk=r,w}}let a={};i&&(a.cache="no-cache");const c=yield getNip05For(s,r?.httpFetch,a);if(c&&r?.cacheAdapter&&r.cacheAdapter.saveNip05&&r?.cacheAdapter.saveNip05(s,c),c){const y=new gw({pubkey:c.pubkey,relayUrls:c.relays,nip46Urls:c.nip46});return y.ndk=r,y}})()}fetchProfile(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("NDK not set");r.profile||(r.profile={});let i=null;if(r.ndk.cacheAdapter&&r.ndk.cacheAdapter.fetchProfile&&"ONLY_RELAY"!==s?.cacheUsage){const c=yield r.ndk.cacheAdapter.fetchProfile(r.pubkey);if(c)return r.profile=c,c}!s&&r.ndk.cacheAdapter&&r.ndk.cacheAdapter.locking&&(i=yield r.ndk.fetchEvents({kinds:[0],authors:[r.pubkey]},{cacheUsage:"ONLY_CACHE",closeOnEose:!0,groupable:!1}),s={cacheUsage:"ONLY_RELAY",closeOnEose:!0,groupable:!0,groupableDelay:250}),i&&0!==i.size||(i=yield r.ndk.fetchEvents({kinds:[0],authors:[r.pubkey]},s));const a=Array.from(i).sort((c,y)=>c.created_at-y.created_at);return 0===a.length?null:(r.profile=profileFromEvent(a[0]),r.profile&&r.ndk.cacheAdapter&&r.ndk.cacheAdapter.saveProfile&&r.ndk.cacheAdapter.saveProfile(r.pubkey,r.profile),r.profile)})()}follows=follows.bind(this);pin=pin.bind(this);relayList(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const r=s.ndk.outboxPool||s.ndk.pool,i=new Set;for(const y of r.relays.values())i.add(y);const a=new NDKRelaySet(i,s.ndk),c=yield s.ndk.fetchEvent({kinds:[10002],authors:[s.pubkey]},{closeOnEose:!0,pool:r,groupable:!0,subId:`relay-list-${s.pubkey.slice(0,6)}`},a);return c?NDKRelayList.from(c):yield s.relayListFromKind3()})()}relayListFromKind3(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const r=yield s.ndk.fetchEvent({kinds:[3],authors:[s.pubkey]});if(r)try{const i=JSON.parse(r.content),a=new NDKRelayList(s.ndk),c=new Set,y=new Set;for(const[w,C]of Object.entries(i))if(C){const T=C;T.write&&y.add(w),T.read&&c.add(w)}else c.add(w),y.add(w);return a.readRelayUrls=Array.from(c),a.writeRelayUrls=Array.from(y),a}catch{}})()}tagReference(){return["p",this.pubkey]}referenceTags(s){const r=[["p",this.pubkey]];return s&&r[0].push("",s),r}publish(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("No NDK instance found");if(!s.profile)throw new Error("No profile available");s.ndk.assertSigner(),yield new NDKEvent(s.ndk,{kind:0,content:serializeProfile(s.profile)}).publish()})()}follow(s,r,i=3){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("No NDK instance found");if(a.ndk.assertSigner(),r||(r=yield a.follows(void 0,void 0,i)),r.has(s))return!1;r.add(s);const c=new NDKEvent(a.ndk,{kind:i});for(const y of r)c.tag(y);return yield c.publish(),!0})()}validateNip05(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("No NDK instance found");const i=yield getNip05For(s);return null===i?null:i.pubkey===r.pubkey})()}zap(s,r,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!c.ndk)throw new Error("No NDK instance found");a||c.ndk.assertSigner();const y=new Zap({ndk:c.ndk,zappedUser:c}),w=Array.from(c.ndk.pool.relays.keys());return yield y.createZapRequest(s,r,i,w,a)})()}},NDKPrivateKeySigner=class t2{_user;privateKey;constructor(s){s&&(this.privateKey=s,this._user=new NDKUser({hexpubkey:getPublicKey(this.privateKey)}))}static generate(){const s=generatePrivateKey();return new t2(s)}blockUntilReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s._user)throw new Error("NDKUser not initialized");return s._user})()}user(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield s.blockUntilReady(),s._user})()}sign(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.privateKey)throw Error("Attempted to sign without a private key");return getSignature(s,r.privateKey)})()}encrypt(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to encrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.encrypt(i.privateKey,a,r)})()}decrypt(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to decrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.decrypt(i.privateKey,a,r)})()}},NDKNostrRpc=class extends lib$1.EventEmitter{ndk;signer;debug;constructor(o,s,r){super(),this.ndk=o,this.signer=s,this.debug=r.extend("rpc")}subscribe(o){var s=this;const r=this.ndk.subscribe(o,{closeOnEose:!1,groupable:!1});return r.on("event",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){try{const c=yield s.parseEvent(a);s.emit(c.method?"request":`response-${c.id}`,c)}catch(c){s.debug("error parsing event",c,a.rawEvent())}});return function(a){return i.apply(this,arguments)}}()),new Promise((i,a)=>{r.on("eose",()=>i(r))})}parseEvent(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=s.ndk.getUser({hexpubkey:o.pubkey});r.ndk=s.ndk;const i=yield s.signer.decrypt(r,o.content),a=JSON.parse(i),{id:c,method:y,params:w,result:C,error:T}=a;return y?{id:c,pubkey:o.pubkey,method:y,params:w,event:o}:{id:c,result:C,error:T,event:o}})()}sendResponse(o,s,r,i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y={id:o,result:r};a&&(y.error=a);const w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:s}),T=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(y),tags:[["p",s]],pubkey:w.hexpubkey});T.content=yield c.signer.encrypt(C,T.content),yield T.sign(c.signer),yield T.publish()})()}sendRequest(o,s,r=[],i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=Math.random().toString(36).substring(7),w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:o}),T={id:y,method:s,params:r},S=new Promise(I=>{const N=G=>{"auth_url"===G.result?(c.once(`response-${y}`,N),c.emit("authUrl",G.error)):a&&a(G)};c.once(`response-${y}`,N)}),A=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(T),tags:[["p",o]],pubkey:w.pubkey});return A.content=yield c.signer.encrypt(C,A.content),yield A.sign(c.signer),c.debug(`sending ${s} request to`,o),yield A.publish(),S})()}},NDKNip46Signer=class extends lib$1.EventEmitter{ndk;remoteUser;remotePubkey;token;localSigner;nip05;rpc;debug;relayUrls=[];constructor(o,s,r){let i,a;if(super(),s.includes("#")){const c=s.split("#");i=new NDKUser({npub:c[0]}).pubkey,a=c[1]}else s.startsWith("npub")?i=new NDKUser({npub:s}).pubkey:s.match(/\./)?this.nip05=s:i=s;this.ndk=o,i&&(this.remotePubkey=i),this.token=a,this.debug=o.debug.extend("nip46:signer"),this.remoteUser=new NDKUser({pubkey:i}),this.localSigner=r||NDKPrivateKeySigner.generate(),this.rpc=new NDKNostrRpc(o,this.localSigner,this.debug),this.rpc.on("authUrl",(...c)=>{this.emit("authUrl",...c)}),this.localSigner.user().then(c=>{this.rpc.subscribe({kinds:[24133,24134],"#p":[c.pubkey]})})}user(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.remoteUser})()}blockUntilReady(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.localSigner.user(),r=o.ndk.getUser({pubkey:o.remotePubkey});if(o.nip05&&!o.remotePubkey&&NDKUser.fromNip05(o.nip05).then(i=>{i&&(o.remoteUser=i,o.remotePubkey=i.pubkey,o.relayUrls=i.nip46Urls)}),!o.remotePubkey)throw new Error("Remote pubkey not set");return new Promise((i,a)=>{setTimeout(()=>{const c=[s.pubkey];o.token&&c.push(o.token),o.rpc.sendRequest(o.remotePubkey,"connect",c,24133,y=>{"ack"===y.result?i(r):a(y.error)})},100)})})()}encrypt(o,s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.debug("asking for encryption"),new Promise((i,a)=>{r.rpc.sendRequest(r.remotePubkey,"nip04_encrypt",[o.pubkey,s],24133,c=>{c.error?a(c.error):i(c.result)})})})()}decrypt(o,s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.debug("asking for decryption"),new Promise((i,a)=>{r.rpc.sendRequest(r.remotePubkey,"nip04_decrypt",[o.pubkey,s],24133,c=>{if(c.error)a(c.error);else{const y=JSON.parse(c.result);i(y[0])}})})})()}sign(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.debug("asking for a signature"),new Promise((r,i)=>{s.rpc.sendRequest(s.remotePubkey,"sign_event",[JSON.stringify(o)],24133,a=>{if(s.debug("got a response",a),a.error)i(a.error);else{const c=JSON.parse(a.result);r(c.sig)}})})})()}createAccount(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.debug("asking to create an account");const a=[];return o&&a.push(o),s&&a.push(s),r&&a.push(r),new Promise((c,y)=>{i.rpc.sendRequest(i.remotePubkey,"create_account",a,24134,w=>{i.debug("got a response",w),w.error?y(w.error):c(w.result)})})})()}};function dedup(o,s){return o.created_at>s.created_at?o:s}var OutboxItem=class{type;relayUrlScores;readRelays;writeRelays;constructor(o){this.type=o,this.relayUrlScores=new Map,this.readRelays=new Set,this.writeRelays=new Set}},OutboxTracker=class extends lib$1.EventEmitter{data;ndk;debug;constructor(o){super(),this.ndk=o,this.debug=o.debug.extend("outbox-tracker"),this.data=new dist.LRUCache({maxSize:1e5,entryExpirationTimeInMS:5e3})}trackUsers(o){for(const s of o){const r=getKeyFromItem(s);if(this.data.has(r))continue;const i=this.track(s,"user"),a=s instanceof NDKUser?s:new NDKUser({hexpubkey:s});a.ndk=this.ndk,a.relayList().then(c=>{if(c){i.readRelays=new Set(c.readRelayUrls),i.writeRelays=new Set(c.writeRelayUrls);for(const y of i.readRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from read relays`),i.readRelays.delete(y));for(const y of i.writeRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from write relays`),i.writeRelays.delete(y));this.data.set(r,i),this.debug(`Adding ${i.readRelays.size} read relays and ${i.writeRelays.size} write relays for ${a.hexpubkey}`)}})}}track(o,s){const r=getKeyFromItem(o);s??=getTypeFromItem(o);let i=this.data.get(r);return i||(i=new OutboxItem(s)),this.data.set(r,i),i}};function getKeyFromItem(o){return o instanceof NDKUser?o.hexpubkey:o}function getTypeFromItem(o){return o instanceof NDKUser?"user":"kind"}var NDKPool=class extends lib$1.EventEmitter{relays=new Map;blacklistRelayUrls;debug;temporaryRelayTimers=new Map;flappingRelays=new Set;backoffTimes=new Map;constructor(o=[],s=[],r,i){super(),this.debug=i??r.debug.extend("pool");for(const a of o){const c=new NDKRelay(a);this.addRelay(c,!1)}this.blacklistRelayUrls=new Set(s)}useTemporaryRelay(o,s=6e5){const r=this.relays.has(o.url);r||this.addRelay(o);const i=this.temporaryRelayTimers.get(o.url);if(i&&clearTimeout(i),!r||i){const a=setTimeout(()=>{this.removeRelay(o.url)},s);this.temporaryRelayTimers.set(o.url,a)}}addRelay(o,s=!0){var r=this;const i=o.url;this.blacklistRelayUrls?.has(i)?this.debug(`Relay ${i} is blacklisted`):(o.on("notice",function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c,y){return r.emit("notice",c,y)});return function(c,y){return a.apply(this,arguments)}}()),o.on("connect",()=>this.handleRelayConnect(i)),o.on("ready",()=>this.handleRelayReady(o)),o.on("disconnect",(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.emit("relay:disconnect",o)})),o.on("flapping",()=>this.handleFlapping(o)),o.on("auth",function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){return r.emit("relay:auth",o,c)});return function(c){return a.apply(this,arguments)}}()),this.relays.set(i,o),s&&o.connect().catch(a=>{this.debug(`Failed to connect to relay ${i}`,a)}))}removeRelay(o){const s=this.relays.get(o);if(s)return s.disconnect(),this.relays.delete(o),this.emit("relay:disconnect",s),!0;const r=this.temporaryRelayTimers.get(o);return r&&(clearTimeout(r),this.temporaryRelayTimers.delete(o)),!1}getRelay(o,s=!0){let r=this.relays.get(o);return r||(r=new NDKRelay(o),this.addRelay(r,s)),r}handleRelayConnect(o){this.debug(`Relay ${o} connected`),this.emit("relay:connect",this.relays.get(o)),this.stats().connected===this.relays.size&&this.emit("connect")}handleRelayReady(o){this.debug(`Relay ${o.url} ready`),this.emit("relay:ready",o)}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=[];s.debug(`Connecting to ${s.relays.size} relays${o?`, timeout ${o}...`:""}`);for(const i of s.relays.values())if(o){const a=new Promise((c,y)=>{setTimeout(()=>y(`Timed out after ${o}ms`),o)});r.push(Promise.race([i.connect(),a]).catch(c=>{s.debug(`Failed to connect to relay ${i.url}: ${c??"No reason specified"}`)}))}else r.push(i.connect());o&&setTimeout(()=>{const i=s.stats().connected===s.relays.size,a=s.stats().connected>0;!i&&a&&s.emit("connect")},o),yield Promise.all(r)})()}checkOnFlappingRelays(){if(this.flappingRelays.size/this.relays.size>=.8)for(const o of this.flappingRelays)this.backoffTimes.set(o,0)}handleFlapping(o){this.debug(`Relay ${o.url} is flapping`);let s=this.backoffTimes.get(o.url)||5e3;s*=2,this.backoffTimes.set(o.url,s),this.debug(`Backoff time for ${o.url} is ${s}ms`),setTimeout(()=>{this.debug(`Attempting to reconnect to ${o.url}`),o.connect(),this.checkOnFlappingRelays()},s),o.disconnect(),this.emit("flapping",o)}size(){return this.relays.size}stats(){const o={total:0,connected:0,disconnected:0,connecting:0};for(const s of this.relays.values())o.total++,1===s.status?o.connected++:3===s.status?o.disconnected++:0===s.status&&o.connecting++;return o}connectedRelays(){return Array.from(this.relays.values()).filter(o=>1===o.status)}urls(){return Array.from(this.relays.keys())}};function correctRelaySet(o,s){const r=s.connectedRelays();if(!Array.from(o.relays).some(i=>r.map(a=>a.url).includes(i.url)))for(const i of r)o.addRelay(i);if(0===r.length)for(const i of s.relays.values())o.addRelay(i);return o}var SPEC_PATH="/.well-known/nostr/nip96.json",Nip96=class{ndk;spec;url;nip98Required=!1;constructor(o,s){this.url=`https://${o}${SPEC_PATH}`,this.ndk=s}prepareUpload(o,s="POST"){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r.validateHttpFetch(),r.spec||(yield r.fetchSpec()),!r.spec)throw new Error("Failed to fetch NIP96 spec");let i={};return r.nip98Required&&(i={Authorization:yield r.generateNip98Header(r.spec.api_url,s,o)}),{url:r.spec.api_url,headers:i}})()}xhrUpload(o,s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i="POST",{url:a,headers:c}=yield r.prepareUpload(s,i);o.open(i,a,!0),c.Authorization&&o.setRequestHeader("Authorization",c.Authorization);const y=new FormData;return y.append("file",s),new Promise((w,C)=>{o.onload=function(){o.status>=200&&o.status<300?w(JSON.parse(o.responseText)):C(new Error(o.statusText))},o.onerror=function(){C(new Error("Network Error"))},o.send(y)})})()}upload(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r="POST",{url:i,headers:a}=yield s.prepareUpload(o,r),c=new FormData;c.append("file",o);const y=yield s.ndk.httpFetch(s.spec.api_url,{method:r,headers:a,body:c});if(200!==y.status)throw new Error(`Failed to upload file to ${i}`);const w=yield y.json();if("success"!==w.status)throw new Error(w.message);return w})()}validateHttpFetch(){if(!this.ndk)throw new Error("NDK is required to fetch NIP96 spec");if(!this.ndk.httpFetch)throw new Error("NDK must have an httpFetch method to fetch NIP96 spec")}fetchSpec(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.validateHttpFetch();const s=yield o.ndk.httpFetch(o.url);if(200!==s.status)throw new Error(`Failed to fetch NIP96 spec from ${o.url}`);const r=yield s.json();if(!r)throw new Error(`Failed to parse NIP96 spec from ${o.url}`);o.spec=r,o.nip98Required=o.spec.plans.free.is_nip98_required})()}generateNip98Header(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i.ndk,{kind:27235,tags:[["u",o],["method",s]]});if(["POST","PUT","PATCH"].includes(s)){const c=yield i.calculateSha256(r);a.tags.push(["payload",c])}return yield a.sign(),`Nostr ${btoa(JSON.stringify(a.rawEvent()))}`})()}calculateSha256(o){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.arrayBuffer(),r=yield crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")})()}},DEFAULT_OUTBOX_RELAYS=["wss://purplepag.es","wss://relay.snort.social"],DEFAULT_BLACKLISTED_RELAYS=["wss://brb.io"],NDK=class extends lib$1.EventEmitter{explicitRelayUrls;pool;outboxPool;_signer;_activeUser;cacheAdapter;debug;devWriteRelaySet;outboxTracker;mutedIds;clientName;clientNip89;relayAuthDefaultPolicy;httpFetch;autoConnectUserRelays=!0;autoFetchUserMutelist=!0;constructor(o={}){var s;super(),s=this,this.debug=o.debug||debug3("ndk"),this.explicitRelayUrls=o.explicitRelayUrls||[],this.pool=new NDKPool(o.explicitRelayUrls||[],o.blacklistRelayUrls,this),this.debug(`Starting with explicit relays: ${JSON.stringify(this.explicitRelayUrls)}`),this.pool.on("relay:auth",function(){var r=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i,a){s.relayAuthDefaultPolicy&&(yield s.relayAuthDefaultPolicy(i,a))});return function(i,a){return r.apply(this,arguments)}}()),this.autoConnectUserRelays=o.autoConnectUserRelays??!0,this.autoFetchUserMutelist=o.autoFetchUserMutelist??!0,this.clientName=o.clientName,this.clientNip89=o.clientNip89,this.relayAuthDefaultPolicy=o.relayAuthDefaultPolicy,o.enableOutboxModel&&(this.outboxPool=new NDKPool(o.outboxRelayUrls||DEFAULT_OUTBOX_RELAYS,o.blacklistRelayUrls||DEFAULT_BLACKLISTED_RELAYS,this,this.debug.extend("outbox-pool")),this.outboxTracker=new OutboxTracker(this)),this.signer=o.signer,this.cacheAdapter=o.cacheAdapter,this.mutedIds=o.mutedIds||new Map,o.devWriteRelayUrls&&(this.devWriteRelaySet=NDKRelaySet.fromRelayUrls(o.devWriteRelayUrls,this));try{this.httpFetch=fetch}catch{}}addExplicitRelay(o,s,r=!0){let i;return i="string"==typeof o?new NDKRelay(o,s):o,this.pool.addRelay(i,r),this.explicitRelayUrls.push(i.url),i}toJSON(){return{relayCount:this.pool.relays.size}.toString()}get activeUser(){return this._activeUser}set activeUser(o){var s=this;const r=this._activeUser?.pubkey!==o?.pubkey;if(this._activeUser=o,o&&r){const i=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield T.relayList();if(S){s.debug("Connecting to user relays",{npub:T.npub,relays:S.relays});for(const A of S.relays){let I=s.pool.relays.get(A);I||(I=new NDKRelay(A),s.pool.addRelay(I))}}else s.debug("No relay list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),a=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield s.fetchEvents([{kinds:[1e4],authors:[T.pubkey]},{kinds:[3e4],authors:[T.pubkey],"#d":["mute"],limit:1}]);if(S)for(const A of S){const I=lists_default.from(A);for(const N of I.items)s.mutedIds.set(N[1],N[0])}else s.debug("No mute list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),c=[];this.autoConnectUserRelays&&c.push(i),this.autoFetchUserMutelist&&c.push(a);const y=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){for(const S of c)yield S(T)});return function(S){return C.apply(this,arguments)}}(),w=this.outboxPool||this.pool;w.connectedRelays.length>0?y(o):(this.debug("Waiting for connection to main relays"),w.once("relay:ready",C=>{this.debug("New relay ready",C?.url),y(o)}))}else o||(this.mutedIds=new Map)}get signer(){return this._signer}set signer(o){this._signer=o,this.emit("signer:ready",o),o?.user().then(s=>{s.ndk=this,this.activeUser=s})}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s._signer&&s.autoConnectUserRelays&&(s.debug("Attempting to connect to user relays specified by signer"),s._signer.relays)&&(yield s._signer.relays()).forEach(i=>s.pool.addRelay(i));const r=[s.pool.connect(o)];return s.outboxPool&&r.push(s.outboxPool.connect(o)),s.debug("Connecting to relays",{timeoutMs:o}),Promise.allSettled(r).then(()=>{})})()}getUser(o){const s=new NDKUser(o);return s.ndk=this,s}getUserFromNip05(o,s=!1){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return NDKUser.fromNip05(o,r,s)})()}subscribe(o,s,r,i=!0){const a=new NDKSubscription(this,o,s,r);if(r)for(const c of r.relays)this.pool.useTemporaryRelay(c);if(this.outboxPool&&a.hasAuthorsFilter()){const c=a.filters.filter(y=>y.authors&&y.authors?.length>0).map(y=>y.authors).flat();this.outboxTracker?.trackUsers(c)}return i&&a.start(),a}publish(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.debug("Deprecated: Use `event.publish()` instead"),o.publish(s,r)})()}fetchEvent(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let a,c;if(r instanceof NDKRelay?c=new NDKRelaySet(new Set([r]),i):r instanceof NDKRelaySet&&(c=r),!r&&"string"==typeof o&&!isNip33AValue(o)){const y=relaysFromBech32(o);y.length>0&&(c=new NDKRelaySet(new Set(y),i),c=correctRelaySet(c,i.pool))}if(a="string"==typeof o?filterFromId(o):o,!a)throw new Error(`Invalid filter: ${JSON.stringify(o)}`);return new Promise(y=>{const w=i.subscribe(a,{...s||{},closeOnEose:!0},c,!1);w.on("event",C=>{C.ndk=i,y(C)}),w.on("eose",()=>{y(null)}),w.start()})})()}fetchEvents(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise(a=>{const c=new Map,y=i.subscribe(o,{...s||{},closeOnEose:!0},r,!1),w=C=>{const T=C.deduplicationKey(),S=c.get(T);S&&(C=dedup(S,C)),C.ndk=i,c.set(T,C)};y.on("event",w),y.on("event:dup",w),y.on("eose",()=>{a(new Set(c.values()))}),y.start()})})()}assertSigner(){if(!this.signer)throw this.emit("signerRequired"),new Error("Signer required")}getNip96(o){return new Nip96(o,this)}};const LOCAL_STORE_KEY="__nostrlogin_nip46",LOGGED_IN_ACCOUNTS="__nostrlogin_accounts",RECENT_ACCOUNTS="__nostrlogin_recent",OUTBOX_RELAYS$1=["wss://purplepag.es","wss://relay.nos.social","wss://user.kindpag.es","wss://relay.damus.io","wss://nos.lol"],DEFAULT_SIGNUP_RELAYS=["wss://relay.damus.io/","wss://nos.lol/","wss://relay.primal.net/"],localStorageSetItem=(o,s)=>{localStorage.setItem(o,s)},localStorageGetItem=o=>{const s=window.localStorage.getItem(o);if(s)try{return JSON.parse(s)}catch{}return null},localStorageRemoveItem=o=>{localStorage.removeItem(o)},fetchProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r){const i=new NDKUser({pubkey:s.pubkey});return i.ndk=r,yield i.fetchProfile()});return function(r,i){return o.apply(this,arguments)}}(),createProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i,a,c){const y={name:s.name},w=new NDKEvent(r,{kind:0,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:JSON.stringify(y),tags:[]});window.location.hostname&&w.tags.push(["client",window.location.hostname]);const C=new NDKEvent(r,{kind:10002,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:"",tags:[]}),T=(a||"").split(",").map(A=>A.trim()).filter(A=>A.startsWith("ws"));T.length||T.push(...DEFAULT_SIGNUP_RELAYS);for(const A of T)C.tags.push(["r",A]);yield w.sign(i),console.log("signed profile",w),yield C.sign(i),console.log("signed relays",C);const S=c&&c.length?c:OUTBOX_RELAYS$1;yield w.publish(NDKRelaySet.fromRelayUrls(S,r)),console.log("published profile",w),yield C.publish(NDKRelaySet.fromRelayUrls(S,r)),console.log("published relays",C)});return function(r,i,a,c,y){return o.apply(this,arguments)}}(),bunkerUrlToInfo=(o,s="")=>{const r=new URL(o);return{pubkey:r.hostname||r.pathname.split("//")[1],sk:s||generatePrivateKey(),relays:r.searchParams.getAll("relay"),token:r.searchParams.get("secret")||"",authMethod:"connect"}},isBunkerUrl=o=>o.startsWith("bunker://"),getBunkerUrl=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r){if(!s)return"";if(isBunkerUrl(s))return s;if(s.includes("@")){const[i,a]=s.toLocaleLowerCase().split("@"),c=r.devOverrideBunkerOrigin||`https://${a}`,y=`${c}/.well-known/nostr.json?name=_`,w=`${c}/.well-known/nostr.json?name=${i}`,C=yield fetch(y),T=yield C.json(),A=T.nip46[T.names._],I=yield fetch(w),N=(yield I.json()).names[i];if(!A.length)throw new Error("Bunker relay not provided");return`bunker://${N}?relay=${A[0]}`}throw new Error("Invalid user name or bunker url")});return function(r,i){return o.apply(this,arguments)}}(),checkNip05=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){let r=!1,i="",a="";return yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s||!s.includes("@"))return;const[c,y]=s.toLocaleLowerCase().split("@");if(!c)return;if(!new RegExp(/^[\w-.]+@([\w-]+\.)+[\w-]{2,8}$/g).test(s))return void(i="Invalid name");if(!y)return void(i="Select service");const w=`https://${y}/.well-known/nostr.json?name=${c.toLowerCase()}`;try{const C=yield fetch(w),T=yield C.json();if(T.names[c])return void(a=T.names[c])}catch{}r=!0})(),{available:r,taken:""!=a,error:i,pubkey:a}});return function(r){return o.apply(this,arguments)}}(),upgradeInfo=o=>{"typeAuthMethod"in o&&delete o.typeAuthMethod,o.authMethod||(o.authMethod="extension"in o&&o.extension?"extension":"readOnly"in o&&o.readOnly?"readOnly":"connect"),o.nip05&&isBunkerUrl(o.nip05)&&(o.bunkerUrl=o.nip05,o.nip05="")},localStorageAddAccount=o=>{localStorageSetItem(LOCAL_STORE_KEY,JSON.stringify(o));const s=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],r=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(y=>upgradeInfo(y)),r.forEach(y=>upgradeInfo(y));const i=s,a=s.findIndex(y=>y.pubkey===o.pubkey&&y.authMethod===o.authMethod);-1!==a?i[a]=o:i.push(o);const c=r.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(c)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(i))},localStorageRemoveCurrentAccount=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);if(!o)return;upgradeInfo(o);const s={...o};delete s.sk,delete s.otpData;const r=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],i=localStorageGetItem(RECENT_ACCOUNTS)||[];r.forEach(y=>upgradeInfo(y)),i.forEach(y=>upgradeInfo(y));const a=i;if("connect"===s.authMethod&&s.bunkerUrl&&s.bunkerUrl.includes("secret="))console.log("nostr login bunker conn with a secret not saved to recent");else if("local"===s.authMethod)console.log("nostr login temporary local keys not save to recent");else{const y=i.findIndex(w=>w.pubkey===s.pubkey&&w.authMethod===s.authMethod);-1!==y?a[y]=s:a.push(s)}const c=r.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(a)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(c)),localStorageRemoveItem(LOCAL_STORE_KEY)},localStorageRemoveRecent=o=>{const s=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(i=>upgradeInfo(i));const r=s.filter(i=>i.pubkey!==o.pubkey||i.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(r))},localStorageGetRecents=()=>{const o=localStorageGetItem(RECENT_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetAccounts=()=>{const o=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetCurrent=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);return o&&upgradeInfo(o),o},getDarkMode=o=>{const s=localStorage.getItem("nl-dark-mode");return s?!!JSON.parse(s):void 0!==o.darkMode?o.darkMode:!(!window.matchMedia||!window.matchMedia("(prefers-color-scheme: dark)").matches)},getIcon=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return document.location.origin+"/favicon.ico"});return function(){return o.apply(this,arguments)}}();class NostrRpc extends NDKNostrRpc{pubkey;_ndk;_signer;requests=new Set;sub;_useNip44=!1;constructor(s,r,i){super(s,i,s.debug.extend("nip46:signer:rpc")),this._ndk=s,this._signer=i,this.pubkey=r}subscribe(s){var r=()=>super.subscribe,i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.sub=yield r().call(i,s),i.sub})()}stop(){this.sub&&(this.sub.stop(),this.sub=void 0)}setUseNip44(s){this._useNip44=s}isNip04(s){const r=s.length;return!(r<28)&&"?"===s[r-28]&&"i"===s[r-27]&&"v"===s[r-26]&&"="===s[r-25]}parseEvent(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=r._ndk.getUser({pubkey:s.pubkey});i.ndk=r._ndk;const a=r.isNip04(s.content)?r._signer.decrypt:r._signer.decryptNip44;console.log("client event nip04",r.isNip04(s.content));const c=yield a.call(r._signer,i,s.content),y=JSON.parse(c),{id:w,method:C,params:T,result:S,error:A}=y;return C?{id:w,pubkey:s.pubkey,method:C,params:T,event:s}:{id:w,result:S,error:A,event:s}})()}parseNostrConnectReply(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i._ndk,s),c=yield i.parseEvent(a);if(console.log("nostr connect parsedEvent",c),c.method)throw new Error("Bad nostr connect reply");if(c.result===r)return a.pubkey;throw new Error(c.error)})()}listen(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=r.pubkey;console.log("nostr-login listening for conn to",i);const a=yield r.subscribe({kinds:[24133],"#p":[i]});return new Promise((c,y)=>{a.on("event",function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C){try{const T=yield r.parseEvent(C);if(!T.method){const S=T;if("auth_url"===S.result)return;"ack"===S.result||S.result===s?c(C.pubkey):y(S.error)}}catch(T){console.log("error parsing event",T,C.rawEvent())}r.stop()});return function(C){return w.apply(this,arguments)}}())})})()}connect(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((a,c)=>{i.sendRequest(s.pubkey,"connect",[s.pubkey,s.token||"",r||""],24133,w=>{"ack"===w.result?a():c(w.error)})})})()}getId(){return Math.random().toString(36).substring(7)}sendRequest(s,r,i=[],a=24133,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId();y.setResponseHandler(w,c),yield(yield y.createRequestEvent(w,s,r,i,a)).publish()})()}setResponseHandler(s,r){let i=!1;const a=Date.now();return new Promise(()=>{const c=y=>{"auth_url"===y.result?(this.once(`response-${s}`,c),i||(i=!0,this.emit("authUrl",y.error))):r&&this.requests.has(s)&&(this.requests.delete(s),console.log("nostr-login iframe processed request in",Date.now()-a,"ms"),r(y))};this.once(`response-${s}`,c)})}createRequestEvent(s,r,i,a=[],c=24133){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y.requests.add(s);const w=yield y._signer.user(),C=y._ndk.getUser({pubkey:r}),S=new NDKEvent(y._ndk,{kind:c,content:JSON.stringify({id:s,method:i,params:a}),tags:[["p",r]],pubkey:w.pubkey}),A=y._useNip44&&"create_account"!==i?y._signer.encryptNip44:y._signer.encrypt;return S.content=yield A.call(y._signer,C,S.content),yield S.sign(y._signer),S})()}}class IframeNostrRpc extends NostrRpc{peerOrigin;iframePort;iframeRequests=new Map;constructor(s,r,i,a){super(s,r,i),this._ndk=s,this.peerOrigin=a}subscribe(s){var r=()=>super.subscribe,i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.peerOrigin?new NDKSubscription(i._ndk,{},{closeOnEose:!0,cacheUsage:NDKSubscriptionCacheUsage.ONLY_CACHE}):r().call(i,s)})()}setWorkerIframePort(s){var r=this;if(!this.peerOrigin)throw new Error("Unexpected iframe port");this.iframePort=s,s.onmessage=function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){if(console.log("iframe-nip46 got response",a.data),"string"==typeof a.data&&a.data.startsWith("errorNoKey")){const c=a.data.split(":")[1],{id:y="",pubkey:w=""}=r.iframeRequests.get(c)||{};y&&w&&r.requests.has(y)&&r.emit(`iframeRestart-${w}`)}else try{const c=a.data;if(!validateEvent(c))throw new Error("Invalid event from iframe");if(!verifySignature(c))throw new Error("Invalid event signature from iframe");const y=new NDKEvent(r._ndk,c),w=yield r.parseEvent(y);w.method||(console.log("parsed response",w),r.emit(`response-${w.id}`,w))}catch(c){console.log("error parsing event",c,a.data)}});return function(a){return i.apply(this,arguments)}}()}sendRequest(s,r,i=[],a=24133,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId(),C=yield y.createRequestEvent(w,s,r,i,a);y.setResponseHandler(w,c),y.iframePort?(y.iframeRequests.set(C.id,{id:w,pubkey:s}),console.log("iframe-nip46 sending request to",y.peerOrigin,C.rawEvent()),y.iframePort.postMessage(C.rawEvent())):yield C.publish()})()}}class ReadyListener{origin;messages;promise;constructor(s,r){var i=this;this.origin=r,this.messages=s,this.promise=new Promise(a=>{console.log(new Date,"started listener for",this.messages);const c=function(){var y=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(w){const C=new URL(r).hostname,T=new URL(w.origin).hostname;(T===C||T.endsWith("."+C))&&Array.isArray(w.data)&&w.data.length&&i.messages.includes(w.data[0])&&(console.log(new Date,"got ready message from",w.origin,w.data),window.removeEventListener("message",c),a(w.data))});return function(C){return y.apply(this,arguments)}}();window.addEventListener("message",c)})}wait(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(new Date,"waiting for",s.messages);const r=yield s.promise;return console.log(new Date,"finished waiting for",s.messages,r),r})()}}class BannerManager extends lib$1.EventEmitter{banner=null;iframeReady;params;constructor(s){super(),this.params=s}onAuthUrl(s,r){this.banner&&(this.banner.notify=s?{mode:r?"iframeAuthUrl":"authUrl",url:s}:{mode:""})}onIframeRestart(s){this.banner&&(this.iframeReady=new ReadyListener(["rebinderDone","rebinderError"],new URL(s).origin),this.banner.notify={mode:"rebind",url:s})}onUserInfo(s){this.banner&&(this.banner.userInfo=s)}onCallTimeout(){this.banner&&(this.banner.notify={mode:"timeout"})}onCallStart(){this.banner&&(this.banner.isLoading=!0)}onCallEnd(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.banner&&(s.iframeReady&&(yield s.iframeReady.wait(),s.iframeReady=void 0),s.banner.isLoading=!1,s.banner.notify={mode:""})})()}onUpdateAccounts(s){this.banner&&(this.banner.accounts=s)}onDarkMode(s){this.banner&&(this.banner.darkMode=s)}launchAuthBanner(s){var r=this;this.banner=document.createElement("nl-banner"),this.banner.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&this.banner.setAttribute("theme",s.theme),s.noBanner&&this.banner.setAttribute("hidden-mode","true"),this.banner.addEventListener("handleLoginBanner",i=>{this.emit("launch",i.detail)}),this.banner.addEventListener("handleConfirmLogout",()=>{this.emit("onConfirmLogout")}),this.banner.addEventListener("handleLogoutBanner",(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.emit("logout")})),this.banner.addEventListener("handleImportModal",i=>{this.emit("import")}),this.banner.addEventListener("handleNotifyConfirmBanner",i=>{this.emit("onAuthUrlClick",i.detail)}),this.banner.addEventListener("handleNotifyConfirmBannerIframe",i=>{this.emit("onIframeAuthUrlClick",i.detail)}),this.banner.addEventListener("handleSwitchAccount",i=>{this.emit("onSwitchAccount",i.detail)}),this.banner.addEventListener("handleOpenWelcomeModal",()=>{this.emit("launch",this.params.optionsModal.startScreen),this.banner&&(this.banner.isOpen=!1)}),document.body.appendChild(this.banner)}}function extract(o,s,r){return hash$1(o),void 0===r&&(r=new Uint8Array(o.outputLen)),hmac$1(o,toBytes$1(r),toBytes$1(s))}const HKDF_COUNTER=new Uint8Array([0]),EMPTY_BUFFER=new Uint8Array;function expand(o,s,r,i=32){if(hash$1(o),number$1(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===r&&(r=EMPTY_BUFFER);const c=new Uint8Array(a*o.outputLen),y=hmac$1.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;T<a;T++)HKDF_COUNTER[0]=T+1,w.update(0===T?EMPTY_BUFFER:C).update(r).update(HKDF_COUNTER).digestInto(C),c.set(C,o.outputLen*T),y._cloneInto(w);return y.destroy(),w.destroy(),C.fill(0),HKDF_COUNTER.fill(0),c.slice(0,i)}const decoder=new TextDecoder,u={minPlaintextSize:1,maxPlaintextSize:65535,utf8Encode:utf8ToBytes$1,utf8Decode:o=>decoder.decode(o),getConversationKey(o,s){const r=secp256k1.getSharedSecret(o,"02"+s).subarray(1,33);return extract(sha256,r,"nip44-v2")},getMessageKeys(o,s){const r=expand(sha256,o,s,76);return{chacha_key:r.subarray(0,32),chacha_nonce:r.subarray(32,44),hmac_key:r.subarray(44,76)}},calcPaddedLen(o){if(!Number.isSafeInteger(o)||o<1)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<<Math.floor(Math.log2(o-1))+1,r=s<=256?32:s/8;return r*(Math.floor((o-1)/r)+1)},writeU16BE(o){if(!Number.isSafeInteger(o)||o<u.minPlaintextSize||o>u.maxPlaintextSize)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const s=new Uint8Array(2);return new DataView(s.buffer).setUint16(0,o,!1),s},pad(o){const s=u.utf8Encode(o),r=s.length;return concatBytes(u.writeU16BE(r),s,new Uint8Array(u.calcPaddedLen(r)-r))},unpad(o){const s=new DataView(o.buffer).getUint16(0),r=o.subarray(2,2+s);if(s<u.minPlaintextSize||s>u.maxPlaintextSize||r.length!==s||o.length!==2+u.calcPaddedLen(s))throw new Error("invalid padding");return u.utf8Decode(r)},hmacAad(o,s,r){if(32!==r.length)throw new Error("AAD associated data must be 32 bytes");const i=concatBytes(r,s);return hmac$1(sha256,o,i)},decodePayload(o){if("string"!=typeof o)throw new Error("payload must be a valid string");const s=o.length;if(s<132||s>87472)throw new Error("invalid payload length: "+s);if("#"===o[0])throw new Error("unknown encryption version");let r;try{r=base64.decode(o)}catch(c){throw new Error("invalid base64: "+c.message)}const i=r.length;if(i<99||i>65603)throw new Error("invalid data length: "+i);const a=r[0];if(2!==a)throw new Error("unknown encryption version "+a);return{nonce:r.subarray(1,33),ciphertext:r.subarray(33,-32),mac:r.subarray(-32)}}};function encryptNip44(o,s,r=randomBytes(32)){const{chacha_key:i,chacha_nonce:a,hmac_key:c}=u.getMessageKeys(s,r),y=u.pad(o),w=chacha20(i,a,y),C=u.hmacAad(c,w,r);return base64.encode(concatBytes(new Uint8Array([2]),r,w,C))}function decryptNip44(o,s){const{nonce:r,ciphertext:i,mac:a}=u.decodePayload(o),{chacha_key:c,chacha_nonce:y,hmac_key:w}=u.getMessageKeys(s,r);if(!equalBytes(u.hmacAad(w,i,r),a))throw new Error("invalid MAC");const C=chacha20(c,y,i);return u.unpad(C)}class Nip44{cache=new Map;createKey(s,r){return u.getConversationKey(s,r)}getKey(s,r,i){const a=getPublicKey(s)+r;let c=this.cache.get(a);if(c)return c;const y=this.createKey(s,r);return this.cache.set(a,y),y}encrypt(s,r,i){return encryptNip44(i,this.getKey(s,r))}decrypt(s,r,i){return decryptNip44(i,this.getKey(s,r))}}class PrivateKeySigner extends NDKPrivateKeySigner{nip44=new Nip44;constructor(s){super(s)}encryptNip44(s,r){return Promise.resolve(this.nip44.encrypt(this.privateKey,s.pubkey,r))}decryptNip44(s,r){return Promise.resolve(this.nip44.decrypt(this.privateKey,s.pubkey,r))}}const OUTBOX_RELAYS=["wss://user.kindpag.es","wss://purplepag.es","wss://relay.nos.social"],DEFAULT_NOSTRCONNECT_RELAY="wss://relay.nsec.app/",NOSTRCONNECT_APPS=[{name:"Nsec.app",domain:"nsec.app",canImport:!0,img:"https://nsec.app/assets/favicon.ico",link:"https://use.nsec.app/<nostrconnect>",relay:"wss://relay.nsec.app/"},{name:"Amber",img:"https://raw.githubusercontent.com/greenart7c3/Amber/refs/heads/master/assets/android-icon.svg",link:"<nostrconnect>",relay:"wss://relay.nsec.app/"},{name:"Other key stores",img:"",link:"<nostrconnect>",relay:"wss://relay.nsec.app/"}];class AuthNostrService extends lib$1.EventEmitter{ndk;profileNdk;signer=null;localSigner=null;params;signerPromise;readyPromise;readyCallback;nip44Codec=new Nip44;nostrConnectKey="";nostrConnectSecret="";iframe;starterReady;nip04;nip44;constructor(s){super(),this.params=s,this.ndk=new NDK({enableOutboxModel:!1}),this.profileNdk=new NDK({enableOutboxModel:!0,explicitRelayUrls:OUTBOX_RELAYS}),this.profileNdk.connect(),this.nip04={encrypt:this.encrypt04.bind(this),decrypt:this.decrypt04.bind(this)},this.nip44={encrypt:this.encrypt44.bind(this),decrypt:this.decrypt44.bind(this)}}isIframe(){return!!this.iframe}waitReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.signerPromise)try{yield s.signerPromise}catch{}if(s.readyPromise)try{yield s.readyPromise}catch{}})()}nostrConnect(s,{domain:r="",link:i="",iframeUrl:a="",importConnect:c=!1}={}){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w={authMethod:"connect",pubkey:"",sk:y.nostrConnectKey,domain:r,relays:[s=s||DEFAULT_NOSTRCONNECT_RELAY],iframeUrl:a};console.log("nostrconnect info",w,i),i&&!a&&window.open(i,"_blank","width=400,height=700");const C=yield y.initSigner(w,{listen:!0});if(!C)throw new Error("Bad remote pubkey");return w.pubkey=C,w.bunkerUrl=`bunker://${C}?relay=${s}`,c||y.onAuth("login",w),w})()}createNostrConnect(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.nostrConnectKey=generatePrivateKey(),r.nostrConnectSecret=Math.random().toString(36).substring(7);const i=getPublicKey(r.nostrConnectKey),a=encodeURIComponent(document.location.host),c=encodeURIComponent(document.location.href);return`nostrconnect://${i}?image=${encodeURIComponent(yield getIcon())}&url=${c}&name=${a}&perms=${encodeURIComponent(r.params.optionsModal.perms||"")}&secret=${r.nostrConnectSecret}${s?`&relay=${s}`:""}`})()}getNostrConnectServices(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=yield s.createNostrConnect(),i=NOSTRCONNECT_APPS.map(a=>({...a}));for(const a of i){let c=DEFAULT_NOSTRCONNECT_RELAY;if(a.link.startsWith("https://")){let w=a.domain||new URL(a.link).hostname;try{const C=yield(yield fetch(`https://${w}/.well-known/nostr.json`)).json(),S=C.nip46[C.names._];S&&S.length&&(c=S[0]),a.iframeUrl=C.nip46.iframe_url||""}catch(C){console.log("Bad app info",C,a)}}const y=r+"&relay="+c;a.link=a.iframeUrl?y:a.link.replace("<nostrconnect>",y)}return[r,i]})()}localSignup(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=generatePrivateKey(),a={pubkey:getPublicKey(i),sk:i,name:s,authMethod:"local"};console.log(`localSignup name: ${s}`),yield r.setLocal(a,!0)})()}setLocal(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.releaseSigner(),i.localSigner=new PrivateKeySigner(s.sk),r&&(yield createProfile(s,i.profileNdk,i.localSigner,i.params.optionsModal.signupRelays,i.params.optionsModal.outboxRelays)),i.onAuth("login",s)})()}prepareImportUrl(s){if("otp"===this.params.userInfo?.authMethod)return s+"&import=true";if(!this.localSigner||"local"!==this.params.userInfo?.authMethod)throw new Error("Most be local keys");return s+"#import="+nip19_exports.nsecEncode(this.localSigner.privateKey)}importAndConnect(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:i,domain:a,link:c,iframeUrl:y}=s;if(!a)throw new Error("Domain required");const w=yield r.nostrConnect(i,{domain:a,link:c,importConnect:!0,iframeUrl:y});yield r.logout(!0),r.localSigner=null,r.onAuth("login",w)})()}setReadOnly(s){this.onAuth("login",{pubkey:s,authMethod:"readOnly"})}setExtension(s){this.onAuth("login",{pubkey:s,authMethod:"extension"})}setOTP(s,r){this.onAuth("login",{pubkey:s,authMethod:"otp",otpData:r})}setConnect(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.releaseSigner(),yield r.startAuth(),yield r.initSigner(s),r.onAuth("login",s),yield r.endAuth()})()}createAccount(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const[i,a]=s.split("@"),c=yield getBunkerUrl(`_@${a}`,r.params.optionsModal);console.log("create account bunker's url",c);const y=bunkerUrlToInfo(c),w=!!r.params.userInfo;yield r.initSigner(y,{eventToAddAccount:w});const C=[i,a,"",r.params.optionsModal.perms||""];console.log("signer",r.signer);const T=yield new Promise(S=>{r.signer.rpc.sendRequest(y.pubkey,"create_account",C,void 0,S)});if(console.log("create_account pubkey",T),"error"===T.result)throw new Error(T.error);return{bunkerUrl:`bunker://${T.result}?relay=${y.relays?.[0]}`,sk:y.sk}})()}releaseSigner(){this.signer=null,this.localSigner=null;for(const s of this.ndk.pool.relays.keys())this.ndk.pool.removeRelay(s)}logout(s=!1){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s||r.releaseSigner(),localStorageRemoveCurrentAccount(),r.onAuth("logout"),r.emit("updateAccounts")})()}setUserInfo(s){this.params.userInfo=s,this.emit("onUserInfo",s),s&&(localStorageAddAccount(s),this.emit("updateAccounts"))}exportKeys(){return this.params.userInfo?"local"!==this.params.userInfo.authMethod?"":nip19_exports.nsecEncode(this.params.userInfo.sk):""}onAuth(s,r=null){if("logout"!==s&&!r)throw new Error("No user info in onAuth");if(r&&this.params.userInfo&&(r.pubkey!==this.params.userInfo.pubkey||r.authMethod!==this.params.userInfo.authMethod)){const i=new CustomEvent("nlAuth",{detail:{type:"logout"}});console.log("nostr-login auth",i.detail),document.dispatchEvent(i)}this.setUserInfo(r),r&&fetchProfile(r,this.profileNdk).then(i=>{if(this.params.userInfo!==r)return;const a={...this.params.userInfo,picture:i?.image||i?.picture,name:i?.name||i?.displayName||i?.nip05||nip19_exports.npubEncode(r.pubkey)};this.setUserInfo(a)});try{const i=r?nip19_exports.npubEncode(r.pubkey):"",a={type:s};"logout"===s?(this.iframe&&this.iframe.remove(),this.iframe=void 0):(a.pubkey=r.pubkey,r.sk&&(a.localNsec=nip19_exports.nsecEncode(r.sk)),r.relays&&(a.relays=r.relays),r.otpData&&(a.otpData=r.otpData),a.method=r.authMethod||"connect");const c=new CustomEvent("nlAuth",{detail:a});console.log("nostr-login auth",a),document.dispatchEvent(c),this.params.optionsModal.onAuth&&this.params.optionsModal.onAuth(i,a)}catch(i){console.log("onAuth error",i)}}createIframe(s){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s)return;const r=new URL(s);let i;const a="__nostr-login-worker-iframe-"+r.hostname.replaceAll(".","-");i=document.querySelector(`#${a}`),console.log("iframe",a,i),i||(i=document.createElement("iframe"),i.setAttribute("width","0"),i.setAttribute("height","0"),i.setAttribute("border","0"),i.style.display="none",i.id=a,document.body.append(i)),i.setAttribute("src",s);const c=new ReadyListener(["workerReady","workerError"],r.origin);yield new Promise(w=>{i.addEventListener("load",w)});const y=yield c.wait();return console.log("nostr-login iframe ready",s,y),{iframe:i,port:y[1]}})()}startAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.readyCallback)throw new Error("Already started");s.readyPromise=new Promise(r=>s.readyCallback=r)})()}endAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("endAuth",s.params.userInfo),s.params.userInfo&&s.params.userInfo.iframeUrl){const{iframe:r,port:i}=(yield s.createIframe(s.params.userInfo.iframeUrl))||{};if(s.iframe=r,!s.iframe||!i)return;s.signer.rpc.setWorkerIframePort(i)}s.readyCallback(),s.readyCallback=void 0})()}resetAuth(){this.readyCallback&&this.readyCallback(),this.readyCallback=void 0}listen(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("listen",s,r),!s.iframeUrl)return r.listen(i.nostrConnectSecret);const a=yield i.starterReady.wait();if("starterError"===a[0])throw new Error(a[1]);return i.signer.rpc.parseNostrConnectReply(a[1],i.nostrConnectSecret)})()}initSigner(s,{listen:r=!1,connect:i=!1,eventToAddAccount:a=!1}={}){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(c.signerPromise)try{yield c.signerPromise}catch{}console.log("initSigner info",s);const y=s.iframeUrl?new URL(s.iframeUrl).origin:void 0;return y&&(c.starterReady=new ReadyListener(["starterDone","starterError"],y)),c.emit("onIframeUrl",s.iframeUrl),c.signerPromise=new Promise(function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C,T){try{if(s.relays&&!s.iframeUrl)for(const N of s.relays)c.ndk.addExplicitRelay(N,void 0);yield c.ndk.connect();const S=getPublicKey(s.sk),A=new PrivateKeySigner(s.sk);c.signer=new NDKNip46Signer(c.ndk,s.pubkey,A);const I=new IframeNostrRpc(c.ndk,S,A,y);if(I.setUseNip44(!0),c.signer.rpc=I,I.on(`iframeRestart-${s.pubkey}`,(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const N=s.iframeUrl+(s.iframeUrl.includes("?")?"&":"?")+"pubkey="+s.pubkey+"&rebind="+S;c.emit("iframeRestart",{pubkey:s.pubkey,iframeUrl:N})})),r||I.on("authUrl",N=>{console.log("nostr login auth url",N),c.emit("onAuthUrl",{url:N,iframeUrl:s.iframeUrl,eventToAddAccount:a})}),r){const N=yield c.listen(s,I);c.signer.remotePubkey=N,c.signer.remoteUser=new NDKUser({pubkey:N}),s.pubkey=N,C(N)}else i&&(yield I.connect(s,c.params.optionsModal.perms)),C(void 0)}catch(S){console.log("initSigner failure",S),c.signer=null,T(S)}});return function(C,T){return w.apply(this,arguments)}}()),c.signerPromise})()}authNip46(s,{name:r,bunkerUrl:i,sk:a="",domain:c="",iframeUrl:y=""}){var w=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{const C=bunkerUrlToInfo(i,a);if(isBunkerUrl(r)?C.bunkerUrl=r:(C.nip05=r,C.domain=r.split("@")[1]),c&&(C.domain=c),y&&(C.iframeUrl=y),!C.pubkey||!C.sk||!C.relays?.[0])throw new Error(`Bad bunker url ${i}`);const T=!!w.params.userInfo;console.log("authNip46",s,C),yield w.initSigner(C,{connect:!0,eventToAddAccount:T}),w.onAuth(s,C)}catch(C){throw console.log("nostr login auth failed",C),C}})()}signEvent(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.localSigner?(s.pubkey=getPublicKey(r.localSigner.privateKey),s.id=getEventHash(s),s.sig=yield r.localSigner.sign(s)):(s.pubkey=r.signer?.remotePubkey,s.id=getEventHash(s),s.sig=yield r.signer?.sign(s)),console.log("signed",{event:s}),s})()}codec_call(s,r,i){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((c,y)=>{a.signer.rpc.sendRequest(a.signer.remotePubkey,s,[r,i],24133,w=>{w.error?y(w.error):c(w.result)})})})()}encrypt04(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.encrypt(new NDKUser({pubkey:s}),r):i.signer.encrypt(new NDKUser({pubkey:s}),r)})()}decrypt04(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.decrypt(new NDKUser({pubkey:s}),r):i.codec_call("nip04_decrypt",s,r)})()}encrypt44(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.encrypt(i.localSigner.privateKey,s,r):i.codec_call("nip44_encrypt",s,r)})()}decrypt44(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.decrypt(i.localSigner.privateKey,s,r):i.codec_call("nip44_decrypt",s,r)})()}}class ModalManager extends lib$1.EventEmitter{modal=null;params;extensionService;authNostrService;launcherPromise;accounts=[];recents=[];opt;constructor(s,r,i){super(),this.params=s,this.extensionService=i,this.authNostrService=r}waitReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.launcherPromise){try{yield s.launcherPromise}catch{}s.launcherPromise=void 0}})()}launch(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.launcherPromise&&(yield r.waitReady()),r.opt=s;const i=document.createElement("dialog");r.modal=document.createElement("nl-auth"),r.modal.accounts=r.accounts,r.modal.recents=r.recents,r.modal.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&r.modal.setAttribute("theme",s.theme),s.startScreen&&r.modal.setAttribute("start-screen",s.startScreen),r.modal.setAttribute("bunkers",s.bunkers?s.bunkers:"nsec.app,highlighter.com"),void 0!==s.methods&&(r.modal.authMethods=s.methods),void 0!==s.localSignup&&(r.modal.localSignup=s.localSignup),s.title&&(r.modal.welcomeTitle=s.title),s.description&&(r.modal.welcomeDescription=s.description),r.modal.hasExtension=r.extensionService.hasExtension(),r.modal.hasOTP=!!s.otpRequestUrl&&!!s.otpReplyUrl,r.modal.isLoadingExtension=!1,r.modal.isLoading=!1,[r.modal.connectionString,r.modal.connectionStringServices]=yield r.authNostrService.getNostrConnectServices(),i.appendChild(r.modal),document.body.appendChild(i);let a="";return r.launcherPromise=new Promise((c,y)=>{i.addEventListener("close",()=>{y(new Error("Closed")),r.authNostrService.resetAuth(),r.modal&&(document.body.removeChild(r.modal.parentNode),r.modal=null)});const w=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){r.modal&&(r.modal.isLoading=!1),yield r.authNostrService.endAuth(),i.close(),r.modal=null,me()});return function(pe){return be.apply(this,arguments)}}(),C=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me,pe){r.modal&&(r.modal.isLoading=!0);try{pe&&!pe.start||(yield r.authNostrService.startAuth()),yield me(),pe&&!pe.end||(yield w(c))}catch(Te){console.log("error",Te),r.modal&&(r.modal.isLoading=!1,r.modal.authUrl="",r.modal.iframeUrl="",r.modal.error=Te.toString())}});return function(pe,Te){return be.apply(this,arguments)}}(),T=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me,pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const Te=yield getBunkerUrl(me,r.params.optionsModal);yield r.authNostrService.authNip46("login",{name:me,bunkerUrl:Te,domain:pe})}))});return function(pe,Te){return be.apply(this,arguments)}}(),S=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{bunkerUrl:pe,sk:Te}=yield r.authNostrService.createAccount(me);yield r.authNostrService.authNip46("signup",{name:me,bunkerUrl:pe,sk:Te})}))});return function(pe){return be.apply(this,arguments)}}(),A=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(r.authNostrService.exportKeys()),localStorageSetItem("backupKey","true")}catch(me){console.error("Failed to copy to clipboard: ",me)}});return function(){return be.apply(this,arguments)}}(),I=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{iframeUrl:pe}=me,Te=r.authNostrService.prepareImportUrl(me.link);r.modal&&pe&&(r.modal.authUrl=Te,r.modal.iframeUrl=pe,r.modal.isLoading=!1,console.log("nostrconnect authUrl",r.modal.authUrl,r.modal.iframeUrl)),yield r.authNostrService.importAndConnect(me)}))});return function(pe){return be.apply(this,arguments)}}(),N=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:pe,domain:Te,link:xe,iframeUrl:Re}=me||{};console.log("nostrConnect",me,pe,Te,xe,Re),r.modal&&(Re&&(r.modal.authUrl=xe,r.modal.iframeUrl=Re,r.modal.isLoading=!1,console.log("nostrconnect authUrl",r.modal.authUrl,r.modal.iframeUrl)),me||(r.modal.isLoading=!1)),yield r.authNostrService.nostrConnect(pe,{domain:Te,link:xe,iframeUrl:Re})}))});return function(pe){return be.apply(this,arguments)}}(),G=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!me)throw new Error("Please enter some nickname");yield r.authNostrService.localSignup(me)}))});return function(pe){return be.apply(this,arguments)}}();if(!r.modal)throw new Error("WTH?");r.modal.addEventListener("handleContinue",()=>{r.modal&&(r.modal.isLoading=!0,r.emit("onAuthUrlClick",r.modal.authUrl))}),r.modal.addEventListener("nlLogin",be=>{T(be.detail)}),r.modal.addEventListener("nlSignup",be=>{S(be.detail)}),r.modal.addEventListener("nlLocalSignup",be=>{G(be.detail)}),r.modal.addEventListener("nlImportAccount",be=>{I(be.detail)}),r.modal.addEventListener("nlExportKeys",be=>{A()}),r.modal.addEventListener("handleLogoutBanner",()=>{r.emit("onLogoutBanner")}),r.modal.addEventListener("nlNostrConnect",be=>{N(be.detail)}),r.modal.addEventListener("nlNostrConnectDefault",()=>{N()}),r.modal.addEventListener("nlSwitchAccount",be=>{r.emit("onSwitchAccount",be.detail),setTimeout(()=>i.close(),300)}),r.modal.addEventListener("nlLoginRecentAccount",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const pe=me.detail;if("readOnly"===pe.authMethod)r.authNostrService.setReadOnly(pe.pubkey),i.close();else if("otp"===pe.authMethod)try{r.modal.dispatchEvent(new CustomEvent("nlLoginOTPUser",{detail:pe.nip05||pe.pubkey}))}catch(Te){console.error(Te)}else if("extension"===pe.authMethod)yield r.extensionService.trySetExtensionForPubkey(pe.pubkey),i.close();else{const Te=pe.bunkerUrl||pe.nip05;if(!Te)throw new Error("Bad connect info");T(Te,pe.domain)}});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlRemoveRecent",be=>{localStorageRemoveRecent(be.detail),r.emit("updateAccounts")});const Z=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){let pe="";if(me.includes("@")){const{error:Te,pubkey:xe}=yield checkNip05(me);if(!xe)throw new Error(Te);pe=xe}else if(me.startsWith("npub")){const{type:Te,data:xe}=nip19_exports.decode(me);if("npub"!==Te)throw new Error("Bad npub");pe=xe}else 64===me.trim().length&&(pe=me.trim(),nip19_exports.npubEncode(pe));return pe});return function(pe){return be.apply(this,arguments)}}();r.modal.addEventListener("nlLoginReadOnly",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const pe=me.detail,Te=yield Z(pe);r.authNostrService.setReadOnly(Te)}))});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginExtension",(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.extensionService.hasExtension())throw new Error("No extension");yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.modal&&(r.modal.isLoadingExtension=!0,yield r.extensionService.setExtension(),r.modal.isLoadingExtension=!1)}))})),r.modal.addEventListener("nlLoginOTPUser",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=me.detail,Te=yield Z(pe),xe=r.opt.otpRequestUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+Te,Re=yield fetch(xe);if(200!==Re.status)throw console.warn("nostr-login: bad otp reply",Re),new Error("Failed to send DM");r.modal.isOTP=!0,a=Te,r.modal.isLoading=!1}),{start:!0})});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginOTPCode",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=me.detail,Te=r.opt.otpReplyUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+a+"&code="+pe,xe=yield fetch(Te);if(200!==xe.status)throw console.warn("nostr-login: bad otp reply",xe),new Error("Invalid code");const Re=yield xe.text();r.authNostrService.setOTP(a,Re),r.modal.isOTP=!1}),{end:!0})});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckSignup",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const{available:pe,taken:Te,error:xe}=yield checkNip05(me.detail);r.modal&&(r.modal.error=String(xe),!xe&&Te&&(r.modal.error="Already taken"),r.modal.signupNameIsAvailable=pe)});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckLogin",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const{available:pe,taken:Te,error:xe}=yield checkNip05(me.detail);r.modal&&(r.modal.error=String(xe),pe&&(r.modal.error="Name not found"),r.modal.loginIsGood=Te)});return function(me){return be.apply(this,arguments)}}());const te=()=>{r.modal&&(r.modal.isLoading=!1),i.close(),y(new Error("Cancelled"))};r.modal.addEventListener("stopFetchHandler",te),r.modal.addEventListener("nlCloseModal",te),r.modal.addEventListener("nlChangeDarkMode",be=>{setDarkMode(be.detail),document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:be.detail}))}),r.on("onIframeAuthUrlCallEnd",()=>{i.close(),r.modal=null,c()}),i.showModal()}),r.launcherPromise})()}showIframeUrl(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield r.waitReady(),r.launch({startScreen:"iframe"}).catch(()=>console.log("closed auth iframe")),r.modal.authUrl=s})()}connectModals(s){var r=this;const i=function(){var c=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(y){yield r.launch(y)});return function(w){return c.apply(this,arguments)}}(),a=document.getElementsByTagName("nl-button");for(let c=0;c<a.length;c++){const y=a[c].getAttribute("nl-theme"),w=a[c].getAttribute("start-screen"),C={...s};switch(y&&(C.theme=y),w){case"login":case"login-bunker-url":case"login-read-only":case"signup":case"switch-account":case"welcome":C.startScreen=w}a[c].addEventListener("click",function(){i(C)})}}onAuthUrl(s){this.modal&&(this.modal.authUrl=s,this.modal.isLoading=!1)}onIframeUrl(s){this.modal&&(console.log("modal iframe url",s),this.modal.iframeUrl=s)}onCallEnd(){this.modal&&this.modal.authUrl&&this.params.userInfo?.iframeUrl&&this.emit("onIframeAuthUrlCallEnd")}onUpdateAccounts(s,r){this.accounts=s,this.recents=r,this.modal&&(this.modal.accounts=s,this.modal.recents=r)}onDarkMode(s){this.modal&&(this.modal.darkMode=s)}}class Nostr{#e;nip04;nip44;constructor(s){this.#e=s,this.getPublicKey=this.getPublicKey.bind(this),this.signEvent=this.signEvent.bind(this),this.getRelays=this.getRelays.bind(this),this.nip04={encrypt:this.encrypt04.bind(this),decrypt:this.decrypt04.bind(this)},this.nip44={encrypt:this.encrypt44.bind(this),decrypt:this.decrypt44.bind(this)}}ensureAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(yield s.#e.waitReady(),!s.#e.getUserInfo()&&(yield s.#e.launch(),!s.#e.getUserInfo()))throw new Error("Rejected by user")})()}getPublicKey(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield s.ensureAuth();const r=s.#e.getUserInfo();if(r)return r.pubkey;throw new Error("No user")})()}signEvent(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield r.ensureAuth(),r.#e.wait((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield r.#e.getSigner().signEvent(s)}))})()}getRelays(){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return{}})()}encrypt04(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield i.ensureAuth(),i.#e.wait((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield i.#e.getSigner().nip04.encrypt(s,r)}))})()}decrypt04(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield i.ensureAuth(),i.#e.wait((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield i.#e.getSigner().nip04.decrypt(s,r)}))})()}encrypt44(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield i.ensureAuth(),i.#e.wait((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield i.#e.getSigner().nip44.encrypt(s,r)}))})()}decrypt44(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield i.ensureAuth(),i.#e.wait((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield i.#e.getSigner().nip44.decrypt(s,r)}))})()}}class NostrExtensionService extends lib$1.EventEmitter{params;nostrExtension;constructor(s){super(),this.params=s}startCheckingExtension(s){if(this.checkExtension(s))return;const r=setInterval(()=>{this.checkExtension(s)&&clearTimeout(r)},100)}checkExtension(s){return!(this.nostrExtension||!window.nostr||window.nostr===s||(this.initExtension(s),0))}initExtension(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.nostrExtension=window.nostr,window.nostr=s,"extension"===i.params.userInfo?.authMethod&&(yield i.trySetExtensionForPubkey(i.params.userInfo.pubkey)),r||setTimeout(()=>{window.nostr!==s&&i.nostrExtension!==window.nostr&&i.initExtension(s,!0)},300)})()}setExtensionReadPubkey(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){window.nostr=r.nostrExtension;const i=yield window.nostr.getPublicKey();s&&s!==i?r.emit("extensionLogout"):r.emit("extensionLogin",i)})()}trySetExtensionForPubkey(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r.nostrExtension)return r.setExtensionReadPubkey(s)})()}setExtension(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.setExtensionReadPubkey()})()}unsetExtension(s){window.nostr===this.nostrExtension&&(window.nostr=s)}getExtension(){return this.nostrExtension}hasExtension(){return!!this.nostrExtension}}class NostrParams{userInfo;optionsModal;constructor(){this.userInfo=null,this.optionsModal={theme:"default",startScreen:"welcome",devOverrideBunkerOrigin:""}}}class Popup{popup=null;constructor(){}openPopup(s){if((!this.popup||this.popup.closed)&&(this.popup=window.open(s,"_blank","width=400,height=700"),console.log("popup",this.popup),!this.popup))throw new Error("Popup blocked. Try again, please!")}closePopup(){try{this.popup?.close(),this.popup=null}catch{}}}const CALL_TIMEOUT=5e3;class ProcessManager extends lib$1.EventEmitter{callCount=0;callTimer;constructor(){super()}onAuthUrl(){this.callTimer&&clearTimeout(this.callTimer)}onIframeUrl(){this.callTimer&&clearTimeout(this.callTimer)}wait(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let i,a;r.callTimer||(r.callTimer=setTimeout(()=>r.emit("onCallTimeout"),CALL_TIMEOUT)),r.callCount||r.emit("onCallStart"),r.callCount++;try{a=yield s()}catch(c){i=c}if(r.callCount--,r.emit("onCallEnd"),r.callTimer&&clearTimeout(r.callTimer),r.callTimer=void 0,i)throw i;return a})()}}class NostrLoginInitializer{extensionService;params;authNostrService;nostr;processManager;popupManager;bannerManager;modalManager;constructor(){var s=this;this.params=new NostrParams,this.processManager=new ProcessManager,this.popupManager=new Popup,this.bannerManager=new BannerManager(this.params),this.authNostrService=new AuthNostrService(this.params),this.extensionService=new NostrExtensionService(this.params),this.modalManager=new ModalManager(this.params,this.authNostrService,this.extensionService);const r={waitReady:(i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield s.authNostrService.waitReady(),yield s.modalManager.waitReady()}),function(){return i.apply(this,arguments)}),getUserInfo:()=>this.params.userInfo,getSigner:()=>{if("readOnly"===this.params.userInfo.authMethod)throw new Error("Read only");return"extension"===this.params.userInfo.authMethod?this.extensionService.getExtension():this.authNostrService},launch:()=>this.launch(),wait:i=>this.processManager.wait(i)};var i;this.nostr=new Nostr(r),this.processManager.on("onCallTimeout",()=>{this.bannerManager.onCallTimeout()}),this.processManager.on("onCallEnd",()=>{this.bannerManager.onCallEnd(),this.modalManager.onCallEnd()}),this.processManager.on("onCallStart",()=>{this.bannerManager.onCallStart()}),this.authNostrService.on("onIframeUrl",i=>{this.modalManager.onIframeUrl(i)}),this.authNostrService.on("iframeRestart",({iframeUrl:i})=>{this.processManager.onIframeUrl(),this.bannerManager.onIframeRestart(i)}),this.authNostrService.on("onAuthUrl",({url:i,iframeUrl:a,eventToAddAccount:c})=>{this.processManager.onAuthUrl(),c?this.modalManager.onAuthUrl(i):this.params.userInfo?this.bannerManager.onAuthUrl(i,a):this.modalManager.onAuthUrl(i)}),this.authNostrService.on("updateAccounts",()=>{this.updateAccounts()}),this.authNostrService.on("onUserInfo",i=>{this.bannerManager.onUserInfo(i)}),this.modalManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onIframeAuthUrlClick",i=>{this.modalManager.showIframeUrl(i)}),this.modalManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.modalManager.on("onLogoutBanner",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){logout()});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("onConfirmLogout",(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(4),s.launch("confirm-logout")})),this.modalManager.on("updateAccounts",()=>{this.updateAccounts()}),this.bannerManager.on("logout",()=>{logout()}),this.bannerManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("import",()=>{this.launch("import")}),this.extensionService.on("extensionLogin",i=>{this.authNostrService.setExtension(i)}),this.extensionService.on("extensionLogout",()=>{logout()}),this.bannerManager.on("launch",i=>{this.launch(i)})}openPopup(s){this.popupManager.openPopup(s)}switchAccount(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("nostr login switch to info",s),r.extensionService.unsetExtension(r.nostr),"readOnly"===s.authMethod)r.authNostrService.setReadOnly(s.pubkey);else if("otp"===s.authMethod)r.authNostrService.setOTP(s.pubkey,s.otpData||"");else if("local"===s.authMethod&&s.sk)r.authNostrService.setLocal(s);else if("extension"===s.authMethod)yield r.extensionService.trySetExtensionForPubkey(s.pubkey);else{if(!("connect"===s.authMethod&&s.sk&&s.relays&&s.relays[0]))throw new Error("Bad auth info");r.authNostrService.setConnect(s)}})()}updateAccounts(){const s=localStorageGetAccounts(),r=localStorageGetRecents();this.bannerManager.onUpdateAccounts(s),this.modalManager.onUpdateAccounts(s,r)}launch=s=>{const r=localStorageGetRecents(),i=localStorageGetAccounts(),a=s?{startScreen:s}:this.params.optionsModal;return s||!r?.length&&!i?.length||(a.startScreen="switch-account"),this.modalManager.launch(a).catch(()=>{})};init=(()=>{var r,s=this;return r=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i){s.extensionService.startCheckingExtension(s.nostr),window.nostr=s.nostr,s.modalManager.connectModals(i),s.bannerManager.launchAuthBanner(i),i&&(s.params.optionsModal={...i});try{const a=localStorageGetCurrent();if(a){if(!a.pubkey)throw new Error("Bad stored info");yield s.switchAccount(a)}}catch(a){console.log("nostr login init error",a),yield logout()}s.updateAccounts()}),function(i){return r.apply(this,arguments)}})();logout=(()=>{var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.extensionService.unsetExtension(s.nostr),yield s.authNostrService.logout()})})();setDarkMode=s=>{localStorageSetItem("nl-dark-mode",`${s}`),this.bannerManager.onDarkMode(s),this.modalManager.onDarkMode(s)}}const initializer=new NostrLoginInitializer,{init,launch,logout,setDarkMode}=initializer;document.addEventListener("nlLogout",logout),document.addEventListener("nlLaunch",o=>{launch(o.detail||"")}),document.addEventListener("nlDarkMode",o=>{setDarkMode(!!o.detail)})},5462:(o,s,r)=>{"use strict";r.d(s,{lo:()=>Vc,pC:()=>ua,Bq:()=>el,dq:()=>ul,lG:()=>Bc,sh:()=>Nl,Qe:()=>Hc});var i={};r.r(i),r.d(i,{OG:()=>j,My:()=>fn,Ph:()=>an,lX:()=>Xn,Id:()=>xn,fg:()=>ot,qj:()=>Kt,aT:()=>Qt,lq:()=>En,z:()=>Gt,Q5:()=>In});var a=r(467);function c(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function w(b,...x){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(x.length>0&&!x.includes(b.length))throw new Error(`Expected Uint8Array of length ${x}, not of length=${b.length}`)}function T(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")}const N="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,G=b=>b instanceof Uint8Array,be=b=>new DataView(b.buffer,b.byteOffset,b.byteLength),me=(b,x)=>b<<32-x|b>>>x;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Ie(b){if("string"==typeof b&&(b=function ae(b){if("string"!=typeof b)throw new Error("utf8ToBytes expected string, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b)),!G(b))throw new Error("expected Uint8Array, got "+typeof b);return b}class st{clone(){return this._cloneInto()}}function at(b){const x=z=>b().update(Ie(z)).digest(),M=b();return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=()=>b(),x}function yn(b=32){if(N&&"function"==typeof N.getRandomValues)return N.getRandomValues(new Uint8Array(b));throw new Error("crypto.getRandomValues must be defined")}class bn extends st{constructor(x,M,z,J){super(),this.blockLen=x,this.outputLen=M,this.padOffset=z,this.isLE=J,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(x),this.view=be(this.buffer)}update(x){T(this);const{view:M,buffer:z,blockLen:J}=this,ye=(x=Ie(x)).length;for(let Ne=0;Ne<ye;){const Ue=Math.min(J-this.pos,ye-Ne);if(Ue!==J)z.set(x.subarray(Ne,Ne+Ue),this.pos),this.pos+=Ue,Ne+=Ue,this.pos===J&&(this.process(M,0),this.pos=0);else{const rt=be(x);for(;J<=ye-Ne;Ne+=J)this.process(rt,Ne)}}return this.length+=x.length,this.roundClean(),this}digestInto(x){T(this),function S(b,x){w(b);const M=x.outputLen;if(b.length<M)throw new Error(`digestInto() expects output buffer of length at least ${M}`)}(x,this),this.finished=!0;const{buffer:M,view:z,blockLen:J,isLE:ye}=this;let{pos:Ne}=this;M[Ne++]=128,this.buffer.subarray(Ne).fill(0),this.padOffset>J-Ne&&(this.process(z,0),Ne=0);for(let jt=Ne;jt<J;jt++)M[jt]=0;(function $n(b,x,M,z){if("function"==typeof b.setBigUint64)return b.setBigUint64(x,M,z);const J=BigInt(32),ye=BigInt(4294967295),Ne=Number(M>>J&ye),Ue=Number(M&ye),xt=z?0:4;b.setUint32(x+(z?4:0),Ne,z),b.setUint32(x+xt,Ue,z)})(z,J-8,BigInt(8*this.length),ye),this.process(z,0);const Ue=be(x),rt=this.outputLen;if(rt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const xt=rt/4,zt=this.get();if(xt>zt.length)throw new Error("_sha2: outputLen bigger than state");for(let jt=0;jt<xt;jt++)Ue.setUint32(4*jt,zt[jt],ye)}digest(){const{buffer:x,outputLen:M}=this;this.digestInto(x);const z=x.slice(0,M);return this.destroy(),z}_cloneInto(x){x||(x=new this.constructor),x.set(...this.get());const{blockLen:M,buffer:z,length:J,finished:ye,destroyed:Ne,pos:Ue}=this;return x.length=J,x.pos=Ue,x.finished=ye,x.destroyed=Ne,J%M&&x.buffer.set(z),x}}const Qe=(b,x,M)=>b&x^~b&M,bt=(b,x,M)=>b&x^b&M^x&M,ze=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Fe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ft=new Uint32Array(64);class Ke extends bn{constructor(){super(64,32,8,!1),this.A=0|Fe[0],this.B=0|Fe[1],this.C=0|Fe[2],this.D=0|Fe[3],this.E=0|Fe[4],this.F=0|Fe[5],this.G=0|Fe[6],this.H=0|Fe[7]}get(){const{A:x,B:M,C:z,D:J,E:ye,F:Ne,G:Ue,H:rt}=this;return[x,M,z,J,ye,Ne,Ue,rt]}set(x,M,z,J,ye,Ne,Ue,rt){this.A=0|x,this.B=0|M,this.C=0|z,this.D=0|J,this.E=0|ye,this.F=0|Ne,this.G=0|Ue,this.H=0|rt}process(x,M){for(let jt=0;jt<16;jt++,M+=4)Ft[jt]=x.getUint32(M,!1);for(let jt=16;jt<64;jt++){const cn=Ft[jt-15],gn=Ft[jt-2],tn=me(cn,7)^me(cn,18)^cn>>>3,Yt=me(gn,17)^me(gn,19)^gn>>>10;Ft[jt]=Yt+Ft[jt-7]+tn+Ft[jt-16]|0}let{A:z,B:J,C:ye,D:Ne,E:Ue,F:rt,G:xt,H:zt}=this;for(let jt=0;jt<64;jt++){const gn=zt+(me(Ue,6)^me(Ue,11)^me(Ue,25))+Qe(Ue,rt,xt)+ze[jt]+Ft[jt]|0,Yt=(me(z,2)^me(z,13)^me(z,22))+bt(z,J,ye)|0;zt=xt,xt=rt,rt=Ue,Ue=Ne+gn|0,Ne=ye,ye=J,J=z,z=gn+Yt|0}z=z+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Ne=Ne+this.D|0,Ue=Ue+this.E|0,rt=rt+this.F|0,xt=xt+this.G|0,zt=zt+this.H|0,this.set(z,J,ye,Ne,Ue,rt,xt,zt)}roundClean(){Ft.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ge=at(()=>new Ke),se=(BigInt(0),BigInt(1)),Ze=BigInt(2),Rt=b=>b instanceof Uint8Array,Jt=Array.from({length:256},(b,x)=>x.toString(16).padStart(2,"0"));function fn(b){if(!Rt(b))throw new Error("Uint8Array expected");let x="";for(let M=0;M<b.length;M++)x+=Jt[b[M]];return x}function Nt(b){if("string"!=typeof b)throw new Error("hex string expected, got "+typeof b);return BigInt(""===b?"0":`0x${b}`)}function Qt(b){if("string"!=typeof b)throw new Error("hex string expected, got "+typeof b);const x=b.length;if(x%2)throw new Error("padded hex string expected, got unpadded hex of length "+x);const M=new Uint8Array(x/2);for(let z=0;z<M.length;z++){const J=2*z,ye=b.slice(J,J+2),Ne=Number.parseInt(ye,16);if(Number.isNaN(Ne)||Ne<0)throw new Error("Invalid byte sequence");M[z]=Ne}return M}function an(b){return Nt(fn(b))}function Xn(b){if(!Rt(b))throw new Error("Uint8Array expected");return Nt(fn(Uint8Array.from(b).reverse()))}function En(b,x){return Qt(b.toString(16).padStart(2*x,"0"))}function Gt(b,x){return En(b,x).reverse()}function Kt(b,x,M){let z;if("string"==typeof x)try{z=Qt(x)}catch(ye){throw new Error(`${b} must be valid hex string, got "${x}". Cause: ${ye}`)}else{if(!Rt(x))throw new Error(`${b} must be hex string or Uint8Array`);z=Uint8Array.from(x)}const J=z.length;if("number"==typeof M&&J!==M)throw new Error(`${b} expected ${M} bytes, got ${J}`);return z}function xn(...b){const x=new Uint8Array(b.reduce((z,J)=>z+J.length,0));let M=0;return b.forEach(z=>{if(!Rt(z))throw new Error("Uint8Array expected");x.set(z,M),M+=z.length}),x}const j=b=>(Ze<<BigInt(b-1))-se,De=b=>new Uint8Array(b),it=b=>Uint8Array.from(b);function ot(b,x,M){if("number"!=typeof b||b<2)throw new Error("hashLen must be a number");if("number"!=typeof x||x<2)throw new Error("qByteLen must be a number");if("function"!=typeof M)throw new Error("hmacFn must be a function");let z=De(b),J=De(b),ye=0;const Ne=()=>{z.fill(1),J.fill(0),ye=0},Ue=(...jt)=>M(J,z,...jt),rt=(jt=De())=>{J=Ue(it([0]),jt),z=Ue(),0!==jt.length&&(J=Ue(it([1]),jt),z=Ue())},xt=()=>{if(ye++>=1e3)throw new Error("drbg: tried 1000 values");let jt=0;const cn=[];for(;jt<x;){z=Ue();const gn=z.slice();cn.push(gn),jt+=z.length}return xn(...cn)};return(jt,cn)=>{let gn;for(Ne(),rt(jt);!(gn=cn(xt()));)rt();return Ne(),gn}}const Tt={bigint:b=>"bigint"==typeof b,function:b=>"function"==typeof b,boolean:b=>"boolean"==typeof b,string:b=>"string"==typeof b,stringOrUint8Array:b=>"string"==typeof b||b instanceof Uint8Array,isSafeInteger:b=>Number.isSafeInteger(b),array:b=>Array.isArray(b),field:(b,x)=>x.Fp.isValid(b),hash:b=>"function"==typeof b&&Number.isSafeInteger(b.outputLen)};function In(b,x,M={}){const z=(J,ye,Ne)=>{const Ue=Tt[ye];if("function"!=typeof Ue)throw new Error(`Invalid validator "${ye}", expected function`);const rt=b[J];if(!(Ne&&void 0===rt||Ue(rt,b)))throw new Error(`Invalid param ${String(J)}=${rt} (${typeof rt}), expected ${ye}`)};for(const[J,ye]of Object.entries(x))z(J,ye,!1);for(const[J,ye]of Object.entries(M))z(J,ye,!0);return b}const Vt=BigInt(0),dn=BigInt(1),Pn=BigInt(2),Fn=BigInt(3),Bn=BigInt(4),cr=BigInt(5),Jr=BigInt(8);function Bt(b,x){const M=b%x;return M>=Vt?M:x+M}function Ee(b,x,M){if(M<=Vt||x<Vt)throw new Error("Expected power/modulo > 0");if(M===dn)return Vt;let z=dn;for(;x>Vt;)x&dn&&(z=z*b%M),b=b*b%M,x>>=dn;return z}function lt(b,x,M){let z=b;for(;x-- >Vt;)z*=z,z%=M;return z}function Pe(b,x){if(b===Vt||x<=Vt)throw new Error(`invert: expected positive integers, got n=${b} mod=${x}`);let M=Bt(b,x),z=x,J=Vt,ye=dn,Ne=dn,Ue=Vt;for(;M!==Vt;){const xt=z/M,zt=z%M,jt=J-Ne*xt,cn=ye-Ue*xt;z=M,M=zt,J=Ne,ye=Ue,Ne=jt,Ue=cn}if(z!==dn)throw new Error("invert: does not exist");return Bt(J,x)}BigInt(9),BigInt(16);const mn=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function rn(b,x){const M=void 0!==x?x:b.toString(2).length;return{nBitLength:M,nByteLength:Math.ceil(M/8)}}function Hn(b){if("bigint"!=typeof b)throw new Error("field order must be bigint");const x=b.toString(2).length;return Math.ceil(x/8)}function fr(b){const x=Hn(b);return x+Math.ceil(x/2)}class Oi extends st{constructor(x,M){super(),this.finished=!1,this.destroyed=!1,function C(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");c(b.outputLen),c(b.blockLen)}(x);const z=Ie(M);if(this.iHash=x.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const J=this.blockLen,ye=new Uint8Array(J);ye.set(z.length>J?x.create().update(z).digest():z);for(let Ne=0;Ne<ye.length;Ne++)ye[Ne]^=54;this.iHash.update(ye),this.oHash=x.create();for(let Ne=0;Ne<ye.length;Ne++)ye[Ne]^=106;this.oHash.update(ye),ye.fill(0)}update(x){return T(this),this.iHash.update(x),this}digestInto(x){T(this),w(x,this.outputLen),this.finished=!0,this.iHash.digestInto(x),this.oHash.update(x),this.oHash.digestInto(x),this.destroy()}digest(){const x=new Uint8Array(this.oHash.outputLen);return this.digestInto(x),x}_cloneInto(x){x||(x=Object.create(Object.getPrototypeOf(this),{}));const{oHash:M,iHash:z,finished:J,destroyed:ye,blockLen:Ne,outputLen:Ue}=this;return x.finished=J,x.destroyed=ye,x.blockLen=Ne,x.outputLen=Ue,x.oHash=M._cloneInto(x.oHash),x.iHash=z._cloneInto(x.iHash),x}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Uo=(b,x,M)=>new Oi(b,x).update(M).digest();Uo.create=(b,x)=>new Oi(b,x);const oi=BigInt(0),ts=BigInt(1);function wo(b){return function or(b){In(b,mn.reduce((z,J)=>(z[J]="function",z),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(b.Fp),In(b,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...rn(b.n,b.nBitLength),...b,p:b.Fp.ORDER})}const{Ph:Do,aT:Ts}=i,eo={Err:class extends Error{constructor(x=""){super(x)}},_parseInt(b){const{Err:x}=eo;if(b.length<2||2!==b[0])throw new x("Invalid signature integer tag");const M=b[1],z=b.subarray(2,M+2);if(!M||z.length!==M)throw new x("Invalid signature integer: wrong length");if(128&z[0])throw new x("Invalid signature integer: negative");if(0===z[0]&&!(128&z[1]))throw new x("Invalid signature integer: unnecessary leading zero");return{d:Do(z),l:b.subarray(M+2)}},toSig(b){const{Err:x}=eo,M="string"==typeof b?Ts(b):b;if(!(M instanceof Uint8Array))throw new Error("ui8a expected");let z=M.length;if(z<2||48!=M[0])throw new x("Invalid signature tag");if(M[1]!==z-2)throw new x("Invalid signature: incorrect length");const{d:J,l:ye}=eo._parseInt(M.subarray(2)),{d:Ne,l:Ue}=eo._parseInt(ye);if(Ue.length)throw new x("Invalid signature: left bytes after parsing");return{r:J,s:Ne}},hexFromSig(b){const x=xt=>8&Number.parseInt(xt[0],16)?"00"+xt:xt,M=xt=>{const zt=xt.toString(16);return 1&zt.length?`0${zt}`:zt},z=x(M(b.s)),J=x(M(b.r)),ye=z.length/2,Ne=J.length/2,Ue=M(ye),rt=M(Ne);return`30${M(Ne+ye+4)}02${rt}${J}02${Ue}${z}`}},oo=BigInt(0),Bi=BigInt(1),Je=(BigInt(2),BigInt(3));function et(b){const x=function ve(b){const x=wo(b);return In(x,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...x})}(b),{Fp:M,n:z}=x,J=M.BYTES+1,ye=2*M.BYTES+1;function Ue(er){return Bt(er,z)}function rt(er){return Pe(er,z)}const{ProjectivePoint:xt,normPrivateKeyToScalar:zt,weierstrassEquation:jt,isWithinCurveOrder:cn}=function Et(b){const x=function Xo(b){const x=wo(b);In(x,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:M,Fp:z,a:J}=x;if(M){if(!z.eql(J,z.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof M||"bigint"!=typeof M.beta||"function"!=typeof M.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...x})}(b),{Fp:M}=x,z=x.toBytes||((tn,Yt,qt)=>{const Dn=Yt.toAffine();return xn(Uint8Array.from([4]),M.toBytes(Dn.x),M.toBytes(Dn.y))}),J=x.fromBytes||(tn=>{const Yt=tn.subarray(1);return{x:M.fromBytes(Yt.subarray(0,M.BYTES)),y:M.fromBytes(Yt.subarray(M.BYTES,2*M.BYTES))}});function ye(tn){const{a:Yt,b:qt}=x,Dn=M.sqr(tn),Tn=M.mul(Dn,tn);return M.add(M.add(Tn,M.mul(tn,Yt)),qt)}if(!M.eql(M.sqr(x.Gy),ye(x.Gx)))throw new Error("bad generator point: equation left != right");function Ne(tn){return"bigint"==typeof tn&&oo<tn&&tn<x.n}function Ue(tn){if(!Ne(tn))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function rt(tn){const{allowedPrivateKeyLengths:Yt,nByteLength:qt,wrapPrivateKey:Dn,n:Tn}=x;if(Yt&&"bigint"!=typeof tn){if(tn instanceof Uint8Array&&(tn=fn(tn)),"string"!=typeof tn||!Yt.includes(tn.length))throw new Error("Invalid key");tn=tn.padStart(2*qt,"0")}let rr;try{rr="bigint"==typeof tn?tn:an(Kt("private key",tn,qt))}catch{throw new Error(`private key must be ${qt} bytes, hex or bigint, not ${typeof tn}`)}return Dn&&(rr=Bt(rr,Tn)),Ue(rr),rr}const xt=new Map;function zt(tn){if(!(tn instanceof jt))throw new Error("ProjectivePoint expected")}class jt{constructor(Yt,qt,Dn){if(this.px=Yt,this.py=qt,this.pz=Dn,null==Yt||!M.isValid(Yt))throw new Error("x required");if(null==qt||!M.isValid(qt))throw new Error("y required");if(null==Dn||!M.isValid(Dn))throw new Error("z required")}static fromAffine(Yt){const{x:qt,y:Dn}=Yt||{};if(!Yt||!M.isValid(qt)||!M.isValid(Dn))throw new Error("invalid affine point");if(Yt instanceof jt)throw new Error("projective point not allowed");const Tn=rr=>M.eql(rr,M.ZERO);return Tn(qt)&&Tn(Dn)?jt.ZERO:new jt(qt,Dn,M.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Yt){const qt=M.invertBatch(Yt.map(Dn=>Dn.pz));return Yt.map((Dn,Tn)=>Dn.toAffine(qt[Tn])).map(jt.fromAffine)}static fromHex(Yt){const qt=jt.fromAffine(J(Kt("pointHex",Yt)));return qt.assertValidity(),qt}static fromPrivateKey(Yt){return jt.BASE.multiply(rt(Yt))}_setWindowSize(Yt){this._WINDOW_SIZE=Yt,xt.delete(this)}assertValidity(){if(this.is0()){if(x.allowInfinityPoint&&!M.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Yt,y:qt}=this.toAffine();if(!M.isValid(Yt)||!M.isValid(qt))throw new Error("bad point: x or y not FE");const Dn=M.sqr(qt),Tn=ye(Yt);if(!M.eql(Dn,Tn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Yt}=this.toAffine();if(M.isOdd)return!M.isOdd(Yt);throw new Error("Field doesn't support isOdd")}equals(Yt){zt(Yt);const{px:qt,py:Dn,pz:Tn}=this,{px:rr,py:ar,pz:Br}=Yt,br=M.eql(M.mul(qt,Br),M.mul(rr,Tn)),Nr=M.eql(M.mul(Dn,Br),M.mul(ar,Tn));return br&&Nr}negate(){return new jt(this.px,M.neg(this.py),this.pz)}double(){const{a:Yt,b:qt}=x,Dn=M.mul(qt,Je),{px:Tn,py:rr,pz:ar}=this;let Br=M.ZERO,br=M.ZERO,Nr=M.ZERO,Vr=M.mul(Tn,Tn),Ci=M.mul(rr,rr),fi=M.mul(ar,ar),li=M.mul(Tn,rr);return li=M.add(li,li),Nr=M.mul(Tn,ar),Nr=M.add(Nr,Nr),Br=M.mul(Yt,Nr),br=M.mul(Dn,fi),br=M.add(Br,br),Br=M.sub(Ci,br),br=M.add(Ci,br),br=M.mul(Br,br),Br=M.mul(li,Br),Nr=M.mul(Dn,Nr),fi=M.mul(Yt,fi),li=M.sub(Vr,fi),li=M.mul(Yt,li),li=M.add(li,Nr),Nr=M.add(Vr,Vr),Vr=M.add(Nr,Vr),Vr=M.add(Vr,fi),Vr=M.mul(Vr,li),br=M.add(br,Vr),fi=M.mul(rr,ar),fi=M.add(fi,fi),Vr=M.mul(fi,li),Br=M.sub(Br,Vr),Nr=M.mul(fi,Ci),Nr=M.add(Nr,Nr),Nr=M.add(Nr,Nr),new jt(Br,br,Nr)}add(Yt){zt(Yt);const{px:qt,py:Dn,pz:Tn}=this,{px:rr,py:ar,pz:Br}=Yt;let br=M.ZERO,Nr=M.ZERO,Vr=M.ZERO;const Ci=x.a,fi=M.mul(x.b,Je);let li=M.mul(qt,rr),Ji=M.mul(Dn,ar),ji=M.mul(Tn,Br),qi=M.add(qt,Dn),er=M.add(rr,ar);qi=M.mul(qi,er),er=M.add(li,Ji),qi=M.sub(qi,er),er=M.add(qt,Tn);let wr=M.add(rr,Br);return er=M.mul(er,wr),wr=M.add(li,ji),er=M.sub(er,wr),wr=M.add(Dn,Tn),br=M.add(ar,Br),wr=M.mul(wr,br),br=M.add(Ji,ji),wr=M.sub(wr,br),Vr=M.mul(Ci,er),br=M.mul(fi,ji),Vr=M.add(br,Vr),br=M.sub(Ji,Vr),Vr=M.add(Ji,Vr),Nr=M.mul(br,Vr),Ji=M.add(li,li),Ji=M.add(Ji,li),ji=M.mul(Ci,ji),er=M.mul(fi,er),Ji=M.add(Ji,ji),ji=M.sub(li,ji),ji=M.mul(Ci,ji),er=M.add(er,ji),li=M.mul(Ji,er),Nr=M.add(Nr,li),li=M.mul(wr,er),br=M.mul(qi,br),br=M.sub(br,li),li=M.mul(qi,Ji),Vr=M.mul(wr,Vr),Vr=M.add(Vr,li),new jt(br,Nr,Vr)}subtract(Yt){return this.add(Yt.negate())}is0(){return this.equals(jt.ZERO)}wNAF(Yt){return gn.wNAFCached(this,xt,Yt,qt=>{const Dn=M.invertBatch(qt.map(Tn=>Tn.pz));return qt.map((Tn,rr)=>Tn.toAffine(Dn[rr])).map(jt.fromAffine)})}multiplyUnsafe(Yt){const qt=jt.ZERO;if(Yt===oo)return qt;if(Ue(Yt),Yt===Bi)return this;const{endo:Dn}=x;if(!Dn)return gn.unsafeLadder(this,Yt);let{k1neg:Tn,k1:rr,k2neg:ar,k2:Br}=Dn.splitScalar(Yt),br=qt,Nr=qt,Vr=this;for(;rr>oo||Br>oo;)rr&Bi&&(br=br.add(Vr)),Br&Bi&&(Nr=Nr.add(Vr)),Vr=Vr.double(),rr>>=Bi,Br>>=Bi;return Tn&&(br=br.negate()),ar&&(Nr=Nr.negate()),Nr=new jt(M.mul(Nr.px,Dn.beta),Nr.py,Nr.pz),br.add(Nr)}multiply(Yt){Ue(Yt);let Dn,Tn,qt=Yt;const{endo:rr}=x;if(rr){const{k1neg:ar,k1:Br,k2neg:br,k2:Nr}=rr.splitScalar(qt);let{p:Vr,f:Ci}=this.wNAF(Br),{p:fi,f:li}=this.wNAF(Nr);Vr=gn.constTimeNegate(ar,Vr),fi=gn.constTimeNegate(br,fi),fi=new jt(M.mul(fi.px,rr.beta),fi.py,fi.pz),Dn=Vr.add(fi),Tn=Ci.add(li)}else{const{p:ar,f:Br}=this.wNAF(qt);Dn=ar,Tn=Br}return jt.normalizeZ([Dn,Tn])[0]}multiplyAndAddUnsafe(Yt,qt,Dn){const Tn=jt.BASE,rr=(Br,br)=>br!==oo&&br!==Bi&&Br.equals(Tn)?Br.multiply(br):Br.multiplyUnsafe(br),ar=rr(this,qt).add(rr(Yt,Dn));return ar.is0()?void 0:ar}toAffine(Yt){const{px:qt,py:Dn,pz:Tn}=this,rr=this.is0();null==Yt&&(Yt=rr?M.ONE:M.inv(Tn));const ar=M.mul(qt,Yt),Br=M.mul(Dn,Yt),br=M.mul(Tn,Yt);if(rr)return{x:M.ZERO,y:M.ZERO};if(!M.eql(br,M.ONE))throw new Error("invZ was invalid");return{x:ar,y:Br}}isTorsionFree(){const{h:Yt,isTorsionFree:qt}=x;if(Yt===Bi)return!0;if(qt)return qt(jt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Yt,clearCofactor:qt}=x;return Yt===Bi?this:qt?qt(jt,this):this.multiplyUnsafe(x.h)}toRawBytes(Yt=!0){return this.assertValidity(),z(jt,this,Yt)}toHex(Yt=!0){return fn(this.toRawBytes(Yt))}}jt.BASE=new jt(x.Gx,x.Gy,M.ONE),jt.ZERO=new jt(M.ZERO,M.ONE,M.ZERO);const cn=x.nBitLength,gn=function ao(b,x){const M=(J,ye)=>{const Ne=ye.negate();return J?Ne:ye},z=J=>({windows:Math.ceil(x/J)+1,windowSize:2**(J-1)});return{constTimeNegate:M,unsafeLadder(J,ye){let Ne=b.ZERO,Ue=J;for(;ye>oi;)ye&ts&&(Ne=Ne.add(Ue)),Ue=Ue.double(),ye>>=ts;return Ne},precomputeWindow(J,ye){const{windows:Ne,windowSize:Ue}=z(ye),rt=[];let xt=J,zt=xt;for(let jt=0;jt<Ne;jt++){zt=xt,rt.push(zt);for(let cn=1;cn<Ue;cn++)zt=zt.add(xt),rt.push(zt);xt=zt.double()}return rt},wNAF(J,ye,Ne){const{windows:Ue,windowSize:rt}=z(J);let xt=b.ZERO,zt=b.BASE;const jt=BigInt(2**J-1),cn=2**J,gn=BigInt(J);for(let tn=0;tn<Ue;tn++){const Yt=tn*rt;let qt=Number(Ne&jt);Ne>>=gn,qt>rt&&(qt-=cn,Ne+=ts);const Dn=Yt,Tn=Yt+Math.abs(qt)-1,ar=qt<0;0===qt?zt=zt.add(M(tn%2!=0,ye[Dn])):xt=xt.add(M(ar,ye[Tn]))}return{p:xt,f:zt}},wNAFCached(J,ye,Ne,Ue){const rt=J._WINDOW_SIZE||1;let xt=ye.get(J);return xt||(xt=this.precomputeWindow(J,rt),1!==rt&&ye.set(J,Ue(xt))),this.wNAF(rt,xt,Ne)}}}(jt,x.endo?Math.ceil(cn/2):cn);return{CURVE:x,ProjectivePoint:jt,normPrivateKeyToScalar:rt,weierstrassEquation:ye,isWithinCurveOrder:Ne}}({...x,toBytes(er,wr,Zr){const pi=wr.toAffine(),xr=M.toBytes(pi.x),Vi=xn;return Zr?Vi(Uint8Array.from([wr.hasEvenY()?2:3]),xr):Vi(Uint8Array.from([4]),xr,M.toBytes(pi.y))},fromBytes(er){const wr=er.length,Zr=er[0],pi=er.subarray(1);if(wr!==J||2!==Zr&&3!==Zr){if(wr===ye&&4===Zr)return{x:M.fromBytes(pi.subarray(0,M.BYTES)),y:M.fromBytes(pi.subarray(M.BYTES,2*M.BYTES))};throw new Error(`Point of length ${wr} was invalid. Expected ${J} compressed bytes or ${ye} uncompressed bytes`)}{const xr=an(pi);if(!function Ne(er){return oo<er&&er<M.ORDER}(xr))throw new Error("Point is not on curve");const Vi=jt(xr);let Ii=M.sqrt(Vi);return!(1&~Zr)!=((Ii&Bi)===Bi)&&(Ii=M.neg(Ii)),{x:xr,y:Ii}}}}),gn=er=>fn(En(er,x.nByteLength));function tn(er){return er>z>>Bi}const qt=(er,wr,Zr)=>an(er.slice(wr,Zr));class Dn{constructor(wr,Zr,pi){this.r=wr,this.s=Zr,this.recovery=pi,this.assertValidity()}static fromCompact(wr){const Zr=x.nByteLength;return wr=Kt("compactSignature",wr,2*Zr),new Dn(qt(wr,0,Zr),qt(wr,Zr,2*Zr))}static fromDER(wr){const{r:Zr,s:pi}=eo.toSig(Kt("DER",wr));return new Dn(Zr,pi)}assertValidity(){if(!cn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!cn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(wr){return new Dn(this.r,this.s,wr)}recoverPublicKey(wr){const{r:Zr,s:pi,recovery:xr}=this,Vi=Nr(Kt("msgHash",wr));if(null==xr||![0,1,2,3].includes(xr))throw new Error("recovery id invalid");const Ii=2===xr||3===xr?Zr+x.n:Zr;if(Ii>=M.ORDER)throw new Error("recovery id 2 or 3 invalid");const js=xt.fromHex((1&xr?"03":"02")+gn(Ii)),Vs=rt(Ii),Ia=Ue(-Vi*Vs),gl=Ue(pi*Vs),ka=xt.BASE.multiplyAndAddUnsafe(js,Ia,gl);if(!ka)throw new Error("point at infinify");return ka.assertValidity(),ka}hasHighS(){return tn(this.s)}normalizeS(){return this.hasHighS()?new Dn(this.r,Ue(-this.s),this.recovery):this}toDERRawBytes(){return Qt(this.toDERHex())}toDERHex(){return eo.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Qt(this.toCompactHex())}toCompactHex(){return gn(this.r)+gn(this.s)}}const Tn={isValidPrivateKey(er){try{return zt(er),!0}catch{return!1}},normPrivateKeyToScalar:zt,randomPrivateKey:()=>{const er=fr(x.n);return function fo(b,x,M=!1){const z=b.length,J=Hn(x),ye=fr(x);if(z<16||z<ye||z>1024)throw new Error(`expected ${ye}-1024 bytes of input, got ${z}`);const Ue=Bt(M?an(b):Xn(b),x-dn)+dn;return M?Gt(Ue,J):En(Ue,J)}(x.randomBytes(er),x.n)},precompute:(er=8,wr=xt.BASE)=>(wr._setWindowSize(er),wr.multiply(BigInt(3)),wr)};function ar(er){const wr=er instanceof Uint8Array,Zr="string"==typeof er,pi=(wr||Zr)&&er.length;return wr?pi===J||pi===ye:Zr?pi===2*J||pi===2*ye:er instanceof xt}const br=x.bits2int||function(er){const wr=an(er),Zr=8*er.length-x.nBitLength;return Zr>0?wr>>BigInt(Zr):wr},Nr=x.bits2int_modN||function(er){return Ue(br(er))},Vr=j(x.nBitLength);function Ci(er){if("bigint"!=typeof er)throw new Error("bigint expected");if(!(oo<=er&&er<Vr))throw new Error(`bigint expected < 2^${x.nBitLength}`);return En(er,x.nByteLength)}const li={lowS:x.lowS,prehash:!1},Ji={lowS:x.lowS,prehash:!1};return xt.BASE._setWindowSize(8),{CURVE:x,getPublicKey:function rr(er,wr=!0){return xt.fromPrivateKey(er).toRawBytes(wr)},getSharedSecret:function Br(er,wr,Zr=!0){if(ar(er))throw new Error("first arg must be private key");if(!ar(wr))throw new Error("second arg must be public key");return xt.fromHex(wr).multiply(zt(er)).toRawBytes(Zr)},sign:function ji(er,wr,Zr=li){const{seed:pi,k2sig:xr}=function fi(er,wr,Zr=li){if(["recovered","canonical"].some(gs=>gs in Zr))throw new Error("sign() legacy options not supported");const{hash:pi,randomBytes:xr}=x;let{lowS:Vi,prehash:Ii,extraEntropy:Ri}=Zr;null==Vi&&(Vi=!0),er=Kt("msgHash",er),Ii&&(er=Kt("prehashed msgHash",pi(er)));const js=Nr(er),Vs=zt(wr),Ia=[Ci(Vs),Ci(js)];if(null!=Ri){const gs=!0===Ri?xr(M.BYTES):Ri;Ia.push(Kt("extraEntropy",gs))}const gl=xn(...Ia),ka=js;return{seed:gl,k2sig:function za(gs){const kc=br(gs);if(!cn(kc))return;const Of=rt(kc),Bl=xt.BASE.multiply(kc).toAffine(),Ul=Ue(Bl.x);if(Ul===oo)return;const Cu=Ue(Of*Ue(ka+Ul*Vs));if(Cu===oo)return;let Du=(Bl.x===Ul?0:2)|Number(Bl.y&Bi),Ju=Cu;return Vi&&tn(Cu)&&(Ju=function Yt(er){return tn(er)?Ue(-er):er}(Cu),Du^=1),new Dn(Ul,Ju,Du)}}}(er,wr,Zr);return ot(x.hash.outputLen,x.nByteLength,x.hmac)(pi,xr)},verify:function qi(er,wr,Zr,pi=Ji){const xr=er;if(wr=Kt("msgHash",wr),Zr=Kt("publicKey",Zr),"strict"in pi)throw new Error("options.strict was renamed to lowS");const{lowS:Vi,prehash:Ii}=pi;let Ri,js;try{if("string"==typeof xr||xr instanceof Uint8Array)try{Ri=Dn.fromDER(xr)}catch(Bl){if(!(Bl instanceof eo.Err))throw Bl;Ri=Dn.fromCompact(xr)}else{if("object"!=typeof xr||"bigint"!=typeof xr.r||"bigint"!=typeof xr.s)throw new Error("PARSE");{const{r:Bl,s:Ul}=xr;Ri=new Dn(Bl,Ul)}}js=xt.fromHex(Zr)}catch(Bl){if("PARSE"===Bl.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Vi&&Ri.hasHighS())return!1;Ii&&(wr=x.hash(wr));const{r:Vs,s:Ia}=Ri,gl=Nr(wr),ka=rt(Ia),za=Ue(gl*ka),gs=Ue(Vs*ka),kc=xt.BASE.multiplyAndAddUnsafe(js,za,gs)?.toAffine();return!!kc&&Ue(kc.x)===Vs},ProjectivePoint:xt,Signature:Dn,utils:Tn}}function $t(b){return{hash:b,hmac:(x,...M)=>Uo(b,x,function $e(...b){const x=new Uint8Array(b.reduce((z,J)=>z+J.length,0));let M=0;return b.forEach(z=>{if(!G(z))throw new Error("Uint8Array expected");x.set(z,M),M+=z.length}),x}(...M)),randomBytes:yn}}BigInt(4);const un=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Cn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Sn=BigInt(1),kn=BigInt(2),Un=(b,x)=>(b+x/kn)/x;function Jn(b){const x=un,M=BigInt(3),z=BigInt(6),J=BigInt(11),ye=BigInt(22),Ne=BigInt(23),Ue=BigInt(44),rt=BigInt(88),xt=b*b*b%x,zt=xt*xt*b%x,jt=lt(zt,M,x)*zt%x,cn=lt(jt,M,x)*zt%x,gn=lt(cn,kn,x)*xt%x,tn=lt(gn,J,x)*gn%x,Yt=lt(tn,ye,x)*tn%x,qt=lt(Yt,Ue,x)*Yt%x,Dn=lt(qt,rt,x)*qt%x,Tn=lt(Dn,Ue,x)*Yt%x,rr=lt(Tn,M,x)*zt%x,ar=lt(rr,Ne,x)*tn%x,Br=lt(ar,z,x)*xt%x,br=lt(Br,kn,x);if(!sr.eql(sr.sqr(br),b))throw new Error("Cannot find square root");return br}const sr=function St(b,x,M=!1,z={}){if(b<=Vt)throw new Error(`Expected Field ORDER > 0, got ${b}`);const{nBitLength:J,nByteLength:ye}=rn(b,x);if(ye>2048)throw new Error("Field lengths over 2048 bytes are not supported");const Ne=function ft(b){if(b%Bn===Fn){const x=(b+dn)/Bn;return function(z,J){const ye=z.pow(J,x);if(!z.eql(z.sqr(ye),J))throw new Error("Cannot find square root");return ye}}if(b%Jr===cr){const x=(b-cr)/Jr;return function(z,J){const ye=z.mul(J,Pn),Ne=z.pow(ye,x),Ue=z.mul(J,Ne),rt=z.mul(z.mul(Ue,Pn),Ne),xt=z.mul(Ue,z.sub(rt,z.ONE));if(!z.eql(z.sqr(xt),J))throw new Error("Cannot find square root");return xt}}return function kt(b){const x=(b-dn)/Pn;let M,z,J;for(M=b-dn,z=0;M%Pn===Vt;M/=Pn,z++);for(J=Pn;J<b&&Ee(J,x,b)!==b-dn;J++);if(1===z){const Ne=(b+dn)/Bn;return function(rt,xt){const zt=rt.pow(xt,Ne);if(!rt.eql(rt.sqr(zt),xt))throw new Error("Cannot find square root");return zt}}const ye=(M+dn)/Pn;return function(Ue,rt){if(Ue.pow(rt,x)===Ue.neg(Ue.ONE))throw new Error("Cannot find square root");let xt=z,zt=Ue.pow(Ue.mul(Ue.ONE,J),M),jt=Ue.pow(rt,ye),cn=Ue.pow(rt,M);for(;!Ue.eql(cn,Ue.ONE);){if(Ue.eql(cn,Ue.ZERO))return Ue.ZERO;let gn=1;for(let Yt=Ue.sqr(cn);gn<xt&&!Ue.eql(Yt,Ue.ONE);gn++)Yt=Ue.sqr(Yt);const tn=Ue.pow(zt,dn<<BigInt(xt-gn-1));zt=Ue.sqr(tn),jt=Ue.mul(jt,tn),cn=Ue.mul(cn,zt),xt=gn}return jt}}(b)}(b),Ue=Object.freeze({ORDER:b,BITS:J,BYTES:ye,MASK:j(J),ZERO:Vt,ONE:dn,create:rt=>Bt(rt,b),isValid:rt=>{if("bigint"!=typeof rt)throw new Error("Invalid field element: expected bigint, got "+typeof rt);return Vt<=rt&&rt<b},is0:rt=>rt===Vt,isOdd:rt=>(rt&dn)===dn,neg:rt=>Bt(-rt,b),eql:(rt,xt)=>rt===xt,sqr:rt=>Bt(rt*rt,b),add:(rt,xt)=>Bt(rt+xt,b),sub:(rt,xt)=>Bt(rt-xt,b),mul:(rt,xt)=>Bt(rt*xt,b),pow:(rt,xt)=>function Mr(b,x,M){if(M<Vt)throw new Error("Expected power > 0");if(M===Vt)return b.ONE;if(M===dn)return x;let z=b.ONE,J=x;for(;M>Vt;)M&dn&&(z=b.mul(z,J)),J=b.sqr(J),M>>=dn;return z}(Ue,rt,xt),div:(rt,xt)=>Bt(rt*Pe(xt,b),b),sqrN:rt=>rt*rt,addN:(rt,xt)=>rt+xt,subN:(rt,xt)=>rt-xt,mulN:(rt,xt)=>rt*xt,inv:rt=>Pe(rt,b),sqrt:z.sqrt||(rt=>Ne(Ue,rt)),invertBatch:rt=>function ii(b,x){const M=new Array(x.length),z=x.reduce((ye,Ne,Ue)=>b.is0(Ne)?ye:(M[Ue]=ye,b.mul(ye,Ne)),b.ONE),J=b.inv(z);return x.reduceRight((ye,Ne,Ue)=>b.is0(Ne)?ye:(M[Ue]=b.mul(ye,M[Ue]),b.mul(ye,Ne)),J),M}(Ue,rt),cmov:(rt,xt,zt)=>zt?xt:rt,toBytes:rt=>M?Gt(rt,ye):En(rt,ye),fromBytes:rt=>{if(rt.length!==ye)throw new Error(`Fp.fromBytes: expected ${ye}, got ${rt.length}`);return M?Xn(rt):an(rt)}});return Object.freeze(Ue)}(un,void 0,void 0,{sqrt:Jn}),kr=function Mt(b,x){const M=z=>et({...b,...$t(z)});return Object.freeze({...M(x),create:M})}({a:BigInt(0),b:BigInt(7),Fp:sr,n:Cn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:b=>{const x=Cn,M=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),z=-Sn*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),J=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ye=M,Ne=BigInt("0x100000000000000000000000000000000"),Ue=Un(ye*b,x),rt=Un(-z*b,x);let xt=Bt(b-Ue*M-rt*J,x),zt=Bt(-Ue*z-rt*ye,x);const jt=xt>Ne,cn=zt>Ne;if(jt&&(xt=x-xt),cn&&(zt=x-zt),xt>Ne||zt>Ne)throw new Error("splitScalar: Endomorphism failed, k="+b);return{k1neg:jt,k1:xt,k2neg:cn,k2:zt}}}},Ge),mr=BigInt(0),bi=b=>"bigint"==typeof b&&mr<b&&b<un,gr={};function ai(b,...x){let M=gr[b];if(void 0===M){const z=Ge(Uint8Array.from(b,J=>J.charCodeAt(0)));M=xn(z,z),gr[b]=M}return Ge(xn(M,...x))}const yo=b=>b.toRawBytes(!0).slice(1),$r=b=>En(b,32),Ki=b=>Bt(b,un),ls=b=>Bt(b,Cn),bs=kr.ProjectivePoint;function Sr(b){let x=kr.utils.normPrivateKeyToScalar(b),M=bs.fromPrivateKey(x);return{scalar:M.hasEvenY()?x:ls(-x),bytes:yo(M)}}function ra(b){if(!bi(b))throw new Error("bad x: need 0 < x < p");const x=Ki(b*b);let z=Jn(Ki(x*b+BigInt(7)));z%kn!==mr&&(z=Ki(-z));const J=new bs(b,z,Sn);return J.assertValidity(),J}function ga(...b){return ls(an(ai("BIP0340/challenge",...b)))}function Ns(b,x,M){const z=Kt("signature",b,64),J=Kt("message",x),ye=Kt("publicKey",M,32);try{const Ne=ra(an(ye)),Ue=an(z.subarray(0,32));if(!bi(Ue))return!1;const rt=an(z.subarray(32,64));if(!(b=>"bigint"==typeof b&&mr<b&&b<Cn)(rt))return!1;const xt=ga($r(Ue),yo(Ne),J),zt=((b,x,M)=>bs.BASE.multiplyAndAddUnsafe(b,x,M))(Ne,rt,ls(-xt));return!(!zt||!zt.hasEvenY()||zt.toAffine().x!==Ue)}catch{return!1}}const zs={getPublicKey:function Eo(b){return Sr(b).bytes},sign:function Rs(b,x,M=yn(32)){const z=Kt("message",b),{bytes:J,scalar:ye}=Sr(x),Ne=Kt("auxRand",M,32),Ue=$r(ye^an(ai("BIP0340/aux",Ne))),rt=ai("BIP0340/nonce",Ue,J,z),xt=ls(an(rt));if(xt===mr)throw new Error("sign failed: k is zero");const{bytes:zt,scalar:jt}=Sr(xt),cn=ga(zt,J,z),gn=new Uint8Array(64);if(gn.set(zt,0),gn.set($r(ls(jt+cn*ye)),32),!Ns(gn,z,J))throw new Error("sign: Invalid signature produced");return gn},verify:Ns,utils:{randomPrivateKey:kr.utils.randomPrivateKey,lift_x:ra,pointToBytes:yo,numberToBytesBE:En,bytesToNumberBE:an,taggedHash:ai,mod:Bt}};var qr=r(6391);function rs(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function to(b,...x){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(x.length>0&&!x.includes(b.length))throw new Error(`Expected Uint8Array of length ${x}, not of length=${b.length}`)}const tr={number:rs,bool:function is(b){if("boolean"!=typeof b)throw new Error(`Expected boolean, not ${b}`)},bytes:to,hash:function Wi(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");rs(b.outputLen),rs(b.blockLen)},exists:function ws(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")},output:function Io(b,x){to(b);const M=x.outputLen;if(b.length<M)throw new Error(`digestInto() expects output buffer of length at least ${M}`)}};class os extends qr.Vw{constructor(x,M,z,J){super(),this.blockLen=x,this.outputLen=M,this.padOffset=z,this.isLE=J,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(x),this.view=(0,qr.O8)(this.buffer)}update(x){tr.exists(this);const{view:M,buffer:z,blockLen:J}=this,ye=(x=(0,qr.ZJ)(x)).length;for(let Ne=0;Ne<ye;){const Ue=Math.min(J-this.pos,ye-Ne);if(Ue!==J)z.set(x.subarray(Ne,Ne+Ue),this.pos),this.pos+=Ue,Ne+=Ue,this.pos===J&&(this.process(M,0),this.pos=0);else{const rt=(0,qr.O8)(x);for(;J<=ye-Ne;Ne+=J)this.process(rt,Ne)}}return this.length+=x.length,this.roundClean(),this}digestInto(x){tr.exists(this),tr.output(x,this),this.finished=!0;const{buffer:M,view:z,blockLen:J,isLE:ye}=this;let{pos:Ne}=this;M[Ne++]=128,this.buffer.subarray(Ne).fill(0),this.padOffset>J-Ne&&(this.process(z,0),Ne=0);for(let jt=Ne;jt<J;jt++)M[jt]=0;(function xo(b,x,M,z){if("function"==typeof b.setBigUint64)return b.setBigUint64(x,M,z);const J=BigInt(32),ye=BigInt(4294967295),Ne=Number(M>>J&ye),Ue=Number(M&ye),xt=z?0:4;b.setUint32(x+(z?4:0),Ne,z),b.setUint32(x+xt,Ue,z)})(z,J-8,BigInt(8*this.length),ye),this.process(z,0);const Ue=(0,qr.O8)(x),rt=this.outputLen;if(rt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const xt=rt/4,zt=this.get();if(xt>zt.length)throw new Error("_sha2: outputLen bigger than state");for(let jt=0;jt<xt;jt++)Ue.setUint32(4*jt,zt[jt],ye)}digest(){const{buffer:x,outputLen:M}=this;this.digestInto(x);const z=x.slice(0,M);return this.destroy(),z}_cloneInto(x){x||(x=new this.constructor),x.set(...this.get());const{blockLen:M,buffer:z,length:J,finished:ye,destroyed:Ne,pos:Ue}=this;return x.length=J,x.pos=Ue,x.finished=ye,x.destroyed=Ne,J%M&&x.buffer.set(z),x}}const Ms=(b,x,M)=>b&x^~b&M,Ps=(b,x,M)=>b&x^b&M^x&M,ya=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Yo=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ai=new Uint32Array(64);class ia extends os{constructor(){super(64,32,8,!1),this.A=0|Yo[0],this.B=0|Yo[1],this.C=0|Yo[2],this.D=0|Yo[3],this.E=0|Yo[4],this.F=0|Yo[5],this.G=0|Yo[6],this.H=0|Yo[7]}get(){const{A:x,B:M,C:z,D:J,E:ye,F:Ne,G:Ue,H:rt}=this;return[x,M,z,J,ye,Ne,Ue,rt]}set(x,M,z,J,ye,Ne,Ue,rt){this.A=0|x,this.B=0|M,this.C=0|z,this.D=0|J,this.E=0|ye,this.F=0|Ne,this.G=0|Ue,this.H=0|rt}process(x,M){for(let jt=0;jt<16;jt++,M+=4)Ai[jt]=x.getUint32(M,!1);for(let jt=16;jt<64;jt++){const cn=Ai[jt-15],gn=Ai[jt-2],tn=(0,qr.Ow)(cn,7)^(0,qr.Ow)(cn,18)^cn>>>3,Yt=(0,qr.Ow)(gn,17)^(0,qr.Ow)(gn,19)^gn>>>10;Ai[jt]=Yt+Ai[jt-7]+tn+Ai[jt-16]|0}let{A:z,B:J,C:ye,D:Ne,E:Ue,F:rt,G:xt,H:zt}=this;for(let jt=0;jt<64;jt++){const gn=zt+((0,qr.Ow)(Ue,6)^(0,qr.Ow)(Ue,11)^(0,qr.Ow)(Ue,25))+Ms(Ue,rt,xt)+ya[jt]+Ai[jt]|0,Yt=((0,qr.Ow)(z,2)^(0,qr.Ow)(z,13)^(0,qr.Ow)(z,22))+Ps(z,J,ye)|0;zt=xt,xt=rt,rt=Ue,Ue=Ne+gn|0,Ne=ye,ye=J,J=z,z=gn+Yt|0}z=z+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Ne=Ne+this.D|0,Ue=Ue+this.E|0,rt=rt+this.F|0,xt=xt+this.G|0,zt=zt+this.H|0,this.set(z,J,ye,Ne,Ue,rt,xt,zt)}roundClean(){Ai.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class bl extends ia{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const Qo=(0,qr.ld)(()=>new ia);(0,qr.ld)(()=>new bl);var lo=r(3813);function ss(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`positive integer expected, not ${b}`)}function bo(b){if("boolean"!=typeof b)throw new Error(`boolean expected, not ${b}`)}function Zo(b){return b instanceof Uint8Array||null!=b&&"object"==typeof b&&"Uint8Array"===b.constructor.name}function _i(b,...x){if(!Zo(b))throw new Error("Uint8Array expected");if(x.length>0&&!x.includes(b.length))throw new Error(`Uint8Array expected of length ${x}, not of length=${b.length}`)}function ko(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")}function Gs(b,x){_i(b);const M=x.outputLen;if(b.length<M)throw new Error(`digestInto() expects output buffer of length at least ${M}`)}const je=b=>new Uint32Array(b.buffer,b.byteOffset,Math.floor(b.byteLength/4)),re=b=>new DataView(b.buffer,b.byteOffset,b.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Ho(b){if("string"==typeof b)b=function po(b){if("string"!=typeof b)throw new Error("string expected, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b);else{if(!Zo(b))throw new Error("Uint8Array expected, got "+typeof b);b=b.slice()}return b}function Ya(b,x){if(b.length!==x.length)return!1;let M=0;for(let z=0;z<b.length;z++)M|=b[z]^x[z];return 0===M}const ue=(b,x)=>(Object.assign(x,b),x);function ce(b,x,M,z){if("function"==typeof b.setBigUint64)return b.setBigUint64(x,M,z);const J=BigInt(32),ye=BigInt(4294967295),Ne=Number(M>>J&ye),Ue=Number(M&ye),xt=z?0:4;b.setUint32(x+(z?4:0),Ne,z),b.setUint32(x+xt,Ue,z)}const Ut=new Uint8Array(16),_r=je(Ut),So=(b,x,M,z)=>({s3:M<<31|z>>>1,s2:x<<31|M>>>1,s1:b<<31|x>>>1,s0:b>>>1^225<<24&-(1&z)}),qo=b=>(b>>>0&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;class rc{constructor(x,M){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,_i(x=Ho(x),16);const z=re(x);let J=z.getUint32(0,!1),ye=z.getUint32(4,!1),Ne=z.getUint32(8,!1),Ue=z.getUint32(12,!1);const rt=[];for(let tn=0;tn<128;tn++)rt.push({s0:qo(J),s1:qo(ye),s2:qo(Ne),s3:qo(Ue)}),({s0:J,s1:ye,s2:Ne,s3:Ue}=So(J,ye,Ne,Ue));const xt=(b=M||1024)>65536?8:b>1024?4:2;var b;if(![1,2,4,8].includes(xt))throw new Error(`ghash: wrong window size=${xt}, should be 2, 4 or 8`);this.W=xt;const jt=128/xt,cn=this.windowSize=2**xt,gn=[];for(let tn=0;tn<jt;tn++)for(let Yt=0;Yt<cn;Yt++){let qt=0,Dn=0,Tn=0,rr=0;for(let ar=0;ar<xt;ar++){if(!(Yt>>>xt-ar-1&1))continue;const{s0:br,s1:Nr,s2:Vr,s3:Ci}=rt[xt*tn+ar];qt^=br,Dn^=Nr,Tn^=Vr,rr^=Ci}gn.push({s0:qt,s1:Dn,s2:Tn,s3:rr})}this.t=gn}_updateBlock(x,M,z,J){x^=this.s0,M^=this.s1,z^=this.s2,J^=this.s3;const{W:ye,t:Ne,windowSize:Ue}=this;let rt=0,xt=0,zt=0,jt=0;const cn=(1<<ye)-1;let gn=0;for(const tn of[x,M,z,J])for(let Yt=0;Yt<4;Yt++){const qt=tn>>>8*Yt&255;for(let Dn=8/ye-1;Dn>=0;Dn--){const Tn=qt>>>ye*Dn&cn,{s0:rr,s1:ar,s2:Br,s3:br}=Ne[gn*Ue+Tn];rt^=rr,xt^=ar,zt^=Br,jt^=br,gn+=1}}this.s0=rt,this.s1=xt,this.s2=zt,this.s3=jt}update(x){x=Ho(x),ko(this);const M=je(x),z=Math.floor(x.length/16),J=x.length%16;for(let ye=0;ye<z;ye++)this._updateBlock(M[4*ye+0],M[4*ye+1],M[4*ye+2],M[4*ye+3]);return J&&(Ut.set(x.subarray(16*z)),this._updateBlock(_r[0],_r[1],_r[2],_r[3]),_r.fill(0)),this}destroy(){const{t:x}=this;for(const M of x)M.s0=0,M.s1=0,M.s2=0,M.s3=0}digestInto(x){ko(this),Gs(x,this),this.finished=!0;const{s0:M,s1:z,s2:J,s3:ye}=this,Ne=je(x);return Ne[0]=M,Ne[1]=z,Ne[2]=J,Ne[3]=ye,x}digest(){const x=new Uint8Array(16);return this.digestInto(x),this.destroy(),x}}class El extends rc{constructor(x,M){const z=function Pa(b){b.reverse();const x=1&b[15];let M=0;for(let z=0;z<b.length;z++){const J=b[z];b[z]=J>>>1|M,M=(1&J)<<7}return b[0]^=225&-x,b}((x=Ho(x)).slice());super(z,M),z.fill(0)}update(x){x=Ho(x),ko(this);const M=je(x),z=x.length%16,J=Math.floor(x.length/16);for(let ye=0;ye<J;ye++)this._updateBlock(qo(M[4*ye+3]),qo(M[4*ye+2]),qo(M[4*ye+1]),qo(M[4*ye+0]));return z&&(Ut.set(x.subarray(16*J)),this._updateBlock(qo(_r[3]),qo(_r[2]),qo(_r[1]),qo(_r[0])),_r.fill(0)),this}digestInto(x){ko(this),Gs(x,this),this.finished=!0;const{s0:M,s1:z,s2:J,s3:ye}=this,Ne=je(x);return Ne[0]=M,Ne[1]=z,Ne[2]=J,Ne[3]=ye,x.reverse()}}function cs(b){const x=(z,J)=>b(J,z.length).update(Ho(z)).digest(),M=b(new Uint8Array(16),0);return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=(z,J)=>b(z,J),x}function sa(b){return b<<1^283&-(b>>7)}function Ba(b,x){let M=0;for(;x>0;x>>=1)M^=b&-(1&x),b=sa(b);return M}cs((b,x)=>new rc(b,x)),cs((b,x)=>new El(b,x)),new Uint8Array(16);const _c=(()=>{let b=new Uint8Array(256);for(let M=0,z=1;M<256;M++,z^=sa(z))b[M]=z;const x=new Uint8Array(256);x[0]=99;for(let M=0;M<255;M++){let z=b[255-M];z|=z<<8,x[b[M]]=255&(z^z>>4^z>>5^z>>6^z>>7^99)}return x})(),Pu=_c.map((b,x)=>_c.indexOf(x)),ic=b=>b<<24|b>>>8,Ua=b=>b<<8|b>>>24;function zl(b,x){if(256!==b.length)throw new Error("Wrong sbox length");const M=new Uint32Array(256).map((xt,zt)=>x(b[zt])),z=M.map(Ua),J=z.map(Ua),ye=J.map(Ua),Ne=new Uint32Array(65536),Ue=new Uint32Array(65536),rt=new Uint16Array(65536);for(let xt=0;xt<256;xt++)for(let zt=0;zt<256;zt++){const jt=256*xt+zt;Ne[jt]=M[xt]^z[zt],Ue[jt]=J[xt]^ye[zt],rt[jt]=b[xt]<<8|b[zt]}return{sbox:b,sbox2:rt,T0:M,T1:z,T2:J,T3:ye,T01:Ne,T23:Ue}}const wa=zl(_c,b=>Ba(b,3)<<24|b<<16|b<<8|Ba(b,2)),Za=zl(Pu,b=>Ba(b,11)<<24|Ba(b,13)<<16|Ba(b,9)<<8|Ba(b,14)),Dl=(()=>{const b=new Uint8Array(16);for(let x=0,M=1;x<16;x++,M=sa(M))b[x]=M;return b})();function Ro(b){_i(b);const x=b.length;if(![16,24,32].includes(x))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${x}`);const{sbox2:M}=wa,z=je(b),J=z.length,ye=Ue=>xa(M,Ue,Ue,Ue,Ue),Ne=new Uint32Array(x+28);Ne.set(z);for(let Ue=J;Ue<Ne.length;Ue++){let rt=Ne[Ue-1];Ue%J==0?rt=ye(ic(rt))^Dl[Ue/J-1]:J>6&&Ue%J==4&&(rt=ye(rt)),Ne[Ue]=Ne[Ue-J]^rt}return Ne}function Ea(b,x,M,z,J,ye){return b[M<<8&65280|z>>>8&255]^x[J>>>8&65280|ye>>>24&255]}function xa(b,x,M,z,J){return b[255&x|65280&M]|b[z>>>16&255|J>>>16&65280]<<16}function Jo(b,x,M,z,J){const{sbox2:ye,T01:Ne,T23:Ue}=wa;let rt=0;x^=b[rt++],M^=b[rt++],z^=b[rt++],J^=b[rt++];const xt=b.length/4-2;for(let tn=0;tn<xt;tn++){const Yt=b[rt++]^Ea(Ne,Ue,x,M,z,J),qt=b[rt++]^Ea(Ne,Ue,M,z,J,x),Dn=b[rt++]^Ea(Ne,Ue,z,J,x,M),Tn=b[rt++]^Ea(Ne,Ue,J,x,M,z);x=Yt,M=qt,z=Dn,J=Tn}return{s0:b[rt++]^xa(ye,x,M,z,J),s1:b[rt++]^xa(ye,M,z,J,x),s2:b[rt++]^xa(ye,z,J,x,M),s3:b[rt++]^xa(ye,J,x,M,z)}}function yc(b,x,M,z,J){const{sbox2:ye,T01:Ne,T23:Ue}=Za;let rt=0;x^=b[rt++],M^=b[rt++],z^=b[rt++],J^=b[rt++];const xt=b.length/4-2;for(let tn=0;tn<xt;tn++){const Yt=b[rt++]^Ea(Ne,Ue,x,J,z,M),qt=b[rt++]^Ea(Ne,Ue,M,x,J,z),Dn=b[rt++]^Ea(Ne,Ue,z,M,x,J),Tn=b[rt++]^Ea(Ne,Ue,J,z,M,x);x=Yt,M=qt,z=Dn,J=Tn}return{s0:b[rt++]^xa(ye,x,J,z,M),s1:b[rt++]^xa(ye,M,x,J,z),s2:b[rt++]^xa(ye,z,M,x,J),s3:b[rt++]^xa(ye,J,z,M,x)}}function al(b,x){if(!x)return new Uint8Array(b);if(_i(x),x.length<b)throw new Error(`aes: wrong destination length, expected at least ${b}, got: ${x.length}`);return x}const Ar=ue({blockSize:16,nonceLength:16},function(x,M,z={}){_i(x),_i(M,16);const J=!z.disablePadding;return{encrypt:(ye,Ne)=>{const Ue=Ro(x),{b:rt,o:xt,out:zt}=function Ca(b,x,M){let z=b.length;const J=z%16;if(!x&&0!==J)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const ye=je(b);if(x){let rt=16-J;rt||(rt=16),z+=rt}const Ne=al(z,M);return{b:ye,o:je(Ne),out:Ne}}(ye,J,Ne),jt=je(M);let cn=jt[0],gn=jt[1],tn=jt[2],Yt=jt[3],qt=0;for(;qt+4<=rt.length;)cn^=rt[qt+0],gn^=rt[qt+1],tn^=rt[qt+2],Yt^=rt[qt+3],({s0:cn,s1:gn,s2:tn,s3:Yt}=Jo(Ue,cn,gn,tn,Yt)),xt[qt++]=cn,xt[qt++]=gn,xt[qt++]=tn,xt[qt++]=Yt;if(J){const Dn=function Ui(b){const x=new Uint8Array(16),M=je(x);x.set(b);const z=16-b.length;for(let J=16-z;J<16;J++)x[J]=z;return M}(ye.subarray(4*qt));cn^=Dn[0],gn^=Dn[1],tn^=Dn[2],Yt^=Dn[3],({s0:cn,s1:gn,s2:tn,s3:Yt}=Jo(Ue,cn,gn,tn,Yt)),xt[qt++]=cn,xt[qt++]=gn,xt[qt++]=tn,xt[qt++]=Yt}return Ue.fill(0),zt},decrypt:(ye,Ne)=>{!function Xl(b){if(_i(b),b.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(ye);const Ue=function uo(b){const x=Ro(b),M=x.slice(),z=x.length,{sbox2:J}=wa,{T0:ye,T1:Ne,T2:Ue,T3:rt}=Za;for(let xt=0;xt<z;xt+=4)for(let zt=0;zt<4;zt++)M[xt+zt]=x[z-xt-4+zt];x.fill(0);for(let xt=4;xt<z-4;xt++){const zt=M[xt],jt=xa(J,zt,zt,zt,zt);M[xt]=ye[255&jt]^Ne[jt>>>8&255]^Ue[jt>>>16&255]^rt[jt>>>24]}return M}(x),rt=je(M),xt=al(ye.length,Ne),zt=je(ye),jt=je(xt);let cn=rt[0],gn=rt[1],tn=rt[2],Yt=rt[3];for(let qt=0;qt+4<=zt.length;){const Dn=cn,Tn=gn,rr=tn,ar=Yt;cn=zt[qt+0],gn=zt[qt+1],tn=zt[qt+2],Yt=zt[qt+3];const{s0:Br,s1:br,s2:Nr,s3:Vr}=yc(Ue,cn,gn,tn,Yt);jt[qt++]=Br^Dn,jt[qt++]=br^Tn,jt[qt++]=Nr^rr,jt[qt++]=Vr^ar}return Ue.fill(0),function us(b,x){if(!x)return b;const M=b.length;if(!M)throw new Error("aes/pcks5: empty ciphertext not allowed");const z=b[M-1];if(z<=0||z>16)throw new Error(`aes/pcks5: wrong padding byte: ${z}`);const J=b.subarray(0,-z);for(let ye=0;ye<z;ye++)if(b[M-ye-1]!==z)throw new Error("aes/pcks5: wrong padding");return J}(xt,J)}}}),go=(b,x)=>255&b[x++]|(255&b[x++])<<8;class oc{constructor(x){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,_i(x=Ho(x),32);const M=go(x,0),z=go(x,2),J=go(x,4),ye=go(x,6),Ne=go(x,8),Ue=go(x,10),rt=go(x,12),xt=go(x,14);this.r[0]=8191&M,this.r[1]=8191&(M>>>13|z<<3),this.r[2]=7939&(z>>>10|J<<6),this.r[3]=8191&(J>>>7|ye<<9),this.r[4]=255&(ye>>>4|Ne<<12),this.r[5]=Ne>>>1&8190,this.r[6]=8191&(Ne>>>14|Ue<<2),this.r[7]=8065&(Ue>>>11|rt<<5),this.r[8]=8191&(rt>>>8|xt<<8),this.r[9]=xt>>>5&127;for(let zt=0;zt<8;zt++)this.pad[zt]=go(x,16+2*zt)}process(x,M,z=!1){const J=z?0:2048,{h:ye,r:Ne}=this,Ue=Ne[0],rt=Ne[1],xt=Ne[2],zt=Ne[3],jt=Ne[4],cn=Ne[5],gn=Ne[6],tn=Ne[7],Yt=Ne[8],qt=Ne[9],Dn=go(x,M+0),Tn=go(x,M+2),rr=go(x,M+4),ar=go(x,M+6),Br=go(x,M+8),br=go(x,M+10),Nr=go(x,M+12),Vr=go(x,M+14);let Ci=ye[0]+(8191&Dn),fi=ye[1]+(8191&(Dn>>>13|Tn<<3)),li=ye[2]+(8191&(Tn>>>10|rr<<6)),Ji=ye[3]+(8191&(rr>>>7|ar<<9)),ji=ye[4]+(8191&(ar>>>4|Br<<12)),qi=ye[5]+(Br>>>1&8191),er=ye[6]+(8191&(Br>>>14|br<<2)),wr=ye[7]+(8191&(br>>>11|Nr<<5)),Zr=ye[8]+(8191&(Nr>>>8|Vr<<8)),pi=ye[9]+(Vr>>>5|J),xr=0,Vi=xr+Ci*Ue+fi*(5*qt)+li*(5*Yt)+Ji*(5*tn)+ji*(5*gn);xr=Vi>>>13,Vi&=8191,Vi+=qi*(5*cn)+er*(5*jt)+wr*(5*zt)+Zr*(5*xt)+pi*(5*rt),xr+=Vi>>>13,Vi&=8191;let Ii=xr+Ci*rt+fi*Ue+li*(5*qt)+Ji*(5*Yt)+ji*(5*tn);xr=Ii>>>13,Ii&=8191,Ii+=qi*(5*gn)+er*(5*cn)+wr*(5*jt)+Zr*(5*zt)+pi*(5*xt),xr+=Ii>>>13,Ii&=8191;let Ri=xr+Ci*xt+fi*rt+li*Ue+Ji*(5*qt)+ji*(5*Yt);xr=Ri>>>13,Ri&=8191,Ri+=qi*(5*tn)+er*(5*gn)+wr*(5*cn)+Zr*(5*jt)+pi*(5*zt),xr+=Ri>>>13,Ri&=8191;let js=xr+Ci*zt+fi*xt+li*rt+Ji*Ue+ji*(5*qt);xr=js>>>13,js&=8191,js+=qi*(5*Yt)+er*(5*tn)+wr*(5*gn)+Zr*(5*cn)+pi*(5*jt),xr+=js>>>13,js&=8191;let Vs=xr+Ci*jt+fi*zt+li*xt+Ji*rt+ji*Ue;xr=Vs>>>13,Vs&=8191,Vs+=qi*(5*qt)+er*(5*Yt)+wr*(5*tn)+Zr*(5*gn)+pi*(5*cn),xr+=Vs>>>13,Vs&=8191;let Ia=xr+Ci*cn+fi*jt+li*zt+Ji*xt+ji*rt;xr=Ia>>>13,Ia&=8191,Ia+=qi*Ue+er*(5*qt)+wr*(5*Yt)+Zr*(5*tn)+pi*(5*gn),xr+=Ia>>>13,Ia&=8191;let gl=xr+Ci*gn+fi*cn+li*jt+Ji*zt+ji*xt;xr=gl>>>13,gl&=8191,gl+=qi*rt+er*Ue+wr*(5*qt)+Zr*(5*Yt)+pi*(5*tn),xr+=gl>>>13,gl&=8191;let ka=xr+Ci*tn+fi*gn+li*cn+Ji*jt+ji*zt;xr=ka>>>13,ka&=8191,ka+=qi*xt+er*rt+wr*Ue+Zr*(5*qt)+pi*(5*Yt),xr+=ka>>>13,ka&=8191;let za=xr+Ci*Yt+fi*tn+li*gn+Ji*cn+ji*jt;xr=za>>>13,za&=8191,za+=qi*zt+er*xt+wr*rt+Zr*Ue+pi*(5*qt),xr+=za>>>13,za&=8191;let gs=xr+Ci*qt+fi*Yt+li*tn+Ji*gn+ji*cn;xr=gs>>>13,gs&=8191,gs+=qi*jt+er*zt+wr*xt+Zr*rt+pi*Ue,xr+=gs>>>13,gs&=8191,xr=(xr<<2)+xr|0,xr=xr+Vi|0,Vi=8191&xr,xr>>>=13,Ii+=xr,ye[0]=Vi,ye[1]=Ii,ye[2]=Ri,ye[3]=js,ye[4]=Vs,ye[5]=Ia,ye[6]=gl,ye[7]=ka,ye[8]=za,ye[9]=gs}finalize(){const{h:x,pad:M}=this,z=new Uint16Array(10);let J=x[1]>>>13;x[1]&=8191;for(let Ue=2;Ue<10;Ue++)x[Ue]+=J,J=x[Ue]>>>13,x[Ue]&=8191;x[0]+=5*J,J=x[0]>>>13,x[0]&=8191,x[1]+=J,J=x[1]>>>13,x[1]&=8191,x[2]+=J,z[0]=x[0]+5,J=z[0]>>>13,z[0]&=8191;for(let Ue=1;Ue<10;Ue++)z[Ue]=x[Ue]+J,J=z[Ue]>>>13,z[Ue]&=8191;z[9]-=8192;let ye=(1^J)-1;for(let Ue=0;Ue<10;Ue++)z[Ue]&=ye;ye=~ye;for(let Ue=0;Ue<10;Ue++)x[Ue]=x[Ue]&ye|z[Ue];x[0]=65535&(x[0]|x[1]<<13),x[1]=65535&(x[1]>>>3|x[2]<<10),x[2]=65535&(x[2]>>>6|x[3]<<7),x[3]=65535&(x[3]>>>9|x[4]<<4),x[4]=65535&(x[4]>>>12|x[5]<<1|x[6]<<14),x[5]=65535&(x[6]>>>2|x[7]<<11),x[6]=65535&(x[7]>>>5|x[8]<<8),x[7]=65535&(x[8]>>>8|x[9]<<5);let Ne=x[0]+M[0];x[0]=65535&Ne;for(let Ue=1;Ue<8;Ue++)Ne=(x[Ue]+M[Ue]|0)+(Ne>>>16)|0,x[Ue]=65535&Ne}update(x){ko(this);const{buffer:M,blockLen:z}=this,J=(x=Ho(x)).length;for(let ye=0;ye<J;){const Ne=Math.min(z-this.pos,J-ye);if(Ne!==z)M.set(x.subarray(ye,ye+Ne),this.pos),this.pos+=Ne,ye+=Ne,this.pos===z&&(this.process(M,0,!1),this.pos=0);else for(;z<=J-ye;ye+=z)this.process(x,ye)}return this}destroy(){this.h.fill(0),this.r.fill(0),this.buffer.fill(0),this.pad.fill(0)}digestInto(x){ko(this),Gs(x,this),this.finished=!0;const{buffer:M,h:z}=this;let{pos:J}=this;if(J){for(M[J++]=1;J<16;J++)M[J]=0;this.process(M,0,!0)}this.finalize();let ye=0;for(let Ne=0;Ne<8;Ne++)x[ye++]=z[Ne]>>>0,x[ye++]=z[Ne]>>>8;return x}digest(){const{buffer:x,outputLen:M}=this;this.digestInto(x);const z=x.slice(0,M);return this.destroy(),z}}const ro=function $a(b){const x=(z,J)=>b(J).update(Ho(z)).digest(),M=b(new Uint8Array(32));return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=z=>b(z),x}(b=>new oc(b)),ja=b=>Uint8Array.from(b.split("").map(x=>x.charCodeAt(0))),Di=ja("expand 16-byte k"),Bs=ja("expand 32-byte k"),aa=je(Di),No=je(Bs);function de(b,x){return b<<x|b>>>32-x}function q(b){return b.byteOffset%4==0}No.slice();const _n=2**32-1,On=new Uint32Array;function Yr(b,x){const{allowShortKeys:M,extendNonceFn:z,counterLength:J,counterRight:ye,rounds:Ne}=function Wl(b,x){if(null==x||"object"!=typeof x)throw new Error("options must be defined");return Object.assign(b,x)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},x);if("function"!=typeof b)throw new Error("core must be a function");return ss(J),ss(Ne),bo(ye),bo(M),(Ue,rt,xt,zt,jt=0)=>{_i(Ue),_i(rt),_i(xt);const cn=xt.length;if(zt||(zt=new Uint8Array(cn)),_i(zt),ss(jt),jt<0||jt>=_n)throw new Error("arx: counter overflow");if(zt.length<cn)throw new Error(`arx: output (${zt.length}) is shorter than data (${cn})`);const gn=[];let Yt,qt,tn=Ue.length;if(32===tn)Yt=Ue.slice(),gn.push(Yt),qt=No;else{if(16!==tn||!M)throw new Error(`arx: invalid 32-byte key, got length=${tn}`);Yt=new Uint8Array(32),Yt.set(Ue),Yt.set(Ue,16),qt=aa,gn.push(Yt)}q(rt)||(rt=rt.slice(),gn.push(rt));const Dn=je(Yt);if(z){if(24!==rt.length)throw new Error("arx: extended nonce must be 24 bytes");z(qt,Dn,je(rt.subarray(0,16)),Dn),rt=rt.subarray(16)}const Tn=16-J;if(Tn!==rt.length)throw new Error(`arx: nonce must be ${Tn} or 16 bytes`);if(12!==Tn){const ar=new Uint8Array(12);ar.set(rt,ye?0:12-rt.length),gn.push(rt=ar)}const rr=je(rt);for(function Cr(b,x,M,z,J,ye,Ne,Ue){const rt=J.length,xt=new Uint8Array(64),zt=je(xt),jt=q(J)&&q(ye),cn=jt?je(J):On,gn=jt?je(ye):On;for(let tn=0;tn<rt;Ne++){if(b(x,M,z,zt,Ne,Ue),Ne>=_n)throw new Error("arx: counter overflow");const Yt=Math.min(64,rt-tn);if(jt&&64===Yt){const qt=tn/4;if(tn%4!=0)throw new Error("arx: invalid block position");for(let Tn,Dn=0;Dn<16;Dn++)Tn=qt+Dn,gn[Tn]=cn[Tn]^zt[Dn];tn+=64}else{for(let Dn,qt=0;qt<Yt;qt++)Dn=tn+qt,ye[Dn]=J[Dn]^xt[qt];tn+=Yt}}}(b,qt,Dn,rr,xt,zt,jt,Ne);gn.length>0;)gn.pop().fill(0);return zt}}function Li(b,x,M,z,J,ye=20){let Ne=b[0],Ue=b[1],rt=b[2],xt=b[3],zt=x[0],jt=x[1],cn=x[2],gn=x[3],tn=x[4],Yt=x[5],qt=x[6],Dn=x[7],Tn=J,rr=M[0],ar=M[1],Br=M[2],br=Ne,Nr=Ue,Vr=rt,Ci=xt,fi=zt,li=jt,Ji=cn,ji=gn,qi=tn,er=Yt,wr=qt,Zr=Dn,pi=Tn,xr=rr,Vi=ar,Ii=Br;for(let js=0;js<ye;js+=2)br=br+fi|0,pi=de(pi^br,16),qi=qi+pi|0,fi=de(fi^qi,12),br=br+fi|0,pi=de(pi^br,8),qi=qi+pi|0,fi=de(fi^qi,7),Nr=Nr+li|0,xr=de(xr^Nr,16),er=er+xr|0,li=de(li^er,12),Nr=Nr+li|0,xr=de(xr^Nr,8),er=er+xr|0,li=de(li^er,7),Vr=Vr+Ji|0,Vi=de(Vi^Vr,16),wr=wr+Vi|0,Ji=de(Ji^wr,12),Vr=Vr+Ji|0,Vi=de(Vi^Vr,8),wr=wr+Vi|0,Ji=de(Ji^wr,7),Ci=Ci+ji|0,Ii=de(Ii^Ci,16),Zr=Zr+Ii|0,ji=de(ji^Zr,12),Ci=Ci+ji|0,Ii=de(Ii^Ci,8),Zr=Zr+Ii|0,ji=de(ji^Zr,7),br=br+li|0,Ii=de(Ii^br,16),wr=wr+Ii|0,li=de(li^wr,12),br=br+li|0,Ii=de(Ii^br,8),wr=wr+Ii|0,li=de(li^wr,7),Nr=Nr+Ji|0,pi=de(pi^Nr,16),Zr=Zr+pi|0,Ji=de(Ji^Zr,12),Nr=Nr+Ji|0,pi=de(pi^Nr,8),Zr=Zr+pi|0,Ji=de(Ji^Zr,7),Vr=Vr+ji|0,xr=de(xr^Vr,16),qi=qi+xr|0,ji=de(ji^qi,12),Vr=Vr+ji|0,xr=de(xr^Vr,8),qi=qi+xr|0,ji=de(ji^qi,7),Ci=Ci+fi|0,Vi=de(Vi^Ci,16),er=er+Vi|0,fi=de(fi^er,12),Ci=Ci+fi|0,Vi=de(Vi^Ci,8),er=er+Vi|0,fi=de(fi^er,7);let Ri=0;z[Ri++]=Ne+br|0,z[Ri++]=Ue+Nr|0,z[Ri++]=rt+Vr|0,z[Ri++]=xt+Ci|0,z[Ri++]=zt+fi|0,z[Ri++]=jt+li|0,z[Ri++]=cn+Ji|0,z[Ri++]=gn+ji|0,z[Ri++]=tn+qi|0,z[Ri++]=Yt+er|0,z[Ri++]=qt+wr|0,z[Ri++]=Dn+Zr|0,z[Ri++]=Tn+pi|0,z[Ri++]=rr+xr|0,z[Ri++]=ar+Vi|0,z[Ri++]=Br+Ii|0}const Qr=Yr(Li,{counterRight:!1,counterLength:4,allowShortKeys:!1}),di=Yr(Li,{counterRight:!1,counterLength:8,extendNonceFn:function Hr(b,x,M,z){let J=b[0],ye=b[1],Ne=b[2],Ue=b[3],rt=x[0],xt=x[1],zt=x[2],jt=x[3],cn=x[4],gn=x[5],tn=x[6],Yt=x[7],qt=M[0],Dn=M[1],Tn=M[2],rr=M[3];for(let Br=0;Br<20;Br+=2)J=J+rt|0,qt=de(qt^J,16),cn=cn+qt|0,rt=de(rt^cn,12),J=J+rt|0,qt=de(qt^J,8),cn=cn+qt|0,rt=de(rt^cn,7),ye=ye+xt|0,Dn=de(Dn^ye,16),gn=gn+Dn|0,xt=de(xt^gn,12),ye=ye+xt|0,Dn=de(Dn^ye,8),gn=gn+Dn|0,xt=de(xt^gn,7),Ne=Ne+zt|0,Tn=de(Tn^Ne,16),tn=tn+Tn|0,zt=de(zt^tn,12),Ne=Ne+zt|0,Tn=de(Tn^Ne,8),tn=tn+Tn|0,zt=de(zt^tn,7),Ue=Ue+jt|0,rr=de(rr^Ue,16),Yt=Yt+rr|0,jt=de(jt^Yt,12),Ue=Ue+jt|0,rr=de(rr^Ue,8),Yt=Yt+rr|0,jt=de(jt^Yt,7),J=J+xt|0,rr=de(rr^J,16),tn=tn+rr|0,xt=de(xt^tn,12),J=J+xt|0,rr=de(rr^J,8),tn=tn+rr|0,xt=de(xt^tn,7),ye=ye+zt|0,qt=de(qt^ye,16),Yt=Yt+qt|0,zt=de(zt^Yt,12),ye=ye+zt|0,qt=de(qt^ye,8),Yt=Yt+qt|0,zt=de(zt^Yt,7),Ne=Ne+jt|0,Dn=de(Dn^Ne,16),cn=cn+Dn|0,jt=de(jt^cn,12),Ne=Ne+jt|0,Dn=de(Dn^Ne,8),cn=cn+Dn|0,jt=de(jt^cn,7),Ue=Ue+rt|0,Tn=de(Tn^Ue,16),gn=gn+Tn|0,rt=de(rt^gn,12),Ue=Ue+rt|0,Tn=de(Tn^Ue,8),gn=gn+Tn|0,rt=de(rt^gn,7);let ar=0;z[ar++]=J,z[ar++]=ye,z[ar++]=Ne,z[ar++]=Ue,z[ar++]=qt,z[ar++]=Dn,z[ar++]=Tn,z[ar++]=rr},allowShortKeys:!1}),ds=new Uint8Array(16),jo=(b,x)=>{b.update(x);const M=x.length%16;M&&b.update(ds.subarray(M))},ks=new Uint8Array(32);function Tl(b,x,M,z,J){const ye=b(x,M,ks),Ne=ro.create(ye);J&&jo(Ne,J),jo(Ne,z);const Ue=new Uint8Array(16),rt=re(Ue);ce(rt,0,BigInt(J?J.length:0),!0),ce(rt,8,BigInt(z.length),!0),Ne.update(Ue);const xt=Ne.digest();return ye.fill(0),xt}const Da=b=>(x,M,z)=>(_i(x,32),_i(M),{encrypt:(ye,Ne)=>{const Ue=ye.length,rt=Ue+16;Ne?_i(Ne,rt):Ne=new Uint8Array(rt),b(x,M,ye,Ne,1);const xt=Tl(b,x,M,Ne.subarray(0,-16),z);return Ne.set(xt,Ue),Ne},decrypt:(ye,Ne)=>{const Ue=ye.length,rt=Ue-16;if(Ue<16)throw new Error("encrypted data must be at least 16 bytes");Ne?_i(Ne,rt):Ne=new Uint8Array(rt);const xt=ye.subarray(0,-16);if(!Ya(ye.subarray(-16),Tl(b,x,M,xt,z)))throw new Error("invalid tag");return b(x,M,xt,Ne,1),Ne}});Da(Qr),Da(di);class ll extends qr.Vw{constructor(x,M){super(),this.finished=!1,this.destroyed=!1,tr.hash(x);const z=(0,qr.ZJ)(M);if(this.iHash=x.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const J=this.blockLen,ye=new Uint8Array(J);ye.set(z.length>J?x.create().update(z).digest():z);for(let Ne=0;Ne<ye.length;Ne++)ye[Ne]^=54;this.iHash.update(ye),this.oHash=x.create();for(let Ne=0;Ne<ye.length;Ne++)ye[Ne]^=106;this.oHash.update(ye),ye.fill(0)}update(x){return tr.exists(this),this.iHash.update(x),this}digestInto(x){tr.exists(this),tr.bytes(x,this.outputLen),this.finished=!0,this.iHash.digestInto(x),this.oHash.update(x),this.oHash.digestInto(x),this.destroy()}digest(){const x=new Uint8Array(this.oHash.outputLen);return this.digestInto(x),x}_cloneInto(x){x||(x=Object.create(Object.getPrototypeOf(this),{}));const{oHash:M,iHash:z,finished:J,destroyed:ye,blockLen:Ne,outputLen:Ue}=this;return x.finished=J,x.destroyed=ye,x.blockLen=Ne,x.outputLen=Ue,x.oHash=M._cloneInto(x.oHash),x.iHash=z._cloneInto(x.iHash),x}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ml=(b,x,M)=>new ll(b,x).update(M).digest();Ml.create=(b,x)=>new ll(b,x);const la=new Uint8Array([0]),Yl=new Uint8Array;var sc=Object.defineProperty,To=(b,x)=>{for(var M in x)sc(b,M,{get:x[M],enumerable:!0})},qa=Symbol("verified"),Ja=b=>b instanceof Object;function Ys(b){if(!Ja(b)||"number"!=typeof b.kind||"string"!=typeof b.content||"number"!=typeof b.created_at||"string"!=typeof b.pubkey||!b.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(b.tags))return!1;for(let x=0;x<b.tags.length;x++){let M=b.tags[x];if(!Array.isArray(M))return!1;for(let z=0;z<M.length;z++)if("object"==typeof M[z])return!1}return!0}To({},{Queue:()=>Fc,QueueNode:()=>su,binarySearch:()=>ou,insertEventIntoAscendingList:()=>pd,insertEventIntoDescendingList:()=>nh,normalizeURL:()=>bc,utf8Decoder:()=>Os,utf8Encoder:()=>Qs});var Os=new TextDecoder("utf-8"),Qs=new TextEncoder;function bc(b){-1===b.indexOf("://")&&(b="wss://"+b);let x=new URL(b);return x.pathname=x.pathname.replace(/\/+/g,"/"),x.pathname.endsWith("/")&&(x.pathname=x.pathname.slice(0,-1)),("80"===x.port&&"ws:"===x.protocol||"443"===x.port&&"wss:"===x.protocol)&&(x.port=""),x.searchParams.sort(),x.hash="",x.toString()}function nh(b,x){const[M,z]=ou(b,J=>x.id===J.id?0:x.created_at===J.created_at?-1:J.created_at-x.created_at);return z||b.splice(M,0,x),b}function pd(b,x){const[M,z]=ou(b,J=>x.id===J.id?0:x.created_at===J.created_at?-1:x.created_at-J.created_at);return z||b.splice(M,0,x),b}function ou(b,x){let M=0,z=b.length-1;for(;M<=z;){const J=Math.floor((M+z)/2),ye=x(b[J]);if(0===ye)return[J,!0];ye<0?z=J-1:M=J+1}return[M,!1]}var su=class{value;next=null;prev=null;constructor(b){this.value=b}},Fc=class{first;last;constructor(){this.first=null,this.last=null}enqueue(b){const x=new su(b);return this.last?this.last===this.first?(this.last=x,this.last.prev=this.first,this.first.next=x):(x.prev=this.last,this.last.next=x,this.last=x):(this.first=x,this.last=x),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const x=this.first;return this.first=null,this.last=null,x.value}const b=this.first;return this.first=b.next,b.value}};function ul(b){let x=Qo(Qs.encode(function ca(b){if(!Ys(b))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content])}(b)));return(0,qr.My)(x)}var Lr=new class{generateSecretKey(){return zs.utils.randomPrivateKey()}getPublicKey(b){return(0,qr.My)(zs.getPublicKey(b))}finalizeEvent(b,x){const M=b;return M.pubkey=(0,qr.My)(zs.getPublicKey(x)),M.id=ul(M),M.sig=(0,qr.My)(zs.sign(ul(M),x)),M[qa]=!0,M}verifyEvent(b){if("boolean"==typeof b[qa])return b[qa];const x=ul(b);if(x!==b.id)return b[qa]=!1,!1;try{const M=zs.verify(b.sig,x,b.pubkey);return b[qa]=M,M}catch{return b[qa]=!1,!1}}},el=Lr.generateSecretKey,Bc=Lr.getPublicKey,ua=Lr.finalizeEvent,dl=Lr.verifyEvent;function Aa(b){return 1e3<=b&&b<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(b)}function Ec(b){return[0,3].includes(b)||1e4<=b&&b<2e4}function au(b){return 2e4<=b&&b<3e4}function Xi(b){return 3e4<=b&&b<4e4}function Bu(b){return Aa(b)?"regular":Ec(b)?"replaceable":au(b)?"ephemeral":Xi(b)?"parameterized":"unknown"}function Tr(b,x){const M=x instanceof Array?x:[x];return Ys(b)&&M.includes(b.kind)||!1}To({},{Application:()=>Kn,BadgeAward:()=>Ct,BadgeDefinition:()=>Be,BlockedRelaysList:()=>kl,BookmarkList:()=>cu,Bookmarksets:()=>V,Calendar:()=>Vn,CalendarEventRSVP:()=>dr,ChannelCreation:()=>ri,ChannelHideMessage:()=>as,ChannelMessage:()=>io,ChannelMetadata:()=>hi,ChannelMuteUser:()=>Ko,ClassifiedListing:()=>Mn,ClientAuth:()=>gd,CommunitiesList:()=>Ti,CommunityDefinition:()=>zr,CommunityPostApproval:()=>uf,Contacts:()=>K,CreateOrUpdateProduct:()=>Ht,CreateOrUpdateStall:()=>It,Curationsets:()=>oe,Date:()=>Qn,DirectMessageRelaysList:()=>Ta,DraftClassifiedListing:()=>jn,DraftLong:()=>An,Emojisets:()=>Zt,EncryptedDirectMessage:()=>P,EventDeletion:()=>X,FileMetadata:()=>hl,FileServerPreference:()=>ff,Followsets:()=>Va,GenericRepost:()=>pr,Genericlists:()=>R,GiftWrap:()=>Wr,HTTPAuth:()=>Vu,Handlerinformation:()=>Ir,Handlerrecommendation:()=>Pr,Highlights:()=>md,InterestsList:()=>lc,Interestsets:()=>gt,JobFeedback:()=>df,JobRequest:()=>ih,JobResult:()=>Cc,Label:()=>cf,LightningPubRPC:()=>ju,LiveChatMessage:()=>xc,LiveEvent:()=>Wn,LongFormArticle:()=>on,Metadata:()=>Es,Mutelist:()=>wn,NWCWalletInfo:()=>Ip,NWCWalletRequest:()=>Zs,NWCWalletResponse:()=>Us,NostrConnect:()=>Ol,OpenTimestamps:()=>xs,Pinlist:()=>gi,PrivateDirectMessage:()=>nn,ProblemTracker:()=>ac,ProfileBadges:()=>Ae,PublicChatsList:()=>Il,Reaction:()=>We,RecommendRelay:()=>L,RelayList:()=>$u,Relaysets:()=>U,Report:()=>Mp,Reporting:()=>rh,Repost:()=>he,Seal:()=>vn,SearchRelaysList:()=>hs,ShortTextNote:()=>Uc,Time:()=>ir,UserEmojiList:()=>$c,UserStatuses:()=>nr,Zap:()=>Uu,ZapGoal:()=>hf,ZapRequest:()=>lu,classifyKind:()=>Bu,isEphemeralKind:()=>au,isKind:()=>Tr,isParameterizedReplaceableKind:()=>Xi,isRegularKind:()=>Aa,isReplaceableKind:()=>Ec});var Es=0,Uc=1,L=2,K=3,P=4,X=5,he=6,We=7,Ct=8,vn=13,nn=14,pr=16,ri=40,hi=41,io=42,as=43,Ko=44,xs=1040,Wr=1059,hl=1063,xc=1311,ac=1971,Mp=1984,rh=1984,cf=1985,uf=4550,ih=5999,Cc=6999,df=7e3,hf=9041,lu=9734,Uu=9735,md=9802,wn=1e4,gi=10001,$u=10002,cu=10003,Ti=10004,Il=10005,kl=10006,hs=10007,lc=10015,$c=10030,Ta=10050,ff=10096,Ip=13194,ju=21e3,gd=22242,Zs=23194,Us=23195,Ol=24133,Vu=27235,Va=3e4,R=30001,U=30002,V=30003,oe=30004,Ae=30008,Be=30009,gt=30015,It=30017,Ht=30018,on=30023,An=30024,Zt=30030,Kn=30078,Wn=30311,nr=30315,Mn=30402,jn=30403,Qn=31922,ir=31923,Vn=31924,dr=31925,Pr=31989,Ir=31990,zr=34550;function Ur(b,x){if(b.ids&&-1===b.ids.indexOf(x.id)||b.kinds&&-1===b.kinds.indexOf(x.kind)||b.authors&&-1===b.authors.indexOf(x.pubkey))return!1;for(let M in b)if("#"===M[0]){let J=b[`#${M.slice(1)}`];if(J&&!x.tags.find(([ye,Ne])=>ye===M.slice(1)&&-1!==J.indexOf(Ne)))return!1}return!(b.since&&x.created_at<b.since||b.until&&x.created_at>b.until)}function Bo(b,x){let M=x.length+3,z=b.indexOf(`"${x}":`)+M,J=b.slice(z).indexOf('"')+z+1;return b.slice(J,J+64)}function Cs(b,x){let M=x.length,z=b.indexOf(`"${x}":`)+M+3,J=b.slice(z),ye=Math.min(J.indexOf(","),J.indexOf("}"));return parseInt(J.slice(0,ye),10)}function yr(b){let x=b.slice(0,22).indexOf('"EVENT"');if(-1===x)return null;let M=b.slice(x+7+1).indexOf('"');if(-1===M)return null;let z=x+7+1+M,J=b.slice(z+1,80).indexOf('"');return-1===J?null:b.slice(z+1,z+1+J)}function jr(b,x){return x===Bo(b,"id")}function Fi(b,x){return x===Bo(b,"pubkey")}function $i(b,x){return x===Cs(b,"kind")}function fs(b,x){return{kind:gd,created_at:Math.floor(Date.now()/1e3),tags:[["relay",b],["challenge",x]],content:""}}function ps(){return Ds.apply(this,arguments)}function Ds(){return(Ds=(0,a.A)(function*(){return new Promise(b=>{const x=new MessageChannel,M=()=>{x.port1.removeEventListener("message",M),b()};x.port1.addEventListener("message",M),x.port2.postMessage(0),x.port1.start()})})).apply(this,arguments)}To({},{getHex64:()=>Bo,getInt:()=>Cs,getSubscriptionId:()=>yr,matchEventId:()=>jr,matchEventKind:()=>$i,matchEventPubkey:()=>Fi}),To({},{makeAuthEvent:()=>fs});var cc=b=>(b[qa]=!0,!0),tl=class{url;_connected=!1;onclose=null;onnotice=b=>console.debug(`NOTICE from ${this.url}: ${b}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;publishTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new Fc;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(b,x){this.url=bc(b),this.verifyEvent=x.verifyEvent,this._WebSocket=x.websocketImplementation||WebSocket}static connect(b,x){return(0,a.A)(function*(){const M=new tl(b,x);return yield M.connect(),M})()}closeAllSubscriptions(b){for(let[x,M]of this.openSubs)M.close(b);this.openSubs.clear();for(let[x,M]of this.openEventPublishes)M.reject(new Error(b));this.openEventPublishes.clear();for(let[x,M]of this.openCountRequests)M.reject(new Error(b));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var b=this;return(0,a.A)(function*(){return b.connectionPromise||(b.challenge=void 0,b.connectionPromise=new Promise((x,M)=>{b.connectionTimeoutHandle=setTimeout(()=>{M("connection timed out"),b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection timed out")},b.connectionTimeout);try{b.ws=new b._WebSocket(b.url)}catch(z){return void M(z)}b.ws.onopen=()=>{clearTimeout(b.connectionTimeoutHandle),b._connected=!0,x()},b.ws.onerror=z=>{M(z.message||"websocket error"),b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection errored"))},b.ws.onclose=(0,a.A)(function*(){b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection closed"))}),b.ws.onmessage=b._onmessage.bind(b)})),b.connectionPromise})()}runQueue(){var b=this;return(0,a.A)(function*(){for(b.queueRunning=!0;!1!==b.handleNext();)yield ps();b.queueRunning=!1})()}handleNext(){const b=this.incomingMessageQueue.dequeue();if(!b)return!1;const x=yr(b);if(x){const M=this.openSubs.get(x);if(!M)return;const z=Bo(b,"id"),J=M.alreadyHaveEvent?.(z);if(M.receivedEvent?.(this,z),J)return}try{let M=JSON.parse(b);switch(M[0]){case"EVENT":{const z=this.openSubs.get(M[1]),J=M[2];return void(this.verifyEvent(J)&&function Yi(b,x){for(let M=0;M<b.length;M++)if(Ur(b[M],x))return!0;return!1}(z.filters,J)&&z.onevent(J))}case"COUNT":{const z=M[1],J=M[2],ye=this.openCountRequests.get(z);return void(ye&&(ye.resolve(J.count),this.openCountRequests.delete(z)))}case"EOSE":{const z=this.openSubs.get(M[1]);if(!z)return;return void z.receivedEose()}case"OK":{const z=M[1],J=M[2],ye=M[3],Ne=this.openEventPublishes.get(z);return void(Ne&&(J?Ne.resolve(ye):Ne.reject(new Error(ye)),this.openEventPublishes.delete(z)))}case"CLOSED":{const J=this.openSubs.get(M[1]);if(!J)return;return J.closed=!0,void J.close(M[2])}case"NOTICE":return void this.onnotice(M[1]);case"AUTH":return this.challenge=M[1],void this._onauth?.(M[1])}}catch{return}}send(b){var x=this;return(0,a.A)(function*(){if(!x.connectionPromise)throw new Error("sending on closed connection");x.connectionPromise.then(()=>{x.ws?.send(b)})})()}auth(b){var x=this;return(0,a.A)(function*(){if(!x.challenge)throw new Error("can't perform auth, no challenge was received");const M=yield b(fs(x.url,x.challenge)),z=new Promise((J,ye)=>{x.openEventPublishes.set(M.id,{resolve:J,reject:ye})});return x.send('["AUTH",'+JSON.stringify(M)+"]"),z})()}publish(b){var x=this;return(0,a.A)(function*(){const M=new Promise((z,J)=>{x.openEventPublishes.set(b.id,{resolve:z,reject:J})});return x.send('["EVENT",'+JSON.stringify(b)+"]"),setTimeout(()=>{const z=x.openEventPublishes.get(b.id);z&&(z.reject(new Error("publish timed out")),x.openEventPublishes.delete(b.id))},x.publishTimeout),M})()}count(b,x){var M=this;return(0,a.A)(function*(){M.serial++;const z=x?.id||"count:"+M.serial,J=new Promise((ye,Ne)=>{M.openCountRequests.set(z,{resolve:ye,reject:Ne})});return M.send('["COUNT","'+z+'",'+JSON.stringify(b).substring(1)),J})()}subscribe(b,x){const M=this.prepareSubscription(b,x);return M.fire(),M}prepareSubscription(b,x){this.serial++;const M=x.id||"sub:"+this.serial,z=new uc(this,M,b,x);return this.openSubs.set(M,z),z}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(b){this.incomingMessageQueue.enqueue(b.data),this.queueRunning||this.runQueue()}},uc=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(b,x,M,z){this.relay=b,this.filters=M,this.id=x,this.alreadyHaveEvent=z.alreadyHaveEvent,this.receivedEvent=z.receivedEvent,this.eoseTimeout=z.eoseTimeout||b.baseEoseTimeout,this.oneose=z.oneose,this.onclose=z.onclose,this.onevent=z.onevent||(J=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,J)})}fire(){this.relay.send('["REQ","'+this.id+'",'+JSON.stringify(this.filters).substring(1)),this.eoseTimeoutHandle=setTimeout(this.receivedEose.bind(this),this.eoseTimeout)}receivedEose(){this.eosed||(clearTimeout(this.eoseTimeoutHandle),this.eosed=!0,this.oneose?.())}close(b="closed by caller"){!this.closed&&this.relay.connected&&(this.relay.send('["CLOSE",'+JSON.stringify(this.id)+"]"),this.closed=!0),this.relay.openSubs.delete(this.id),this.onclose?.(b)}};try{WebSocket}catch{}var hc,Dc=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(b){this.verifyEvent=b.verifyEvent,this._WebSocket=b.websocketImplementation}ensureRelay(b,x){var M=this;return(0,a.A)(function*(){b=bc(b);let z=M.relays.get(b);return z||(z=new tl(b,{verifyEvent:M.trustedRelayURLs.has(b)?cc:M.verifyEvent,websocketImplementation:M._WebSocket}),x?.connectionTimeout&&(z.connectionTimeout=x.connectionTimeout),M.relays.set(b,z)),yield z.connect(),z})()}close(b){b.map(bc).forEach(x=>{this.relays.get(x)?.close()})}subscribeMany(b,x,M){return this.subscribeManyMap(Object.fromEntries(b.map(z=>[z,x])),M)}subscribeManyMap(b,x){var M=this;this.trackRelays&&(x.receivedEvent=(cn,gn)=>{let tn=this.seenOn.get(gn);tn||(tn=new Set,this.seenOn.set(gn,tn)),tn.add(cn)});const z=new Set,J=[],ye=Object.keys(b).length,Ne=[];let Ue=cn=>{Ne[cn]=!0,Ne.filter(gn=>gn).length===ye&&(x.oneose?.(),Ue=()=>{})};const rt=[];let xt=(cn,gn)=>{Ue(cn),rt[cn]=gn,rt.filter(tn=>tn).length===ye&&(x.onclose?.(rt),xt=()=>{})};const zt=cn=>{if(x.alreadyHaveEvent?.(cn))return!0;const gn=z.has(cn);return z.add(cn),gn},jt=Promise.all(Object.entries(b).map(function(){var cn=(0,a.A)(function*(gn,tn,Yt){if(Yt.indexOf(gn)!==tn)return void xt(tn,"duplicate url");let Tn,[qt,Dn]=gn;qt=bc(qt);try{Tn=yield M.ensureRelay(qt,{connectionTimeout:x.maxWait?Math.max(.8*x.maxWait,x.maxWait-1e3):void 0})}catch(ar){return void xt(tn,ar?.message||String(ar))}let rr=Tn.subscribe(Dn,{...x,oneose:()=>Ue(tn),onclose:ar=>xt(tn,ar),alreadyHaveEvent:zt,eoseTimeout:x.maxWait});J.push(rr)});return function(gn,tn,Yt){return cn.apply(this,arguments)}}()));return{close:()=>(0,a.A)(function*(){yield jt,J.forEach(cn=>{cn.close()})})()}}subscribeManyEose(b,x,M){const z=this.subscribeMany(b,x,{...M,oneose(){z.close()}});return z}querySync(b,x,M){var z=this;return(0,a.A)(function*(){return new Promise(function(){var J=(0,a.A)(function*(ye){const Ne=[];z.subscribeManyEose(b,[x],{...M,onevent(Ue){Ne.push(Ue)},onclose(Ue){ye(Ne)}})});return function(ye){return J.apply(this,arguments)}}())})()}get(b,x,M){var z=this;return(0,a.A)(function*(){x.limit=1;const J=yield z.querySync(b,x,M);return J.sort((ye,Ne)=>Ne.created_at-ye.created_at),J[0]||null})()}publish(b,x){var M=this;return b.map(bc).map(function(){var z=(0,a.A)(function*(J,ye,Ne){if(Ne.indexOf(J)!==ye)return Promise.reject("duplicate url");let Ue=yield M.ensureRelay(J);return Ue.publish(x).then(rt=>{if(M.trackRelays){let xt=M.seenOn.get(x.id);xt||(xt=new Set,M.seenOn.set(x.id,xt)),xt.add(Ue)}return rt})});return function(J,ye,Ne){return z.apply(this,arguments)}}())}listConnectionStatus(){const b=new Map;return this.relays.forEach((x,M)=>b.set(M,x.connected)),b}destroy(){this.relays.forEach(b=>b.close()),this.relays=new Map}};try{hc=WebSocket}catch{}var Vc=class extends Dc{constructor(){super({verifyEvent:dl,websocketImplementation:hc})}},Hc={};To(Hc,{BECH32_REGEX:()=>fl,Bech32MaxSize:()=>Ha,NostrTypeGuard:()=>da,decode:()=>Zl,encodeBytes:()=>_d,naddrEncode:()=>du,neventEncode:()=>yd,noteEncode:()=>kp,nprofileEncode:()=>oh,npubEncode:()=>Hu,nsecEncode:()=>vd});var da={isNProfile:b=>/^nprofile1[a-z\d]+$/.test(b||""),isNEvent:b=>/^nevent1[a-z\d]+$/.test(b||""),isNAddr:b=>/^naddr1[a-z\d]+$/.test(b||""),isNSec:b=>/^nsec1[a-z\d]{58}$/.test(b||""),isNPub:b=>/^npub1[a-z\d]{58}$/.test(b||""),isNote:b=>/^note1[a-z\d]+$/.test(b||""),isNcryptsec:b=>/^ncryptsec1[a-z\d]+$/.test(b||"")},Ha=5e3,fl=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function Zl(b){let{prefix:x,words:M}=lo.I.decode(b,Ha),z=new Uint8Array(lo.I.fromWords(M));switch(x){case"nprofile":{let J=Rl(z);if(!J[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==J[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,qr.My)(J[0][0]),relays:J[1]?J[1].map(ye=>Os.decode(ye)):[]}}}case"nevent":{let J=Rl(z);if(!J[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==J[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(J[2]&&32!==J[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(J[3]&&4!==J[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,qr.My)(J[0][0]),relays:J[1]?J[1].map(ye=>Os.decode(ye)):[],author:J[2]?.[0]?(0,qr.My)(J[2][0]):void 0,kind:J[3]?.[0]?parseInt((0,qr.My)(J[3][0]),16):void 0}}}case"naddr":{let J=Rl(z);if(!J[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!J[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==J[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!J[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==J[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Os.decode(J[0][0]),pubkey:(0,qr.My)(J[2][0]),kind:parseInt((0,qr.My)(J[3][0]),16),relays:J[1]?J[1].map(ye=>Os.decode(ye)):[]}}}case"nsec":return{type:x,data:z};case"npub":case"note":return{type:x,data:(0,qr.My)(z)};default:throw new Error(`unknown prefix ${x}`)}}function Rl(b){let x={},M=b;for(;M.length>0;){let z=M[0],J=M[1],ye=M.slice(2,2+J);if(M=M.slice(2+J),ye.length<J)throw new Error(`not enough data to read on TLV ${z}`);x[z]=x[z]||[],x[z].push(ye)}return x}function vd(b){return _d("nsec",b)}function Hu(b){return _d("npub",(0,qr.aT)(b))}function kp(b){return _d("note",(0,qr.aT)(b))}function Sc(b,x){let M=lo.I.toWords(x);return lo.I.encode(b,M,Ha)}function _d(b,x){return Sc(b,x)}function oh(b){return Sc("nprofile",hu({0:[(0,qr.aT)(b.pubkey)],1:(b.relays||[]).map(M=>Qs.encode(M))}))}function yd(b){let x;return void 0!==b.kind&&(x=function uu(b){const x=new Uint8Array(4);return x[0]=b>>24&255,x[1]=b>>16&255,x[2]=b>>8&255,x[3]=255&b,x}(b.kind)),Sc("nevent",hu({0:[(0,qr.aT)(b.id)],1:(b.relays||[]).map(z=>Qs.encode(z)),2:b.author?[(0,qr.aT)(b.author)]:[],3:x?[new Uint8Array(x)]:[]}))}function du(b){let x=new ArrayBuffer(4);return new DataView(x).setUint32(0,b.kind,!1),Sc("naddr",hu({0:[Qs.encode(b.identifier)],1:(b.relays||[]).map(z=>Qs.encode(z)),2:[(0,qr.aT)(b.pubkey)],3:[new Uint8Array(x)]}))}function hu(b){let x=[];return Object.entries(b).reverse().forEach(([M,z])=>{z.forEach(J=>{let ye=new Uint8Array(J.length+2);ye.set([parseInt(M)],0),ye.set([J.length],1),ye.set(J,2),x.push(ye)})}),(0,qr.Id)(...x)}var Nl={};function pf(b,x,M){return fu.apply(this,arguments)}function fu(){return(fu=(0,a.A)(function*(b,x,M){const z=b instanceof Uint8Array?(0,qr.My)(b):b,ye=Wc(kr.getSharedSecret(z,"02"+x));let Ne=Uint8Array.from((0,qr.po)(16)),Ue=Qs.encode(M),rt=Ar(ye,Ne).encrypt(Ue);return`${lo.K3.encode(new Uint8Array(rt))}?iv=${lo.K3.encode(new Uint8Array(Ne.buffer))}`})).apply(this,arguments)}function ah(b,x,M){return wd.apply(this,arguments)}function wd(){return(wd=(0,a.A)(function*(b,x,M){const z=b instanceof Uint8Array?(0,qr.My)(b):b;let[J,ye]=M.split("?iv="),Ue=Wc(kr.getSharedSecret(z,"02"+x)),rt=lo.K3.decode(ye),xt=lo.K3.decode(J),zt=Ar(Ue,rt).decrypt(xt);return Os.decode(zt)})).apply(this,arguments)}function Wc(b){return b.slice(1,33)}To(Nl,{decrypt:()=>ah,encrypt:()=>pf}),To({},{NIP05_REGEX:()=>pu,isNip05:()=>Ed,isValid:()=>gf,queryProfile:()=>mu,searchDomain:()=>ch,useFetchImplementation:()=>mf});var Ac,pu=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,Ed=b=>pu.test(b||"");try{Ac=fetch}catch{}function mf(b){Ac=b}function ch(b){return uh.apply(this,arguments)}function uh(){return(uh=(0,a.A)(function*(b,x=""){try{const M=`https://${b}/.well-known/nostr.json?name=${x}`,z=yield Ac(M,{redirect:"manual"});if(200!==z.status)throw Error("Wrong response code");return(yield z.json()).names}catch{return{}}})).apply(this,arguments)}function mu(b){return Ll.apply(this,arguments)}function Ll(){return(Ll=(0,a.A)(function*(b){const x=b.match(pu);if(!x)return null;const[,M="_",z]=x;try{const J=`https://${z}/.well-known/nostr.json?name=${M}`,ye=yield Ac(J,{redirect:"manual"});if(200!==ye.status)throw Error("Wrong response code");const Ne=yield ye.json(),Ue=Ne.names[M];return Ue?{pubkey:Ue,relays:Ne.relays?.[Ue]}:null}catch{return null}})).apply(this,arguments)}function gf(b,x){return dh.apply(this,arguments)}function dh(){return(dh=(0,a.A)(function*(b,x){const M=yield mu(x);return!!M&&M.pubkey===b})).apply(this,arguments)}function zc(b){const x={reply:void 0,root:void 0,mentions:[],profiles:[],quotes:[]};let M,z;for(let J=b.tags.length-1;J>=0;J--){const ye=b.tags[J];if("e"===ye[0]&&ye[1]){const[Ne,Ue,rt,xt,zt]=ye,jt={id:Ue,relays:rt?[rt]:[],author:zt};if("root"===xt){x.root=jt;continue}if("reply"===xt){x.reply=jt;continue}if("mention"===xt){x.mentions.push(jt);continue}M?z=jt:M=jt,x.mentions.push(jt)}else{if("q"===ye[0]&&ye[1]){const[Ne,Ue,rt]=ye;x.quotes.push({id:Ue,relays:rt?[rt]:[]})}"p"===ye[0]&&ye[1]&&x.profiles.push({pubkey:ye[1],relays:ye[2]?[ye[2]]:[]})}}return x.root||(x.root=z||M||x.reply),x.reply||(x.reply=M||x.root),[x.reply,x.root].forEach(J=>{if(!J)return;let ye=x.mentions.indexOf(J);if(-1!==ye&&x.mentions.splice(ye,1),J.author){let Ne=x.profiles.find(Ue=>Ue.pubkey===J.author);Ne&&Ne.relays&&(J.relays||(J.relays=[]),Ne.relays.forEach(Ue=>{-1===J.relays?.indexOf(Ue)&&J.relays.push(Ue)}),Ne.relays=J.relays)}}),x.mentions.forEach(J=>{if(J.author){let ye=x.profiles.find(Ne=>Ne.pubkey===J.author);ye&&ye.relays&&(J.relays||(J.relays=[]),ye.relays.forEach(Ne=>{-1===J.relays.indexOf(Ne)&&J.relays.push(Ne)}),ye.relays=J.relays)}}),x}To({},{parse:()=>zc}),To({},{fetchRelayInformation:()=>_f,useFetchImplementation:()=>Op});try{fetch}catch{}function Op(b){}function _f(b){return vu.apply(this,arguments)}function vu(){return(vu=(0,a.A)(function*(b){return yield(yield fetch(b.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function hh(b){let x=0;for(let M=0;M<64;M+=8){const z=parseInt(b.substring(M,M+8),16);if(0!==z){x+=Math.clz32(z);break}x+=32}return x}function Wu(b,x){let M=0;const z=b,J=["nonce",M.toString(),x.toString()];for(z.tags.push(J);;){const ye=Math.floor((new Date).getTime()/1e3);if(ye!==z.created_at&&(M=0,z.created_at=ye),J[1]=(++M).toString(),z.id=yf(z),hh(z.id)>=x)break}return z}function yf(b){return(0,qr.My)(Qo(Qs.encode(JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content]))))}function fh(b,x,M,z){return ua({kind:he,tags:[...b.tags??[],["e",x.id,M],["p",x.pubkey]],content:""===b.content?"":JSON.stringify(x),created_at:b.created_at},z)}function zu(b){if(b.kind!==he)return;let x,M;for(let z=b.tags.length-1;z>=0&&(void 0===x||void 0===M);z--){const J=b.tags[z];J.length>=2&&("e"===J[0]&&void 0===x?x=J:"p"===J[0]&&void 0===M&&(M=J))}return void 0!==x?{id:x[1],relays:[x[2],M?.[2]].filter(z=>"string"==typeof z),author:M?.[1]}:void 0}function bf(b,{skipVerification:x}={}){const M=zu(b);if(void 0===M||""===b.content)return;let z;try{z=JSON.parse(b.content)}catch{return}return z.id===M.id&&(x||dl(z))?z:void 0}To({},{fastEventHash:()=>yf,getPow:()=>hh,minePow:()=>Wu}),To({},{finishRepostEvent:()=>fh,getRepostedEvent:()=>bf,getRepostedEventPointer:()=>zu}),To({},{NOSTR_URI_REGEX:()=>Ku,parse:()=>pl,test:()=>Lp});var Ku=new RegExp(`nostr:(${fl.source})`);function Lp(b){return"string"==typeof b&&new RegExp(`^${Ku.source}$`).test(b)}function pl(b){const x=b.match(new RegExp(`^${Ku.source}$`));if(!x)throw new Error(`Invalid Nostr URI: ${b}`);return{uri:x[0],value:x[1],decoded:Zl(x[1])}}function _u(b,x,M){const z=x.tags.filter(J=>J.length>=2&&("e"===J[0]||"p"===J[0]));return ua({...b,kind:We,tags:[...b.tags??[],...z,["e",x.id],["p",x.pubkey]],content:b.content??"+"},M)}function mh(b){if(b.kind!==We)return;let x,M;for(let z=b.tags.length-1;z>=0&&(void 0===x||void 0===M);z--){const J=b.tags[z];J.length>=2&&("e"===J[0]&&void 0===x?x=J:"p"===J[0]&&void 0===M&&(M=J))}return void 0!==x&&void 0!==M?{id:x[1],relays:[x[2],M[2]].filter(z=>void 0!==z),author:M[1]}:void 0}To({},{finishReactionEvent:()=>_u,getReactedEventPointer:()=>mh}),To({},{matchAll:()=>Cd,regex:()=>wf,replaceAll:()=>Ef});var wf=()=>new RegExp(`\\b${Ku.source}\\b`,"g");function*Cd(b){const x=b.matchAll(wf());for(const M of x)try{const[z,J]=M;yield{uri:z,value:J,decoded:Zl(J),start:M.index,end:M.index+z.length}}catch{}}function Ef(b,x){return b.replaceAll(wf(),(M,z)=>x({uri:M,value:z,decoded:Zl(z)}))}To({},{channelCreateEvent:()=>Dd,channelHideMessageEvent:()=>gh,channelMessageEvent:()=>Up,channelMetadataEvent:()=>Bp,channelMuteUserEvent:()=>fc});var Dd=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ua({kind:ri,tags:[...b.tags??[]],content:M,created_at:b.created_at},x)},Bp=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ua({kind:hi,tags:[["e",b.channel_create_event_id],...b.tags??[]],content:M,created_at:b.created_at},x)},Up=(b,x)=>{const M=[["e",b.channel_create_event_id,b.relay_url,"root"]];return b.reply_to_channel_message_event_id&&M.push(["e",b.reply_to_channel_message_event_id,b.relay_url,"reply"]),ua({kind:io,tags:[...M,...b.tags??[]],content:b.content,created_at:b.created_at},x)},gh=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ua({kind:as,tags:[["e",b.channel_message_event_id],...b.tags??[]],content:M,created_at:b.created_at},x)},fc=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ua({kind:Ko,tags:[["p",b.pubkey_to_mute],...b.tags??[]],content:M,created_at:b.created_at},x)};To({},{EMOJI_SHORTCODE_REGEX:()=>Kc,matchAll:()=>Gu,regex:()=>Pl,replaceAll:()=>$p});var yu,Kc=/:(\w+):/,Pl=()=>new RegExp(`\\B${Kc.source}\\B`,"g");function*Gu(b){const x=b.matchAll(Pl());for(const M of x)try{const[z,J]=M;yield{shortcode:z,name:J,start:M.index,end:M.index+z.length}}catch{}}function $p(b,x){return b.replaceAll(Pl(),(M,z)=>x({shortcode:M,name:z}))}To({},{useFetchImplementation:()=>rl,validateGithub:()=>jp});try{yu=fetch}catch{}function rl(b){yu=b}function jp(b,x,M){return vh.apply(this,arguments)}function vh(){return(vh=(0,a.A)(function*(b,x,M){try{return(yield(yield yu(`https://gist.github.com/${x}/${M}/raw`)).text())===`Verifying that I control the following Nostr public key: ${b}`}catch{return!1}})).apply(this,arguments)}To({},{decrypt:()=>bh,encrypt:()=>yh,getConversationKey:()=>Xu,v2:()=>wh});var bu=1,Sd=65535;function Xu(b,x){const M=kr.getSharedSecret(b,"02"+x).subarray(1,33);return function cl(b,x,M){return tr.hash(b),void 0===M&&(M=new Uint8Array(b.outputLen)),Ml(b,(0,qr.ZJ)(M),(0,qr.ZJ)(x))}(Qo,M,"nip44-v2")}function bg(b,x){const M=function Pc(b,x,M,z=32){if(tr.hash(b),tr.number(z),z>255*b.outputLen)throw new Error("Length should be <= 255*HashLen");const J=Math.ceil(z/b.outputLen);void 0===M&&(M=Yl);const ye=new Uint8Array(J*b.outputLen),Ne=Ml.create(b,x),Ue=Ne._cloneInto(),rt=new Uint8Array(Ne.outputLen);for(let xt=0;xt<J;xt++)la[0]=xt+1,Ue.update(0===xt?Yl:rt).update(M).update(la).digestInto(rt),ye.set(rt,b.outputLen*xt),Ne._cloneInto(Ue);return Ne.destroy(),Ue.destroy(),rt.fill(0),la.fill(0),ye.slice(0,z)}(Qo,b,x,76);return{chacha_key:M.subarray(0,32),chacha_nonce:M.subarray(32,44),hmac_key:M.subarray(44,76)}}function Ad(b){if(!Number.isSafeInteger(b)||b<1)throw new Error("expected positive integer");if(b<=32)return 32;const x=1<<Math.floor(Math.log2(b-1))+1,M=x<=256?32:x/8;return M*(Math.floor((b-1)/M)+1)}function Df(b,x,M){if(32!==M.length)throw new Error("AAD associated data must be 32 bytes");const z=(0,qr.Id)(M,x);return Ml(Qo,b,z)}function yh(b,x,M=(0,qr.po)(32)){const{chacha_key:z,chacha_nonce:J,hmac_key:ye}=bg(x,M),Ne=function Cf(b){const x=Qs.encode(b),M=x.length,z=function Gc(b){if(!Number.isSafeInteger(b)||b<bu||b>Sd)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const x=new Uint8Array(2);return new DataView(x.buffer).setUint16(0,b,!1),x}(M),J=new Uint8Array(Ad(M)-M);return(0,qr.Id)(z,x,J)}(b),Ue=Qr(z,J,Ne),rt=Df(ye,Ue,M);return lo.K3.encode((0,qr.Id)(new Uint8Array([2]),M,Ue,rt))}function bh(b,x){const{nonce:M,ciphertext:z,mac:J}=function _h(b){if("string"!=typeof b)throw new Error("payload must be a valid string");const x=b.length;if(x<132||x>87472)throw new Error("invalid payload length: "+x);if("#"===b[0])throw new Error("unknown encryption version");let M;try{M=lo.K3.decode(b)}catch(ye){throw new Error("invalid base64: "+ye.message)}const z=M.length;if(z<99||z>65603)throw new Error("invalid data length: "+z);const J=M[0];if(2!==J)throw new Error("unknown encryption version "+J);return{nonce:M.subarray(1,33),ciphertext:M.subarray(33,-32),mac:M.subarray(-32)}}(b),{chacha_key:ye,chacha_nonce:Ne,hmac_key:Ue}=bg(x,M);if(!Ya(Df(Ue,z,M),J))throw new Error("invalid MAC");return function Vo(b){const x=new DataView(b.buffer).getUint16(0),M=b.subarray(2,2+x);if(x<bu||x>Sd||M.length!==x||b.length!==2+Ad(x))throw new Error("invalid padding");return Os.decode(M)}(Qr(ye,Ne,z))}var xh,wh={utils:{getConversationKey:Xu,calcPaddedLen:Ad},encrypt:yh,decrypt:bh};function Af(b){const{pathname:x,searchParams:M}=new URL(b),z=x,J=M.get("relay"),ye=M.get("secret");if(!z||!J||!ye)throw new Error("invalid connection string");return{pubkey:z,relay:J,secret:ye}}function Td(b,x,M){return Eh.apply(this,arguments)}function Eh(){return(Eh=(0,a.A)(function*(b,x,M){const J=yield pf(x,b,JSON.stringify({method:"pay_invoice",params:{invoice:M}})),ye={kind:Zs,created_at:Math.round(Date.now()/1e3),content:J,tags:[["p",b]]};return ua(ye,x)})).apply(this,arguments)}To({},{makeNwcRequestEvent:()=>Td,parseConnectionString:()=>Af}),To({},{getZapEndpoint:()=>Tc,makeZapReceipt:()=>wg,makeZapRequest:()=>Md,useFetchImplementation:()=>Hp,validateZapRequest:()=>kd});try{xh=fetch}catch{}function Hp(b){xh=b}function Tc(b){return Tf.apply(this,arguments)}function Tf(){return(Tf=(0,a.A)(function*(b){try{let x="",{lud06:M,lud16:z}=JSON.parse(b.content);if(M){let{words:Ne}=lo.I.decode(M,1e3),Ue=lo.I.fromWords(Ne);x=Os.decode(Ue)}else{if(!z)return null;{let[Ne,Ue]=z.split("@");x=new URL(`/.well-known/lnurlp/${Ne}`,`https://${Ue}`).toString()}}let ye=yield(yield xh(x)).json();if(ye.allowsNostr&&ye.nostrPubkey)return ye.callback}catch{}return null})).apply(this,arguments)}function Md({profile:b,event:x,amount:M,relays:z,comment:J=""}){if(!M)throw new Error("amount not given");if(!b)throw new Error("profile not given");let ye={kind:9734,created_at:Math.round(Date.now()/1e3),content:J,tags:[["p",b],["amount",M.toString()],["relays",...z]]};return x&&ye.tags.push(["e",x]),ye}function kd(b){let x;try{x=JSON.parse(b)}catch{return"Invalid zap request JSON."}if(!Ys(x))return"Zap request is not a valid Nostr event.";if(!dl(x))return"Invalid signature on zap request.";let M=x.tags.find(([ye,Ne])=>"p"===ye&&Ne);if(!M)return"Zap request doesn't have a 'p' tag.";if(!M[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let z=x.tags.find(([ye,Ne])=>"e"===ye&&Ne);return z&&!z[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":x.tags.find(([ye,Ne])=>"relays"===ye&&Ne)?null:"Zap request doesn't have a 'relays' tag."}function wg({zapRequest:b,preimage:x,bolt11:M,paidAt:z}){let J=JSON.parse(b),ye=J.tags.filter(([Ue])=>"e"===Ue||"p"===Ue||"a"===Ue),Ne={kind:9735,created_at:Math.round(z.getTime()/1e3),content:"",tags:[...ye,["P",J.pubkey],["bolt11",M],["description",b]]};return x&&Ne.tags.push(["preimage",x]),Ne}To({},{createRumor:()=>Mf,createSeal:()=>Od,createWrap:()=>wu,unwrapEvent:()=>Sh,unwrapManyEvents:()=>Eu,wrapEvent:()=>Ch,wrapManyEvents:()=>Dh});var Xc=()=>Math.round(Date.now()/1e3),zp=()=>Math.round(Xc()-172800*Math.random()),ml=(b,x)=>Xu(b,x),Mc=(b,x,M)=>yh(JSON.stringify(b),ml(x,M)),$s=(b,x)=>JSON.parse(bh(b.content,ml(x,b.pubkey)));function Mf(b,x){const M={created_at:Xc(),content:"",tags:[],...b,pubkey:Bc(x)};return M.id=ul(M),M}function Od(b,x,M){return ua({kind:vn,content:Mc(b,x,M),created_at:zp(),tags:[]},x)}function wu(b,x){const M=el();return ua({kind:Wr,content:Mc(b,M,x),created_at:zp(),tags:[["p",x]]},M)}function Ch(b,x,M){return wu(Od(Mf(b,x),x,M),M)}function Dh(b,x,M){if(!M||0===M.length)throw new Error("At least one recipient is required.");const z=Bc(x),J=[Ch(b,x,z)];return M.forEach(ye=>{J.push(Ch(b,x,ye))}),J}function Sh(b,x){const M=$s(b,x);return $s(M,x)}function Eu(b,x){let M=[];return b.forEach(z=>{M.push(Sh(z,x))}),M.sort((z,J)=>z.created_at-J.created_at),M}function Ic(b,x,M){return ql.apply(this,arguments)}function ql(){return(ql=(0,a.A)(function*(b,x,M,z=!1,J){const ye={kind:Vu,tags:[["u",b],["method",x]],created_at:Math.round((new Date).getTime()/1e3),content:""};J&&ye.tags.push(["payload",Yc(J)]);const Ne=yield M(ye);return(z?"Nostr ":"")+lo.K3.encode(Qs.encode(JSON.stringify(Ne)))})).apply(this,arguments)}function Kp(b,x,M){return xu.apply(this,arguments)}function xu(){return(xu=(0,a.A)(function*(b,x,M){const z=yield If(b).catch(ye=>{throw ye});return yield Rd(z,x,M).catch(ye=>{throw ye})})).apply(this,arguments)}function If(b){return Qu.apply(this,arguments)}function Qu(){return(Qu=(0,a.A)(function*(b){if(!b)throw new Error("Missing token");b=b.replace("Nostr ","");const x=Os.decode(lo.K3.decode(b));if(!x||0===x.length||!x.startsWith("{"))throw new Error("Invalid token");return JSON.parse(x)})).apply(this,arguments)}function Zu(b){return!!b.created_at&&Math.round((new Date).getTime()/1e3)-b.created_at<60}function kf(b){return b.kind===Vu}function Th(b,x){const M=b.tags.find(z=>"u"===z[0]);return!!M&&M.length>0&&M[1]===x}function Ma(b,x){const M=b.tags.find(z=>"method"===z[0]);return!!M&&M.length>0&&M[1].toLowerCase()===x.toLowerCase()}function Yc(b){const x=Qo(Qs.encode(JSON.stringify(b)));return(0,qr.My)(x)}function Mh(b,x){const M=b.tags.find(J=>"payload"===J[0]);if(!M)return!1;const z=Yc(x);return M.length>0&&M[1]===z}function Rd(b,x,M,z){return qu.apply(this,arguments)}function qu(){return(qu=(0,a.A)(function*(b,x,M,z){if(!dl(b))throw new Error("Invalid nostr event, signature invalid");if(!kf(b))throw new Error("Invalid nostr event, kind invalid");if(!Zu(b))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Th(b,x))throw new Error("Invalid nostr event, url tag invalid");if(!Ma(b,M))throw new Error("Invalid nostr event, method tag invalid");if(z&&"object"==typeof z&&Object.keys(z).length>0&&!Mh(b,z))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}To({},{getToken:()=>Ic,hashPayload:()=>Yc,unpackEventFromToken:()=>If,validateEvent:()=>Rd,validateEventKind:()=>kf,validateEventMethodTag:()=>Ma,validateEventPayloadTag:()=>Mh,validateEventTimestamp:()=>Zu,validateEventUrlTag:()=>Th,validateToken:()=>Kp})},8418:(o,s,r)=>{"use strict";r.d(s,{OS:()=>I,av:()=>N,qT:()=>pe,rV:()=>te}),Symbol("verified");var I=0,N=1,te=4,pe=7},6391:(o,s,r)=>{"use strict";r.d(s,{Vw:()=>pe,My:()=>A,Id:()=>me,O8:()=>w,aT:()=>I,po:()=>le,Ow:()=>C,ZJ:()=>be,ld:()=>Re});const i="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,a=ae=>ae instanceof Uint8Array,w=ae=>new DataView(ae.buffer,ae.byteOffset,ae.byteLength),C=(ae,Ie)=>ae<<32-Ie|ae>>>Ie;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const S=Array.from({length:256},(ae,Ie)=>Ie.toString(16).padStart(2,"0"));function A(ae){if(!a(ae))throw new Error("Uint8Array expected");let Ie="";for(let $e=0;$e<ae.length;$e++)Ie+=S[ae[$e]];return Ie}function I(ae){if("string"!=typeof ae)throw new Error("hex string expected, got "+typeof ae);const Ie=ae.length;if(Ie%2)throw new Error("padded hex string expected, got unpadded hex of length "+Ie);const $e=new Uint8Array(Ie/2);for(let st=0;st<$e.length;st++){const ht=2*st,vt=ae.slice(ht,ht+2),at=Number.parseInt(vt,16);if(Number.isNaN(at)||at<0)throw new Error("Invalid byte sequence");$e[st]=at}return $e}function be(ae){if("string"==typeof ae&&(ae=function te(ae){if("string"!=typeof ae)throw new Error("utf8ToBytes expected string, got "+typeof ae);return new Uint8Array((new TextEncoder).encode(ae))}(ae)),!a(ae))throw new Error("expected Uint8Array, got "+typeof ae);return ae}function me(...ae){const Ie=new Uint8Array(ae.reduce((st,ht)=>st+ht.length,0));let $e=0;return ae.forEach(st=>{if(!a(st))throw new Error("Uint8Array expected");Ie.set(st,$e),$e+=st.length}),Ie}class pe{clone(){return this._cloneInto()}}function Re(ae){const Ie=st=>ae().update(be(st)).digest(),$e=ae();return Ie.outputLen=$e.outputLen,Ie.blockLen=$e.blockLen,Ie.create=()=>ae(),Ie}function le(ae=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(ae));throw new Error("crypto.getRandomValues must be defined")}},7106:(o,s,r)=>{"use strict";function i(a,c){this.v=a,this.k=c}r.d(s,{A:()=>i})},467:(o,s,r)=>{"use strict";function i(c,y,w,C,T,S,A){try{var I=c[S](A),N=I.value}catch(G){return void w(G)}I.done?y(N):Promise.resolve(N).then(C,T)}function a(c){return function(){var y=this,w=arguments;return new Promise(function(C,T){var S=c.apply(y,w);function A(N){i(S,C,T,A,I,"next",N)}function I(N){i(S,C,T,A,I,"throw",N)}A(void 0)})}}r.d(s,{A:()=>a})},6218:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(7106);function a(c){return new i.A(c,0)}},600:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(7106);function a(y){return function(){return new c(y.apply(this,arguments))}}function c(y){var w,C;function T(A,I){try{var N=y[A](I),G=N.value,Z=G instanceof i.A;Promise.resolve(Z?G.v:G).then(function(te){if(Z){var be="return"===A?"return":"next";if(!G.k||te.done)return T(be,te);te=y[be](te).value}S(N.done?"return":"normal",te)},function(te){T("throw",te)})}catch(te){S("throw",te)}}function S(A,I){switch(A){case"return":w.resolve({value:I,done:!0});break;case"throw":w.reject(I);break;default:w.resolve({value:I,done:!1})}(w=w.next)?T(w.key,w.arg):C=null}this._invoke=function(A,I){return new Promise(function(N,G){var Z={key:A,arg:I,resolve:N,reject:G,next:null};C?C=C.next=Z:(w=C=Z,T(A,I))})},"function"!=typeof y.return&&(this.return=void 0)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(y){return this._invoke("next",y)},c.prototype.throw=function(y){return this._invoke("throw",y)},c.prototype.return=function(y){return this._invoke("return",y)}},1635:(o,s,r)=>{"use strict";function G(ze,Fe,Ft,Ke){return new(Ft||(Ft=Promise))(function(Ge,He){function mt(Rt){try{Ze(Ke.next(Rt))}catch(Jt){He(Jt)}}function se(Rt){try{Ze(Ke.throw(Rt))}catch(Jt){He(Jt)}}function Ze(Rt){Rt.done?Ge(Rt.value):function dt(Ge){return Ge instanceof Ft?Ge:new Ft(function(He){He(Ge)})}(Rt.value).then(mt,se)}Ze((Ke=Ke.apply(ze,Fe||[])).next())})}function Me(ze){return this instanceof Me?(this.v=ze,this):new Me(ze)}function Ce(ze,Fe,Ft){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var dt,Ke=Ft.apply(ze,Fe||[]),Ge=[];return dt=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),mt("next"),mt("throw"),mt("return",function He(Gn){return function(Nt){return Promise.resolve(Nt).then(Gn,Jt)}}),dt[Symbol.asyncIterator]=function(){return this},dt;function mt(Gn,Nt){Ke[Gn]&&(dt[Gn]=function(Qt){return new Promise(function(an,Xn){Ge.push([Gn,Qt,an,Xn])>1||se(Gn,Qt)})},Nt&&(dt[Gn]=Nt(dt[Gn])))}function se(Gn,Nt){try{!function Ze(Gn){Gn.value instanceof Me?Promise.resolve(Gn.value.v).then(Rt,Jt):fn(Ge[0][2],Gn)}(Ke[Gn](Nt))}catch(Qt){fn(Ge[0][3],Qt)}}function Rt(Gn){se("next",Gn)}function Jt(Gn){se("throw",Gn)}function fn(Gn,Nt){Gn(Nt),Ge.shift(),Ge.length&&se(Ge[0][0],Ge[0][1])}}function ae(ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ft,Fe=ze[Symbol.asyncIterator];return Fe?Fe.call(ze):(ze=function me(ze){var Fe="function"==typeof Symbol&&Symbol.iterator,Ft=Fe&&ze[Fe],Ke=0;if(Ft)return Ft.call(ze);if(ze&&"number"==typeof ze.length)return{next:function(){return ze&&Ke>=ze.length&&(ze=void 0),{value:ze&&ze[Ke++],done:!ze}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(ze),Ft={},Ke("next"),Ke("throw"),Ke("return"),Ft[Symbol.asyncIterator]=function(){return this},Ft);function Ke(Ge){Ft[Ge]=ze[Ge]&&function(He){return new Promise(function(mt,se){!function dt(Ge,He,mt,se){Promise.resolve(se).then(function(Ze){Ge({value:Ze,done:mt})},He)}(mt,se,(He=ze[Ge](He)).done,He.value)})}}}r.d(s,{AQ:()=>Ce,N3:()=>Me,sH:()=>G,xN:()=>ae}),"function"==typeof SuppressedError&&SuppressedError}},o=>{o(o.s=4626)}]); |