marketplacepos 2.4.6 → 2.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/Marketplace/162.607e0d0557cd1e06.js +1 -0
  2. package/Marketplace/180.bfed0f08b5cdbbde.js +1 -0
  3. package/Marketplace/{25.ba3606ad0ea92b4a.js → 25.5e00713dbd080b64.js} +1 -1
  4. package/Marketplace/32.9c83cc1dfc19e37d.js +1 -0
  5. package/Marketplace/{369.d711344db7113e55.js → 369.22148155f90d64b2.js} +1 -1
  6. package/Marketplace/397.727785281e7927cb.js +1 -0
  7. package/Marketplace/455.fc7663306b753727.js +1 -0
  8. package/Marketplace/463.7140b32660c473a4.js +1 -0
  9. package/Marketplace/516.f335756d88de781a.js +1 -0
  10. package/Marketplace/{716.8918af413ba6d384.js → 716.65e3e9a36c3e8be6.js} +1 -1
  11. package/Marketplace/717.c3d108362a36e597.js +1 -0
  12. package/Marketplace/785.e0040d021febffb1.js +1 -0
  13. package/Marketplace/832.6082371d3ebb95a0.js +1 -0
  14. package/Marketplace/874.6ae77583afef7f90.js +1 -0
  15. package/Marketplace/assets/lbd/_sidebar-and-main-panel.scss +1 -1
  16. package/Marketplace/assets/version-adjustment-v5.scss +9 -0
  17. package/Marketplace/index.html +2 -2
  18. package/Marketplace/main.195197d9958646d1.js +1 -0
  19. package/Marketplace/runtime.d61181a09cffdcb7.js +1 -0
  20. package/Marketplace/{styles.dc183203b654c19c.css → styles.dff58ae3c0783953.css} +2 -2
  21. package/package.json +1 -1
  22. package/Marketplace/162.4f60927eda97cc16.js +0 -1
  23. package/Marketplace/171.9284c660e58d6f8c.js +0 -1
  24. package/Marketplace/387.6e9471375d261f28.js +0 -1
  25. package/Marketplace/463.e1b8208c6f571003.js +0 -1
  26. package/Marketplace/516.57bcab321d07d544.js +0 -1
  27. package/Marketplace/61.481724edf2d23475.js +0 -1
  28. package/Marketplace/717.03a2e00d3bca2d89.js +0 -1
  29. package/Marketplace/832.40bafce037098f88.js +0 -1
  30. package/Marketplace/874.63ae9bf5eecf410e.js +0 -1
  31. package/Marketplace/983.e83c887fe86ec996.js +0 -1
  32. package/Marketplace/main.f2cf6124e7df7f02.js +0 -1
  33. package/Marketplace/runtime.ba9ecd190eb3a539.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[397],{7481:(Oe,he,l)=>{l.d(he,{R:()=>ee,p:()=>L});var r=l(4650),c=l(6895),n=l(4006),x=l(8252),ie=l(1589);function k(B,I){if(1&B){const F=r.EpF();r.ynx(0),r.TgZ(1,"div",18)(2,"input",19),r.NdJ("ngModelChange",function(G){r.CHM(F);const J=r.oxw();return r.KtG(J.text=G)})("keyup",function(){r.CHM(F);const G=r.oxw();return r.KtG(G.onTextChange())})("keyup.enter",function(){r.CHM(F);const G=r.oxw();return r.KtG(G.submit())}),r.qZA(),r.TgZ(3,"div")(4,"button",20),r.NdJ("click",function(){r.CHM(F);const G=r.oxw();return r.KtG(G.submit())}),r._UZ(5,"i",21),r.qZA()()(),r.BQk()}if(2&B){const F=r.oxw();r.xp6(2),r.Q6J("ngModel",F.text)("placeholder",F.searchBoxPlaceHolder)}}function re(B,I){if(1&B){const F=r.EpF();r.TgZ(0,"div",22)(1,"a",23)(2,"i",24),r._UZ(3,"i",25),r.qZA()(),r.TgZ(4,"form",26),r.Hsn(5,2),r.TgZ(6,"button",27),r.NdJ("click",function(){r.CHM(F);const G=r.oxw();return r.KtG(G.submit())}),r._UZ(7,"i",28),r._uU(8,"Search "),r.qZA()()()}}const E=[[["actions"]],[["content"]],[["filters"]]],y=["actions","content","filters"];let L=(()=>{class B{constructor(F){this.sidebarService=F,this.onSubmit=new r.vpe,this.textChange=new r.vpe,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search.."}submit(){this.inputText=this.text,this.onSubmit.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}IsActive(F){return this.getMenuNameByUrl(window.location.href)==this.getMenuNameByUrl(F)}toggledropdown(F){F.stopPropagation()}getMenuNameByUrl(F){var z=F.split("#");if(z.length>1){var J=z[1].split("/");return""!=J[0]?J[0]:J[1]}return F}toggleMenu(){this.sidebarService.toggleSidebar()}}return B.\u0275fac=function(F){return new(F||B)(r.Y36(ie.g))},B.\u0275cmp=r.Xpm({type:B,selectors:[["mainpanel"]],inputs:{text:"text",headerTitle:"headerTitle",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",showBeside:"showBeside",description:"description"},outputs:{onSubmit:"onSubmit",textChange:"textChange"},ngContentSelectors:y,decls:26,vars:4,consts:[[1,"navbar","navbar-default","fixed-top","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white"],[1,"row","px-7",2,"margin-top","9px"],[1,"col-auto","pe-0","order-0","g-0","ms-6"],[1,"navbar-brand","me-5","float-start","my-1",2,"margin-right","0px !important",3,"title"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0","ms-5",2,"padding-left","0px"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-lg-start","justify-content-end"],[4,"ngIf"],["class","dropdown text-secondary ps-5",4,"ngIf"],[1,"col","d-lg-none","d-flex","justify-content-end","align-items-center","order-lg-2","order-1"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-button","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-sort-down"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-filter","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-search"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3"],[1,"main-panel-content"],[1,"input-group",2,"width","13.375rem"],["type","text",1,"form-control",2,"font-size","1rem",3,"ngModel","placeholder","ngModelChange","keyup","keyup.enter"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-search"],[1,"dropdown","text-secondary","ps-5"],["id","dropdown-filter","role","button","data-bs-toggle","dropdown","data-bs-auto-close","outside","aria-expanded","false",1,"text-muted","h5"],[1,"fa","fa-filter"],[1,"fa-solid","fa-caret-down"],[1,"dropdown-menu",2,"left","auto !important"],["title","Click to filter!",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-search","pointer","me-1"]],template:function(F,z){1&F&&(r.F$t(E),r.TgZ(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),r._uU(4),r.qZA()(),r.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),r.YNc(10,k,6,2,"ng-container",7),r.qZA()(),r.YNc(11,re,9,0,"div",8),r.qZA()()(),r.TgZ(12,"div",9)(13,"button",10),r._UZ(14,"i",11),r.qZA(),r.TgZ(15,"button",12),r._UZ(16,"i",13),r.qZA(),r.TgZ(17,"button",14),r.NdJ("click",function(){return z.toggleMenu()}),r._UZ(18,"span",15)(19,"span",15)(20,"span",15),r.qZA()(),r.TgZ(21,"div",16),r.Hsn(22),r.qZA()()(),r.TgZ(23,"div",17)(24,"div"),r.Hsn(25,1),r.qZA()()),2&F&&(r.xp6(3),r.Q6J("title",z.description?z.description:""),r.xp6(1),r.hij(" ",z.headerTitle," "),r.xp6(6),r.Q6J("ngIf",!z.hideSearchBox),r.xp6(1),r.Q6J("ngIf",!z.hideSearchDropdown))},dependencies:[c.O5,n._Y,n.Fj,n.JJ,n.JL,n.On,n.F],styles:[".dropdown .dropdown-menu.show{top:100%!important;transform:none!important;z-index:10000;cursor:pointer}.search-box .dropdown-menu{border-radius:4px!important;margin:-5px 0 0!important;padding:10px}.search-box .dropdown-menu div.d-flex>div:not(:last-child){margin-right:10px}.search-box .dropdown-menu div[container]{width:200px}.search-box .dropdown-menu div[container]>div{margin:0 0 12px}.search-box .dropdown-menu div[container]>div>h6{margin-bottom:5px}.search-box .dropdown-menu div[container]>div>input,.search-box .dropdown-menu div[container]>div>select{width:100%;padding:7px 5px 6px;border:solid 1px #ddd}.search-box .dropdown-menu div[container]>div>input[datepicker]{width:95px}.search-box .dropdown-menu div[container]>div radioyesnob ul{margin:10px 0 0}.search-box .dropdown-menu .more{background-color:#fff;position:absolute;bottom:-15px;width:5rem}.search-box .dropdown-menu div[container]>div>h6{font-size:12px}.search-box .form-control{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:24.75rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media (max-width: 468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 480px){.navbar.page-nav{height:auto}}@media (min-width: 1366px){.navbar.page-nav{height:44px}}\n"],encapsulation:2}),B})(),ee=(()=>{class B{}return B.\u0275fac=function(F){return new(F||B)},B.\u0275mod=r.oAB({type:B}),B.\u0275inj=r.cJS({imports:[c.ez,n.u5,x.Bz]}),B})()},2397:(Oe,he,l)=>{l.r(he),l.d(he,{MenuModule:()=>Me});var r=l(6895),c=l(8252),n=l(8063),x=l(2722),ie=l(7579);class k{constructor(){this.menus=[{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products"},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory"},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price"},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/Order"},{Icon:"fas fa-clipboard-list",Title:"Report",Url:"/menu/report"},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic"},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel"},{Icon:"fas fa-file-alt",Title:"Logs",Url:"/menu/log"},{Icon:"fas fa-bell",Title:"Notification",Url:"/menu/Notification",Badge:!0}]}get getMenu(){return this.menus}}var re=l(4004),E=l(4650),y=l(9568),L=l(1589),ee=l(6989),B=l(8002),I=l(266),F=l(3238),z=l(2687),G=l(1281);let J=0;const ce=(0,F.Id)(class{}),ne="mat-badge-content";let de=(()=>{class H extends ce{constructor(b,w,te,ae,ue){super(),this._ngZone=b,this._elementRef=w,this._ariaDescriber=te,this._renderer=ae,this._animationMode=ue,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=J++,this._isInitialized=!1}get color(){return this._color}set color(b){this._setColor(b),this._color=b}get overlap(){return this._overlap}set overlap(b){this._overlap=(0,G.Ig)(b)}get content(){return this._content}set content(b){this._updateRenderedContent(b)}get description(){return this._description}set description(b){this._updateHostAriaDescription(b)}get hidden(){return this._hidden}set hidden(b){this._hidden=(0,G.Ig)(b)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const b=this._renderer.createElement("span"),w="mat-badge-active";return b.setAttribute("id",`mat-badge-content-${this._id}`),b.setAttribute("aria-hidden","true"),b.classList.add(ne),"NoopAnimations"===this._animationMode&&b.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(b),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{b.classList.add(w)})}):b.classList.add(w),b}_updateRenderedContent(b){const w=`${b??""}`.trim();this._isInitialized&&w&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=w),this._content=w}_updateHostAriaDescription(b){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),b&&this._ariaDescriber.describe(this._elementRef.nativeElement,b),this._description=b}_setColor(b){const w=this._elementRef.nativeElement.classList;w.remove(`mat-badge-${this._color}`),b&&w.add(`mat-badge-${b}`)}_clearExistingBadges(){const b=this._elementRef.nativeElement.querySelectorAll(`:scope > .${ne}`);for(const w of Array.from(b))w!==this._badgeElement&&w.remove()}}return H.\u0275fac=function(b){return new(b||H)(E.Y36(E.R0b),E.Y36(E.SBq),E.Y36(z.$s),E.Y36(E.Qsj),E.Y36(E.QbO,8))},H.\u0275dir=E.lG2({type:H,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(b,w){2&b&&E.ekj("mat-badge-overlap",w.overlap)("mat-badge-above",w.isAbove())("mat-badge-below",!w.isAbove())("mat-badge-before",!w.isAfter())("mat-badge-after",w.isAfter())("mat-badge-small","small"===w.size)("mat-badge-medium","medium"===w.size)("mat-badge-large","large"===w.size)("mat-badge-hidden",w.hidden||!w.content)("mat-badge-disabled",w.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[E.qOj]}),H})(),K=(()=>{class H{}return H.\u0275fac=function(b){return new(b||H)},H.\u0275mod=E.oAB({type:H}),H.\u0275inj=E.cJS({imports:[z.rt,F.BQ,F.BQ]}),H})();function Z(H,_e){if(1&H&&(E.ynx(0),E.TgZ(1,"p",21),E.ALo(2,"async"),E._uU(3),E.qZA(),E.BQk()),2&H){const b=E.oxw().$implicit,w=E.oxw();E.xp6(1),E.Q6J("matBadgeHidden",0==E.lcZ(2,2,w.notifications$)),E.xp6(2),E.Oqu(b.Title)}}function _(H,_e){if(1&H&&(E.TgZ(0,"p"),E._uU(1),E.qZA()),2&H){const b=E.oxw().$implicit;E.xp6(1),E.hij("",b.Title," ")}}function S(H,_e){if(1&H&&(E.TgZ(0,"li",17)(1,"a",18),E._UZ(2,"i"),E.YNc(3,Z,4,4,"ng-container",19),E.YNc(4,_,2,1,"ng-template",null,20,E.W1O),E.qZA()()),2&H){const b=_e.$implicit,w=E.MAs(5),te=E.oxw();E.xp6(1),E.Q6J("matTooltip",te.isCollapseSidebar?b.Title:"")("routerLink",b.Url),E.xp6(1),E.Tol(b.Icon),E.xp6(1),E.Q6J("ngIf",b.Badge)("ngIfElse",w)}}function v(H,_e){if(1&H){const b=E.EpF();E.TgZ(0,"div",22)(1,"span"),E._uU(2),E.TgZ(3,"a",23),E._uU(4,"this Article"),E.qZA(),E._uU(5," to renew your ShopID! "),E.qZA(),E.TgZ(6,"a",24),E.NdJ("click",function(){E.CHM(b);const te=E.oxw();return E.KtG(te.CloseWarning())}),E._UZ(7,"i",25),E.qZA()()}if(2&H){const b=E.oxw();E.xp6(2),E.AsE(" Your Shopee Channel ShopID ",b.ShopID," is expired in (",b.Difference_In_Days,") days, please refer to ")}}const oe=[{path:"",component:(()=>{class H{constructor(b,w,te,ae,ue){this._router=b,this.LocalData=w,this.toggleSidebarService=te,this.notificationService=ae,this.decodeTokenService=ue,this.Menu={},this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new ie.x,this.isCollapseSidebar=!1,this.initIntercom(),this.token=ue.getParseToken(),this.storeName=this.token.StoreName,this.Menu=(new k).getMenu,this.CheckExpired()}ngOnInit(){this.subscribeToSidebarChange(),this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe((0,re.U)(b=>b.length))}initIntercom(){var b=localStorage.getItem("Intercom"),w=JSON.parse(b);null==w?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:w.Name,email:w.Email,created_at:w.Created,user_hash:w.Hash})}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe((0,x.R)(this.destroy$)).subscribe(b=>{this.isNavOpen=b})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}CheckExpired(){let b=JSON.parse(window.localStorage.getItem("user"));if(b)if(null!=b.expiredAt)this.LogOut();else{let te=b.Channel;if(te.length>0)for(let ae of te)if(null!=ae.ExpiredTime&&0==ae.TypeID){let ue=new Date(ae.ExpiredTime),Se=new Date;var w=ue.getTime()-Se.getTime();this.Difference_In_Days=Math.round(w/864e5),this.Difference_In_Days<=10&&(this.IsExpired=!0,this.ShopID=ae.ShopID)}}}user(){this._router.navigate(["/menu/users"])}LogOut(){window.Intercom("shutdown"),window.localStorage.removeItem("user"),window.localStorage.removeItem("Intercom"),window.localStorage.removeItem("channel"),this.LocalData.clearDatabase(),this._router.navigate([""])}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(b){if(b){let w;const te=b.split(" ");return w=1==te.length?te[0].substring(0,2):te.shift().charAt(0)+te.pop().charAt(0),w}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return H.\u0275fac=function(b){return new(b||H)(E.Y36(c.F0),E.Y36(y.T),E.Y36(L.g),E.Y36(ee.g),E.Y36(B.e))},H.\u0275cmp=E.Xpm({type:H,selectors:[["app-menu"]],decls:23,vars:9,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer",3,"title"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["routerLinkActive","active"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],[4,"ngIf","ngIfElse"],["WITHOUT_BADGE",""],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation",3,"matBadgeHidden"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["target","_blank","href","https://support.dealpos.com/en/articles/5334947-renew-shopee-authorization"],[1,"alert-link","text-danger",2,"cursor","pointer",3,"click"],[1,"far","fa-times-circle","fa-lg"]],template:function(b,w){1&b&&(E.TgZ(0,"div",0)(1,"div",1)(2,"button",2),E.NdJ("click",function(){return w.onCallapseSidebar()}),E._UZ(3,"i",3),E.qZA(),E.TgZ(4,"div",4)(5,"div",5)(6,"a",6),E._uU(7),E.qZA(),E.TgZ(8,"div",7)(9,"div",8),E._uU(10),E.qZA(),E._UZ(11,"div",9),E.TgZ(12,"a",10),E.NdJ("click",function(){return w.LogOut()}),E._UZ(13,"i",11),E._uU(14,"\xa0 "),E.TgZ(15,"span"),E._uU(16," Log Out"),E.qZA()()()()(),E.TgZ(17,"div",12)(18,"ul",13),E.YNc(19,S,6,6,"li",14),E.qZA()()(),E.TgZ(20,"div",15),E.YNc(21,v,8,2,"div",16),E._UZ(22,"router-outlet"),E.qZA()()),2&b&&(E.ekj("nav-open",w.isNavOpen),E.xp6(1),E.Q6J("ngClass",w.isCollapseSidebar?"collapses":""),E.xp6(2),E.Q6J("ngClass",w.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),E.xp6(3),E.s9C("title",w.token.StoreName),E.xp6(1),E.hij(" ",w.storeName," "),E.xp6(3),E.hij("",w.token.UserName," "),E.xp6(9),E.Q6J("ngForOf",w.Menu),E.xp6(2),E.Q6J("ngIf",w.IsExpired))},dependencies:[r.mk,r.sg,r.O5,c.lC,c.yS,c.Od,I.gM,de,r.Ov],styles:[".top-initial[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:initial!important}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}}"]}),H})(),children:[{path:"",redirectTo:"products",pathMatch:"full"},{path:"products",loadChildren:()=>Promise.all([l.e(796),l.e(516),l.e(32),l.e(739),l.e(592),l.e(180)]).then(l.bind(l,1180)).then(H=>H.ProductModule),canActivate:[n.a],data:{title:"Products"}},{path:"inventory",loadChildren:()=>Promise.all([l.e(796),l.e(516),l.e(32),l.e(455),l.e(785),l.e(162)]).then(l.bind(l,9162)).then(H=>H.InventoryModule),canActivate:[n.a],data:{title:"Inventory"}},{path:"price",loadChildren:()=>Promise.all([l.e(796),l.e(516),l.e(32),l.e(455),l.e(785),l.e(592),l.e(874)]).then(l.bind(l,1874)).then(H=>H.PriceModule),canActivate:[n.a],data:{title:"Price"}},{path:"Order",loadChildren:()=>Promise.all([l.e(796),l.e(616),l.e(739),l.e(592),l.e(716)]).then(l.bind(l,1716)).then(H=>H.OrdersModule),canActivate:[n.a],data:{title:"Order"}},{path:"report",loadChildren:()=>Promise.all([l.e(616),l.e(585),l.e(360)]).then(l.bind(l,4360)).then(H=>H.ReportModule),canActivate:[n.a],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>l.e(512).then(l.bind(l,5512)).then(H=>H.LogisticModule),canActivate:[n.a],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>Promise.all([l.e(796),l.e(455),l.e(463)]).then(l.bind(l,6463)).then(H=>H.ChannelsModule),canActivate:[n.a],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>Promise.all([l.e(796),l.e(616),l.e(739),l.e(585),l.e(832)]).then(l.bind(l,1832)).then(H=>H.LogsModule),canActivate:[n.a],data:{title:"Orders"}},{path:"Notification",loadChildren:()=>Promise.all([l.e(796),l.e(592),l.e(717)]).then(l.bind(l,6717)).then(H=>H.NotificationModule),canActivate:[n.a],data:{title:"Push Notification"}}]}];let ve=(()=>{class H{}return H.\u0275fac=function(b){return new(b||H)},H.\u0275mod=E.oAB({type:H}),H.\u0275inj=E.cJS({imports:[c.Bz.forChild(oe),c.Bz]}),H})();var me=l(7481),xe=l(4006),be=l(5412),pe=l(1948),se=l(4144),V=l(9549),X=l(4385),le=l(5960),N=l(6709),Q=l(6401);let $=(()=>{class H{}return H.\u0275fac=function(b){return new(b||H)},H.\u0275mod=E.oAB({type:H}),H.\u0275inj=E.cJS({imports:[r.ez,xe.u5,be.Is,pe.Fk,se.c,V.lN,X.LD,N.p9,I.AV,le.n,Q.d]}),H})(),Me=(()=>{class H{}return H.\u0275fac=function(b){return new(b||H)},H.\u0275mod=E.oAB({type:H}),H.\u0275inj=E.cJS({providers:[r.uU],imports:[r.ez,ve,me.R,I.AV,$,K]}),H})()},3154:(Oe,he,l)=>{l.d(he,{g:()=>n});var r=(()=>{return(x=r||(r={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",x.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",x.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",x.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",x.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",r;var x})(),c=l(9694);let n=(()=>{class x{static IsNotEmpty(k){return""!=k&&k!=x.GuidEMpty&&null!=k&&null!=k}static IsEmpty(k){return""==k||null==k||null==k||k==x.GuidEMpty}static getChannelLogoByTypeId(k){let re;switch(k){case c.x.Tokopedia:re=r.TOKOPEDIA;break;case c.x.ShopeeV2:re=r.SHOOPE;break;case c.x.WooCommerce:re=r.WOOCOMMERCE;break;case c.x.Lazada:re=r.LAZADA;break;case c.x.Tiktok:re=r.TIKTOK}return re}static getDaysDiff(k,re){return(re.getTime()-k.getTime())/864e5}static addDays(k,re){const E=new Date(Number(k));return E.setDate(k.getDate()-re),E}static isValidDate(k){return k instanceof Date&&!isNaN(k)}static getImageInfo(k){return new Promise((re,E)=>{let y=new Image;y.src=k,y.decode().then(()=>{re({img:k,height:y.height,width:y.width})}).catch(()=>{E(new Error(`Image load error for ${k}`))})})}static formatTitleForFromDate(k,re){let E="dd MMM";return k.getMonth()==re.getMonth()&&(E="dd"),k.getFullYear()!=re.getFullYear()&&(E="dd MMM yyyy"),E}}return x.GuidEMpty="00000000-0000-0000-0000-000000000000",x})()},9694:(Oe,he,l)=>{l.d(he,{x:()=>r});var r=(()=>{return(c=r||(r={}))[c.Shopee=0]="Shopee",c[c.Tokopedia=1]="Tokopedia",c[c.WooCommerce=2]="WooCommerce",c[c.None=3]="None",c[c.KalCare=4]="KalCare",c[c.ShopeeV2=5]="ShopeeV2",c[c.Tiktok=6]="Tiktok",c[c.Lazada=7]="Lazada",r;var c})()},8063:(Oe,he,l)=>{l.d(he,{a:()=>n});var r=l(4650),c=l(8252);let n=(()=>{class x{constructor(k){this.router=k}canActivate(k,re){let E=JSON.parse(window.localStorage.getItem("user")),y=new Date;return null!=E&&y<new Date(E.Token.expiredAt)||(this.router.navigate([""]),!1)}}return x.\u0275fac=function(k){return new(k||x)(r.LFG(c.F0))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},9568:(Oe,he,l)=>{l.d(he,{T:()=>k});var r=l(4004),c=l(3154),n=l(9694),x=l(4650),ie=l(5421);let k=(()=>{class re{constructor(y){this.db=y,this.DATABASE="Categories"}saveCategoriesByChannelType(y,L){let ee=this.getKey(L);return this.db.add(this.DATABASE,y,ee).pipe((0,r.U)(B=>y))}getCategoriesByChannelType(y){let L=this.getKey(y);return this.db.getByKey(this.DATABASE,L)}getKey(y){let L="";switch(y){case n.x.Lazada:L="Lazada";break;case n.x.Tokopedia:L="Tokopedia"}return L}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){if(c.g.IsEmpty(this.hostName)){const y=localStorage.getItem("Authorization");this.hostName=JSON.parse(y)?.Host}return this.hostName}}return re.\u0275fac=function(y){return new(y||re)(x.LFG(ie.ys))},re.\u0275prov=x.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},6989:(Oe,he,l)=>{l.d(he,{g:()=>Y});var s,r=l(1135),c=(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a])},function(t,e){function a(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}),n=function(s){function t(e,a){var u=this,D=this.constructor.prototype;return(u=s.call(this,e)||this).statusCode=a,u.__proto__=D,u}return c(t,s),t}(Error),x=function(s){function t(e){void 0===e&&(e="A timeout occurred.");var d=this,u=this.constructor.prototype;return(d=s.call(this,e)||this).__proto__=u,d}return c(t,s),t}(Error),ie=function(s){function t(e){void 0===e&&(e="An abort occurred.");var d=this,u=this.constructor.prototype;return(d=s.call(this,e)||this).__proto__=u,d}return c(t,s),t}(Error),k=Object.assign||function(s){for(var t,e=1,a=arguments.length;e<a;e++)for(var d in t=arguments[e])Object.prototype.hasOwnProperty.call(t,d)&&(s[d]=t[d]);return s},re=function s(t,e,a){this.statusCode=t,this.statusText=e,this.content=a},E=function(){function s(){}return s.prototype.get=function(t,e){return this.send(k({},e,{method:"GET",url:t}))},s.prototype.post=function(t,e){return this.send(k({},e,{method:"POST",url:t}))},s.prototype.delete=function(t,e){return this.send(k({},e,{method:"DELETE",url:t}))},s.prototype.getCookieString=function(t){return""},s}(),y=(()=>(function(s){s[s.Trace=0]="Trace",s[s.Debug=1]="Debug",s[s.Information=2]="Information",s[s.Warning=3]="Warning",s[s.Error=4]="Error",s[s.Critical=5]="Critical",s[s.None=6]="None"}(y||(y={})),y))(),L=function(){function s(){}return s.prototype.log=function(t,e){},s.instance=new s,s}(),I=function(){function s(){}return s.isRequired=function(t,e){if(null==t)throw new Error("The '"+e+"' argument is required.")},s.isIn=function(t,e,a){if(!(t in e))throw new Error("Unknown "+a+" value: "+t+".")},s}(),F=function(){function s(){}return Object.defineProperty(s,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(s,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(s,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0}),s}();function z(s,t){var e="";return J(s)?(e="Binary data of length "+s.byteLength,t&&(e+=". Content: '"+function G(s){var t=new Uint8Array(s),e="";return t.forEach(function(a){e+="0x"+(a<16?"0":"")+a.toString(16)+" "}),e.substr(0,e.length-1)}(s)+"'")):"string"==typeof s&&(e="String data of length "+s.length,t&&(e+=". Content: '"+s+"'")),e}function J(s){return s&&typeof ArrayBuffer<"u"&&(s instanceof ArrayBuffer||s.constructor&&"ArrayBuffer"===s.constructor.name)}function ce(s,t,e,a,d,u,D){return function(s,t,e,a){return new(e||(e=Promise))(function(d,u){function D(f){try{M(a.next(f))}catch(g){u(g)}}function j(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new e(function(g){g(f.value)}).then(D,j)}M((a=a.apply(s,[])).next())})}(this,0,void 0,function(){var j,M,f,g,W;return function(s,t){var a,d,u,D,e={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return D={next:j(0),throw:j(1),return:j(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function j(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return e.label++,{value:f[1],done:!1};case 5:e.label++,d=f[1],f=[0];continue;case 7:f=e.ops.pop(),e.trys.pop();continue;default:if(!(u=(u=e.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){e.label=f[1];break}if(6===f[0]&&e.label<u[1]){e.label=u[1],u=f;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(f);break}u[2]&&e.ops.pop(),e.trys.pop();continue}f=t.call(s,e)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}}(this,function(fe){switch(fe.label){case 0:return d?[4,d()]:[3,2];case 1:(f=fe.sent())&&((j={}).Authorization="Bearer "+f,M=j),fe.label=2;case 2:return s.log(y.Trace,"("+t+" transport) sending data. "+z(u,D)+"."),g=J(u)?"arraybuffer":"text",[4,e.post(a,{content:u,headers:M,responseType:g})];case 3:return W=fe.sent(),s.log(y.Trace,"("+t+" transport) request complete. Response status: "+W.statusCode+"."),[2]}})})}var S,de=function(){function s(t,e){this.subject=t,this.observer=e}return s.prototype.dispose=function(){var t=this.subject.observers.indexOf(this.observer);t>-1&&this.subject.observers.splice(t,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch(function(e){})},s}(),K=function(){function s(t){this.minimumLogLevel=t,this.outputConsole=console}return s.prototype.log=function(t,e){if(t>=this.minimumLogLevel)switch(t){case y.Critical:case y.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+y[t]+": "+e);break;case y.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+y[t]+": "+e);break;case y.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+y[t]+": "+e);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+y[t]+": "+e)}},s}(),Z=function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a])};return function(t,e){function a(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),_=Object.assign||function(s){for(var t,e=1,a=arguments.length;e<a;e++)for(var d in t=arguments[e])Object.prototype.hasOwnProperty.call(t,d)&&(s[d]=t[d]);return s};if(typeof XMLHttpRequest>"u"){var v=require;S=v("request")}var A=function(s){function t(e){var a=s.call(this)||this;if(typeof S>"u")throw new Error("The 'request' module could not be loaded.");return a.logger=e,a.cookieJar=S.jar(),a.request=S.defaults({jar:a.cookieJar}),a}return Z(t,s),t.prototype.send=function(e){var a=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ie):new Promise(function(d,u){var D;D=J(e.content)?Buffer.from(e.content):e.content||"";var j=a.request(e.url,{body:D,encoding:"arraybuffer"===e.responseType?null:"utf8",headers:_({"X-Requested-With":"XMLHttpRequest"},e.headers),method:e.method,timeout:e.timeout},function(M,f,g){if(e.abortSignal&&(e.abortSignal.onabort=null),M)return"ETIMEDOUT"===M.code&&(a.logger.log(y.Warning,"Timeout from HTTP request."),u(new x)),a.logger.log(y.Warning,"Error from HTTP request. "+M),void u(M);f.statusCode>=200&&f.statusCode<300?d(new re(f.statusCode,f.statusMessage||"",g)):u(new n(f.statusMessage||"",f.statusCode||0))});e.abortSignal&&(e.abortSignal.onabort=function(){j.abort(),u(new ie)})})},t.prototype.getCookieString=function(e){return this.cookieJar.getCookieString(e)},t}(E),oe=function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a])};return function(t,e){function a(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),ve=function(s){function t(e){var a=s.call(this)||this;return a.logger=e,a}return oe(t,s),t.prototype.send=function(e){var a=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ie):e.method?e.url?new Promise(function(d,u){var D=new XMLHttpRequest;D.open(e.method,e.url,!0),D.withCredentials=!0,D.setRequestHeader("X-Requested-With","XMLHttpRequest"),D.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var j=e.headers;j&&Object.keys(j).forEach(function(M){D.setRequestHeader(M,j[M])}),e.responseType&&(D.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){D.abort(),u(new ie)}),e.timeout&&(D.timeout=e.timeout),D.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),D.status>=200&&D.status<300?d(new re(D.status,D.statusText,D.response||D.responseText)):u(new n(D.statusText,D.status))},D.onerror=function(){a.logger.log(y.Warning,"Error from HTTP request. "+D.status+": "+D.statusText+"."),u(new n(D.statusText,D.status))},D.ontimeout=function(){a.logger.log(y.Warning,"Timeout from HTTP request."),u(new x)},D.send(e.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(E),me=function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a])};return function(t,e){function a(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),xe=function(s){function t(e){var a=s.call(this)||this;return a.httpClient=typeof XMLHttpRequest<"u"?new ve(e):new A(e),a}return me(t,s),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ie):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(E),be=function(){function s(){}return s.write=function(t){return""+t+s.RecordSeparator},s.parse=function(t){if(t[t.length-1]!==s.RecordSeparator)throw new Error("Message is incomplete.");var e=t.split(s.RecordSeparator);return e.pop(),e},s.RecordSeparatorCode=30,s.RecordSeparator=String.fromCharCode(s.RecordSeparatorCode),s}(),pe=function(){function s(){}return s.prototype.writeHandshakeRequest=function(t){return be.write(JSON.stringify(t))},s.prototype.parseHandshakeResponse=function(t){var a,d;if(J(t)||typeof Buffer<"u"&&t instanceof Buffer){var u=new Uint8Array(t);if(-1===(D=u.indexOf(be.RecordSeparatorCode)))throw new Error("Message is incomplete.");var j=D+1;a=String.fromCharCode.apply(null,u.slice(0,j)),d=u.byteLength>j?u.slice(j).buffer:null}else{var D,M=t;if(-1===(D=M.indexOf(be.RecordSeparator)))throw new Error("Message is incomplete.");a=M.substring(0,j=D+1),d=M.length>j?M.substring(j):null}var f=be.parse(a),g=JSON.parse(f[0]);if(g.type)throw new Error("Expected a handshake response from the server.");return[d,g]},s}(),se=(()=>(function(s){s[s.Invocation=1]="Invocation",s[s.StreamItem=2]="StreamItem",s[s.Completion=3]="Completion",s[s.StreamInvocation=4]="StreamInvocation",s[s.CancelInvocation=5]="CancelInvocation",s[s.Ping=6]="Ping",s[s.Close=7]="Close"}(se||(se={})),se))(),V=function(){function s(){this.observers=[]}return s.prototype.next=function(t){for(var e=0,a=this.observers;e<a.length;e++)a[e].next(t)},s.prototype.error=function(t){for(var e=0,a=this.observers;e<a.length;e++){var d=a[e];d.error&&d.error(t)}},s.prototype.complete=function(){for(var t=0,e=this.observers;t<e.length;t++){var a=e[t];a.complete&&a.complete()}},s.prototype.subscribe=function(t){return this.observers.push(t),new de(this,t)},s}(),X=function(s,t,e,a){return new(e||(e=Promise))(function(d,u){function D(f){try{M(a.next(f))}catch(g){u(g)}}function j(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new e(function(g){g(f.value)}).then(D,j)}M((a=a.apply(s,t||[])).next())})},le=function(s,t){var a,d,u,D,e={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return D={next:j(0),throw:j(1),return:j(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function j(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return e.label++,{value:f[1],done:!1};case 5:e.label++,d=f[1],f=[0];continue;case 7:f=e.ops.pop(),e.trys.pop();continue;default:if(!(u=(u=e.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){e.label=f[1];break}if(6===f[0]&&e.label<u[1]){e.label=u[1],u=f;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(f);break}u[2]&&e.ops.pop(),e.trys.pop();continue}f=t.call(s,e)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}},$=(()=>(function(s){s.Disconnected="Disconnected",s.Connecting="Connecting",s.Connected="Connected",s.Disconnecting="Disconnecting",s.Reconnecting="Reconnecting"}($||($={})),$))(),Me=function(){function s(t,e,a,d){var u=this;this.nextKeepAlive=0,I.isRequired(t,"connection"),I.isRequired(e,"logger"),I.isRequired(a,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=e,this.protocol=a,this.connection=t,this.reconnectPolicy=d,this.handshakeProtocol=new pe,this.connection.onreceive=function(D){return u.processIncomingData(D)},this.connection.onclose=function(D){return u.connectionClosed(D)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=$.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:se.Ping})}return s.create=function(t,e,a,d){return new s(t,e,a,d)},Object.defineProperty(s.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(t){if(this.connectionState!==$.Disconnected&&this.connectionState!==$.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t},enumerable:!0,configurable:!0}),s.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},s.prototype.startWithStateTransitions=function(){return X(this,void 0,void 0,function(){var t;return le(this,function(e){switch(e.label){case 0:if(this.connectionState!==$.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=$.Connecting,this.logger.log(y.Debug,"Starting HubConnection."),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return e.sent(),this.connectionState=$.Connected,this.connectionStarted=!0,this.logger.log(y.Debug,"HubConnection connected successfully."),[3,4];case 3:return t=e.sent(),this.connectionState=$.Disconnected,this.logger.log(y.Debug,"HubConnection failed to start successfully because of error '"+t+"'."),[2,Promise.reject(t)];case 4:return[2]}})})},s.prototype.startInternal=function(){return X(this,void 0,void 0,function(){var t,e,a,d=this;return le(this,function(u){switch(u.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,t=new Promise(function(D,j){d.handshakeResolver=D,d.handshakeRejecter=j}),[4,this.connection.start(this.protocol.transferFormat)];case 1:u.sent(),u.label=2;case 2:return u.trys.push([2,5,,7]),e={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(y.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(e))];case 3:return u.sent(),this.logger.log(y.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,t];case 4:if(u.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return a=u.sent(),this.logger.log(y.Debug,"Hub handshake failed with error '"+a+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(a)];case 6:throw u.sent(),a;case 7:return[2]}})})},s.prototype.stop=function(){return X(this,void 0,void 0,function(){var t;return le(this,function(a){switch(a.label){case 0:return t=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,t];case 3:case 4:return a.sent(),[3,5];case 5:return[2]}})})},s.prototype.stopInternal=function(t){return this.connectionState===$.Disconnected?(this.logger.log(y.Debug,"Call to HubConnection.stop("+t+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===$.Disconnecting?(this.logger.log(y.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=$.Disconnecting,this.logger.log(y.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(y.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=t||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(t)))},s.prototype.stream=function(t){for(var e=this,a=[],d=1;d<arguments.length;d++)a[d-1]=arguments[d];var f,u=this.replaceStreamingParams(a),D=u[0],j=u[1],M=this.createStreamInvocation(t,a,j),g=new V;return g.cancelCallback=function(){var W=e.createCancelInvocation(M.invocationId);return delete e.callbacks[M.invocationId],f.then(function(){return e.sendWithProtocol(W)})},this.callbacks[M.invocationId]=function(W,fe){fe?g.error(fe):W&&(W.type===se.Completion?W.error?g.error(new Error(W.error)):g.complete():g.next(W.item))},f=this.sendWithProtocol(M).catch(function(W){g.error(W),delete e.callbacks[M.invocationId]}),this.launchStreams(D,f),g},s.prototype.sendMessage=function(t){return this.resetKeepAliveInterval(),this.connection.send(t)},s.prototype.sendWithProtocol=function(t){return this.sendMessage(this.protocol.writeMessage(t))},s.prototype.send=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];var d=this.replaceStreamingParams(e),u=d[0],D=d[1],j=this.sendWithProtocol(this.createInvocation(t,e,!0,D));return this.launchStreams(u,j),j},s.prototype.invoke=function(t){for(var e=this,a=[],d=1;d<arguments.length;d++)a[d-1]=arguments[d];var u=this.replaceStreamingParams(a),D=u[0],j=u[1],M=this.createInvocation(t,a,!1,j),f=new Promise(function(g,W){e.callbacks[M.invocationId]=function(Ce,Re){Re?W(Re):Ce&&(Ce.type===se.Completion?Ce.error?W(new Error(Ce.error)):g(Ce.result):W(new Error("Unexpected message type: "+Ce.type)))};var fe=e.sendWithProtocol(M).catch(function(Ce){W(Ce),delete e.callbacks[M.invocationId]});e.launchStreams(D,fe)});return f},s.prototype.on=function(t,e){!t||!e||(t=t.toLowerCase(),this.methods[t]||(this.methods[t]=[]),-1===this.methods[t].indexOf(e)&&this.methods[t].push(e))},s.prototype.off=function(t,e){if(t){t=t.toLowerCase();var a=this.methods[t];if(a)if(e){var d=a.indexOf(e);-1!==d&&(a.splice(d,1),0===a.length&&delete this.methods[t])}else delete this.methods[t]}},s.prototype.onclose=function(t){t&&this.closedCallbacks.push(t)},s.prototype.onreconnecting=function(t){t&&this.reconnectingCallbacks.push(t)},s.prototype.onreconnected=function(t){t&&this.reconnectedCallbacks.push(t)},s.prototype.processIncomingData=function(t){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(t=this.processHandshakeResponse(t),this.receivedHandshakeResponse=!0),t)for(var a=0,d=this.protocol.parseMessages(t,this.logger);a<d.length;a++){var u=d[a];switch(u.type){case se.Invocation:this.invokeClientMethod(u);break;case se.StreamItem:case se.Completion:var D=this.callbacks[u.invocationId];D&&(u.type===se.Completion&&delete this.callbacks[u.invocationId],D(u));break;case se.Ping:break;case se.Close:this.logger.log(y.Information,"Close message received from server.");var j=u.error?new Error("Server returned an error on close: "+u.error):void 0;!0===u.allowReconnect?this.connection.stop(j):this.stopPromise=this.stopInternal(j);break;default:this.logger.log(y.Warning,"Invalid message type: "+u.type+".")}}this.resetTimeoutPeriod()},s.prototype.processHandshakeResponse=function(t){var e,a,d,u;try{d=(e=this.handshakeProtocol.parseHandshakeResponse(t))[0],a=e[1]}catch(j){this.logger.log(y.Error,u="Error parsing handshake response: "+j);var D=new Error(u);throw this.handshakeRejecter(D),D}if(a.error)throw this.logger.log(y.Error,u="Server returned handshake error: "+a.error),D=new Error(u),this.handshakeRejecter(D),D;return this.logger.log(y.Debug,"Server handshake complete."),this.handshakeResolver(),d},s.prototype.resetKeepAliveInterval=function(){this.connection.features.inherentKeepAlive||(this.nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.cleanupPingTimer())},s.prototype.resetTimeoutPeriod=function(){var t=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout(function(){return t.serverTimeout()},this.serverTimeoutInMilliseconds),void 0!==this.pingServerHandle))){var e=this.nextKeepAlive-(new Date).getTime();e<0&&(e=0),this.pingServerHandle=setTimeout(function(){return X(t,void 0,void 0,function(){return le(this,function(d){switch(d.label){case 0:if(this.connectionState!==$.Connected)return[3,4];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return d.sent(),[3,4];case 3:return d.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}})})},e)}},s.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},s.prototype.invokeClientMethod=function(t){var e=this,a=this.methods[t.target.toLowerCase()];if(a){try{a.forEach(function(u){return u.apply(e,t.arguments)})}catch(u){this.logger.log(y.Error,"A callback for the method "+t.target.toLowerCase()+" threw error '"+u+"'.")}if(t.invocationId){var d="Server requested a response, which is not supported in this version of the client.";this.logger.log(y.Error,d),this.stopPromise=this.stopInternal(new Error(d))}}else this.logger.log(y.Warning,"No client method with the name '"+t.target+"' found.")},s.prototype.connectionClosed=function(t){this.logger.log(y.Debug,"HubConnection.connectionClosed("+t+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||t||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===$.Disconnecting?this.completeClose(t):this.connectionState===$.Connected&&this.reconnectPolicy?this.reconnect(t):this.connectionState===$.Connected&&this.completeClose(t)},s.prototype.completeClose=function(t){var e=this;if(this.connectionStarted){this.connectionState=$.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach(function(a){return a.apply(e,[t])})}catch(a){this.logger.log(y.Error,"An onclose callback called with error '"+t+"' threw error '"+a+"'.")}}},s.prototype.reconnect=function(t){return X(this,void 0,void 0,function(){var e,a,d,u,D,j=this;return le(this,function(M){switch(M.label){case 0:if(e=Date.now(),a=0,d=void 0!==t?t:new Error("Attempting to reconnect due to a unknown error."),null===(u=this.getNextRetryDelay(a++,0,d)))return this.logger.log(y.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(t),[2];if(this.connectionState=$.Reconnecting,this.logger.log(y.Information,t?"Connection reconnecting because of error '"+t+"'.":"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach(function(f){return f.apply(j,[t])})}catch(f){this.logger.log(y.Error,"An onreconnecting callback called with error '"+t+"' threw error '"+f+"'.")}if(this.connectionState!==$.Reconnecting)return this.logger.log(y.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}M.label=1;case 1:return null===u?[3,7]:(this.logger.log(y.Information,"Reconnect attempt number "+a+" will start in "+u+" ms."),[4,new Promise(function(f){j.reconnectDelayHandle=setTimeout(f,u)})]);case 2:if(M.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==$.Reconnecting)return this.logger.log(y.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];M.label=3;case 3:return M.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(M.sent(),this.connectionState=$.Connected,this.logger.log(y.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach(function(f){return f.apply(j,[j.connection.connectionId])})}catch(f){this.logger.log(y.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+f+"'.")}return[2];case 5:return D=M.sent(),this.logger.log(y.Information,"Reconnect attempt failed because of error '"+D+"'."),this.connectionState!==$.Reconnecting?(this.logger.log(y.Debug,"Connection moved to the '"+this.connectionState+"' from the reconnecting state during reconnect attempt. Done reconnecting."),this.connectionState===$.Disconnecting&&this.completeClose(),[2]):(d=D instanceof Error?D:new Error(D.toString()),u=this.getNextRetryDelay(a++,Date.now()-e,d),[3,6]);case 6:return[3,1];case 7:return this.logger.log(y.Information,"Reconnect retries have been exhausted after "+(Date.now()-e)+" ms and "+a+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}})})},s.prototype.getNextRetryDelay=function(t,e,a){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:e,previousRetryCount:t,retryReason:a})}catch(d){return this.logger.log(y.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+t+", "+e+") threw error '"+d+"'."),null}},s.prototype.cancelCallbacksWithError=function(t){var e=this.callbacks;this.callbacks={},Object.keys(e).forEach(function(a){(0,e[a])(null,t)})},s.prototype.cleanupPingTimer=function(){this.pingServerHandle&&(clearTimeout(this.pingServerHandle),this.pingServerHandle=void 0)},s.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},s.prototype.createInvocation=function(t,e,a,d){if(a)return{arguments:e,streamIds:d,target:t,type:se.Invocation};var u=this.invocationId;return this.invocationId++,{arguments:e,invocationId:u.toString(),streamIds:d,target:t,type:se.Invocation}},s.prototype.launchStreams=function(t,e){var a=this;if(0!==t.length){e||(e=Promise.resolve());var d=function(D){t[D].subscribe({complete:function(){e=e.then(function(){return a.sendWithProtocol(a.createCompletionMessage(D))})},error:function(j){var M;M=j instanceof Error?j.message:j&&j.toString?j.toString():"Unknown error",e=e.then(function(){return a.sendWithProtocol(a.createCompletionMessage(D,M))})},next:function(j){e=e.then(function(){return a.sendWithProtocol(a.createStreamItemMessage(D,j))})}})};for(var u in t)d(u)}},s.prototype.replaceStreamingParams=function(t){for(var e=[],a=[],d=0;d<t.length;d++){var u=t[d];if(this.isObservable(u)){var D=this.invocationId;this.invocationId++,e[D]=u,a.push(D.toString()),t.splice(d,1)}}return[e,a]},s.prototype.isObservable=function(t){return t&&t.subscribe&&"function"==typeof t.subscribe},s.prototype.createStreamInvocation=function(t,e,a){var d=this.invocationId;return this.invocationId++,{arguments:e,invocationId:d.toString(),streamIds:a,target:t,type:se.StreamInvocation}},s.prototype.createCancelInvocation=function(t){return{invocationId:t,type:se.CancelInvocation}},s.prototype.createStreamItemMessage=function(t,e){return{invocationId:t,item:e,type:se.StreamItem}},s.prototype.createCompletionMessage=function(t,e,a){return e?{error:e,invocationId:t,type:se.Completion}:{invocationId:t,result:a,type:se.Completion}},s}(),H=[0,2e3,1e4,3e4,null],_e=function(){function s(t){this.retryDelays=void 0!==t?t.concat([null]):H}return s.prototype.nextRetryDelayInMilliseconds=function(t){return this.retryDelays[t.previousRetryCount]},s}(),b=(()=>(function(s){s[s.None=0]="None",s[s.WebSockets=1]="WebSockets",s[s.ServerSentEvents=2]="ServerSentEvents",s[s.LongPolling=4]="LongPolling"}(b||(b={})),b))(),w=(()=>(function(s){s[s.Text=1]="Text",s[s.Binary=2]="Binary"}(w||(w={})),w))(),te=function(){function s(){this.isAborted=!1,this.onabort=null}return s.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(s.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),s}(),ae=function(s,t,e,a){return new(e||(e=Promise))(function(d,u){function D(f){try{M(a.next(f))}catch(g){u(g)}}function j(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new e(function(g){g(f.value)}).then(D,j)}M((a=a.apply(s,t||[])).next())})},ue=function(s,t){var a,d,u,D,e={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return D={next:j(0),throw:j(1),return:j(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function j(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return e.label++,{value:f[1],done:!1};case 5:e.label++,d=f[1],f=[0];continue;case 7:f=e.ops.pop(),e.trys.pop();continue;default:if(!(u=(u=e.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){e.label=f[1];break}if(6===f[0]&&e.label<u[1]){e.label=u[1],u=f;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(f);break}u[2]&&e.ops.pop(),e.trys.pop();continue}f=t.call(s,e)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}},Se=function(){function s(t,e,a,d){this.httpClient=t,this.accessTokenFactory=e,this.logger=a,this.pollAbort=new te,this.logMessageContent=d,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(s.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),s.prototype.connect=function(t,e){return ae(this,void 0,void 0,function(){var a,d,u,D;return ue(this,function(j){switch(j.label){case 0:if(I.isRequired(t,"url"),I.isRequired(e,"transferFormat"),I.isIn(e,w,"transferFormat"),this.url=t,this.logger.log(y.Trace,"(LongPolling transport) Connecting."),e===w.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return a={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},e===w.Binary&&(a.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return d=j.sent(),this.updateHeaderToken(a,d),u=t+"&_="+Date.now(),this.logger.log(y.Trace,"(LongPolling transport) polling: "+u+"."),[4,this.httpClient.get(u,a)];case 2:return 200!==(D=j.sent()).statusCode?(this.logger.log(y.Error,"(LongPolling transport) Unexpected response code: "+D.statusCode+"."),this.closeError=new n(D.statusText||"",D.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,a),[2]}})})},s.prototype.getAccessToken=function(){return ae(this,void 0,void 0,function(){return ue(this,function(t){switch(t.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,t.sent()];case 2:return[2,null]}})})},s.prototype.updateHeaderToken=function(t,e){t.headers||(t.headers={}),e?t.headers.Authorization="Bearer "+e:t.headers.Authorization&&delete t.headers.Authorization},s.prototype.poll=function(t,e){return ae(this,void 0,void 0,function(){var a,d,u,D;return ue(this,function(j){switch(j.label){case 0:j.trys.push([0,,8,9]),j.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:a=j.sent(),this.updateHeaderToken(e,a),j.label=3;case 3:return j.trys.push([3,5,,6]),d=t+"&_="+Date.now(),this.logger.log(y.Trace,"(LongPolling transport) polling: "+d+"."),[4,this.httpClient.get(d,e)];case 4:return 204===(u=j.sent()).statusCode?(this.logger.log(y.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==u.statusCode?(this.logger.log(y.Error,"(LongPolling transport) Unexpected response code: "+u.statusCode+"."),this.closeError=new n(u.statusText||"",u.statusCode),this.running=!1):u.content?(this.logger.log(y.Trace,"(LongPolling transport) data received. "+z(u.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(u.content)):this.logger.log(y.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return D=j.sent(),this.running?D instanceof x?this.logger.log(y.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=D,this.running=!1):this.logger.log(y.Trace,"(LongPolling transport) Poll errored after shutdown: "+D.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(y.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}})})},s.prototype.send=function(t){return ae(this,void 0,void 0,function(){return ue(this,function(e){return this.running?[2,ce(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},s.prototype.stop=function(){return ae(this,void 0,void 0,function(){var t,e;return ue(this,function(a){switch(a.label){case 0:this.logger.log(y.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),a.label=1;case 1:return a.trys.push([1,,5,6]),[4,this.receiving];case 2:return a.sent(),this.logger.log(y.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),t={headers:{}},[4,this.getAccessToken()];case 3:return e=a.sent(),this.updateHeaderToken(t,e),[4,this.httpClient.delete(this.url,t)];case 4:return a.sent(),this.logger.log(y.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(y.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}})})},s.prototype.raiseOnClose=function(){if(this.onclose){var t="(LongPolling transport) Firing onclose event.";this.closeError&&(t+=" Error: "+this.closeError),this.logger.log(y.Trace,t),this.onclose(this.closeError)}},s}(),Ae=function(s,t,e,a){return new(e||(e=Promise))(function(d,u){function D(f){try{M(a.next(f))}catch(g){u(g)}}function j(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new e(function(g){g(f.value)}).then(D,j)}M((a=a.apply(s,t||[])).next())})},Pe=function(s,t){var a,d,u,D,e={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return D={next:j(0),throw:j(1),return:j(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function j(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return e.label++,{value:f[1],done:!1};case 5:e.label++,d=f[1],f=[0];continue;case 7:f=e.ops.pop(),e.trys.pop();continue;default:if(!(u=(u=e.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){e.label=f[1];break}if(6===f[0]&&e.label<u[1]){e.label=u[1],u=f;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(f);break}u[2]&&e.ops.pop(),e.trys.pop();continue}f=t.call(s,e)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}},Be=function(){function s(t,e,a,d,u){this.httpClient=t,this.accessTokenFactory=e,this.logger=a,this.logMessageContent=d,this.eventSourceConstructor=u,this.onreceive=null,this.onclose=null}return s.prototype.connect=function(t,e){return Ae(this,void 0,void 0,function(){var a,d=this;return Pe(this,function(u){switch(u.label){case 0:return I.isRequired(t,"url"),I.isRequired(e,"transferFormat"),I.isIn(e,w,"transferFormat"),this.logger.log(y.Trace,"(SSE transport) Connecting."),this.url=t,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(a=u.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(a)),u.label=2;case 2:return[2,new Promise(function(D,j){var M=!1;if(e===w.Text){var f;if(F.isBrowser||F.isWebWorker)f=new d.eventSourceConstructor(t,{withCredentials:!0});else{var g=d.httpClient.getCookieString(t);f=new d.eventSourceConstructor(t,{withCredentials:!0,headers:{Cookie:g}})}try{f.onmessage=function(W){if(d.onreceive)try{d.logger.log(y.Trace,"(SSE transport) data received. "+z(W.data,d.logMessageContent)+"."),d.onreceive(W.data)}catch(fe){return void d.close(fe)}},f.onerror=function(W){var fe=new Error(W.data||"Error occurred");M?d.close(fe):j(fe)},f.onopen=function(){d.logger.log(y.Information,"SSE connected to "+d.url),d.eventSource=f,M=!0,D()}}catch(W){return void j(W)}}else j(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})]}})})},s.prototype.send=function(t){return Ae(this,void 0,void 0,function(){return Pe(this,function(e){return this.eventSource?[2,ce(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},s.prototype.stop=function(){return this.close(),Promise.resolve()},s.prototype.close=function(t){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(t))},s}(),Ve=function(){function s(t,e,a,d,u){this.logger=a,this.accessTokenFactory=e,this.logMessageContent=d,this.webSocketConstructor=u,this.httpClient=t,this.onreceive=null,this.onclose=null}return s.prototype.connect=function(t,e){return function(s,t,e,a){return new(e||(e=Promise))(function(d,u){function D(f){try{M(a.next(f))}catch(g){u(g)}}function j(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new e(function(g){g(f.value)}).then(D,j)}M((a=a.apply(s,[])).next())})}(this,0,void 0,function(){var a,d=this;return function(s,t){var a,d,u,D,e={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return D={next:j(0),throw:j(1),return:j(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function j(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return e.label++,{value:f[1],done:!1};case 5:e.label++,d=f[1],f=[0];continue;case 7:f=e.ops.pop(),e.trys.pop();continue;default:if(!(u=(u=e.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){e.label=f[1];break}if(6===f[0]&&e.label<u[1]){e.label=u[1],u=f;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(f);break}u[2]&&e.ops.pop(),e.trys.pop();continue}f=t.call(s,e)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}}(this,function(u){switch(u.label){case 0:return I.isRequired(t,"url"),I.isRequired(e,"transferFormat"),I.isIn(e,w,"transferFormat"),this.logger.log(y.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(a=u.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(a)),u.label=2;case 2:return[2,new Promise(function(D,j){t=t.replace(/^http/,"ws");var M,f=d.httpClient.getCookieString(t),g=!1;F.isNode&&f&&(M=new d.webSocketConstructor(t,void 0,{headers:{Cookie:""+f}})),M||(M=new d.webSocketConstructor(t)),e===w.Binary&&(M.binaryType="arraybuffer"),M.onopen=function(W){d.logger.log(y.Information,"WebSocket connected to "+t+"."),d.webSocket=M,g=!0,D()},M.onerror=function(W){var fe;fe=typeof ErrorEvent<"u"&&W instanceof ErrorEvent?W.error:new Error("There was an error with the transport."),j(fe)},M.onmessage=function(W){d.logger.log(y.Trace,"(WebSockets transport) data received. "+z(W.data,d.logMessageContent)+"."),d.onreceive&&d.onreceive(W.data)},M.onclose=function(W){if(g)d.close(W);else{var fe;fe=typeof ErrorEvent<"u"&&W instanceof ErrorEvent?W.error:new Error("There was an error with the transport."),j(fe)}}})]}})})},s.prototype.send=function(t){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(y.Trace,"(WebSockets transport) sending data. "+z(t,this.logMessageContent)+"."),this.webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},s.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},s.prototype.close=function(t){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(y.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!t||!1!==t.wasClean&&1e3===t.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+t.code+" ("+t.reason+").")))},s}(),Ee=function(s,t,e,a){return new(e||(e=Promise))(function(d,u){function D(f){try{M(a.next(f))}catch(g){u(g)}}function j(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new e(function(g){g(f.value)}).then(D,j)}M((a=a.apply(s,t||[])).next())})},O=function(s,t){var a,d,u,D,e={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return D={next:j(0),throw:j(1),return:j(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function j(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return e.label++,{value:f[1],done:!1};case 5:e.label++,d=f[1],f=[0];continue;case 7:f=e.ops.pop(),e.trys.pop();continue;default:if(!(u=(u=e.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){e.label=f[1];break}if(6===f[0]&&e.label<u[1]){e.label=u[1],u=f;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(f);break}u[2]&&e.ops.pop(),e.trys.pop();continue}f=t.call(s,e)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}},o=null,i=null;if(F.isNode){var h=require;o=h("ws"),i=h("eventsource")}var p=function(){function s(t,e){void 0===e&&(e={}),this.stopPromiseResolver=function(){},this.features={},this.negotiateVersion=1,I.isRequired(t,"url"),this.logger=function ne(s){return void 0===s?new K(y.Information):null===s?L.instance:s.log?s:new K(s)}(e.logger),this.baseUrl=this.resolveUrl(t),(e=e||{}).logMessageContent=e.logMessageContent||!1,!F.isNode&&typeof WebSocket<"u"&&!e.WebSocket?e.WebSocket=WebSocket:F.isNode&&!e.WebSocket&&o&&(e.WebSocket=o),!F.isNode&&typeof EventSource<"u"&&!e.EventSource?e.EventSource=EventSource:F.isNode&&!e.EventSource&&typeof i<"u"&&(e.EventSource=i),this.httpClient=e.httpClient||new xe(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=e,this.onreceive=null,this.onclose=null}return s.prototype.start=function(t){return Ee(this,void 0,void 0,function(){var e;return O(this,function(a){switch(a.label){case 0:return I.isIn(t=t||w.Binary,w,"transferFormat"),this.logger.log(y.Debug,"Starting connection with transfer format '"+w[t]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(t),[4,this.startInternalPromise]);case 1:return a.sent(),"Disconnecting"!==this.connectionState?[3,3]:(this.logger.log(y.Error,e="Failed to start the HttpConnection before stop() was called."),[4,this.stopPromise]);case 2:return a.sent(),[2,Promise.reject(new Error(e))];case 3:if("Connected"!==this.connectionState)return this.logger.log(y.Error,e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!"),[2,Promise.reject(new Error(e))];a.label=4;case 4:return this.connectionStarted=!0,[2]}})})},s.prototype.send=function(t){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new P(this.transport)),this.sendQueue.send(t))},s.prototype.stop=function(t){return Ee(this,void 0,void 0,function(){var e=this;return O(this,function(a){switch(a.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(y.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(y.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise(function(d){e.stopPromiseResolver=d}),[4,this.stopInternal(t)]);case 1:return a.sent(),[4,this.stopPromise];case 2:return a.sent(),[2]}})})},s.prototype.stopInternal=function(t){return Ee(this,void 0,void 0,function(){var a;return O(this,function(d){switch(d.label){case 0:this.stopError=t,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:case 3:return d.sent(),[3,4];case 4:if(!this.transport)return[3,9];d.label=5;case 5:return d.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return d.sent(),[3,8];case 7:return a=d.sent(),this.logger.log(y.Error,"HttpConnection.transport.stop() threw error '"+a+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(y.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),d.label=10;case 10:return[2]}})})},s.prototype.startInternal=function(t){return Ee(this,void 0,void 0,function(){var e,a,d,u,D,j;return O(this,function(M){switch(M.label){case 0:e=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,M.label=1;case 1:return M.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==b.WebSockets?[3,3]:(this.transport=this.constructTransport(b.WebSockets),[4,this.startTransport(e,t)]):[3,5];case 2:return M.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:a=null,d=0,u=function(){var f;return O(this,function(g){switch(g.label){case 0:return[4,D.getNegotiationResponse(e)];case 1:if(a=g.sent(),"Disconnecting"===D.connectionState||"Disconnected"===D.connectionState)throw new Error("The connection was stopped during negotiation.");if(a.error)throw new Error(a.error);if(a.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return a.url&&(e=a.url),a.accessToken&&(f=a.accessToken,D.accessTokenFactory=function(){return f}),d++,[2]}})},D=this,M.label=6;case 6:return[5,u()];case 7:M.sent(),M.label=8;case 8:if(a.url&&d<100)return[3,6];M.label=9;case 9:if(100===d&&a.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(e,this.options.transport,a,t)];case 10:M.sent(),M.label=11;case 11:return this.transport instanceof Se&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(y.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return j=M.sent(),this.logger.log(y.Error,"Failed to start the connection: "+j),this.connectionState="Disconnected",this.transport=void 0,this.stopPromiseResolver(),[2,Promise.reject(j)];case 13:return[2]}})})},s.prototype.getNegotiationResponse=function(t){return Ee(this,void 0,void 0,function(){var e,a,d,u,D,j,M;return O(this,function(f){switch(f.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(d=f.sent())&&((e={}).Authorization="Bearer "+d,a=e),f.label=2;case 2:u=this.resolveNegotiateUrl(t),this.logger.log(y.Debug,"Sending negotiation request: "+u+"."),f.label=3;case 3:return f.trys.push([3,5,,6]),[4,this.httpClient.post(u,{content:"",headers:a})];case 4:return 200!==(D=f.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+D.statusCode))]:((!(j=JSON.parse(D.content)).negotiateVersion||j.negotiateVersion<1)&&(j.connectionToken=j.connectionId),[2,j]);case 5:return M=f.sent(),this.logger.log(y.Error,"Failed to complete negotiation with the server: "+M),[2,Promise.reject(M)];case 6:return[2]}})})},s.prototype.createConnectUrl=function(t,e){return e?t+(-1===t.indexOf("?")?"?":"&")+"id="+e:t},s.prototype.createTransport=function(t,e,a,d){return Ee(this,void 0,void 0,function(){var u,D,M,f,g,W,fe,Ce,Re;return O(this,function(Fe){switch(Fe.label){case 0:return u=this.createConnectUrl(t,a.connectionToken),this.isITransport(e)?(this.logger.log(y.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,[4,this.startTransport(u,d)]):[3,2];case 1:return Fe.sent(),this.connectionId=a.connectionId,[2];case 2:D=[],M=a,f=0,g=a.availableTransports||[],Fe.label=3;case 3:return f<g.length?(fe=this.resolveTransportOrError(W=g[f],e,d))instanceof Error?(D.push(W.transport+" failed: "+fe),[3,12]):[3,4]:[3,13];case 4:if(!this.isITransport(fe))return[3,12];if(this.transport=fe,M)return[3,9];Fe.label=5;case 5:return Fe.trys.push([5,7,,8]),[4,this.getNegotiationResponse(t)];case 6:return M=Fe.sent(),[3,8];case 7:return Ce=Fe.sent(),[2,Promise.reject(Ce)];case 8:u=this.createConnectUrl(t,M.connectionToken),Fe.label=9;case 9:return Fe.trys.push([9,11,,12]),[4,this.startTransport(u,d)];case 10:return Fe.sent(),this.connectionId=M.connectionId,[2];case 11:return Re=Fe.sent(),this.logger.log(y.Error,"Failed to start the transport '"+W.transport+"': "+Re),M=void 0,D.push(W.transport+" failed: "+Re),"Connecting "!==this.connectionState?(this.logger.log(y.Debug,"Failed to select transport before stop() was called."),[2,Promise.reject(new Error("Failed to select transport before stop() was called."))]):[3,12];case 12:return f++,[3,3];case 13:return D.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+D.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}})})},s.prototype.constructTransport=function(t){switch(t){case b.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Ve(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case b.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Be(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case b.LongPolling:return new Se(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+t+".")}},s.prototype.startTransport=function(t,e){var a=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(d){return a.stopConnection(d)},this.transport.connect(t,e)},s.prototype.resolveTransportOrError=function(t,e,a){var d=b[t.transport];if(null==d)return this.logger.log(y.Debug,"Skipping transport '"+t.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+t.transport+"' because it is not supported by this client.");if(!function T(s,t){return!s||0!=(t&s)}(e,d))return this.logger.log(y.Debug,"Skipping transport '"+b[d]+"' because it was disabled by the client."),new Error("'"+b[d]+"' is disabled by the client.");if(!(t.transferFormats.map(function(D){return w[D]}).indexOf(a)>=0))return this.logger.log(y.Debug,"Skipping transport '"+b[d]+"' because it does not support the requested transfer format '"+w[a]+"'."),new Error("'"+b[d]+"' does not support "+w[a]+".");if(d===b.WebSockets&&!this.options.WebSocket||d===b.ServerSentEvents&&!this.options.EventSource)return this.logger.log(y.Debug,"Skipping transport '"+b[d]+"' because it is not supported in your environment.'"),new Error("'"+b[d]+"' is not supported in your environment.");this.logger.log(y.Debug,"Selecting transport '"+b[d]+"'.");try{return this.constructTransport(d)}catch(D){return D}},s.prototype.isITransport=function(t){return t&&"object"==typeof t&&"connect"in t},s.prototype.stopConnection=function(t){var e=this;if(this.logger.log(y.Debug,"HttpConnection.stopConnection("+t+") called while in state "+this.connectionState+"."),this.transport=void 0,t=this.stopError||t,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),t?this.logger.log(y.Error,"Connection disconnected with error '"+t+"'."):this.logger.log(y.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch(function(a){e.logger.log(y.Error,"TransportSendQueue.stop() threw error '"+a+"'.")}),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(a){this.logger.log(y.Error,"HttpConnection.onclose("+t+") threw error '"+a+"'.")}}}else this.logger.log(y.Warning,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(y.Debug,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection is already in the disconnected state.")},s.prototype.resolveUrl=function(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if(!F.isBrowser||!window.document)throw new Error("Cannot resolve '"+t+"'.");var e=window.document.createElement("a");return e.href=t,this.logger.log(y.Information,"Normalizing '"+t+"' to '"+e.href+"'."),e.href},s.prototype.resolveNegotiateUrl=function(t){var e=t.indexOf("?"),a=t.substring(0,-1===e?t.length:e);return"/"!==a[a.length-1]&&(a+="/"),a+="negotiate",-1===(a+=-1===e?"":t.substring(e)).indexOf("negotiateVersion")&&(a+=-1===e?"?":"&",a+="negotiateVersion="+this.negotiateVersion),a},s}(),P=function(){function s(t){this.transport=t,this.buffer=[],this.executing=!0,this.sendBufferedData=new q,this.transportResult=new q,this.sendLoopPromise=this.sendLoop()}return s.prototype.send=function(t){return this.bufferData(t),this.transportResult||(this.transportResult=new q),this.transportResult.promise},s.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},s.prototype.bufferData=function(t){if(this.buffer.length&&typeof this.buffer[0]!=typeof t)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof t);this.buffer.push(t),this.sendBufferedData.resolve()},s.prototype.sendLoop=function(){return Ee(this,void 0,void 0,function(){var t,e,a;return O(this,function(d){switch(d.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(d.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new q,t=this.transportResult,this.transportResult=void 0,e="string"==typeof this.buffer[0]?this.buffer.join(""):s.concatBuffers(this.buffer),this.buffer.length=0,d.label=2;case 2:return d.trys.push([2,4,,5]),[4,this.transport.send(e)];case 3:return d.sent(),t.resolve(),[3,5];case 4:return a=d.sent(),t.reject(a),[3,5];case 5:return[3,0];case 6:return[2]}})})},s.concatBuffers=function(t){for(var e=t.map(function(M){return M.byteLength}).reduce(function(M,f){return M+f}),a=new Uint8Array(e),d=0,u=0,D=t;u<D.length;u++){var j=D[u];a.set(new Uint8Array(j),d),d+=j.byteLength}return a},s}(),q=function(){function s(){var t=this;this.promise=new Promise(function(e,a){var d;return t.resolver=(d=[e,a])[0],t.rejecter=d[1],d})}return s.prototype.resolve=function(){this.resolver()},s.prototype.reject=function(t){this.rejecter(t)},s}(),ye=function(){function s(){this.name="json",this.version=1,this.transferFormat=w.Text}return s.prototype.parseMessages=function(t,e){if("string"!=typeof t)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];null===e&&(e=L.instance);for(var d=[],u=0,D=be.parse(t);u<D.length;u++){var M=JSON.parse(D[u]);if("number"!=typeof M.type)throw new Error("Invalid payload.");switch(M.type){case se.Invocation:this.isInvocationMessage(M);break;case se.StreamItem:this.isStreamItemMessage(M);break;case se.Completion:this.isCompletionMessage(M);break;case se.Ping:case se.Close:break;default:e.log(y.Information,"Unknown message type '"+M.type+"' ignored.");continue}d.push(M)}return d},s.prototype.writeMessage=function(t){return be.write(JSON.stringify(t))},s.prototype.isInvocationMessage=function(t){this.assertNotEmptyString(t.target,"Invalid payload for Invocation message."),void 0!==t.invocationId&&this.assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")},s.prototype.isStreamItemMessage=function(t){if(this.assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),void 0===t.item)throw new Error("Invalid payload for StreamItem message.")},s.prototype.isCompletionMessage=function(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this.assertNotEmptyString(t.error,"Invalid payload for Completion message."),this.assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")},s.prototype.assertNotEmptyString=function(t,e){if("string"!=typeof t||""===t)throw new Error(e)},s}(),ke=Object.assign||function(s){for(var t,e=1,a=arguments.length;e<a;e++)for(var d in t=arguments[e])Object.prototype.hasOwnProperty.call(t,d)&&(s[d]=t[d]);return s},we={trace:y.Trace,debug:y.Debug,info:y.Information,information:y.Information,warn:y.Warning,warning:y.Warning,error:y.Error,critical:y.Critical,none:y.None},Ie=function(){function s(){}return s.prototype.configureLogging=function(t){if(I.isRequired(t,"logging"),function Te(s){return void 0!==s.log}(t))this.logger=t;else if("string"==typeof t){var e=function De(s){var t=we[s.toLowerCase()];if(typeof t<"u")return t;throw new Error("Unknown log level: "+s)}(t);this.logger=new K(e)}else this.logger=new K(t);return this},s.prototype.withUrl=function(t,e){return I.isRequired(t,"url"),this.url=t,this.httpConnectionOptions=ke({},this.httpConnectionOptions,"object"==typeof e?e:{transport:e}),this},s.prototype.withHubProtocol=function(t){return I.isRequired(t,"protocol"),this.protocol=t,this},s.prototype.withAutomaticReconnect=function(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=t?Array.isArray(t)?new _e(t):t:new _e,this},s.prototype.build=function(){var t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var e=new p(this.url,t);return Me.create(e,this.logger||L.instance,this.protocol||new ye,this.reconnectPolicy)},s}(),U=l(4650),R=l(8002),C=l(7185);let Y=(()=>{class s{constructor(e,a){this.decodeTokenService=e,this.toastr=a,this.initNotifications(),this.parseToken=this.decodeTokenService.getParseToken(),this.buildConnection()}initNotifications(){let e=JSON.parse(localStorage.getItem("Notifications"));this._notifications=new r.X(e||[])}setNotification(e){const d=[...this._notifications.value,e];this.saveNotificationTotal(d),this._notifications.next(d)}saveNotificationTotal(e=[]){localStorage.setItem("Notifications",JSON.stringify(e))}getNotification(){return this._notifications.asObservable()}buildConnection(){this.hubConnection=(new Ie).withUrl("/MarketplaceHub").withAutomaticReconnect([0,1e4,1e4,1e4,1e4,null]).configureLogging(y.Information).build(),this.startConnection(),this.onConnectionClose(),this.subscribeNotification()}connectToRegister(){this.hubConnection.invoke("SubscribeGroup",this.parseToken.POSAccountID)}startConnection(){this.hubConnection.start().then(()=>{this.connectToRegister()}).catch(e=>console.log("Error while starting connection: "+e))}onConnectionClose(){this.hubConnection.onclose(()=>{this.buildConnection()})}subscribeNotification(){this.hubConnection.on("Notification",e=>{let a=JSON.parse(e);this.setNotification(a),a.ID==this.parseToken.POSAccountID&&(200!=a.StatusCode?this.toastr.error(a.Message,a.Title,{enableHtml:!0}):this.toastr.success(a.Message,a.Title,{enableHtml:!0}))})}clearNotification(){localStorage.removeItem("Notifications"),this._notifications.next([])}}return s.\u0275fac=function(e){return new(e||s)(U.LFG(R.e),U.LFG(C._W))},s.\u0275prov=U.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},1589:(Oe,he,l)=>{l.d(he,{g:()=>n});var r=l(1135),c=l(4650);let n=(()=>{class x{constructor(){this._toggleState=new r.X(!1),this.toggleState$=this._toggleState.asObservable()}toggleSidebar(){this._toggleState.next(!this._toggleState.value)}}return x.\u0275fac=function(k){return new(k||x)},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},494:(Oe,he,l)=>{l.d(he,{n:()=>r});var r=(()=>{return(c=r||(r={})).Success="Success",c.Info="Info",c.Warning="Warning",c.Error="Error",r;var c})()},6779:(Oe,he,l)=>{l.d(he,{O:()=>c});var r=l(494);class c{constructor(){this.title="New Modal",this.titleExtra="",this.okText="OK",this.cancelText="CANCEL",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=r.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}}},6401:(Oe,he,l)=>{l.d(he,{M:()=>J,d:()=>ce});var r=l(4650),c=l(6895),n=l(6779),x=l(494);function ie(ne,de){if(1&ne){const K=r.EpF();r.TgZ(0,"div",9),r.NdJ("click",function(){r.CHM(K);const _=r.oxw();return r.KtG(_.onBack.emit())}),r.TgZ(1,"a",10),r._UZ(2,"i",11),r.qZA()()}}function k(ne,de){if(1&ne){const K=r.EpF();r.TgZ(0,"div",12)(1,"a",13),r.NdJ("click",function(){r.CHM(K);const _=r.oxw();return r.KtG(_.onCancel.emit())}),r._UZ(2,"i",14),r.qZA()()}}function re(ne,de){1&ne&&r.Hsn(0,2,["*ngIf","more"])}function E(ne,de){if(1&ne){const K=r.EpF();r.TgZ(0,"a",19),r.NdJ("click",function(){r.CHM(K);const _=r.oxw(2);return r.KtG(_.more=!_.more)}),r._uU(1,"More"),r.qZA()}}function y(ne,de){if(1&ne){const K=r.EpF();r.TgZ(0,"a",20),r.NdJ("click",function(){r.CHM(K);const _=r.oxw(2);return r.KtG(_.onCancel.emit())}),r._uU(1),r.qZA()}if(2&ne){const K=r.oxw(2);r.xp6(1),r.hij(" ",K.config.cancelText?K.config.cancelText:"CANCEL","")}}function L(ne,de){if(1&ne){const K=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){r.CHM(K);const _=r.oxw(2);return r.KtG(_.onOk.emit())})("keyup.F2",function(){r.CHM(K);const _=r.oxw(2);return r.KtG(_.onOk.emit())}),r.qZA()}if(2&ne){const K=r.oxw(2);r.Q6J("disabled",!K.config.validated||!K.dynamicValidated)("innerHTML",K.config.okText?K.config.okText:"OK",r.oJD)}}function ee(ne,de){if(1&ne&&(r.TgZ(0,"mat-dialog-actions",15),r.YNc(1,E,2,0,"a",16),r.Hsn(2,3),r.YNc(3,y,2,1,"a",17),r.YNc(4,L,1,2,"button",18),r.qZA()),2&ne){const K=r.oxw();r.xp6(1),r.Q6J("ngIf",K.config.showMoreButton),r.xp6(2),r.Q6J("ngIf",!K.config.hideCancel),r.xp6(1),r.Q6J("ngIf",!K.config.hideOk)}}const B=[[["","header",""]],[["","content",""]],[["","more-content",""]],[["","footer",""]]],I=function(ne,de){return{bodyScrollable:ne,hideScrollbar:de}},F=function(ne){return{"mx-auto":ne}},z=function(ne,de){return{"show-footer":ne,"p-0":de}},G=["[header]","[content]","[more-content]","[footer]"];let J=(()=>{class ne{constructor(){this.dynamicValidated=!0,this.onOk=new r.vpe,this.onCancel=new r.vpe,this.onClose=new r.vpe,this.onBack=new r.vpe,this.term="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new n.O),this.config.headerType){case x.n.Success:this.background="bg-success";break;case x.n.Warning:case x.n.Info:this.background="bg-warning";break;case x.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(K){this.config.disableKeyup||("F2"==K.code&&this.onOk.emit("F2"),("Enter"==K.code||"NumpadEnter"==K.code)&&this.onOk.emit("Enter"))}}return ne.\u0275fac=function(K){return new(K||ne)},ne.\u0275cmp=r.Xpm({type:ne,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:G,decls:12,vars:21,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"ngClass","keyup"],["mat-dialog-title",""],["class","back-button position-absolute pointer d-print-none",3,"click",4,"ngIf"],[1,"d-flex","flex-row","d-print-none",3,"ngClass"],[1,"fw-normal"],["class","ps-3",4,"ngIf"],[1,"modal-body","w-100","pb-3",3,"ngClass"],[4,"ngIf"],["class","w-100 py-7 border-top d-flex justify-content-end d-print-none",4,"ngIf"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"ps-3"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fas","fa-times","fa-md","text-primary"],[1,"w-100","py-7","border-top","d-flex","justify-content-end","d-print-none"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3",3,"click",4,"ngIf"],["style","width: 70px;","class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3","data-cy","ConfirmOk",3,"disabled","innerHTML","click","keyup.F2",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",2,"width","70px",3,"disabled","innerHTML","click","keyup.F2"]],template:function(K,Z){1&K&&(r.F$t(B),r.TgZ(0,"div",0),r.NdJ("keyup",function(S){return Z.onKeyup(S)}),r.TgZ(1,"div",1),r.YNc(2,ie,3,0,"div",2),r.TgZ(3,"div",3)(4,"h4",4),r._uU(5),r.qZA(),r.Hsn(6),r.qZA(),r.YNc(7,k,3,0,"div",5),r.qZA(),r.TgZ(8,"mat-dialog-content",6),r.Hsn(9,1),r.YNc(10,re,1,0,"ng-content",7),r.qZA(),r.YNc(11,ee,5,3,"mat-dialog-actions",8),r.qZA()),2&K&&(r.Udp("width",Z.config.customWidth),r.Q6J("ngClass",r.WLB(13,I,Z.config.bodyScrollable,Z.config.hideScrollbar)),r.xp6(1),r.Gre("d-flex w-100 justify-content-between modal-header position-relative ",Z.background,""),r.xp6(1),r.Q6J("ngIf",Z.config.eMoney),r.xp6(1),r.Q6J("ngClass",r.VKq(16,F,Z.config.eMoney)),r.xp6(2),r.Oqu(Z.config.title),r.xp6(2),r.Q6J("ngIf",!Z.config.hideClose),r.xp6(1),r.Q6J("ngClass",r.WLB(18,z,!Z.config.hideFooter,Z.config.noPadding)),r.xp6(2),r.Q6J("ngIf",Z.more),r.xp6(1),r.Q6J("ngIf",!Z.config.hideFooter))},dependencies:[c.mk,c.O5],styles:[".mat-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:100%!important}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px!important;overflow-y:auto}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0px}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border:1px solid #c8d3df;padding:5px 7px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]}),ne})(),ce=(()=>{class ne{}return ne.\u0275fac=function(K){return new(K||ne)},ne.\u0275mod=r.oAB({type:ne}),ne.\u0275inj=r.cJS({imports:[c.ez]}),ne})()},5960:(Oe,he,l)=>{l.d(he,{h:()=>D,n:()=>j});var r=l(6895),c=l(4650),n=l(4006),x=l(9549),ie=l(4385),k=l(2722),re=l(8372),E=l(8505),y=l(7579),L=l(4968);let B=(()=>{class M{constructor(g,W){this.matSelect=g,this.ngZone=W,this.threshold="15%",this.debounceTime=150,this.infiniteScroll=new c.vpe,this.thrPx=0,this.thrPc=0,this.singleOptionHeight=3,this.destroyed$=new y.x}ngOnInit(){this.evaluateThreshold()}ngAfterViewInit(){this.matSelect.openedChange.pipe((0,k.R)(this.destroyed$)).subscribe(g=>{g&&(this.panel=this.matSelect.panel.nativeElement,this.singleOptionHeight=this.getSelectItemHeightPx(),this.registerScrollListener())})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}evaluateThreshold(){this.threshold.lastIndexOf("%")>-1?(this.thrPx=0,this.thrPc=parseFloat(this.threshold)/100):(this.thrPx=parseFloat(this.threshold),this.thrPc=0)}registerScrollListener(){(0,L.R)(this.panel,"scroll").pipe((0,k.R)(this.destroyed$),(0,re.b)(this.debounceTime),(0,E.b)(g=>{this.handleScrollEvent(g)})).subscribe()}handleScrollEvent(g){this.ngZone.runOutsideAngular(()=>{if(this.complete)return;const fe=this.singleOptionHeight*this.matSelect.options.length;this.panel.clientHeight+g.target.scrollTop+(0!==this.thrPc?fe*this.thrPc:this.thrPx)>=fe&&this.ngZone.run(()=>this.infiniteScroll.emit())})}getSelectItemHeightPx(){return 3*parseFloat(getComputedStyle(this.panel).fontSize)}}return M.\u0275fac=function(g){return new(g||M)(c.Y36(ie.gD),c.Y36(c.R0b))},M.\u0275dir=c.lG2({type:M,selectors:[["","msInfiniteScroll",""]],inputs:{threshold:"threshold",debounceTime:"debounceTime",complete:"complete"},outputs:{infiniteScroll:"infiniteScroll"}}),M})(),I=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275mod=c.oAB({type:M}),M.\u0275inj=c.cJS({imports:[ie.LD]}),M})();var F=l(9521),z=l(3238),G=l(1135),J=l(9646),ce=l(9841),ne=l(3900),de=l(4004),K=l(8675),Z=l(4986),_=l(7272),S=l(5698),v=l(4482),A=l(5403),oe=l(5032),me=l(9718),xe=l(5577);function be(M,f){return f?g=>(0,_.z)(f.pipe((0,S.q)(1),function ve(){return(0,v.e)((M,f)=>{M.subscribe((0,A.x)(f,oe.Z))})}()),g.pipe(be(M))):(0,xe.z)((g,W)=>M(g,W).pipe((0,S.q)(1),(0,me.h)(g)))}var pe=l(2805),V=l(9300),X=l(7376),le=l(2687),N=l(6709),Q=l(1281),$=l(3353),Me=l(727);function H(M,f){if(1&M&&(c.O4$(),c._UZ(0,"circle",4)),2&M){const g=c.oxw(),W=c.MAs(1);c.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+g._spinnerAnimationLabel)("stroke-dashoffset",g._getStrokeDashOffset(),"px")("stroke-dasharray",g._getStrokeCircumference(),"px")("stroke-width",g._getCircleStrokeWidth(),"%")("transform-origin",g._getCircleTransformOrigin(W)),c.uIk("r",g._getCircleRadius())}}function _e(M,f){if(1&M&&(c.O4$(),c._UZ(0,"circle",4)),2&M){const g=c.oxw(),W=c.MAs(1);c.Udp("stroke-dashoffset",g._getStrokeDashOffset(),"px")("stroke-dasharray",g._getStrokeCircumference(),"px")("stroke-width",g._getCircleStrokeWidth(),"%")("transform-origin",g._getCircleTransformOrigin(W)),c.uIk("r",g._getCircleRadius())}}const te=(0,z.pj)(class{constructor(M){this._elementRef=M}},"primary"),ae=new c.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function ue(){return{diameter:100}}});class Ae extends te{constructor(f,g,W,fe,Ce,Re,ze,Fe){super(f),this._document=W,this._diameter=100,this._value=0,this._resizeSubscription=Me.w0.EMPTY,this.mode="determinate";const Ue=Ae._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Ue.has(W.head)||Ue.set(W.head,new Set([100])),this._noopAnimations="NoopAnimations"===fe&&!!Ce&&!Ce._forceAnimations,"mat-spinner"===f.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Ce&&(Ce.color&&(this.color=this.defaultColor=Ce.color),Ce.diameter&&(this.diameter=Ce.diameter),Ce.strokeWidth&&(this.strokeWidth=Ce.strokeWidth)),g.isBrowser&&g.SAFARI&&ze&&Re&&Fe&&(this._resizeSubscription=ze.change(150).subscribe(()=>{"indeterminate"===this.mode&&Fe.run(()=>Re.markForCheck())}))}get diameter(){return this._diameter}set diameter(f){this._diameter=(0,Q.su)(f),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(f){this._strokeWidth=(0,Q.su)(f)}get value(){return"determinate"===this.mode?this._value:0}set value(f){this._value=Math.max(0,Math.min(100,(0,Q.su)(f)))}ngOnInit(){const f=this._elementRef.nativeElement;this._styleRoot=(0,$.kV)(f)||this._document.head,this._attachStyleNode(),f.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const f=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${f} ${f}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(f){const g=50*(f.currentScale??1);return`${g}% ${g}%`}_attachStyleNode(){const f=this._styleRoot,g=this._diameter,W=Ae._diameters;let fe=W.get(f);if(!fe||!fe.has(g)){const Ce=this._document.createElement("style");Ce.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Ce.textContent=this._getAnimationText(),f.appendChild(Ce),fe||(fe=new Set,W.set(f,fe)),fe.add(g)}}_getAnimationText(){const f=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*f).replace(/END_VALUE/g,""+.2*f).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ae._diameters=new WeakMap,Ae.\u0275fac=function(f){return new(f||Ae)(c.Y36(c.SBq),c.Y36($.t4),c.Y36(r.K0,8),c.Y36(c.QbO,8),c.Y36(ae),c.Y36(c.sBO),c.Y36(X.rL),c.Y36(c.R0b))},Ae.\u0275cmp=c.Xpm({type:Ae,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(f,g){2&f&&(c.uIk("aria-valuemin","determinate"===g.mode?0:null)("aria-valuemax","determinate"===g.mode?100:null)("aria-valuenow","determinate"===g.mode?g.value:null)("mode",g.mode),c.Udp("width",g.diameter,"px")("height",g.diameter,"px"),c.ekj("_mat-animation-noopable",g._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[c.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(f,g){1&f&&(c.O4$(),c.TgZ(0,"svg",0,1),c.YNc(2,H,1,11,"circle",2),c.YNc(3,_e,1,9,"circle",3),c.qZA()),2&f&&(c.Udp("width",g.diameter,"px")("height",g.diameter,"px"),c.Q6J("ngSwitch","indeterminate"===g.mode),c.uIk("viewBox",g._getViewBox()),c.xp6(2),c.Q6J("ngSwitchCase",!0),c.xp6(1),c.Q6J("ngSwitchCase",!1))},dependencies:[r.RF,r.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Pe=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275mod=c.oAB({type:M}),M.\u0275inj=c.cJS({imports:[z.BQ,r.ez,z.BQ]}),M})();var Ne=l(4859),He=l(7392),Ve=l(266);const Ee=["searchSelectInput"],O=["innerSelectSearch"];function m(M,f){if(1&M){const g=c.EpF();c.TgZ(0,"mat-checkbox",9),c.NdJ("change",function(fe){c.CHM(g);const Ce=c.oxw();return c.KtG(Ce._emitSelectAllBooleanToParent(fe.checked))}),c.qZA()}if(2&M){const g=c.oxw();c.Q6J("color",null==g.matFormField?null:g.matFormField.color)("checked",g.toggleAllCheckboxChecked)("indeterminate",g.toggleAllCheckboxIndeterminate)("matTooltip",g.toggleAllCheckboxTooltipMessage)("matTooltipPosition",g.toogleAllCheckboxTooltipPosition)}}function o(M,f){1&M&&c._UZ(0,"mat-spinner",10)}function i(M,f){1&M&&c.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function h(M,f){if(1&M&&(c.TgZ(0,"mat-icon",14),c._uU(1),c.qZA()),2&M){const g=c.oxw(2);c.Q6J("svgIcon",g.closeSvgIcon),c.xp6(1),c.hij(" ",g.closeSvgIcon?null:g.closeIcon," ")}}function p(M,f){if(1&M){const g=c.EpF();c.TgZ(0,"button",11),c.NdJ("click",function(){c.CHM(g);const fe=c.oxw();return c.KtG(fe._reset(!0))}),c.YNc(1,i,1,0,"ng-content",12),c.YNc(2,h,2,2,"ng-template",null,13,c.W1O),c.qZA()}if(2&M){const g=c.MAs(3),W=c.oxw();c.xp6(1),c.Q6J("ngIf",W.clearIcon)("ngIfElse",g)}}function T(M,f){1&M&&c.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function P(M,f){if(1&M&&c._uU(0),2&M){const g=c.oxw(2);c.Oqu(g.noEntriesFoundLabel)}}function q(M,f){if(1&M&&(c.TgZ(0,"div",15),c.YNc(1,T,1,0,"ng-content",12),c.YNc(2,P,1,1,"ng-template",null,16,c.W1O),c.qZA()),2&M){const g=c.MAs(3),W=c.oxw();c.xp6(1),c.Q6J("ngIf",W.noEntriesFound)("ngIfElse",g)}}const ge=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],ye=function(M,f){return{"mat-select-search-inner-multiple":M,"mat-select-search-inner-toggle-all":f}},ke=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let we=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275dir=c.lG2({type:M,selectors:[["","ngxMatSelectSearchClear",""]]}),M})();const De=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Ie=new c.OlP("mat-selectsearch-default-options");let U=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275dir=c.lG2({type:M,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),M})(),C=(()=>{class M{constructor(g,W,fe,Ce=null,Re,ze=null,Fe){this.matSelect=g,this.changeDetectorRef=W,this._viewportRuler=fe,this.matOption=Ce,this.liveAnnouncer=Re,this.matFormField=ze,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new c.vpe,this.onTouched=Ue=>{},this._options$=new G.X(null),this.optionsList$=this._options$.pipe((0,ne.w)(Ue=>Ue?Ue.changes.pipe((0,de.U)(Ye=>Ye.toArray()),(0,K.O)(Ue.toArray())):(0,J.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,de.U)(Ue=>Ue?Ue.length:0)),this._formControl=new n.NI(""),this._showNoEntriesFound$=(0,ce.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,de.U)(([Ue,Ye])=>this.noEntriesFoundLabel&&Ue&&Ye===this.getOptionsLengthOffset())),this._onDestroy=new y.x,this.applyDefaultOptions(Fe)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(g){this._options$.next(g)}get _options(){return this._options$.getValue()}applyDefaultOptions(g){if(g)for(const W of De)g.hasOwnProperty(W)&&(this[W]=g[W])}ngOnInit(){const g="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(g):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,g]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[g]=!0):this.matSelect.panelClass=g,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error("<ngx-mat-select-search> must be placed inside a <mat-option> element"),this.matSelect.openedChange.pipe(function se(M,f=Z.z){const g=(0,pe.H)(M,f);return be(()=>g)}(1),(0,k.R)(this._onDestroy)).subscribe(W=>{W?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,S.q)(1)).pipe((0,k.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,k.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let W=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,k.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const fe=this._options.toArray(),Ce=fe[this.getOptionsLengthOffset()],Re=this.matSelect._keyManager;Re&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(W,Ce)||!Re.activeItem||!fe.find(Fe=>this.matSelect.compareWith(Fe,Re.activeItem)))&&Re.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),W=Ce})})}),this._showNoEntriesFound$.pipe((0,k.R)(this._onDestroy)).subscribe(W=>{this.matOption&&(W?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,k.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,k.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(g){this.toggleAll.emit(g)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(g){(g.key&&1===g.key.length||g.keyCode>=F.A&&g.keyCode<=F.Z||g.keyCode>=F.xE&&g.keyCode<=F.aO||g.keyCode===F.L_||this.preventHomeEndKeyPropagation&&(g.keyCode===F.Sd||g.keyCode===F.uR))&&g.stopPropagation(),this.matSelect.multiple&&g.key&&g.keyCode===F.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&g.keyCode===F.hY&&this.value&&(this._reset(!0),g.stopPropagation())}_handleKeyup(g){if(g.keyCode===F.LH||g.keyCode===F.JH){const W=this.matSelect._getAriaActiveDescendant(),fe=this._options.toArray().findIndex(Ce=>Ce.id===W);if(-1!==fe){const Ce=this._options.toArray()[fe];this.liveAnnouncer.announce(Ce.viewValue+" "+this.getAriaIndex(fe)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(g){return 0===this.getOptionsLengthOffset()?g+1:g}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(g){this._lastExternalInputValue=g,this._formControl.setValue(g),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(g){this._formControl.valueChanges.pipe((0,V.h)(W=>W!==this._lastExternalInputValue),(0,E.b)(()=>this._lastExternalInputValue=void 0),(0,k.R)(this._onDestroy)).subscribe(g)}registerOnTouched(g){this.onTouched=g}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const g=this.matSelect.panel.nativeElement,W=g.scrollTop;this.searchSelectInput.nativeElement.focus(),g.scrollTop=W}_reset(g){this._formControl.setValue(""),g&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,k.R)(this._onDestroy)).subscribe(g=>{let W=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!g||!Array.isArray(g))&&(g=[]);const fe=this.matSelect.options.map(Ce=>Ce.value);this.previousSelectedValues.forEach(Ce=>{!g.some(Re=>this.matSelect.compareWith(Re,Ce))&&!fe.some(Re=>this.matSelect.compareWith(Re,Ce))&&(g.push(Ce),W=!0)})}this.previousSelectedValues=g,W&&this.matSelect._onChange(g)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const g=this.getMatOptionHeight(),W=this.matSelect._keyManager.activeItemIndex||0,fe=(0,z.CB)(W,this.matSelect.options,this.matSelect.optionGroups),Ce=(this.matOption?-1:0)+fe+W,Re=this.matSelect.panel.nativeElement.scrollTop,ze=this.innerSelectSearch.nativeElement.offsetHeight,Fe=Math.floor((256-ze)/g),Ue=Math.round((Re+ze)/g)-1;Ue>=Ce?this.matSelect.panel.nativeElement.scrollTop=Ce*g:Ue+Fe<=Ce&&(this.matSelect.panel.nativeElement.scrollTop=(Ce+1)*g-(256-ze))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let W,g=this.innerSelectSearch.nativeElement;for(;g=g.parentElement;)if(g.classList.contains("mat-select-panel")){W=g;break}W&&(this.innerSelectSearch.nativeElement.style.width=W.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return M.\u0275fac=function(g){return new(g||M)(c.Y36(ie.gD),c.Y36(c.sBO),c.Y36(X.rL),c.Y36(z.ey,8),c.Y36(le.Kd),c.Y36(x.KE,8),c.Y36(Ie,8))},M.\u0275cmp=c.Xpm({type:M,selectors:[["ngx-mat-select-search"]],contentQueries:function(g,W,fe){if(1&g&&(c.Suo(fe,we,5),c.Suo(fe,U,5)),2&g){let Ce;c.iGM(Ce=c.CRH())&&(W.clearIcon=Ce.first),c.iGM(Ce=c.CRH())&&(W.noEntriesFound=Ce.first)}},viewQuery:function(g,W){if(1&g&&(c.Gf(Ee,7,c.SBq),c.Gf(O,7,c.SBq)),2&g){let fe;c.iGM(fe=c.CRH())&&(W.searchSelectInput=fe.first),c.iGM(fe=c.CRH())&&(W.innerSelectSearch=fe.first)}},hostVars:2,hostBindings:function(g,W){2&g&&c.ekj("mat-select-search-inside-mat-option",W.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[c._Bn([{provide:n.JU,useExisting:(0,c.Gpc)(()=>M),multi:!0}])],ngContentSelectors:ke,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(g,W){1&g&&(c.F$t(ge),c._UZ(0,"input",0),c.TgZ(1,"div",1,2),c.YNc(3,m,1,5,"mat-checkbox",3),c.TgZ(4,"input",4,5),c.NdJ("keydown",function(Ce){return W._handleKeydown(Ce)})("keyup",function(Ce){return W._handleKeyup(Ce)})("blur",function(){return W.onBlur()}),c.qZA(),c.YNc(6,o,1,0,"mat-spinner",6),c.YNc(7,p,4,2,"button",7),c.Hsn(8),c.qZA(),c.YNc(9,q,4,2,"div",8),c.ALo(10,"async")),2&g&&(c.xp6(1),c.Q6J("ngClass",c.WLB(11,ye,W.matSelect.multiple,W._isToggleAllCheckboxVisible())),c.xp6(2),c.Q6J("ngIf",W._isToggleAllCheckboxVisible()),c.xp6(1),c.Q6J("type",W.type)("formControl",W._formControl)("placeholder",W.placeholderLabel),c.uIk("aria-label",W.ariaLabel),c.xp6(2),c.Q6J("ngIf",W.searching),c.xp6(1),c.Q6J("ngIf",!W.hideClearSearchButton&&W.value&&!W.searching),c.xp6(2),c.Q6J("ngIf",c.lcZ(10,9,W._showNoEntriesFound$)))},dependencies:[N.oG,Ae,Ne.lW,He.Hw,r.mk,r.O5,Ve.gM,n.Fj,n.JJ,n.oH,r.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),M})(),s=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275mod=c.oAB({type:M}),M.\u0275inj=c.cJS({imports:[[r.ez,n.UX,Ne.ot,N.p9,He.Ps,Pe,Ve.AV]]}),M})();var t=l(6451),e=l(5026);const a=["matSelectInfiniteScroll"];function d(M,f){if(1&M&&(c.ynx(0),c._UZ(1,"img",7),c.BQk()),2&M){const g=c.oxw().$implicit;c.xp6(1),c.Q6J("src",g.Img,c.LSH)}}function u(M,f){if(1&M&&(c.TgZ(0,"mat-option",5),c.YNc(1,d,2,1,"ng-container",6),c._uU(2),c.qZA()),2&M){const g=f.$implicit,W=c.oxw();c.Q6J("value",g[W.bindValue]),c.xp6(1),c.Q6J("ngIf",null==g?null:g.Img),c.xp6(1),c.hij(" ",g[W.bindLabel]," ")}}let D=(()=>{class M{constructor(){this.disabled=!1,this.batchSize=50,this.optionCtrl=new n.p4,this.searchCtrl=new n.p4,this.filteredData$=this.searchCtrl.valueChanges.pipe((0,K.O)(""),(0,de.U)(g=>g?this.data.filter(W=>W[this.bindLabel].toLowerCase().indexOf(g.toLowerCase())>-1):this.data)),this.incrementBatchOffset$=new y.x,this.resetBatchOffset$=new y.x,this.minimumBatchOffset$=(0,ce.a)([this.filteredData$,this.searchCtrl.valueChanges]).pipe((0,de.U)(([g,W])=>!this.searchCtrl.value&&this.optionCtrl.value?g.findIndex(Ce=>Ce[this.bindValue]===this.optionCtrl.value)+this.batchSize:0),(0,K.O)(0)),this.batchOffset$=(0,ce.a)([(0,t.T)(this.incrementBatchOffset$.pipe((0,me.h)(!0)),this.resetBatchOffset$.pipe((0,me.h)(!1))),this.minimumBatchOffset$]).pipe((0,e.R)((g,[W,fe])=>W?Math.max(g+this.batchSize,fe+this.batchSize):Math.max(fe,this.batchSize),this.batchSize)),this.filteredBatchedData$=(0,ce.a)([this.filteredData$,this.batchOffset$]).pipe((0,de.U)(([g,W])=>g.slice(0,W))),this.destroy$=new y.x,this.data=[],this.onSelect=new c.vpe}ngOnInit(){this.infiniteScrollSelect.openedChange.pipe((0,k.R)(this.destroy$)).subscribe(g=>{g&&this.resetBatchOffset$.next()}),this.onSelectData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSelectData(){this.optionCtrl.valueChanges.subscribe(g=>{g&&this.onSelect.emit(g)})}getNextBatch(){this.incrementBatchOffset$.next()}}return M.\u0275fac=function(g){return new(g||M)},M.\u0275cmp=c.Xpm({type:M,selectors:[["app-select-search"]],viewQuery:function(g,W){if(1&g&&c.Gf(a,7),2&g){let fe;c.iGM(fe=c.CRH())&&(W.infiniteScrollSelect=fe.first)}},inputs:{appearance:"appearance",data:"data",bindValue:"bindValue",bindLabel:"bindLabel",placeholder:"placeholder",disabled:"disabled",batchSize:"batchSize"},outputs:{onSelect:"onSelect"},decls:7,vars:9,consts:[[1,"select-search",3,"appearance"],["msInfiniteScroll","",3,"disabled","formControl","placeholder","infiniteScroll"],["matSelectInfiniteScroll",""],["placeholderLabel","search","noEntriesFoundLabel","No entry matches",3,"formControl","disableScrollToActiveOnOptionsChanged"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[4,"ngIf"],["alt","",2,"width","18px","margin-right","10px",3,"src"]],template:function(g,W){1&g&&(c.TgZ(0,"mat-form-field",0)(1,"mat-select",1,2),c.NdJ("infiniteScroll",function(){return W.getNextBatch()}),c.TgZ(3,"mat-option"),c._UZ(4,"ngx-mat-select-search",3),c.qZA(),c.YNc(5,u,3,3,"mat-option",4),c.ALo(6,"async"),c.qZA()()),2&g&&(c.Q6J("appearance",W.appearance),c.xp6(1),c.Q6J("disabled",W.disabled)("formControl",W.optionCtrl)("placeholder",W.placeholder),c.xp6(3),c.Q6J("formControl",W.searchCtrl)("disableScrollToActiveOnOptionsChanged",!0),c.xp6(1),c.Q6J("ngForOf",c.lcZ(6,7,W.filteredBatchedData$)))},dependencies:[r.sg,r.O5,n.JJ,n.oH,x.KE,ie.gD,z.ey,C,B,r.Ov],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} mat-form-field.select-search>div.mat-form-field-wrapper{padding-bottom:0}"]}),M})(),j=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275mod=c.oAB({type:M}),M.\u0275inj=c.cJS({imports:[r.ez,n.UX,ie.LD,x.lN,s,I]}),M})()},4968:(Oe,he,l)=>{l.d(he,{R:()=>L});var r=l(8421),c=l(8306),n=l(5577),x=l(1144),ie=l(576),k=l(3268);const re=["addListener","removeListener"],E=["addEventListener","removeEventListener"],y=["on","off"];function L(z,G,J,ce){if((0,ie.m)(J)&&(ce=J,J=void 0),ce)return L(z,G,J).pipe((0,k.Z)(ce));const[ne,de]=function F(z){return(0,ie.m)(z.addEventListener)&&(0,ie.m)(z.removeEventListener)}(z)?E.map(K=>Z=>z[K](G,Z,J)):function B(z){return(0,ie.m)(z.addListener)&&(0,ie.m)(z.removeListener)}(z)?re.map(ee(z,G)):function I(z){return(0,ie.m)(z.on)&&(0,ie.m)(z.off)}(z)?y.map(ee(z,G)):[];if(!ne&&(0,x.z)(z))return(0,n.z)(K=>L(K,G,J))((0,r.Xf)(z));if(!ne)throw new TypeError("Invalid event target");return new c.y(K=>{const Z=(..._)=>K.next(1<_.length?_:_[0]);return ne(Z),()=>de(Z)})}function ee(z,G){return J=>ce=>z[J](G,ce)}},3601:(Oe,he,l)=>{l.d(he,{e:()=>re});var r=l(4986),c=l(4482),n=l(8421),x=l(5403),k=l(2805);function re(E,y=r.z){return function ie(E){return(0,c.e)((y,L)=>{let ee=!1,B=null,I=null,F=!1;const z=()=>{if(I?.unsubscribe(),I=null,ee){ee=!1;const J=B;B=null,L.next(J)}F&&L.complete()},G=()=>{I=null,F&&L.complete()};y.subscribe((0,x.x)(L,J=>{ee=!0,B=J,I||(0,n.Xf)(E(J)).subscribe(I=(0,x.x)(L,z,G))},()=>{F=!0,(!ee||!I||I.closed)&&L.complete()}))})}(()=>(0,k.H)(E,y))}},8372:(Oe,he,l)=>{l.d(he,{b:()=>x});var r=l(4986),c=l(4482),n=l(5403);function x(ie,k=r.z){return(0,c.e)((re,E)=>{let y=null,L=null,ee=null;const B=()=>{if(y){y.unsubscribe(),y=null;const F=L;L=null,E.next(F)}};function I(){const F=ee+ie,z=k.now();if(z<F)return y=this.schedule(void 0,F-z),void E.add(y);B()}re.subscribe((0,n.x)(E,F=>{L=F,ee=k.now(),y||(y=k.schedule(I,ie),E.add(y))},()=>{B(),E.complete()},void 0,()=>{L=y=null}))})}},5684:(Oe,he,l)=>{l.d(he,{T:()=>c});var r=l(9300);function c(n){return(0,r.h)((x,ie)=>n<=ie)}},2722:(Oe,he,l)=>{l.d(he,{R:()=>ie});var r=l(4482),c=l(5403),n=l(8421),x=l(5032);function ie(k){return(0,r.e)((re,E)=>{(0,n.Xf)(k).subscribe((0,c.x)(E,()=>E.complete(),x.Z)),!E.closed&&re.subscribe(E)})}},6406:(Oe,he,l)=>{l.d(he,{Z:()=>re});var r=l(4408),c=l(727);const n={schedule(y){let L=requestAnimationFrame,ee=cancelAnimationFrame;const{delegate:B}=n;B&&(L=B.requestAnimationFrame,ee=B.cancelAnimationFrame);const I=L(F=>{ee=void 0,y(F)});return new c.w0(()=>ee?.(I))},requestAnimationFrame(...y){const{delegate:L}=n;return(L?.requestAnimationFrame||requestAnimationFrame)(...y)},cancelAnimationFrame(...y){const{delegate:L}=n;return(L?.cancelAnimationFrame||cancelAnimationFrame)(...y)},delegate:void 0};var ie=l(7565);const re=new class k extends ie.v{flush(L){this._active=!0;const ee=this._scheduled;this._scheduled=void 0;const{actions:B}=this;let I;L=L||B.shift();do{if(I=L.execute(L.state,L.delay))break}while((L=B[0])&&L.id===ee&&B.shift());if(this._active=!1,I){for(;(L=B[0])&&L.id===ee&&B.shift();)L.unsubscribe();throw I}}}(class x extends r.o{constructor(L,ee){super(L,ee),this.scheduler=L,this.work=ee}requestAsyncId(L,ee,B=0){return null!==B&&B>0?super.requestAsyncId(L,ee,B):(L.actions.push(this),L._scheduled||(L._scheduled=n.requestAnimationFrame(()=>L.flush(void 0))))}recycleAsyncId(L,ee,B=0){if(null!=B&&B>0||null==B&&this.delay>0)return super.recycleAsyncId(L,ee,B);L.actions.some(I=>I.id===ee)||(n.cancelAnimationFrame(ee),L._scheduled=void 0)}})},3101:(Oe,he,l)=>{l.d(he,{E:()=>F});var r=l(4408);let n,c=1;const x={};function ie(G){return G in x&&(delete x[G],!0)}const k={setImmediate(G){const J=c++;return x[J]=!0,n||(n=Promise.resolve()),n.then(()=>ie(J)&&G()),J},clearImmediate(G){ie(G)}},{setImmediate:E,clearImmediate:y}=k,L={setImmediate(...G){const{delegate:J}=L;return(J?.setImmediate||E)(...G)},clearImmediate(G){const{delegate:J}=L;return(J?.clearImmediate||y)(G)},delegate:void 0};var B=l(7565);const F=new class I extends B.v{flush(J){this._active=!0;const ce=this._scheduled;this._scheduled=void 0;const{actions:ne}=this;let de;J=J||ne.shift();do{if(de=J.execute(J.state,J.delay))break}while((J=ne[0])&&J.id===ce&&ne.shift());if(this._active=!1,de){for(;(J=ne[0])&&J.id===ce&&ne.shift();)J.unsubscribe();throw de}}}(class ee extends r.o{constructor(J,ce){super(J,ce),this.scheduler=J,this.work=ce}requestAsyncId(J,ce,ne=0){return null!==ne&&ne>0?super.requestAsyncId(J,ce,ne):(J.actions.push(this),J._scheduled||(J._scheduled=L.setImmediate(J.flush.bind(J,void 0))))}recycleAsyncId(J,ce,ne=0){if(null!=ne&&ne>0||null==ne&&this.delay>0)return super.recycleAsyncId(J,ce,ne);J.actions.some(de=>de.id===ce)||(L.clearImmediate(ce),J._scheduled=void 0)}})},2687:(Oe,he,l)=>{l.d(he,{$s:()=>ve,Em:()=>se,Kd:()=>ye,X6:()=>O,ic:()=>X,kH:()=>Te,mK:()=>Pe,qV:()=>Ae,qm:()=>C,rt:()=>Y,s1:()=>pe,tE:()=>Ie,yG:()=>m});var r=l(6895),c=l(4650),n=l(3353),x=l(7579),ie=l(727),k=l(1135),re=l(9646),E=l(9521),y=l(8505),L=l(8372),ee=l(9300),B=l(4004),I=l(5698),F=l(5684),z=l(1884),G=l(2722),J=l(1281),ce=l(9643),ne=l(2289);function _(s,t){return(s.getAttribute(t)||"").match(/\S+/g)||[]}const v="cdk-describedby-message",A="cdk-describedby-host";let oe=0,ve=(()=>{class s{constructor(e,a){this._platform=a,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+oe++,this._document=e,this._id=(0,c.f3M)(c.AFp)+"-"+oe++}describe(e,a,d){if(!this._canBeDescribed(e,a))return;const u=me(a,d);"string"!=typeof a?(xe(a,this._id),this._messageRegistry.set(u,{messageElement:a,referenceCount:0})):this._messageRegistry.has(u)||this._createMessageElement(a,d),this._isElementDescribedByMessage(e,u)||this._addMessageReference(e,u)}removeDescription(e,a,d){if(!a||!this._isElementNode(e))return;const u=me(a,d);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof a){const D=this._messageRegistry.get(u);D&&0===D.referenceCount&&this._deleteMessageElement(u)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${A}="${this._id}"]`);for(let a=0;a<e.length;a++)this._removeCdkDescribedByReferenceIds(e[a]),e[a].removeAttribute(A);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,a){const d=this._document.createElement("div");xe(d,this._id),d.textContent=e,a&&d.setAttribute("role",a),this._createMessagesContainer(),this._messagesContainer.appendChild(d),this._messageRegistry.set(me(e,a),{messageElement:d,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",a=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let u=0;u<a.length;u++)a[u].remove();const d=this._document.createElement("div");d.style.visibility="hidden",d.classList.add(e),d.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&d.setAttribute("platform","server"),this._document.body.appendChild(d),this._messagesContainer=d}_removeCdkDescribedByReferenceIds(e){const a=_(e,"aria-describedby").filter(d=>0!=d.indexOf(v));e.setAttribute("aria-describedby",a.join(" "))}_addMessageReference(e,a){const d=this._messageRegistry.get(a);(function K(s,t,e){const a=_(s,t);a.some(d=>d.trim()==e.trim())||(a.push(e.trim()),s.setAttribute(t,a.join(" ")))})(e,"aria-describedby",d.messageElement.id),e.setAttribute(A,this._id),d.referenceCount++}_removeMessageReference(e,a){const d=this._messageRegistry.get(a);d.referenceCount--,function Z(s,t,e){const d=_(s,t).filter(u=>u!=e.trim());d.length?s.setAttribute(t,d.join(" ")):s.removeAttribute(t)}(e,"aria-describedby",d.messageElement.id),e.removeAttribute(A)}_isElementDescribedByMessage(e,a){const d=_(e,"aria-describedby"),u=this._messageRegistry.get(a),D=u&&u.messageElement.id;return!!D&&-1!=d.indexOf(D)}_canBeDescribed(e,a){if(!this._isElementNode(e))return!1;if(a&&"object"==typeof a)return!0;const d=null==a?"":`${a}`.trim(),u=e.getAttribute("aria-label");return!(!d||u&&u.trim()===d)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return s.\u0275fac=function(e){return new(e||s)(c.LFG(r.K0),c.LFG(n.t4))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function me(s,t){return"string"==typeof s?`${t||""}/${s}`:s}function xe(s,t){s.id||(s.id=`${v}-${t}-${oe++}`)}class be{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new x.x,this._typeaheadSubscription=ie.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new x.x,this.change=new x.x,t instanceof c.n_E&&t.changes.subscribe(e=>{if(this._activeItem){const d=e.toArray().indexOf(this._activeItem);d>-1&&d!==this._activeItemIndex&&(this._activeItemIndex=d)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,y.b)(e=>this._pressedLetters.push(e)),(0,L.b)(t),(0,ee.h)(()=>this._pressedLetters.length>0),(0,B.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const a=this._getItemsArray();for(let d=1;d<a.length+1;d++){const u=(this._activeItemIndex+d)%a.length,D=a[u];if(!this._skipPredicateFn(D)&&0===D.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(u);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(u=>!t[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(e){case E.Mf:return void this.tabOut.next();case E.JH:if(this._vertical&&d){this.setNextItemActive();break}return;case E.LH:if(this._vertical&&d){this.setPreviousItemActive();break}return;case E.SV:if(this._horizontal&&d){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case E.oh:if(this._horizontal&&d){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case E.Sd:if(this._homeAndEnd&&d){this.setFirstItemActive();break}return;case E.uR:if(this._homeAndEnd&&d){this.setLastItemActive();break}return;default:return void((d||(0,E.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=E.A&&e<=E.Z||e>=E.xE&&e<=E.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),a="number"==typeof t?t:e.indexOf(t);this._activeItem=e[a]??null,this._activeItemIndex=a}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let a=1;a<=e.length;a++){const d=(this._activeItemIndex+t*a+e.length)%e.length;if(!this._skipPredicateFn(e[d]))return void this.setActiveItem(d)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const a=this._getItemsArray();if(a[t]){for(;this._skipPredicateFn(a[t]);)if(!a[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof c.n_E?this._items.toArray():this._items}}class pe extends be{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class se extends be{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let X=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function N(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const a=function le(s){try{return s.frameElement}catch{return null}}(function ue(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(a&&(-1===w(a)||!this.isVisible(a)))return!1;let d=e.nodeName.toLowerCase(),u=w(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===d||"object"===d||this._platform.WEBKIT&&this._platform.IOS&&!function te(s){let t=s.nodeName.toLowerCase(),e="input"===t&&s.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===d?!!e.hasAttribute("controls")&&-1!==u:"video"===d?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,a){return function ae(s){return!function $(s){return function H(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function Q(s){let t=s.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(s)||function Me(s){return function _e(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||b(s))}(e)&&!this.isDisabled(e)&&(a?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(c.LFG(n.t4))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function b(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let t=s.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function w(s){if(!b(s))return null;const t=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class Se{constructor(t,e,a,d,u=!1){this._element=t,this._checker=e,this._ngZone=a,this._document=d,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const a=this._getFirstTabbableElement(e);return a?.focus(t),!!a}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let a=0;a<e.length;a++){const d=e[a].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[a]):null;if(d)return d}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let a=e.length-1;a>=0;a--){const d=e[a].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[a]):null;if(d)return d}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(t)}}let Ae=(()=>{class s{constructor(e,a,d){this._checker=e,this._ngZone=a,this._document=d}create(e,a=!1){return new Se(e,this._checker,this._ngZone,this._document,a)}}return s.\u0275fac=function(e){return new(e||s)(c.LFG(X),c.LFG(c.R0b),c.LFG(r.K0))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Pe=(()=>{class s{constructor(e,a,d){this._elementRef=e,this._focusTrapFactory=a,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=(0,J.Ig)(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=(0,J.Ig)(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const a=e.autoCapture;a&&!a.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,n.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return s.\u0275fac=function(e){return new(e||s)(c.Y36(c.SBq),c.Y36(Ae),c.Y36(r.K0))},s.\u0275dir=c.lG2({type:s,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[c.TTD]}),s})();function O(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function m(s){const t=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const o=new c.OlP("cdk-input-modality-detector-options"),i={ignoreKeys:[E.zL,E.jx,E.b2,E.MW,E.JU]},p=(0,n.i$)({passive:!0,capture:!0});let T=(()=>{class s{constructor(e,a,d,u){this._platform=e,this._mostRecentTarget=null,this._modality=new k.X(null),this._lastTouchMs=0,this._onKeydown=D=>{this._options?.ignoreKeys?.some(j=>j===D.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,n.sA)(D))},this._onMousedown=D=>{Date.now()-this._lastTouchMs<650||(this._modality.next(O(D)?"keyboard":"mouse"),this._mostRecentTarget=(0,n.sA)(D))},this._onTouchstart=D=>{m(D)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,n.sA)(D))},this._options={...i,...u},this.modalityDetected=this._modality.pipe((0,F.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,z.x)()),e.isBrowser&&a.runOutsideAngular(()=>{d.addEventListener("keydown",this._onKeydown,p),d.addEventListener("mousedown",this._onMousedown,p),d.addEventListener("touchstart",this._onTouchstart,p)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,p),document.removeEventListener("mousedown",this._onMousedown,p),document.removeEventListener("touchstart",this._onTouchstart,p))}}return s.\u0275fac=function(e){return new(e||s)(c.LFG(n.t4),c.LFG(c.R0b),c.LFG(r.K0),c.LFG(o,8))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const P=new c.OlP("liveAnnouncerElement",{providedIn:"root",factory:function q(){return null}}),ge=new c.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ye=(()=>{class s{constructor(e,a,d,u){this._ngZone=a,this._defaultOptions=u,this._document=d,this._liveElement=e||this._createLiveElement()}announce(e,...a){const d=this._defaultOptions;let u,D;return 1===a.length&&"number"==typeof a[0]?D=a[0]:[u,D]=a,this.clear(),clearTimeout(this._previousTimeout),u||(u=d&&d.politeness?d.politeness:"polite"),null==D&&d&&(D=d.duration),this._liveElement.setAttribute("aria-live",u),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(j=>this._currentResolve=j)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof D&&(this._previousTimeout=setTimeout(()=>this.clear(),D)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",a=this._document.getElementsByClassName(e),d=this._document.createElement("div");for(let u=0;u<a.length;u++)a[u].remove();return d.classList.add(e),d.classList.add("cdk-visually-hidden"),d.setAttribute("aria-atomic","true"),d.setAttribute("aria-live","polite"),this._document.body.appendChild(d),d}}return s.\u0275fac=function(e){return new(e||s)(c.LFG(P,8),c.LFG(c.R0b),c.LFG(r.K0),c.LFG(ge,8))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const we=new c.OlP("cdk-focus-monitor-default-options"),De=(0,n.i$)({passive:!0,capture:!0});let Ie=(()=>{class s{constructor(e,a,d,u,D){this._ngZone=e,this._platform=a,this._inputModalityDetector=d,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new x.x,this._rootNodeFocusAndBlurListener=j=>{const M=(0,n.sA)(j),f="focus"===j.type?this._onFocus:this._onBlur;for(let g=M;g;g=g.parentElement)f.call(this,j,g)},this._document=u,this._detectionMode=D?.detectionMode||0}monitor(e,a=!1){const d=(0,J.fI)(e);if(!this._platform.isBrowser||1!==d.nodeType)return(0,re.of)(null);const u=(0,n.kV)(d)||this._getDocument(),D=this._elementInfo.get(d);if(D)return a&&(D.checkChildren=!0),D.subject;const j={checkChildren:a,subject:new x.x,rootNode:u};return this._elementInfo.set(d,j),this._registerGlobalListeners(j),j.subject}stopMonitoring(e){const a=(0,J.fI)(e),d=this._elementInfo.get(a);d&&(d.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(d))}focusVia(e,a,d){const u=(0,J.fI)(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([j,M])=>this._originChanged(j,a,M)):(this._setOrigin(a),"function"==typeof u.focus&&u.focus(d))}ngOnDestroy(){this._elementInfo.forEach((e,a)=>this.stopMonitoring(a))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,a){e.classList.toggle("cdk-focused",!!a),e.classList.toggle("cdk-touch-focused","touch"===a),e.classList.toggle("cdk-keyboard-focused","keyboard"===a),e.classList.toggle("cdk-mouse-focused","mouse"===a),e.classList.toggle("cdk-program-focused","program"===a)}_setOrigin(e,a=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&a,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,a){const d=this._elementInfo.get(a),u=(0,n.sA)(e);!d||!d.checkChildren&&a!==u||this._originChanged(a,this._getFocusOrigin(u),d)}_onBlur(e,a){const d=this._elementInfo.get(a);!d||d.checkChildren&&e.relatedTarget instanceof Node&&a.contains(e.relatedTarget)||(this._setClasses(a),this._emitOrigin(d,null))}_emitOrigin(e,a){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(a))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const a=e.rootNode,d=this._rootNodeFocusListenerCount.get(a)||0;d||this._ngZone.runOutsideAngular(()=>{a.addEventListener("focus",this._rootNodeFocusAndBlurListener,De),a.addEventListener("blur",this._rootNodeFocusAndBlurListener,De)}),this._rootNodeFocusListenerCount.set(a,d+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,G.R)(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const a=e.rootNode;if(this._rootNodeFocusListenerCount.has(a)){const d=this._rootNodeFocusListenerCount.get(a);d>1?this._rootNodeFocusListenerCount.set(a,d-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,De),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,De),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,a,d){this._setClasses(e,a),this._emitOrigin(d,a),this._lastFocusOrigin=a}_getClosestElementsInfo(e){const a=[];return this._elementInfo.forEach((d,u)=>{(u===e||d.checkChildren&&u.contains(e))&&a.push([u,d])}),a}}return s.\u0275fac=function(e){return new(e||s)(c.LFG(c.R0b),c.LFG(n.t4),c.LFG(T),c.LFG(r.K0,8),c.LFG(we,8))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Te=(()=>{class s{constructor(e,a){this._elementRef=e,this._focusMonitor=a,this.cdkFocusChange=new c.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(a=>this.cdkFocusChange.emit(a))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(c.Y36(c.SBq),c.Y36(Ie))},s.\u0275dir=c.lG2({type:s,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),s})();const Le="cdk-high-contrast-black-on-white",U="cdk-high-contrast-white-on-black",R="cdk-high-contrast-active";let C=(()=>{class s{constructor(e,a){this._platform=e,this._document=a,this._breakpointSubscription=(0,c.f3M)(ne.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const a=this._document.defaultView||window,d=a&&a.getComputedStyle?a.getComputedStyle(e):null,u=(d&&d.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(R,Le,U),this._hasCheckedHighContrastMode=!0;const a=this.getHighContrastMode();1===a?e.add(R,Le):2===a&&e.add(R,U)}}}return s.\u0275fac=function(e){return new(e||s)(c.LFG(n.t4),c.LFG(r.K0))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Y=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(c.LFG(C))},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[ce.Q8]}),s})()},445:(Oe,he,l)=>{l.d(he,{Is:()=>re,vT:()=>y});var r=l(4650),c=l(6895);const n=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function x(){return(0,r.f3M)(c.K0)}}),ie=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let re=(()=>{class L{constructor(B){if(this.value="ltr",this.change=new r.vpe,B){const F=B.documentElement?B.documentElement.dir:null;this.value=function k(L){const ee=L?.toLowerCase()||"";return"auto"===ee&&typeof navigator<"u"&&navigator?.language?ie.test(navigator.language)?"rtl":"ltr":"rtl"===ee?"rtl":"ltr"}((B.body?B.body.dir:null)||F||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(B){return new(B||L)(r.LFG(n,8))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),y=(()=>{class L{}return L.\u0275fac=function(B){return new(B||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({}),L})()},1281:(Oe,he,l)=>{l.d(he,{Eq:()=>ie,HM:()=>k,Ig:()=>c,du:()=>E,fI:()=>re,su:()=>n});var r=l(4650);function c(y){return null!=y&&"false"!=`${y}`}function n(y,L=0){return function x(y){return!isNaN(parseFloat(y))&&!isNaN(Number(y))}(y)?Number(y):L}function ie(y){return Array.isArray(y)?y:[y]}function k(y){return null==y?"":"string"==typeof y?y:`${y}px`}function re(y){return y instanceof r.SBq?y.nativeElement:y}function E(y,L=/\s+/){const ee=[];if(null!=y){const B=Array.isArray(y)?y:`${y}`.split(L);for(const I of B){const F=`${I}`.trim();F&&ee.push(F)}}return ee}},5017:(Oe,he,l)=>{l.d(he,{A8:()=>L,Ov:()=>E});var r=l(7579),c=l(4650);class E{constructor(I=!1,F,z=!0){this._multiple=I,this._emitChanges=z,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new r.x,F&&F.length&&(I?F.forEach(G=>this._markSelected(G)):this._markSelected(F[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...I){this._verifyValueAssignment(I),I.forEach(F=>this._markSelected(F)),this._emitChangeEvent()}deselect(...I){this._verifyValueAssignment(I),I.forEach(F=>this._unmarkSelected(F)),this._emitChangeEvent()}toggle(I){this.isSelected(I)?this.deselect(I):this.select(I)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(I){return this._selection.has(I)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(I){this._multiple&&this.selected&&this._selected.sort(I)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(I){this.isSelected(I)||(this._multiple||this._unmarkAll(),this._selection.add(I),this._emitChanges&&this._selectedToEmit.push(I))}_unmarkSelected(I){this.isSelected(I)&&(this._selection.delete(I),this._emitChanges&&this._deselectedToEmit.push(I))}_unmarkAll(){this.isEmpty()||this._selection.forEach(I=>this._unmarkSelected(I))}_verifyValueAssignment(I){}}let L=(()=>{class B{constructor(){this._listeners=[]}notify(F,z){for(let G of this._listeners)G(F,z)}listen(F){return this._listeners.push(F),()=>{this._listeners=this._listeners.filter(z=>F!==z)}}ngOnDestroy(){this._listeners=[]}}return B.\u0275fac=function(F){return new(F||B)},B.\u0275prov=c.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})()},9521:(Oe,he,l)=>{l.d(he,{A:()=>$,JH:()=>de,JU:()=>k,K5:()=>ie,Ku:()=>I,LH:()=>ce,L_:()=>B,MW:()=>ge,Mf:()=>n,SV:()=>ne,Sd:()=>G,VM:()=>F,Vb:()=>Ke,Z:()=>q,ZH:()=>c,aO:()=>V,b2:()=>Ge,hY:()=>ee,jx:()=>re,oh:()=>J,uR:()=>z,xE:()=>v,yY:()=>S,zL:()=>E});const c=8,n=9,ie=13,k=16,re=17,E=18,ee=27,B=32,I=33,F=34,z=35,G=36,J=37,ce=38,ne=39,de=40,S=46,v=48,V=57,$=65,q=90,ge=91,Ge=224;function Ke(We,...je){return je.length?je.some(Ze=>We[Ze]):We.altKey||We.shiftKey||We.ctrlKey||We.metaKey}},2289:(Oe,he,l)=>{l.d(he,{Yg:()=>de,u3:()=>Z});var r=l(4650),c=l(1281),n=l(7579),x=l(9841),ie=l(7272),k=l(8306),re=l(5698),E=l(5684),y=l(8372),L=l(4004),ee=l(8675),B=l(2722),I=l(3353);const z=new Set;let G,J=(()=>{class _{constructor(v){this._platform=v,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ne}matchMedia(v){return(this._platform.WEBKIT||this._platform.BLINK)&&function ce(_){if(!z.has(_))try{G||(G=document.createElement("style"),G.setAttribute("type","text/css"),document.head.appendChild(G)),G.sheet&&(G.sheet.insertRule(`@media ${_} {body{ }}`,0),z.add(_))}catch(S){console.error(S)}}(v),this._matchMedia(v)}}return _.\u0275fac=function(v){return new(v||_)(r.LFG(I.t4))},_.\u0275prov=r.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function ne(_){return{matches:"all"===_||""===_,media:_,addListener:()=>{},removeListener:()=>{}}}let de=(()=>{class _{constructor(v,A){this._mediaMatcher=v,this._zone=A,this._queries=new Map,this._destroySubject=new n.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(v){return K((0,c.Eq)(v)).some(oe=>this._registerQuery(oe).mql.matches)}observe(v){const oe=K((0,c.Eq)(v)).map(me=>this._registerQuery(me).observable);let ve=(0,x.a)(oe);return ve=(0,ie.z)(ve.pipe((0,re.q)(1)),ve.pipe((0,E.T)(1),(0,y.b)(0))),ve.pipe((0,L.U)(me=>{const xe={matches:!1,breakpoints:{}};return me.forEach(({matches:be,query:pe})=>{xe.matches=xe.matches||be,xe.breakpoints[pe]=be}),xe}))}_registerQuery(v){if(this._queries.has(v))return this._queries.get(v);const A=this._mediaMatcher.matchMedia(v),ve={observable:new k.y(me=>{const xe=be=>this._zone.run(()=>me.next(be));return A.addListener(xe),()=>{A.removeListener(xe)}}).pipe((0,ee.O)(A),(0,L.U)(({matches:me})=>({query:v,matches:me})),(0,B.R)(this._destroySubject)),mql:A};return this._queries.set(v,ve),ve}}return _.\u0275fac=function(v){return new(v||_)(r.LFG(J),r.LFG(r.R0b))},_.\u0275prov=r.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function K(_){return _.map(S=>S.split(",")).reduce((S,v)=>S.concat(v)).map(S=>S.trim())}const Z={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},9643:(Oe,he,l)=>{l.d(he,{Q8:()=>y,wD:()=>E});var r=l(1281),c=l(4650),n=l(8306),x=l(7579),ie=l(8372);let k=(()=>{class L{create(B){return typeof MutationObserver>"u"?null:new MutationObserver(B)}}return L.\u0275fac=function(B){return new(B||L)},L.\u0275prov=c.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),re=(()=>{class L{constructor(B){this._mutationObserverFactory=B,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((B,I)=>this._cleanupObserver(I))}observe(B){const I=(0,r.fI)(B);return new n.y(F=>{const G=this._observeElement(I).subscribe(F);return()=>{G.unsubscribe(),this._unobserveElement(I)}})}_observeElement(B){if(this._observedElements.has(B))this._observedElements.get(B).count++;else{const I=new x.x,F=this._mutationObserverFactory.create(z=>I.next(z));F&&F.observe(B,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(B,{observer:F,stream:I,count:1})}return this._observedElements.get(B).stream}_unobserveElement(B){this._observedElements.has(B)&&(this._observedElements.get(B).count--,this._observedElements.get(B).count||this._cleanupObserver(B))}_cleanupObserver(B){if(this._observedElements.has(B)){const{observer:I,stream:F}=this._observedElements.get(B);I&&I.disconnect(),F.complete(),this._observedElements.delete(B)}}}return L.\u0275fac=function(B){return new(B||L)(c.LFG(k))},L.\u0275prov=c.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),E=(()=>{class L{constructor(B,I,F){this._contentObserver=B,this._elementRef=I,this._ngZone=F,this.event=new c.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,r.Ig)(B),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(B){this._debounce=(0,r.su)(B),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const B=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?B.pipe((0,ie.b)(this.debounce)):B).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return L.\u0275fac=function(B){return new(B||L)(c.Y36(re),c.Y36(c.SBq),c.Y36(c.R0b))},L.\u0275dir=c.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),y=(()=>{class L{}return L.\u0275fac=function(B){return new(B||L)},L.\u0275mod=c.oAB({type:L}),L.\u0275inj=c.cJS({providers:[k]}),L})()},2561:(Oe,he,l)=>{l.d(he,{pI:()=>He,xu:()=>Ne,_G:()=>$,aV:()=>Ae,X_:()=>A,Xj:()=>X,U8:()=>O,Iu:()=>le});var r=l(7376),c=l(6895),n=l(4650),x=l(1281),ie=l(3353),k=l(445),re=l(4080),E=l(7579),y=l(727),L=l(6451),ee=l(4482),B=l(5403),F=l(5698),z=l(2722),G=l(9521);const J=(0,ie.Mq)();class ce{constructor(i,h){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=h}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=(0,x.HM)(-this._previousScrollPosition.left),i.style.top=(0,x.HM)(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,p=i.style,T=this._document.body.style,P=p.scrollBehavior||"",q=T.scrollBehavior||"";this._isEnabled=!1,p.left=this._previousHTMLStyles.left,p.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),J&&(p.scrollBehavior=T.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),J&&(p.scrollBehavior=P,T.scrollBehavior=q)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const h=this._document.body,p=this._viewportRuler.getViewportSize();return h.scrollHeight>p.height||h.scrollWidth>p.width}}class de{constructor(i,h,p,T){this._scrollDispatcher=i,this._ngZone=h,this._viewportRuler=p,this._config=T,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const h=this._viewportRuler.getViewportScrollPosition().top;Math.abs(h-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class K{enable(){}disable(){}attach(){}}function Z(o,i){return i.some(h=>o.bottom<h.top||o.top>h.bottom||o.right<h.left||o.left>h.right)}function _(o,i){return i.some(h=>o.top<h.top||o.bottom>h.bottom||o.left<h.left||o.right>h.right)}class S{constructor(i,h,p,T){this._scrollDispatcher=i,this._viewportRuler=h,this._ngZone=p,this._config=T,this._scrollSubscription=null}attach(i){this._overlayRef=i}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const h=this._overlayRef.overlayElement.getBoundingClientRect(),{width:p,height:T}=this._viewportRuler.getViewportSize();Z(h,[{width:p,height:T,bottom:T,right:p,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let v=(()=>{class o{constructor(h,p,T,P){this._scrollDispatcher=h,this._viewportRuler=p,this._ngZone=T,this.noop=()=>new K,this.close=q=>new de(this._scrollDispatcher,this._ngZone,this._viewportRuler,q),this.block=()=>new ce(this._viewportRuler,this._document),this.reposition=q=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,q),this._document=P}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(r.mF),n.LFG(r.rL),n.LFG(n.R0b),n.LFG(c.K0))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class A{constructor(i){if(this.scrollStrategy=new K,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const h=Object.keys(i);for(const p of h)void 0!==i[p]&&(this[p]=i[p])}}}class me{constructor(i,h){this.connectionPair=i,this.scrollableViewProperties=h}}let pe=(()=>{class o{constructor(h){this._attachedOverlays=[],this._document=h}ngOnDestroy(){this.detach()}add(h){this.remove(h),this._attachedOverlays.push(h)}remove(h){const p=this._attachedOverlays.indexOf(h);p>-1&&this._attachedOverlays.splice(p,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(c.K0))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),se=(()=>{class o extends pe{constructor(h,p){super(h),this._ngZone=p,this._keydownListener=T=>{const P=this._attachedOverlays;for(let q=P.length-1;q>-1;q--)if(P[q]._keydownEvents.observers.length>0){const ge=P[q]._keydownEvents;this._ngZone?this._ngZone.run(()=>ge.next(T)):ge.next(T);break}}}add(h){super.add(h),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(c.K0),n.LFG(n.R0b,8))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),V=(()=>{class o extends pe{constructor(h,p,T){super(h),this._platform=p,this._ngZone=T,this._cursorStyleIsSet=!1,this._pointerDownListener=P=>{this._pointerDownEventTarget=(0,ie.sA)(P)},this._clickListener=P=>{const q=(0,ie.sA)(P),ge="click"===P.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:q;this._pointerDownEventTarget=null;const ye=this._attachedOverlays.slice();for(let ke=ye.length-1;ke>-1;ke--){const we=ye[ke];if(we._outsidePointerEvents.observers.length<1||!we.hasAttached())continue;if(we.overlayElement.contains(q)||we.overlayElement.contains(ge))break;const De=we._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>De.next(P)):De.next(P)}}}add(h){if(super.add(h),!this._isAttached){const p=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(p)):this._addEventListeners(p),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=p.style.cursor,p.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const h=this._document.body;h.removeEventListener("pointerdown",this._pointerDownListener,!0),h.removeEventListener("click",this._clickListener,!0),h.removeEventListener("auxclick",this._clickListener,!0),h.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(h.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(h){h.addEventListener("pointerdown",this._pointerDownListener,!0),h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(c.K0),n.LFG(ie.t4),n.LFG(n.R0b,8))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),X=(()=>{class o{constructor(h,p){this._platform=p,this._document=h}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const h="cdk-overlay-container";if(this._platform.isBrowser||(0,ie.Oy)()){const T=this._document.querySelectorAll(`.${h}[platform="server"], .${h}[platform="test"]`);for(let P=0;P<T.length;P++)T[P].remove()}const p=this._document.createElement("div");p.classList.add(h),(0,ie.Oy)()?p.setAttribute("platform","test"):this._platform.isBrowser||p.setAttribute("platform","server"),this._document.body.appendChild(p),this._containerElement=p}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(c.K0),n.LFG(ie.t4))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class le{constructor(i,h,p,T,P,q,ge,ye,ke,we=!1){this._portalOutlet=i,this._host=h,this._pane=p,this._config=T,this._ngZone=P,this._keyboardDispatcher=q,this._document=ge,this._location=ye,this._outsideClickDispatcher=ke,this._animationsDisabled=we,this._backdropElement=null,this._backdropClick=new E.x,this._attachments=new E.x,this._detachments=new E.x,this._locationChanges=y.w0.EMPTY,this._backdropClickHandler=De=>this._backdropClick.next(De),this._backdropTransitionendHandler=De=>{this._disposeBackdrop(De.target)},this._keydownEvents=new E.x,this._outsidePointerEvents=new E.x,T.scrollStrategy&&(this._scrollStrategy=T.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=T.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const h=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(()=>{this.hasAttached()&&this.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._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),h}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=(0,x.HM)(this._config.width),i.height=(0,x.HM)(this._config.height),i.minWidth=(0,x.HM)(this._config.minWidth),i.minHeight=(0,x.HM)(this._config.minHeight),i.maxWidth=(0,x.HM)(this._config.maxWidth),i.maxHeight=(0,x.HM)(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,h,p){const T=(0,x.Eq)(h||[]).filter(P=>!!P);T.length&&(p?i.classList.add(...T):i.classList.remove(...T))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe((0,z.R)((0,L.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const N="cdk-overlay-connected-position-bounding-box",Q=/([A-Za-z%]+)$/;class ${constructor(i,h,p,T,P){this._viewportRuler=h,this._document=p,this._platform=T,this._overlayContainer=P,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 E.x,this._resizeSubscription=y.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}get positions(){return this._preferredPositions}attach(i){this._validatePositions(),i.hostElement.classList.add(N),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._originRect,h=this._overlayRect,p=this._viewportRect,T=this._containerRect,P=[];let q;for(let ge of this._preferredPositions){let ye=this._getOriginPoint(i,T,ge),ke=this._getOverlayPoint(ye,h,ge),we=this._getOverlayFit(ke,h,p,ge);if(we.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ge,ye);this._canFitWithFlexibleDimensions(we,ke,p)?P.push({position:ge,origin:ye,overlayRect:h,boundingBoxRect:this._calculateBoundingBoxRect(ye,ge)}):(!q||q.overlayFit.visibleArea<we.visibleArea)&&(q={overlayFit:we,overlayPoint:ke,originPoint:ye,position:ge,overlayRect:h})}if(P.length){let ge=null,ye=-1;for(const ke of P){const we=ke.boundingBoxRect.width*ke.boundingBoxRect.height*(ke.position.weight||1);we>ye&&(ye=we,ge=ke)}return this._isPushed=!1,void this._applyPosition(ge.position,ge.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(q.position,q.originPoint);this._applyPosition(q.position,q.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Me(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const h=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,h)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,h,p){let T,P;if("center"==p.originX)T=i.left+i.width/2;else{const q=this._isRtl()?i.right:i.left,ge=this._isRtl()?i.left:i.right;T="start"==p.originX?q:ge}return h.left<0&&(T-=h.left),P="center"==p.originY?i.top+i.height/2:"top"==p.originY?i.top:i.bottom,h.top<0&&(P-=h.top),{x:T,y:P}}_getOverlayPoint(i,h,p){let T,P;return T="center"==p.overlayX?-h.width/2:"start"===p.overlayX?this._isRtl()?-h.width:0:this._isRtl()?0:-h.width,P="center"==p.overlayY?-h.height/2:"top"==p.overlayY?0:-h.height,{x:i.x+T,y:i.y+P}}_getOverlayFit(i,h,p,T){const P=_e(h);let{x:q,y:ge}=i,ye=this._getOffset(T,"x"),ke=this._getOffset(T,"y");ye&&(q+=ye),ke&&(ge+=ke);let Ie=0-ge,Te=ge+P.height-p.height,Le=this._subtractOverflows(P.width,0-q,q+P.width-p.width),U=this._subtractOverflows(P.height,Ie,Te),R=Le*U;return{visibleArea:R,isCompletelyWithinViewport:P.width*P.height===R,fitsInViewportVertically:U===P.height,fitsInViewportHorizontally:Le==P.width}}_canFitWithFlexibleDimensions(i,h,p){if(this._hasFlexibleDimensions){const T=p.bottom-h.y,P=p.right-h.x,q=H(this._overlayRef.getConfig().minHeight),ge=H(this._overlayRef.getConfig().minWidth),ke=i.fitsInViewportHorizontally||null!=ge&&ge<=P;return(i.fitsInViewportVertically||null!=q&&q<=T)&&ke}return!1}_pushOverlayOnScreen(i,h,p){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const T=_e(h),P=this._viewportRect,q=Math.max(i.x+T.width-P.width,0),ge=Math.max(i.y+T.height-P.height,0),ye=Math.max(P.top-p.top-i.y,0),ke=Math.max(P.left-p.left-i.x,0);let we=0,De=0;return we=T.width<=P.width?ke||-q:i.x<this._viewportMargin?P.left-p.left-i.x:0,De=T.height<=P.height?ye||-ge:i.y<this._viewportMargin?P.top-p.top-i.y:0,this._previousPushAmount={x:we,y:De},{x:i.x+we,y:i.y+De}}_applyPosition(i,h){if(this._setTransformOrigin(i),this._setOverlayElementStyles(h,i),this._setBoundingBoxStyles(h,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._lastPosition=i,this._positionChanges.observers.length){const p=this._getScrollVisibility(),T=new me(i,p);this._positionChanges.next(T)}this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;const h=this._boundingBox.querySelectorAll(this._transformOriginSelector);let p,T=i.overlayY;p="center"===i.overlayX?"center":this._isRtl()?"start"===i.overlayX?"right":"left":"start"===i.overlayX?"left":"right";for(let P=0;P<h.length;P++)h[P].style.transformOrigin=`${p} ${T}`}_calculateBoundingBoxRect(i,h){const p=this._viewportRect,T=this._isRtl();let P,q,ge,we,De,Ie;if("top"===h.overlayY)q=i.y,P=p.height-q+this._viewportMargin;else if("bottom"===h.overlayY)ge=p.height-i.y+2*this._viewportMargin,P=p.height-ge+this._viewportMargin;else{const Te=Math.min(p.bottom-i.y+p.top,i.y),Le=this._lastBoundingBoxSize.height;P=2*Te,q=i.y-Te,P>Le&&!this._isInitialRender&&!this._growAfterOpen&&(q=i.y-Le/2)}if("end"===h.overlayX&&!T||"start"===h.overlayX&&T)Ie=p.width-i.x+this._viewportMargin,we=i.x-this._viewportMargin;else if("start"===h.overlayX&&!T||"end"===h.overlayX&&T)De=i.x,we=p.right-i.x;else{const Te=Math.min(p.right-i.x+p.left,i.x),Le=this._lastBoundingBoxSize.width;we=2*Te,De=i.x-Te,we>Le&&!this._isInitialRender&&!this._growAfterOpen&&(De=i.x-Le/2)}return{top:q,left:De,bottom:ge,right:Ie,width:we,height:P}}_setBoundingBoxStyles(i,h){const p=this._calculateBoundingBoxRect(i,h);!this._isInitialRender&&!this._growAfterOpen&&(p.height=Math.min(p.height,this._lastBoundingBoxSize.height),p.width=Math.min(p.width,this._lastBoundingBoxSize.width));const T={};if(this._hasExactPosition())T.top=T.left="0",T.bottom=T.right=T.maxHeight=T.maxWidth="",T.width=T.height="100%";else{const P=this._overlayRef.getConfig().maxHeight,q=this._overlayRef.getConfig().maxWidth;T.height=(0,x.HM)(p.height),T.top=(0,x.HM)(p.top),T.bottom=(0,x.HM)(p.bottom),T.width=(0,x.HM)(p.width),T.left=(0,x.HM)(p.left),T.right=(0,x.HM)(p.right),T.alignItems="center"===h.overlayX?"center":"end"===h.overlayX?"flex-end":"flex-start",T.justifyContent="center"===h.overlayY?"center":"bottom"===h.overlayY?"flex-end":"flex-start",P&&(T.maxHeight=(0,x.HM)(P)),q&&(T.maxWidth=(0,x.HM)(q))}this._lastBoundingBoxSize=p,Me(this._boundingBox.style,T)}_resetBoundingBoxStyles(){Me(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Me(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,h){const p={},T=this._hasExactPosition(),P=this._hasFlexibleDimensions,q=this._overlayRef.getConfig();if(T){const we=this._viewportRuler.getViewportScrollPosition();Me(p,this._getExactOverlayY(h,i,we)),Me(p,this._getExactOverlayX(h,i,we))}else p.position="static";let ge="",ye=this._getOffset(h,"x"),ke=this._getOffset(h,"y");ye&&(ge+=`translateX(${ye}px) `),ke&&(ge+=`translateY(${ke}px)`),p.transform=ge.trim(),q.maxHeight&&(T?p.maxHeight=(0,x.HM)(q.maxHeight):P&&(p.maxHeight="")),q.maxWidth&&(T?p.maxWidth=(0,x.HM)(q.maxWidth):P&&(p.maxWidth="")),Me(this._pane.style,p)}_getExactOverlayY(i,h,p){let T={top:"",bottom:""},P=this._getOverlayPoint(h,this._overlayRect,i);return this._isPushed&&(P=this._pushOverlayOnScreen(P,this._overlayRect,p)),"bottom"===i.overlayY?T.bottom=this._document.documentElement.clientHeight-(P.y+this._overlayRect.height)+"px":T.top=(0,x.HM)(P.y),T}_getExactOverlayX(i,h,p){let q,T={left:"",right:""},P=this._getOverlayPoint(h,this._overlayRect,i);return this._isPushed&&(P=this._pushOverlayOnScreen(P,this._overlayRect,p)),q=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===q?T.right=this._document.documentElement.clientWidth-(P.x+this._overlayRect.width)+"px":T.left=(0,x.HM)(P.x),T}_getScrollVisibility(){const i=this._getOriginRect(),h=this._pane.getBoundingClientRect(),p=this._scrollables.map(T=>T.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_(i,p),isOriginOutsideView:Z(i,p),isOverlayClipped:_(h,p),isOverlayOutsideView:Z(h,p)}}_subtractOverflows(i,...h){return h.reduce((p,T)=>p-Math.max(T,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,h=this._document.documentElement.clientHeight,p=this._viewportRuler.getViewportScrollPosition();return{top:p.top+this._viewportMargin,left:p.left+this._viewportMargin,right:p.left+i-this._viewportMargin,bottom:p.top+h-this._viewportMargin,width:i-2*this._viewportMargin,height:h-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,h){return"x"===h?i.offsetX??this._offsetX:i.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&(0,x.Eq)(i).forEach(h=>{""!==h&&-1===this._appliedPanelClasses.indexOf(h)&&(this._appliedPanelClasses.push(h),this._pane.classList.add(h))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof n.SBq)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const h=i.width||0,p=i.height||0;return{top:i.y,bottom:i.y+p,left:i.x,right:i.x+h,height:p,width:h}}}function Me(o,i){for(let h in i)i.hasOwnProperty(h)&&(o[h]=i[h]);return o}function H(o){if("number"!=typeof o&&null!=o){const[i,h]=o.split(Q);return h&&"px"!==h?null:parseFloat(i)}return o||null}function _e(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const te="cdk-global-overlay-wrapper";class ae{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const h=i.getConfig();this._overlayRef=i,this._width&&!h.width&&i.updateSize({width:this._width}),this._height&&!h.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(te),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,h=this._overlayRef.hostElement.style,p=this._overlayRef.getConfig(),{width:T,height:P,maxWidth:q,maxHeight:ge}=p,ye=!("100%"!==T&&"100vw"!==T||q&&"100%"!==q&&"100vw"!==q),ke=!("100%"!==P&&"100vh"!==P||ge&&"100%"!==ge&&"100vh"!==ge),we=this._xPosition,De=this._xOffset,Ie="rtl"===this._overlayRef.getConfig().direction;let Te="",Le="",U="";ye?U="flex-start":"center"===we?(U="center",Ie?Le=De:Te=De):Ie?"left"===we||"end"===we?(U="flex-end",Te=De):("right"===we||"start"===we)&&(U="flex-start",Le=De):"left"===we||"start"===we?(U="flex-start",Te=De):("right"===we||"end"===we)&&(U="flex-end",Le=De),i.position=this._cssPosition,i.marginLeft=ye?"0":Te,i.marginTop=ke?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=ye?"0":Le,h.justifyContent=U,h.alignItems=ke?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,h=this._overlayRef.hostElement,p=h.style;h.classList.remove(te),p.justifyContent=p.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let ue=(()=>{class o{constructor(h,p,T,P){this._viewportRuler=h,this._document=p,this._platform=T,this._overlayContainer=P}global(){return new ae}flexibleConnectedTo(h){return new $(h,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(r.rL),n.LFG(c.K0),n.LFG(ie.t4),n.LFG(X))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Se=0,Ae=(()=>{class o{constructor(h,p,T,P,q,ge,ye,ke,we,De,Ie,Te){this.scrollStrategies=h,this._overlayContainer=p,this._componentFactoryResolver=T,this._positionBuilder=P,this._keyboardDispatcher=q,this._injector=ge,this._ngZone=ye,this._document=ke,this._directionality=we,this._location=De,this._outsideClickDispatcher=Ie,this._animationsModuleType=Te}create(h){const p=this._createHostElement(),T=this._createPaneElement(p),P=this._createPortalOutlet(T),q=new A(h);return q.direction=q.direction||this._directionality.value,new le(P,p,T,q,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(h){const p=this._document.createElement("div");return p.id="cdk-overlay-"+Se++,p.classList.add("cdk-overlay-pane"),h.appendChild(p),p}_createHostElement(){const h=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(h),h}_createPortalOutlet(h){return this._appRef||(this._appRef=this._injector.get(n.z2F)),new re.u0(h,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(v),n.LFG(X),n.LFG(n._Vd),n.LFG(ue),n.LFG(se),n.LFG(n.zs3),n.LFG(n.R0b),n.LFG(c.K0),n.LFG(k.Is),n.LFG(c.Ye),n.LFG(V),n.LFG(n.QbO,8))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac}),o})();const Pe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Be=new n.OlP("cdk-connected-overlay-scroll-strategy");let Ne=(()=>{class o{constructor(h){this.elementRef=h}}return o.\u0275fac=function(h){return new(h||o)(n.Y36(n.SBq))},o.\u0275dir=n.lG2({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),o})(),He=(()=>{class o{constructor(h,p,T,P,q){this._overlay=h,this._dir=q,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=y.w0.EMPTY,this._attachSubscription=y.w0.EMPTY,this._detachSubscription=y.w0.EMPTY,this._positionSubscription=y.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new n.vpe,this.positionChange=new n.vpe,this.attach=new n.vpe,this.detach=new n.vpe,this.overlayKeydown=new n.vpe,this.overlayOutsideClick=new n.vpe,this._templatePortal=new re.UE(p,T),this._scrollStrategyFactory=P,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(h){this._offsetX=h,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(h){this._offsetY=h,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(h){this._hasBackdrop=(0,x.Ig)(h)}get lockPosition(){return this._lockPosition}set lockPosition(h){this._lockPosition=(0,x.Ig)(h)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(h){this._flexibleDimensions=(0,x.Ig)(h)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(h){this._growAfterOpen=(0,x.Ig)(h)}get push(){return this._push}set push(h){this._push=(0,x.Ig)(h)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(h){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),h.origin&&this.open&&this._position.apply()),h.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Pe);const h=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=h.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=h.detachments().subscribe(()=>this.detach.emit()),h.keydownEvents().subscribe(p=>{this.overlayKeydown.next(p),p.keyCode===G.hY&&!this.disableClose&&!(0,G.Vb)(p)&&(p.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(p=>{this.overlayOutsideClick.next(p)})}_buildConfig(){const h=this._position=this.positionStrategy||this._createPositionStrategy(),p=new A({direction:this._dir,positionStrategy:h,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(p.width=this.width),(this.height||0===this.height)&&(p.height=this.height),(this.minWidth||0===this.minWidth)&&(p.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(p.minHeight=this.minHeight),this.backdropClass&&(p.backdropClass=this.backdropClass),this.panelClass&&(p.panelClass=this.panelClass),p}_updatePositionStrategy(h){const p=this.positions.map(T=>({originX:T.originX,originY:T.originY,overlayX:T.overlayX,overlayY:T.overlayY,offsetX:T.offsetX||this.offsetX,offsetY:T.offsetY||this.offsetY,panelClass:T.panelClass||void 0}));return h.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(p).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const h=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(h),h}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ne?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(h=>{this.backdropClick.emit(h)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function I(o,i=!1){return(0,ee.e)((h,p)=>{let T=0;h.subscribe((0,B.x)(p,P=>{const q=o(P,T++);(q||i)&&p.next(P),!q&&p.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(h=>{this.positionChange.emit(h),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return o.\u0275fac=function(h){return new(h||o)(n.Y36(Ae),n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Be),n.Y36(k.Is,8))},o.\u0275dir=n.lG2({type:o,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[n.TTD]}),o})();const Ee={provide:Be,deps:[Ae],useFactory:function Ve(o){return()=>o.scrollStrategies.reposition()}};let O=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({providers:[Ae,Ee],imports:[k.vT,re.eL,r.Cl,r.Cl]}),o})()},3353:(Oe,he,l)=>{l.d(he,{Mq:()=>F,Oy:()=>K,ht:()=>ne,i$:()=>ee,kV:()=>ce,qK:()=>E,sA:()=>de,t4:()=>x});var r=l(4650),c=l(6895);let n;try{n=typeof Intl<"u"&&Intl.v8BreakIterator}catch{n=!1}let k,x=(()=>{class Z{constructor(S){this._platformId=S,this.isBrowser=this._platformId?(0,c.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!n)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Z.\u0275fac=function(S){return new(S||Z)(r.LFG(r.Lbi))},Z.\u0275prov=r.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();const re=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function E(){if(k)return k;if("object"!=typeof document||!document)return k=new Set(re),k;let Z=document.createElement("input");return k=new Set(re.filter(_=>(Z.setAttribute("type",_),Z.type===_))),k}let y,I,G;function ee(Z){return function L(){if(null==y&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>y=!0}))}finally{y=y||!1}return y}()?Z:!!Z.capture}function F(){if(null==I){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return I=!1,I;if("scrollBehavior"in document.documentElement.style)I=!0;else{const Z=Element.prototype.scrollTo;I=!!Z&&!/\{\s*\[native code\]\s*\}/.test(Z.toString())}}return I}function ce(Z){if(function J(){if(null==G){const Z=typeof document<"u"?document.head:null;G=!(!Z||!Z.createShadowRoot&&!Z.attachShadow)}return G}()){const _=Z.getRootNode?Z.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&_ instanceof ShadowRoot)return _}return null}function ne(){let Z=typeof document<"u"&&document?document.activeElement:null;for(;Z&&Z.shadowRoot;){const _=Z.shadowRoot.activeElement;if(_===Z)break;Z=_}return Z}function de(Z){return Z.composedPath?Z.composedPath()[0]:Z.target}function K(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Oe,he,l)=>{l.d(he,{C5:()=>L,Pl:()=>ne,UE:()=>ee,eL:()=>K,en:()=>I,u0:()=>z});var r=l(4650),c=l(6895);class y{attach(S){return this._attachedHost=S,S.attach(this)}detach(){let S=this._attachedHost;null!=S&&(this._attachedHost=null,S.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(S){this._attachedHost=S}}class L extends y{constructor(S,v,A,oe){super(),this.component=S,this.viewContainerRef=v,this.injector=A,this.componentFactoryResolver=oe}}class ee extends y{constructor(S,v,A,oe){super(),this.templateRef=S,this.viewContainerRef=v,this.context=A,this.injector=oe}get origin(){return this.templateRef.elementRef}attach(S,v=this.context){return this.context=v,super.attach(S)}detach(){return this.context=void 0,super.detach()}}class B extends y{constructor(S){super(),this.element=S instanceof r.SBq?S.nativeElement:S}}class I{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(S){return S instanceof L?(this._attachedPortal=S,this.attachComponentPortal(S)):S instanceof ee?(this._attachedPortal=S,this.attachTemplatePortal(S)):this.attachDomPortal&&S instanceof B?(this._attachedPortal=S,this.attachDomPortal(S)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(S){this._disposeFn=S}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class z extends I{constructor(S,v,A,oe,ve){super(),this.outletElement=S,this._componentFactoryResolver=v,this._appRef=A,this._defaultInjector=oe,this.attachDomPortal=me=>{const xe=me.element,be=this._document.createComment("dom-portal");xe.parentNode.insertBefore(be,xe),this.outletElement.appendChild(xe),this._attachedPortal=me,super.setDisposeFn(()=>{be.parentNode&&be.parentNode.replaceChild(xe,be)})},this._document=ve}attachComponentPortal(S){const A=(S.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(S.component);let oe;return S.viewContainerRef?(oe=S.viewContainerRef.createComponent(A,S.viewContainerRef.length,S.injector||S.viewContainerRef.injector),this.setDisposeFn(()=>oe.destroy())):(oe=A.create(S.injector||this._defaultInjector||r.zs3.NULL),this._appRef.attachView(oe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(oe.hostView),oe.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(oe)),this._attachedPortal=S,oe}attachTemplatePortal(S){let v=S.viewContainerRef,A=v.createEmbeddedView(S.templateRef,S.context,{injector:S.injector});return A.rootNodes.forEach(oe=>this.outletElement.appendChild(oe)),A.detectChanges(),this.setDisposeFn(()=>{let oe=v.indexOf(A);-1!==oe&&v.remove(oe)}),this._attachedPortal=S,A}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(S){return S.hostView.rootNodes[0]}}let ne=(()=>{class _ extends I{constructor(v,A,oe){super(),this._componentFactoryResolver=v,this._viewContainerRef=A,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=ve=>{const me=ve.element,xe=this._document.createComment("dom-portal");ve.setAttachedHost(this),me.parentNode.insertBefore(xe,me),this._getRootNode().appendChild(me),this._attachedPortal=ve,super.setDisposeFn(()=>{xe.parentNode&&xe.parentNode.replaceChild(me,xe)})},this._document=oe}get portal(){return this._attachedPortal}set portal(v){this.hasAttached()&&!v&&!this._isInitialized||(this.hasAttached()&&super.detach(),v&&super.attach(v),this._attachedPortal=v||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(v){v.setAttachedHost(this);const A=null!=v.viewContainerRef?v.viewContainerRef:this._viewContainerRef,ve=(v.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(v.component),me=A.createComponent(ve,A.length,v.injector||A.injector);return A!==this._viewContainerRef&&this._getRootNode().appendChild(me.hostView.rootNodes[0]),super.setDisposeFn(()=>me.destroy()),this._attachedPortal=v,this._attachedRef=me,this.attached.emit(me),me}attachTemplatePortal(v){v.setAttachedHost(this);const A=this._viewContainerRef.createEmbeddedView(v.templateRef,v.context,{injector:v.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=v,this._attachedRef=A,this.attached.emit(A),A}_getRootNode(){const v=this._viewContainerRef.element.nativeElement;return v.nodeType===v.ELEMENT_NODE?v:v.parentNode}}return _.\u0275fac=function(v){return new(v||_)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(c.K0))},_.\u0275dir=r.lG2({type:_,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),_})(),K=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=r.oAB({type:_}),_.\u0275inj=r.cJS({}),_})()},7376:(Oe,he,l)=>{l.d(he,{Cl:()=>be,ZD:()=>xe,mF:()=>K,rL:()=>S});var r=l(1281),c=l(4650),n=l(7579),x=l(9646),ie=l(8306),k=l(4968),y=(l(6406),l(3101),l(3601)),L=l(9300),ee=l(3353),B=l(6895),I=l(445);let K=(()=>{class pe{constructor(V,X,le){this._ngZone=V,this._platform=X,this._scrolled=new n.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=le}register(V){this.scrollContainers.has(V)||this.scrollContainers.set(V,V.elementScrolled().subscribe(()=>this._scrolled.next(V)))}deregister(V){const X=this.scrollContainers.get(V);X&&(X.unsubscribe(),this.scrollContainers.delete(V))}scrolled(V=20){return this._platform.isBrowser?new ie.y(X=>{this._globalSubscription||this._addGlobalListener();const le=V>0?this._scrolled.pipe((0,y.e)(V)).subscribe(X):this._scrolled.subscribe(X);return this._scrolledCount++,()=>{le.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,x.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((V,X)=>this.deregister(X)),this._scrolled.complete()}ancestorScrolled(V,X){const le=this.getAncestorScrollContainers(V);return this.scrolled(X).pipe((0,L.h)(N=>!N||le.indexOf(N)>-1))}getAncestorScrollContainers(V){const X=[];return this.scrollContainers.forEach((le,N)=>{this._scrollableContainsElement(N,V)&&X.push(N)}),X}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(V,X){let le=(0,r.fI)(X),N=V.getElementRef().nativeElement;do{if(le==N)return!0}while(le=le.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const V=this._getWindow();return(0,k.R)(V.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return pe.\u0275fac=function(V){return new(V||pe)(c.LFG(c.R0b),c.LFG(ee.t4),c.LFG(B.K0,8))},pe.\u0275prov=c.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),S=(()=>{class pe{constructor(V,X,le){this._platform=V,this._change=new n.x,this._changeListener=N=>{this._change.next(N)},this._document=le,X.runOutsideAngular(()=>{if(V.isBrowser){const N=this._getWindow();N.addEventListener("resize",this._changeListener),N.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const V=this._getWindow();V.removeEventListener("resize",this._changeListener),V.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const V={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),V}getViewportRect(){const V=this.getViewportScrollPosition(),{width:X,height:le}=this.getViewportSize();return{top:V.top,left:V.left,bottom:V.top+le,right:V.left+X,height:le,width:X}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const V=this._document,X=this._getWindow(),le=V.documentElement,N=le.getBoundingClientRect();return{top:-N.top||V.body.scrollTop||X.scrollY||le.scrollTop||0,left:-N.left||V.body.scrollLeft||X.scrollX||le.scrollLeft||0}}change(V=20){return V>0?this._change.pipe((0,y.e)(V)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const V=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:V.innerWidth,height:V.innerHeight}:{width:0,height:0}}}return pe.\u0275fac=function(V){return new(V||pe)(c.LFG(ee.t4),c.LFG(c.R0b),c.LFG(B.K0,8))},pe.\u0275prov=c.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),xe=(()=>{class pe{}return pe.\u0275fac=function(V){return new(V||pe)},pe.\u0275mod=c.oAB({type:pe}),pe.\u0275inj=c.cJS({}),pe})(),be=(()=>{class pe{}return pe.\u0275fac=function(V){return new(V||pe)},pe.\u0275mod=c.oAB({type:pe}),pe.\u0275inj=c.cJS({imports:[I.vT,xe,I.vT,xe]}),pe})()},4859:(Oe,he,l)=>{l.d(he,{lW:()=>L,ot:()=>B});var r=l(4650),c=l(3238),n=l(2687);const x=["mat-button",""],ie=["*"],E=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y=(0,c.pj)((0,c.Id)((0,c.Kr)(class{constructor(I){this._elementRef=I}})));let L=(()=>{class I extends y{constructor(z,G,J){super(z),this._focusMonitor=G,this._animationMode=J,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ce of E)this._hasHostAttributes(ce)&&this._getHostElement().classList.add(ce);z.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(z,G){z?this._focusMonitor.focusVia(this._getHostElement(),z,G):this._getHostElement().focus(G)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...z){return z.some(G=>this._getHostElement().hasAttribute(G))}}return I.\u0275fac=function(z){return new(z||I)(r.Y36(r.SBq),r.Y36(n.tE),r.Y36(r.QbO,8))},I.\u0275cmp=r.Xpm({type:I,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(z,G){if(1&z&&r.Gf(c.wG,5),2&z){let J;r.iGM(J=r.CRH())&&(G.ripple=J.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(z,G){2&z&&(r.uIk("disabled",G.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-button-disabled",G.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:x,ngContentSelectors:ie,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(z,G){1&z&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1)(3,"span",2)),2&z&&(r.xp6(2),r.ekj("mat-button-ripple-round",G.isRoundButton||G.isIconButton),r.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",G.isIconButton)("matRippleTrigger",G._getHostElement()))},dependencies:[c.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}"],encapsulation:2,changeDetection:0}),I})(),B=(()=>{class I{}return I.\u0275fac=function(z){return new(z||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({imports:[c.si,c.BQ,c.BQ]}),I})()},6709:(Oe,he,l)=>{l.d(he,{oG:()=>ce,p9:()=>Z});var r=l(2687),c=l(1281),n=l(4650),x=l(4006),ie=l(3238),k=l(9643);const re=["input"],E=function(_){return{enterDuration:_}},y=["*"],L=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:ee});function ee(){return{color:"accent",clickAction:"check-indeterminate"}}let B=0;const I=ee(),F={provide:x.JU,useExisting:(0,n.Gpc)(()=>ce),multi:!0};class z{}const G=(0,ie.sb)((0,ie.pj)((0,ie.Kr)((0,ie.Id)(class{constructor(_){this._elementRef=_}}))));let J=(()=>{class _ extends G{constructor(v,A,oe,ve,me,xe,be){super(A),this._changeDetectorRef=oe,this._ngZone=ve,this._animationMode=xe,this._options=be,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.vpe,this.indeterminateChange=new n.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||I,this.color=this.defaultColor=this._options.color||I.color,this.tabIndex=parseInt(me)||0,this.id=this._uniqueId=`${v}${++B}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(v){this._required=(0,c.Ig)(v)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(v){const A=(0,c.Ig)(v);A!=this.checked&&(this._checked=A,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(v){const A=(0,c.Ig)(v);A!==this.disabled&&(this._disabled=A,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(v){const A=v!=this._indeterminate;this._indeterminate=(0,c.Ig)(v),A&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(v){this.checked=!!v}registerOnChange(v){this._controlValueAccessorChangeFn=v}registerOnTouched(v){this._onTouched=v}setDisabledState(v){this.disabled=v}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(v){let A=this._currentCheckState,oe=this._getAnimationTargetElement();if(A!==v&&oe&&(this._currentAnimationClass.length>0&&oe.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(A,v),this._currentCheckState=v,this._currentAnimationClass.length>0)){oe.classList.add(this._currentAnimationClass);const ve=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{oe.classList.remove(ve)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const v=this._options?.clickAction;this.disabled||"noop"===v?!this.disabled&&"noop"===v&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==v&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(v){v.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(v,A){if("NoopAnimations"===this._animationMode)return"";switch(v){case 0:if(1===A)return this._animationClasses.uncheckedToChecked;if(3==A)return this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===A?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===A?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===A?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(v){const A=this._inputElement;A&&(A.nativeElement.indeterminate=v)}}return _.\u0275fac=function(v){n.$Z()},_.\u0275dir=n.lG2({type:_,viewQuery:function(v,A){if(1&v&&(n.Gf(re,5),n.Gf(ie.wG,5)),2&v){let oe;n.iGM(oe=n.CRH())&&(A._inputElement=oe.first),n.iGM(oe=n.CRH())&&(A.ripple=oe.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.qOj]}),_})(),ce=(()=>{class _ extends J{constructor(v,A,oe,ve,me,xe,be){super("mat-checkbox-",v,A,ve,me,xe,be),this._focusMonitor=oe,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(v){const A=new z;return A.source=this,A.checked=v,A}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{v||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(v){v.stopPropagation(),super._handleInputClick()}focus(v,A){v?this._focusMonitor.focusVia(this._inputElement,v,A):this._inputElement.nativeElement.focus(A)}}return _.\u0275fac=function(v){return new(v||_)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(r.tE),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(L,8))},_.\u0275cmp=n.Xpm({type:_,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(v,A){2&v&&(n.Ikx("id",A.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",A.indeterminate)("mat-checkbox-checked",A.checked)("mat-checkbox-disabled",A.disabled)("mat-checkbox-label-before","before"==A.labelPosition)("_mat-animation-noopable","NoopAnimations"===A._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([F]),n.qOj],ngContentSelectors:y,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(v,A){if(1&v&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(ve){return A._onInteractionEvent(ve)})("click",function(ve){return A._onInputClick(ve)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return A._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&v){const oe=n.MAs(1),ve=n.MAs(13);n.uIk("for",A.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!ve.textContent||!ve.textContent.trim()),n.xp6(1),n.Q6J("id",A.inputId)("required",A.required)("checked",A.checked)("disabled",A.disabled)("tabIndex",A.tabIndex),n.uIk("value",A.value)("name",A.name)("aria-label",A.ariaLabel||null)("aria-labelledby",A.ariaLabelledby)("aria-checked",A._getAriaChecked())("aria-describedby",A.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",oe)("matRippleDisabled",A._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,E,"NoopAnimations"===A._animationMode?0:150))}},dependencies:[ie.wG,k.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}"],encapsulation:2,changeDetection:0}),_})(),K=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({}),_})(),Z=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({imports:[ie.si,ie.BQ,k.Q8,K,ie.BQ,K]}),_})()},3238:(Oe,he,l)=>{l.d(he,{_A:()=>se,rD:()=>_e,sG:()=>V,Ad:()=>be,K7:()=>q,HF:()=>h,Y2:()=>Ee,BQ:()=>K,XK:()=>Me,ey:()=>De,Ng:()=>Le,wG:()=>O,si:()=>m,IR:()=>He,CB:()=>Ie,jH:()=>Te,pj:()=>A,Kr:()=>oe,Id:()=>v,FD:()=>me,dB:()=>xe,sb:()=>ve});var r=l(4650),c=l(2687),n=l(445),ie=l(6895),k=l(3353),re=l(1281),E=l(8306),y=l(7579),L=l(9521);function I(U,R){if(1&U&&r._UZ(0,"mat-pseudo-checkbox",4),2&U){const C=r.oxw();r.Q6J("state",C.selected?"checked":"unchecked")("disabled",C.disabled)}}function F(U,R){if(1&U&&(r.TgZ(0,"span",5),r._uU(1),r.qZA()),2&U){const C=r.oxw();r.xp6(1),r.hij("(",C.group.label,")")}}const z=["*"],de=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function ne(){return!0}});let K=(()=>{class U{constructor(C,Y,s){this._sanityChecks=Y,this._document=s,this._hasDoneGlobalChecks=!1,C._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(C){return!(0,k.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[C])}}return U.\u0275fac=function(C){return new(C||U)(r.LFG(c.qm),r.LFG(de,8),r.LFG(ie.K0))},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[n.vT,n.vT]}),U})();function v(U){return class extends U{constructor(...R){super(...R),this._disabled=!1}get disabled(){return this._disabled}set disabled(R){this._disabled=(0,re.Ig)(R)}}}function A(U,R){return class extends U{constructor(...C){super(...C),this.defaultColor=R,this.color=R}get color(){return this._color}set color(C){const Y=C||this.defaultColor;Y!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Y&&this._elementRef.nativeElement.classList.add(`mat-${Y}`),this._color=Y)}}}function oe(U){return class extends U{constructor(...R){super(...R),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(R){this._disableRipple=(0,re.Ig)(R)}}}function ve(U,R=0){return class extends U{constructor(...C){super(...C),this._tabIndex=R,this.defaultTabIndex=R}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(C){this._tabIndex=null!=C?(0,re.su)(C):this.defaultTabIndex}}}function me(U){return class extends U{constructor(...R){super(...R),this.errorState=!1}updateErrorState(){const R=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==R&&(this.errorState=t,this.stateChanges.next())}}}function xe(U){return class extends U{constructor(...R){super(...R),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new E.y(C=>{this._isInitialized?this._notifySubscriber(C):this._pendingSubscribers.push(C)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(R){R.next(),R.complete()}}}const be=new r.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function pe(){return(0,r.f3M)(r.soG)}});class se{constructor(){this._localeChanges=new y.x,this.localeChanges=this._localeChanges}getValidDateOrNull(R){return this.isDateInstance(R)&&this.isValid(R)?R:null}deserialize(R){return null==R||this.isDateInstance(R)&&this.isValid(R)?R:this.invalid()}setLocale(R){this.locale=R,this._localeChanges.next()}compareDate(R,C){return this.getYear(R)-this.getYear(C)||this.getMonth(R)-this.getMonth(C)||this.getDate(R)-this.getDate(C)}sameDate(R,C){if(R&&C){let Y=this.isValid(R),s=this.isValid(C);return Y&&s?!this.compareDate(R,C):Y==s}return R==C}clampDate(R,C,Y){return C&&this.compareDate(R,C)<0?C:Y&&this.compareDate(R,Y)>0?Y:R}}const V=new r.OlP("mat-date-formats"),X=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function le(U,R){const C=Array(U);for(let Y=0;Y<U;Y++)C[Y]=R(Y);return C}let N=(()=>{class U extends se{constructor(C,Y){super(),this.useUtcForDisplay=!1,super.setLocale(C)}getYear(C){return C.getFullYear()}getMonth(C){return C.getMonth()}getDate(C){return C.getDate()}getDayOfWeek(C){return C.getDay()}getMonthNames(C){const Y=new Intl.DateTimeFormat(this.locale,{month:C,timeZone:"utc"});return le(12,s=>this._format(Y,new Date(2017,s,1)))}getDateNames(){const C=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return le(31,Y=>this._format(C,new Date(2017,0,Y+1)))}getDayOfWeekNames(C){const Y=new Intl.DateTimeFormat(this.locale,{weekday:C,timeZone:"utc"});return le(7,s=>this._format(Y,new Date(2017,0,s+1)))}getYearName(C){const Y=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Y,C)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(C){return this.getDate(this._createDateWithOverflow(this.getYear(C),this.getMonth(C)+1,0))}clone(C){return new Date(C.getTime())}createDate(C,Y,s){let t=this._createDateWithOverflow(C,Y,s);return t.getMonth(),t}today(){return new Date}parse(C){return"number"==typeof C?new Date(C):C?new Date(Date.parse(C)):null}format(C,Y){if(!this.isValid(C))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...Y,timeZone:"utc"});return this._format(s,C)}addCalendarYears(C,Y){return this.addCalendarMonths(C,12*Y)}addCalendarMonths(C,Y){let s=this._createDateWithOverflow(this.getYear(C),this.getMonth(C)+Y,this.getDate(C));return this.getMonth(s)!=((this.getMonth(C)+Y)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(C,Y){return this._createDateWithOverflow(this.getYear(C),this.getMonth(C),this.getDate(C)+Y)}toIso8601(C){return[C.getUTCFullYear(),this._2digit(C.getUTCMonth()+1),this._2digit(C.getUTCDate())].join("-")}deserialize(C){if("string"==typeof C){if(!C)return null;if(X.test(C)){let Y=new Date(C);if(this.isValid(Y))return Y}}return super.deserialize(C)}isDateInstance(C){return C instanceof Date}isValid(C){return!isNaN(C.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(C,Y,s){const t=new Date;return t.setFullYear(C,Y,s),t.setHours(0,0,0,0),t}_2digit(C){return("00"+C).slice(-2)}_format(C,Y){const s=new Date;return s.setUTCFullYear(Y.getFullYear(),Y.getMonth(),Y.getDate()),s.setUTCHours(Y.getHours(),Y.getMinutes(),Y.getSeconds(),Y.getMilliseconds()),C.format(s)}}return U.\u0275fac=function(C){return new(C||U)(r.LFG(be,8),r.LFG(k.t4))},U.\u0275prov=r.Yz7({token:U,factory:U.\u0275fac}),U})();const Q={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let $=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({providers:[{provide:se,useClass:N}]}),U})(),Me=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({providers:[{provide:V,useValue:Q}],imports:[$]}),U})(),_e=(()=>{class U{isErrorState(C,Y){return!!(C&&C.invalid&&(C.touched||Y&&Y.submitted))}}return U.\u0275fac=function(C){return new(C||U)},U.\u0275prov=r.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();class ue{constructor(R,C,Y,s=!1){this._renderer=R,this.element=C,this.config=Y,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Se={enterDuration:225,exitDuration:150},Pe=(0,k.i$)({passive:!0}),Be=["mousedown","touchstart"],Ne=["mouseup","mouseleave","touchend","touchcancel"];class He{constructor(R,C,Y,s){this._target=R,this._ngZone=C,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=(0,re.fI)(Y))}fadeInRipple(R,C,Y={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),t={...Se,...Y.animation};Y.centered&&(R=s.left+s.width/2,C=s.top+s.height/2);const e=Y.radius||function Ve(U,R,C){const Y=Math.max(Math.abs(U-C.left),Math.abs(U-C.right)),s=Math.max(Math.abs(R-C.top),Math.abs(R-C.bottom));return Math.sqrt(Y*Y+s*s)}(R,C,s),a=R-s.left,d=C-s.top,u=t.enterDuration,D=document.createElement("div");D.classList.add("mat-ripple-element"),D.style.left=a-e+"px",D.style.top=d-e+"px",D.style.height=2*e+"px",D.style.width=2*e+"px",null!=Y.color&&(D.style.backgroundColor=Y.color),D.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(D);const j=window.getComputedStyle(D),f=j.transitionDuration,g="none"===j.transitionProperty||"0s"===f||"0s, 0s"===f,W=new ue(this,D,Y,g);D.style.transform="scale3d(1, 1, 1)",W.state=0,Y.persistent||(this._mostRecentTransientRipple=W);let fe=null;return!g&&(u||t.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ce=()=>this._finishRippleTransition(W),Re=()=>this._destroyRipple(W);D.addEventListener("transitionend",Ce),D.addEventListener("transitioncancel",Re),fe={onTransitionEnd:Ce,onTransitionCancel:Re}}),this._activeRipples.set(W,fe),(g||!u)&&this._finishRippleTransition(W),W}fadeOutRipple(R){if(2===R.state||3===R.state)return;const C=R.element,Y={...Se,...R.config.animation};C.style.transitionDuration=`${Y.exitDuration}ms`,C.style.opacity="0",R.state=2,(R._animationForciblyDisabledThroughCss||!Y.exitDuration)&&this._finishRippleTransition(R)}fadeOutAll(){this._getActiveRipples().forEach(R=>R.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(R=>{R.config.persistent||R.fadeOut()})}setupTriggerEvents(R){const C=(0,re.fI)(R);!C||C===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=C,this._registerEvents(Be))}handleEvent(R){"mousedown"===R.type?this._onMousedown(R):"touchstart"===R.type?this._onTouchStart(R):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ne),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(R){0===R.state?this._startFadeOutTransition(R):2===R.state&&this._destroyRipple(R)}_startFadeOutTransition(R){const C=R===this._mostRecentTransientRipple,{persistent:Y}=R.config;R.state=1,!Y&&(!C||!this._isPointerDown)&&R.fadeOut()}_destroyRipple(R){const C=this._activeRipples.get(R)??null;this._activeRipples.delete(R),this._activeRipples.size||(this._containerRect=null),R===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),R.state=3,null!==C&&(R.element.removeEventListener("transitionend",C.onTransitionEnd),R.element.removeEventListener("transitioncancel",C.onTransitionCancel)),R.element.remove()}_onMousedown(R){const C=(0,c.X6)(R),Y=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!C&&!Y&&(this._isPointerDown=!0,this.fadeInRipple(R.clientX,R.clientY,this._target.rippleConfig))}_onTouchStart(R){if(!this._target.rippleDisabled&&!(0,c.yG)(R)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const C=R.changedTouches;for(let Y=0;Y<C.length;Y++)this.fadeInRipple(C[Y].clientX,C[Y].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(R=>{!R.config.persistent&&(1===R.state||R.config.terminateOnPointerUp&&0===R.state)&&R.fadeOut()}))}_registerEvents(R){this._ngZone.runOutsideAngular(()=>{R.forEach(C=>{this._triggerElement.addEventListener(C,this,Pe)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Be.forEach(R=>{this._triggerElement.removeEventListener(R,this,Pe)}),this._pointerUpEventsRegistered&&Ne.forEach(R=>{this._triggerElement.removeEventListener(R,this,Pe)}))}}const Ee=new r.OlP("mat-ripple-global-options");let O=(()=>{class U{constructor(C,Y,s,t,e){this._elementRef=C,this._animationMode=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=t||{},this._rippleRenderer=new He(this,Y,C,s)}get disabled(){return this._disabled}set disabled(C){C&&this.fadeOutAllNonPersistent(),this._disabled=C,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(C){this._trigger=C,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(C,Y=0,s){return"number"==typeof C?this._rippleRenderer.fadeInRipple(C,Y,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...C})}}return U.\u0275fac=function(C){return new(C||U)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(k.t4),r.Y36(Ee,8),r.Y36(r.QbO,8))},U.\u0275dir=r.lG2({type:U,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(C,Y){2&C&&r.ekj("mat-ripple-unbounded",Y.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),U})(),m=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[K,K]}),U})(),o=(()=>{class U{constructor(C){this._animationMode=C,this.state="unchecked",this.disabled=!1}}return U.\u0275fac=function(C){return new(C||U)(r.Y36(r.QbO,8))},U.\u0275cmp=r.Xpm({type:U,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(C,Y){2&C&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Y.state)("mat-pseudo-checkbox-checked","checked"===Y.state)("mat-pseudo-checkbox-disabled",Y.disabled)("_mat-animation-noopable","NoopAnimations"===Y._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(C,Y){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),U})(),i=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[K]}),U})();const h=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),q=new r.OlP("MatOptgroup");let ye=0;class ke{constructor(R,C=!1){this.source=R,this.isUserInput=C}}let we=(()=>{class U{constructor(C,Y,s,t){this._element=C,this._changeDetectorRef=Y,this._parent=s,this.group=t,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ye++,this.onSelectionChange=new r.vpe,this._stateChanges=new y.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(C){this._disabled=(0,re.Ig)(C)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(C,Y){const s=this._getHostElement();"function"==typeof s.focus&&s.focus(Y)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(C){(C.keyCode===L.K5||C.keyCode===L.L_)&&!(0,L.Vb)(C)&&(this._selectViaInteraction(),C.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const C=this.viewValue;C!==this._mostRecentViewValue&&(this._mostRecentViewValue=C,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(C=!1){this.onSelectionChange.emit(new ke(this,C))}}return U.\u0275fac=function(C){r.$Z()},U.\u0275dir=r.lG2({type:U,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),U})(),De=(()=>{class U extends we{constructor(C,Y,s,t){super(C,Y,s,t)}}return U.\u0275fac=function(C){return new(C||U)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(h,8),r.Y36(q,8))},U.\u0275cmp=r.Xpm({type:U,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(C,Y){1&C&&r.NdJ("click",function(){return Y._selectViaInteraction()})("keydown",function(t){return Y._handleKeydown(t)}),2&C&&(r.Ikx("id",Y.id),r.uIk("tabindex",Y._getTabIndex())("aria-selected",Y._getAriaSelected())("aria-disabled",Y.disabled.toString()),r.ekj("mat-selected",Y.selected)("mat-option-multiple",Y.multiple)("mat-active",Y.active)("mat-option-disabled",Y.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:z,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(C,Y){1&C&&(r.F$t(),r.YNc(0,I,1,2,"mat-pseudo-checkbox",0),r.TgZ(1,"span",1),r.Hsn(2),r.qZA(),r.YNc(3,F,2,1,"span",2),r._UZ(4,"div",3)),2&C&&(r.Q6J("ngIf",Y.multiple),r.xp6(3),r.Q6J("ngIf",Y.group&&Y.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",Y._getHostElement())("matRippleDisabled",Y.disabled||Y.disableRipple))},dependencies:[O,ie.O5,o],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],encapsulation:2,changeDetection:0}),U})();function Ie(U,R,C){if(C.length){let Y=R.toArray(),s=C.toArray(),t=0;for(let e=0;e<U+1;e++)Y[e].group&&Y[e].group===s[t]&&t++;return t}return 0}function Te(U,R,C,Y){return U<C?U:U+R>C+Y?Math.max(0,U-Y+R):C}let Le=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[m,ie.ez,K,i]}),U})()},5412:(Oe,he,l)=>{l.d(he,{WI:()=>Me,uw:()=>Se,Is:()=>Ee,so:()=>Q});var r=l(2687),c=l(2561),n=l(3353),x=l(4080),ie=l(6895),k=l(4650),re=l(9521),E=l(7579),y=l(9770),L=l(9646),ee=l(445),B=l(8675);function I(O,m){}class F{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let G=(()=>{class O extends x.en{constructor(o,i,h,p,T,P,q,ge){super(),this._elementRef=o,this._focusTrapFactory=i,this._config=p,this._interactivityChecker=T,this._ngZone=P,this._overlayRef=q,this._focusMonitor=ge,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ye=>{this._portalOutlet.hasAttached();const ke=this._portalOutlet.attachDomPortal(ye);return this._contentAttached(),ke},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=h}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(o){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),i}attachTemplatePortal(o){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(o,i){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const h=()=>{o.removeEventListener("blur",h),o.removeEventListener("mousedown",h),o.removeAttribute("tabindex")};o.addEventListener("blur",h),o.addEventListener("mousedown",h)})),o.focus(i)}_focusByCssSelector(o,i){let h=this._elementRef.nativeElement.querySelector(o);h&&this._forceFocus(h,i)}_trapFocus(){const o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const o=this._config.restoreFocus;let i=null;if("string"==typeof o?i=this._document.querySelector(o):"boolean"==typeof o?i=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(i=o),this._config.restoreFocus&&i&&"function"==typeof i.focus){const h=(0,n.ht)(),p=this._elementRef.nativeElement;(!h||h===this._document.body||h===p||p.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const o=this._elementRef.nativeElement,i=(0,n.ht)();return o===i||o.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,n.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return O.\u0275fac=function(o){return new(o||O)(k.Y36(k.SBq),k.Y36(r.qV),k.Y36(ie.K0,8),k.Y36(F),k.Y36(r.ic),k.Y36(k.R0b),k.Y36(c.Iu),k.Y36(r.tE))},O.\u0275cmp=k.Xpm({type:O,selectors:[["cdk-dialog-container"]],viewQuery:function(o,i){if(1&o&&k.Gf(x.Pl,7),2&o){let h;k.iGM(h=k.CRH())&&(i._portalOutlet=h.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(o,i){2&o&&k.uIk("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[k.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,i){1&o&&k.YNc(0,I,0,0,"ng-template",0)},dependencies:[x.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),O})();class J{constructor(m,o){this.overlayRef=m,this.config=o,this.closed=new E.x,this.disableClose=o.disableClose,this.backdropClick=m.backdropClick(),this.keydownEvents=m.keydownEvents(),this.outsidePointerEvents=m.outsidePointerEvents(),this.id=o.id,this.keydownEvents.subscribe(i=>{i.keyCode===re.hY&&!this.disableClose&&!(0,re.Vb)(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(m,o){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=o?.focusOrigin||"program",this.overlayRef.dispose(),i.next(m),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(m="",o=""){return this.overlayRef.updateSize({width:m,height:o}),this}addPanelClass(m){return this.overlayRef.addPanelClass(m),this}removePanelClass(m){return this.overlayRef.removePanelClass(m),this}}const ce=new k.OlP("DialogScrollStrategy"),ne=new k.OlP("DialogData"),de=new k.OlP("DefaultDialogConfig"),Z={provide:ce,deps:[c.aV],useFactory:function K(O){return()=>O.scrollStrategies.block()}};let _=0,S=(()=>{class O{constructor(o,i,h,p,T,P){this._overlay=o,this._injector=i,this._defaultOptions=h,this._parentDialog=p,this._overlayContainer=T,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,y.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,B.O)(void 0))),this._scrollStrategy=P}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(o,i){(i={...this._defaultOptions||new F,...i}).id=i.id||"cdk-dialog-"+_++,i.id&&this.getDialogById(i.id);const p=this._getOverlayConfig(i),T=this._overlay.create(p),P=new J(T,i),q=this._attachContainer(T,P,i);return P.containerInstance=q,this._attachDialogContent(o,P,q,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(P),P.closed.subscribe(()=>this._removeOpenDialog(P,!0)),this.afterOpened.next(P),P}closeAll(){v(this.openDialogs,o=>o.close())}getDialogById(o){return this.openDialogs.find(i=>i.id===o)}ngOnDestroy(){v(this._openDialogsAtThisLevel,o=>{!1===o.config.closeOnDestroy&&this._removeOpenDialog(o,!1)}),v(this._openDialogsAtThisLevel,o=>o.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(o){const i=new c.X_({positionStrategy:o.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:o.scrollStrategy||this._scrollStrategy(),panelClass:o.panelClass,hasBackdrop:o.hasBackdrop,direction:o.direction,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,width:o.width,height:o.height,disposeOnNavigation:o.closeOnNavigation});return o.backdropClass&&(i.backdropClass=o.backdropClass),i}_attachContainer(o,i,h){const p=h.injector??h.viewContainerRef?.injector,T=[{provide:F,useValue:h},{provide:J,useValue:i},{provide:c.Iu,useValue:o}];let P;h.container?"function"==typeof h.container?P=h.container:(P=h.container.type,T.push(...h.container.providers(h))):P=G;const q=new x.C5(P,h.viewContainerRef,k.zs3.create({parent:p||this._injector,providers:T}),h.componentFactoryResolver);return o.attach(q).instance}_attachDialogContent(o,i,h,p){const T=this._createInjector(p,i,h);if(o instanceof k.Rgc){let P={$implicit:p.data,dialogRef:i};p.templateContext&&(P={...P,..."function"==typeof p.templateContext?p.templateContext():p.templateContext}),h.attachTemplatePortal(new x.UE(o,null,P,T))}else{const P=h.attachComponentPortal(new x.C5(o,p.viewContainerRef,T,p.componentFactoryResolver));i.componentInstance=P.instance}}_createInjector(o,i,h){const p=o&&o.viewContainerRef&&o.viewContainerRef.injector,T=[{provide:ne,useValue:o.data},{provide:J,useValue:i}];return o.providers&&("function"==typeof o.providers?T.push(...o.providers(i,o,h)):T.push(...o.providers)),o.direction&&(!p||!p.get(ee.Is,null,k.XFs.Optional))&&T.push({provide:ee.Is,useValue:{value:o.direction,change:(0,L.of)()}}),k.zs3.create({parent:p||this._injector,providers:T})}_removeOpenDialog(o,i){const h=this.openDialogs.indexOf(o);h>-1&&(this.openDialogs.splice(h,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((p,T)=>{p?T.setAttribute("aria-hidden",p):T.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const o=this._overlayContainer.getContainerElement();if(o.parentElement){const i=o.parentElement.children;for(let h=i.length-1;h>-1;h--){const p=i[h];p!==o&&"SCRIPT"!==p.nodeName&&"STYLE"!==p.nodeName&&!p.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(p,p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return O.\u0275fac=function(o){return new(o||O)(k.LFG(c.aV),k.LFG(k.zs3),k.LFG(de,8),k.LFG(O,12),k.LFG(c.Xj),k.LFG(ce))},O.\u0275prov=k.Yz7({token:O,factory:O.\u0275fac}),O})();function v(O,m){let o=O.length;for(;o--;)m(O[o])}let A=(()=>{class O{}return O.\u0275fac=function(o){return new(o||O)},O.\u0275mod=k.oAB({type:O}),O.\u0275inj=k.cJS({providers:[S,Z],imports:[c.U8,x.eL,r.rt,x.eL]}),O})();var oe=l(3238),ve=l(6451),me=l(9300),xe=l(5698),be=l(7340);function pe(O,m){}const se={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},V={dialogContainer:(0,be.X$)("dialogContainer",[(0,be.SB)("void, exit",(0,be.oB)({opacity:0,transform:"scale(0.7)"})),(0,be.SB)("enter",(0,be.oB)({transform:"none"})),(0,be.eR)("* => enter",(0,be.ru)([(0,be.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,be.oB)({transform:"none",opacity:1})),(0,be.IO)("@*",(0,be.pV)(),{optional:!0})]),se),(0,be.eR)("* => void, * => exit",(0,be.ru)([(0,be.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,be.oB)({opacity:0})),(0,be.IO)("@*",(0,be.pV)(),{optional:!0})]),se)])};class X{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=se.params.enterAnimationDuration,this.exitAnimationDuration=se.params.exitAnimationDuration}}let le=(()=>{class O extends G{constructor(o,i,h,p,T,P,q,ge){super(o,i,h,p,T,P,q,ge),this._animationStateChanged=new k.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}return O.\u0275fac=function(o){return new(o||O)(k.Y36(k.SBq),k.Y36(r.qV),k.Y36(ie.K0,8),k.Y36(X),k.Y36(r.ic),k.Y36(k.R0b),k.Y36(c.Iu),k.Y36(r.tE))},O.\u0275cmp=k.Xpm({type:O,selectors:[["ng-component"]],features:[k.qOj],decls:0,vars:0,template:function(o,i){},encapsulation:2}),O})(),N=(()=>{class O extends le{constructor(o,i,h,p,T,P,q,ge,ye){super(o,i,h,p,T,P,q,ye),this._changeDetectorRef=ge,this._state="enter"}_onAnimationDone({toState:o,totalTime:i}){"enter"===o?this._openAnimationDone(i):"exit"===o&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:o,totalTime:i}){"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||se.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||se.params.exitAnimationDuration}}}}return O.\u0275fac=function(o){return new(o||O)(k.Y36(k.SBq),k.Y36(r.qV),k.Y36(ie.K0,8),k.Y36(X),k.Y36(r.ic),k.Y36(k.R0b),k.Y36(c.Iu),k.Y36(k.sBO),k.Y36(r.tE))},O.\u0275cmp=k.Xpm({type:O,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(o,i){1&o&&k.WFA("@dialogContainer.start",function(p){return i._onAnimationStart(p)})("@dialogContainer.done",function(p){return i._onAnimationDone(p)}),2&o&&(k.Ikx("id",i._config.id),k.uIk("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),k.d8E("@dialogContainer",i._getAnimationState()))},features:[k.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,i){1&o&&k.YNc(0,pe,0,0,"ng-template",0)},dependencies:[x.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[V.dialogContainer]}}),O})();class Q{constructor(m,o,i){this._ref=m,this._containerInstance=i,this._afterOpened=new E.x,this._beforeClosed=new E.x,this._state=0,this.disableClose=o.disableClose,this.id=m.id,i._animationStateChanged.pipe((0,me.h)(h=>"opened"===h.state),(0,xe.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe((0,me.h)(h=>"closed"===h.state),(0,xe.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),m.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ve.T)(this.backdropClick(),this.keydownEvents().pipe((0,me.h)(h=>h.keyCode===re.hY&&!this.disableClose&&!(0,re.Vb)(h)))).subscribe(h=>{this.disableClose||(h.preventDefault(),function $(O,m,o){O._closeInteractionType=m,O.close(o)}(this,"keydown"===h.type?"keyboard":"mouse"))})}close(m){this._result=m,this._containerInstance._animationStateChanged.pipe((0,me.h)(o=>"closing"===o.state),(0,xe.q)(1)).subscribe(o=>{this._beforeClosed.next(m),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(m){let o=this._ref.config.positionStrategy;return m&&(m.left||m.right)?m.left?o.left(m.left):o.right(m.right):o.centerHorizontally(),m&&(m.top||m.bottom)?m.top?o.top(m.top):o.bottom(m.bottom):o.centerVertically(),this._ref.updatePosition(),this}updateSize(m="",o=""){return this._ref.updateSize(m,o),this}addPanelClass(m){return this._ref.addPanelClass(m),this}removePanelClass(m){return this._ref.removePanelClass(m),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Me=new k.OlP("MatDialogData"),H=new k.OlP("mat-dialog-default-options"),_e=new k.OlP("mat-dialog-scroll-strategy"),te={provide:_e,deps:[c.aV],useFactory:function w(O){return()=>O.scrollStrategies.block()}};let ae=0,ue=(()=>{class O{constructor(o,i,h,p,T,P,q,ge,ye,ke){this._overlay=o,this._defaultOptions=h,this._parentDialog=p,this._dialogRefConstructor=q,this._dialogContainerType=ge,this._dialogDataToken=ye,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,y.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,B.O)(void 0))),this._scrollStrategy=P,this._dialog=i.get(S)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(o,i){let h;(i={...this._defaultOptions||new X,...i}).id=i.id||`${this._idPrefix}${ae++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const p=this._dialog.open(o,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:X,useValue:i},{provide:F,useValue:i}]},templateContext:()=>({dialogRef:h}),providers:(T,P,q)=>(h=new this._dialogRefConstructor(T,i,q),h.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:q},{provide:this._dialogDataToken,useValue:P.data},{provide:this._dialogRefConstructor,useValue:h}])});return h.componentInstance=p.componentInstance,this.openDialogs.push(h),this.afterOpened.next(h),h.afterClosed().subscribe(()=>{const T=this.openDialogs.indexOf(h);T>-1&&(this.openDialogs.splice(T,1),this.openDialogs.length||this._getAfterAllClosed().next())}),h}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(o){return this.openDialogs.find(i=>i.id===o)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(o){let i=o.length;for(;i--;)o[i].close()}}return O.\u0275fac=function(o){k.$Z()},O.\u0275prov=k.Yz7({token:O,factory:O.\u0275fac}),O})(),Se=(()=>{class O extends ue{constructor(o,i,h,p,T,P,q,ge){super(o,i,p,P,q,T,Q,N,Me,ge)}}return O.\u0275fac=function(o){return new(o||O)(k.LFG(c.aV),k.LFG(k.zs3),k.LFG(ie.Ye,8),k.LFG(H,8),k.LFG(_e),k.LFG(O,12),k.LFG(c.Xj),k.LFG(k.QbO,8))},O.\u0275prov=k.Yz7({token:O,factory:O.\u0275fac}),O})(),Ee=(()=>{class O{}return O.\u0275fac=function(o){return new(o||O)},O.\u0275mod=k.oAB({type:O}),O.\u0275inj=k.cJS({providers:[Se,te],imports:[A,c.U8,x.eL,oe.BQ,oe.BQ]}),O})()},9549:(Oe,he,l)=>{l.d(he,{Eo:()=>X,G_:()=>He,KE:()=>Ve,R9:()=>ue,hX:()=>_e,lN:()=>Ee,qo:()=>te});var r=l(9643),c=l(6895),n=l(4650),x=l(3238),ie=l(445),k=l(1281),re=l(7579),E=l(6451),y=l(4968),L=l(8675),ee=l(2722),B=l(5698),I=l(7340),F=l(3353);const z=["connectionContainer"],G=["inputContainer"],J=["label"];function ce(O,m){1&O&&(n.ynx(0),n.TgZ(1,"div",14),n._UZ(2,"div",15)(3,"div",16)(4,"div",17),n.qZA(),n.TgZ(5,"div",18),n._UZ(6,"div",15)(7,"div",16)(8,"div",17),n.qZA(),n.BQk())}function ne(O,m){if(1&O){const o=n.EpF();n.TgZ(0,"div",19),n.NdJ("cdkObserveContent",function(){n.CHM(o);const h=n.oxw();return n.KtG(h.updateOutlineGap())}),n.Hsn(1,1),n.qZA()}if(2&O){const o=n.oxw();n.Q6J("cdkObserveContentDisabled","outline"!=o.appearance)}}function de(O,m){if(1&O&&(n.ynx(0),n.Hsn(1,2),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.BQk()),2&O){const o=n.oxw(2);n.xp6(3),n.Oqu(o._control.placeholder)}}function K(O,m){1&O&&n.Hsn(0,3,["*ngSwitchCase","true"])}function Z(O,m){1&O&&(n.TgZ(0,"span",23),n._uU(1," *"),n.qZA())}function _(O,m){if(1&O){const o=n.EpF();n.TgZ(0,"label",20,21),n.NdJ("cdkObserveContent",function(){n.CHM(o);const h=n.oxw();return n.KtG(h.updateOutlineGap())}),n.YNc(2,de,4,1,"ng-container",12),n.YNc(3,K,1,0,"ng-content",12),n.YNc(4,Z,2,0,"span",22),n.qZA()}if(2&O){const o=n.oxw();n.ekj("mat-empty",o._control.empty&&!o._shouldAlwaysFloat())("mat-form-field-empty",o._control.empty&&!o._shouldAlwaysFloat())("mat-accent","accent"==o.color)("mat-warn","warn"==o.color),n.Q6J("cdkObserveContentDisabled","outline"!=o.appearance)("id",o._labelId)("ngSwitch",o._hasLabel()),n.uIk("for",o._control.id)("aria-owns",o._control.id),n.xp6(2),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngIf",!o.hideRequiredMarker&&o._control.required&&!o._control.disabled)}}function S(O,m){1&O&&(n.TgZ(0,"div",24),n.Hsn(1,4),n.qZA())}function v(O,m){if(1&O&&(n.TgZ(0,"div",25),n._UZ(1,"span",26),n.qZA()),2&O){const o=n.oxw();n.xp6(1),n.ekj("mat-accent","accent"==o.color)("mat-warn","warn"==o.color)}}function A(O,m){if(1&O&&(n.TgZ(0,"div"),n.Hsn(1,5),n.qZA()),2&O){const o=n.oxw();n.Q6J("@transitionMessages",o._subscriptAnimationState)}}function oe(O,m){if(1&O&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&O){const o=n.oxw(2);n.Q6J("id",o._hintLabelId),n.xp6(1),n.Oqu(o.hintLabel)}}function ve(O,m){if(1&O&&(n.TgZ(0,"div",27),n.YNc(1,oe,2,2,"div",28),n.Hsn(2,6),n._UZ(3,"div",29),n.Hsn(4,7),n.qZA()),2&O){const o=n.oxw();n.Q6J("@transitionMessages",o._subscriptAnimationState),n.xp6(1),n.Q6J("ngIf",o.hintLabel)}}const me=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],xe=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],pe=new n.OlP("MatError"),V={transitionMessages:(0,I.X$)("transitionMessages",[(0,I.SB)("enter",(0,I.oB)({opacity:1,transform:"translateY(0%)"})),(0,I.eR)("void => enter",[(0,I.oB)({opacity:0,transform:"translateY(-5px)"}),(0,I.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let X=(()=>{class O{}return O.\u0275fac=function(o){return new(o||O)},O.\u0275dir=n.lG2({type:O}),O})();const Me=new n.OlP("MatHint");let _e=(()=>{class O{}return O.\u0275fac=function(o){return new(o||O)},O.\u0275dir=n.lG2({type:O,selectors:[["mat-label"]]}),O})(),b=(()=>{class O{}return O.\u0275fac=function(o){return new(o||O)},O.\u0275dir=n.lG2({type:O,selectors:[["mat-placeholder"]]}),O})();const w=new n.OlP("MatPrefix");let te=(()=>{class O{}return O.\u0275fac=function(o){return new(o||O)},O.\u0275dir=n.lG2({type:O,selectors:[["","matPrefix",""]],features:[n._Bn([{provide:w,useExisting:O}])]}),O})();const ae=new n.OlP("MatSuffix");let ue=(()=>{class O{}return O.\u0275fac=function(o){return new(o||O)},O.\u0275dir=n.lG2({type:O,selectors:[["","matSuffix",""]],features:[n._Bn([{provide:ae,useExisting:O}])]}),O})(),Se=0;const Be=(0,x.pj)(class{constructor(O){this._elementRef=O}},"primary"),Ne=new n.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),He=new n.OlP("MatFormField");let Ve=(()=>{class O extends Be{constructor(o,i,h,p,T,P,q){super(o),this._changeDetectorRef=i,this._dir=h,this._defaults=p,this._platform=T,this._ngZone=P,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new re.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Se++,this._labelId="mat-form-field-label-"+Se++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==q,this.appearance=p?.appearance||"legacy",p&&(this._hideRequiredMarker=Boolean(p.hideRequiredMarker),p.color&&(this.color=this.defaultColor=p.color))}get appearance(){return this._appearance}set appearance(o){const i=this._appearance;this._appearance=o||this._defaults?.appearance||"legacy","outline"===this._appearance&&i!==o&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(o){this._hideRequiredMarker=(0,k.Ig)(o)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(o){this._hintLabel=o,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(o){o!==this._floatLabel&&(this._floatLabel=o||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(o){this._explicitFormFieldControl=o}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${o.controlType}`),o.stateChanges.pipe((0,L.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe((0,ee.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ee.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,E.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,ee.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(o){const i=this._control?this._control.ngControl:null;return i&&i[o]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,y.R)(this._label.nativeElement,"transitionend").pipe((0,B.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let o=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&o.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(p=>"start"===p.align):null,h=this._hintChildren?this._hintChildren.find(p=>"end"===p.align):null;i?o.push(i.id):this._hintLabel&&o.push(this._hintLabelId),h&&o.push(h.id)}else this._errorChildren&&o.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(o)}}_validateControlChild(){}updateOutlineGap(){const o=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,h=".mat-form-field-outline-start",p=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!o||!o.children.length||!o.textContent.trim()){const ye=i.querySelectorAll(`${h}, ${p}`);for(let ke=0;ke<ye.length;ke++)ye[ke].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let T=0,P=0;const q=i.querySelectorAll(h),ge=i.querySelectorAll(p);if(this._label&&this._label.nativeElement.children.length){const ye=i.getBoundingClientRect();if(0===ye.width&&0===ye.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const ke=this._getStartEnd(ye),we=o.children,De=this._getStartEnd(we[0].getBoundingClientRect());let Ie=0;for(let Te=0;Te<we.length;Te++)Ie+=we[Te].offsetWidth;T=Math.abs(De-ke)-5,P=Ie>0?.75*Ie+10:0}for(let ye=0;ye<q.length;ye++)q[ye].style.width=`${T}px`;for(let ye=0;ye<ge.length;ye++)ge[ye].style.width=`${P}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(o){return this._dir&&"rtl"===this._dir.value?o.right:o.left}_isAttachedToDOM(){const o=this._elementRef.nativeElement;if(o.getRootNode){const i=o.getRootNode();return i&&i!==o}return document.documentElement.contains(o)}}return O.\u0275fac=function(o){return new(o||O)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(ie.Is,8),n.Y36(Ne,8),n.Y36(F.t4),n.Y36(n.R0b),n.Y36(n.QbO,8))},O.\u0275cmp=n.Xpm({type:O,selectors:[["mat-form-field"]],contentQueries:function(o,i,h){if(1&o&&(n.Suo(h,X,5),n.Suo(h,X,7),n.Suo(h,_e,5),n.Suo(h,_e,7),n.Suo(h,b,5),n.Suo(h,pe,5),n.Suo(h,Me,5),n.Suo(h,w,5),n.Suo(h,ae,5)),2&o){let p;n.iGM(p=n.CRH())&&(i._controlNonStatic=p.first),n.iGM(p=n.CRH())&&(i._controlStatic=p.first),n.iGM(p=n.CRH())&&(i._labelChildNonStatic=p.first),n.iGM(p=n.CRH())&&(i._labelChildStatic=p.first),n.iGM(p=n.CRH())&&(i._placeholderChild=p.first),n.iGM(p=n.CRH())&&(i._errorChildren=p),n.iGM(p=n.CRH())&&(i._hintChildren=p),n.iGM(p=n.CRH())&&(i._prefixChildren=p),n.iGM(p=n.CRH())&&(i._suffixChildren=p)}},viewQuery:function(o,i){if(1&o&&(n.Gf(z,7),n.Gf(G,5),n.Gf(J,5)),2&o){let h;n.iGM(h=n.CRH())&&(i._connectionContainerRef=h.first),n.iGM(h=n.CRH())&&(i._inputContainerRef=h.first),n.iGM(h=n.CRH())&&(i._label=h.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(o,i){2&o&&n.ekj("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[n._Bn([{provide:He,useExisting:O}]),n.qOj],ngContentSelectors:xe,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(o,i){1&o&&(n.F$t(me),n.TgZ(0,"div",0)(1,"div",1,2),n.NdJ("click",function(p){return i._control.onContainerClick&&i._control.onContainerClick(p)}),n.YNc(3,ce,9,0,"ng-container",3),n.YNc(4,ne,2,1,"div",4),n.TgZ(5,"div",5,6),n.Hsn(7),n.TgZ(8,"span",7),n.YNc(9,_,5,16,"label",8),n.qZA()(),n.YNc(10,S,2,0,"div",9),n.qZA(),n.YNc(11,v,2,4,"div",10),n.TgZ(12,"div",11),n.YNc(13,A,2,1,"div",12),n.YNc(14,ve,5,2,"div",13),n.qZA()()),2&o&&(n.xp6(3),n.Q6J("ngIf","outline"==i.appearance),n.xp6(1),n.Q6J("ngIf",i._prefixChildren.length),n.xp6(5),n.Q6J("ngIf",i._hasFloatingLabel()),n.xp6(1),n.Q6J("ngIf",i._suffixChildren.length),n.xp6(1),n.Q6J("ngIf","outline"!=i.appearance),n.xp6(1),n.Q6J("ngSwitch",i._getDisplayedMessages()),n.xp6(1),n.Q6J("ngSwitchCase","error"),n.xp6(1),n.Q6J("ngSwitchCase","hint"))},dependencies:[c.O5,c.RF,c.n9,r.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[V.transitionMessages]},changeDetection:0}),O})(),Ee=(()=>{class O{}return O.\u0275fac=function(o){return new(o||O)},O.\u0275mod=n.oAB({type:O}),O.\u0275inj=n.cJS({imports:[c.ez,x.BQ,r.Q8,x.BQ]}),O})()},7392:(Oe,he,l)=>{l.d(he,{Hw:()=>$,Ps:()=>Me});var r=l(4650),c=l(3238),n=l(1281),x=l(6895),ie=l(9646),k=l(2843),re=l(4128),E=l(727),y=l(8505),L=l(4004),ee=l(262),B=l(8746),I=l(3099),F=l(5698),z=l(529),G=l(1481);const J=["*"];let ce;function de(H){return function ne(){if(void 0===ce&&(ce=null,typeof window<"u")){const H=window;void 0!==H.trustedTypes&&(ce=H.trustedTypes.createPolicy("angular#components",{createHTML:_e=>_e}))}return ce}()?.createHTML(H)||H}function K(H){return Error(`Unable to find icon with the name "${H}"`)}function _(H){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${H}".`)}function S(H){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${H}".`)}class v{constructor(_e,b,w){this.url=_e,this.svgText=b,this.options=w}}let A=(()=>{class H{constructor(b,w,te,ae){this._httpClient=b,this._sanitizer=w,this._errorHandler=ae,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons"],this._document=te}addSvgIcon(b,w,te){return this.addSvgIconInNamespace("",b,w,te)}addSvgIconLiteral(b,w,te){return this.addSvgIconLiteralInNamespace("",b,w,te)}addSvgIconInNamespace(b,w,te,ae){return this._addSvgIconConfig(b,w,new v(te,null,ae))}addSvgIconResolver(b){return this._resolvers.push(b),this}addSvgIconLiteralInNamespace(b,w,te,ae){const ue=this._sanitizer.sanitize(r.q3G.HTML,te);if(!ue)throw S(te);const Se=de(ue);return this._addSvgIconConfig(b,w,new v("",Se,ae))}addSvgIconSet(b,w){return this.addSvgIconSetInNamespace("",b,w)}addSvgIconSetLiteral(b,w){return this.addSvgIconSetLiteralInNamespace("",b,w)}addSvgIconSetInNamespace(b,w,te){return this._addSvgIconSetConfig(b,new v(w,null,te))}addSvgIconSetLiteralInNamespace(b,w,te){const ae=this._sanitizer.sanitize(r.q3G.HTML,w);if(!ae)throw S(w);const ue=de(ae);return this._addSvgIconSetConfig(b,new v("",ue,te))}registerFontClassAlias(b,w=b){return this._fontCssClassesByAlias.set(b,w),this}classNameForFontAlias(b){return this._fontCssClassesByAlias.get(b)||b}setDefaultFontSetClass(...b){return this._defaultFontSetClass=b,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(b){const w=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,b);if(!w)throw _(b);const te=this._cachedIconsByUrl.get(w);return te?(0,ie.of)(me(te)):this._loadSvgIconFromConfig(new v(b,null)).pipe((0,y.b)(ae=>this._cachedIconsByUrl.set(w,ae)),(0,L.U)(ae=>me(ae)))}getNamedSvgIcon(b,w=""){const te=xe(w,b);let ae=this._svgIconConfigs.get(te);if(ae)return this._getSvgFromConfig(ae);if(ae=this._getIconConfigFromResolvers(w,b),ae)return this._svgIconConfigs.set(te,ae),this._getSvgFromConfig(ae);const ue=this._iconSetConfigs.get(w);return ue?this._getSvgFromIconSetConfigs(b,ue):(0,k._)(K(te))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(b){return b.svgText?(0,ie.of)(me(this._svgElementFromConfig(b))):this._loadSvgIconFromConfig(b).pipe((0,L.U)(w=>me(w)))}_getSvgFromIconSetConfigs(b,w){const te=this._extractIconWithNameFromAnySet(b,w);if(te)return(0,ie.of)(te);const ae=w.filter(ue=>!ue.svgText).map(ue=>this._loadSvgIconSetFromConfig(ue).pipe((0,ee.K)(Se=>{const Pe=`Loading icon set URL: ${this._sanitizer.sanitize(r.q3G.RESOURCE_URL,ue.url)} failed: ${Se.message}`;return this._errorHandler.handleError(new Error(Pe)),(0,ie.of)(null)})));return(0,re.D)(ae).pipe((0,L.U)(()=>{const ue=this._extractIconWithNameFromAnySet(b,w);if(!ue)throw K(b);return ue}))}_extractIconWithNameFromAnySet(b,w){for(let te=w.length-1;te>=0;te--){const ae=w[te];if(ae.svgText&&ae.svgText.toString().indexOf(b)>-1){const ue=this._svgElementFromConfig(ae),Se=this._extractSvgIconFromSet(ue,b,ae.options);if(Se)return Se}}return null}_loadSvgIconFromConfig(b){return this._fetchIcon(b).pipe((0,y.b)(w=>b.svgText=w),(0,L.U)(()=>this._svgElementFromConfig(b)))}_loadSvgIconSetFromConfig(b){return b.svgText?(0,ie.of)(null):this._fetchIcon(b).pipe((0,y.b)(w=>b.svgText=w))}_extractSvgIconFromSet(b,w,te){const ae=b.querySelector(`[id="${w}"]`);if(!ae)return null;const ue=ae.cloneNode(!0);if(ue.removeAttribute("id"),"svg"===ue.nodeName.toLowerCase())return this._setSvgAttributes(ue,te);if("symbol"===ue.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ue),te);const Se=this._svgElementFromString(de("<svg></svg>"));return Se.appendChild(ue),this._setSvgAttributes(Se,te)}_svgElementFromString(b){const w=this._document.createElement("DIV");w.innerHTML=b;const te=w.querySelector("svg");if(!te)throw Error("<svg> tag not found");return te}_toSvgElement(b){const w=this._svgElementFromString(de("<svg></svg>")),te=b.attributes;for(let ae=0;ae<te.length;ae++){const{name:ue,value:Se}=te[ae];"id"!==ue&&w.setAttribute(ue,Se)}for(let ae=0;ae<b.childNodes.length;ae++)b.childNodes[ae].nodeType===this._document.ELEMENT_NODE&&w.appendChild(b.childNodes[ae].cloneNode(!0));return w}_setSvgAttributes(b,w){return b.setAttribute("fit",""),b.setAttribute("height","100%"),b.setAttribute("width","100%"),b.setAttribute("preserveAspectRatio","xMidYMid meet"),b.setAttribute("focusable","false"),w&&w.viewBox&&b.setAttribute("viewBox",w.viewBox),b}_fetchIcon(b){const{url:w,options:te}=b,ae=te?.withCredentials??!1;if(!this._httpClient)throw function Z(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==w)throw Error(`Cannot fetch icon from URL "${w}".`);const ue=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,w);if(!ue)throw _(w);const Se=this._inProgressUrlFetches.get(ue);if(Se)return Se;const Ae=this._httpClient.get(ue,{responseType:"text",withCredentials:ae}).pipe((0,L.U)(Pe=>de(Pe)),(0,B.x)(()=>this._inProgressUrlFetches.delete(ue)),(0,I.B)());return this._inProgressUrlFetches.set(ue,Ae),Ae}_addSvgIconConfig(b,w,te){return this._svgIconConfigs.set(xe(b,w),te),this}_addSvgIconSetConfig(b,w){const te=this._iconSetConfigs.get(b);return te?te.push(w):this._iconSetConfigs.set(b,[w]),this}_svgElementFromConfig(b){if(!b.svgElement){const w=this._svgElementFromString(b.svgText);this._setSvgAttributes(w,b.options),b.svgElement=w}return b.svgElement}_getIconConfigFromResolvers(b,w){for(let te=0;te<this._resolvers.length;te++){const ae=this._resolvers[te](w,b);if(ae)return be(ae)?new v(ae.url,null,ae.options):new v(ae,null)}}}return H.\u0275fac=function(b){return new(b||H)(r.LFG(z.eN,8),r.LFG(G.H7),r.LFG(x.K0,8),r.LFG(r.qLn))},H.\u0275prov=r.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function me(H){return H.cloneNode(!0)}function xe(H,_e){return H+":"+_e}function be(H){return!(!H.url||!H.options)}const pe=(0,c.pj)(class{constructor(H){this._elementRef=H}}),se=new r.OlP("MAT_ICON_DEFAULT_OPTIONS"),V=new r.OlP("mat-icon-location",{providedIn:"root",factory:function X(){const H=(0,r.f3M)(x.K0),_e=H?H.location:null;return{getPathname:()=>_e?_e.pathname+_e.search:""}}}),le=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],N=le.map(H=>`[${H}]`).join(", "),Q=/^url\(['"]?#(.*?)['"]?\)$/;let $=(()=>{class H extends pe{constructor(b,w,te,ae,ue,Se){super(b),this._iconRegistry=w,this._location=ae,this._errorHandler=ue,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=E.w0.EMPTY,Se&&(Se.color&&(this.color=this.defaultColor=Se.color),Se.fontSet&&(this.fontSet=Se.fontSet)),te||b.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(b){this._inline=(0,n.Ig)(b)}get svgIcon(){return this._svgIcon}set svgIcon(b){b!==this._svgIcon&&(b?this._updateSvgIcon(b):this._svgIcon&&this._clearSvgElement(),this._svgIcon=b)}get fontSet(){return this._fontSet}set fontSet(b){const w=this._cleanupFontValue(b);w!==this._fontSet&&(this._fontSet=w,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(b){const w=this._cleanupFontValue(b);w!==this._fontIcon&&(this._fontIcon=w,this._updateFontIconClasses())}_splitIconName(b){if(!b)return["",""];const w=b.split(":");switch(w.length){case 1:return["",w[0]];case 2:return w;default:throw Error(`Invalid icon name: "${b}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const b=this._elementsWithExternalReferences;if(b&&b.size){const w=this._location.getPathname();w!==this._previousPath&&(this._previousPath=w,this._prependPathToReferences(w))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(b){this._clearSvgElement();const w=this._location.getPathname();this._previousPath=w,this._cacheChildrenWithExternalReferences(b),this._prependPathToReferences(w),this._elementRef.nativeElement.appendChild(b)}_clearSvgElement(){const b=this._elementRef.nativeElement;let w=b.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();w--;){const te=b.childNodes[w];(1!==te.nodeType||"svg"===te.nodeName.toLowerCase())&&te.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const b=this._elementRef.nativeElement,w=(this.fontSet?[this._iconRegistry.classNameForFontAlias(this.fontSet)]:this._iconRegistry.getDefaultFontSetClass()).filter(te=>te.length>0);this._previousFontSetClass.forEach(te=>b.classList.remove(te)),w.forEach(te=>b.classList.add(te)),this._previousFontSetClass=w,this.fontIcon!==this._previousFontIconClass&&(this._previousFontIconClass&&b.classList.remove(this._previousFontIconClass),this.fontIcon&&b.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(b){return"string"==typeof b?b.trim().split(" ")[0]:b}_prependPathToReferences(b){const w=this._elementsWithExternalReferences;w&&w.forEach((te,ae)=>{te.forEach(ue=>{ae.setAttribute(ue.name,`url('${b}#${ue.value}')`)})})}_cacheChildrenWithExternalReferences(b){const w=b.querySelectorAll(N),te=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ae=0;ae<w.length;ae++)le.forEach(ue=>{const Se=w[ae],Ae=Se.getAttribute(ue),Pe=Ae?Ae.match(Q):null;if(Pe){let Be=te.get(Se);Be||(Be=[],te.set(Se,Be)),Be.push({name:ue,value:Pe[1]})}})}_updateSvgIcon(b){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),b){const[w,te]=this._splitIconName(b);w&&(this._svgNamespace=w),te&&(this._svgName=te),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(te,w).pipe((0,F.q)(1)).subscribe(ae=>this._setSvgElement(ae),ae=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${w}:${te}! ${ae.message}`))})}}}return H.\u0275fac=function(b){return new(b||H)(r.Y36(r.SBq),r.Y36(A),r.$8M("aria-hidden"),r.Y36(V),r.Y36(r.qLn),r.Y36(se,8))},H.\u0275cmp=r.Xpm({type:H,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(b,w){2&b&&(r.uIk("data-mat-icon-type",w._usingFontIcon()?"font":"svg")("data-mat-icon-name",w._svgName||w.fontIcon)("data-mat-icon-namespace",w._svgNamespace||w.fontSet),r.ekj("mat-icon-inline",w.inline)("mat-icon-no-color","primary"!==w.color&&"accent"!==w.color&&"warn"!==w.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[r.qOj],ngContentSelectors:J,decls:1,vars:0,template:function(b,w){1&b&&(r.F$t(),r.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),H})(),Me=(()=>{class H{}return H.\u0275fac=function(b){return new(b||H)},H.\u0275mod=r.oAB({type:H}),H.\u0275inj=r.cJS({imports:[c.BQ,c.BQ]}),H})()},4144:(Oe,he,l)=>{l.d(he,{Jk:()=>z,Nt:()=>ne,c:()=>de});var r=l(1281),c=l(3353),n=l(4650),x=l(515),ie=l(7579);const k=(0,c.i$)({passive:!0});let re=(()=>{class K{constructor(_,S){this._platform=_,this._ngZone=S,this._monitoredElements=new Map}monitor(_){if(!this._platform.isBrowser)return x.E;const S=(0,r.fI)(_),v=this._monitoredElements.get(S);if(v)return v.subject;const A=new ie.x,oe="cdk-text-field-autofilled",ve=me=>{"cdk-text-field-autofill-start"!==me.animationName||S.classList.contains(oe)?"cdk-text-field-autofill-end"===me.animationName&&S.classList.contains(oe)&&(S.classList.remove(oe),this._ngZone.run(()=>A.next({target:me.target,isAutofilled:!1}))):(S.classList.add(oe),this._ngZone.run(()=>A.next({target:me.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{S.addEventListener("animationstart",ve,k),S.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(S,{subject:A,unlisten:()=>{S.removeEventListener("animationstart",ve,k)}}),A}stopMonitoring(_){const S=(0,r.fI)(_),v=this._monitoredElements.get(S);v&&(v.unlisten(),v.subject.complete(),S.classList.remove("cdk-text-field-autofill-monitored"),S.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(S))}ngOnDestroy(){this._monitoredElements.forEach((_,S)=>this.stopMonitoring(S))}}return K.\u0275fac=function(_){return new(_||K)(n.LFG(c.t4),n.LFG(n.R0b))},K.\u0275prov=n.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),L=(()=>{class K{}return K.\u0275fac=function(_){return new(_||K)},K.\u0275mod=n.oAB({type:K}),K.\u0275inj=n.cJS({}),K})();var ee=l(4006),B=l(3238),I=l(9549);const z=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),G=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let J=0;const ce=(0,B.FD)(class{constructor(K,Z,_,S){this._defaultErrorStateMatcher=K,this._parentForm=Z,this._parentFormGroup=_,this.ngControl=S,this.stateChanges=new ie.x}});let ne=(()=>{class K extends ce{constructor(_,S,v,A,oe,ve,me,xe,be,pe){super(ve,A,oe,v),this._elementRef=_,this._platform=S,this._autofillMonitor=xe,this._formField=pe,this._uid="mat-input-"+J++,this.focused=!1,this.stateChanges=new ie.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(X=>(0,c.qK)().has(X)),this._iOSKeyupListener=X=>{const le=X.target;!le.value&&0===le.selectionStart&&0===le.selectionEnd&&(le.setSelectionRange(1,1),le.setSelectionRange(0,0))};const se=this._elementRef.nativeElement,V=se.nodeName.toLowerCase();this._inputValueAccessor=me||se,this._previousNativeValue=this.value,this.id=this.id,S.IOS&&be.runOutsideAngular(()=>{_.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===V,this._isTextarea="textarea"===V,this._isInFormField=!!pe,this._isNativeSelect&&(this.controlType=se.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(_){this._disabled=(0,r.Ig)(_),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(_){this._id=_||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ee.kI.required)??!1}set required(_){this._required=(0,r.Ig)(_)}get type(){return this._type}set type(_){this._type=_||"text",this._validateType(),!this._isTextarea&&(0,c.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(_){_!==this.value&&(this._inputValueAccessor.value=_,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(_){this._readonly=(0,r.Ig)(_)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(_=>{this.autofilled=_.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(_){this._elementRef.nativeElement.focus(_)}_focusChanged(_){_!==this.focused&&(this.focused=_,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const _=this._formField,S=_&&"legacy"===_.appearance&&!_._hasLabel?.()?null:this.placeholder;if(S!==this._previousPlaceholder){const v=this._elementRef.nativeElement;this._previousPlaceholder=S,S?v.setAttribute("placeholder",S):v.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const _=this._elementRef.nativeElement.value;this._previousNativeValue!==_&&(this._previousNativeValue=_,this.stateChanges.next())}_validateType(){G.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let _=this._elementRef.nativeElement.validity;return _&&_.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const _=this._elementRef.nativeElement,S=_.options[0];return this.focused||_.multiple||!this.empty||!!(_.selectedIndex>-1&&S&&S.label)}return this.focused||!this.empty}setDescribedByIds(_){_.length?this._elementRef.nativeElement.setAttribute("aria-describedby",_.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const _=this._elementRef.nativeElement;return this._isNativeSelect&&(_.multiple||_.size>1)}}return K.\u0275fac=function(_){return new(_||K)(n.Y36(n.SBq),n.Y36(c.t4),n.Y36(ee.a5,10),n.Y36(ee.F,8),n.Y36(ee.sg,8),n.Y36(B.rD),n.Y36(z,10),n.Y36(re),n.Y36(n.R0b),n.Y36(I.G_,8))},K.\u0275dir=n.lG2({type:K,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(_,S){1&_&&n.NdJ("focus",function(){return S._focusChanged(!0)})("blur",function(){return S._focusChanged(!1)})("input",function(){return S._onInput()}),2&_&&(n.Ikx("disabled",S.disabled)("required",S.required),n.uIk("id",S.id)("data-placeholder",S.placeholder)("name",S.name||null)("readonly",S.readonly&&!S._isNativeSelect||null)("aria-invalid",S.empty&&S.required?null:S.errorState)("aria-required",S.required),n.ekj("mat-input-server",S._isServer)("mat-native-select-inline",S._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[n._Bn([{provide:I.Eo,useExisting:K}]),n.qOj,n.TTD]}),K})(),de=(()=>{class K{}return K.\u0275fac=function(_){return new(_||K)},K.\u0275mod=n.oAB({type:K}),K.\u0275inj=n.cJS({providers:[B.rD],imports:[L,I.lN,B.BQ,L,I.lN]}),K})()},1948:(Oe,he,l)=>{l.d(he,{Fk:()=>Z,U0:()=>K,VQ:()=>J});var r=l(4650),c=l(3238),n=l(2687),x=l(1281),ie=l(5017),k=l(4006);const re=["input"],E=function(_){return{enterDuration:_}},y=["*"],L=new r.OlP("mat-radio-default-options",{providedIn:"root",factory:function ee(){return{color:"accent"}}});let B=0;const I={provide:k.JU,useExisting:(0,r.Gpc)(()=>J),multi:!0};class F{constructor(S,v){this.source=S,this.value=v}}const z=new r.OlP("MatRadioGroup");let G=(()=>{class _{constructor(v){this._changeDetector=v,this._value=null,this._name="mat-radio-group-"+B++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new r.vpe}get name(){return this._name}set name(v){this._name=v,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(v){this._labelPosition="before"===v?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(v){this._value!==v&&(this._value=v,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(v){this._selected=v,this.value=v?v.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(v){this._disabled=(0,x.Ig)(v),this._markRadiosForCheck()}get required(){return this._required}set required(v){this._required=(0,x.Ig)(v),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(v=>{v.name=this.name,v._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(A=>{A.checked=this.value===A.value,A.checked&&(this._selected=A)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new F(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(v=>v._markForCheck())}writeValue(v){this.value=v,this._changeDetector.markForCheck()}registerOnChange(v){this._controlValueAccessorChangeFn=v}registerOnTouched(v){this.onTouched=v}setDisabledState(v){this.disabled=v,this._changeDetector.markForCheck()}}return _.\u0275fac=function(v){return new(v||_)(r.Y36(r.sBO))},_.\u0275dir=r.lG2({type:_,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),_})(),J=(()=>{class _ extends G{}return _.\u0275fac=function(){let S;return function(A){return(S||(S=r.n5z(_)))(A||_)}}(),_.\u0275dir=r.lG2({type:_,selectors:[["mat-radio-group"]],contentQueries:function(v,A,oe){if(1&v&&r.Suo(oe,K,5),2&v){let ve;r.iGM(ve=r.CRH())&&(A._radios=ve)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[r._Bn([I,{provide:z,useExisting:_}]),r.qOj]}),_})();class ce{constructor(S){this._elementRef=S}}const ne=(0,c.Kr)((0,c.sb)(ce));let de=(()=>{class _ extends ne{constructor(v,A,oe,ve,me,xe,be,pe){super(A),this._changeDetector=oe,this._focusMonitor=ve,this._radioDispatcher=me,this._providerOverride=be,this._uniqueId="mat-radio-"+ ++B,this.id=this._uniqueId,this.change=new r.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=v,this._noopAnimations="NoopAnimations"===xe,pe&&(this.tabIndex=(0,x.su)(pe,0)),this._removeUniqueSelectionListener=me.listen((se,V)=>{se!==this.id&&V===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(v){const A=(0,x.Ig)(v);this._checked!==A&&(this._checked=A,A&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!A&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),A&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(v){this._value!==v&&(this._value=v,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===v),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(v){this._labelPosition=v}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(v){this._setDisabled((0,x.Ig)(v))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(v){this._required=(0,x.Ig)(v)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(v){this._color=v}get inputId(){return`${this.id||this._uniqueId}-input`}focus(v,A){A?this._focusMonitor.focusVia(this._inputElement,A,v):this._inputElement.nativeElement.focus(v)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{!v&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new F(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(v){v.stopPropagation()}_onInputInteraction(v){if(v.stopPropagation(),!this.checked&&!this.disabled){const A=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),A&&this.radioGroup._emitChangeEvent())}}_setDisabled(v){this._disabled!==v&&(this._disabled=v,this._changeDetector.markForCheck())}_updateTabIndex(){const v=this.radioGroup;let A;if(A=v&&v.selected&&!this.disabled?v.selected===this?this.tabIndex:-1:this.tabIndex,A!==this._previousTabIndex){const oe=this._inputElement?.nativeElement;oe&&(oe.setAttribute("tabindex",A+""),this._previousTabIndex=A)}}}return _.\u0275fac=function(v){r.$Z()},_.\u0275dir=r.lG2({type:_,viewQuery:function(v,A){if(1&v&&r.Gf(re,5),2&v){let oe;r.iGM(oe=r.CRH())&&(A._inputElement=oe.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[r.qOj]}),_})(),K=(()=>{class _ extends de{constructor(v,A,oe,ve,me,xe,be,pe){super(v,A,oe,ve,me,xe,be,pe)}}return _.\u0275fac=function(v){return new(v||_)(r.Y36(z,8),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(n.tE),r.Y36(ie.A8),r.Y36(r.QbO,8),r.Y36(L,8),r.$8M("tabindex"))},_.\u0275cmp=r.Xpm({type:_,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(v,A){1&v&&r.NdJ("focus",function(){return A._inputElement.nativeElement.focus()}),2&v&&(r.uIk("tabindex",null)("id",A.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),r.ekj("mat-radio-checked",A.checked)("mat-radio-disabled",A.disabled)("_mat-animation-noopable",A._noopAnimations)("mat-primary","primary"===A.color)("mat-accent","accent"===A.color)("mat-warn","warn"===A.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[r.qOj],ngContentSelectors:y,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(v,A){if(1&v&&(r.F$t(),r.TgZ(0,"label",0,1)(2,"span",2),r._UZ(3,"span",3)(4,"span",4),r.TgZ(5,"input",5,6),r.NdJ("change",function(ve){return A._onInputInteraction(ve)})("click",function(ve){return A._onInputClick(ve)}),r.qZA(),r.TgZ(7,"span",7),r._UZ(8,"span",8),r.qZA()(),r.TgZ(9,"span",9)(10,"span",10),r._uU(11,"\xa0"),r.qZA(),r.Hsn(12),r.qZA()()),2&v){const oe=r.MAs(1);r.uIk("for",A.inputId),r.xp6(5),r.Q6J("id",A.inputId)("checked",A.checked)("disabled",A.disabled)("required",A.required),r.uIk("name",A.name)("value",A.value)("aria-label",A.ariaLabel)("aria-labelledby",A.ariaLabelledby)("aria-describedby",A.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",oe)("matRippleDisabled",A._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,E,A._noopAnimations?0:150)),r.xp6(2),r.ekj("mat-radio-label-before","before"==A.labelPosition)}},dependencies:[c.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}"],encapsulation:2,changeDetection:0}),_})(),Z=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=r.oAB({type:_}),_.\u0275inj=r.cJS({imports:[c.si,c.BQ,c.BQ]}),_})()},4385:(Oe,he,l)=>{l.d(he,{LD:()=>Ve,gD:()=>He});var r=l(2561),c=l(6895),n=l(4650),x=l(3238),ie=l(9549),k=l(7376),re=l(2687),E=l(445),y=l(1281),L=l(5017),ee=l(9521),B=l(4006),I=l(7579),F=l(9770),z=l(6451),G=l(8675),J=l(3900),ce=l(5698),ne=l(9300),de=l(4004),K=l(1884),Z=l(2722),_=l(7340);const S=["trigger"],v=["panel"];function A(Ee,O){if(1&Ee&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&Ee){const m=n.oxw();n.xp6(1),n.Oqu(m.placeholder)}}function oe(Ee,O){if(1&Ee&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&Ee){const m=n.oxw(2);n.xp6(1),n.Oqu(m.triggerValue)}}function ve(Ee,O){1&Ee&&n.Hsn(0,0,["*ngSwitchCase","true"])}function me(Ee,O){if(1&Ee&&(n.TgZ(0,"span",9),n.YNc(1,oe,2,1,"span",10),n.YNc(2,ve,1,0,"ng-content",11),n.qZA()),2&Ee){const m=n.oxw();n.Q6J("ngSwitch",!!m.customTrigger),n.xp6(2),n.Q6J("ngSwitchCase",!0)}}function xe(Ee,O){if(1&Ee){const m=n.EpF();n.TgZ(0,"div",13)(1,"div",14,15),n.NdJ("@transformPanel.done",function(i){n.CHM(m);const h=n.oxw();return n.KtG(h._panelDoneAnimatingStream.next(i.toState))})("keydown",function(i){n.CHM(m);const h=n.oxw();return n.KtG(h._handleKeydown(i))}),n.Hsn(3,1),n.qZA()()}if(2&Ee){const m=n.oxw();n.Q6J("@transformPanelWrap",void 0),n.xp6(1),n.Gre("mat-select-panel ",m._getPanelTheme(),""),n.Udp("transform-origin",m._transformOrigin)("font-size",m._triggerFontSize,"px"),n.Q6J("ngClass",m.panelClass)("@transformPanel",m.multiple?"showing-multiple":"showing"),n.uIk("id",m.id+"-panel")("aria-multiselectable",m.multiple)("aria-label",m.ariaLabel||null)("aria-labelledby",m._getPanelAriaLabelledby())}}const be=[[["mat-select-trigger"]],"*"],pe=["mat-select-trigger","*"],se={transformPanelWrap:(0,_.X$)("transformPanelWrap",[(0,_.eR)("* => void",(0,_.IO)("@transformPanel",[(0,_.pV)()],{optional:!0}))]),transformPanel:(0,_.X$)("transformPanel",[(0,_.SB)("void",(0,_.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,_.SB)("showing",(0,_.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,_.SB)("showing-multiple",(0,_.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,_.eR)("void => *",(0,_.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,_.eR)("* => void",(0,_.jt)("100ms 25ms linear",(0,_.oB)({opacity:0})))])};let N=0;const Q=256,w=new n.OlP("mat-select-scroll-strategy"),ae=new n.OlP("MAT_SELECT_CONFIG"),ue={provide:w,deps:[r.aV],useFactory:function te(Ee){return()=>Ee.scrollStrategies.reposition()}};class Se{constructor(O,m){this.source=O,this.value=m}}const Ae=(0,x.Kr)((0,x.sb)((0,x.Id)((0,x.FD)(class{constructor(Ee,O,m,o,i){this._elementRef=Ee,this._defaultErrorStateMatcher=O,this._parentForm=m,this._parentFormGroup=o,this.ngControl=i,this.stateChanges=new I.x}})))),Pe=new n.OlP("MatSelectTrigger");let Ne=(()=>{class Ee extends Ae{constructor(m,o,i,h,p,T,P,q,ge,ye,ke,we,De,Ie){super(p,h,P,q,ye),this._viewportRuler=m,this._changeDetectorRef=o,this._ngZone=i,this._dir=T,this._parentFormField=ge,this._liveAnnouncer=De,this._defaultOptions=Ie,this._panelOpen=!1,this._compareWith=(Te,Le)=>Te===Le,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new I.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new I.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,F.P)(()=>{const Te=this.options;return Te?Te.changes.pipe((0,G.O)(Te),(0,J.w)(()=>(0,z.T)(...Te.map(Le=>Le.onSelectionChange)))):this._ngZone.onStable.pipe((0,ce.q)(1),(0,J.w)(()=>this.optionSelectionChanges))}),this.openedChange=new n.vpe,this._openedStream=this.openedChange.pipe((0,ne.h)(Te=>Te),(0,de.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ne.h)(Te=>!Te),(0,de.U)(()=>{})),this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ie?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Ie.typeaheadDebounceInterval),this._scrollStrategyFactory=we,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ke)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(m){this._placeholder=m,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(B.kI.required)??!1}set required(m){this._required=(0,y.Ig)(m),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(m){this._multiple=(0,y.Ig)(m)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(m){this._disableOptionCentering=(0,y.Ig)(m)}get compareWith(){return this._compareWith}set compareWith(m){this._compareWith=m,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(m){this._assignValue(m)&&this._onChange(m)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(m){this._typeaheadDebounceInterval=(0,y.su)(m)}get id(){return this._id}set id(m){this._id=m||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new L.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,K.x)(),(0,Z.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Z.R)(this._destroy)).subscribe(m=>{m.added.forEach(o=>o.select()),m.removed.forEach(o=>o.deselect())}),this.options.changes.pipe((0,G.O)(null),(0,Z.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const m=this._getTriggerAriaLabelledby(),o=this.ngControl;if(m!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=m,m?i.setAttribute("aria-labelledby",m):i.removeAttribute("aria-labelledby")}o&&(this._previousControl!==o.control&&(void 0!==this._previousControl&&null!==o.disabled&&o.disabled!==this.disabled&&(this.disabled=o.disabled),this._previousControl=o.control),this.updateErrorState())}ngOnChanges(m){(m.disabled||m.userAriaDescribedBy)&&this.stateChanges.next(),m.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(m){this._assignValue(m)}registerOnChange(m){this._onChange=m}registerOnTouched(m){this._onTouched=m}setDisabledState(m){this.disabled=m,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const m=this._selectionModel.selected.map(o=>o.viewValue);return this._isRtl()&&m.reverse(),m.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(m){this.disabled||(this.panelOpen?this._handleOpenKeydown(m):this._handleClosedKeydown(m))}_handleClosedKeydown(m){const o=m.keyCode,i=o===ee.JH||o===ee.LH||o===ee.oh||o===ee.SV,h=o===ee.K5||o===ee.L_,p=this._keyManager;if(!p.isTyping()&&h&&!(0,ee.Vb)(m)||(this.multiple||m.altKey)&&i)m.preventDefault(),this.open();else if(!this.multiple){const T=this.selected;p.onKeydown(m);const P=this.selected;P&&T!==P&&this._liveAnnouncer.announce(P.viewValue,1e4)}}_handleOpenKeydown(m){const o=this._keyManager,i=m.keyCode,h=i===ee.JH||i===ee.LH,p=o.isTyping();if(h&&m.altKey)m.preventDefault(),this.close();else if(p||i!==ee.K5&&i!==ee.L_||!o.activeItem||(0,ee.Vb)(m))if(!p&&this._multiple&&i===ee.A&&m.ctrlKey){m.preventDefault();const T=this.options.some(P=>!P.disabled&&!P.selected);this.options.forEach(P=>{P.disabled||(T?P.select():P.deselect())})}else{const T=o.activeItemIndex;o.onKeydown(m),this._multiple&&h&&m.shiftKey&&o.activeItem&&o.activeItemIndex!==T&&o.activeItem._selectViaInteraction()}else m.preventDefault(),o.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,ce.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(m){if(this._selectionModel.selected.forEach(o=>o.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&m)Array.isArray(m),m.forEach(o=>this._selectOptionByValue(o)),this._sortValues();else{const o=this._selectOptionByValue(m);o?this._keyManager.updateActiveItem(o):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(m){const o=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return null!=i.value&&this._compareWith(i.value,m)}catch{return!1}});return o&&this._selectionModel.select(o),o}_assignValue(m){return!!(m!==this._value||this._multiple&&Array.isArray(m))&&(this.options&&this._setSelectionByValue(m),this._value=m,!0)}_initKeyManager(){this._keyManager=new re.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Z.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Z.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const m=(0,z.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Z.R)(m)).subscribe(o=>{this._onSelect(o.source,o.isUserInput),o.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,z.T)(...this.options.map(o=>o._stateChanges)).pipe((0,Z.R)(m)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(m,o){const i=this._selectionModel.isSelected(m);null!=m.value||this._multiple?(i!==m.selected&&(m.selected?this._selectionModel.select(m):this._selectionModel.deselect(m)),o&&this._keyManager.setActiveItem(m),this.multiple&&(this._sortValues(),o&&this.focus())):(m.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(m.value)),i!==this._selectionModel.isSelected(m)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const m=this.options.toArray();this._selectionModel.sort((o,i)=>this.sortComparator?this.sortComparator(o,i,m):m.indexOf(o)-m.indexOf(i)),this.stateChanges.next()}}_propagateChanges(m){let o=null;o=this.multiple?this.selected.map(i=>i.value):this.selected?this.selected.value:m,this._value=o,this.valueChange.emit(o),this._onChange(o),this.selectionChange.emit(this._getChangeEvent(o)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(m){this._elementRef.nativeElement.focus(m)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const m=this._parentFormField?.getLabelId();return this.ariaLabelledby?(m?m+" ":"")+this.ariaLabelledby:m}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const m=this._parentFormField?.getLabelId();let o=(m?m+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(m){this.openedChange.emit(m)}setDescribedByIds(m){m.length?this._elementRef.nativeElement.setAttribute("aria-describedby",m.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ee.\u0275fac=function(m){return new(m||Ee)(n.Y36(k.rL),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(x.rD),n.Y36(n.SBq),n.Y36(E.Is,8),n.Y36(B.F,8),n.Y36(B.sg,8),n.Y36(ie.G_,8),n.Y36(B.a5,10),n.$8M("tabindex"),n.Y36(w),n.Y36(re.Kd),n.Y36(ae,8))},Ee.\u0275dir=n.lG2({type:Ee,viewQuery:function(m,o){if(1&m&&(n.Gf(S,5),n.Gf(v,5),n.Gf(r.pI,5)),2&m){let i;n.iGM(i=n.CRH())&&(o.trigger=i.first),n.iGM(i=n.CRH())&&(o.panel=i.first),n.iGM(i=n.CRH())&&(o._overlayDir=i.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[n.qOj,n.TTD]}),Ee})(),He=(()=>{class Ee extends Ne{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(m,o,i){const h=this._getItemHeight();return Math.min(Math.max(0,h*m-o+h/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Z.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,ce.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(m){const o=(0,x.CB)(m,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=0===m&&1===o?0:(0,x.jH)((m+o)*i,i,this.panel.nativeElement.scrollTop,Q)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(m){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(m)}_getChangeEvent(m){return new Se(this,m)}_calculateOverlayOffsetX(){const m=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),i=this._isRtl(),h=this.multiple?56:32;let p;if(this.multiple)p=40;else if(this.disableOptionCentering)p=16;else{let q=this._selectionModel.selected[0]||this.options.first;p=q&&q.group?32:16}i||(p*=-1);const T=0-(m.left+p-(i?h:0)),P=m.right+p-o.width+(i?0:h);T>0?p+=T+8:P>0&&(p-=P+8),this._overlayDir.offsetX=Math.round(p),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(m,o,i){const h=this._getItemHeight(),p=(h-this._triggerRect.height)/2,T=Math.floor(Q/h);let P;return this.disableOptionCentering?0:(P=0===this._scrollTop?m*h:this._scrollTop===i?(m-(this._getItemCount()-T))*h+(h-(this._getItemCount()*h-Q)%h):o-h/2,Math.round(-1*P-p))}_checkOverlayWithinViewport(m){const o=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),h=this._triggerRect.top-8,p=i.height-this._triggerRect.bottom-8,T=Math.abs(this._offsetY),q=Math.min(this._getItemCount()*o,Q)-T-this._triggerRect.height;q>p?this._adjustPanelUp(q,p):T>h?this._adjustPanelDown(T,h,m):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(m,o){const i=Math.round(m-o);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(m,o,i){const h=Math.round(m-o);if(this._scrollTop+=h,this._offsetY+=h,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const m=this._getItemHeight(),o=this._getItemCount(),i=Math.min(o*m,Q),p=o*m-i;let T;T=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),T+=(0,x.CB)(T,this.options,this.optionGroups);const P=i/2;this._scrollTop=this._calculateOverlayScroll(T,P,p),this._offsetY=this._calculateOverlayOffsetY(T,P,p),this._checkOverlayWithinViewport(p)}_getOriginBasedOnOption(){const m=this._getItemHeight(),o=(m-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-o+m/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ee.\u0275fac=function(){let O;return function(o){return(O||(O=n.n5z(Ee)))(o||Ee)}}(),Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["mat-select"]],contentQueries:function(m,o,i){if(1&m&&(n.Suo(i,Pe,5),n.Suo(i,x.ey,5),n.Suo(i,x.K7,5)),2&m){let h;n.iGM(h=n.CRH())&&(o.customTrigger=h.first),n.iGM(h=n.CRH())&&(o.options=h),n.iGM(h=n.CRH())&&(o.optionGroups=h)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(m,o){1&m&&n.NdJ("keydown",function(h){return o._handleKeydown(h)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&m&&(n.uIk("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),n.ekj("mat-select-disabled",o.disabled)("mat-select-invalid",o.errorState)("mat-select-required",o.required)("mat-select-empty",o.empty)("mat-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[n._Bn([{provide:ie.Eo,useExisting:Ee},{provide:x.HF,useExisting:Ee}]),n.qOj],ngContentSelectors:pe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(m,o){if(1&m&&(n.F$t(be),n.TgZ(0,"div",0,1),n.NdJ("click",function(){return o.toggle()}),n.TgZ(3,"div",2),n.YNc(4,A,2,1,"span",3),n.YNc(5,me,3,2,"span",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6),n.qZA()(),n.YNc(8,xe,4,14,"ng-template",7),n.NdJ("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&m){const i=n.MAs(1);n.uIk("aria-owns",o.panelOpen?o.id+"-panel":null),n.xp6(3),n.Q6J("ngSwitch",o.empty),n.uIk("id",o._valueId),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(3),n.Q6J("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayMinWidth",null==o._triggerRect?null:o._triggerRect.width)("cdkConnectedOverlayOffsetY",o._offsetY)}},dependencies:[c.mk,c.RF,c.n9,c.ED,r.pI,r.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[se.transformPanelWrap,se.transformPanel]},changeDetection:0}),Ee})(),Ve=(()=>{class Ee{}return Ee.\u0275fac=function(m){return new(m||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({providers:[ue],imports:[c.ez,r.U8,x.Ng,x.BQ,k.ZD,ie.lN,x.Ng,x.BQ]}),Ee})()},266:(Oe,he,l)=>{l.d(he,{AV:()=>se,gM:()=>xe});var r=l(2561),c=l(2687),n=l(6895),x=l(4650),ie=l(3238),k=l(7376),re=l(445),E=l(1281),y=l(9521),L=l(2289),ee=l(3353),B=l(4080),I=l(7579),F=l(2722),z=l(5698);l(7340);const J=["tooltip"],de="tooltip-panel",K=(0,ee.i$)({passive:!0}),S=new x.OlP("mat-tooltip-scroll-strategy"),A={provide:S,deps:[r.aV],useFactory:function v(X){return()=>X.scrollStrategies.reposition({scrollThrottle:20})}},oe=new x.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ve(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let me=(()=>{class X{constructor(N,Q,$,Me,H,_e,b,w,te,ae,ue,Se){this._overlay=N,this._elementRef=Q,this._scrollDispatcher=$,this._viewContainerRef=Me,this._ngZone=H,this._platform=_e,this._ariaDescriber=b,this._focusMonitor=w,this._dir=ae,this._defaultOptions=ue,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new I.x,this._scrollStrategy=te,this._document=Se,ue&&(ue.position&&(this.position=ue.position),ue.touchGestures&&(this.touchGestures=ue.touchGestures)),ae.change.pipe((0,F.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(N){N!==this._position&&(this._position=N,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,E.Ig)(N),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(N){this._showDelay=(0,E.su)(N)}get hideDelay(){return this._hideDelay}set hideDelay(N){this._hideDelay=(0,E.su)(N),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=N?String(N).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(N){this._tooltipClass=N,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,F.R)(this._destroyed)).subscribe(N=>{N?"keyboard"===N&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const N=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Q,$])=>{N.removeEventListener(Q,$,K)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(N,this.message,"tooltip"),this._focusMonitor.stopMonitoring(N)}show(N=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Q=this._createOverlay();this._detach(),this._portal=this._portal||new B.C5(this._tooltipComponent,this._viewContainerRef);const $=this._tooltipInstance=Q.attach(this._portal).instance;$._triggerElement=this._elementRef.nativeElement,$._mouseLeaveHideDelay=this._hideDelay,$.afterHidden().pipe((0,F.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),$.show(N)}hide(N=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(N)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const N=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Q=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(N);return Q.positionChanges.pipe((0,F.R)(this._destroyed)).subscribe($=>{this._updateCurrentPositionClass($.connectionPair),this._tooltipInstance&&$.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Q,panelClass:`${this._cssClassPrefix}-${de}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,F.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,F.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,F.R)(this._destroyed)).subscribe($=>{this._isTooltipVisible()&&$.keyCode===y.hY&&!(0,y.Vb)($)&&($.preventDefault(),$.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(N){const Q=N.getConfig().positionStrategy,$=this._getOrigin(),Me=this._getOverlayPosition();Q.withPositions([this._addOffset({...$.main,...Me.main}),this._addOffset({...$.fallback,...Me.fallback})])}_addOffset(N){return N}_getOrigin(){const N=!this._dir||"ltr"==this._dir.value,Q=this.position;let $;"above"==Q||"below"==Q?$={originX:"center",originY:"above"==Q?"top":"bottom"}:"before"==Q||"left"==Q&&N||"right"==Q&&!N?$={originX:"start",originY:"center"}:("after"==Q||"right"==Q&&N||"left"==Q&&!N)&&($={originX:"end",originY:"center"});const{x:Me,y:H}=this._invertPosition($.originX,$.originY);return{main:$,fallback:{originX:Me,originY:H}}}_getOverlayPosition(){const N=!this._dir||"ltr"==this._dir.value,Q=this.position;let $;"above"==Q?$={overlayX:"center",overlayY:"bottom"}:"below"==Q?$={overlayX:"center",overlayY:"top"}:"before"==Q||"left"==Q&&N||"right"==Q&&!N?$={overlayX:"end",overlayY:"center"}:("after"==Q||"right"==Q&&N||"left"==Q&&!N)&&($={overlayX:"start",overlayY:"center"});const{x:Me,y:H}=this._invertPosition($.overlayX,$.overlayY);return{main:$,fallback:{overlayX:Me,overlayY:H}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,z.q)(1),(0,F.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(N){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=N,this._tooltipInstance._markForCheck())}_invertPosition(N,Q){return"above"===this.position||"below"===this.position?"top"===Q?Q="bottom":"bottom"===Q&&(Q="top"):"end"===N?N="start":"start"===N&&(N="end"),{x:N,y:Q}}_updateCurrentPositionClass(N){const{overlayY:Q,originX:$,originY:Me}=N;let H;if(H="center"===Q?this._dir&&"rtl"===this._dir.value?"end"===$?"left":"right":"start"===$?"left":"right":"bottom"===Q&&"top"===Me?"above":"below",H!==this._currentPosition){const _e=this._overlayRef;if(_e){const b=`${this._cssClassPrefix}-${de}-`;_e.removePanelClass(b+this._currentPosition),_e.addPanelClass(b+H)}this._currentPosition=H}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const N=[];if(this._platformSupportsMouseEvents())N.push(["mouseleave",Q=>{const $=Q.relatedTarget;(!$||!this._overlayRef?.overlayElement.contains($))&&this.hide()}],["wheel",Q=>this._wheelListener(Q)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Q=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};N.push(["touchend",Q],["touchcancel",Q])}this._addListeners(N),this._passiveListeners.push(...N)}_addListeners(N){N.forEach(([Q,$])=>{this._elementRef.nativeElement.addEventListener(Q,$,K)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(N){if(this._isTooltipVisible()){const Q=this._document.elementFromPoint(N.clientX,N.clientY),$=this._elementRef.nativeElement;Q!==$&&!$.contains(Q)&&this.hide()}}_disableNativeGesturesIfNecessary(){const N=this.touchGestures;if("off"!==N){const Q=this._elementRef.nativeElement,$=Q.style;("on"===N||"INPUT"!==Q.nodeName&&"TEXTAREA"!==Q.nodeName)&&($.userSelect=$.msUserSelect=$.webkitUserSelect=$.MozUserSelect="none"),("on"===N||!Q.draggable)&&($.webkitUserDrag="none"),$.touchAction="none",$.webkitTapHighlightColor="transparent"}}}return X.\u0275fac=function(N){x.$Z()},X.\u0275dir=x.lG2({type:X,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),X})(),xe=(()=>{class X extends me{constructor(N,Q,$,Me,H,_e,b,w,te,ae,ue,Se){super(N,Q,$,Me,H,_e,b,w,te,ae,ue,Se),this._tooltipComponent=pe}}return X.\u0275fac=function(N){return new(N||X)(x.Y36(r.aV),x.Y36(x.SBq),x.Y36(k.mF),x.Y36(x.s_b),x.Y36(x.R0b),x.Y36(ee.t4),x.Y36(c.$s),x.Y36(c.tE),x.Y36(S),x.Y36(re.Is,8),x.Y36(oe,8),x.Y36(n.K0))},X.\u0275dir=x.lG2({type:X,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[x.qOj]}),X})(),be=(()=>{class X{constructor(N,Q){this._changeDetectorRef=N,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new I.x,this._animationsDisabled="NoopAnimations"===Q}show(N){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},N)}hide(N){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},N)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:N}){(!N||!this._triggerElement.contains(N))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:N}){(N===this._showAnimation||N===this._hideAnimation)&&this._finalizeAnimation(N===this._showAnimation)}_finalizeAnimation(N){N?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(N){const Q=this._tooltip.nativeElement,$=this._showAnimation,Me=this._hideAnimation;if(Q.classList.remove(N?Me:$),Q.classList.add(N?$:Me),this._isVisible=N,N&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const H=getComputedStyle(Q);("0s"===H.getPropertyValue("animation-duration")||"none"===H.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}N&&this._onShow(),this._animationsDisabled&&(Q.classList.add("_mat-animation-noopable"),this._finalizeAnimation(N))}}return X.\u0275fac=function(N){return new(N||X)(x.Y36(x.sBO),x.Y36(x.QbO,8))},X.\u0275dir=x.lG2({type:X}),X})(),pe=(()=>{class X extends be{constructor(N,Q,$){super(N,$),this._breakpointObserver=Q,this._isHandset=this._breakpointObserver.observe(L.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return X.\u0275fac=function(N){return new(N||X)(x.Y36(x.sBO),x.Y36(L.Yg),x.Y36(x.QbO,8))},X.\u0275cmp=x.Xpm({type:X,selectors:[["mat-tooltip-component"]],viewQuery:function(N,Q){if(1&N&&x.Gf(J,7),2&N){let $;x.iGM($=x.CRH())&&(Q._tooltip=$.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(N,Q){1&N&&x.NdJ("mouseleave",function(Me){return Q._handleMouseLeave(Me)}),2&N&&x.Udp("zoom",Q.isVisible()?1:null)},features:[x.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(N,Q){if(1&N&&(x.TgZ(0,"div",0,1),x.NdJ("animationend",function(Me){return Q._handleAnimationEnd(Me)}),x.ALo(2,"async"),x._uU(3),x.qZA()),2&N){let $;x.ekj("mat-tooltip-handset",null==($=x.lcZ(2,4,Q._isHandset))?null:$.matches),x.Q6J("ngClass",Q.tooltipClass),x.xp6(3),x.Oqu(Q.message)}},dependencies:[n.mk,n.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),X})(),se=(()=>{class X{}return X.\u0275fac=function(N){return new(N||X)},X.\u0275mod=x.oAB({type:X}),X.\u0275inj=x.cJS({providers:[A],imports:[c.rt,n.ez,r.U8,ie.BQ,ie.BQ,k.ZD]}),X})()}}]);