vendor: 5,613 bytes, line 1
1import{a as l,b,c as a}from"./chunk-XTLBRYE5.js";import{I as m,c as k,j as g,n as D}from"./chunk-EHC7I5JO.js";import{a as x}from"./chunk-CVAHDBKT.js";import{Cb as p,Db as R,L as S,M as h,Pb as _,Qb as y,Ra as d,Va as C,c as v,f as c,oa as u,pa as f,u as w,ua as o}from"./chunk-LBMBSTLT.js";var V=20,E=(()=>{class r{_ngZone=o(d);_platform=o(g);_renderer=o(p).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new c;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=V){return this._platform.isBrowser?new v(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let n=e>0?this._scrolled.pipe(h(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):w()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(S(i=>!i||n.indexOf(i)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_scrollableContainsElement(e,t){let n=D(t),i=e.getElementRef().nativeElement;do if(n==i)return!0;while(n=n.parentElement);return!1}static \u0275fac=function(t){return new(t||r)};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Me=(()=>{class r{elementRef=o(C);scrollDispatcher=o(E);ngZone=o(d);dir=o(k,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new c;_renderer=o(R);_cleanupScroll;_elementScrolled=new c;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let t=this.elementRef.nativeElement,n=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=n?e.end:e.start),e.right==null&&(e.right=n?e.start:e.end),e.bottom!=null&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&a()!=l.NORMAL?(e.left!=null&&(e.right=t.scrollWidth-t.clientWidth-e.left),a()==l.INVERTED?e.left=e.right:a()==l.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let t=this.elementRef.nativeElement;b()?t.scrollTo(e):(e.top!=null&&(t.scrollTop=e.top),e.left!=null&&(t.scrollLeft=e.left))}measureScrollOffset(e){let t="left",n="right",i=this.elementRef.nativeElement;if(e=="top")return i.scrollTop;if(e=="bottom")return i.scrollHeight-i.clientHeight-i.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?n:t:e=="end"&&(e=s?t:n),s&&a()==l.INVERTED?e==t?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&a()==l.NEGATED?e==t?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==t?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}static \u0275fac=function(t){return new(t||r)};static \u0275dir=y({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return r})(),T=20,Pe=(()=>{class r{_platform=o(g);_listeners;_viewportSize;_change=new c;_document=o(x,{optional:!0});constructor(){let e=o(d),t=o(p).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let n=i=>this._change.next(i);this._listeners=[t.listen("window","resize",n),t.listen("window","orientationchange",n)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect(),s=-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,O=-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:s,left:O}}change(e=T){return e>0?this._change.pipe(h(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(t){return new(t||r)};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var z=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=_({type:r});static \u0275inj=f({})}return r})(),Ie=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=_({type:r});static \u0275inj=f({imports:[m,z,m,z]})}return r})();export{E as a,Me as b,Pe as c,z as d,Ie as e};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.