text: (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{L6id:function(t,e,i){"use strict";i.r(e);var n=i("CcnG"),o=function(){},r=i("Wf4p"),s=i("mrSG");function l(t){return""+(t||"")}function a(t){return"string"==typeof t?parseInt(t,10):t}var h=function(){function t(t){this._element=t,this._rowspan=1,this._colspan=1}return Object.defineProperty(t.prototype,"rowspan",{get:function(){return this._rowspan},set:function(t){this._rowspan=a(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colspan",{get:function(){return this._colspan},set:function(t){this._colspan=a(t)},enumerable:!0,configurable:!0}),t.prototype._setStyle=function(t,e){this._element.nativeElement.style[t]=e},t}(),c=function(){function t(t,e){var i=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(function(t){return i._trackTile(t)})}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowIndex+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowspan",{get:function(){var t=Math.max.apply(Math,this.tracker);return t>1?this.rowCount+t-1:this.rowCount},enumerable:!0,configurable:!0}),t.prototype._trackTile=function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new u(this.rowIndex,e)},t.prototype._findMatchingGap=function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan "+t+' is wider than grid with cols="'+this.tracker.length+'".');var e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?this._nextRow():-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(i=this._findGapEndIndex(e),this.columnIndex=e+1):this._nextRow()}while(i-e<t);return Math.max(e,0)},t.prototype._nextRow=function(){this.columnIndex=0,this.rowIndex++;for(var t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)},t.prototype._findGapEndIndex=function(t){for(var e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length},t.prototype._markTilePosition=function(t,e){for(var i=0;i<e.colspan;i++)this.tracker[t+i]=e.rowspan},t}(),u=function(t,e){this.row=t,this.col=e},p=function(){function t(){this._rows=0,this._rowspan=0}return t.prototype.init=function(t,e,i,n){this._gutterSize=y(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=i,this._direction=n},t.prototype.getBaseTileSize=function(t,e){return"("+t+"% - ("+this._gutterSize+" * "+e+"))"},t.prototype.getTilePosition=function(t,e){return 0===e?"0":_("("+t+" + "+this._gutterSize+") * "+e)},t.prototype.getTileSize=function(t,e){return"("+t+" * "+e+") + ("+(e-1)+" * "+this._gutterSize+")"},t.prototype.setStyle=function(t,e,i){var n=100/this._cols,o=(this._cols-1)/this._cols;this.setColStyles(t,i,n,o),this.setRowStyles(t,e,n,o)},t.prototype.setColStyles=function(t,e,i,n){var o=this.getBaseTileSize(i,n);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(o,e)),t._setStyle("width",_(this.getTileSize(o,t.colspan)))},t.prototype.getGutterSpan=function(){return this._gutterSize+" * ("+this._rowspan+" - 1)"},t.prototype.getTileSpan=function(t){return this._rowspan+" * "+this.getTileSize(t,1)},t.prototype.getComputedHeight=function(){return null},t}(),d=function(t){function e(e){var i=t.call(this)||this;return i.fixedRowHeight=e,i}return Object(s.b)(e,t),e.prototype.init=function(e,i,n,o){t.prototype.init.call(this,e,i,n,o),this.fixedRowHeight=y(this.fixedRowHeight)},e.prototype.setRowStyles=function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",_(this.getTileSize(this.fixedRowHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["height",_(this.getTileSpan(this.fixedRowHeight)+" + "+this.getGutterSpan())]},e.prototype.reset=function(t){t._setListStyle(["height",null]),t._tiles.forEach(function(t){t._setStyle("top",null),t._setStyle("height",null)})},e}(p),f=function(t){function e(e){var i=t.call(this)||this;return i._parseRatio(e),i}return Object(s.b)(e,t),e.prototype.setRowStyles=function(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",_(this.getTileSize(this.baseTileHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["paddingBottom",_(this.getTileSpan(this.baseTileHeight)+" + "+this.getGutterSpan())]},e.prototype.reset=function(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(function(t){t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})},e.prototype._parseRatio=function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'+t+'"');this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])},e}(p),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.b)(e,t),e.prototype.setRowStyles=function(t,e){var i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",_(this.getTileSize(i,t.rowspan)))},e.prototype.reset=function(t){t._tiles.forEach(function(t){t._setStyle("top",null),t._setStyle("height",null)})},e}(p);function _(t){return"calc("+t+")"}function y(t){return t.match(/px|em|rem/)?t:t+"px"}var m=function(){function t(t,e){this._element=t,this._dir=e,this._gutter="1px"}return Object.defineProperty(t.prototype,"cols",{get:function(){return this._cols},set:function(t){this._cols=a(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gutterSize",{get:function(){return this._gutter},set:function(t){this._gutter=l(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{set:function(t){var e=l(t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._checkCols(),this._checkRowHeight()},t.prototype.ngAfterContentChecked=function(){this._layoutTiles()},t.prototype._checkCols=function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: <mat-grid-list cols="3">')},t.prototype._checkRowHeight=function(){this._rowHeight||this._setTileStyler("1:1")},t.prototype._setTileStyler=function(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new g:t&&t.indexOf(":")>-1?new f(t):new d(t)},t.prototype._layoutTiles=function(){var t=this,e=new c(this.cols,this._tiles);this._tileStyler.init(this.gutterSize,e,this.cols,this._dir?this._dir.value:"ltr"),this._tiles.forEach(function(i,n){var o=e.positions[n];t._tileStyler.setStyle(i,o.row,o.col)}),this._setListStyle(this._tileStyler.getComputedHeight())},t.prototype._setListStyle=function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])},t}(),v=function(){},b=i("Fzqc"),w=n.La({encapsulation:2,styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],data:{}});function x(t){return n.fb(2,[(t()(),n.Na(0,0,null,null,1,"div",[],null,null,null,null,null)),n.Wa(null,0)],null,null)}var O=n.La({encapsulation:2,styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],data:{}});function S(t){return n.fb(2,[(t()(),n.Na(0,0,null,null,1,"figure",[["class","mat-figure"]],null,null,null,null,null)),n.Wa(null,0)],null,null)}var R=i("lzlj"),k=i("FVSy"),P=i("6UMx"),E=i("0/Q6"),C=i("ZYCi"),j=i("Ip0R"),B=i("i62r"),V=i("7pPf"),H=i("LC5p"),M=n.La({encapsulation:2,styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],data:{}});function D(t){return n.fb(2,[],null,null)}var L=i("gIcY"),T=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),X=n.La({encapsulation:0,styles:[[""]],data:{}});function I(t){return n.fb(0,[(t()(),n.Na(0,0,null,null,12,"mat-list-option",[["class","mat-list-item mat-list-option"],["role","option"],["tabindex","-1"]],[[2,"mat-list-item-disabled",null],[2,"mat-list-item-focus",null],[1,"aria-selected",0],[1,"aria-disabled",0]],[[null,"focus"],[null,"blur"],[null,"click"]],function(t,e,i){var o=!0;return"focus"===e&&(o=!1!==n.Xa(t,1)._handleFocus()&&o),"blur"===e&&(o=!1!==n.Xa(t,1)._handleBlur()&&o),"click"===e&&(o=!1!==n.Xa(t,1)._handleClick()&&o),o},P.f,P.b)),n.Ma(1,1294336,[[1,4]],1,E.d,[n.k,n.h,E.f],null,null),n.bb(603979776,2,{_lines:1}),(t()(),n.Na(3,0,null,0,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,i){var o=!0;return"click"===e&&(o=!1!==n.Xa(t,4).onClick(i.button,i.ctrlKey,i.metaKey,i.shiftKey)&&o),o},null,null)),n.Ma(4,671744,null,0,C.l,[C.k,C.a,j.i],{routerLink:[0,"routerLink"]},null),n.Ya(5,2),(t()(),n.db(6,null,[" "," "])),(t()(),n.Na(7,0,null,0,3,"i",[],null,null,null,null,null)),(t()(),n.Na(8,0,null,null,1,"app-status-chip",[],null,null,null,B.b,B.a)),n.Ma(9,638976,null,0,V.a,[],{statusId:[0,"statusId"]},null),(t()(),n.db(10,null,[" At "," On "," "])),(t()(),n.Na(11,0,null,0,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-inset",null]],null,null,D,M)),n.Ma(12,49152,null,0,H.a,[],null,null)],function(t,e){t(e,1,0),t(e,4,0,t(e,5,0,"launch",e.context.$implicit.id)),t(e,9,0,e.context.$implicit.status)},function(t,e){t(e,0,0,n.Xa(e,1).disabled,n.Xa(e,1)._hasFocus,n.Xa(e,1).selected.toString(),n.Xa(e,1).disabled.toString()),t(e,3,0,n.Xa(e,4).target,n.Xa(e,4).href),t(e,6,0,e.context.$implicit.name),t(e,10,0,e.context.$implicit.location.name,e.context.$implicit.net),t(e,11,0,n.Xa(e,12).vertical?"vertical":"horizontal",n.Xa(e,12).vertical,n.Xa(e,12).inset)})}function z(t){return n.fb(0,[(t()(),n.Na(0,0,null,null,5,"mat-selection-list",[["class","mat-selection-list"],["role","listbox"]],[[8,"tabIndex",0],[1,"aria-disabled",0]],[[null,"focus"],[null,"blur"],[null,"keydown"]],function(t,e,i){var o=!0;return"focus"===e&&(o=!1!==n.Xa(t,2).focus()&&o),"blur"===e&&(o=!1!==n.Xa(t,2)._onTouched()&&o),"keydown"===e&&(o=!1!==n.Xa(t,2)._keydown(i)&&o),o},P.h,P.d)),n.ab(5120,null,L.a,function(t){return[t]},[E.f]),n.Ma(2,1228800,null,1,E.f,[n.k,[8,null]],null,null),n.bb(603979776,1,{options:1}),(t()(),n.Ea(16777216,null,0,1,null,I)),n.Ma(5,802816,null,0,j.j,[n.M,n.J,n.q],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,5,0,e.component.launches)},function(t,e){t(e,0,0,n.Xa(e,2).tabIndex,n.Xa(e,2).disabled.toString())})}var F=i("67Y/"),A=i("AytR"),N=i("t/Na"),Y=function(){function t(t){var e=this;this.http=t,this.getNextLaunches=function(t){return void 0===t&&(t=10),e.http.get(A.a.url+"/assets/launchlibrary.json").pipe(Object(F.a)(function(i){return e.mapLaunches(i.launches,t)}))},this.mapLaunches=function(t,e){return t.filter(function(t){return new Date(t.windowstart)>new Date}).sort(function(t,e){return t.isostart>e.isostart?1:-1}).slice(0,e)}}return t.ngInjectableDef=n.Q({factory:function(){return new t(n.U(N.c))},token:t,providedIn:"root"}),t}(),W=function(){function t(t){this.countdown=t}return t.prototype.ngOnInit=function(){this.nextLaunches$=this.countdown.getNextLaunches()},t}(),Z=n.La({encapsulation:0,styles:[[".grid-container[_ngcontent-%COMP%]{margin:20px}.dashboard-card[_ngcontent-%COMP%]{position:absolute;top:15px;left:15px;right:15px;bottom:15px}.more-button[_ngcontent-%COMP%]{position:absolute;top:5px;right:10px}.dashboard-card-content[_ngcontent-%COMP%]{text-align:center}"]],data:{}});function G(t){return n.fb(0,[(t()(),n.Na(0,0,null,null,19,"div",[["class","grid-container"]],null,null,null,null,null)),(t()(),n.Na(1,0,null,null,1,"h1",[["class","mat-h1"]],null,null,null,null,null)),(t()(),n.db(-1,null,["Mission Control"])),(t()(),n.Na(3,0,null,null,16,"mat-grid-list",[["class","mat-grid-list"],["cols","2"],["rowHeight","350px"]],null,null,null,x,w)),n.Ma(4,2211840,null,1,m,[n.k,[2,b.b]],{cols:[0,"cols"],rowHeight:[1,"rowHeight"]},null),n.bb(603979776,1,{_tiles:1}),(t()(),n.Na(6,0,null,0,13,"mat-grid-tile",[["class","mat-grid-tile"],["colspan","2"],["rowspan","2"]],null,null,null,S,O)),n.Ma(7,49152,[[1,4]],0,h,[n.k],{rowspan:[0,"rowspan"],colspan:[1,"colspan"]},null),(t()(),n.Na(8,0,null,0,11,"mat-card",[["class","dashboard-card mat-card"]],null,null,null,R.d,R.a)),n.Ma(9,49152,null,0,k.a,[],null,null),(t()(),n.Na(10,0,null,0,4,"mat-card-header",[["class","mat-card-header"]],null,null,null,R.c,R.b)),n.Ma(11,49152,null,0,k.e,[],null,null),(t()(),n.Na(12,0,null,1,2,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),n.Ma(13,16384,null,0,k.i,[],null,null),(t()(),n.db(-1,null,[" Next Launches "])),(t()(),n.Na(15,0,null,0,4,"mat-card-content",[["class","dashboard-card-content mat-card-content"]],null,null,null,null,null)),n.Ma(16,16384,null,0,k.d,[],null,null),(t()(),n.Na(17,0,null,null,2,"app-launches-list",[],null,null,null,z,X)),n.Ma(18,114688,null,0,T,[],{launches:[0,"launches"]},null),n.Za(131072,j.b,[n.h])],function(t,e){var i=e.component;t(e,4,0,"2","350px"),t(e,7,0,"2","2"),t(e,18,0,n.eb(e,18,0,n.Xa(e,19).transform(i.nextLaunches$)))},null)}var U=n.Ja("app-dash-board",W,function(t){return n.fb(0,[(t()(),n.Na(0,0,null,null,1,"app-dash-board",[],null,null,null,G,Z)),n.Ma(1,114688,null,0,W,[Y],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),q=i("n6gG"),Q=i("qAlS"),$=i("K9Ia"),K=i("pugT"),J=i("t9fZ"),tt=i("dWZg");function et(){throw Error("Host already has a portal attached")}var it=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&et(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),nt=function(t){function e(e,i,n){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=i,o.injector=n,o}return Object(s.b)(e,t),e}(it),ot=function(t){function e(e,i,n){var o=t.call(this)||this;return o.templateRef=e,o.viewContainerRef=i,o.context=n,o}return Object(s.b)(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,i){return void 0===i&&(i=this.context),this.context=i,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(it),rt=function(t){function e(e,i,n,o){var r=t.call(this)||this;return r.outletElement=e,r._componentFactoryResolver=i,r._appRef=n,r._defaultInjector=o,r}return Object(s.b)(e,t),e.prototype.attachComponentPortal=function(t){var e,i=this,n=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){i._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),this.setDisposeFn(function(){var t=i.indexOf(n);-1!==t&&i.remove(t)}),n},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&et(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof nt?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ot?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}()),st=function(){},lt=i("YSh2"),at=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),ht=function(){return function(t){var e=this;this.scrollStrategy=new at,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",t&&Object.keys(t).filter(function(e){return void 0!==t[e]}).forEach(function(i){return e[i]=t[i]})}}();function ct(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function ut(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var pt=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(q.c)(-this._previousScrollPosition.left),t.style.top=Object(q.c)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=this._document.body,i=t.style.scrollBehavior||"",n=e.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=i,e.style.scrollBehavior=n}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function dt(){return Error("Scroll strategy has already been attached.")}var ft=function(){function t(t,e,i,n){var o=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw dt();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}();function gt(t,e){return e.some(function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right})}function _t(t,e){return e.some(function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right})}var yt=function(){function t(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw dt();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),i=t._viewportRuler.getViewportSize(),n=i.width,o=i.height;gt(e,[{width:n,height:o,bottom:o,right:n,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),mt=function(){function t(t,e,i,n){var o=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=function(){return new at},this.close=function(t){return new ft(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new pt(o._viewportRuler,o._document)},this.reposition=function(t){return new yt(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=n}return t.ngInjectableDef=Object(n.Q)({factory:function(){return new t(Object(n.U)(Q.c),Object(n.U)(Q.e),Object(n.U)(n.x),Object(n.U)(j.d))},token:t,providedIn:"root"}),t}(),vt=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){e._attachedOverlays.length&&e._attachedOverlays[e._attachedOverlays.length-1]._keydownEvents.next(t)},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},t.ngInjectableDef=Object(n.Q)({factory:function(){return new t(Object(n.U)(j.d))},token:t,providedIn:"root"}),t}(),bt=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.ngInjectableDef=Object(n.Q)({factory:function(){return new t(Object(n.U)(j.d))},token:t,providedIn:"root"}),t}(),wt=function(){function t(t,e,i,n,o,r,s){this._portalOutlet=t,this._host=e,this._pane=i,this._config=n,this._ngZone=o,this._keyboardDispatcher=r,this._document=s,this._backdropElement=null,this._backdropClick=new $.a,this._attachments=new $.a,this._detachments=new $.a,this._keydownEvents=new $.a,n.scrollStrategy&&n.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,i=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(J.a)(1)).subscribe(function(){e.hasAttached()&&e.updatePosition()}),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),i},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._pane=null,t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=Object(s.a)({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=Object(s.a)({},this._config,{direction:t}),this._updateElementDirection()},t.prototype._updateElementDirection=function(){this._pane.setAttribute("dir",this._config.direction)},t.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=Object(q.c)(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=Object(q.c)(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=Object(q.c)(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=Object(q.c)(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=Object(q.c)(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=Object(q.c)(this._config.maxHeight))},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(e){return t._backdropClick.next(e)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var i=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),e.addEventListener("transitionend",i),e.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}},t.prototype._toggleClasses=function(t,e,i){var n=t.classList;Object(q.a)(e).forEach(function(t){i?n.add(t):n.remove(t)})},t}(),xt=function(){function t(t,e,i,n){this._viewportRuler=e,this._document=i,this._platform=n,this._isInitialRender=!0,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new $.a,this._resizeSubscription=K.a.EMPTY,this._offsetX=0,this._offsetY=0,this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return e.apply()})},t.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var t,e=this._originRect,i=this._overlayRect,n=this._viewportRect,o=[],r=0,s=this._preferredPositions;r<s.length;r++){var l=s[r],a=this._getOriginPoint(e,l),h=this._getOverlayPoint(a,i,l),c=this._getOverlayFit(h,i,n,l);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,a);this._canFitWithFlexibleDimensions(c,h,n)?o.push({position:l,origin:a,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(a,l)}):(!t||t.overlayFit.visibleArea<c.visibleArea)&&(t={overlayFit:c,overlayPoint:h,originPoint:a,position:l,overlayRect:i})}if(o.length){for(var u=null,p=-1,d=0,f=o;d<f.length;d++){var g=f[d],_=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);_>p&&(p=_,u=g)}return this._isPushed=!1,void this._applyPosition(u.position,u.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this.detach(),this._boundingBox=null,this._positionChanges.complete(),this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){this.scrollables=t},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t instanceof n.k?t.nativeElement:t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;i="start"==e.originX?n:o}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,i){var n;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+n,y:t.y+("center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,i,n){var o=t.x,r=t.y,s=this._getOffset(n,"x"),l=this._getOffset(n,"y");s&&(o+=s),l&&(r+=l);var a=0-r,h=r+e.height-i.height,c=this._subtractOverflows(e.width,0-o,o+e.width-i.width),u=this._subtractOverflows(e.height,a,h),p=c*u;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,o=i.right-e.x,r=this._overlayRef.getConfig().minHeight,s=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=r&&r<=n)&&(t.fitsInViewportHorizontally||null!=s&&s<=o)}},t.prototype._pushOverlayOnScreen=function(t,e){var i=this._viewportRect,n=Math.max(t.x+e.width-i.right,0),o=Math.max(t.y+e.height-i.bottom,0),r=Math.max(i.top-t.y,0),s=Math.max(i.left-t.x,0);return{x:t.x+(e.width<=i.width?s||-n:i.left-t.x),y:t.y+(e.height<=i.height?r||-o:i.top-t.y)}},t.prototype._applyPosition=function(t,e){this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),this._lastPosition=t;var i=new function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}(t,this._getScrollVisibility());this._positionChanges.next(i),this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,i=this._boundingBox.querySelectorAll(this._transformOriginSelector),n=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var o=0;o<i.length;o++)i[o].style.transformOrigin=e+" "+n}},t.prototype._calculateBoundingBoxRect=function(t,e){var i,n,o,r,s,l,a=this._viewportRect,h=this._isRtl();if("top"===e.overlayY)n=t.y,i=a.bottom-t.y;else if("bottom"===e.overlayY)i=a.height-(o=a.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var c=Math.min(a.bottom-t.y,t.y-a.left),u=this._lastBoundingBoxSize.height;n=t.y-c,(i=2*c)>u&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-u/2)}if("end"===e.overlayX&&!h||"start"===e.overlayX&&h)l=a.right-t.x+this._viewportMargin,r=t.x-a.left;else if("start"===e.overlayX&&!h||"end"===e.overlayX&&h)s=t.x,r=a.right-t.x;else{c=Math.min(a.right-t.x,t.x-a.top);var p=this._lastBoundingBoxSize.width;s=t.x-c,(r=2*c)>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.x-p/2)}return{top:n,left:s,bottom:o,right:l,width:r,height:i}},t.prototype._setBoundingBoxStyles=function(t,e){var i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right="",n.width=n.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=Object(q.c)(i.height),n.top=Object(q.c)(i.top),n.bottom=Object(q.c)(i.bottom),n.width=Object(q.c)(i.width),n.left=Object(q.c)(i.left),n.right=Object(q.c)(i.right),n.alignItems="center"===e.overlayX?"center":this._isRtl()?"end"===e.overlayX?"flex-start":"flex-end":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(n.maxHeight=Object(q.c)(o)),r&&(n.maxWidth=Object(q.c)(r))}this._lastBoundingBoxSize=i,Ot(this._boundingBox.style,n)},t.prototype._resetBoundingBoxStyles=function(){Ot(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){Ot(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},t.prototype._setOverlayElementStyles=function(t,e){var i={};this._hasExactPosition()?(Ot(i,this._getExactOverlayY(e,t)),Ot(i,this._getExactOverlayX(e,t))):i.position="static";var n="",o=this._getOffset(e,"x"),r=this._getOffset(e,"y");o&&(n+="translateX("+o+"px) "),r&&(n+="translateY("+r+"px)"),i.transform=n.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(i.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(i.maxWidth=""),Ot(this._pane.style,i)},t.prototype._getExactOverlayY=function(t,e){var i={top:null,bottom:null},n=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect)),"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(n.y+this._overlayRect.height)+"px":i.top=Object(q.c)(n.y),i},t.prototype._getExactOverlayX=function(t,e){var i={left:null,right:null},n=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(n.x+this._overlayRect.width)+"px":i.left=Object(q.c)(n.x),i},t.prototype._getScrollVisibility=function(){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),i=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:_t(t,i),isOriginOutsideView:gt(t,i),isOverlayClipped:_t(e,i),isOverlayOutsideView:gt(e,i)}},t.prototype._subtractOverflows=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce(function(t,e){return t-Math.max(e,0)},t)},t.prototype._getNarrowedViewportRect=function(){var t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}},t.prototype._isRtl=function(){return"rtl"===this._overlayRef.getConfig().direction},t.prototype._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed},t.prototype._getOffset=function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY},t.prototype._validatePositions=function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(function(t){ut("originX",t.originX),ct("originY",t.originY),ut("overlayX",t.overlayX),ct("overlayY",t.overlayY)})},t}();function Ot(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}var St=function(){function t(t,e,i,n,o,r){this._preferredPositions=[],this._positionStrategy=new xt(i,n,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._overlayRef.getConfig().direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._positionStrategy.positionChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)},t.prototype.dispose=function(){this._positionStrategy.dispose()},t.prototype.detach=function(){this._positionStrategy.detach()},t.prototype.apply=function(){this._positionStrategy.apply()},t.prototype.recalculateLastPosition=function(){this._positionStrategy.reapplyLastPosition()},t.prototype.withScrollableContainers=function(t){this._positionStrategy.withScrollableContainers(t)},t.prototype.withFallbackPosition=function(t,e,i,n){var o=new function(t,e,i,n){this.offsetX=i,this.offsetY=n,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}(t,e,i,n);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.withDirection=function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this},t.prototype.withOffsetX=function(t){return this._positionStrategy.withDefaultOffsetX(t),this},t.prototype.withOffsetY=function(t){return this._positionStrategy.withDefaultOffsetY(t),this},t.prototype.withLockedPosition=function(t){return this._positionStrategy.withLockedPosition(t),this},t.prototype.withPositions=function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.setOrigin=function(t){return this._positionStrategy.setOrigin(t),this},t}(),Rt=function(){function t(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return t.prototype.attach=function(t){var e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper")},t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this},t.prototype.height=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(){if(this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig();t.position=this._cssPosition,t.marginLeft="100%"===i.width?"0":this._leftOffset,t.marginTop="100%"===i.height?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,e.justifyContent="100%"===i.width?"flex-start":this._justifyContent,e.alignItems="100%"===i.height?"flex-start":this._alignItems}},t.prototype.dispose=function(){},t}(),kt=function(){function t(t,e,i){this._viewportRuler=t,this._document=e,this._platform=i}return t.prototype.global=function(){return new Rt},t.prototype.connectedTo=function(t,e,i){return new St(e,i,t,this._viewportRuler,this._document)},t.prototype.flexibleConnectedTo=function(t){return new xt(t,this._viewportRuler,this._document,this._platform)},t.ngInjectableDef=Object(n.Q)({factory:function(){return new t(Object(n.U)(Q.e),Object(n.U)(j.d),Object(n.U)(tt.a,8))},token:t,providedIn:"root"}),t}(),Pt=0,Et=function(){function t(t,e,i,n,o,r,s,l,a){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=o,this._injector=r,this._ngZone=s,this._document=l,this._directionality=a}return t.prototype.create=function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),o=new ht(t);return o.direction=o.direction||this._directionality.value,new wt(n,e,i,o,this._ngZone,this._keyboardDispatcher,this._document)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+Pt++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e},t.prototype._createHostElement=function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return this._appRef||(this._appRef=this._injector.get(n.g)),new rt(t,this._componentFactoryResolver,this._appRef,this._injector)},t}(),Ct=new n.o("cdk-connected-overlay-scroll-strategy");function jt(t){return function(){return t.scrollStrategies.reposition()}}var Bt=function(){};i("ihYY"),i("lLAP"),i("p0ib"),i("F/XL"),i("h9Dq"),i("VnD/"),i("MGBS"),i("zotm"),i("0/uQ"),i("p0Sj"),i("ny24"),i("T1DM"),i("FFOo"),i("G5J1"),i("XlPw");var Vt=new n.o("mat-menu-scroll-strategy");function Ht(t){return function(){return t.scrollStrategies.reposition()}}var Mt=function(){},Dt=function(){},Lt=i("SMsm"),Tt=i("UodH"),Xt=i("/dO6"),It=i("PCNd");i.d(e,"HomeModuleNgFactory",function(){return zt});var zt=n.Ka(o,[],function(t){return n.Ua([n.Va(512,n.j,n.Z,[[8,[U]],[3,n.j],n.v]),n.Va(4608,j.m,j.l,[n.s,[2,j.r]]),n.Va(4608,Et,Et,[mt,bt,n.j,kt,vt,n.p,n.x,j.d,b.b]),n.Va(5120,Ct,jt,[Et]),n.Va(5120,Vt,Ht,[Et]),n.Va(4608,r.b,r.b,[]),n.Va(1073742336,j.c,j.c,[]),n.Va(1073742336,C.m,C.m,[[2,C.r],[2,C.k]]),n.Va(1073742336,Dt,Dt,[]),n.Va(1073742336,b.a,b.a,[]),n.Va(1073742336,r.i,r.i,[[2,r.c]]),n.Va(1073742336,r.j,r.j,[]),n.Va(1073742336,v,v,[]),n.Va(1073742336,k.g,k.g,[]),n.Va(1073742336,tt.b,tt.b,[]),n.Va(1073742336,r.s,r.s,[]),n.Va(1073742336,st,st,[]),n.Va(1073742336,Q.b,Q.b,[]),n.Va(1073742336,Bt,Bt,[]),n.Va(1073742336,Mt,Mt,[]),n.Va(1073742336,Lt.b,Lt.b,[]),n.Va(1073742336,Tt.c,Tt.c,[]),n.Va(1073742336,Xt.c,Xt.c,[]),n.Va(1073742336,r.q,r.q,[]),n.Va(1073742336,H.b,H.b,[]),n.Va(1073742336,E.c,E.c,[]),n.Va(1073742336,It.a,It.a,[]),n.Va(1073742336,o,o,[]),n.Va(1024,C.i,function(){return[[{path:"",component:W}]]},[]),n.Va(256,Xt.a,{separatorKeyCodes:[lt.f]},[])])})}}]);