-
Notifications
You must be signed in to change notification settings - Fork 2
/
1-es5.2f41df6f52badd84f9c2.js
2 lines (2 loc) · 57.3 KB
/
1-es5.2f41df6f52badd84f9c2.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/ck9":function(t,e,i){"use strict";i.d(e,"a",function(){return n});var n=function(){function t(){}return t.prototype.createFake=function(t){var e=document.documentElement,i="rtl"===e.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[i?"right":"left"]="-9999px";var n=window.pageYOffset||e.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=t,document.body.appendChild(this.fakeElem),this.fakeElem.select(),this.fakeElem.setSelectionRange(0,this.fakeElem.value.length)},t.prototype.removeFake=function(){this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},t.prototype.copyText=function(t){try{return this.createFake(t),document.execCommand("copy")}catch(e){return!1}finally{this.removeFake()}},t}()},"0GXo":function(t,e,i){"use strict";i.d(e,"b",function(){return l}),i.d(e,"c",function(){return p}),i.d(e,"a",function(){return d});var n=i("CcnG"),o=i("Ip0R"),s=i("6CTB"),r=i("vARd"),a=i("vVVL"),c=i("/ck9"),h=i("vHPH"),l=n.ob({encapsulation:2,styles:[],data:{}});function u(t){return n.Ib(0,[(t()(),n.qb(0,0,null,null,4,"button",[["class","material-icons copy-button no-print"],["title","Copy code snippet"]],[[1,"aria-label",0]],[[null,"click"]],function(t,e,i){var n=!0;return"click"===e&&(n=!1!==t.component.doCopy()&&n),n},null,null)),(t()(),n.Gb(-1,null,["\n "])),(t()(),n.qb(2,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),n.Gb(-1,null,["content_copy"])),(t()(),n.Gb(-1,null,["\n "]))],null,function(t,e){t(e,0,0,e.component.ariaLabel)})}function p(t){return n.Ib(0,[n.Eb(402653184,1,{codeContainer:0}),(t()(),n.qb(1,0,null,null,6,"pre",[],[[8,"className",0]],null,null,null,null)),(t()(),n.Gb(-1,null,[" "])),(t()(),n.gb(16777216,null,null,1,null,u)),n.pb(4,16384,null,0,o.k,[n.Q,n.N],{ngIf:[0,"ngIf"]},null),(t()(),n.Gb(-1,null,["\n "])),(t()(),n.qb(6,0,[[1,0],["codeContainer",1]],null,0,"code",[["class","animated fadeIn"]],null,null,null,null,null)),(t()(),n.Gb(-1,null,["\n "]))],function(t,e){t(e,4,0,!e.component.hideCopy)},function(t,e){t(e,1,0,n.sb(1,"prettyprint lang-",e.component.language,""))})}function f(t){return n.Ib(0,[(t()(),n.qb(0,0,null,null,1,"aio-code",[],null,null,null,p,l)),n.pb(1,573440,null,0,s.a,[r.b,a.a,c.a,h.a],null,null)],null,null)}var d=n.mb("aio-code",s.a,f,{hideCopy:"hideCopy",language:"language",linenums:"linenums",path:"path",region:"region",header:"header"},{codeFormatted:"codeFormatted"},[])},"4c35":function(t,e,i){"use strict";i.d(e,"d",function(){return a}),i.d(e,"h",function(){return c}),i.d(e,"a",function(){return h}),i.d(e,"e",function(){return l}),i.d(e,"b",function(){return u}),i.d(e,"c",function(){return p}),i.d(e,"g",function(){return f}),i.d(e,"f",function(){return d});var n=i("mrSG"),o=i("CcnG");function s(){throw Error("Host already has a portal attached")}var r=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()&&s(),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}(),a=function(t){function e(e,i,n,o){var s=t.call(this)||this;return s.component=e,s.viewContainerRef=i,s.injector=n,s.componentFactoryResolver=o,s}return Object(n.c)(e,t),e}(r),c=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(n.c)(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}(r),h=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()&&s(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof c?(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}(),l=function(t){function e(e,i,n,o){var s=t.call(this)||this;return s.outletElement=e,s._componentFactoryResolver=i,s._appRef=n,s._defaultInjector=o,s}return Object(n.c)(e,t),e.prototype.attachComponentPortal=function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),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}(h),u=function(t){function e(e,i){return t.call(this,e,i)||this}return Object(n.c)(e,t),e}(c),p=function(t){function e(e,i){var n=t.call(this)||this;return n._componentFactoryResolver=e,n._viewContainerRef=i,n._isInitialized=!1,n.attached=new o.m,n}return Object(n.c)(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(n,i.length,e.injector||i.injector);return t.prototype.setDisposeFn.call(this,function(){return o.destroy()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o},e.prototype.attachTemplatePortal=function(e){var i=this;e.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return i._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n},e}(h),f=function(){return function(){}}(),d=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)},t}()},"6CTB":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("CcnG"),o=i("xMyE"),s=function(){function t(t,e,i,o){this.snackbar=t,this.pretty=e,this.copier=i,this.logger=o,this.ariaLabel="",this.codeFormatted=new n.m}return Object.defineProperty(t.prototype,"code",{get:function(){return this._code},set:function(t){this._code=t,this._code&&this._code.trim()?this.formatDisplayedCode():this.showMissingCodeMessage()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"header",{get:function(){return this._header},set:function(t){this._header=t,this.ariaLabel=this.header?"Copy code snippet from "+this.header:""},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.code&&this.formatDisplayedCode()},t.prototype.formatDisplayedCode=function(){var t,e,i=this,n=(t=Number.MAX_VALUE,(e=this.code.split("\n")).forEach(function(e){var i=e.search(/\S/);-1!==i&&(t=Math.min(i,t))}),e.map(function(e){return e.substr(t)}).join("\n").trim());this.setCodeHtml(n),this.codeText=this.getCodeText(),this.pretty.formatCode(n,this.language,this.getLinenums(n)).pipe(Object(o.a)(function(){return i.codeFormatted.emit()})).subscribe(function(t){return i.setCodeHtml(t)},function(t){})},t.prototype.showMissingCodeMessage=function(){var t=this.path?this.path+(this.region?"#"+this.region:""):"";this.setCodeHtml('<p class="code-missing">The code sample is missing'+(t?" for\n"+t:".")+"</p>")},t.prototype.setCodeHtml=function(t){this.codeContainer.nativeElement.innerHTML=t},t.prototype.getCodeText=function(){return this.codeContainer.nativeElement.textContent},t.prototype.doCopy=function(){var t=this.codeText;this.copier.copyText(t)?(this.logger.log("Copied code to clipboard:",t),this.snackbar.open("Code Copied","",{duration:800})):(this.logger.error(new Error('ERROR copying code to clipboard: "'+t+'"')),this.snackbar.open("Copy failed. Please try again!","",{duration:800}))},t.prototype.getLinenums=function(t){var e="boolean"==typeof this.linenums?this.linenums:"true"===this.linenums||"false"!==this.linenums&&("string"==typeof this.linenums?parseInt(this.linenums,10):this.linenums);return null==e||isNaN(e)?(t.match(/\n/g)||[]).length>10:e},t}()},V90o:function(t,e,i){"use strict";i.d(e,"a",function(){return n});var n=function(){return function(){}}()},eDkP:function(t,e,i){"use strict";i.d(e,"a",function(){return T}),i.d(e,"c",function(){return j}),i.d(e,"d",function(){return E}),i.d(e,"f",function(){return M}),i.d(e,"b",function(){return C}),i.d(e,"g",function(){return k}),i.d(e,"e",function(){return Y}),i.d(e,"h",function(){return H}),i.d(e,"i",function(){return z});var n=i("n6gG"),o=i("qAlS"),s=i("Ip0R"),r=i("CcnG"),a=i("mrSG"),c=i("K9Ia"),h=i("pugT"),l=i("6blF"),u=i("p0ib"),p=i("t9fZ"),f=i("ny24"),d=i("dWZg"),_=i("4c35"),y=(i("YSh2"),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(n.c)(-this._previousScrollPosition.left),t.style.top=Object(n.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=t.style,i=this._document.body.style,n=e.scrollBehavior||"",o=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=o}},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 g(){return Error("Scroll strategy has already been attached.")}var m=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 g();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.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),b=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function v(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 w(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 O=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 g();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;v(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.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),k=function(){function t(t,e,i,n){var o=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=function(){return new b},this.close=function(t){return new m(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new y(o._viewportRuler,o._document)},this.reposition=function(t){return new O(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=n}return t.ngInjectableDef=Object(r.Kb)({factory:function(){return new t(Object(r.Ob)(o.b),Object(r.Ob)(o.e),Object(r.Ob)(r.A),Object(r.Ob)(s.d))},token:t,providedIn:"root"}),t}(),C=function(){return function(t){var e=this;this.scrollStrategy=new b,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t&&Object.keys(t).forEach(function(i){void 0!==t[i]&&(e[i]=t[i])})}}(),R=function(){return function(t,e,i,n,o){this.offsetX=i,this.offsetY=n,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}(),P=function(){return function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}();function x(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function S(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var E=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var i=e._attachedOverlays,n=i.length-1;n>-1;n--)if(i[n]._keydownEventSubscriptions>0){i[n]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(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(r.Kb)({factory:function(){return new t(Object(r.Ob)(s.d))},token:t,providedIn:"root"}),t}(),j=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(r.Kb)({factory:function(){return new t(Object(r.Ob)(s.d))},token:t,providedIn:"root"}),t}(),B=function(){function t(t,e,i,n,o,s,r,a){var u=this;this._portalOutlet=t,this._host=e,this._pane=i,this._config=n,this._ngZone=o,this._keyboardDispatcher=s,this._document=r,this._location=a,this._backdropElement=null,this._backdropClick=new c.a,this._attachments=new c.a,this._detachments=new c.a,this._locationChanges=h.a.EMPTY,this._keydownEventsObservable=new l.a(function(t){var e=u._keydownEvents.subscribe(t);return u._keydownEventSubscriptions++,function(){e.unsubscribe(),u._keydownEventSubscriptions--}}),this._keydownEvents=new c.a,this._keydownEventSubscriptions=0,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}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._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(p.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),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(function(){return e.dispose()})),i},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),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._previousHostParent=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._keydownEventsObservable},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()},t.prototype.updatePositionStrategy=function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))},t.prototype.updateSize=function(t){this._config=Object(a.a)({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=Object(a.a)({},this._config,{direction:t}),this._updateElementDirection()},t.prototype.addPanelClass=function(t){this._pane&&this._toggleClasses(this._pane,t,!0)},t.prototype.removePanelClass=function(t){this._pane&&this._toggleClasses(this._pane,t,!1)},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype.updateScrollStrategy=function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){var t=this._pane.style;t.width=Object(n.c)(this._config.width),t.height=Object(n.c)(this._config.height),t.minWidth=Object(n.c)(this._config.minWidth),t.minHeight=Object(n.c)(this._config.minHeight),t.maxWidth=Object(n.c)(this._config.maxWidth),t.maxHeight=Object(n.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,n=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(e,t._config.backdropClass,!1),clearTimeout(i)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",i=this._ngZone.runOutsideAngular(function(){return setTimeout(n,500)})}},t.prototype._toggleClasses=function(t,e,i){var o=t.classList;Object(n.a)(e).forEach(function(t){i?o.add(t):o.remove(t)})},t.prototype._detachContentWhenStable=function(){var t=this;this._ngZone.runOutsideAngular(function(){var e=t._ngZone.onStable.asObservable().pipe(Object(f.a)(Object(u.a)(t._attachments,t._detachments))).subscribe(function(){t._pane&&t._host&&0!==t._pane.children.length||(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())})})},t.prototype._disposeScrollStrategy=function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())},t}(),A=function(){function t(t,e,i,n,o){var s=this;this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=o,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 c.a,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this._appliedPanelClasses=[],this.positionChanges=new l.a(function(t){var e=s._positionChanges.subscribe(t);return s._positionChangeSubscriptions++,function(){e.unsubscribe(),s._positionChangeSubscriptions--}}),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._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){e._isInitialRender=!0,e.apply()})},t.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var t,e=this._originRect,i=this._overlayRect,n=this._viewportRect,o=[],s=0,r=this._preferredPositions;s<r.length;s++){var a=r[s],c=this._getOriginPoint(e,a),h=this._getOverlayPoint(c,i,a),l=this._getOverlayFit(h,i,n,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(l,h,n)?o.push({position:a,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!t||t.overlayFit.visibleArea<l.visibleArea)&&(t={overlayFit:l,overlayPoint:h,originPoint:c,position:a,overlayRect:i})}if(o.length){for(var u=null,p=-1,f=0,d=o;f<d.length;f++){var _=d[f],y=_.boundingBoxRect.width*_.boundingBoxRect.height*(_.position.weight||1);y>p&&(p=y,u=_)}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._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&D(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),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){return this.scrollables=t,this},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,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,s=t.y,r=this._getOffset(n,"x"),a=this._getOffset(n,"y");r&&(o+=r),a&&(s+=a);var c=0-s,h=s+e.height-i.height,l=this._subtractOverflows(e.width,0-o,o+e.width-i.width),u=this._subtractOverflows(e.height,c,h),p=l*u;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:l==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,o=i.right-e.x,s=this._overlayRef.getConfig().minHeight,r=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=s&&s<=n)&&(t.fitsInViewportHorizontally||null!=r&&r<=o)}},t.prototype._pushOverlayOnScreen=function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,o,s=this._viewportRect,r=Math.max(t.x+e.width-s.right,0),a=Math.max(t.y+e.height-s.bottom,0),c=Math.max(s.top-i.top-t.y,0),h=Math.max(s.left-i.left-t.x,0);return this._previousPushAmount={x:n=e.width<=s.width?h||-r:t.x<this._viewportMargin?s.left-i.left-t.x:0,y:o=e.height<=s.height?c||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0},{x:t.x+n,y:t.y+o}},t.prototype._applyPosition=function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChangeSubscriptions>0){var i=this._getScrollVisibility(),n=new P(t,i);this._positionChanges.next(n)}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,s,r,a,c=this._viewportRect,h=this._isRtl();if("top"===e.overlayY)i=c.height-(n=t.y)+this._viewportMargin;else if("bottom"===e.overlayY)i=c.height-(o=c.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var l=Math.min(c.bottom-t.y+c.top,t.y),u=this._lastBoundingBoxSize.height;n=t.y-l,(i=2*l)>u&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-u/2)}if("end"===e.overlayX&&!h||"start"===e.overlayX&&h)a=c.right-t.x+this._viewportMargin,s=t.x-c.left;else if("start"===e.overlayX&&!h||"end"===e.overlayX&&h)r=t.x,s=c.right-t.x;else{l=Math.min(c.right-t.x+c.left,t.x);var p=this._lastBoundingBoxSize.width;r=t.x-l,(s=2*l)>p&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.x-p/2)}return{top:n,left:r,bottom:o,right:a,width:s,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 o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="",o.width=o.height="100%";else{var s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;o.height=Object(n.c)(i.height),o.top=Object(n.c)(i.top),o.bottom=Object(n.c)(i.bottom),o.width=Object(n.c)(i.width),o.left=Object(n.c)(i.left),o.right=Object(n.c)(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(o.maxHeight=Object(n.c)(s)),r&&(o.maxWidth=Object(n.c)(r))}this._lastBoundingBoxSize=i,D(this._boundingBox.style,o)},t.prototype._resetBoundingBoxStyles=function(){D(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){D(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var i={};if(this._hasExactPosition()){var n=this._viewportRuler.getViewportScrollPosition();D(i,this._getExactOverlayY(e,t,n)),D(i,this._getExactOverlayX(e,t,n))}else i.position="static";var o="",s=this._getOffset(e,"x"),r=this._getOffset(e,"y");s&&(o+="translateX("+s+"px) "),r&&(o+="translateY("+r+"px)"),i.transform=o.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(i.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(i.maxWidth=""),D(this._pane.style,i)},t.prototype._getExactOverlayY=function(t,e,i){var o={top:null,bottom:null},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));var r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?o.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":o.top=Object(n.c)(s.y),o},t.prototype._getExactOverlayX=function(t,e,i){var o={left:null,right:null},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?o.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":o.left=Object(n.c)(s.x),o},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:w(t,i),isOriginOutsideView:v(t,i),isOverlayClipped:w(e,i),isOverlayOutsideView:v(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.getDirection()},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){S("originX",t.originX),x("originY",t.originY),S("overlayX",t.overlayX),x("overlayY",t.overlayY)})},t.prototype._addPanelClasses=function(t){var e=this;this._pane&&Object(n.a)(t).forEach(function(t){""!==t&&-1===e._appliedPanelClasses.indexOf(t)&&(e._appliedPanelClasses.push(t),e._pane.classList.add(t))})},t.prototype._clearPanelClasses=function(){var t=this;this._pane&&(this._appliedPanelClasses.forEach(function(e){t._pane.classList.remove(e)}),this._appliedPanelClasses=[])},t.prototype._getOriginRect=function(){var t=this._origin;return t instanceof r.k?t.nativeElement.getBoundingClientRect():t instanceof HTMLElement?t.getBoundingClientRect():{top:t.y,bottom:t.y,left:t.x,right:t.x,height:0,width:0}},t}();function D(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}var I=function(){function t(t,e,i,n,o,s,r){this._preferredPositions=[],this._positionStrategy=new A(i,n,o,s,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._overlayRef.getDirection()},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 R(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}(),L=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"),this._isDisposed=!1},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&&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,"100%"===i.width?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems="100%"===i.height?"flex-start":this._alignItems}},t.prototype.dispose=function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},t}(),M=function(){function t(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}return t.prototype.global=function(){return new L},t.prototype.connectedTo=function(t,e,i){return new I(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)},t.prototype.flexibleConnectedTo=function(t){return new A(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)},t.ngInjectableDef=Object(r.Kb)({factory:function(){return new t(Object(r.Ob)(o.e),Object(r.Ob)(s.d),Object(r.Ob)(d.a),Object(r.Ob)(j))},token:t,providedIn:"root"}),t}(),F=0,T=function(){function t(t,e,i,n,o,s,r,a,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=o,this._injector=s,this._ngZone=r,this._document=a,this._directionality=c,this._location=h}return t.prototype.create=function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),o=new C(t);return o.direction=o.direction||this._directionality.value,new B(n,e,i,o,this._ngZone,this._keyboardDispatcher,this._document,this._location)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+F++,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(r.g)),new _.e(t,this._componentFactoryResolver,this._appRef,this._injector)},t}(),H=new r.q("cdk-connected-overlay-scroll-strategy");function z(t){return function(){return t.scrollStrategies.reposition()}}var Y=function(){return function(){}}()},vARd:function(t,e,i){"use strict";var n,o=i("K9Ia"),s=i("CcnG"),r=(i("ihYY"),i("mrSG")),a=i("4c35"),c=i("t9fZ"),h=i("ny24"),l=i("eDkP"),u=i("lLAP"),p=i("dWZg"),f=i("dzgT"),d=i("KQya"),_=i("6blF"),y=i("Gi3i"),g=i("67Y/"),m=i("p0Sj"),b=i("n6gG"),v=new Set,w=function(){function t(t){this.platform=t,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):O}return t.prototype.matchMedia=function(t){return this.platform.WEBKIT&&function(t){if(!v.has(t))try{n||((n=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(n)),n.sheet&&(n.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),v.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)},t.ngInjectableDef=Object(s.Kb)({factory:function(){return new t(Object(s.Ob)(p.a))},token:t,providedIn:"root"}),t}();function O(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var k=function(){function t(t,e){this.mediaMatcher=t,this.zone=e,this._queries=new Map,this._destroySubject=new o.a}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return C(Object(b.a)(t)).some(function(t){return e._registerQuery(t).mql.matches})},t.prototype.observe=function(t){var e=this,i=C(Object(b.a)(t)).map(function(t){return e._registerQuery(t).observable});return Object(f.a)(i).pipe(Object(y.a)(0,d.a),Object(g.a)(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var i=this.mediaMatcher.matchMedia(t),n={observable:new _.a(function(t){var n=function(i){return e.zone.run(function(){return t.next(i)})};return i.addListener(n),function(){i.removeListener(n)}}).pipe(Object(m.a)(i),Object(g.a)(function(e){return{query:t,matches:e.matches}}),Object(h.a)(this._destroySubject)),mql:i};return this._queries.set(t,n),n},t.ngInjectableDef=Object(s.Kb)({factory:function(){return new t(Object(s.Ob)(w),Object(s.Ob)(s.A))},token:t,providedIn:"root"}),t}();function C(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}i.d(e,"e",function(){return j}),i.d(e,"b",function(){return A}),i.d(e,"d",function(){return E}),i.d(e,"a",function(){return P}),i.d(e,"c",function(){return x}),i.d(e,"f",function(){return R}),i.d(e,"g",function(){return S});var R=function(){function t(t,e){var i=this;this._overlayRef=e,this._afterDismissed=new o.a,this._afterOpened=new o.a,this._onAction=new o.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(function(){return i.dismiss()}),t._onExit.subscribe(function(){return i._finishDismiss()})}return t.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())},t.prototype.closeWithAction=function(){this.dismissWithAction()},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},t)},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1},t.prototype.afterDismissed=function(){return this._afterDismissed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),P=new s.q("MatSnackBarData"),x=function(){return function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}(),S=function(){function t(t,e){this.snackBarRef=t,this.data=e}return t.prototype.action=function(){this.snackBarRef.dismissWithAction()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),t}(),E=function(t){function e(e,i,n,s){var r=t.call(this)||this;return r._ngZone=e,r._elementRef=i,r._changeDetectorRef=n,r.snackBarConfig=s,r._destroyed=!1,r._onExit=new o.a,r._onEnter=new o.a,r._animationState="void",r._role="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?null:"status":"alert",r}return Object(r.c)(e,t),e.prototype.attachComponentPortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)},e.prototype.onAnimationEnd=function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var i=this._onEnter;this._ngZone.run(function(){i.next(),i.complete()})}},e.prototype.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())},e.prototype.exit=function(){return this._animationState="hidden",this._onExit},e.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},e.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(c.a)(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})},e.prototype._applySnackBarClasses=function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(function(e){return t.classList.add(e)}):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")},e.prototype._assertNotAttached=function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")},e}(a.a),j=function(){return function(){}}(),B=new s.q("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new x}}),A=function(){function t(t,e,i,n,o,s){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=o,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){return this._attach(t,e)},t.prototype.openFromTemplate=function(t,e){return this._attach(t,e)},t.prototype.open=function(t,e,i){void 0===e&&(e="");var n=Object(r.a)({},this._defaultConfig,i);return n.data={message:t,action:e},n.announcementMessage||(n.announcementMessage=t),this.openFromComponent(S,n)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var i=new a.f(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[x,e]])),n=new a.d(E,e.viewContainerRef,i),o=t.attach(n);return o.instance.snackBarConfig=e,o.instance},t.prototype._attach=function(t,e){var i=Object(r.a)({},new x,this._defaultConfig,e),n=this._createOverlay(i),o=this._attachSnackBarContainer(n,i),l=new R(o,n);if(t instanceof s.N){var u=new a.h(t,null,{$implicit:i.data,snackBarRef:l});l.instance=o.attachTemplatePortal(u)}else{var p=this._createInjector(i,l),f=(u=new a.d(t,void 0,p),o.attachComponentPortal(u));l.instance=f.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)").pipe(Object(h.a)(n.detachments().pipe(Object(c.a)(1)))).subscribe(function(t){t.matches?n.overlayElement.classList.add("mat-snack-bar-handset"):n.overlayElement.classList.remove("mat-snack-bar-handset")}),this._animateSnackBar(l,i),this._openedSnackBarRef=l,this._openedSnackBarRef},t.prototype._animateSnackBar=function(t,e){var i=this;t.afterDismissed().subscribe(function(){i._openedSnackBarRef==t&&(i._openedSnackBarRef=null),e.announcementMessage&&i._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(function(){return t._dismissAfter(e.duration)}),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new l.b;e.direction=t.direction;var i=this._overlay.position().global(),n="rtl"===t.direction,o="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!n||"end"===t.horizontalPosition&&n,s=!o&&"center"!==t.horizontalPosition;return o?i.left("0"):s?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new a.f(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[R,e],[P,t.data]]))},t.ngInjectableDef=Object(s.Kb)({factory:function(){return new t(Object(s.Ob)(l.a),Object(s.Ob)(u.f),Object(s.Ob)(s.o),Object(s.Ob)(k),Object(s.Ob)(t,12),Object(s.Ob)(B))},token:t,providedIn:j}),t}()},vVVL:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("0/uQ"),o=i("S1nX"),s=i("67Y/"),r=i("P6uZ"),a=function(){function t(t){this.logger=t,this.prettyPrintOne=Object(n.a)(this.getPrettyPrintOne()).pipe(Object(o.a)())}return t.prototype.getPrettyPrintOne=function(){var t=this,e=window.prettyPrintOne;return e?Promise.resolve(e):i.e(14).then(i.t.bind(null,"Ue1H",7)).then(function(){return window.prettyPrintOne},function(e){var i="Cannot get prettify.js from server: "+e.message;return t.logger.error(new Error(i)),function(){throw new Error(i)}})},t.prototype.formatCode=function(t,e,i){return this.prettyPrintOne.pipe(Object(s.a)(function(n){try{return n(t,e,i)}catch(s){var o="Could not format code that begins '"+t.substr(0,50)+"...'.";throw console.error(o,s),new Error(o)}}),Object(r.a)())},t}()},xYTU:function(t,e,i){"use strict";i.d(e,"a",function(){return _}),i.d(e,"b",function(){return v});var n=i("CcnG"),o=i("vARd"),s=(i("eDkP"),i("Ip0R")),r=(i("Fzqc"),i("4c35")),a=(i("dWZg"),i("qAlS"),i("Wf4p"),i("ZYjt"),i("UodH")),c=i("bujt"),h=i("lLAP"),l=i("wFw1"),u=n.ob({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}@media (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"void, hidden",styles:{type:6,styles:{transform:"scale(0.8)",opacity:0},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function p(t){return n.Ib(0,[(t()(),n.gb(0,null,null,0))],null,null)}function f(t){return n.Ib(0,[n.Eb(402653184,1,{_portalOutlet:0}),(t()(),n.gb(16777216,null,null,1,null,p)),n.pb(2,212992,[[1,4]],0,r.c,[n.j,n.Q],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}function d(t){return n.Ib(0,[(t()(),n.qb(0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"]],[[1,"role",0],[40,"@state",0]],[["component","@state.done"]],function(t,e,i){var o=!0;return"component:@state.done"===e&&(o=!1!==n.Ab(t,1).onAnimationEnd(i)&&o),o},f,u)),n.pb(1,180224,null,0,o.d,[n.A,n.k,n.h,o.c],null,null)],null,function(t,e){t(e,0,0,n.Ab(e,1)._role,n.Ab(e,1)._animationState)})}var _=n.mb("snack-bar-container",o.d,d,{},{},[]),y=n.ob({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;height:100%;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}"],data:{}});function g(t){return n.Ib(0,[(t()(),n.qb(0,0,null,null,3,"div",[["class","mat-simple-snackbar-action"]],null,null,null,null,null)),(t()(),n.qb(1,0,null,null,2,"button",[["mat-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,i){var n=!0;return"click"===e&&(n=!1!==t.component.action()&&n),n},c.b,c.a)),n.pb(2,180224,null,0,a.b,[n.k,h.d,[2,l.a]],null,null),(t()(),n.Gb(3,0,["",""]))],null,function(t,e){var i=e.component;t(e,1,0,n.Ab(e,2).disabled||null,"NoopAnimations"===n.Ab(e,2)._animationMode),t(e,3,0,i.data.action)})}function m(t){return n.Ib(2,[(t()(),n.qb(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),n.Gb(1,null,["",""])),(t()(),n.gb(16777216,null,null,1,null,g)),n.pb(3,16384,null,0,s.k,[n.Q,n.N],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.component.hasAction)},function(t,e){t(e,1,0,e.component.data.message)})}function b(t){return n.Ib(0,[(t()(),n.qb(0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],null,null,null,m,y)),n.pb(1,49152,null,0,o.g,[o.f,o.a],null,null)],null,null)}var v=n.mb("simple-snack-bar",o.g,b,{},{},[])}}]);
//# sourceMappingURL=1-es5.2f41df6f52badd84f9c2.js.map