{"version":3,"sources":["/Users/karakara/repos/material2/dist/bundles/cdk-scrolling.umd.js"],"names":["global","factory","exports","module","require","define","amd","ng","cdk","scrolling","core","platform","Rx","Observable","prototype","this","_angular_core","_angular_cdk_platform","rxjs_Subject","rxjs_Subscription","rxjs_observable_fromEvent","rxjs_operator_auditTime","rxjs_observable_merge","rxjs_observable_of","SCROLL_DISPATCHER_PROVIDER_FACTORY","parentDispatcher","ngZone","ScrollDispatcher","VIEWPORT_RULER_PROVIDER_FACTORY","parentRuler","scrollDispatcher","ViewportRuler","_ngZone","_platform","_scrolled","Subject","_globalSubscription","_scrolledCount","scrollableReferences","Map","register","scrollable","_this","scrollSubscription","elementScrolled","subscribe","_notify","set","deregister","scrollableReference","get","unsubscribe","delete","scrolled","auditTimeInMs","callback","isBrowser","Subscription","EMPTY","observable","auditTime","call","asObservable","runOutsideAngular","fromEvent","window","document","subscription","add","size","getScrollContainers","elementRef","scrollingContainers","forEach","_subscription","scrollableContainsElement","push","element","nativeElement","scrollableElement","getElementRef","parentElement","next","decorators","type","Injectable","ctorParameters","NgZone","Platform","SCROLL_DISPATCHER_PROVIDER","provide","deps","Optional","SkipSelf","useFactory","Scrollable","_elementRef","_scroll","_renderer","_elementScrolled","ngOnInit","_scrollListener","listen","event","ngOnDestroy","Directive","args","selector","ElementRef","Renderer2","_change","merge","of","_invalidateCacheSubscriptions","_cacheViewportGeometry","change","getViewportRect","documentRect","_documentRect","scrollPosition","getViewportScrollPosition","height","innerHeight","width","innerWidth","top","left","bottom","right","body","scrollTop","scrollY","documentElement","scrollLeft","scrollX","throttleTime","getBoundingClientRect","VIEWPORT_RULER_PROVIDER","ScrollDispatchModule","NgModule","imports","PlatformModule","declarations","providers","DEFAULT_SCROLL_TIME","DEFAULT_RESIZE_TIME","Object","defineProperty","value"],"mappings":";;;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,QAASE,QAAQ,iBAAkBA,QAAQ,yBAA0BA,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