marketplacepos 2.6.4 → 2.6.6
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.
- package/Marketplace/25.03de7055fb683c5f.js +1 -0
- package/Marketplace/291.67c6826480f4b3c1.js +1 -0
- package/Marketplace/369.429e9916287df714.js +1 -0
- package/Marketplace/397.4fa90ebd3b5a5dcb.js +1 -0
- package/Marketplace/463.e888c5669d9a2ec5.js +1 -0
- package/Marketplace/475.40ab6c8d730cafca.js +1 -0
- package/Marketplace/516.dfd1d7b99fe8e5b0.js +1 -0
- package/Marketplace/566.6be2dcba25c4b37c.js +1 -0
- package/Marketplace/717.b73519cb10db4efc.js +1 -0
- package/Marketplace/913.b0ba75db695ec705.js +1 -0
- package/Marketplace/997.8e08fe9c3e557dc1.js +1 -0
- package/Marketplace/common.b609a3050c08de6d.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.09c137e64164752a.js +1 -0
- package/Marketplace/runtime.70e718db4ead4031.js +1 -0
- package/package.json +1 -1
- package/Marketplace/117.7936760fc208d523.js +0 -1
- package/Marketplace/180.cc94448b2211cb4a.js +0 -1
- package/Marketplace/25.6dd4d4cee1f4f83c.js +0 -1
- package/Marketplace/291.304a30789207d7b4.js +0 -1
- package/Marketplace/397.39d258c71c3fff64.js +0 -1
- package/Marketplace/463.d5db8443b197d470.js +0 -1
- package/Marketplace/516.f335756d88de781a.js +0 -1
- package/Marketplace/656.1d7641755cc6e994.js +0 -1
- package/Marketplace/717.de25d206cb2de0f8.js +0 -1
- package/Marketplace/common.3f5874655db24424.js +0 -1
- package/Marketplace/main.f039f644ef145436.js +0 -1
- package/Marketplace/runtime.f44715ccfb889778.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[397],{7481:(Le,Me,r)=>{r.d(Me,{R:()=>re,p:()=>K});var o=r(4650),l=r(6895),t=r(4006),x=r(6806),oe=r(1589);function R(V,F){if(1&V){const N=o.EpF();o.ynx(0),o.TgZ(1,"div",18)(2,"input",19),o.NdJ("ngModelChange",function($){o.CHM(N);const ye=o.oxw();return o.KtG(ye.text=$)})("keyup",function(){o.CHM(N);const $=o.oxw();return o.KtG($.onTextChange())})("keyup.enter",function(){o.CHM(N);const $=o.oxw();return o.KtG($.submit())}),o.qZA(),o.TgZ(3,"div")(4,"button",20),o.NdJ("click",function(){o.CHM(N);const $=o.oxw();return o.KtG($.submit())}),o._UZ(5,"i",21),o.qZA()()(),o.BQk()}if(2&V){const N=o.oxw();o.xp6(2),o.Q6J("ngModel",N.text)("placeholder",N.searchBoxPlaceHolder)}}function me(V,F){if(1&V){const N=o.EpF();o.TgZ(0,"div",22)(1,"a",23)(2,"i",24),o._UZ(3,"i",25),o.qZA()(),o.TgZ(4,"form",26),o.Hsn(5,2),o.TgZ(6,"button",27),o.NdJ("click",function(){o.CHM(N);const $=o.oxw();return o.KtG($.submit())}),o._UZ(7,"i",28),o._uU(8,"Search "),o.qZA()()()}}const ce=[[["actions"]],[["content"]],[["filters"]]],b=["actions","content","filters"];let K=(()=>{class V{constructor(N){this.sidebarService=N,this.onSubmit=new o.vpe,this.textChange=new o.vpe,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search.."}submit(){this.inputText=this.text,this.onSubmit.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}IsActive(N){return this.getMenuNameByUrl(window.location.href)==this.getMenuNameByUrl(N)}toggledropdown(N){N.stopPropagation()}getMenuNameByUrl(N){var C=N.split("#");if(C.length>1){var ye=C[1].split("/");return""!=ye[0]?ye[0]:ye[1]}return N}toggleMenu(){this.sidebarService.toggleSidebar()}}return V.\u0275fac=function(N){return new(N||V)(o.Y36(oe.g))},V.\u0275cmp=o.Xpm({type:V,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:b,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(N,C){1&N&&(o.F$t(ce),o.TgZ(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),o._uU(4),o.qZA()(),o.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),o.YNc(10,R,6,2,"ng-container",7),o.qZA()(),o.YNc(11,me,9,0,"div",8),o.qZA()()(),o.TgZ(12,"div",9)(13,"button",10),o._UZ(14,"i",11),o.qZA(),o.TgZ(15,"button",12),o._UZ(16,"i",13),o.qZA(),o.TgZ(17,"button",14),o.NdJ("click",function(){return C.toggleMenu()}),o._UZ(18,"span",15)(19,"span",15)(20,"span",15),o.qZA()(),o.TgZ(21,"div",16),o.Hsn(22),o.qZA()()(),o.TgZ(23,"div",17)(24,"div"),o.Hsn(25,1),o.qZA()()),2&N&&(o.xp6(3),o.Q6J("title",C.description?C.description:""),o.xp6(1),o.hij(" ",C.headerTitle," "),o.xp6(6),o.Q6J("ngIf",!C.hideSearchBox),o.xp6(1),o.Q6J("ngIf",!C.hideSearchDropdown))},dependencies:[l.O5,t._Y,t.Fj,t.JJ,t.JL,t.On,t.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}),V})(),re=(()=>{class V{}return V.\u0275fac=function(N){return new(N||V)},V.\u0275mod=o.oAB({type:V}),V.\u0275inj=o.cJS({imports:[l.ez,t.u5,x.Bz]}),V})()},2397:(Le,Me,r)=>{r.r(Me),r.d(Me,{MenuModule:()=>ie});var o=r(6895),l=r(6806),t=r(8063),x=r(2722),oe=r(7579),R=r(2340);class me{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},{Icon:"fas fa-wand-magic-sparkles",Title:"What`s New",Url:`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${R.N.version}`,ExternalLink:!0,CustomColor:"#ff2323",Badge:!0}]}get getMenu(){return this.menus}}var ce=r(4004),b=r(4650),K=r(9568),re=r(1589),V=r(8964),F=r(8002),N=r(266),C=r(3238),$=r(2687),ye=r(1281);let he=0;const ne=(0,C.Id)(class{}),pe="mat-badge-content";let W=(()=>{class L extends ne{constructor(z,te,Ie,Pe,Fe){super(),this._ngZone=z,this._elementRef=te,this._ariaDescriber=Ie,this._renderer=Pe,this._animationMode=Fe,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=he++,this._isInitialized=!1}get color(){return this._color}set color(z){this._setColor(z),this._color=z}get overlap(){return this._overlap}set overlap(z){this._overlap=(0,ye.Ig)(z)}get content(){return this._content}set content(z){this._updateRenderedContent(z)}get description(){return this._description}set description(z){this._updateHostAriaDescription(z)}get hidden(){return this._hidden}set hidden(z){this._hidden=(0,ye.Ig)(z)}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 z=this._renderer.createElement("span"),te="mat-badge-active";return z.setAttribute("id",`mat-badge-content-${this._id}`),z.setAttribute("aria-hidden","true"),z.classList.add(pe),"NoopAnimations"===this._animationMode&&z.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(z),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{z.classList.add(te)})}):z.classList.add(te),z}_updateRenderedContent(z){const te=`${z??""}`.trim();this._isInitialized&&te&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=te),this._content=te}_updateHostAriaDescription(z){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),z&&this._ariaDescriber.describe(this._elementRef.nativeElement,z),this._description=z}_setColor(z){const te=this._elementRef.nativeElement.classList;te.remove(`mat-badge-${this._color}`),z&&te.add(`mat-badge-${z}`)}_clearExistingBadges(){const z=this._elementRef.nativeElement.querySelectorAll(`:scope > .${pe}`);for(const te of Array.from(z))te!==this._badgeElement&&te.remove()}}return L.\u0275fac=function(z){return new(z||L)(b.Y36(b.R0b),b.Y36(b.SBq),b.Y36($.$s),b.Y36(b.Qsj),b.Y36(b.QbO,8))},L.\u0275dir=b.lG2({type:L,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(z,te){2&z&&b.ekj("mat-badge-overlap",te.overlap)("mat-badge-above",te.isAbove())("mat-badge-below",!te.isAbove())("mat-badge-before",!te.isAfter())("mat-badge-after",te.isAfter())("mat-badge-small","small"===te.size)("mat-badge-medium","medium"===te.size)("mat-badge-large","large"===te.size)("mat-badge-hidden",te.hidden||!te.content)("mat-badge-disabled",te.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:[b.qOj]}),L})(),Y=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275mod=b.oAB({type:L}),L.\u0275inj=b.cJS({imports:[$.rt,C.BQ,C.BQ]}),L})();function m(L,se){if(1&L&&(b.ynx(0),b.TgZ(1,"p",22),b._uU(2),b.qZA(),b.BQk()),2&L){const z=b.oxw(2).$implicit;b.xp6(2),b.Oqu(z.Title)}}function E(L,se){if(1&L&&(b.TgZ(0,"p"),b._uU(1),b.qZA()),2&L){const z=b.oxw(2).$implicit;b.xp6(1),b.hij("",z.Title," ")}}function g(L,se){if(1&L&&(b.ynx(0),b.TgZ(1,"a",20),b._UZ(2,"i"),b.YNc(3,m,3,1,"ng-container",18),b.YNc(4,E,2,1,"ng-template",null,21,b.W1O),b.qZA(),b.BQk()),2&L){const z=b.MAs(5),te=b.oxw().$implicit;b.xp6(1),b.Q6J("href",te.Url,b.LSH),b.xp6(1),b.Tol(te.Icon),b.xp6(1),b.Q6J("ngIf",te.Badge)("ngIfElse",z)}}function S(L,se){if(1&L&&(b.ynx(0),b.TgZ(1,"p",25),b.ALo(2,"async"),b._uU(3),b.qZA(),b.BQk()),2&L){const z=b.oxw(2).$implicit,te=b.oxw();b.xp6(1),b.Q6J("matBadgeHidden",0==b.lcZ(2,2,te.notifications$)),b.xp6(2),b.Oqu(z.Title)}}function ee(L,se){if(1&L&&(b.TgZ(0,"p"),b._uU(1),b.qZA()),2&L){const z=b.oxw(2).$implicit;b.xp6(1),b.hij("",z.Title," ")}}function ge(L,se){if(1&L&&(b.TgZ(0,"a",23),b._UZ(1,"i"),b.YNc(2,S,4,4,"ng-container",18),b.YNc(3,ee,2,1,"ng-template",null,24,b.W1O),b.qZA()),2&L){const z=b.MAs(4),te=b.oxw().$implicit,Ie=b.oxw();b.Q6J("matTooltip",Ie.isCollapseSidebar?te.Title:"")("routerLink",te.Url),b.xp6(1),b.Tol(te.Icon),b.xp6(1),b.Q6J("ngIf",te.Badge)("ngIfElse",z)}}function be(L,se){if(1&L&&(b.TgZ(0,"li",17),b.YNc(1,g,6,5,"ng-container",18),b.YNc(2,ge,5,6,"ng-template",null,19,b.W1O),b.qZA()),2&L){const z=se.$implicit,te=b.MAs(3);b.xp6(1),b.Q6J("ngIf",z.ExternalLink)("ngIfElse",te)}}function xe(L,se){if(1&L){const z=b.EpF();b.TgZ(0,"div",26)(1,"span"),b._uU(2),b.TgZ(3,"a",27),b._uU(4,"this Article"),b.qZA(),b._uU(5," to renew your ShopID! "),b.qZA(),b.TgZ(6,"a",28),b.NdJ("click",function(){b.CHM(z);const Ie=b.oxw();return b.KtG(Ie.CloseWarning())}),b._UZ(7,"i",29),b.qZA()()}if(2&L){const z=b.oxw();b.xp6(2),b.AsE(" Your Shopee Channel ShopID ",z.ShopID," is expired in (",z.Difference_In_Days,") days, please refer to ")}}const _e=[{path:"",component:(()=>{class L{constructor(z,te,Ie,Pe,Fe){this._router=z,this.LocalData=te,this.toggleSidebarService=Ie,this.notificationService=Pe,this.decodeTokenService=Fe,this.Menu={},this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new oe.x,this.isCollapseSidebar=!1,this.initIntercom(),this.token=Fe.getParseToken(),this.storeName=this.token.StoreName,this.Menu=(new me).getMenu,this.CheckExpired()}ngOnInit(){this.subscribeToSidebarChange(),this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe((0,ce.U)(z=>z.length))}initIntercom(){var z=localStorage.getItem("Intercom"),te=JSON.parse(z);null==te?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:te.Name,email:te.Email,created_at:te.Created,user_hash:te.Hash})}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe((0,x.R)(this.destroy$)).subscribe(z=>{this.isNavOpen=z})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}CheckExpired(){let z=JSON.parse(window.localStorage.getItem("user"));if(z)if(null!=z.expiredAt)this.LogOut();else{let Ie=z.Channel;if(Ie.length>0)for(let Pe of Ie)if(null!=Pe.ExpiredTime&&0==Pe.TypeID){let Fe=new Date(Pe.ExpiredTime),Re=new Date;var te=Fe.getTime()-Re.getTime();this.Difference_In_Days=Math.round(te/864e5),this.Difference_In_Days<=10&&(this.IsExpired=!0,this.ShopID=Pe.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(z){if(z){let te;const Ie=z.split(" ");return te=1==Ie.length?Ie[0].substring(0,2):Ie.shift().charAt(0)+Ie.pop().charAt(0),te}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return L.\u0275fac=function(z){return new(z||L)(b.Y36(l.F0),b.Y36(K.T),b.Y36(re.g),b.Y36(V.g),b.Y36(F.e))},L.\u0275cmp=b.Xpm({type:L,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"],[4,"ngIf","ngIfElse"],["DEFAULT_ROUTE",""],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["NO_BADGE",""],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["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(z,te){1&z&&(b.TgZ(0,"div",0)(1,"div",1)(2,"button",2),b.NdJ("click",function(){return te.onCallapseSidebar()}),b._UZ(3,"i",3),b.qZA(),b.TgZ(4,"div",4)(5,"div",5)(6,"a",6),b._uU(7),b.qZA(),b.TgZ(8,"div",7)(9,"div",8),b._uU(10),b.qZA(),b._UZ(11,"div",9),b.TgZ(12,"a",10),b.NdJ("click",function(){return te.LogOut()}),b._UZ(13,"i",11),b._uU(14,"\xa0 "),b.TgZ(15,"span"),b._uU(16," Log Out"),b.qZA()()()()(),b.TgZ(17,"div",12)(18,"ul",13),b.YNc(19,be,4,2,"li",14),b.qZA()()(),b.TgZ(20,"div",15),b.YNc(21,xe,8,2,"div",16),b._UZ(22,"router-outlet"),b.qZA()()),2&z&&(b.ekj("nav-open",te.isNavOpen),b.xp6(1),b.Q6J("ngClass",te.isCollapseSidebar?"collapses":""),b.xp6(2),b.Q6J("ngClass",te.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),b.xp6(3),b.s9C("title",te.token.StoreName),b.xp6(1),b.hij(" ",te.storeName," "),b.xp6(3),b.hij("",te.token.UserName," "),b.xp6(9),b.Q6J("ngForOf",te.Menu),b.xp6(2),b.Q6J("ngIf",te.IsExpired))},dependencies:[o.mk,o.sg,o.O5,l.lC,l.yS,l.Od,N.gM,W,o.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)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}"]}),L})(),children:[{path:"",redirectTo:"products",pathMatch:"full"},{path:"products",loadChildren:()=>Promise.all([r.e(796),r.e(516),r.e(663),r.e(739),r.e(592),r.e(180)]).then(r.bind(r,1180)).then(L=>L.ProductModule),canActivate:[t.a],data:{title:"Products"}},{path:"inventory",loadChildren:()=>Promise.all([r.e(796),r.e(516),r.e(663),r.e(455),r.e(785),r.e(72)]).then(r.bind(r,5072)).then(L=>L.InventoryModule),canActivate:[t.a],data:{title:"Inventory"}},{path:"price",loadChildren:()=>Promise.all([r.e(796),r.e(516),r.e(663),r.e(455),r.e(785),r.e(592),r.e(874)]).then(r.bind(r,1874)).then(L=>L.PriceModule),canActivate:[t.a],data:{title:"Price"}},{path:"Order",loadChildren:()=>Promise.all([r.e(796),r.e(616),r.e(739),r.e(592),r.e(656)]).then(r.bind(r,5656)).then(L=>L.OrdersModule),canActivate:[t.a],data:{title:"Order"}},{path:"report",loadChildren:()=>Promise.all([r.e(616),r.e(585),r.e(360)]).then(r.bind(r,4360)).then(L=>L.ReportModule),canActivate:[t.a],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>r.e(512).then(r.bind(r,5512)).then(L=>L.LogisticModule),canActivate:[t.a],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>Promise.all([r.e(796),r.e(455),r.e(463)]).then(r.bind(r,6463)).then(L=>L.ChannelsModule),canActivate:[t.a],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>Promise.all([r.e(796),r.e(616),r.e(739),r.e(585),r.e(877)]).then(r.bind(r,5877)).then(L=>L.LogsModule),canActivate:[t.a],data:{title:"Orders"}},{path:"Notification",loadChildren:()=>Promise.all([r.e(796),r.e(592),r.e(717)]).then(r.bind(r,6717)).then(L=>L.NotificationModule),canActivate:[t.a],data:{title:"Push Notification"}}]}];let ve=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275mod=b.oAB({type:L}),L.\u0275inj=b.cJS({imports:[l.Bz.forChild(_e),l.Bz]}),L})();var H=r(7481),j=r(4006),ae=r(5412),P=r(1948),G=r(4144),Q=r(9549),ue=r(4385),J=r(5960),Se=r(6709),I=r(6401);let U=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275mod=b.oAB({type:L}),L.\u0275inj=b.cJS({imports:[o.ez,j.u5,ae.Is,P.Fk,G.c,Q.lN,ue.LD,Se.p9,N.AV,J.n,I.d]}),L})(),ie=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275mod=b.oAB({type:L}),L.\u0275inj=b.cJS({providers:[o.uU],imports:[o.ez,ve,H.R,N.AV,U,Y]}),L})()},8063:(Le,Me,r)=>{r.d(Me,{a:()=>t});var o=r(4650),l=r(6806);let t=(()=>{class x{constructor(R){this.router=R}canActivate(R,me){let ce=JSON.parse(window.localStorage.getItem("user")),b=new Date;return null!=ce&&b<new Date(ce.Token.expiredAt)||(this.router.navigate([""]),!1)}}return x.\u0275fac=function(R){return new(R||x)(o.LFG(l.F0))},x.\u0275prov=o.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},9568:(Le,Me,r)=>{r.d(Me,{T:()=>R});var o=r(4004),l=r(3154),t=r(9694),x=r(4650),oe=r(5421);let R=(()=>{class me{constructor(b){this.db=b,this.DATABASE="Categories"}saveCategoriesByChannelType(b,K){let re=this.getKey(K);return this.db.add(this.DATABASE,b,re).pipe((0,o.U)(V=>b))}getCategoriesByChannelType(b){let K=this.getKey(b);return this.db.getByKey(this.DATABASE,K)}getKey(b){let K="";switch(b){case t.x.Lazada:K="Lazada";break;case t.x.Tokopedia:K="Tokopedia"}return K}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){if(l.g.IsEmpty(this.hostName)){const b=localStorage.getItem("Authorization");this.hostName=JSON.parse(b)?.Host}return this.hostName}}return me.\u0275fac=function(b){return new(b||me)(x.LFG(oe.ys))},me.\u0275prov=x.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})()},8964:(Le,Me,r)=>{r.d(Me,{g:()=>ke});var o=r(1135);const l=[0,2e3,1e4,3e4,null];class t{constructor(n){this._retryDelays=void 0!==n?[...n,null]:l}nextRetryDelayInMilliseconds(n){return this._retryDelays[n.previousRetryCount]}}var x=r(5861);class oe extends Error{constructor(n,s){const _=new.target.prototype;super(`${n}: Status code '${s}'`),this.statusCode=s,this.__proto__=_}}class R extends Error{constructor(n="A timeout occurred."){const s=new.target.prototype;super(n),this.__proto__=s}}class me extends Error{constructor(n="An abort occurred."){const s=new.target.prototype;super(n),this.__proto__=s}}class ce extends Error{constructor(n,s){const _=new.target.prototype;super(n),this.transport=s,this.errorType="UnsupportedTransportError",this.__proto__=_}}class b extends Error{constructor(n,s){const _=new.target.prototype;super(n),this.transport=s,this.errorType="DisabledTransportError",this.__proto__=_}}class K extends Error{constructor(n,s){const _=new.target.prototype;super(n),this.transport=s,this.errorType="FailedToStartTransportError",this.__proto__=_}}class re extends Error{constructor(n){const s=new.target.prototype;super(n),this.errorType="FailedToNegotiateWithServerError",this.__proto__=s}}class V extends Error{constructor(n,s){const _=new.target.prototype;super(n),this.innerErrors=s,this.__proto__=_}}class F{constructor(n,s,_){this.statusCode=n,this.statusText=s,this.content=_}}class N{get(n,s){return this.send({...s,method:"GET",url:n})}post(n,s){return this.send({...s,method:"POST",url:n})}delete(n,s){return this.send({...s,method:"DELETE",url:n})}getCookieString(n){return""}}var C=(()=>{return(T=C||(C={}))[T.Trace=0]="Trace",T[T.Debug=1]="Debug",T[T.Information=2]="Information",T[T.Warning=3]="Warning",T[T.Error=4]="Error",T[T.Critical=5]="Critical",T[T.None=6]="None",C;var T})();class ${constructor(){}log(n,s){}}$.instance=new $;class he{static isRequired(n,s){if(null==n)throw new Error(`The '${s}' argument is required.`)}static isNotEmpty(n,s){if(!n||n.match(/^\s*$/))throw new Error(`The '${s}' argument should not be empty.`)}static isIn(n,s,_){if(!(n in s))throw new Error(`Unknown ${_} value: ${n}.`)}}class ne{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&typeof window.document>"u"}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function pe(T,n){let s="";return Y(T)?(s=`Binary data of length ${T.byteLength}`,n&&(s+=`. Content: '${function W(T){const n=new Uint8Array(T);let s="";return n.forEach(_=>{s+=`0x${_<16?"0":""}${_.toString(16)} `}),s.substr(0,s.length-1)}(T)}'`)):"string"==typeof T&&(s=`String data of length ${T.length}`,n&&(s+=`. Content: '${T}'`)),s}function Y(T){return T&&typeof ArrayBuffer<"u"&&(T instanceof ArrayBuffer||T.constructor&&"ArrayBuffer"===T.constructor.name)}function m(T,n,s,_,c,u,d){return E.apply(this,arguments)}function E(){return(E=(0,x.Z)(function*(T,n,s,_,c,u,d){let M={};if(c){const B=yield c();B&&(M={Authorization:`Bearer ${B}`})}const[y,v]=ge();M[y]=v,T.log(C.Trace,`(${n} transport) sending data. ${pe(u,d.logMessageContent)}.`);const f=Y(u)?"arraybuffer":"text",D=yield s.post(_,{content:u,headers:{...M,...d.headers},responseType:f,timeout:d.timeout,withCredentials:d.withCredentials});T.log(C.Trace,`(${n} transport) request complete. Response status: ${D.statusCode}.`)})).apply(this,arguments)}class S{constructor(n,s){this._subject=n,this._observer=s}dispose(){const n=this._subject.observers.indexOf(this._observer);n>-1&&this._subject.observers.splice(n,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(s=>{})}}class ee{constructor(n){this._minLevel=n,this.out=console}log(n,s){if(n>=this._minLevel){const _=`[${(new Date).toISOString()}] ${C[n]}: ${s}`;switch(n){case C.Critical:case C.Error:this.out.error(_);break;case C.Warning:this.out.warn(_);break;case C.Information:this.out.info(_);break;default:this.out.log(_)}}}}function ge(){let T="X-SignalR-User-Agent";return ne.isNode&&(T="User-Agent"),[T,be("6.0.9",xe(),ne.isNode?"NodeJS":"Browser",Ee())]}function be(T,n,s,_){let c="Microsoft SignalR/";const u=T.split(".");return c+=`${u[0]}.${u[1]}`,c+=` (${T}; `,c+=n&&""!==n?`${n}; `:"Unknown OS; ",c+=`${s}`,c+=_?`; ${_}`:"; Unknown Runtime Version",c+=")",c}function xe(){if(!ne.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function Ee(){if(ne.isNode)return process.versions.node}function ve(T){return T.stack?T.stack:T.message?T.message:`${T}`}class j extends N{constructor(n){if(super(),this._logger=n,typeof fetch>"u"){const s=require;this._jar=new(s("tough-cookie").CookieJar),this._fetchType=s("node-fetch"),this._fetchType=s("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function H(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const s=require;this._abortControllerType=s("abort-controller")}else this._abortControllerType=AbortController}send(n){var s=this;return(0,x.Z)(function*(){if(n.abortSignal&&n.abortSignal.aborted)throw new me;if(!n.method)throw new Error("No method defined.");if(!n.url)throw new Error("No url defined.");const _=new s._abortControllerType;let c;n.abortSignal&&(n.abortSignal.onabort=()=>{_.abort(),c=new me});let d,u=null;n.timeout&&(u=setTimeout(()=>{_.abort(),s._logger.log(C.Warning,"Timeout from HTTP request."),c=new R},n.timeout));try{d=yield s._fetchType(n.url,{body:n.content,cache:"no-cache",credentials:!0===n.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...n.headers},method:n.method,mode:"cors",redirect:"follow",signal:_.signal})}catch(v){throw c||(s._logger.log(C.Warning,`Error from HTTP request. ${v}.`),v)}finally{u&&clearTimeout(u),n.abortSignal&&(n.abortSignal.onabort=null)}if(!d.ok){const v=yield ae(d,"text");throw new oe(v||d.statusText,d.status)}const y=yield ae(d,n.responseType);return new F(d.status,d.statusText,y)})()}getCookieString(n){let s="";return ne.isNode&&this._jar&&this._jar.getCookies(n,(_,c)=>s=c.join("; ")),s}}function ae(T,n){let s;switch(n){case"arraybuffer":s=T.arrayBuffer();break;case"text":default:s=T.text();break;case"blob":case"document":case"json":throw new Error(`${n} is not supported.`)}return s}class P extends N{constructor(n){super(),this._logger=n}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new me):n.method?n.url?new Promise((s,_)=>{const c=new XMLHttpRequest;c.open(n.method,n.url,!0),c.withCredentials=void 0===n.withCredentials||n.withCredentials,c.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const u=n.headers;u&&Object.keys(u).forEach(d=>{c.setRequestHeader(d,u[d])}),n.responseType&&(c.responseType=n.responseType),n.abortSignal&&(n.abortSignal.onabort=()=>{c.abort(),_(new me)}),n.timeout&&(c.timeout=n.timeout),c.onload=()=>{n.abortSignal&&(n.abortSignal.onabort=null),c.status>=200&&c.status<300?s(new F(c.status,c.statusText,c.response||c.responseText)):_(new oe(c.response||c.responseText||c.statusText,c.status))},c.onerror=()=>{this._logger.log(C.Warning,`Error from HTTP request. ${c.status}: ${c.statusText}.`),_(new oe(c.statusText,c.status))},c.ontimeout=()=>{this._logger.log(C.Warning,"Timeout from HTTP request."),_(new R)},c.send(n.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class G extends N{constructor(n){if(super(),typeof fetch<"u"||ne.isNode)this._httpClient=new j(n);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new P(n)}}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new me):n.method?n.url?this._httpClient.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(n){return this._httpClient.getCookieString(n)}}let Q=(()=>{class T{}return T.Authorization="Authorization",T.Cookie="Cookie",T})();var ue=(()=>{return(T=ue||(ue={}))[T.None=0]="None",T[T.WebSockets=1]="WebSockets",T[T.ServerSentEvents=2]="ServerSentEvents",T[T.LongPolling=4]="LongPolling",ue;var T})(),J=(()=>{return(T=J||(J={}))[T.Text=1]="Text",T[T.Binary=2]="Binary",J;var T})();class Se{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class I{constructor(n,s,_,c){this._httpClient=n,this._accessTokenFactory=s,this._logger=_,this._pollAbort=new Se,this._options=c,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}connect(n,s){var _=this;return(0,x.Z)(function*(){if(he.isRequired(n,"url"),he.isRequired(s,"transferFormat"),he.isIn(s,J,"transferFormat"),_._url=n,_._logger.log(C.Trace,"(LongPolling transport) Connecting."),s===J.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[c,u]=ge(),d={[c]:u,..._._options.headers},M={abortSignal:_._pollAbort.signal,headers:d,timeout:1e5,withCredentials:_._options.withCredentials};s===J.Binary&&(M.responseType="arraybuffer");const y=yield _._getAccessToken();_._updateHeaderToken(M,y);const v=`${n}&_=${Date.now()}`;_._logger.log(C.Trace,`(LongPolling transport) polling: ${v}.`);const f=yield _._httpClient.get(v,M);200!==f.statusCode?(_._logger.log(C.Error,`(LongPolling transport) Unexpected response code: ${f.statusCode}.`),_._closeError=new oe(f.statusText||"",f.statusCode),_._running=!1):_._running=!0,_._receiving=_._poll(_._url,M)})()}_getAccessToken(){var n=this;return(0,x.Z)(function*(){return n._accessTokenFactory?yield n._accessTokenFactory():null})()}_updateHeaderToken(n,s){n.headers||(n.headers={}),s?n.headers[Q.Authorization]=`Bearer ${s}`:n.headers[Q.Authorization]&&delete n.headers[Q.Authorization]}_poll(n,s){var _=this;return(0,x.Z)(function*(){try{for(;_._running;){const c=yield _._getAccessToken();_._updateHeaderToken(s,c);try{const u=`${n}&_=${Date.now()}`;_._logger.log(C.Trace,`(LongPolling transport) polling: ${u}.`);const d=yield _._httpClient.get(u,s);204===d.statusCode?(_._logger.log(C.Information,"(LongPolling transport) Poll terminated by server."),_._running=!1):200!==d.statusCode?(_._logger.log(C.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),_._closeError=new oe(d.statusText||"",d.statusCode),_._running=!1):d.content?(_._logger.log(C.Trace,`(LongPolling transport) data received. ${pe(d.content,_._options.logMessageContent)}.`),_.onreceive&&_.onreceive(d.content)):_._logger.log(C.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(u){_._running?u instanceof R?_._logger.log(C.Trace,"(LongPolling transport) Poll timed out, reissuing."):(_._closeError=u,_._running=!1):_._logger.log(C.Trace,`(LongPolling transport) Poll errored after shutdown: ${u.message}`)}}}finally{_._logger.log(C.Trace,"(LongPolling transport) Polling complete."),_.pollAborted||_._raiseOnClose()}})()}send(n){var s=this;return(0,x.Z)(function*(){return s._running?m(s._logger,"LongPolling",s._httpClient,s._url,s._accessTokenFactory,n,s._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var n=this;return(0,x.Z)(function*(){n._logger.log(C.Trace,"(LongPolling transport) Stopping polling."),n._running=!1,n._pollAbort.abort();try{yield n._receiving,n._logger.log(C.Trace,`(LongPolling transport) sending DELETE request to ${n._url}.`);const s={},[_,c]=ge();s[_]=c;const u={headers:{...s,...n._options.headers},timeout:n._options.timeout,withCredentials:n._options.withCredentials},d=yield n._getAccessToken();n._updateHeaderToken(u,d),yield n._httpClient.delete(n._url,u),n._logger.log(C.Trace,"(LongPolling transport) DELETE request sent.")}finally{n._logger.log(C.Trace,"(LongPolling transport) Stop finished."),n._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let n="(LongPolling transport) Firing onclose event.";this._closeError&&(n+=" Error: "+this._closeError),this._logger.log(C.Trace,n),this.onclose(this._closeError)}}}class U{constructor(n,s,_,c){this._httpClient=n,this._accessTokenFactory=s,this._logger=_,this._options=c,this.onreceive=null,this.onclose=null}connect(n,s){var _=this;return(0,x.Z)(function*(){if(he.isRequired(n,"url"),he.isRequired(s,"transferFormat"),he.isIn(s,J,"transferFormat"),_._logger.log(C.Trace,"(SSE transport) Connecting."),_._url=n,_._accessTokenFactory){const c=yield _._accessTokenFactory();c&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(c)}`)}return new Promise((c,u)=>{let M,d=!1;if(s===J.Text){if(ne.isBrowser||ne.isWebWorker)M=new _._options.EventSource(n,{withCredentials:_._options.withCredentials});else{const y=_._httpClient.getCookieString(n),v={};v.Cookie=y;const[f,D]=ge();v[f]=D,M=new _._options.EventSource(n,{withCredentials:_._options.withCredentials,headers:{...v,..._._options.headers}})}try{M.onmessage=y=>{if(_.onreceive)try{_._logger.log(C.Trace,`(SSE transport) data received. ${pe(y.data,_._options.logMessageContent)}.`),_.onreceive(y.data)}catch(v){return void _._close(v)}},M.onerror=y=>{d?_._close():u(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},M.onopen=()=>{_._logger.log(C.Information,`SSE connected to ${_._url}`),_._eventSource=M,d=!0,c()}}catch(y){return void u(y)}}else u(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(n){var s=this;return(0,x.Z)(function*(){return s._eventSource?m(s._logger,"SSE",s._httpClient,s._url,s._accessTokenFactory,n,s._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(n){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(n))}}class ie{constructor(n,s,_,c,u,d){this._logger=_,this._accessTokenFactory=s,this._logMessageContent=c,this._webSocketConstructor=u,this._httpClient=n,this.onreceive=null,this.onclose=null,this._headers=d}connect(n,s){var _=this;return(0,x.Z)(function*(){if(he.isRequired(n,"url"),he.isRequired(s,"transferFormat"),he.isIn(s,J,"transferFormat"),_._logger.log(C.Trace,"(WebSockets transport) Connecting."),_._accessTokenFactory){const c=yield _._accessTokenFactory();c&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(c)}`)}return new Promise((c,u)=>{let d;n=n.replace(/^http/,"ws");const M=_._httpClient.getCookieString(n);let y=!1;if(ne.isNode){const v={},[f,D]=ge();v[f]=D,M&&(v[Q.Cookie]=`${M}`),d=new _._webSocketConstructor(n,void 0,{headers:{...v,..._._headers}})}d||(d=new _._webSocketConstructor(n)),s===J.Binary&&(d.binaryType="arraybuffer"),d.onopen=v=>{_._logger.log(C.Information,`WebSocket connected to ${n}.`),_._webSocket=d,y=!0,c()},d.onerror=v=>{let f=null;f=typeof ErrorEvent<"u"&&v instanceof ErrorEvent?v.error:"There was an error with the transport",_._logger.log(C.Information,`(WebSockets transport) ${f}.`)},d.onmessage=v=>{if(_._logger.log(C.Trace,`(WebSockets transport) data received. ${pe(v.data,_._logMessageContent)}.`),_.onreceive)try{_.onreceive(v.data)}catch(f){return void _._close(f)}},d.onclose=v=>{if(y)_._close(v);else{let f=null;f=typeof ErrorEvent<"u"&&v instanceof ErrorEvent?v.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",u(new Error(f))}}})})()}send(n){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(C.Trace,`(WebSockets transport) sending data. ${pe(n,this._logMessageContent)}.`),this._webSocket.send(n),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(n){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(C.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(n)||!1!==n.wasClean&&1e3===n.code?n instanceof Error?this.onclose(n):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${n.code} (${n.reason||"no reason given"}).`)))}_isCloseEvent(n){return n&&"boolean"==typeof n.wasClean&&"number"==typeof n.code}}class se{constructor(n,s={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,he.isRequired(n,"url"),this._logger=function g(T){return void 0===T?new ee(C.Information):null===T?$.instance:void 0!==T.log?T:new ee(T)}(s.logger),this.baseUrl=this._resolveUrl(n),(s=s||{}).logMessageContent=void 0!==s.logMessageContent&&s.logMessageContent,"boolean"!=typeof s.withCredentials&&void 0!==s.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");s.withCredentials=void 0===s.withCredentials||s.withCredentials,s.timeout=void 0===s.timeout?1e5:s.timeout;let _=null,c=null;if(ne.isNode){const u=require;_=u("ws"),c=u("eventsource")}!ne.isNode&&typeof WebSocket<"u"&&!s.WebSocket?s.WebSocket=WebSocket:ne.isNode&&!s.WebSocket&&_&&(s.WebSocket=_),!ne.isNode&&typeof EventSource<"u"&&!s.EventSource?s.EventSource=EventSource:ne.isNode&&!s.EventSource&&typeof c<"u"&&(s.EventSource=c),this._httpClient=s.httpClient||new G(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=s,this.onreceive=null,this.onclose=null}start(n){var s=this;return(0,x.Z)(function*(){if(he.isIn(n=n||J.Binary,J,"transferFormat"),s._logger.log(C.Debug,`Starting connection with transfer format '${J[n]}'.`),"Disconnected"!==s._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(s._connectionState="Connecting",s._startInternalPromise=s._startInternal(n),yield s._startInternalPromise,"Disconnecting"===s._connectionState){const _="Failed to start the HttpConnection before stop() was called.";return s._logger.log(C.Error,_),yield s._stopPromise,Promise.reject(new Error(_))}if("Connected"!==s._connectionState){const _="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return s._logger.log(C.Error,_),Promise.reject(new Error(_))}s._connectionStarted=!0})()}send(n){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 te(this.transport)),this._sendQueue.send(n))}stop(n){var s=this;return(0,x.Z)(function*(){return"Disconnected"===s._connectionState?(s._logger.log(C.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===s._connectionState?(s._logger.log(C.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),s._stopPromise):(s._connectionState="Disconnecting",s._stopPromise=new Promise(_=>{s._stopPromiseResolver=_}),yield s._stopInternal(n),void(yield s._stopPromise))})()}_stopInternal(n){var s=this;return(0,x.Z)(function*(){s._stopError=n;try{yield s._startInternalPromise}catch{}if(s.transport){try{yield s.transport.stop()}catch(_){s._logger.log(C.Error,`HttpConnection.transport.stop() threw error '${_}'.`),s._stopConnection()}s.transport=void 0}else s._logger.log(C.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(n){var s=this;return(0,x.Z)(function*(){let _=s.baseUrl;s._accessTokenFactory=s._options.accessTokenFactory;try{if(s._options.skipNegotiation){if(s._options.transport!==ue.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");s.transport=s._constructTransport(ue.WebSockets),yield s._startTransport(_,n)}else{let c=null,u=0;do{if(c=yield s._getNegotiationResponse(_),"Disconnecting"===s._connectionState||"Disconnected"===s._connectionState)throw new Error("The connection was stopped during negotiation.");if(c.error)throw new Error(c.error);if(c.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.");if(c.url&&(_=c.url),c.accessToken){const d=c.accessToken;s._accessTokenFactory=()=>d}u++}while(c.url&&u<100);if(100===u&&c.url)throw new Error("Negotiate redirection limit exceeded.");yield s._createTransport(_,s._options.transport,c,n)}s.transport instanceof I&&(s.features.inherentKeepAlive=!0),"Connecting"===s._connectionState&&(s._logger.log(C.Debug,"The HttpConnection connected successfully."),s._connectionState="Connected")}catch(c){return s._logger.log(C.Error,"Failed to start the connection: "+c),s._connectionState="Disconnected",s.transport=void 0,s._stopPromiseResolver(),Promise.reject(c)}})()}_getNegotiationResponse(n){var s=this;return(0,x.Z)(function*(){const _={};if(s._accessTokenFactory){const M=yield s._accessTokenFactory();M&&(_[Q.Authorization]=`Bearer ${M}`)}const[c,u]=ge();_[c]=u;const d=s._resolveNegotiateUrl(n);s._logger.log(C.Debug,`Sending negotiation request: ${d}.`);try{const M=yield s._httpClient.post(d,{content:"",headers:{..._,...s._options.headers},timeout:s._options.timeout,withCredentials:s._options.withCredentials});if(200!==M.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${M.statusCode}'`));const y=JSON.parse(M.content);return(!y.negotiateVersion||y.negotiateVersion<1)&&(y.connectionToken=y.connectionId),y}catch(M){let y="Failed to complete negotiation with the server: "+M;return M instanceof oe&&404===M.statusCode&&(y+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),s._logger.log(C.Error,y),Promise.reject(new re(y))}})()}_createConnectUrl(n,s){return s?n+(-1===n.indexOf("?")?"?":"&")+`id=${s}`:n}_createTransport(n,s,_,c){var u=this;return(0,x.Z)(function*(){let d=u._createConnectUrl(n,_.connectionToken);if(u._isITransport(s))return u._logger.log(C.Debug,"Connection was provided an instance of ITransport, using that directly."),u.transport=s,yield u._startTransport(d,c),void(u.connectionId=_.connectionId);const M=[],y=_.availableTransports||[];let v=_;for(const f of y){const D=u._resolveTransportOrError(f,s,c);if(D instanceof Error)M.push(`${f.transport} failed:`),M.push(D);else if(u._isITransport(D)){if(u.transport=D,!v){try{v=yield u._getNegotiationResponse(n)}catch(B){return Promise.reject(B)}d=u._createConnectUrl(n,v.connectionToken)}try{return yield u._startTransport(d,c),void(u.connectionId=v.connectionId)}catch(B){if(u._logger.log(C.Error,`Failed to start the transport '${f.transport}': ${B}`),v=void 0,M.push(new K(`${f.transport} failed: ${B}`,ue[f.transport])),"Connecting"!==u._connectionState){const le="Failed to select transport before stop() was called.";return u._logger.log(C.Debug,le),Promise.reject(new Error(le))}}}}return Promise.reject(M.length>0?new V(`Unable to connect to the server with any of the available transports. ${M.join(" ")}`,M):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(n){switch(n){case ue.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new ie(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ue.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new U(this._httpClient,this._accessTokenFactory,this._logger,this._options);case ue.LongPolling:return new I(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${n}.`)}}_startTransport(n,s){return this.transport.onreceive=this.onreceive,this.transport.onclose=_=>this._stopConnection(_),this.transport.connect(n,s)}_resolveTransportOrError(n,s,_){const c=ue[n.transport];if(null==c)return this._logger.log(C.Debug,`Skipping transport '${n.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${n.transport}' because it is not supported by this client.`);if(!function z(T,n){return!T||0!=(n&T)}(s,c))return this._logger.log(C.Debug,`Skipping transport '${ue[c]}' because it was disabled by the client.`),new b(`'${ue[c]}' is disabled by the client.`,c);if(!(n.transferFormats.map(d=>J[d]).indexOf(_)>=0))return this._logger.log(C.Debug,`Skipping transport '${ue[c]}' because it does not support the requested transfer format '${J[_]}'.`),new Error(`'${ue[c]}' does not support ${J[_]}.`);if(c===ue.WebSockets&&!this._options.WebSocket||c===ue.ServerSentEvents&&!this._options.EventSource)return this._logger.log(C.Debug,`Skipping transport '${ue[c]}' because it is not supported in your environment.'`),new ce(`'${ue[c]}' is not supported in your environment.`,c);this._logger.log(C.Debug,`Selecting transport '${ue[c]}'.`);try{return this._constructTransport(c)}catch(d){return d}}_isITransport(n){return n&&"object"==typeof n&&"connect"in n}_stopConnection(n){if(this._logger.log(C.Debug,`HttpConnection.stopConnection(${n}) called while in state ${this._connectionState}.`),this.transport=void 0,n=this._stopError||n,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(C.Warning,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${n}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),n?this._logger.log(C.Error,`Connection disconnected with error '${n}'.`):this._logger.log(C.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(s=>{this._logger.log(C.Error,`TransportSendQueue.stop() threw error '${s}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(n)}catch(s){this._logger.log(C.Error,`HttpConnection.onclose(${n}) threw error '${s}'.`)}}}else this._logger.log(C.Debug,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(n){if(0===n.lastIndexOf("https://",0)||0===n.lastIndexOf("http://",0))return n;if(!ne.isBrowser)throw new Error(`Cannot resolve '${n}'.`);const s=window.document.createElement("a");return s.href=n,this._logger.log(C.Information,`Normalizing '${n}' to '${s.href}'.`),s.href}_resolveNegotiateUrl(n){const s=n.indexOf("?");let _=n.substring(0,-1===s?n.length:s);return"/"!==_[_.length-1]&&(_+="/"),_+="negotiate",_+=-1===s?"":n.substring(s),-1===_.indexOf("negotiateVersion")&&(_+=-1===s?"?":"&",_+="negotiateVersion="+this._negotiateVersion),_}}class te{constructor(n){this._transport=n,this._buffer=[],this._executing=!0,this._sendBufferedData=new Ie,this._transportResult=new Ie,this._sendLoopPromise=this._sendLoop()}send(n){return this._bufferData(n),this._transportResult||(this._transportResult=new Ie),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(n){if(this._buffer.length&&typeof this._buffer[0]!=typeof n)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof n}`);this._buffer.push(n),this._sendBufferedData.resolve()}_sendLoop(){var n=this;return(0,x.Z)(function*(){for(;;){if(yield n._sendBufferedData.promise,!n._executing){n._transportResult&&n._transportResult.reject("Connection stopped.");break}n._sendBufferedData=new Ie;const s=n._transportResult;n._transportResult=void 0;const _="string"==typeof n._buffer[0]?n._buffer.join(""):te._concatBuffers(n._buffer);n._buffer.length=0;try{yield n._transport.send(_),s.resolve()}catch(c){s.reject(c)}}})()}static _concatBuffers(n){const s=n.map(u=>u.byteLength).reduce((u,d)=>u+d),_=new Uint8Array(s);let c=0;for(const u of n)_.set(new Uint8Array(u),c),c+=u.byteLength;return _.buffer}}class Ie{constructor(){this.promise=new Promise((n,s)=>[this._resolver,this._rejecter]=[n,s])}resolve(){this._resolver()}reject(n){this._rejecter(n)}}class Pe{static write(n){return`${n}${Pe.RecordSeparator}`}static parse(n){if(n[n.length-1]!==Pe.RecordSeparator)throw new Error("Message is incomplete.");const s=n.split(Pe.RecordSeparator);return s.pop(),s}}Pe.RecordSeparatorCode=30,Pe.RecordSeparator=String.fromCharCode(Pe.RecordSeparatorCode);class Fe{writeHandshakeRequest(n){return Pe.write(JSON.stringify(n))}parseHandshakeResponse(n){let s,_;if(Y(n)){const M=new Uint8Array(n),y=M.indexOf(Pe.RecordSeparatorCode);if(-1===y)throw new Error("Message is incomplete.");const v=y+1;s=String.fromCharCode.apply(null,Array.prototype.slice.call(M.slice(0,v))),_=M.byteLength>v?M.slice(v).buffer:null}else{const M=n,y=M.indexOf(Pe.RecordSeparator);if(-1===y)throw new Error("Message is incomplete.");const v=y+1;s=M.substring(0,v),_=M.length>v?M.substring(v):null}const c=Pe.parse(s),u=JSON.parse(c[0]);if(u.type)throw new Error("Expected a handshake response from the server.");return[_,u]}}var Re=(()=>{return(T=Re||(Re={}))[T.Invocation=1]="Invocation",T[T.StreamItem=2]="StreamItem",T[T.Completion=3]="Completion",T[T.StreamInvocation=4]="StreamInvocation",T[T.CancelInvocation=5]="CancelInvocation",T[T.Ping=6]="Ping",T[T.Close=7]="Close",Re;var T})();class Ue{constructor(){this.observers=[]}next(n){for(const s of this.observers)s.next(n)}error(n){for(const s of this.observers)s.error&&s.error(n)}complete(){for(const n of this.observers)n.complete&&n.complete()}subscribe(n){return this.observers.push(n),new S(this,n)}}var h=(()=>{return(T=h||(h={})).Disconnected="Disconnected",T.Connecting="Connecting",T.Connected="Connected",T.Disconnecting="Disconnecting",T.Reconnecting="Reconnecting",h;var T})();class i{constructor(n,s,_,c){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(C.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},he.isRequired(n,"connection"),he.isRequired(s,"logger"),he.isRequired(_,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=s,this._protocol=_,this.connection=n,this._reconnectPolicy=c,this._handshakeProtocol=new Fe,this.connection.onreceive=u=>this._processIncomingData(u),this.connection.onclose=u=>this._connectionClosed(u),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=h.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:Re.Ping})}static create(n,s,_,c){return new i(n,s,_,c)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(n){if(this._connectionState!==h.Disconnected&&this._connectionState!==h.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!n)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=n}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var n=this;return(0,x.Z)(function*(){if(n._connectionState!==h.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));n._connectionState=h.Connecting,n._logger.log(C.Debug,"Starting HubConnection.");try{yield n._startInternal(),ne.isBrowser&&window.document.addEventListener("freeze",n._freezeEventListener),n._connectionState=h.Connected,n._connectionStarted=!0,n._logger.log(C.Debug,"HubConnection connected successfully.")}catch(s){return n._connectionState=h.Disconnected,n._logger.log(C.Debug,`HubConnection failed to start successfully because of error '${s}'.`),Promise.reject(s)}})()}_startInternal(){var n=this;return(0,x.Z)(function*(){n._stopDuringStartError=void 0,n._receivedHandshakeResponse=!1;const s=new Promise((_,c)=>{n._handshakeResolver=_,n._handshakeRejecter=c});yield n.connection.start(n._protocol.transferFormat);try{const _={protocol:n._protocol.name,version:n._protocol.version};if(n._logger.log(C.Debug,"Sending handshake request."),yield n._sendMessage(n._handshakeProtocol.writeHandshakeRequest(_)),n._logger.log(C.Information,`Using HubProtocol '${n._protocol.name}'.`),n._cleanupTimeout(),n._resetTimeoutPeriod(),n._resetKeepAliveInterval(),yield s,n._stopDuringStartError)throw n._stopDuringStartError}catch(_){throw n._logger.log(C.Debug,`Hub handshake failed with error '${_}' during start(). Stopping HubConnection.`),n._cleanupTimeout(),n._cleanupPingTimer(),yield n.connection.stop(_),_}})()}stop(){var n=this;return(0,x.Z)(function*(){const s=n._startPromise;n._stopPromise=n._stopInternal(),yield n._stopPromise;try{yield s}catch{}})()}_stopInternal(n){return this._connectionState===h.Disconnected?(this._logger.log(C.Debug,`Call to HubConnection.stop(${n}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===h.Disconnecting?(this._logger.log(C.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=h.Disconnecting,this._logger.log(C.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(C.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=n||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(n)))}stream(n,...s){const[_,c]=this._replaceStreamingParams(s),u=this._createStreamInvocation(n,s,c);let d;const M=new Ue;return M.cancelCallback=()=>{const y=this._createCancelInvocation(u.invocationId);return delete this._callbacks[u.invocationId],d.then(()=>this._sendWithProtocol(y))},this._callbacks[u.invocationId]=(y,v)=>{v?M.error(v):y&&(y.type===Re.Completion?y.error?M.error(new Error(y.error)):M.complete():M.next(y.item))},d=this._sendWithProtocol(u).catch(y=>{M.error(y),delete this._callbacks[u.invocationId]}),this._launchStreams(_,d),M}_sendMessage(n){return this._resetKeepAliveInterval(),this.connection.send(n)}_sendWithProtocol(n){return this._sendMessage(this._protocol.writeMessage(n))}send(n,...s){const[_,c]=this._replaceStreamingParams(s),u=this._sendWithProtocol(this._createInvocation(n,s,!0,c));return this._launchStreams(_,u),u}invoke(n,...s){const[_,c]=this._replaceStreamingParams(s),u=this._createInvocation(n,s,!1,c);return new Promise((M,y)=>{this._callbacks[u.invocationId]=(f,D)=>{D?y(D):f&&(f.type===Re.Completion?f.error?y(new Error(f.error)):M(f.result):y(new Error(`Unexpected message type: ${f.type}`)))};const v=this._sendWithProtocol(u).catch(f=>{y(f),delete this._callbacks[u.invocationId]});this._launchStreams(_,v)})}on(n,s){!n||!s||(n=n.toLowerCase(),this._methods[n]||(this._methods[n]=[]),-1===this._methods[n].indexOf(s)&&this._methods[n].push(s))}off(n,s){if(!n)return;n=n.toLowerCase();const _=this._methods[n];if(_)if(s){const c=_.indexOf(s);-1!==c&&(_.splice(c,1),0===_.length&&delete this._methods[n])}else delete this._methods[n]}onclose(n){n&&this._closedCallbacks.push(n)}onreconnecting(n){n&&this._reconnectingCallbacks.push(n)}onreconnected(n){n&&this._reconnectedCallbacks.push(n)}_processIncomingData(n){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(n=this._processHandshakeResponse(n),this._receivedHandshakeResponse=!0),n){const s=this._protocol.parseMessages(n,this._logger);for(const _ of s)switch(_.type){case Re.Invocation:this._invokeClientMethod(_);break;case Re.StreamItem:case Re.Completion:{const c=this._callbacks[_.invocationId];if(c){_.type===Re.Completion&&delete this._callbacks[_.invocationId];try{c(_)}catch(u){this._logger.log(C.Error,`Stream callback threw error: ${ve(u)}`)}}break}case Re.Ping:break;case Re.Close:{this._logger.log(C.Information,"Close message received from server.");const c=_.error?new Error("Server returned an error on close: "+_.error):void 0;!0===_.allowReconnect?this.connection.stop(c):this._stopPromise=this._stopInternal(c);break}default:this._logger.log(C.Warning,`Invalid message type: ${_.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(n){let s,_;try{[_,s]=this._handshakeProtocol.parseHandshakeResponse(n)}catch(c){const u="Error parsing handshake response: "+c;this._logger.log(C.Error,u);const d=new Error(u);throw this._handshakeRejecter(d),d}if(s.error){const c="Server returned handshake error: "+s.error;this._logger.log(C.Error,c);const u=new Error(c);throw this._handshakeRejecter(u),u}return this._logger.log(C.Debug,"Server handshake complete."),this._handshakeResolver(),_}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var n=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let s=this._nextKeepAlive-(new Date).getTime();s<0&&(s=0),this._pingServerHandle=setTimeout((0,x.Z)(function*(){if(n._connectionState===h.Connected)try{yield n._sendMessage(n._cachedPingMessage)}catch{n._cleanupPingTimer()}}),s)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(n){const s=this._methods[n.target.toLowerCase()];if(s){try{s.forEach(_=>_.apply(this,n.arguments))}catch(_){this._logger.log(C.Error,`A callback for the method ${n.target.toLowerCase()} threw error '${_}'.`)}if(n.invocationId){const _="Server requested a response, which is not supported in this version of the client.";this._logger.log(C.Error,_),this._stopPromise=this._stopInternal(new Error(_))}}else this._logger.log(C.Warning,`No client method with the name '${n.target}' found.`)}_connectionClosed(n){this._logger.log(C.Debug,`HubConnection.connectionClosed(${n}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||n||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(n||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===h.Disconnecting?this._completeClose(n):this._connectionState===h.Connected&&this._reconnectPolicy?this._reconnect(n):this._connectionState===h.Connected&&this._completeClose(n)}_completeClose(n){if(this._connectionStarted){this._connectionState=h.Disconnected,this._connectionStarted=!1,ne.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(s=>s.apply(this,[n]))}catch(s){this._logger.log(C.Error,`An onclose callback called with error '${n}' threw error '${s}'.`)}}}_reconnect(n){var s=this;return(0,x.Z)(function*(){const _=Date.now();let c=0,u=void 0!==n?n:new Error("Attempting to reconnect due to a unknown error."),d=s._getNextRetryDelay(c++,0,u);if(null===d)return s._logger.log(C.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void s._completeClose(n);if(s._connectionState=h.Reconnecting,s._logger.log(C.Information,n?`Connection reconnecting because of error '${n}'.`:"Connection reconnecting."),0!==s._reconnectingCallbacks.length){try{s._reconnectingCallbacks.forEach(M=>M.apply(s,[n]))}catch(M){s._logger.log(C.Error,`An onreconnecting callback called with error '${n}' threw error '${M}'.`)}if(s._connectionState!==h.Reconnecting)return void s._logger.log(C.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==d;){if(s._logger.log(C.Information,`Reconnect attempt number ${c} will start in ${d} ms.`),yield new Promise(M=>{s._reconnectDelayHandle=setTimeout(M,d)}),s._reconnectDelayHandle=void 0,s._connectionState!==h.Reconnecting)return void s._logger.log(C.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield s._startInternal(),s._connectionState=h.Connected,s._logger.log(C.Information,"HubConnection reconnected successfully."),0!==s._reconnectedCallbacks.length)try{s._reconnectedCallbacks.forEach(M=>M.apply(s,[s.connection.connectionId]))}catch(M){s._logger.log(C.Error,`An onreconnected callback called with connectionId '${s.connection.connectionId}; threw error '${M}'.`)}return}catch(M){if(s._logger.log(C.Information,`Reconnect attempt failed because of error '${M}'.`),s._connectionState!==h.Reconnecting)return s._logger.log(C.Debug,`Connection moved to the '${s._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(s._connectionState===h.Disconnecting&&s._completeClose());u=M instanceof Error?M:new Error(M.toString()),d=s._getNextRetryDelay(c++,Date.now()-_,u)}}s._logger.log(C.Information,`Reconnect retries have been exhausted after ${Date.now()-_} ms and ${c} failed attempts. Connection disconnecting.`),s._completeClose()})()}_getNextRetryDelay(n,s,_){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:s,previousRetryCount:n,retryReason:_})}catch(c){return this._logger.log(C.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${n}, ${s}) threw error '${c}'.`),null}}_cancelCallbacksWithError(n){const s=this._callbacks;this._callbacks={},Object.keys(s).forEach(_=>{const c=s[_];try{c(null,n)}catch(u){this._logger.log(C.Error,`Stream 'error' callback called with '${n}' threw error: ${ve(u)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(n,s,_,c){if(_)return 0!==c.length?{arguments:s,streamIds:c,target:n,type:Re.Invocation}:{arguments:s,target:n,type:Re.Invocation};{const u=this._invocationId;return this._invocationId++,0!==c.length?{arguments:s,invocationId:u.toString(),streamIds:c,target:n,type:Re.Invocation}:{arguments:s,invocationId:u.toString(),target:n,type:Re.Invocation}}}_launchStreams(n,s){if(0!==n.length){s||(s=Promise.resolve());for(const _ in n)n[_].subscribe({complete:()=>{s=s.then(()=>this._sendWithProtocol(this._createCompletionMessage(_)))},error:c=>{let u;u=c instanceof Error?c.message:c&&c.toString?c.toString():"Unknown error",s=s.then(()=>this._sendWithProtocol(this._createCompletionMessage(_,u)))},next:c=>{s=s.then(()=>this._sendWithProtocol(this._createStreamItemMessage(_,c)))}})}}_replaceStreamingParams(n){const s=[],_=[];for(let c=0;c<n.length;c++){const u=n[c];if(this._isObservable(u)){const d=this._invocationId;this._invocationId++,s[d]=u,_.push(d.toString()),n.splice(c,1)}}return[s,_]}_isObservable(n){return n&&n.subscribe&&"function"==typeof n.subscribe}_createStreamInvocation(n,s,_){const c=this._invocationId;return this._invocationId++,0!==_.length?{arguments:s,invocationId:c.toString(),streamIds:_,target:n,type:Re.StreamInvocation}:{arguments:s,invocationId:c.toString(),target:n,type:Re.StreamInvocation}}_createCancelInvocation(n){return{invocationId:n,type:Re.CancelInvocation}}_createStreamItemMessage(n,s){return{invocationId:n,item:s,type:Re.StreamItem}}_createCompletionMessage(n,s,_){return s?{error:s,invocationId:n,type:Re.Completion}:{invocationId:n,result:_,type:Re.Completion}}}class a{constructor(){this.name="json",this.version=1,this.transferFormat=J.Text}parseMessages(n,s){if("string"!=typeof n)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!n)return[];null===s&&(s=$.instance);const _=Pe.parse(n),c=[];for(const u of _){const d=JSON.parse(u);if("number"!=typeof d.type)throw new Error("Invalid payload.");switch(d.type){case Re.Invocation:this._isInvocationMessage(d);break;case Re.StreamItem:this._isStreamItemMessage(d);break;case Re.Completion:this._isCompletionMessage(d);break;case Re.Ping:case Re.Close:break;default:s.log(C.Information,"Unknown message type '"+d.type+"' ignored.");continue}c.push(d)}return c}writeMessage(n){return Pe.write(JSON.stringify(n))}_isInvocationMessage(n){this._assertNotEmptyString(n.target,"Invalid payload for Invocation message."),void 0!==n.invocationId&&this._assertNotEmptyString(n.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(n){if(this._assertNotEmptyString(n.invocationId,"Invalid payload for StreamItem message."),void 0===n.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(n){if(n.result&&n.error)throw new Error("Invalid payload for Completion message.");!n.result&&n.error&&this._assertNotEmptyString(n.error,"Invalid payload for Completion message."),this._assertNotEmptyString(n.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(n,s){if("string"!=typeof n||""===n)throw new Error(s)}}const p={trace:C.Trace,debug:C.Debug,info:C.Information,information:C.Information,warn:C.Warning,warning:C.Warning,error:C.Error,critical:C.Critical,none:C.None};class A{configureLogging(n){if(he.isRequired(n,"logging"),function Z(T){return void 0!==T.log}(n))this.logger=n;else if("string"==typeof n){const s=function w(T){const n=p[T.toLowerCase()];if(typeof n<"u")return n;throw new Error(`Unknown log level: ${T}`)}(n);this.logger=new ee(s)}else this.logger=new ee(n);return this}withUrl(n,s){return he.isRequired(n,"url"),he.isNotEmpty(n,"url"),this.url=n,this.httpConnectionOptions="object"==typeof s?{...this.httpConnectionOptions,...s}:{...this.httpConnectionOptions,transport:s},this}withHubProtocol(n){return he.isRequired(n,"protocol"),this.protocol=n,this}withAutomaticReconnect(n){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=n?Array.isArray(n)?new t(n):n:new t,this}build(){const n=this.httpConnectionOptions||{};if(void 0===n.logger&&(n.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const s=new se(this.url,n);return i.create(s,this.logger||$.instance,this.protocol||new a,this.reconnectPolicy)}}var fe=r(4650),Ce=r(8002),Ae=r(7185);let ke=(()=>{class T{constructor(s,_){this.decodeTokenService=s,this.toastr=_,this.initNotifications(),this.parseToken=this.decodeTokenService.getParseToken(),this.buildConnection()}initNotifications(){let s=JSON.parse(localStorage.getItem("Notifications"));this._notifications=new o.X(s||[])}setNotification(s){const c=[...this._notifications.value,s];this.saveNotificationTotal(c),this._notifications.next(c)}saveNotificationTotal(s=[]){localStorage.setItem("Notifications",JSON.stringify(s))}getNotification(){return this._notifications.asObservable()}buildConnection(){this.hubConnection=(new A).withUrl("/MarketplaceHub").withAutomaticReconnect().configureLogging(C.Information).build(),this.startConnection(),this.onConnectionClose(),this.subscribeNotification()}connectToRegister(){this.hubConnection.invoke("SubscribeGroup",this.parseToken.POSAccountID)}startConnection(){this.hubConnection.start().then(()=>{this.connectToRegister()}).catch(s=>console.log("Error while starting connection: "+s))}onConnectionClose(){this.hubConnection.onclose(()=>{this.buildConnection()})}subscribeNotification(){this.hubConnection.on("Notification",s=>{let _=JSON.parse(s);this.setNotification(_),_.ID==this.parseToken.POSAccountID&&(200!=_.StatusCode?this.toastr.error(_.Message,_.Title,{enableHtml:!0}):this.toastr.success(_.Message,_.Title,{enableHtml:!0}))})}clearNotification(){localStorage.removeItem("Notifications"),this._notifications.next([])}}return T.\u0275fac=function(s){return new(s||T)(fe.LFG(Ce.e),fe.LFG(Ae._W))},T.\u0275prov=fe.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})()},1589:(Le,Me,r)=>{r.d(Me,{g:()=>t});var o=r(1135),l=r(4650);let t=(()=>{class x{constructor(){this._toggleState=new o.X(!1),this.toggleState$=this._toggleState.asObservable()}toggleSidebar(){this._toggleState.next(!this._toggleState.value)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=l.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},494:(Le,Me,r)=>{r.d(Me,{n:()=>o});var o=(()=>{return(l=o||(o={})).Success="Success",l.Info="Info",l.Warning="Warning",l.Error="Error",o;var l})()},6779:(Le,Me,r)=>{r.d(Me,{O:()=>l});var o=r(494);class l{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=o.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}}},6401:(Le,Me,r)=>{r.d(Me,{M:()=>ye,d:()=>he});var o=r(4650),l=r(6895),t=r(6779),x=r(494);function oe(ne,pe){if(1&ne){const W=o.EpF();o.TgZ(0,"div",9),o.NdJ("click",function(){o.CHM(W);const m=o.oxw();return o.KtG(m.onBack.emit())}),o.TgZ(1,"a",10),o._UZ(2,"i",11),o.qZA()()}}function R(ne,pe){if(1&ne){const W=o.EpF();o.TgZ(0,"div",12)(1,"a",13),o.NdJ("click",function(){o.CHM(W);const m=o.oxw();return o.KtG(m.onCancel.emit())}),o._UZ(2,"i",14),o.qZA()()}}function me(ne,pe){1&ne&&o.Hsn(0,2,["*ngIf","more"])}function ce(ne,pe){if(1&ne){const W=o.EpF();o.TgZ(0,"a",19),o.NdJ("click",function(){o.CHM(W);const m=o.oxw(2);return o.KtG(m.more=!m.more)}),o._uU(1,"More"),o.qZA()}}function b(ne,pe){if(1&ne){const W=o.EpF();o.TgZ(0,"a",20),o.NdJ("click",function(){o.CHM(W);const m=o.oxw(2);return o.KtG(m.onCancel.emit())}),o._uU(1),o.qZA()}if(2&ne){const W=o.oxw(2);o.xp6(1),o.hij(" ",W.config.cancelText?W.config.cancelText:"CANCEL","")}}function K(ne,pe){if(1&ne){const W=o.EpF();o.TgZ(0,"button",21),o.NdJ("click",function(){o.CHM(W);const m=o.oxw(2);return o.KtG(m.onOk.emit())})("keyup.F2",function(){o.CHM(W);const m=o.oxw(2);return o.KtG(m.onOk.emit())}),o.qZA()}if(2&ne){const W=o.oxw(2);o.Q6J("disabled",!W.config.validated||!W.dynamicValidated)("innerHTML",W.config.okText?W.config.okText:"OK",o.oJD)}}function re(ne,pe){if(1&ne&&(o.TgZ(0,"mat-dialog-actions",15),o.YNc(1,ce,2,0,"a",16),o.Hsn(2,3),o.YNc(3,b,2,1,"a",17),o.YNc(4,K,1,2,"button",18),o.qZA()),2&ne){const W=o.oxw();o.xp6(1),o.Q6J("ngIf",W.config.showMoreButton),o.xp6(2),o.Q6J("ngIf",!W.config.hideCancel),o.xp6(1),o.Q6J("ngIf",!W.config.hideOk)}}const V=[[["","header",""]],[["","content",""]],[["","more-content",""]],[["","footer",""]]],F=function(ne,pe){return{bodyScrollable:ne,hideScrollbar:pe}},N=function(ne){return{"mx-auto":ne}},C=function(ne,pe){return{"show-footer":ne,"p-0":pe}},$=["[header]","[content]","[more-content]","[footer]"];let ye=(()=>{class ne{constructor(){this.dynamicValidated=!0,this.onOk=new o.vpe,this.onCancel=new o.vpe,this.onClose=new o.vpe,this.onBack=new o.vpe,this.term="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new t.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(W){this.config.disableKeyup||("F2"==W.code&&this.onOk.emit("F2"),("Enter"==W.code||"NumpadEnter"==W.code)&&this.onOk.emit("Enter"))}}return ne.\u0275fac=function(W){return new(W||ne)},ne.\u0275cmp=o.Xpm({type:ne,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:$,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(W,Y){1&W&&(o.F$t(V),o.TgZ(0,"div",0),o.NdJ("keyup",function(E){return Y.onKeyup(E)}),o.TgZ(1,"div",1),o.YNc(2,oe,3,0,"div",2),o.TgZ(3,"div",3)(4,"h4",4),o._uU(5),o.qZA(),o.Hsn(6),o.qZA(),o.YNc(7,R,3,0,"div",5),o.qZA(),o.TgZ(8,"mat-dialog-content",6),o.Hsn(9,1),o.YNc(10,me,1,0,"ng-content",7),o.qZA(),o.YNc(11,re,5,3,"mat-dialog-actions",8),o.qZA()),2&W&&(o.Udp("width",Y.config.customWidth),o.Q6J("ngClass",o.WLB(13,F,Y.config.bodyScrollable,Y.config.hideScrollbar)),o.xp6(1),o.Gre("d-flex w-100 justify-content-between modal-header position-relative ",Y.background,""),o.xp6(1),o.Q6J("ngIf",Y.config.eMoney),o.xp6(1),o.Q6J("ngClass",o.VKq(16,N,Y.config.eMoney)),o.xp6(2),o.Oqu(Y.config.title),o.xp6(2),o.Q6J("ngIf",!Y.config.hideClose),o.xp6(1),o.Q6J("ngClass",o.WLB(18,C,!Y.config.hideFooter,Y.config.noPadding)),o.xp6(2),o.Q6J("ngIf",Y.more),o.xp6(1),o.Q6J("ngIf",!Y.config.hideFooter))},dependencies:[l.mk,l.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})(),he=(()=>{class ne{}return ne.\u0275fac=function(W){return new(W||ne)},ne.\u0275mod=o.oAB({type:ne}),ne.\u0275inj=o.cJS({imports:[l.ez]}),ne})()},5960:(Le,Me,r)=>{r.d(Me,{h:()=>De,n:()=>Be});var o=r(6895),l=r(4650),t=r(4006),x=r(9549),oe=r(4385),R=r(2722),me=r(8372),ce=r(8505),b=r(7579),K=r(4968);let V=(()=>{class X{constructor(k,q){this.matSelect=k,this.ngZone=q,this.threshold="15%",this.debounceTime=150,this.infiniteScroll=new l.vpe,this.thrPx=0,this.thrPc=0,this.singleOptionHeight=3,this.destroyed$=new b.x}ngOnInit(){this.evaluateThreshold()}ngAfterViewInit(){this.matSelect.openedChange.pipe((0,R.R)(this.destroyed$)).subscribe(k=>{k&&(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,K.R)(this.panel,"scroll").pipe((0,R.R)(this.destroyed$),(0,me.b)(this.debounceTime),(0,ce.b)(k=>{this.handleScrollEvent(k)})).subscribe()}handleScrollEvent(k){this.ngZone.runOutsideAngular(()=>{if(this.complete)return;const Te=this.singleOptionHeight*this.matSelect.options.length;this.panel.clientHeight+k.target.scrollTop+(0!==this.thrPc?Te*this.thrPc:this.thrPx)>=Te&&this.ngZone.run(()=>this.infiniteScroll.emit())})}getSelectItemHeightPx(){return 3*parseFloat(getComputedStyle(this.panel).fontSize)}}return X.\u0275fac=function(k){return new(k||X)(l.Y36(oe.gD),l.Y36(l.R0b))},X.\u0275dir=l.lG2({type:X,selectors:[["","msInfiniteScroll",""]],inputs:{threshold:"threshold",debounceTime:"debounceTime",complete:"complete"},outputs:{infiniteScroll:"infiniteScroll"}}),X})(),F=(()=>{class X{}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=l.oAB({type:X}),X.\u0275inj=l.cJS({imports:[oe.LD]}),X})();var N=r(9521),C=r(3238),$=r(1135),ye=r(9646),he=r(9841),ne=r(3900),pe=r(4004),W=r(8675),Y=r(4986),m=r(7272),E=r(5698),g=r(4482),S=r(5403),ee=r(5032),be=r(9718),xe=r(5577);function Ee(X,de){return de?k=>(0,m.z)(de.pipe((0,E.q)(1),function ge(){return(0,g.e)((X,de)=>{X.subscribe((0,S.x)(de,ee.Z))})}()),k.pipe(Ee(X))):(0,xe.z)((k,q)=>X(k,q).pipe((0,E.q)(1),(0,be.h)(k)))}var _e=r(2805),H=r(9300),j=r(7376),ae=r(2687),P=r(6709),G=r(1281),Q=r(3353),ue=r(727);function J(X,de){if(1&X&&(l.O4$(),l._UZ(0,"circle",4)),2&X){const k=l.oxw(),q=l.MAs(1);l.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+k._spinnerAnimationLabel)("stroke-dashoffset",k._getStrokeDashOffset(),"px")("stroke-dasharray",k._getStrokeCircumference(),"px")("stroke-width",k._getCircleStrokeWidth(),"%")("transform-origin",k._getCircleTransformOrigin(q)),l.uIk("r",k._getCircleRadius())}}function Se(X,de){if(1&X&&(l.O4$(),l._UZ(0,"circle",4)),2&X){const k=l.oxw(),q=l.MAs(1);l.Udp("stroke-dashoffset",k._getStrokeDashOffset(),"px")("stroke-dasharray",k._getStrokeCircumference(),"px")("stroke-width",k._getCircleStrokeWidth(),"%")("transform-origin",k._getCircleTransformOrigin(q)),l.uIk("r",k._getCircleRadius())}}const ie=(0,C.pj)(class{constructor(X){this._elementRef=X}},"primary"),L=new l.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function se(){return{diameter:100}}});class te extends ie{constructor(de,k,q,Te,Oe,Ne,Ve,ze){super(de),this._document=q,this._diameter=100,this._value=0,this._resizeSubscription=ue.w0.EMPTY,this.mode="determinate";const He=te._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),He.has(q.head)||He.set(q.head,new Set([100])),this._noopAnimations="NoopAnimations"===Te&&!!Oe&&!Oe._forceAnimations,"mat-spinner"===de.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Oe&&(Oe.color&&(this.color=this.defaultColor=Oe.color),Oe.diameter&&(this.diameter=Oe.diameter),Oe.strokeWidth&&(this.strokeWidth=Oe.strokeWidth)),k.isBrowser&&k.SAFARI&&Ve&&Ne&&ze&&(this._resizeSubscription=Ve.change(150).subscribe(()=>{"indeterminate"===this.mode&&ze.run(()=>Ne.markForCheck())}))}get diameter(){return this._diameter}set diameter(de){this._diameter=(0,G.su)(de),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(de){this._strokeWidth=(0,G.su)(de)}get value(){return"determinate"===this.mode?this._value:0}set value(de){this._value=Math.max(0,Math.min(100,(0,G.su)(de)))}ngOnInit(){const de=this._elementRef.nativeElement;this._styleRoot=(0,Q.kV)(de)||this._document.head,this._attachStyleNode(),de.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const de=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${de} ${de}`}_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(de){const k=50*(de.currentScale??1);return`${k}% ${k}%`}_attachStyleNode(){const de=this._styleRoot,k=this._diameter,q=te._diameters;let Te=q.get(de);if(!Te||!Te.has(k)){const Oe=this._document.createElement("style");Oe.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Oe.textContent=this._getAnimationText(),de.appendChild(Oe),Te||(Te=new Set,q.set(de,Te)),Te.add(k)}}_getAnimationText(){const de=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*de).replace(/END_VALUE/g,""+.2*de).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}te._diameters=new WeakMap,te.\u0275fac=function(de){return new(de||te)(l.Y36(l.SBq),l.Y36(Q.t4),l.Y36(o.K0,8),l.Y36(l.QbO,8),l.Y36(L),l.Y36(l.sBO),l.Y36(j.rL),l.Y36(l.R0b))},te.\u0275cmp=l.Xpm({type:te,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(de,k){2&de&&(l.uIk("aria-valuemin","determinate"===k.mode?0:null)("aria-valuemax","determinate"===k.mode?100:null)("aria-valuenow","determinate"===k.mode?k.value:null)("mode",k.mode),l.Udp("width",k.diameter,"px")("height",k.diameter,"px"),l.ekj("_mat-animation-noopable",k._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[l.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(de,k){1&de&&(l.O4$(),l.TgZ(0,"svg",0,1),l.YNc(2,J,1,11,"circle",2),l.YNc(3,Se,1,9,"circle",3),l.qZA()),2&de&&(l.Udp("width",k.diameter,"px")("height",k.diameter,"px"),l.Q6J("ngSwitch","indeterminate"===k.mode),l.uIk("viewBox",k._getViewBox()),l.xp6(2),l.Q6J("ngSwitchCase",!0),l.xp6(1),l.Q6J("ngSwitchCase",!1))},dependencies:[o.RF,o.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 Ie=(()=>{class X{}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=l.oAB({type:X}),X.\u0275inj=l.cJS({imports:[C.BQ,o.ez,C.BQ]}),X})();var Fe=r(9101),Re=r(7392),Ue=r(266);const we=["searchSelectInput"],O=["innerSelectSearch"];function h(X,de){if(1&X){const k=l.EpF();l.TgZ(0,"mat-checkbox",9),l.NdJ("change",function(Te){l.CHM(k);const Oe=l.oxw();return l.KtG(Oe._emitSelectAllBooleanToParent(Te.checked))}),l.qZA()}if(2&X){const k=l.oxw();l.Q6J("color",null==k.matFormField?null:k.matFormField.color)("checked",k.toggleAllCheckboxChecked)("indeterminate",k.toggleAllCheckboxIndeterminate)("matTooltip",k.toggleAllCheckboxTooltipMessage)("matTooltipPosition",k.toogleAllCheckboxTooltipPosition)}}function i(X,de){1&X&&l._UZ(0,"mat-spinner",10)}function e(X,de){1&X&&l.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function a(X,de){if(1&X&&(l.TgZ(0,"mat-icon",14),l._uU(1),l.qZA()),2&X){const k=l.oxw(2);l.Q6J("svgIcon",k.closeSvgIcon),l.xp6(1),l.hij(" ",k.closeSvgIcon?null:k.closeIcon," ")}}function p(X,de){if(1&X){const k=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){l.CHM(k);const Te=l.oxw();return l.KtG(Te._reset(!0))}),l.YNc(1,e,1,0,"ng-content",12),l.YNc(2,a,2,2,"ng-template",null,13,l.W1O),l.qZA()}if(2&X){const k=l.MAs(3),q=l.oxw();l.xp6(1),l.Q6J("ngIf",q.clearIcon)("ngIfElse",k)}}function w(X,de){1&X&&l.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function A(X,de){if(1&X&&l._uU(0),2&X){const k=l.oxw(2);l.Oqu(k.noEntriesFoundLabel)}}function Z(X,de){if(1&X&&(l.TgZ(0,"div",15),l.YNc(1,w,1,0,"ng-content",12),l.YNc(2,A,1,1,"ng-template",null,16,l.W1O),l.qZA()),2&X){const k=l.MAs(3),q=l.oxw();l.xp6(1),l.Q6J("ngIf",q.noEntriesFound)("ngIfElse",k)}}const fe=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Ce=function(X,de){return{"mat-select-search-inner-multiple":X,"mat-select-search-inner-toggle-all":de}},Ae=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ke=(()=>{class X{}return X.\u0275fac=function(k){return new(k||X)},X.\u0275dir=l.lG2({type:X,selectors:[["","ngxMatSelectSearchClear",""]]}),X})();const T=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],n=new l.OlP("mat-selectsearch-default-options");let c=(()=>{class X{}return X.\u0275fac=function(k){return new(k||X)},X.\u0275dir=l.lG2({type:X,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),X})(),d=(()=>{class X{constructor(k,q,Te,Oe=null,Ne,Ve=null,ze){this.matSelect=k,this.changeDetectorRef=q,this._viewportRuler=Te,this.matOption=Oe,this.liveAnnouncer=Ne,this.matFormField=Ve,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 l.vpe,this.onTouched=He=>{},this._options$=new $.X(null),this.optionsList$=this._options$.pipe((0,ne.w)(He=>He?He.changes.pipe((0,pe.U)(We=>We.toArray()),(0,W.O)(He.toArray())):(0,ye.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,pe.U)(He=>He?He.length:0)),this._formControl=new t.NI(""),this._showNoEntriesFound$=(0,he.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,pe.U)(([He,We])=>this.noEntriesFoundLabel&&He&&We===this.getOptionsLengthOffset())),this._onDestroy=new b.x,this.applyDefaultOptions(ze)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(k){this._options$.next(k)}get _options(){return this._options$.getValue()}applyDefaultOptions(k){if(k)for(const q of T)k.hasOwnProperty(q)&&(this[q]=k[q])}ngOnInit(){const k="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(k):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,k]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[k]=!0):this.matSelect.panelClass=k,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 ve(X,de=Y.z){const k=(0,_e.H)(X,de);return Ee(()=>k)}(1),(0,R.R)(this._onDestroy)).subscribe(q=>{q?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,E.q)(1)).pipe((0,R.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,R.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let q=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,R.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Te=this._options.toArray(),Oe=Te[this.getOptionsLengthOffset()],Ne=this.matSelect._keyManager;Ne&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(q,Oe)||!Ne.activeItem||!Te.find(ze=>this.matSelect.compareWith(ze,Ne.activeItem)))&&Ne.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),q=Oe})})}),this._showNoEntriesFound$.pipe((0,R.R)(this._onDestroy)).subscribe(q=>{this.matOption&&(q?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,R.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,R.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(k){this.toggleAll.emit(k)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(k){(k.key&&1===k.key.length||k.keyCode>=N.A&&k.keyCode<=N.Z||k.keyCode>=N.xE&&k.keyCode<=N.aO||k.keyCode===N.L_||this.preventHomeEndKeyPropagation&&(k.keyCode===N.Sd||k.keyCode===N.uR))&&k.stopPropagation(),this.matSelect.multiple&&k.key&&k.keyCode===N.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&k.keyCode===N.hY&&this.value&&(this._reset(!0),k.stopPropagation())}_handleKeyup(k){if(k.keyCode===N.LH||k.keyCode===N.JH){const q=this.matSelect._getAriaActiveDescendant(),Te=this._options.toArray().findIndex(Oe=>Oe.id===q);if(-1!==Te){const Oe=this._options.toArray()[Te];this.liveAnnouncer.announce(Oe.viewValue+" "+this.getAriaIndex(Te)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(k){return 0===this.getOptionsLengthOffset()?k+1:k}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(k){this._lastExternalInputValue=k,this._formControl.setValue(k),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(k){this._formControl.valueChanges.pipe((0,H.h)(q=>q!==this._lastExternalInputValue),(0,ce.b)(()=>this._lastExternalInputValue=void 0),(0,R.R)(this._onDestroy)).subscribe(k)}registerOnTouched(k){this.onTouched=k}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const k=this.matSelect.panel.nativeElement,q=k.scrollTop;this.searchSelectInput.nativeElement.focus(),k.scrollTop=q}_reset(k){this._formControl.setValue(""),k&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,R.R)(this._onDestroy)).subscribe(k=>{let q=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!k||!Array.isArray(k))&&(k=[]);const Te=this.matSelect.options.map(Oe=>Oe.value);this.previousSelectedValues.forEach(Oe=>{!k.some(Ne=>this.matSelect.compareWith(Ne,Oe))&&!Te.some(Ne=>this.matSelect.compareWith(Ne,Oe))&&(k.push(Oe),q=!0)})}this.previousSelectedValues=k,q&&this.matSelect._onChange(k)})):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 k=this.getMatOptionHeight(),q=this.matSelect._keyManager.activeItemIndex||0,Te=(0,C.CB)(q,this.matSelect.options,this.matSelect.optionGroups),Oe=(this.matOption?-1:0)+Te+q,Ne=this.matSelect.panel.nativeElement.scrollTop,Ve=this.innerSelectSearch.nativeElement.offsetHeight,ze=Math.floor((256-Ve)/k),He=Math.round((Ne+Ve)/k)-1;He>=Oe?this.matSelect.panel.nativeElement.scrollTop=Oe*k:He+ze<=Oe&&(this.matSelect.panel.nativeElement.scrollTop=(Oe+1)*k-(256-Ve))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let q,k=this.innerSelectSearch.nativeElement;for(;k=k.parentElement;)if(k.classList.contains("mat-select-panel")){q=k;break}q&&(this.innerSelectSearch.nativeElement.style.width=q.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return X.\u0275fac=function(k){return new(k||X)(l.Y36(oe.gD),l.Y36(l.sBO),l.Y36(j.rL),l.Y36(C.ey,8),l.Y36(ae.Kd),l.Y36(x.KE,8),l.Y36(n,8))},X.\u0275cmp=l.Xpm({type:X,selectors:[["ngx-mat-select-search"]],contentQueries:function(k,q,Te){if(1&k&&(l.Suo(Te,ke,5),l.Suo(Te,c,5)),2&k){let Oe;l.iGM(Oe=l.CRH())&&(q.clearIcon=Oe.first),l.iGM(Oe=l.CRH())&&(q.noEntriesFound=Oe.first)}},viewQuery:function(k,q){if(1&k&&(l.Gf(we,7,l.SBq),l.Gf(O,7,l.SBq)),2&k){let Te;l.iGM(Te=l.CRH())&&(q.searchSelectInput=Te.first),l.iGM(Te=l.CRH())&&(q.innerSelectSearch=Te.first)}},hostVars:2,hostBindings:function(k,q){2&k&&l.ekj("mat-select-search-inside-mat-option",q.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:[l._Bn([{provide:t.JU,useExisting:(0,l.Gpc)(()=>X),multi:!0}])],ngContentSelectors:Ae,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(k,q){1&k&&(l.F$t(fe),l._UZ(0,"input",0),l.TgZ(1,"div",1,2),l.YNc(3,h,1,5,"mat-checkbox",3),l.TgZ(4,"input",4,5),l.NdJ("keydown",function(Oe){return q._handleKeydown(Oe)})("keyup",function(Oe){return q._handleKeyup(Oe)})("blur",function(){return q.onBlur()}),l.qZA(),l.YNc(6,i,1,0,"mat-spinner",6),l.YNc(7,p,4,2,"button",7),l.Hsn(8),l.qZA(),l.YNc(9,Z,4,2,"div",8),l.ALo(10,"async")),2&k&&(l.xp6(1),l.Q6J("ngClass",l.WLB(11,Ce,q.matSelect.multiple,q._isToggleAllCheckboxVisible())),l.xp6(2),l.Q6J("ngIf",q._isToggleAllCheckboxVisible()),l.xp6(1),l.Q6J("type",q.type)("formControl",q._formControl)("placeholder",q.placeholderLabel),l.uIk("aria-label",q.ariaLabel),l.xp6(2),l.Q6J("ngIf",q.searching),l.xp6(1),l.Q6J("ngIf",!q.hideClearSearchButton&&q.value&&!q.searching),l.xp6(2),l.Q6J("ngIf",l.lcZ(10,9,q._showNoEntriesFound$)))},dependencies:[P.oG,te,Fe.lW,Re.Hw,o.mk,o.O5,Ue.gM,t.Fj,t.JJ,t.oH,o.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}),X})(),y=(()=>{class X{}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=l.oAB({type:X}),X.\u0275inj=l.cJS({imports:[[o.ez,t.UX,Fe.ot,P.p9,Re.Ps,Ie,Ue.AV]]}),X})();var v=r(6451),f=r(5026);const D=["matSelectInfiniteScroll"];function B(X,de){if(1&X&&(l.ynx(0),l._UZ(1,"img",7),l.BQk()),2&X){const k=l.oxw().$implicit;l.xp6(1),l.Q6J("src",k.Img,l.LSH)}}function le(X,de){if(1&X&&(l.TgZ(0,"mat-option",5),l.YNc(1,B,2,1,"ng-container",6),l._uU(2),l.qZA()),2&X){const k=de.$implicit,q=l.oxw();l.Q6J("value",k[q.bindValue]),l.xp6(1),l.Q6J("ngIf",null==k?null:k.Img),l.xp6(1),l.hij(" ",k[q.bindLabel]," ")}}let De=(()=>{class X{constructor(){this.disabled=!1,this.batchSize=50,this.optionCtrl=new t.p4,this.searchCtrl=new t.p4,this.filteredData$=this.searchCtrl.valueChanges.pipe((0,W.O)(""),(0,pe.U)(k=>k?this.data.filter(q=>q[this.bindLabel].toLowerCase().indexOf(k.toLowerCase())>-1):this.data)),this.incrementBatchOffset$=new b.x,this.resetBatchOffset$=new b.x,this.minimumBatchOffset$=(0,he.a)([this.filteredData$,this.searchCtrl.valueChanges]).pipe((0,pe.U)(([k,q])=>!this.searchCtrl.value&&this.optionCtrl.value?k.findIndex(Oe=>Oe[this.bindValue]===this.optionCtrl.value)+this.batchSize:0),(0,W.O)(0)),this.batchOffset$=(0,he.a)([(0,v.T)(this.incrementBatchOffset$.pipe((0,be.h)(!0)),this.resetBatchOffset$.pipe((0,be.h)(!1))),this.minimumBatchOffset$]).pipe((0,f.R)((k,[q,Te])=>q?Math.max(k+this.batchSize,Te+this.batchSize):Math.max(Te,this.batchSize),this.batchSize)),this.filteredBatchedData$=(0,he.a)([this.filteredData$,this.batchOffset$]).pipe((0,pe.U)(([k,q])=>k.slice(0,q))),this.destroy$=new b.x,this.data=[],this.onSelect=new l.vpe}ngOnInit(){this.infiniteScrollSelect.openedChange.pipe((0,R.R)(this.destroy$)).subscribe(k=>{k&&this.resetBatchOffset$.next()}),this.onSelectData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSelectData(){this.optionCtrl.valueChanges.subscribe(k=>{k&&this.onSelect.emit(k)})}getNextBatch(){this.incrementBatchOffset$.next()}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275cmp=l.Xpm({type:X,selectors:[["app-select-search"]],viewQuery:function(k,q){if(1&k&&l.Gf(D,7),2&k){let Te;l.iGM(Te=l.CRH())&&(q.infiniteScrollSelect=Te.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(k,q){1&k&&(l.TgZ(0,"mat-form-field",0)(1,"mat-select",1,2),l.NdJ("infiniteScroll",function(){return q.getNextBatch()}),l.TgZ(3,"mat-option"),l._UZ(4,"ngx-mat-select-search",3),l.qZA(),l.YNc(5,le,3,3,"mat-option",4),l.ALo(6,"async"),l.qZA()()),2&k&&(l.Q6J("appearance",q.appearance),l.xp6(1),l.Q6J("disabled",q.disabled)("formControl",q.optionCtrl)("placeholder",q.placeholder),l.xp6(3),l.Q6J("formControl",q.searchCtrl)("disableScrollToActiveOnOptionsChanged",!0),l.xp6(1),l.Q6J("ngForOf",l.lcZ(6,7,q.filteredBatchedData$)))},dependencies:[o.sg,o.O5,t.JJ,t.oH,x.KE,oe.gD,C.ey,d,V,o.Ov],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} mat-form-field.select-search>div.mat-form-field-wrapper{padding-bottom:0}"]}),X})(),Be=(()=>{class X{}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=l.oAB({type:X}),X.\u0275inj=l.cJS({imports:[o.ez,t.UX,oe.LD,x.lN,y,F]}),X})()},5684:(Le,Me,r)=>{r.d(Me,{T:()=>l});var o=r(9300);function l(t){return(0,o.h)((x,oe)=>t<=oe)}},2687:(Le,Me,r)=>{r.d(Me,{$s:()=>ge,Em:()=>ve,Kd:()=>Ce,X6:()=>O,ic:()=>j,kH:()=>s,mK:()=>Ie,qV:()=>te,qm:()=>d,rt:()=>M,s1:()=>_e,tE:()=>n,yG:()=>h});var o=r(6895),l=r(4650),t=r(3353),x=r(7579),oe=r(727),R=r(1135),me=r(9646),ce=r(9521),b=r(8505),K=r(8372),re=r(9300),V=r(4004),F=r(5698),N=r(5684),C=r(1884),$=r(2722),ye=r(1281),he=r(9643),ne=r(2289);function m(y,v){return(y.getAttribute(v)||"").match(/\S+/g)||[]}const g="cdk-describedby-message",S="cdk-describedby-host";let ee=0,ge=(()=>{class y{constructor(f,D){this._platform=D,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ee++,this._document=f,this._id=(0,l.f3M)(l.AFp)+"-"+ee++}describe(f,D,B){if(!this._canBeDescribed(f,D))return;const le=be(D,B);"string"!=typeof D?(xe(D,this._id),this._messageRegistry.set(le,{messageElement:D,referenceCount:0})):this._messageRegistry.has(le)||this._createMessageElement(D,B),this._isElementDescribedByMessage(f,le)||this._addMessageReference(f,le)}removeDescription(f,D,B){if(!D||!this._isElementNode(f))return;const le=be(D,B);if(this._isElementDescribedByMessage(f,le)&&this._removeMessageReference(f,le),"string"==typeof D){const De=this._messageRegistry.get(le);De&&0===De.referenceCount&&this._deleteMessageElement(le)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const f=this._document.querySelectorAll(`[${S}="${this._id}"]`);for(let D=0;D<f.length;D++)this._removeCdkDescribedByReferenceIds(f[D]),f[D].removeAttribute(S);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(f,D){const B=this._document.createElement("div");xe(B,this._id),B.textContent=f,D&&B.setAttribute("role",D),this._createMessagesContainer(),this._messagesContainer.appendChild(B),this._messageRegistry.set(be(f,D),{messageElement:B,referenceCount:0})}_deleteMessageElement(f){this._messageRegistry.get(f)?.messageElement?.remove(),this._messageRegistry.delete(f)}_createMessagesContainer(){if(this._messagesContainer)return;const f="cdk-describedby-message-container",D=this._document.querySelectorAll(`.${f}[platform="server"]`);for(let le=0;le<D.length;le++)D[le].remove();const B=this._document.createElement("div");B.style.visibility="hidden",B.classList.add(f),B.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&B.setAttribute("platform","server"),this._document.body.appendChild(B),this._messagesContainer=B}_removeCdkDescribedByReferenceIds(f){const D=m(f,"aria-describedby").filter(B=>0!=B.indexOf(g));f.setAttribute("aria-describedby",D.join(" "))}_addMessageReference(f,D){const B=this._messageRegistry.get(D);(function W(y,v,f){const D=m(y,v);D.some(B=>B.trim()==f.trim())||(D.push(f.trim()),y.setAttribute(v,D.join(" ")))})(f,"aria-describedby",B.messageElement.id),f.setAttribute(S,this._id),B.referenceCount++}_removeMessageReference(f,D){const B=this._messageRegistry.get(D);B.referenceCount--,function Y(y,v,f){const B=m(y,v).filter(le=>le!=f.trim());B.length?y.setAttribute(v,B.join(" ")):y.removeAttribute(v)}(f,"aria-describedby",B.messageElement.id),f.removeAttribute(S)}_isElementDescribedByMessage(f,D){const B=m(f,"aria-describedby"),le=this._messageRegistry.get(D),De=le&&le.messageElement.id;return!!De&&-1!=B.indexOf(De)}_canBeDescribed(f,D){if(!this._isElementNode(f))return!1;if(D&&"object"==typeof D)return!0;const B=null==D?"":`${D}`.trim(),le=f.getAttribute("aria-label");return!(!B||le&&le.trim()===B)}_isElementNode(f){return f.nodeType===this._document.ELEMENT_NODE}}return y.\u0275fac=function(f){return new(f||y)(l.LFG(o.K0),l.LFG(t.t4))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();function be(y,v){return"string"==typeof y?`${v||""}/${y}`:y}function xe(y,v){y.id||(y.id=`${g}-${v}-${ee++}`)}class Ee{constructor(v){this._items=v,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new x.x,this._typeaheadSubscription=oe.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=f=>f.disabled,this._pressedLetters=[],this.tabOut=new x.x,this.change=new x.x,v instanceof l.n_E&&v.changes.subscribe(f=>{if(this._activeItem){const B=f.toArray().indexOf(this._activeItem);B>-1&&B!==this._activeItemIndex&&(this._activeItemIndex=B)}})}skipPredicate(v){return this._skipPredicateFn=v,this}withWrap(v=!0){return this._wrap=v,this}withVerticalOrientation(v=!0){return this._vertical=v,this}withHorizontalOrientation(v){return this._horizontal=v,this}withAllowedModifierKeys(v){return this._allowedModifierKeys=v,this}withTypeAhead(v=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,b.b)(f=>this._pressedLetters.push(f)),(0,K.b)(v),(0,re.h)(()=>this._pressedLetters.length>0),(0,V.U)(()=>this._pressedLetters.join(""))).subscribe(f=>{const D=this._getItemsArray();for(let B=1;B<D.length+1;B++){const le=(this._activeItemIndex+B)%D.length,De=D[le];if(!this._skipPredicateFn(De)&&0===De.getLabel().toUpperCase().trim().indexOf(f)){this.setActiveItem(le);break}}this._pressedLetters=[]}),this}withHomeAndEnd(v=!0){return this._homeAndEnd=v,this}setActiveItem(v){const f=this._activeItem;this.updateActiveItem(v),this._activeItem!==f&&this.change.next(this._activeItemIndex)}onKeydown(v){const f=v.keyCode,B=["altKey","ctrlKey","metaKey","shiftKey"].every(le=>!v[le]||this._allowedModifierKeys.indexOf(le)>-1);switch(f){case ce.Mf:return void this.tabOut.next();case ce.JH:if(this._vertical&&B){this.setNextItemActive();break}return;case ce.LH:if(this._vertical&&B){this.setPreviousItemActive();break}return;case ce.SV:if(this._horizontal&&B){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case ce.oh:if(this._horizontal&&B){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case ce.Sd:if(this._homeAndEnd&&B){this.setFirstItemActive();break}return;case ce.uR:if(this._homeAndEnd&&B){this.setLastItemActive();break}return;default:return void((B||(0,ce.Vb)(v,"shiftKey"))&&(v.key&&1===v.key.length?this._letterKeyStream.next(v.key.toLocaleUpperCase()):(f>=ce.A&&f<=ce.Z||f>=ce.xE&&f<=ce.aO)&&this._letterKeyStream.next(String.fromCharCode(f))))}this._pressedLetters=[],v.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(v){const f=this._getItemsArray(),D="number"==typeof v?v:f.indexOf(v);this._activeItem=f[D]??null,this._activeItemIndex=D}_setActiveItemByDelta(v){this._wrap?this._setActiveInWrapMode(v):this._setActiveInDefaultMode(v)}_setActiveInWrapMode(v){const f=this._getItemsArray();for(let D=1;D<=f.length;D++){const B=(this._activeItemIndex+v*D+f.length)%f.length;if(!this._skipPredicateFn(f[B]))return void this.setActiveItem(B)}}_setActiveInDefaultMode(v){this._setActiveItemByIndex(this._activeItemIndex+v,v)}_setActiveItemByIndex(v,f){const D=this._getItemsArray();if(D[v]){for(;this._skipPredicateFn(D[v]);)if(!D[v+=f])return;this.setActiveItem(v)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class _e extends Ee{setActiveItem(v){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(v),this.activeItem&&this.activeItem.setActiveStyles()}}class ve extends Ee{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(v){return this._origin=v,this}setActiveItem(v){super.setActiveItem(v),this.activeItem&&this.activeItem.focus(this._origin)}}let j=(()=>{class y{constructor(f){this._platform=f}isDisabled(f){return f.hasAttribute("disabled")}isVisible(f){return function P(y){return!!(y.offsetWidth||y.offsetHeight||"function"==typeof y.getClientRects&&y.getClientRects().length)}(f)&&"visible"===getComputedStyle(f).visibility}isTabbable(f){if(!this._platform.isBrowser)return!1;const D=function ae(y){try{return y.frameElement}catch{return null}}(function se(y){return y.ownerDocument&&y.ownerDocument.defaultView||window}(f));if(D&&(-1===U(D)||!this.isVisible(D)))return!1;let B=f.nodeName.toLowerCase(),le=U(f);return f.hasAttribute("contenteditable")?-1!==le:!("iframe"===B||"object"===B||this._platform.WEBKIT&&this._platform.IOS&&!function ie(y){let v=y.nodeName.toLowerCase(),f="input"===v&&y.type;return"text"===f||"password"===f||"select"===v||"textarea"===v}(f))&&("audio"===B?!!f.hasAttribute("controls")&&-1!==le:"video"===B?-1!==le&&(null!==le||this._platform.FIREFOX||f.hasAttribute("controls")):f.tabIndex>=0)}isFocusable(f,D){return function L(y){return!function Q(y){return function J(y){return"input"==y.nodeName.toLowerCase()}(y)&&"hidden"==y.type}(y)&&(function G(y){let v=y.nodeName.toLowerCase();return"input"===v||"select"===v||"button"===v||"textarea"===v}(y)||function ue(y){return function Se(y){return"a"==y.nodeName.toLowerCase()}(y)&&y.hasAttribute("href")}(y)||y.hasAttribute("contenteditable")||I(y))}(f)&&!this.isDisabled(f)&&(D?.ignoreVisibility||this.isVisible(f))}}return y.\u0275fac=function(f){return new(f||y)(l.LFG(t.t4))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();function I(y){if(!y.hasAttribute("tabindex")||void 0===y.tabIndex)return!1;let v=y.getAttribute("tabindex");return!(!v||isNaN(parseInt(v,10)))}function U(y){if(!I(y))return null;const v=parseInt(y.getAttribute("tabindex")||"",10);return isNaN(v)?-1:v}class z{constructor(v,f,D,B,le=!1){this._element=v,this._checker=f,this._ngZone=D,this._document=B,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,le||this.attachAnchors()}get enabled(){return this._enabled}set enabled(v){this._enabled=v,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(v,this._startAnchor),this._toggleAnchorTabIndex(v,this._endAnchor))}destroy(){const v=this._startAnchor,f=this._endAnchor;v&&(v.removeEventListener("focus",this.startAnchorListener),v.remove()),f&&(f.removeEventListener("focus",this.endAnchorListener),f.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(v){return new Promise(f=>{this._executeOnStable(()=>f(this.focusInitialElement(v)))})}focusFirstTabbableElementWhenReady(v){return new Promise(f=>{this._executeOnStable(()=>f(this.focusFirstTabbableElement(v)))})}focusLastTabbableElementWhenReady(v){return new Promise(f=>{this._executeOnStable(()=>f(this.focusLastTabbableElement(v)))})}_getRegionBoundary(v){const f=this._element.querySelectorAll(`[cdk-focus-region-${v}], [cdkFocusRegion${v}], [cdk-focus-${v}]`);return"start"==v?f.length?f[0]:this._getFirstTabbableElement(this._element):f.length?f[f.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(v){const f=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(f){if(!this._checker.isFocusable(f)){const D=this._getFirstTabbableElement(f);return D?.focus(v),!!D}return f.focus(v),!0}return this.focusFirstTabbableElement(v)}focusFirstTabbableElement(v){const f=this._getRegionBoundary("start");return f&&f.focus(v),!!f}focusLastTabbableElement(v){const f=this._getRegionBoundary("end");return f&&f.focus(v),!!f}hasAttached(){return this._hasAttached}_getFirstTabbableElement(v){if(this._checker.isFocusable(v)&&this._checker.isTabbable(v))return v;const f=v.children;for(let D=0;D<f.length;D++){const B=f[D].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(f[D]):null;if(B)return B}return null}_getLastTabbableElement(v){if(this._checker.isFocusable(v)&&this._checker.isTabbable(v))return v;const f=v.children;for(let D=f.length-1;D>=0;D--){const B=f[D].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(f[D]):null;if(B)return B}return null}_createAnchor(){const v=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,v),v.classList.add("cdk-visually-hidden"),v.classList.add("cdk-focus-trap-anchor"),v.setAttribute("aria-hidden","true"),v}_toggleAnchorTabIndex(v,f){v?f.setAttribute("tabindex","0"):f.removeAttribute("tabindex")}toggleAnchors(v){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(v,this._startAnchor),this._toggleAnchorTabIndex(v,this._endAnchor))}_executeOnStable(v){this._ngZone.isStable?v():this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(v)}}let te=(()=>{class y{constructor(f,D,B){this._checker=f,this._ngZone=D,this._document=B}create(f,D=!1){return new z(f,this._checker,this._ngZone,this._document,D)}}return y.\u0275fac=function(f){return new(f||y)(l.LFG(j),l.LFG(l.R0b),l.LFG(o.K0))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),Ie=(()=>{class y{constructor(f,D,B){this._elementRef=f,this._focusTrapFactory=D,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(f){this.focusTrap.enabled=(0,ye.Ig)(f)}get autoCapture(){return this._autoCapture}set autoCapture(f){this._autoCapture=(0,ye.Ig)(f)}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(f){const D=f.autoCapture;D&&!D.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,t.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return y.\u0275fac=function(f){return new(f||y)(l.Y36(l.SBq),l.Y36(te),l.Y36(o.K0))},y.\u0275dir=l.lG2({type:y,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[l.TTD]}),y})();function O(y){return 0===y.buttons||0===y.offsetX&&0===y.offsetY}function h(y){const v=y.touches&&y.touches[0]||y.changedTouches&&y.changedTouches[0];return!(!v||-1!==v.identifier||null!=v.radiusX&&1!==v.radiusX||null!=v.radiusY&&1!==v.radiusY)}const i=new l.OlP("cdk-input-modality-detector-options"),e={ignoreKeys:[ce.zL,ce.jx,ce.b2,ce.MW,ce.JU]},p=(0,t.i$)({passive:!0,capture:!0});let w=(()=>{class y{constructor(f,D,B,le){this._platform=f,this._mostRecentTarget=null,this._modality=new R.X(null),this._lastTouchMs=0,this._onKeydown=De=>{this._options?.ignoreKeys?.some(Be=>Be===De.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,t.sA)(De))},this._onMousedown=De=>{Date.now()-this._lastTouchMs<650||(this._modality.next(O(De)?"keyboard":"mouse"),this._mostRecentTarget=(0,t.sA)(De))},this._onTouchstart=De=>{h(De)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,t.sA)(De))},this._options={...e,...le},this.modalityDetected=this._modality.pipe((0,N.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,C.x)()),f.isBrowser&&D.runOutsideAngular(()=>{B.addEventListener("keydown",this._onKeydown,p),B.addEventListener("mousedown",this._onMousedown,p),B.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 y.\u0275fac=function(f){return new(f||y)(l.LFG(t.t4),l.LFG(l.R0b),l.LFG(o.K0),l.LFG(i,8))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();const A=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Z(){return null}}),fe=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ce=(()=>{class y{constructor(f,D,B,le){this._ngZone=D,this._defaultOptions=le,this._document=B,this._liveElement=f||this._createLiveElement()}announce(f,...D){const B=this._defaultOptions;let le,De;return 1===D.length&&"number"==typeof D[0]?De=D[0]:[le,De]=D,this.clear(),clearTimeout(this._previousTimeout),le||(le=B&&B.politeness?B.politeness:"polite"),null==De&&B&&(De=B.duration),this._liveElement.setAttribute("aria-live",le),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Be=>this._currentResolve=Be)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=f,"number"==typeof De&&(this._previousTimeout=setTimeout(()=>this.clear(),De)),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 f="cdk-live-announcer-element",D=this._document.getElementsByClassName(f),B=this._document.createElement("div");for(let le=0;le<D.length;le++)D[le].remove();return B.classList.add(f),B.classList.add("cdk-visually-hidden"),B.setAttribute("aria-atomic","true"),B.setAttribute("aria-live","polite"),this._document.body.appendChild(B),B}}return y.\u0275fac=function(f){return new(f||y)(l.LFG(A,8),l.LFG(l.R0b),l.LFG(o.K0),l.LFG(fe,8))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();const ke=new l.OlP("cdk-focus-monitor-default-options"),T=(0,t.i$)({passive:!0,capture:!0});let n=(()=>{class y{constructor(f,D,B,le,De){this._ngZone=f,this._platform=D,this._inputModalityDetector=B,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=Be=>{const X=(0,t.sA)(Be),de="focus"===Be.type?this._onFocus:this._onBlur;for(let k=X;k;k=k.parentElement)de.call(this,Be,k)},this._document=le,this._detectionMode=De?.detectionMode||0}monitor(f,D=!1){const B=(0,ye.fI)(f);if(!this._platform.isBrowser||1!==B.nodeType)return(0,me.of)(null);const le=(0,t.kV)(B)||this._getDocument(),De=this._elementInfo.get(B);if(De)return D&&(De.checkChildren=!0),De.subject;const Be={checkChildren:D,subject:new x.x,rootNode:le};return this._elementInfo.set(B,Be),this._registerGlobalListeners(Be),Be.subject}stopMonitoring(f){const D=(0,ye.fI)(f),B=this._elementInfo.get(D);B&&(B.subject.complete(),this._setClasses(D),this._elementInfo.delete(D),this._removeGlobalListeners(B))}focusVia(f,D,B){const le=(0,ye.fI)(f);le===this._getDocument().activeElement?this._getClosestElementsInfo(le).forEach(([Be,X])=>this._originChanged(Be,D,X)):(this._setOrigin(D),"function"==typeof le.focus&&le.focus(B))}ngOnDestroy(){this._elementInfo.forEach((f,D)=>this.stopMonitoring(D))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(f){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(f)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(f){return 1===this._detectionMode||!!f?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(f,D){f.classList.toggle("cdk-focused",!!D),f.classList.toggle("cdk-touch-focused","touch"===D),f.classList.toggle("cdk-keyboard-focused","keyboard"===D),f.classList.toggle("cdk-mouse-focused","mouse"===D),f.classList.toggle("cdk-program-focused","program"===D)}_setOrigin(f,D=!1){this._ngZone.runOutsideAngular(()=>{this._origin=f,this._originFromTouchInteraction="touch"===f&&D,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(f,D){const B=this._elementInfo.get(D),le=(0,t.sA)(f);!B||!B.checkChildren&&D!==le||this._originChanged(D,this._getFocusOrigin(le),B)}_onBlur(f,D){const B=this._elementInfo.get(D);!B||B.checkChildren&&f.relatedTarget instanceof Node&&D.contains(f.relatedTarget)||(this._setClasses(D),this._emitOrigin(B,null))}_emitOrigin(f,D){f.subject.observers.length&&this._ngZone.run(()=>f.subject.next(D))}_registerGlobalListeners(f){if(!this._platform.isBrowser)return;const D=f.rootNode,B=this._rootNodeFocusListenerCount.get(D)||0;B||this._ngZone.runOutsideAngular(()=>{D.addEventListener("focus",this._rootNodeFocusAndBlurListener,T),D.addEventListener("blur",this._rootNodeFocusAndBlurListener,T)}),this._rootNodeFocusListenerCount.set(D,B+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,$.R)(this._stopInputModalityDetector)).subscribe(le=>{this._setOrigin(le,!0)}))}_removeGlobalListeners(f){const D=f.rootNode;if(this._rootNodeFocusListenerCount.has(D)){const B=this._rootNodeFocusListenerCount.get(D);B>1?this._rootNodeFocusListenerCount.set(D,B-1):(D.removeEventListener("focus",this._rootNodeFocusAndBlurListener,T),D.removeEventListener("blur",this._rootNodeFocusAndBlurListener,T),this._rootNodeFocusListenerCount.delete(D))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(f,D,B){this._setClasses(f,D),this._emitOrigin(B,D),this._lastFocusOrigin=D}_getClosestElementsInfo(f){const D=[];return this._elementInfo.forEach((B,le)=>{(le===f||B.checkChildren&&le.contains(f))&&D.push([le,B])}),D}}return y.\u0275fac=function(f){return new(f||y)(l.LFG(l.R0b),l.LFG(t.t4),l.LFG(w),l.LFG(o.K0,8),l.LFG(ke,8))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),s=(()=>{class y{constructor(f,D){this._elementRef=f,this._focusMonitor=D,this.cdkFocusChange=new l.vpe}ngAfterViewInit(){const f=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(f,1===f.nodeType&&f.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(D=>this.cdkFocusChange.emit(D))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return y.\u0275fac=function(f){return new(f||y)(l.Y36(l.SBq),l.Y36(n))},y.\u0275dir=l.lG2({type:y,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),y})();const _="cdk-high-contrast-black-on-white",c="cdk-high-contrast-white-on-black",u="cdk-high-contrast-active";let d=(()=>{class y{constructor(f,D){this._platform=f,this._document=D,this._breakpointSubscription=(0,l.f3M)(ne.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const f=this._document.createElement("div");f.style.backgroundColor="rgb(1,2,3)",f.style.position="absolute",this._document.body.appendChild(f);const D=this._document.defaultView||window,B=D&&D.getComputedStyle?D.getComputedStyle(f):null,le=(B&&B.backgroundColor||"").replace(/ /g,"");switch(f.remove(),le){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 f=this._document.body.classList;f.remove(u,_,c),this._hasCheckedHighContrastMode=!0;const D=this.getHighContrastMode();1===D?f.add(u,_):2===D&&f.add(u,c)}}}return y.\u0275fac=function(f){return new(f||y)(l.LFG(t.t4),l.LFG(o.K0))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),M=(()=>{class y{constructor(f){f._applyBodyHighContrastModeCssClasses()}}return y.\u0275fac=function(f){return new(f||y)(l.LFG(d))},y.\u0275mod=l.oAB({type:y}),y.\u0275inj=l.cJS({imports:[he.Q8]}),y})()},445:(Le,Me,r)=>{r.d(Me,{Is:()=>me,vT:()=>b});var o=r(4650),l=r(6895);const t=new o.OlP("cdk-dir-doc",{providedIn:"root",factory:function x(){return(0,o.f3M)(l.K0)}}),oe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let me=(()=>{class K{constructor(V){if(this.value="ltr",this.change=new o.vpe,V){const N=V.documentElement?V.documentElement.dir:null;this.value=function R(K){const re=K?.toLowerCase()||"";return"auto"===re&&typeof navigator<"u"&&navigator?.language?oe.test(navigator.language)?"rtl":"ltr":"rtl"===re?"rtl":"ltr"}((V.body?V.body.dir:null)||N||"ltr")}}ngOnDestroy(){this.change.complete()}}return K.\u0275fac=function(V){return new(V||K)(o.LFG(t,8))},K.\u0275prov=o.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),b=(()=>{class K{}return K.\u0275fac=function(V){return new(V||K)},K.\u0275mod=o.oAB({type:K}),K.\u0275inj=o.cJS({}),K})()},1281:(Le,Me,r)=>{r.d(Me,{Eq:()=>oe,HM:()=>R,Ig:()=>l,du:()=>ce,fI:()=>me,su:()=>t});var o=r(4650);function l(b){return null!=b&&"false"!=`${b}`}function t(b,K=0){return function x(b){return!isNaN(parseFloat(b))&&!isNaN(Number(b))}(b)?Number(b):K}function oe(b){return Array.isArray(b)?b:[b]}function R(b){return null==b?"":"string"==typeof b?b:`${b}px`}function me(b){return b instanceof o.SBq?b.nativeElement:b}function ce(b,K=/\s+/){const re=[];if(null!=b){const V=Array.isArray(b)?b:`${b}`.split(K);for(const F of V){const N=`${F}`.trim();N&&re.push(N)}}return re}},5017:(Le,Me,r)=>{r.d(Me,{A8:()=>K,Ov:()=>ce});var o=r(7579),l=r(4650);class ce{constructor(F=!1,N,C=!0){this._multiple=F,this._emitChanges=C,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.x,N&&N.length&&(F?N.forEach($=>this._markSelected($)):this._markSelected(N[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...F){this._verifyValueAssignment(F),F.forEach(N=>this._markSelected(N)),this._emitChangeEvent()}deselect(...F){this._verifyValueAssignment(F),F.forEach(N=>this._unmarkSelected(N)),this._emitChangeEvent()}toggle(F){this.isSelected(F)?this.deselect(F):this.select(F)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(F){return this._selection.has(F)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(F){this._multiple&&this.selected&&this._selected.sort(F)}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(F){this.isSelected(F)||(this._multiple||this._unmarkAll(),this._selection.add(F),this._emitChanges&&this._selectedToEmit.push(F))}_unmarkSelected(F){this.isSelected(F)&&(this._selection.delete(F),this._emitChanges&&this._deselectedToEmit.push(F))}_unmarkAll(){this.isEmpty()||this._selection.forEach(F=>this._unmarkSelected(F))}_verifyValueAssignment(F){}}let K=(()=>{class V{constructor(){this._listeners=[]}notify(N,C){for(let $ of this._listeners)$(N,C)}listen(N){return this._listeners.push(N),()=>{this._listeners=this._listeners.filter(C=>N!==C)}}ngOnDestroy(){this._listeners=[]}}return V.\u0275fac=function(N){return new(N||V)},V.\u0275prov=l.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},9521:(Le,Me,r)=>{r.d(Me,{A:()=>Q,JH:()=>pe,JU:()=>R,K5:()=>oe,Ku:()=>F,LH:()=>he,L_:()=>V,MW:()=>fe,Mf:()=>t,SV:()=>ne,Sd:()=>$,VM:()=>N,Vb:()=>Ze,Z:()=>Z,ZH:()=>l,aO:()=>H,b2:()=>Ge,hY:()=>re,jx:()=>me,oh:()=>ye,uR:()=>C,xE:()=>g,yY:()=>E,zL:()=>ce});const l=8,t=9,oe=13,R=16,me=17,ce=18,re=27,V=32,F=33,N=34,C=35,$=36,ye=37,he=38,ne=39,pe=40,E=46,g=48,H=57,Q=65,Z=90,fe=91,Ge=224;function Ze(Ye,...je){return je.length?je.some($e=>Ye[$e]):Ye.altKey||Ye.shiftKey||Ye.ctrlKey||Ye.metaKey}},2289:(Le,Me,r)=>{r.d(Me,{Yg:()=>pe,u3:()=>Y});var o=r(4650),l=r(1281),t=r(7579),x=r(9841),oe=r(7272),R=r(8306),me=r(5698),ce=r(5684),b=r(8372),K=r(4004),re=r(8675),V=r(2722),F=r(3353);const C=new Set;let $,ye=(()=>{class m{constructor(g){this._platform=g,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ne}matchMedia(g){return(this._platform.WEBKIT||this._platform.BLINK)&&function he(m){if(!C.has(m))try{$||($=document.createElement("style"),$.setAttribute("type","text/css"),document.head.appendChild($)),$.sheet&&($.sheet.insertRule(`@media ${m} {body{ }}`,0),C.add(m))}catch(E){console.error(E)}}(g),this._matchMedia(g)}}return m.\u0275fac=function(g){return new(g||m)(o.LFG(F.t4))},m.\u0275prov=o.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function ne(m){return{matches:"all"===m||""===m,media:m,addListener:()=>{},removeListener:()=>{}}}let pe=(()=>{class m{constructor(g,S){this._mediaMatcher=g,this._zone=S,this._queries=new Map,this._destroySubject=new t.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(g){return W((0,l.Eq)(g)).some(ee=>this._registerQuery(ee).mql.matches)}observe(g){const ee=W((0,l.Eq)(g)).map(be=>this._registerQuery(be).observable);let ge=(0,x.a)(ee);return ge=(0,oe.z)(ge.pipe((0,me.q)(1)),ge.pipe((0,ce.T)(1),(0,b.b)(0))),ge.pipe((0,K.U)(be=>{const xe={matches:!1,breakpoints:{}};return be.forEach(({matches:Ee,query:_e})=>{xe.matches=xe.matches||Ee,xe.breakpoints[_e]=Ee}),xe}))}_registerQuery(g){if(this._queries.has(g))return this._queries.get(g);const S=this._mediaMatcher.matchMedia(g),ge={observable:new R.y(be=>{const xe=Ee=>this._zone.run(()=>be.next(Ee));return S.addListener(xe),()=>{S.removeListener(xe)}}).pipe((0,re.O)(S),(0,K.U)(({matches:be})=>({query:g,matches:be})),(0,V.R)(this._destroySubject)),mql:S};return this._queries.set(g,ge),ge}}return m.\u0275fac=function(g){return new(g||m)(o.LFG(ye),o.LFG(o.R0b))},m.\u0275prov=o.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function W(m){return m.map(E=>E.split(",")).reduce((E,g)=>E.concat(g)).map(E=>E.trim())}const Y={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:(Le,Me,r)=>{r.d(Me,{Q8:()=>b,wD:()=>ce});var o=r(1281),l=r(4650),t=r(8306),x=r(7579),oe=r(8372);let R=(()=>{class K{create(V){return typeof MutationObserver>"u"?null:new MutationObserver(V)}}return K.\u0275fac=function(V){return new(V||K)},K.\u0275prov=l.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),me=(()=>{class K{constructor(V){this._mutationObserverFactory=V,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((V,F)=>this._cleanupObserver(F))}observe(V){const F=(0,o.fI)(V);return new t.y(N=>{const $=this._observeElement(F).subscribe(N);return()=>{$.unsubscribe(),this._unobserveElement(F)}})}_observeElement(V){if(this._observedElements.has(V))this._observedElements.get(V).count++;else{const F=new x.x,N=this._mutationObserverFactory.create(C=>F.next(C));N&&N.observe(V,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(V,{observer:N,stream:F,count:1})}return this._observedElements.get(V).stream}_unobserveElement(V){this._observedElements.has(V)&&(this._observedElements.get(V).count--,this._observedElements.get(V).count||this._cleanupObserver(V))}_cleanupObserver(V){if(this._observedElements.has(V)){const{observer:F,stream:N}=this._observedElements.get(V);F&&F.disconnect(),N.complete(),this._observedElements.delete(V)}}}return K.\u0275fac=function(V){return new(V||K)(l.LFG(R))},K.\u0275prov=l.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),ce=(()=>{class K{constructor(V,F,N){this._contentObserver=V,this._elementRef=F,this._ngZone=N,this.event=new l.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,o.Ig)(V),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(V){this._debounce=(0,o.su)(V),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const V=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?V.pipe((0,oe.b)(this.debounce)):V).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return K.\u0275fac=function(V){return new(V||K)(l.Y36(me),l.Y36(l.SBq),l.Y36(l.R0b))},K.\u0275dir=l.lG2({type:K,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),K})(),b=(()=>{class K{}return K.\u0275fac=function(V){return new(V||K)},K.\u0275mod=l.oAB({type:K}),K.\u0275inj=l.cJS({providers:[R]}),K})()},2561:(Le,Me,r)=>{r.d(Me,{pI:()=>Re,xu:()=>Fe,_G:()=>Q,aV:()=>te,X_:()=>S,Xj:()=>j,U8:()=>O,Iu:()=>ae});var o=r(7376),l=r(6895),t=r(4650),x=r(1281),oe=r(3353),R=r(445),me=r(4080),ce=r(7579),b=r(727),K=r(6451),re=r(4482),V=r(5403),N=r(5698),C=r(2722),$=r(9521);const ye=(0,oe.Mq)();class he{constructor(e,a){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=a}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=(0,x.HM)(-this._previousScrollPosition.left),e.style.top=(0,x.HM)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,p=e.style,w=this._document.body.style,A=p.scrollBehavior||"",Z=w.scrollBehavior||"";this._isEnabled=!1,p.left=this._previousHTMLStyles.left,p.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),ye&&(p.scrollBehavior=w.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ye&&(p.scrollBehavior=A,w.scrollBehavior=Z)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const a=this._document.body,p=this._viewportRuler.getViewportSize();return a.scrollHeight>p.height||a.scrollWidth>p.width}}class pe{constructor(e,a,p,w){this._scrollDispatcher=e,this._ngZone=a,this._viewportRuler=p,this._config=w,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const a=this._viewportRuler.getViewportScrollPosition().top;Math.abs(a-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class W{enable(){}disable(){}attach(){}}function Y(i,e){return e.some(a=>i.bottom<a.top||i.top>a.bottom||i.right<a.left||i.left>a.right)}function m(i,e){return e.some(a=>i.top<a.top||i.bottom>a.bottom||i.left<a.left||i.right>a.right)}class E{constructor(e,a,p,w){this._scrollDispatcher=e,this._viewportRuler=a,this._ngZone=p,this._config=w,this._scrollSubscription=null}attach(e){this._overlayRef=e}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 a=this._overlayRef.overlayElement.getBoundingClientRect(),{width:p,height:w}=this._viewportRuler.getViewportSize();Y(a,[{width:p,height:w,bottom:w,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 g=(()=>{class i{constructor(a,p,w,A){this._scrollDispatcher=a,this._viewportRuler=p,this._ngZone=w,this.noop=()=>new W,this.close=Z=>new pe(this._scrollDispatcher,this._ngZone,this._viewportRuler,Z),this.block=()=>new he(this._viewportRuler,this._document),this.reposition=Z=>new E(this._scrollDispatcher,this._viewportRuler,this._ngZone,Z),this._document=A}}return i.\u0275fac=function(a){return new(a||i)(t.LFG(o.mF),t.LFG(o.rL),t.LFG(t.R0b),t.LFG(l.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class S{constructor(e){if(this.scrollStrategy=new W,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const a=Object.keys(e);for(const p of a)void 0!==e[p]&&(this[p]=e[p])}}}class be{constructor(e,a){this.connectionPair=e,this.scrollableViewProperties=a}}let _e=(()=>{class i{constructor(a){this._attachedOverlays=[],this._document=a}ngOnDestroy(){this.detach()}add(a){this.remove(a),this._attachedOverlays.push(a)}remove(a){const p=this._attachedOverlays.indexOf(a);p>-1&&this._attachedOverlays.splice(p,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(a){return new(a||i)(t.LFG(l.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ve=(()=>{class i extends _e{constructor(a,p){super(a),this._ngZone=p,this._keydownListener=w=>{const A=this._attachedOverlays;for(let Z=A.length-1;Z>-1;Z--)if(A[Z]._keydownEvents.observers.length>0){const fe=A[Z]._keydownEvents;this._ngZone?this._ngZone.run(()=>fe.next(w)):fe.next(w);break}}}add(a){super.add(a),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 i.\u0275fac=function(a){return new(a||i)(t.LFG(l.K0),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),H=(()=>{class i extends _e{constructor(a,p,w){super(a),this._platform=p,this._ngZone=w,this._cursorStyleIsSet=!1,this._pointerDownListener=A=>{this._pointerDownEventTarget=(0,oe.sA)(A)},this._clickListener=A=>{const Z=(0,oe.sA)(A),fe="click"===A.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Z;this._pointerDownEventTarget=null;const Ce=this._attachedOverlays.slice();for(let Ae=Ce.length-1;Ae>-1;Ae--){const ke=Ce[Ae];if(ke._outsidePointerEvents.observers.length<1||!ke.hasAttached())continue;if(ke.overlayElement.contains(Z)||ke.overlayElement.contains(fe))break;const T=ke._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>T.next(A)):T.next(A)}}}add(a){if(super.add(a),!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 a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0),a.removeEventListener("click",this._clickListener,!0),a.removeEventListener("auxclick",this._clickListener,!0),a.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(a){a.addEventListener("pointerdown",this._pointerDownListener,!0),a.addEventListener("click",this._clickListener,!0),a.addEventListener("auxclick",this._clickListener,!0),a.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(a){return new(a||i)(t.LFG(l.K0),t.LFG(oe.t4),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),j=(()=>{class i{constructor(a,p){this._platform=p,this._document=a}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const a="cdk-overlay-container";if(this._platform.isBrowser||(0,oe.Oy)()){const w=this._document.querySelectorAll(`.${a}[platform="server"], .${a}[platform="test"]`);for(let A=0;A<w.length;A++)w[A].remove()}const p=this._document.createElement("div");p.classList.add(a),(0,oe.Oy)()?p.setAttribute("platform","test"):this._platform.isBrowser||p.setAttribute("platform","server"),this._document.body.appendChild(p),this._containerElement=p}}return i.\u0275fac=function(a){return new(a||i)(t.LFG(l.K0),t.LFG(oe.t4))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class ae{constructor(e,a,p,w,A,Z,fe,Ce,Ae,ke=!1){this._portalOutlet=e,this._host=a,this._pane=p,this._config=w,this._ngZone=A,this._keyboardDispatcher=Z,this._document=fe,this._location=Ce,this._outsideClickDispatcher=Ae,this._animationsDisabled=ke,this._backdropElement=null,this._backdropClick=new ce.x,this._attachments=new ce.x,this._detachments=new ce.x,this._locationChanges=b.w0.EMPTY,this._backdropClickHandler=T=>this._backdropClick.next(T),this._backdropTransitionendHandler=T=>{this._disposeBackdrop(T.target)},this._keydownEvents=new ce.x,this._outsidePointerEvents=new ce.x,w.scrollStrategy&&(this._scrollStrategy=w.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=w.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const a=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,N.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),a}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=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,e&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=(0,x.HM)(this._config.width),e.height=(0,x.HM)(this._config.height),e.minWidth=(0,x.HM)(this._config.minWidth),e.minHeight=(0,x.HM)(this._config.minHeight),e.maxWidth=(0,x.HM)(this._config.maxWidth),e.maxHeight=(0,x.HM)(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,a,p){const w=(0,x.Eq)(a||[]).filter(A=>!!A);w.length&&(p?e.classList.add(...w):e.classList.remove(...w))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe((0,C.R)((0,K.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()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const P="cdk-overlay-connected-position-bounding-box",G=/([A-Za-z%]+)$/;class Q{constructor(e,a,p,w,A){this._viewportRuler=a,this._document=p,this._platform=w,this._overlayContainer=A,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 ce.x,this._resizeSubscription=b.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(P),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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 e=this._originRect,a=this._overlayRect,p=this._viewportRect,w=this._containerRect,A=[];let Z;for(let fe of this._preferredPositions){let Ce=this._getOriginPoint(e,w,fe),Ae=this._getOverlayPoint(Ce,a,fe),ke=this._getOverlayFit(Ae,a,p,fe);if(ke.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(fe,Ce);this._canFitWithFlexibleDimensions(ke,Ae,p)?A.push({position:fe,origin:Ce,overlayRect:a,boundingBoxRect:this._calculateBoundingBoxRect(Ce,fe)}):(!Z||Z.overlayFit.visibleArea<ke.visibleArea)&&(Z={overlayFit:ke,overlayPoint:Ae,originPoint:Ce,position:fe,overlayRect:a})}if(A.length){let fe=null,Ce=-1;for(const Ae of A){const ke=Ae.boundingBoxRect.width*Ae.boundingBoxRect.height*(Ae.position.weight||1);ke>Ce&&(Ce=ke,fe=Ae)}return this._isPushed=!1,void this._applyPosition(fe.position,fe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Z.position,Z.originPoint);this._applyPosition(Z.position,Z.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ue(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(P),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,a)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,a,p){let w,A;if("center"==p.originX)w=e.left+e.width/2;else{const Z=this._isRtl()?e.right:e.left,fe=this._isRtl()?e.left:e.right;w="start"==p.originX?Z:fe}return a.left<0&&(w-=a.left),A="center"==p.originY?e.top+e.height/2:"top"==p.originY?e.top:e.bottom,a.top<0&&(A-=a.top),{x:w,y:A}}_getOverlayPoint(e,a,p){let w,A;return w="center"==p.overlayX?-a.width/2:"start"===p.overlayX?this._isRtl()?-a.width:0:this._isRtl()?0:-a.width,A="center"==p.overlayY?-a.height/2:"top"==p.overlayY?0:-a.height,{x:e.x+w,y:e.y+A}}_getOverlayFit(e,a,p,w){const A=Se(a);let{x:Z,y:fe}=e,Ce=this._getOffset(w,"x"),Ae=this._getOffset(w,"y");Ce&&(Z+=Ce),Ae&&(fe+=Ae);let n=0-fe,s=fe+A.height-p.height,_=this._subtractOverflows(A.width,0-Z,Z+A.width-p.width),c=this._subtractOverflows(A.height,n,s),u=_*c;return{visibleArea:u,isCompletelyWithinViewport:A.width*A.height===u,fitsInViewportVertically:c===A.height,fitsInViewportHorizontally:_==A.width}}_canFitWithFlexibleDimensions(e,a,p){if(this._hasFlexibleDimensions){const w=p.bottom-a.y,A=p.right-a.x,Z=J(this._overlayRef.getConfig().minHeight),fe=J(this._overlayRef.getConfig().minWidth),Ae=e.fitsInViewportHorizontally||null!=fe&&fe<=A;return(e.fitsInViewportVertically||null!=Z&&Z<=w)&&Ae}return!1}_pushOverlayOnScreen(e,a,p){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const w=Se(a),A=this._viewportRect,Z=Math.max(e.x+w.width-A.width,0),fe=Math.max(e.y+w.height-A.height,0),Ce=Math.max(A.top-p.top-e.y,0),Ae=Math.max(A.left-p.left-e.x,0);let ke=0,T=0;return ke=w.width<=A.width?Ae||-Z:e.x<this._viewportMargin?A.left-p.left-e.x:0,T=w.height<=A.height?Ce||-fe:e.y<this._viewportMargin?A.top-p.top-e.y:0,this._previousPushAmount={x:ke,y:T},{x:e.x+ke,y:e.y+T}}_applyPosition(e,a){if(this._setTransformOrigin(e),this._setOverlayElementStyles(a,e),this._setBoundingBoxStyles(a,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const p=this._getScrollVisibility(),w=new be(e,p);this._positionChanges.next(w)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const a=this._boundingBox.querySelectorAll(this._transformOriginSelector);let p,w=e.overlayY;p="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let A=0;A<a.length;A++)a[A].style.transformOrigin=`${p} ${w}`}_calculateBoundingBoxRect(e,a){const p=this._viewportRect,w=this._isRtl();let A,Z,fe,ke,T,n;if("top"===a.overlayY)Z=e.y,A=p.height-Z+this._viewportMargin;else if("bottom"===a.overlayY)fe=p.height-e.y+2*this._viewportMargin,A=p.height-fe+this._viewportMargin;else{const s=Math.min(p.bottom-e.y+p.top,e.y),_=this._lastBoundingBoxSize.height;A=2*s,Z=e.y-s,A>_&&!this._isInitialRender&&!this._growAfterOpen&&(Z=e.y-_/2)}if("end"===a.overlayX&&!w||"start"===a.overlayX&&w)n=p.width-e.x+this._viewportMargin,ke=e.x-this._viewportMargin;else if("start"===a.overlayX&&!w||"end"===a.overlayX&&w)T=e.x,ke=p.right-e.x;else{const s=Math.min(p.right-e.x+p.left,e.x),_=this._lastBoundingBoxSize.width;ke=2*s,T=e.x-s,ke>_&&!this._isInitialRender&&!this._growAfterOpen&&(T=e.x-_/2)}return{top:Z,left:T,bottom:fe,right:n,width:ke,height:A}}_setBoundingBoxStyles(e,a){const p=this._calculateBoundingBoxRect(e,a);!this._isInitialRender&&!this._growAfterOpen&&(p.height=Math.min(p.height,this._lastBoundingBoxSize.height),p.width=Math.min(p.width,this._lastBoundingBoxSize.width));const w={};if(this._hasExactPosition())w.top=w.left="0",w.bottom=w.right=w.maxHeight=w.maxWidth="",w.width=w.height="100%";else{const A=this._overlayRef.getConfig().maxHeight,Z=this._overlayRef.getConfig().maxWidth;w.height=(0,x.HM)(p.height),w.top=(0,x.HM)(p.top),w.bottom=(0,x.HM)(p.bottom),w.width=(0,x.HM)(p.width),w.left=(0,x.HM)(p.left),w.right=(0,x.HM)(p.right),w.alignItems="center"===a.overlayX?"center":"end"===a.overlayX?"flex-end":"flex-start",w.justifyContent="center"===a.overlayY?"center":"bottom"===a.overlayY?"flex-end":"flex-start",A&&(w.maxHeight=(0,x.HM)(A)),Z&&(w.maxWidth=(0,x.HM)(Z))}this._lastBoundingBoxSize=p,ue(this._boundingBox.style,w)}_resetBoundingBoxStyles(){ue(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ue(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,a){const p={},w=this._hasExactPosition(),A=this._hasFlexibleDimensions,Z=this._overlayRef.getConfig();if(w){const ke=this._viewportRuler.getViewportScrollPosition();ue(p,this._getExactOverlayY(a,e,ke)),ue(p,this._getExactOverlayX(a,e,ke))}else p.position="static";let fe="",Ce=this._getOffset(a,"x"),Ae=this._getOffset(a,"y");Ce&&(fe+=`translateX(${Ce}px) `),Ae&&(fe+=`translateY(${Ae}px)`),p.transform=fe.trim(),Z.maxHeight&&(w?p.maxHeight=(0,x.HM)(Z.maxHeight):A&&(p.maxHeight="")),Z.maxWidth&&(w?p.maxWidth=(0,x.HM)(Z.maxWidth):A&&(p.maxWidth="")),ue(this._pane.style,p)}_getExactOverlayY(e,a,p){let w={top:"",bottom:""},A=this._getOverlayPoint(a,this._overlayRect,e);return this._isPushed&&(A=this._pushOverlayOnScreen(A,this._overlayRect,p)),"bottom"===e.overlayY?w.bottom=this._document.documentElement.clientHeight-(A.y+this._overlayRect.height)+"px":w.top=(0,x.HM)(A.y),w}_getExactOverlayX(e,a,p){let Z,w={left:"",right:""},A=this._getOverlayPoint(a,this._overlayRect,e);return this._isPushed&&(A=this._pushOverlayOnScreen(A,this._overlayRect,p)),Z=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===Z?w.right=this._document.documentElement.clientWidth-(A.x+this._overlayRect.width)+"px":w.left=(0,x.HM)(A.x),w}_getScrollVisibility(){const e=this._getOriginRect(),a=this._pane.getBoundingClientRect(),p=this._scrollables.map(w=>w.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:m(e,p),isOriginOutsideView:Y(e,p),isOverlayClipped:m(a,p),isOverlayOutsideView:Y(a,p)}}_subtractOverflows(e,...a){return a.reduce((p,w)=>p-Math.max(w,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,a=this._document.documentElement.clientHeight,p=this._viewportRuler.getViewportScrollPosition();return{top:p.top+this._viewportMargin,left:p.left+this._viewportMargin,right:p.left+e-this._viewportMargin,bottom:p.top+a-this._viewportMargin,width:e-2*this._viewportMargin,height:a-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,a){return"x"===a?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&(0,x.Eq)(e).forEach(a=>{""!==a&&-1===this._appliedPanelClasses.indexOf(a)&&(this._appliedPanelClasses.push(a),this._pane.classList.add(a))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof t.SBq)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const a=e.width||0,p=e.height||0;return{top:e.y,bottom:e.y+p,left:e.x,right:e.x+a,height:p,width:a}}}function ue(i,e){for(let a in e)e.hasOwnProperty(a)&&(i[a]=e[a]);return i}function J(i){if("number"!=typeof i&&null!=i){const[e,a]=i.split(G);return a&&"px"!==a?null:parseFloat(e)}return i||null}function Se(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const ie="cdk-global-overlay-wrapper";class L{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const a=e.getConfig();this._overlayRef=e,this._width&&!a.width&&e.updateSize({width:this._width}),this._height&&!a.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(ie),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,a=this._overlayRef.hostElement.style,p=this._overlayRef.getConfig(),{width:w,height:A,maxWidth:Z,maxHeight:fe}=p,Ce=!("100%"!==w&&"100vw"!==w||Z&&"100%"!==Z&&"100vw"!==Z),Ae=!("100%"!==A&&"100vh"!==A||fe&&"100%"!==fe&&"100vh"!==fe),ke=this._xPosition,T=this._xOffset,n="rtl"===this._overlayRef.getConfig().direction;let s="",_="",c="";Ce?c="flex-start":"center"===ke?(c="center",n?_=T:s=T):n?"left"===ke||"end"===ke?(c="flex-end",s=T):("right"===ke||"start"===ke)&&(c="flex-start",_=T):"left"===ke||"start"===ke?(c="flex-start",s=T):("right"===ke||"end"===ke)&&(c="flex-end",_=T),e.position=this._cssPosition,e.marginLeft=Ce?"0":s,e.marginTop=Ae?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=Ce?"0":_,a.justifyContent=c,a.alignItems=Ae?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,a=this._overlayRef.hostElement,p=a.style;a.classList.remove(ie),p.justifyContent=p.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let se=(()=>{class i{constructor(a,p,w,A){this._viewportRuler=a,this._document=p,this._platform=w,this._overlayContainer=A}global(){return new L}flexibleConnectedTo(a){return new Q(a,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(a){return new(a||i)(t.LFG(o.rL),t.LFG(l.K0),t.LFG(oe.t4),t.LFG(j))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),z=0,te=(()=>{class i{constructor(a,p,w,A,Z,fe,Ce,Ae,ke,T,n,s){this.scrollStrategies=a,this._overlayContainer=p,this._componentFactoryResolver=w,this._positionBuilder=A,this._keyboardDispatcher=Z,this._injector=fe,this._ngZone=Ce,this._document=Ae,this._directionality=ke,this._location=T,this._outsideClickDispatcher=n,this._animationsModuleType=s}create(a){const p=this._createHostElement(),w=this._createPaneElement(p),A=this._createPortalOutlet(w),Z=new S(a);return Z.direction=Z.direction||this._directionality.value,new ae(A,p,w,Z,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(a){const p=this._document.createElement("div");return p.id="cdk-overlay-"+z++,p.classList.add("cdk-overlay-pane"),a.appendChild(p),p}_createHostElement(){const a=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(a),a}_createPortalOutlet(a){return this._appRef||(this._appRef=this._injector.get(t.z2F)),new me.u0(a,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(a){return new(a||i)(t.LFG(g),t.LFG(j),t.LFG(t._Vd),t.LFG(se),t.LFG(ve),t.LFG(t.zs3),t.LFG(t.R0b),t.LFG(l.K0),t.LFG(R.Is),t.LFG(l.Ye),t.LFG(H),t.LFG(t.QbO,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac}),i})();const Ie=[{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"}],Pe=new t.OlP("cdk-connected-overlay-scroll-strategy");let Fe=(()=>{class i{constructor(a){this.elementRef=a}}return i.\u0275fac=function(a){return new(a||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Re=(()=>{class i{constructor(a,p,w,A,Z){this._overlay=a,this._dir=Z,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=b.w0.EMPTY,this._attachSubscription=b.w0.EMPTY,this._detachSubscription=b.w0.EMPTY,this._positionSubscription=b.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new t.vpe,this.positionChange=new t.vpe,this.attach=new t.vpe,this.detach=new t.vpe,this.overlayKeydown=new t.vpe,this.overlayOutsideClick=new t.vpe,this._templatePortal=new me.UE(p,w),this._scrollStrategyFactory=A,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(a){this._offsetX=a,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(a){this._offsetY=a,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(a){this._hasBackdrop=(0,x.Ig)(a)}get lockPosition(){return this._lockPosition}set lockPosition(a){this._lockPosition=(0,x.Ig)(a)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(a){this._flexibleDimensions=(0,x.Ig)(a)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(a){this._growAfterOpen=(0,x.Ig)(a)}get push(){return this._push}set push(a){this._push=(0,x.Ig)(a)}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(a){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),a.origin&&this.open&&this._position.apply()),a.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ie);const a=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=a.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=a.detachments().subscribe(()=>this.detach.emit()),a.keydownEvents().subscribe(p=>{this.overlayKeydown.next(p),p.keyCode===$.hY&&!this.disableClose&&!(0,$.Vb)(p)&&(p.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(p=>{this.overlayOutsideClick.next(p)})}_buildConfig(){const a=this._position=this.positionStrategy||this._createPositionStrategy(),p=new S({direction:this._dir,positionStrategy:a,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(a){const p=this.positions.map(w=>({originX:w.originX,originY:w.originY,overlayX:w.overlayX,overlayY:w.overlayY,offsetX:w.offsetX||this.offsetX,offsetY:w.offsetY||this.offsetY,panelClass:w.panelClass||void 0}));return a.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 a=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(a),a}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Fe?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(a=>{this.backdropClick.emit(a)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function F(i,e=!1){return(0,re.e)((a,p)=>{let w=0;a.subscribe((0,V.x)(p,A=>{const Z=i(A,w++);(Z||e)&&p.next(A),!Z&&p.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(a=>{this.positionChange.emit(a),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(a){return new(a||i)(t.Y36(te),t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(Pe),t.Y36(R.Is,8))},i.\u0275dir=t.lG2({type:i,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:[t.TTD]}),i})();const we={provide:Pe,deps:[te],useFactory:function Ue(i){return()=>i.scrollStrategies.reposition()}};let O=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[te,we],imports:[R.vT,me.eL,o.Cl,o.Cl]}),i})()},3353:(Le,Me,r)=>{r.d(Me,{Mq:()=>N,Oy:()=>W,ht:()=>ne,i$:()=>re,kV:()=>he,qK:()=>ce,sA:()=>pe,t4:()=>x});var o=r(4650),l=r(6895);let t;try{t=typeof Intl<"u"&&Intl.v8BreakIterator}catch{t=!1}let R,x=(()=>{class Y{constructor(E){this._platformId=E,this.isBrowser=this._platformId?(0,l.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&&!t)&&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 Y.\u0275fac=function(E){return new(E||Y)(o.LFG(o.Lbi))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})();const me=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ce(){if(R)return R;if("object"!=typeof document||!document)return R=new Set(me),R;let Y=document.createElement("input");return R=new Set(me.filter(m=>(Y.setAttribute("type",m),Y.type===m))),R}let b,F,$;function re(Y){return function K(){if(null==b&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>b=!0}))}finally{b=b||!1}return b}()?Y:!!Y.capture}function N(){if(null==F){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return F=!1,F;if("scrollBehavior"in document.documentElement.style)F=!0;else{const Y=Element.prototype.scrollTo;F=!!Y&&!/\{\s*\[native code\]\s*\}/.test(Y.toString())}}return F}function he(Y){if(function ye(){if(null==$){const Y=typeof document<"u"?document.head:null;$=!(!Y||!Y.createShadowRoot&&!Y.attachShadow)}return $}()){const m=Y.getRootNode?Y.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&m instanceof ShadowRoot)return m}return null}function ne(){let Y=typeof document<"u"&&document?document.activeElement:null;for(;Y&&Y.shadowRoot;){const m=Y.shadowRoot.activeElement;if(m===Y)break;Y=m}return Y}function pe(Y){return Y.composedPath?Y.composedPath()[0]:Y.target}function W(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Le,Me,r)=>{r.d(Me,{C5:()=>K,Pl:()=>ne,UE:()=>re,eL:()=>W,en:()=>F,u0:()=>C});var o=r(4650),l=r(6895);class b{attach(E){return this._attachedHost=E,E.attach(this)}detach(){let E=this._attachedHost;null!=E&&(this._attachedHost=null,E.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(E){this._attachedHost=E}}class K extends b{constructor(E,g,S,ee){super(),this.component=E,this.viewContainerRef=g,this.injector=S,this.componentFactoryResolver=ee}}class re extends b{constructor(E,g,S,ee){super(),this.templateRef=E,this.viewContainerRef=g,this.context=S,this.injector=ee}get origin(){return this.templateRef.elementRef}attach(E,g=this.context){return this.context=g,super.attach(E)}detach(){return this.context=void 0,super.detach()}}class V extends b{constructor(E){super(),this.element=E instanceof o.SBq?E.nativeElement:E}}class F{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(E){return E instanceof K?(this._attachedPortal=E,this.attachComponentPortal(E)):E instanceof re?(this._attachedPortal=E,this.attachTemplatePortal(E)):this.attachDomPortal&&E instanceof V?(this._attachedPortal=E,this.attachDomPortal(E)):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(E){this._disposeFn=E}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class C extends F{constructor(E,g,S,ee,ge){super(),this.outletElement=E,this._componentFactoryResolver=g,this._appRef=S,this._defaultInjector=ee,this.attachDomPortal=be=>{const xe=be.element,Ee=this._document.createComment("dom-portal");xe.parentNode.insertBefore(Ee,xe),this.outletElement.appendChild(xe),this._attachedPortal=be,super.setDisposeFn(()=>{Ee.parentNode&&Ee.parentNode.replaceChild(xe,Ee)})},this._document=ge}attachComponentPortal(E){const S=(E.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(E.component);let ee;return E.viewContainerRef?(ee=E.viewContainerRef.createComponent(S,E.viewContainerRef.length,E.injector||E.viewContainerRef.injector),this.setDisposeFn(()=>ee.destroy())):(ee=S.create(E.injector||this._defaultInjector||o.zs3.NULL),this._appRef.attachView(ee.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ee.hostView),ee.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ee)),this._attachedPortal=E,ee}attachTemplatePortal(E){let g=E.viewContainerRef,S=g.createEmbeddedView(E.templateRef,E.context,{injector:E.injector});return S.rootNodes.forEach(ee=>this.outletElement.appendChild(ee)),S.detectChanges(),this.setDisposeFn(()=>{let ee=g.indexOf(S);-1!==ee&&g.remove(ee)}),this._attachedPortal=E,S}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(E){return E.hostView.rootNodes[0]}}let ne=(()=>{class m extends F{constructor(g,S,ee){super(),this._componentFactoryResolver=g,this._viewContainerRef=S,this._isInitialized=!1,this.attached=new o.vpe,this.attachDomPortal=ge=>{const be=ge.element,xe=this._document.createComment("dom-portal");ge.setAttachedHost(this),be.parentNode.insertBefore(xe,be),this._getRootNode().appendChild(be),this._attachedPortal=ge,super.setDisposeFn(()=>{xe.parentNode&&xe.parentNode.replaceChild(be,xe)})},this._document=ee}get portal(){return this._attachedPortal}set portal(g){this.hasAttached()&&!g&&!this._isInitialized||(this.hasAttached()&&super.detach(),g&&super.attach(g),this._attachedPortal=g||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(g){g.setAttachedHost(this);const S=null!=g.viewContainerRef?g.viewContainerRef:this._viewContainerRef,ge=(g.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(g.component),be=S.createComponent(ge,S.length,g.injector||S.injector);return S!==this._viewContainerRef&&this._getRootNode().appendChild(be.hostView.rootNodes[0]),super.setDisposeFn(()=>be.destroy()),this._attachedPortal=g,this._attachedRef=be,this.attached.emit(be),be}attachTemplatePortal(g){g.setAttachedHost(this);const S=this._viewContainerRef.createEmbeddedView(g.templateRef,g.context,{injector:g.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=g,this._attachedRef=S,this.attached.emit(S),S}_getRootNode(){const g=this._viewContainerRef.element.nativeElement;return g.nodeType===g.ELEMENT_NODE?g:g.parentNode}}return m.\u0275fac=function(g){return new(g||m)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36(l.K0))},m.\u0275dir=o.lG2({type:m,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.qOj]}),m})(),W=(()=>{class m{}return m.\u0275fac=function(g){return new(g||m)},m.\u0275mod=o.oAB({type:m}),m.\u0275inj=o.cJS({}),m})()},7376:(Le,Me,r)=>{r.d(Me,{Cl:()=>Ee,ZD:()=>xe,mF:()=>W,rL:()=>E});var o=r(1281),l=r(4650),t=r(7579),x=r(9646),oe=r(8306),R=r(4968),b=(r(6406),r(3101),r(3601)),K=r(9300),re=r(3353),V=r(6895),F=r(445);let W=(()=>{class _e{constructor(H,j,ae){this._ngZone=H,this._platform=j,this._scrolled=new t.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ae}register(H){this.scrollContainers.has(H)||this.scrollContainers.set(H,H.elementScrolled().subscribe(()=>this._scrolled.next(H)))}deregister(H){const j=this.scrollContainers.get(H);j&&(j.unsubscribe(),this.scrollContainers.delete(H))}scrolled(H=20){return this._platform.isBrowser?new oe.y(j=>{this._globalSubscription||this._addGlobalListener();const ae=H>0?this._scrolled.pipe((0,b.e)(H)).subscribe(j):this._scrolled.subscribe(j);return this._scrolledCount++,()=>{ae.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,x.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((H,j)=>this.deregister(j)),this._scrolled.complete()}ancestorScrolled(H,j){const ae=this.getAncestorScrollContainers(H);return this.scrolled(j).pipe((0,K.h)(P=>!P||ae.indexOf(P)>-1))}getAncestorScrollContainers(H){const j=[];return this.scrollContainers.forEach((ae,P)=>{this._scrollableContainsElement(P,H)&&j.push(P)}),j}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(H,j){let ae=(0,o.fI)(j),P=H.getElementRef().nativeElement;do{if(ae==P)return!0}while(ae=ae.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const H=this._getWindow();return(0,R.R)(H.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return _e.\u0275fac=function(H){return new(H||_e)(l.LFG(l.R0b),l.LFG(re.t4),l.LFG(V.K0,8))},_e.\u0275prov=l.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),E=(()=>{class _e{constructor(H,j,ae){this._platform=H,this._change=new t.x,this._changeListener=P=>{this._change.next(P)},this._document=ae,j.runOutsideAngular(()=>{if(H.isBrowser){const P=this._getWindow();P.addEventListener("resize",this._changeListener),P.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const H=this._getWindow();H.removeEventListener("resize",this._changeListener),H.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const H={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),H}getViewportRect(){const H=this.getViewportScrollPosition(),{width:j,height:ae}=this.getViewportSize();return{top:H.top,left:H.left,bottom:H.top+ae,right:H.left+j,height:ae,width:j}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const H=this._document,j=this._getWindow(),ae=H.documentElement,P=ae.getBoundingClientRect();return{top:-P.top||H.body.scrollTop||j.scrollY||ae.scrollTop||0,left:-P.left||H.body.scrollLeft||j.scrollX||ae.scrollLeft||0}}change(H=20){return H>0?this._change.pipe((0,b.e)(H)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const H=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:H.innerWidth,height:H.innerHeight}:{width:0,height:0}}}return _e.\u0275fac=function(H){return new(H||_e)(l.LFG(re.t4),l.LFG(l.R0b),l.LFG(V.K0,8))},_e.\u0275prov=l.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),xe=(()=>{class _e{}return _e.\u0275fac=function(H){return new(H||_e)},_e.\u0275mod=l.oAB({type:_e}),_e.\u0275inj=l.cJS({}),_e})(),Ee=(()=>{class _e{}return _e.\u0275fac=function(H){return new(H||_e)},_e.\u0275mod=l.oAB({type:_e}),_e.\u0275inj=l.cJS({imports:[F.vT,xe,F.vT,xe]}),_e})()},9101:(Le,Me,r)=>{r.d(Me,{lW:()=>K,ot:()=>V});var o=r(4650),l=r(3238),t=r(2687);const x=["mat-button",""],oe=["*"],ce=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],b=(0,l.pj)((0,l.Id)((0,l.Kr)(class{constructor(F){this._elementRef=F}})));let K=(()=>{class F extends b{constructor(C,$,ye){super(C),this._focusMonitor=$,this._animationMode=ye,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const he of ce)this._hasHostAttributes(he)&&this._getHostElement().classList.add(he);C.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(C,$){C?this._focusMonitor.focusVia(this._getHostElement(),C,$):this._getHostElement().focus($)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...C){return C.some($=>this._getHostElement().hasAttribute($))}}return F.\u0275fac=function(C){return new(C||F)(o.Y36(o.SBq),o.Y36(t.tE),o.Y36(o.QbO,8))},F.\u0275cmp=o.Xpm({type:F,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(C,$){if(1&C&&o.Gf(l.wG,5),2&C){let ye;o.iGM(ye=o.CRH())&&($.ripple=ye.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(C,$){2&C&&(o.uIk("disabled",$.disabled||null),o.ekj("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-button-disabled",$.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.qOj],attrs:x,ngContentSelectors:oe,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(C,$){1&C&&(o.F$t(),o.TgZ(0,"span",0),o.Hsn(1),o.qZA(),o._UZ(2,"span",1)(3,"span",2)),2&C&&(o.xp6(2),o.ekj("mat-button-ripple-round",$.isRoundButton||$.isIconButton),o.Q6J("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._getHostElement()))},dependencies:[l.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}),F})(),V=(()=>{class F{}return F.\u0275fac=function(C){return new(C||F)},F.\u0275mod=o.oAB({type:F}),F.\u0275inj=o.cJS({imports:[l.si,l.BQ,l.BQ]}),F})()},6709:(Le,Me,r)=>{r.d(Me,{oG:()=>he,p9:()=>Y});var o=r(2687),l=r(1281),t=r(4650),x=r(4006),oe=r(3238),R=r(9643);const me=["input"],ce=function(m){return{enterDuration:m}},b=["*"],K=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:re});function re(){return{color:"accent",clickAction:"check-indeterminate"}}let V=0;const F=re(),N={provide:x.JU,useExisting:(0,t.Gpc)(()=>he),multi:!0};class C{}const $=(0,oe.sb)((0,oe.pj)((0,oe.Kr)((0,oe.Id)(class{constructor(m){this._elementRef=m}}))));let ye=(()=>{class m extends ${constructor(g,S,ee,ge,be,xe,Ee){super(S),this._changeDetectorRef=ee,this._ngZone=ge,this._animationMode=xe,this._options=Ee,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||F,this.color=this.defaultColor=this._options.color||F.color,this.tabIndex=parseInt(be)||0,this.id=this._uniqueId=`${g}${++V}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(g){this._required=(0,l.Ig)(g)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(g){const S=(0,l.Ig)(g);S!=this.checked&&(this._checked=S,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(g){const S=(0,l.Ig)(g);S!==this.disabled&&(this._disabled=S,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(g){const S=g!=this._indeterminate;this._indeterminate=(0,l.Ig)(g),S&&(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(g){this.checked=!!g}registerOnChange(g){this._controlValueAccessorChangeFn=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this.disabled=g}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(g){let S=this._currentCheckState,ee=this._getAnimationTargetElement();if(S!==g&&ee&&(this._currentAnimationClass.length>0&&ee.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(S,g),this._currentCheckState=g,this._currentAnimationClass.length>0)){ee.classList.add(this._currentAnimationClass);const ge=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ee.classList.remove(ge)},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 g=this._options?.clickAction;this.disabled||"noop"===g?!this.disabled&&"noop"===g&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==g&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(g){g.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(g,S){if("NoopAnimations"===this._animationMode)return"";switch(g){case 0:if(1===S)return this._animationClasses.uncheckedToChecked;if(3==S)return this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===S?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===S?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===S?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(g){const S=this._inputElement;S&&(S.nativeElement.indeterminate=g)}}return m.\u0275fac=function(g){t.$Z()},m.\u0275dir=t.lG2({type:m,viewQuery:function(g,S){if(1&g&&(t.Gf(me,5),t.Gf(oe.wG,5)),2&g){let ee;t.iGM(ee=t.CRH())&&(S._inputElement=ee.first),t.iGM(ee=t.CRH())&&(S.ripple=ee.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:[t.qOj]}),m})(),he=(()=>{class m extends ye{constructor(g,S,ee,ge,be,xe,Ee){super("mat-checkbox-",g,S,ge,be,xe,Ee),this._focusMonitor=ee,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(g){const S=new C;return S.source=this,S.checked=g,S}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(g=>{g||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(g){g.stopPropagation(),super._handleInputClick()}focus(g,S){g?this._focusMonitor.focusVia(this._inputElement,g,S):this._inputElement.nativeElement.focus(S)}}return m.\u0275fac=function(g){return new(g||m)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(o.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(K,8))},m.\u0275cmp=t.Xpm({type:m,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(g,S){2&g&&(t.Ikx("id",S.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",S.indeterminate)("mat-checkbox-checked",S.checked)("mat-checkbox-disabled",S.disabled)("mat-checkbox-label-before","before"==S.labelPosition)("_mat-animation-noopable","NoopAnimations"===S._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([N]),t.qOj],ngContentSelectors:b,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(g,S){if(1&g&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(ge){return S._onInteractionEvent(ge)})("click",function(ge){return S._onInputClick(ge)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA()(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return S._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&g){const ee=t.MAs(1),ge=t.MAs(13);t.uIk("for",S.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!ge.textContent||!ge.textContent.trim()),t.xp6(1),t.Q6J("id",S.inputId)("required",S.required)("checked",S.checked)("disabled",S.disabled)("tabIndex",S.tabIndex),t.uIk("value",S.value)("name",S.name)("aria-label",S.ariaLabel||null)("aria-labelledby",S.ariaLabelledby)("aria-checked",S._getAriaChecked())("aria-describedby",S.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",ee)("matRippleDisabled",S._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,ce,"NoopAnimations"===S._animationMode?0:150))}},dependencies:[oe.wG,R.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}),m})(),W=(()=>{class m{}return m.\u0275fac=function(g){return new(g||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({}),m})(),Y=(()=>{class m{}return m.\u0275fac=function(g){return new(g||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[oe.si,oe.BQ,R.Q8,W,oe.BQ,W]}),m})()},3238:(Le,Me,r)=>{r.d(Me,{_A:()=>ve,rD:()=>Se,sG:()=>H,Ad:()=>Ee,K7:()=>Z,HF:()=>a,Y2:()=>we,BQ:()=>W,XK:()=>ue,ey:()=>T,Ng:()=>_,wG:()=>O,si:()=>h,IR:()=>Re,CB:()=>n,jH:()=>s,pj:()=>S,Kr:()=>ee,Id:()=>g,FD:()=>be,dB:()=>xe,sb:()=>ge});var o=r(4650),l=r(2687),t=r(445),oe=r(6895),R=r(3353),me=r(1281),ce=r(8306),b=r(7579),K=r(9521);function F(c,u){if(1&c&&o._UZ(0,"mat-pseudo-checkbox",4),2&c){const d=o.oxw();o.Q6J("state",d.selected?"checked":"unchecked")("disabled",d.disabled)}}function N(c,u){if(1&c&&(o.TgZ(0,"span",5),o._uU(1),o.qZA()),2&c){const d=o.oxw();o.xp6(1),o.hij("(",d.group.label,")")}}const C=["*"],pe=new o.OlP("mat-sanity-checks",{providedIn:"root",factory:function ne(){return!0}});let W=(()=>{class c{constructor(d,M,y){this._sanityChecks=M,this._document=y,this._hasDoneGlobalChecks=!1,d._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(d){return!(0,R.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[d])}}return c.\u0275fac=function(d){return new(d||c)(o.LFG(l.qm),o.LFG(pe,8),o.LFG(oe.K0))},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({imports:[t.vT,t.vT]}),c})();function g(c){return class extends c{constructor(...u){super(...u),this._disabled=!1}get disabled(){return this._disabled}set disabled(u){this._disabled=(0,me.Ig)(u)}}}function S(c,u){return class extends c{constructor(...d){super(...d),this.defaultColor=u,this.color=u}get color(){return this._color}set color(d){const M=d||this.defaultColor;M!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),M&&this._elementRef.nativeElement.classList.add(`mat-${M}`),this._color=M)}}}function ee(c){return class extends c{constructor(...u){super(...u),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(u){this._disableRipple=(0,me.Ig)(u)}}}function ge(c,u=0){return class extends c{constructor(...d){super(...d),this._tabIndex=u,this.defaultTabIndex=u}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(d){this._tabIndex=null!=d?(0,me.su)(d):this.defaultTabIndex}}}function be(c){return class extends c{constructor(...u){super(...u),this.errorState=!1}updateErrorState(){const u=this.errorState,v=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);v!==u&&(this.errorState=v,this.stateChanges.next())}}}function xe(c){return class extends c{constructor(...u){super(...u),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ce.y(d=>{this._isInitialized?this._notifySubscriber(d):this._pendingSubscribers.push(d)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(u){u.next(),u.complete()}}}const Ee=new o.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function _e(){return(0,o.f3M)(o.soG)}});class ve{constructor(){this._localeChanges=new b.x,this.localeChanges=this._localeChanges}getValidDateOrNull(u){return this.isDateInstance(u)&&this.isValid(u)?u:null}deserialize(u){return null==u||this.isDateInstance(u)&&this.isValid(u)?u:this.invalid()}setLocale(u){this.locale=u,this._localeChanges.next()}compareDate(u,d){return this.getYear(u)-this.getYear(d)||this.getMonth(u)-this.getMonth(d)||this.getDate(u)-this.getDate(d)}sameDate(u,d){if(u&&d){let M=this.isValid(u),y=this.isValid(d);return M&&y?!this.compareDate(u,d):M==y}return u==d}clampDate(u,d,M){return d&&this.compareDate(u,d)<0?d:M&&this.compareDate(u,M)>0?M:u}}const H=new o.OlP("mat-date-formats"),j=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ae(c,u){const d=Array(c);for(let M=0;M<c;M++)d[M]=u(M);return d}let P=(()=>{class c extends ve{constructor(d,M){super(),this.useUtcForDisplay=!1,super.setLocale(d)}getYear(d){return d.getFullYear()}getMonth(d){return d.getMonth()}getDate(d){return d.getDate()}getDayOfWeek(d){return d.getDay()}getMonthNames(d){const M=new Intl.DateTimeFormat(this.locale,{month:d,timeZone:"utc"});return ae(12,y=>this._format(M,new Date(2017,y,1)))}getDateNames(){const d=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ae(31,M=>this._format(d,new Date(2017,0,M+1)))}getDayOfWeekNames(d){const M=new Intl.DateTimeFormat(this.locale,{weekday:d,timeZone:"utc"});return ae(7,y=>this._format(M,new Date(2017,0,y+1)))}getYearName(d){const M=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(M,d)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(d){return this.getDate(this._createDateWithOverflow(this.getYear(d),this.getMonth(d)+1,0))}clone(d){return new Date(d.getTime())}createDate(d,M,y){let v=this._createDateWithOverflow(d,M,y);return v.getMonth(),v}today(){return new Date}parse(d){return"number"==typeof d?new Date(d):d?new Date(Date.parse(d)):null}format(d,M){if(!this.isValid(d))throw Error("NativeDateAdapter: Cannot format invalid date.");const y=new Intl.DateTimeFormat(this.locale,{...M,timeZone:"utc"});return this._format(y,d)}addCalendarYears(d,M){return this.addCalendarMonths(d,12*M)}addCalendarMonths(d,M){let y=this._createDateWithOverflow(this.getYear(d),this.getMonth(d)+M,this.getDate(d));return this.getMonth(y)!=((this.getMonth(d)+M)%12+12)%12&&(y=this._createDateWithOverflow(this.getYear(y),this.getMonth(y),0)),y}addCalendarDays(d,M){return this._createDateWithOverflow(this.getYear(d),this.getMonth(d),this.getDate(d)+M)}toIso8601(d){return[d.getUTCFullYear(),this._2digit(d.getUTCMonth()+1),this._2digit(d.getUTCDate())].join("-")}deserialize(d){if("string"==typeof d){if(!d)return null;if(j.test(d)){let M=new Date(d);if(this.isValid(M))return M}}return super.deserialize(d)}isDateInstance(d){return d instanceof Date}isValid(d){return!isNaN(d.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(d,M,y){const v=new Date;return v.setFullYear(d,M,y),v.setHours(0,0,0,0),v}_2digit(d){return("00"+d).slice(-2)}_format(d,M){const y=new Date;return y.setUTCFullYear(M.getFullYear(),M.getMonth(),M.getDate()),y.setUTCHours(M.getHours(),M.getMinutes(),M.getSeconds(),M.getMilliseconds()),d.format(y)}}return c.\u0275fac=function(d){return new(d||c)(o.LFG(Ee,8),o.LFG(R.t4))},c.\u0275prov=o.Yz7({token:c,factory:c.\u0275fac}),c})();const G={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 Q=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({providers:[{provide:ve,useClass:P}]}),c})(),ue=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({providers:[{provide:H,useValue:G}],imports:[Q]}),c})(),Se=(()=>{class c{isErrorState(d,M){return!!(d&&d.invalid&&(d.touched||M&&M.submitted))}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275prov=o.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();class se{constructor(u,d,M,y=!1){this._renderer=u,this.element=d,this.config=M,this._animationForciblyDisabledThroughCss=y,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const z={enterDuration:225,exitDuration:150},Ie=(0,R.i$)({passive:!0}),Pe=["mousedown","touchstart"],Fe=["mouseup","mouseleave","touchend","touchcancel"];class Re{constructor(u,d,M,y){this._target=u,this._ngZone=d,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,y.isBrowser&&(this._containerElement=(0,me.fI)(M))}fadeInRipple(u,d,M={}){const y=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),v={...z,...M.animation};M.centered&&(u=y.left+y.width/2,d=y.top+y.height/2);const f=M.radius||function Ue(c,u,d){const M=Math.max(Math.abs(c-d.left),Math.abs(c-d.right)),y=Math.max(Math.abs(u-d.top),Math.abs(u-d.bottom));return Math.sqrt(M*M+y*y)}(u,d,y),D=u-y.left,B=d-y.top,le=v.enterDuration,De=document.createElement("div");De.classList.add("mat-ripple-element"),De.style.left=D-f+"px",De.style.top=B-f+"px",De.style.height=2*f+"px",De.style.width=2*f+"px",null!=M.color&&(De.style.backgroundColor=M.color),De.style.transitionDuration=`${le}ms`,this._containerElement.appendChild(De);const Be=window.getComputedStyle(De),de=Be.transitionDuration,k="none"===Be.transitionProperty||"0s"===de||"0s, 0s"===de,q=new se(this,De,M,k);De.style.transform="scale3d(1, 1, 1)",q.state=0,M.persistent||(this._mostRecentTransientRipple=q);let Te=null;return!k&&(le||v.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Oe=()=>this._finishRippleTransition(q),Ne=()=>this._destroyRipple(q);De.addEventListener("transitionend",Oe),De.addEventListener("transitioncancel",Ne),Te={onTransitionEnd:Oe,onTransitionCancel:Ne}}),this._activeRipples.set(q,Te),(k||!le)&&this._finishRippleTransition(q),q}fadeOutRipple(u){if(2===u.state||3===u.state)return;const d=u.element,M={...z,...u.config.animation};d.style.transitionDuration=`${M.exitDuration}ms`,d.style.opacity="0",u.state=2,(u._animationForciblyDisabledThroughCss||!M.exitDuration)&&this._finishRippleTransition(u)}fadeOutAll(){this._getActiveRipples().forEach(u=>u.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(u=>{u.config.persistent||u.fadeOut()})}setupTriggerEvents(u){const d=(0,me.fI)(u);!d||d===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=d,this._registerEvents(Pe))}handleEvent(u){"mousedown"===u.type?this._onMousedown(u):"touchstart"===u.type?this._onTouchStart(u):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Fe),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(u){0===u.state?this._startFadeOutTransition(u):2===u.state&&this._destroyRipple(u)}_startFadeOutTransition(u){const d=u===this._mostRecentTransientRipple,{persistent:M}=u.config;u.state=1,!M&&(!d||!this._isPointerDown)&&u.fadeOut()}_destroyRipple(u){const d=this._activeRipples.get(u)??null;this._activeRipples.delete(u),this._activeRipples.size||(this._containerRect=null),u===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),u.state=3,null!==d&&(u.element.removeEventListener("transitionend",d.onTransitionEnd),u.element.removeEventListener("transitioncancel",d.onTransitionCancel)),u.element.remove()}_onMousedown(u){const d=(0,l.X6)(u),M=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!d&&!M&&(this._isPointerDown=!0,this.fadeInRipple(u.clientX,u.clientY,this._target.rippleConfig))}_onTouchStart(u){if(!this._target.rippleDisabled&&!(0,l.yG)(u)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const d=u.changedTouches;for(let M=0;M<d.length;M++)this.fadeInRipple(d[M].clientX,d[M].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(u=>{!u.config.persistent&&(1===u.state||u.config.terminateOnPointerUp&&0===u.state)&&u.fadeOut()}))}_registerEvents(u){this._ngZone.runOutsideAngular(()=>{u.forEach(d=>{this._triggerElement.addEventListener(d,this,Ie)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Pe.forEach(u=>{this._triggerElement.removeEventListener(u,this,Ie)}),this._pointerUpEventsRegistered&&Fe.forEach(u=>{this._triggerElement.removeEventListener(u,this,Ie)}))}}const we=new o.OlP("mat-ripple-global-options");let O=(()=>{class c{constructor(d,M,y,v,f){this._elementRef=d,this._animationMode=f,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=v||{},this._rippleRenderer=new Re(this,M,d,y)}get disabled(){return this._disabled}set disabled(d){d&&this.fadeOutAllNonPersistent(),this._disabled=d,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(d){this._trigger=d,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(d,M=0,y){return"number"==typeof d?this._rippleRenderer.fadeInRipple(d,M,{...this.rippleConfig,...y}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...d})}}return c.\u0275fac=function(d){return new(d||c)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(R.t4),o.Y36(we,8),o.Y36(o.QbO,8))},c.\u0275dir=o.lG2({type:c,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(d,M){2&d&&o.ekj("mat-ripple-unbounded",M.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"]}),c})(),h=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({imports:[W,W]}),c})(),i=(()=>{class c{constructor(d){this._animationMode=d,this.state="unchecked",this.disabled=!1}}return c.\u0275fac=function(d){return new(d||c)(o.Y36(o.QbO,8))},c.\u0275cmp=o.Xpm({type:c,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(d,M){2&d&&o.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===M.state)("mat-pseudo-checkbox-checked","checked"===M.state)("mat-pseudo-checkbox-disabled",M.disabled)("_mat-animation-noopable","NoopAnimations"===M._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(d,M){},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}),c})(),e=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({imports:[W]}),c})();const a=new o.OlP("MAT_OPTION_PARENT_COMPONENT"),Z=new o.OlP("MatOptgroup");let Ce=0;class Ae{constructor(u,d=!1){this.source=u,this.isUserInput=d}}let ke=(()=>{class c{constructor(d,M,y,v){this._element=d,this._changeDetectorRef=M,this._parent=y,this.group=v,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ce++,this.onSelectionChange=new o.vpe,this._stateChanges=new b.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(d){this._disabled=(0,me.Ig)(d)}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(d,M){const y=this._getHostElement();"function"==typeof y.focus&&y.focus(M)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(d){(d.keyCode===K.K5||d.keyCode===K.L_)&&!(0,K.Vb)(d)&&(this._selectViaInteraction(),d.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 d=this.viewValue;d!==this._mostRecentViewValue&&(this._mostRecentViewValue=d,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(d=!1){this.onSelectionChange.emit(new Ae(this,d))}}return c.\u0275fac=function(d){o.$Z()},c.\u0275dir=o.lG2({type:c,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),c})(),T=(()=>{class c extends ke{constructor(d,M,y,v){super(d,M,y,v)}}return c.\u0275fac=function(d){return new(d||c)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(a,8),o.Y36(Z,8))},c.\u0275cmp=o.Xpm({type:c,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(d,M){1&d&&o.NdJ("click",function(){return M._selectViaInteraction()})("keydown",function(v){return M._handleKeydown(v)}),2&d&&(o.Ikx("id",M.id),o.uIk("tabindex",M._getTabIndex())("aria-selected",M._getAriaSelected())("aria-disabled",M.disabled.toString()),o.ekj("mat-selected",M.selected)("mat-option-multiple",M.multiple)("mat-active",M.active)("mat-option-disabled",M.disabled))},exportAs:["matOption"],features:[o.qOj],ngContentSelectors:C,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(d,M){1&d&&(o.F$t(),o.YNc(0,F,1,2,"mat-pseudo-checkbox",0),o.TgZ(1,"span",1),o.Hsn(2),o.qZA(),o.YNc(3,N,2,1,"span",2),o._UZ(4,"div",3)),2&d&&(o.Q6J("ngIf",M.multiple),o.xp6(3),o.Q6J("ngIf",M.group&&M.group._inert),o.xp6(1),o.Q6J("matRippleTrigger",M._getHostElement())("matRippleDisabled",M.disabled||M.disableRipple))},dependencies:[O,oe.O5,i],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}),c})();function n(c,u,d){if(d.length){let M=u.toArray(),y=d.toArray(),v=0;for(let f=0;f<c+1;f++)M[f].group&&M[f].group===y[v]&&v++;return v}return 0}function s(c,u,d,M){return c<d?c:c+u>d+M?Math.max(0,c-M+u):d}let _=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({imports:[h,oe.ez,W,e]}),c})()},5412:(Le,Me,r)=>{r.d(Me,{WI:()=>ue,uw:()=>z,Is:()=>we,so:()=>G});var o=r(2687),l=r(2561),t=r(3353),x=r(4080),oe=r(6895),R=r(4650),me=r(9521),ce=r(7579),b=r(9770),K=r(9646),re=r(445),V=r(8675);function F(O,h){}class N{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 $=(()=>{class O extends x.en{constructor(i,e,a,p,w,A,Z,fe){super(),this._elementRef=i,this._focusTrapFactory=e,this._config=p,this._interactivityChecker=w,this._ngZone=A,this._overlayRef=Z,this._focusMonitor=fe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ce=>{this._portalOutlet.hasAttached();const Ae=this._portalOutlet.attachDomPortal(Ce);return this._contentAttached(),Ae},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();const e=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),e}attachTemplatePortal(i){this._portalOutlet.hasAttached();const e=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),e}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,e){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{i.removeEventListener("blur",a),i.removeEventListener("mousedown",a),i.removeAttribute("tabindex")};i.addEventListener("blur",a),i.addEventListener("mousedown",a)})),i.focus(e)}_focusByCssSelector(i,e){let a=this._elementRef.nativeElement.querySelector(i);a&&this._forceFocus(a,e)}_trapFocus(){const i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(e=>{e||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 i=this._config.restoreFocus;let e=null;if("string"==typeof i?e=this._document.querySelector(i):"boolean"==typeof i?e=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(e=i),this._config.restoreFocus&&e&&"function"==typeof e.focus){const a=(0,t.ht)(),p=this._elementRef.nativeElement;(!a||a===this._document.body||a===p||p.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const i=this._elementRef.nativeElement,e=(0,t.ht)();return i===e||i.contains(e)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,t.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return O.\u0275fac=function(i){return new(i||O)(R.Y36(R.SBq),R.Y36(o.qV),R.Y36(oe.K0,8),R.Y36(N),R.Y36(o.ic),R.Y36(R.R0b),R.Y36(l.Iu),R.Y36(o.tE))},O.\u0275cmp=R.Xpm({type:O,selectors:[["cdk-dialog-container"]],viewQuery:function(i,e){if(1&i&&R.Gf(x.Pl,7),2&i){let a;R.iGM(a=R.CRH())&&(e._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,e){2&i&&R.uIk("id",e._config.id||null)("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null)},features:[R.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&R.YNc(0,F,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 ye{constructor(h,i){this.overlayRef=h,this.config=i,this.closed=new ce.x,this.disableClose=i.disableClose,this.backdropClick=h.backdropClick(),this.keydownEvents=h.keydownEvents(),this.outsidePointerEvents=h.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(e=>{e.keyCode===me.hY&&!this.disableClose&&!(0,me.Vb)(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(h,i){if(this.containerInstance){const e=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this.overlayRef.dispose(),e.next(h),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(h="",i=""){return this.overlayRef.updateSize({width:h,height:i}),this}addPanelClass(h){return this.overlayRef.addPanelClass(h),this}removePanelClass(h){return this.overlayRef.removePanelClass(h),this}}const he=new R.OlP("DialogScrollStrategy"),ne=new R.OlP("DialogData"),pe=new R.OlP("DefaultDialogConfig"),Y={provide:he,deps:[l.aV],useFactory:function W(O){return()=>O.scrollStrategies.block()}};let m=0,E=(()=>{class O{constructor(i,e,a,p,w,A){this._overlay=i,this._injector=e,this._defaultOptions=a,this._parentDialog=p,this._overlayContainer=w,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ce.x,this._afterOpenedAtThisLevel=new ce.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,b.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,V.O)(void 0))),this._scrollStrategy=A}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(i,e){(e={...this._defaultOptions||new N,...e}).id=e.id||"cdk-dialog-"+m++,e.id&&this.getDialogById(e.id);const p=this._getOverlayConfig(e),w=this._overlay.create(p),A=new ye(w,e),Z=this._attachContainer(w,A,e);return A.containerInstance=Z,this._attachDialogContent(i,A,Z,e),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(A),A.closed.subscribe(()=>this._removeOpenDialog(A,!0)),this.afterOpened.next(A),A}closeAll(){g(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(e=>e.id===i)}ngOnDestroy(){g(this._openDialogsAtThisLevel,i=>{!1===i.config.closeOnDestroy&&this._removeOpenDialog(i,!1)}),g(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){const e=new l.X_({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(e.backdropClass=i.backdropClass),e}_attachContainer(i,e,a){const p=a.injector??a.viewContainerRef?.injector,w=[{provide:N,useValue:a},{provide:ye,useValue:e},{provide:l.Iu,useValue:i}];let A;a.container?"function"==typeof a.container?A=a.container:(A=a.container.type,w.push(...a.container.providers(a))):A=$;const Z=new x.C5(A,a.viewContainerRef,R.zs3.create({parent:p||this._injector,providers:w}),a.componentFactoryResolver);return i.attach(Z).instance}_attachDialogContent(i,e,a,p){const w=this._createInjector(p,e,a);if(i instanceof R.Rgc){let A={$implicit:p.data,dialogRef:e};p.templateContext&&(A={...A,..."function"==typeof p.templateContext?p.templateContext():p.templateContext}),a.attachTemplatePortal(new x.UE(i,null,A,w))}else{const A=a.attachComponentPortal(new x.C5(i,p.viewContainerRef,w,p.componentFactoryResolver));e.componentInstance=A.instance}}_createInjector(i,e,a){const p=i&&i.viewContainerRef&&i.viewContainerRef.injector,w=[{provide:ne,useValue:i.data},{provide:ye,useValue:e}];return i.providers&&("function"==typeof i.providers?w.push(...i.providers(e,i,a)):w.push(...i.providers)),i.direction&&(!p||!p.get(re.Is,null,R.XFs.Optional))&&w.push({provide:re.Is,useValue:{value:i.direction,change:(0,K.of)()}}),R.zs3.create({parent:p||this._injector,providers:w})}_removeOpenDialog(i,e){const a=this.openDialogs.indexOf(i);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((p,w)=>{p?w.setAttribute("aria-hidden",p):w.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const i=this._overlayContainer.getContainerElement();if(i.parentElement){const e=i.parentElement.children;for(let a=e.length-1;a>-1;a--){const p=e[a];p!==i&&"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 i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return O.\u0275fac=function(i){return new(i||O)(R.LFG(l.aV),R.LFG(R.zs3),R.LFG(pe,8),R.LFG(O,12),R.LFG(l.Xj),R.LFG(he))},O.\u0275prov=R.Yz7({token:O,factory:O.\u0275fac}),O})();function g(O,h){let i=O.length;for(;i--;)h(O[i])}let S=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275mod=R.oAB({type:O}),O.\u0275inj=R.cJS({providers:[E,Y],imports:[l.U8,x.eL,o.rt,x.eL]}),O})();var ee=r(3238),ge=r(6451),be=r(9300),xe=r(5698),Ee=r(7340);function _e(O,h){}const ve={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},H={dialogContainer:(0,Ee.X$)("dialogContainer",[(0,Ee.SB)("void, exit",(0,Ee.oB)({opacity:0,transform:"scale(0.7)"})),(0,Ee.SB)("enter",(0,Ee.oB)({transform:"none"})),(0,Ee.eR)("* => enter",(0,Ee.ru)([(0,Ee.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Ee.oB)({transform:"none",opacity:1})),(0,Ee.IO)("@*",(0,Ee.pV)(),{optional:!0})]),ve),(0,Ee.eR)("* => void, * => exit",(0,Ee.ru)([(0,Ee.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Ee.oB)({opacity:0})),(0,Ee.IO)("@*",(0,Ee.pV)(),{optional:!0})]),ve)])};class j{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=ve.params.enterAnimationDuration,this.exitAnimationDuration=ve.params.exitAnimationDuration}}let ae=(()=>{class O extends ${constructor(i,e,a,p,w,A,Z,fe){super(i,e,a,p,w,A,Z,fe),this._animationStateChanged=new R.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})}}return O.\u0275fac=function(i){return new(i||O)(R.Y36(R.SBq),R.Y36(o.qV),R.Y36(oe.K0,8),R.Y36(j),R.Y36(o.ic),R.Y36(R.R0b),R.Y36(l.Iu),R.Y36(o.tE))},O.\u0275cmp=R.Xpm({type:O,selectors:[["ng-component"]],features:[R.qOj],decls:0,vars:0,template:function(i,e){},encapsulation:2}),O})(),P=(()=>{class O extends ae{constructor(i,e,a,p,w,A,Z,fe,Ce){super(i,e,a,p,w,A,Z,Ce),this._changeDetectorRef=fe,this._state="enter"}_onAnimationDone({toState:i,totalTime:e}){"enter"===i?this._openAnimationDone(e):"exit"===i&&this._animationStateChanged.next({state:"closed",totalTime:e})}_onAnimationStart({toState:i,totalTime:e}){"enter"===i?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===i||"void"===i)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ve.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ve.params.exitAnimationDuration}}}}return O.\u0275fac=function(i){return new(i||O)(R.Y36(R.SBq),R.Y36(o.qV),R.Y36(oe.K0,8),R.Y36(j),R.Y36(o.ic),R.Y36(R.R0b),R.Y36(l.Iu),R.Y36(R.sBO),R.Y36(o.tE))},O.\u0275cmp=R.Xpm({type:O,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(i,e){1&i&&R.WFA("@dialogContainer.start",function(p){return e._onAnimationStart(p)})("@dialogContainer.done",function(p){return e._onAnimationDone(p)}),2&i&&(R.Ikx("id",e._config.id),R.uIk("aria-modal",e._config.ariaModal)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),R.d8E("@dialogContainer",e._getAnimationState()))},features:[R.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&R.YNc(0,_e,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:[H.dialogContainer]}}),O})();class G{constructor(h,i,e){this._ref=h,this._containerInstance=e,this._afterOpened=new ce.x,this._beforeClosed=new ce.x,this._state=0,this.disableClose=i.disableClose,this.id=h.id,e._animationStateChanged.pipe((0,be.h)(a=>"opened"===a.state),(0,xe.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,be.h)(a=>"closed"===a.state),(0,xe.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),h.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ge.T)(this.backdropClick(),this.keydownEvents().pipe((0,be.h)(a=>a.keyCode===me.hY&&!this.disableClose&&!(0,me.Vb)(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function Q(O,h,i){O._closeInteractionType=h,O.close(i)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(h){this._result=h,this._containerInstance._animationStateChanged.pipe((0,be.h)(i=>"closing"===i.state),(0,xe.q)(1)).subscribe(i=>{this._beforeClosed.next(h),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.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(h){let i=this._ref.config.positionStrategy;return h&&(h.left||h.right)?h.left?i.left(h.left):i.right(h.right):i.centerHorizontally(),h&&(h.top||h.bottom)?h.top?i.top(h.top):i.bottom(h.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(h="",i=""){return this._ref.updateSize(h,i),this}addPanelClass(h){return this._ref.addPanelClass(h),this}removePanelClass(h){return this._ref.removePanelClass(h),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ue=new R.OlP("MatDialogData"),J=new R.OlP("mat-dialog-default-options"),Se=new R.OlP("mat-dialog-scroll-strategy"),ie={provide:Se,deps:[l.aV],useFactory:function U(O){return()=>O.scrollStrategies.block()}};let L=0,se=(()=>{class O{constructor(i,e,a,p,w,A,Z,fe,Ce,Ae){this._overlay=i,this._defaultOptions=a,this._parentDialog=p,this._dialogRefConstructor=Z,this._dialogContainerType=fe,this._dialogDataToken=Ce,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ce.x,this._afterOpenedAtThisLevel=new ce.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,b.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,V.O)(void 0))),this._scrollStrategy=A,this._dialog=e.get(E)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(i,e){let a;(e={...this._defaultOptions||new j,...e}).id=e.id||`${this._idPrefix}${L++}`,e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();const p=this._dialog.open(i,{...e,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:j,useValue:e},{provide:N,useValue:e}]},templateContext:()=>({dialogRef:a}),providers:(w,A,Z)=>(a=new this._dialogRefConstructor(w,e,Z),a.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:Z},{provide:this._dialogDataToken,useValue:A.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=p.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const w=this.openDialogs.indexOf(a);w>-1&&(this.openDialogs.splice(w,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(e=>e.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let e=i.length;for(;e--;)i[e].close()}}return O.\u0275fac=function(i){R.$Z()},O.\u0275prov=R.Yz7({token:O,factory:O.\u0275fac}),O})(),z=(()=>{class O extends se{constructor(i,e,a,p,w,A,Z,fe){super(i,e,p,A,Z,w,G,P,ue,fe)}}return O.\u0275fac=function(i){return new(i||O)(R.LFG(l.aV),R.LFG(R.zs3),R.LFG(oe.Ye,8),R.LFG(J,8),R.LFG(Se),R.LFG(O,12),R.LFG(l.Xj),R.LFG(R.QbO,8))},O.\u0275prov=R.Yz7({token:O,factory:O.\u0275fac}),O})(),we=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275mod=R.oAB({type:O}),O.\u0275inj=R.cJS({providers:[z,ie],imports:[S,l.U8,x.eL,ee.BQ,ee.BQ]}),O})()},9549:(Le,Me,r)=>{r.d(Me,{Eo:()=>j,G_:()=>Re,KE:()=>Ue,R9:()=>se,hX:()=>Se,lN:()=>we,qo:()=>ie});var o=r(9643),l=r(6895),t=r(4650),x=r(3238),oe=r(445),R=r(1281),me=r(7579),ce=r(6451),b=r(4968),K=r(8675),re=r(2722),V=r(5698),F=r(7340),N=r(3353);const C=["connectionContainer"],$=["inputContainer"],ye=["label"];function he(O,h){1&O&&(t.ynx(0),t.TgZ(1,"div",14),t._UZ(2,"div",15)(3,"div",16)(4,"div",17),t.qZA(),t.TgZ(5,"div",18),t._UZ(6,"div",15)(7,"div",16)(8,"div",17),t.qZA(),t.BQk())}function ne(O,h){if(1&O){const i=t.EpF();t.TgZ(0,"div",19),t.NdJ("cdkObserveContent",function(){t.CHM(i);const a=t.oxw();return t.KtG(a.updateOutlineGap())}),t.Hsn(1,1),t.qZA()}if(2&O){const i=t.oxw();t.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)}}function pe(O,h){if(1&O&&(t.ynx(0),t.Hsn(1,2),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.BQk()),2&O){const i=t.oxw(2);t.xp6(3),t.Oqu(i._control.placeholder)}}function W(O,h){1&O&&t.Hsn(0,3,["*ngSwitchCase","true"])}function Y(O,h){1&O&&(t.TgZ(0,"span",23),t._uU(1," *"),t.qZA())}function m(O,h){if(1&O){const i=t.EpF();t.TgZ(0,"label",20,21),t.NdJ("cdkObserveContent",function(){t.CHM(i);const a=t.oxw();return t.KtG(a.updateOutlineGap())}),t.YNc(2,pe,4,1,"ng-container",12),t.YNc(3,W,1,0,"ng-content",12),t.YNc(4,Y,2,0,"span",22),t.qZA()}if(2&O){const i=t.oxw();t.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),t.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),t.uIk("for",i._control.id)("aria-owns",i._control.id),t.xp6(2),t.Q6J("ngSwitchCase",!1),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function E(O,h){1&O&&(t.TgZ(0,"div",24),t.Hsn(1,4),t.qZA())}function g(O,h){if(1&O&&(t.TgZ(0,"div",25),t._UZ(1,"span",26),t.qZA()),2&O){const i=t.oxw();t.xp6(1),t.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function S(O,h){if(1&O&&(t.TgZ(0,"div"),t.Hsn(1,5),t.qZA()),2&O){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState)}}function ee(O,h){if(1&O&&(t.TgZ(0,"div",30),t._uU(1),t.qZA()),2&O){const i=t.oxw(2);t.Q6J("id",i._hintLabelId),t.xp6(1),t.Oqu(i.hintLabel)}}function ge(O,h){if(1&O&&(t.TgZ(0,"div",27),t.YNc(1,ee,2,2,"div",28),t.Hsn(2,6),t._UZ(3,"div",29),t.Hsn(4,7),t.qZA()),2&O){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",i.hintLabel)}}const be=["*",[["","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']"],_e=new t.OlP("MatError"),H={transitionMessages:(0,F.X$)("transitionMessages",[(0,F.SB)("enter",(0,F.oB)({opacity:1,transform:"translateY(0%)"})),(0,F.eR)("void => enter",[(0,F.oB)({opacity:0,transform:"translateY(-5px)"}),(0,F.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let j=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O}),O})();const ue=new t.OlP("MatHint");let Se=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O,selectors:[["mat-label"]]}),O})(),I=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O,selectors:[["mat-placeholder"]]}),O})();const U=new t.OlP("MatPrefix");let ie=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O,selectors:[["","matPrefix",""]],features:[t._Bn([{provide:U,useExisting:O}])]}),O})();const L=new t.OlP("MatSuffix");let se=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O,selectors:[["","matSuffix",""]],features:[t._Bn([{provide:L,useExisting:O}])]}),O})(),z=0;const Pe=(0,x.pj)(class{constructor(O){this._elementRef=O}},"primary"),Fe=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Re=new t.OlP("MatFormField");let Ue=(()=>{class O extends Pe{constructor(i,e,a,p,w,A,Z){super(i),this._changeDetectorRef=e,this._dir=a,this._defaults=p,this._platform=w,this._ngZone=A,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new me.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+z++,this._labelId="mat-form-field-label-"+z++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Z,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(i){const e=this._appearance;this._appearance=i||this._defaults?.appearance||"legacy","outline"===this._appearance&&e!==i&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=(0,R.Ig)(i)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(i){this._explicitFormFieldControl=i}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${i.controlType}`),i.stateChanges.pipe((0,K.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe((0,re.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,re.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,ce.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,K.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,K.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,re.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(i){const e=this._control?this._control.ngControl:null;return e&&e[i]}_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,b.R)(this._label.nativeElement,"transitionend").pipe((0,V.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 i=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&i.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(p=>"start"===p.align):null,a=this._hintChildren?this._hintChildren.find(p=>"end"===p.align):null;e?i.push(e.id):this._hintLabel&&i.push(this._hintLabelId),a&&i.push(a.id)}else this._errorChildren&&i.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(i)}}_validateControlChild(){}updateOutlineGap(){const i=this._label?this._label.nativeElement:null,e=this._connectionContainerRef.nativeElement,a=".mat-form-field-outline-start",p=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!i||!i.children.length||!i.textContent.trim()){const Ce=e.querySelectorAll(`${a}, ${p}`);for(let Ae=0;Ae<Ce.length;Ae++)Ce[Ae].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let w=0,A=0;const Z=e.querySelectorAll(a),fe=e.querySelectorAll(p);if(this._label&&this._label.nativeElement.children.length){const Ce=e.getBoundingClientRect();if(0===Ce.width&&0===Ce.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Ae=this._getStartEnd(Ce),ke=i.children,T=this._getStartEnd(ke[0].getBoundingClientRect());let n=0;for(let s=0;s<ke.length;s++)n+=ke[s].offsetWidth;w=Math.abs(T-Ae)-5,A=n>0?.75*n+10:0}for(let Ce=0;Ce<Z.length;Ce++)Z[Ce].style.width=`${w}px`;for(let Ce=0;Ce<fe.length;Ce++)fe[Ce].style.width=`${A}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(i){return this._dir&&"rtl"===this._dir.value?i.right:i.left}_isAttachedToDOM(){const i=this._elementRef.nativeElement;if(i.getRootNode){const e=i.getRootNode();return e&&e!==i}return document.documentElement.contains(i)}}return O.\u0275fac=function(i){return new(i||O)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe.Is,8),t.Y36(Fe,8),t.Y36(N.t4),t.Y36(t.R0b),t.Y36(t.QbO,8))},O.\u0275cmp=t.Xpm({type:O,selectors:[["mat-form-field"]],contentQueries:function(i,e,a){if(1&i&&(t.Suo(a,j,5),t.Suo(a,j,7),t.Suo(a,Se,5),t.Suo(a,Se,7),t.Suo(a,I,5),t.Suo(a,_e,5),t.Suo(a,ue,5),t.Suo(a,U,5),t.Suo(a,L,5)),2&i){let p;t.iGM(p=t.CRH())&&(e._controlNonStatic=p.first),t.iGM(p=t.CRH())&&(e._controlStatic=p.first),t.iGM(p=t.CRH())&&(e._labelChildNonStatic=p.first),t.iGM(p=t.CRH())&&(e._labelChildStatic=p.first),t.iGM(p=t.CRH())&&(e._placeholderChild=p.first),t.iGM(p=t.CRH())&&(e._errorChildren=p),t.iGM(p=t.CRH())&&(e._hintChildren=p),t.iGM(p=t.CRH())&&(e._prefixChildren=p),t.iGM(p=t.CRH())&&(e._suffixChildren=p)}},viewQuery:function(i,e){if(1&i&&(t.Gf(C,7),t.Gf($,5),t.Gf(ye,5)),2&i){let a;t.iGM(a=t.CRH())&&(e._connectionContainerRef=a.first),t.iGM(a=t.CRH())&&(e._inputContainerRef=a.first),t.iGM(a=t.CRH())&&(e._label=a.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(i,e){2&i&&t.ekj("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[t._Bn([{provide:Re,useExisting:O}]),t.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(i,e){1&i&&(t.F$t(be),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("click",function(p){return e._control.onContainerClick&&e._control.onContainerClick(p)}),t.YNc(3,he,9,0,"ng-container",3),t.YNc(4,ne,2,1,"div",4),t.TgZ(5,"div",5,6),t.Hsn(7),t.TgZ(8,"span",7),t.YNc(9,m,5,16,"label",8),t.qZA()(),t.YNc(10,E,2,0,"div",9),t.qZA(),t.YNc(11,g,2,4,"div",10),t.TgZ(12,"div",11),t.YNc(13,S,2,1,"div",12),t.YNc(14,ge,5,2,"div",13),t.qZA()()),2&i&&(t.xp6(3),t.Q6J("ngIf","outline"==e.appearance),t.xp6(1),t.Q6J("ngIf",e._prefixChildren.length),t.xp6(5),t.Q6J("ngIf",e._hasFloatingLabel()),t.xp6(1),t.Q6J("ngIf",e._suffixChildren.length),t.xp6(1),t.Q6J("ngIf","outline"!=e.appearance),t.xp6(1),t.Q6J("ngSwitch",e._getDisplayedMessages()),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","hint"))},dependencies:[l.O5,l.RF,l.n9,o.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:[H.transitionMessages]},changeDetection:0}),O})(),we=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[l.ez,x.BQ,o.Q8,x.BQ]}),O})()},7392:(Le,Me,r)=>{r.d(Me,{Hw:()=>Q,Ps:()=>ue});var o=r(4650),l=r(3238),t=r(1281),x=r(6895),oe=r(9646),R=r(2843),me=r(4128),ce=r(727),b=r(8505),K=r(4004),re=r(262),V=r(8746),F=r(3099),N=r(5698),C=r(529),$=r(1481);const ye=["*"];let he;function pe(J){return function ne(){if(void 0===he&&(he=null,typeof window<"u")){const J=window;void 0!==J.trustedTypes&&(he=J.trustedTypes.createPolicy("angular#components",{createHTML:Se=>Se}))}return he}()?.createHTML(J)||J}function W(J){return Error(`Unable to find icon with the name "${J}"`)}function m(J){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${J}".`)}function E(J){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${J}".`)}class g{constructor(Se,I,U){this.url=Se,this.svgText=I,this.options=U}}let S=(()=>{class J{constructor(I,U,ie,L){this._httpClient=I,this._sanitizer=U,this._errorHandler=L,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=ie}addSvgIcon(I,U,ie){return this.addSvgIconInNamespace("",I,U,ie)}addSvgIconLiteral(I,U,ie){return this.addSvgIconLiteralInNamespace("",I,U,ie)}addSvgIconInNamespace(I,U,ie,L){return this._addSvgIconConfig(I,U,new g(ie,null,L))}addSvgIconResolver(I){return this._resolvers.push(I),this}addSvgIconLiteralInNamespace(I,U,ie,L){const se=this._sanitizer.sanitize(o.q3G.HTML,ie);if(!se)throw E(ie);const z=pe(se);return this._addSvgIconConfig(I,U,new g("",z,L))}addSvgIconSet(I,U){return this.addSvgIconSetInNamespace("",I,U)}addSvgIconSetLiteral(I,U){return this.addSvgIconSetLiteralInNamespace("",I,U)}addSvgIconSetInNamespace(I,U,ie){return this._addSvgIconSetConfig(I,new g(U,null,ie))}addSvgIconSetLiteralInNamespace(I,U,ie){const L=this._sanitizer.sanitize(o.q3G.HTML,U);if(!L)throw E(U);const se=pe(L);return this._addSvgIconSetConfig(I,new g("",se,ie))}registerFontClassAlias(I,U=I){return this._fontCssClassesByAlias.set(I,U),this}classNameForFontAlias(I){return this._fontCssClassesByAlias.get(I)||I}setDefaultFontSetClass(...I){return this._defaultFontSetClass=I,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(I){const U=this._sanitizer.sanitize(o.q3G.RESOURCE_URL,I);if(!U)throw m(I);const ie=this._cachedIconsByUrl.get(U);return ie?(0,oe.of)(be(ie)):this._loadSvgIconFromConfig(new g(I,null)).pipe((0,b.b)(L=>this._cachedIconsByUrl.set(U,L)),(0,K.U)(L=>be(L)))}getNamedSvgIcon(I,U=""){const ie=xe(U,I);let L=this._svgIconConfigs.get(ie);if(L)return this._getSvgFromConfig(L);if(L=this._getIconConfigFromResolvers(U,I),L)return this._svgIconConfigs.set(ie,L),this._getSvgFromConfig(L);const se=this._iconSetConfigs.get(U);return se?this._getSvgFromIconSetConfigs(I,se):(0,R._)(W(ie))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(I){return I.svgText?(0,oe.of)(be(this._svgElementFromConfig(I))):this._loadSvgIconFromConfig(I).pipe((0,K.U)(U=>be(U)))}_getSvgFromIconSetConfigs(I,U){const ie=this._extractIconWithNameFromAnySet(I,U);if(ie)return(0,oe.of)(ie);const L=U.filter(se=>!se.svgText).map(se=>this._loadSvgIconSetFromConfig(se).pipe((0,re.K)(z=>{const Ie=`Loading icon set URL: ${this._sanitizer.sanitize(o.q3G.RESOURCE_URL,se.url)} failed: ${z.message}`;return this._errorHandler.handleError(new Error(Ie)),(0,oe.of)(null)})));return(0,me.D)(L).pipe((0,K.U)(()=>{const se=this._extractIconWithNameFromAnySet(I,U);if(!se)throw W(I);return se}))}_extractIconWithNameFromAnySet(I,U){for(let ie=U.length-1;ie>=0;ie--){const L=U[ie];if(L.svgText&&L.svgText.toString().indexOf(I)>-1){const se=this._svgElementFromConfig(L),z=this._extractSvgIconFromSet(se,I,L.options);if(z)return z}}return null}_loadSvgIconFromConfig(I){return this._fetchIcon(I).pipe((0,b.b)(U=>I.svgText=U),(0,K.U)(()=>this._svgElementFromConfig(I)))}_loadSvgIconSetFromConfig(I){return I.svgText?(0,oe.of)(null):this._fetchIcon(I).pipe((0,b.b)(U=>I.svgText=U))}_extractSvgIconFromSet(I,U,ie){const L=I.querySelector(`[id="${U}"]`);if(!L)return null;const se=L.cloneNode(!0);if(se.removeAttribute("id"),"svg"===se.nodeName.toLowerCase())return this._setSvgAttributes(se,ie);if("symbol"===se.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(se),ie);const z=this._svgElementFromString(pe("<svg></svg>"));return z.appendChild(se),this._setSvgAttributes(z,ie)}_svgElementFromString(I){const U=this._document.createElement("DIV");U.innerHTML=I;const ie=U.querySelector("svg");if(!ie)throw Error("<svg> tag not found");return ie}_toSvgElement(I){const U=this._svgElementFromString(pe("<svg></svg>")),ie=I.attributes;for(let L=0;L<ie.length;L++){const{name:se,value:z}=ie[L];"id"!==se&&U.setAttribute(se,z)}for(let L=0;L<I.childNodes.length;L++)I.childNodes[L].nodeType===this._document.ELEMENT_NODE&&U.appendChild(I.childNodes[L].cloneNode(!0));return U}_setSvgAttributes(I,U){return I.setAttribute("fit",""),I.setAttribute("height","100%"),I.setAttribute("width","100%"),I.setAttribute("preserveAspectRatio","xMidYMid meet"),I.setAttribute("focusable","false"),U&&U.viewBox&&I.setAttribute("viewBox",U.viewBox),I}_fetchIcon(I){const{url:U,options:ie}=I,L=ie?.withCredentials??!1;if(!this._httpClient)throw function Y(){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==U)throw Error(`Cannot fetch icon from URL "${U}".`);const se=this._sanitizer.sanitize(o.q3G.RESOURCE_URL,U);if(!se)throw m(U);const z=this._inProgressUrlFetches.get(se);if(z)return z;const te=this._httpClient.get(se,{responseType:"text",withCredentials:L}).pipe((0,K.U)(Ie=>pe(Ie)),(0,V.x)(()=>this._inProgressUrlFetches.delete(se)),(0,F.B)());return this._inProgressUrlFetches.set(se,te),te}_addSvgIconConfig(I,U,ie){return this._svgIconConfigs.set(xe(I,U),ie),this}_addSvgIconSetConfig(I,U){const ie=this._iconSetConfigs.get(I);return ie?ie.push(U):this._iconSetConfigs.set(I,[U]),this}_svgElementFromConfig(I){if(!I.svgElement){const U=this._svgElementFromString(I.svgText);this._setSvgAttributes(U,I.options),I.svgElement=U}return I.svgElement}_getIconConfigFromResolvers(I,U){for(let ie=0;ie<this._resolvers.length;ie++){const L=this._resolvers[ie](U,I);if(L)return Ee(L)?new g(L.url,null,L.options):new g(L,null)}}}return J.\u0275fac=function(I){return new(I||J)(o.LFG(C.eN,8),o.LFG($.H7),o.LFG(x.K0,8),o.LFG(o.qLn))},J.\u0275prov=o.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function be(J){return J.cloneNode(!0)}function xe(J,Se){return J+":"+Se}function Ee(J){return!(!J.url||!J.options)}const _e=(0,l.pj)(class{constructor(J){this._elementRef=J}}),ve=new o.OlP("MAT_ICON_DEFAULT_OPTIONS"),H=new o.OlP("mat-icon-location",{providedIn:"root",factory:function j(){const J=(0,o.f3M)(x.K0),Se=J?J.location:null;return{getPathname:()=>Se?Se.pathname+Se.search:""}}}),ae=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],P=ae.map(J=>`[${J}]`).join(", "),G=/^url\(['"]?#(.*?)['"]?\)$/;let Q=(()=>{class J extends _e{constructor(I,U,ie,L,se,z){super(I),this._iconRegistry=U,this._location=L,this._errorHandler=se,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ce.w0.EMPTY,z&&(z.color&&(this.color=this.defaultColor=z.color),z.fontSet&&(this.fontSet=z.fontSet)),ie||I.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(I){this._inline=(0,t.Ig)(I)}get svgIcon(){return this._svgIcon}set svgIcon(I){I!==this._svgIcon&&(I?this._updateSvgIcon(I):this._svgIcon&&this._clearSvgElement(),this._svgIcon=I)}get fontSet(){return this._fontSet}set fontSet(I){const U=this._cleanupFontValue(I);U!==this._fontSet&&(this._fontSet=U,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(I){const U=this._cleanupFontValue(I);U!==this._fontIcon&&(this._fontIcon=U,this._updateFontIconClasses())}_splitIconName(I){if(!I)return["",""];const U=I.split(":");switch(U.length){case 1:return["",U[0]];case 2:return U;default:throw Error(`Invalid icon name: "${I}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const I=this._elementsWithExternalReferences;if(I&&I.size){const U=this._location.getPathname();U!==this._previousPath&&(this._previousPath=U,this._prependPathToReferences(U))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(I){this._clearSvgElement();const U=this._location.getPathname();this._previousPath=U,this._cacheChildrenWithExternalReferences(I),this._prependPathToReferences(U),this._elementRef.nativeElement.appendChild(I)}_clearSvgElement(){const I=this._elementRef.nativeElement;let U=I.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();U--;){const ie=I.childNodes[U];(1!==ie.nodeType||"svg"===ie.nodeName.toLowerCase())&&ie.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const I=this._elementRef.nativeElement,U=(this.fontSet?[this._iconRegistry.classNameForFontAlias(this.fontSet)]:this._iconRegistry.getDefaultFontSetClass()).filter(ie=>ie.length>0);this._previousFontSetClass.forEach(ie=>I.classList.remove(ie)),U.forEach(ie=>I.classList.add(ie)),this._previousFontSetClass=U,this.fontIcon!==this._previousFontIconClass&&(this._previousFontIconClass&&I.classList.remove(this._previousFontIconClass),this.fontIcon&&I.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(I){return"string"==typeof I?I.trim().split(" ")[0]:I}_prependPathToReferences(I){const U=this._elementsWithExternalReferences;U&&U.forEach((ie,L)=>{ie.forEach(se=>{L.setAttribute(se.name,`url('${I}#${se.value}')`)})})}_cacheChildrenWithExternalReferences(I){const U=I.querySelectorAll(P),ie=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let L=0;L<U.length;L++)ae.forEach(se=>{const z=U[L],te=z.getAttribute(se),Ie=te?te.match(G):null;if(Ie){let Pe=ie.get(z);Pe||(Pe=[],ie.set(z,Pe)),Pe.push({name:se,value:Ie[1]})}})}_updateSvgIcon(I){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),I){const[U,ie]=this._splitIconName(I);U&&(this._svgNamespace=U),ie&&(this._svgName=ie),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ie,U).pipe((0,N.q)(1)).subscribe(L=>this._setSvgElement(L),L=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${U}:${ie}! ${L.message}`))})}}}return J.\u0275fac=function(I){return new(I||J)(o.Y36(o.SBq),o.Y36(S),o.$8M("aria-hidden"),o.Y36(H),o.Y36(o.qLn),o.Y36(ve,8))},J.\u0275cmp=o.Xpm({type:J,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(I,U){2&I&&(o.uIk("data-mat-icon-type",U._usingFontIcon()?"font":"svg")("data-mat-icon-name",U._svgName||U.fontIcon)("data-mat-icon-namespace",U._svgNamespace||U.fontSet),o.ekj("mat-icon-inline",U.inline)("mat-icon-no-color","primary"!==U.color&&"accent"!==U.color&&"warn"!==U.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[o.qOj],ngContentSelectors:ye,decls:1,vars:0,template:function(I,U){1&I&&(o.F$t(),o.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}),J})(),ue=(()=>{class J{}return J.\u0275fac=function(I){return new(I||J)},J.\u0275mod=o.oAB({type:J}),J.\u0275inj=o.cJS({imports:[l.BQ,l.BQ]}),J})()},4144:(Le,Me,r)=>{r.d(Me,{Jk:()=>C,Nt:()=>ne,c:()=>pe});var o=r(1281),l=r(3353),t=r(4650),x=r(515),oe=r(7579);const R=(0,l.i$)({passive:!0});let me=(()=>{class W{constructor(m,E){this._platform=m,this._ngZone=E,this._monitoredElements=new Map}monitor(m){if(!this._platform.isBrowser)return x.E;const E=(0,o.fI)(m),g=this._monitoredElements.get(E);if(g)return g.subject;const S=new oe.x,ee="cdk-text-field-autofilled",ge=be=>{"cdk-text-field-autofill-start"!==be.animationName||E.classList.contains(ee)?"cdk-text-field-autofill-end"===be.animationName&&E.classList.contains(ee)&&(E.classList.remove(ee),this._ngZone.run(()=>S.next({target:be.target,isAutofilled:!1}))):(E.classList.add(ee),this._ngZone.run(()=>S.next({target:be.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{E.addEventListener("animationstart",ge,R),E.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(E,{subject:S,unlisten:()=>{E.removeEventListener("animationstart",ge,R)}}),S}stopMonitoring(m){const E=(0,o.fI)(m),g=this._monitoredElements.get(E);g&&(g.unlisten(),g.subject.complete(),E.classList.remove("cdk-text-field-autofill-monitored"),E.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(E))}ngOnDestroy(){this._monitoredElements.forEach((m,E)=>this.stopMonitoring(E))}}return W.\u0275fac=function(m){return new(m||W)(t.LFG(l.t4),t.LFG(t.R0b))},W.\u0275prov=t.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),K=(()=>{class W{}return W.\u0275fac=function(m){return new(m||W)},W.\u0275mod=t.oAB({type:W}),W.\u0275inj=t.cJS({}),W})();var re=r(4006),V=r(3238),F=r(9549);const C=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),$=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ye=0;const he=(0,V.FD)(class{constructor(W,Y,m,E){this._defaultErrorStateMatcher=W,this._parentForm=Y,this._parentFormGroup=m,this.ngControl=E,this.stateChanges=new oe.x}});let ne=(()=>{class W extends he{constructor(m,E,g,S,ee,ge,be,xe,Ee,_e){super(ge,S,ee,g),this._elementRef=m,this._platform=E,this._autofillMonitor=xe,this._formField=_e,this._uid="mat-input-"+ye++,this.focused=!1,this.stateChanges=new oe.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(j=>(0,l.qK)().has(j)),this._iOSKeyupListener=j=>{const ae=j.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};const ve=this._elementRef.nativeElement,H=ve.nodeName.toLowerCase();this._inputValueAccessor=be||ve,this._previousNativeValue=this.value,this.id=this.id,E.IOS&&Ee.runOutsideAngular(()=>{m.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===H,this._isTextarea="textarea"===H,this._isInFormField=!!_e,this._isNativeSelect&&(this.controlType=ve.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(m){this._disabled=(0,o.Ig)(m),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(m){this._id=m||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(re.kI.required)??!1}set required(m){this._required=(0,o.Ig)(m)}get type(){return this._type}set type(m){this._type=m||"text",this._validateType(),!this._isTextarea&&(0,l.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(m){m!==this.value&&(this._inputValueAccessor.value=m,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(m){this._readonly=(0,o.Ig)(m)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(m=>{this.autofilled=m.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(m){this._elementRef.nativeElement.focus(m)}_focusChanged(m){m!==this.focused&&(this.focused=m,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const m=this._formField,E=m&&"legacy"===m.appearance&&!m._hasLabel?.()?null:this.placeholder;if(E!==this._previousPlaceholder){const g=this._elementRef.nativeElement;this._previousPlaceholder=E,E?g.setAttribute("placeholder",E):g.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const m=this._elementRef.nativeElement.value;this._previousNativeValue!==m&&(this._previousNativeValue=m,this.stateChanges.next())}_validateType(){$.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let m=this._elementRef.nativeElement.validity;return m&&m.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const m=this._elementRef.nativeElement,E=m.options[0];return this.focused||m.multiple||!this.empty||!!(m.selectedIndex>-1&&E&&E.label)}return this.focused||!this.empty}setDescribedByIds(m){m.length?this._elementRef.nativeElement.setAttribute("aria-describedby",m.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const m=this._elementRef.nativeElement;return this._isNativeSelect&&(m.multiple||m.size>1)}}return W.\u0275fac=function(m){return new(m||W)(t.Y36(t.SBq),t.Y36(l.t4),t.Y36(re.a5,10),t.Y36(re.F,8),t.Y36(re.sg,8),t.Y36(V.rD),t.Y36(C,10),t.Y36(me),t.Y36(t.R0b),t.Y36(F.G_,8))},W.\u0275dir=t.lG2({type:W,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(m,E){1&m&&t.NdJ("focus",function(){return E._focusChanged(!0)})("blur",function(){return E._focusChanged(!1)})("input",function(){return E._onInput()}),2&m&&(t.Ikx("disabled",E.disabled)("required",E.required),t.uIk("id",E.id)("data-placeholder",E.placeholder)("name",E.name||null)("readonly",E.readonly&&!E._isNativeSelect||null)("aria-invalid",E.empty&&E.required?null:E.errorState)("aria-required",E.required),t.ekj("mat-input-server",E._isServer)("mat-native-select-inline",E._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:[t._Bn([{provide:F.Eo,useExisting:W}]),t.qOj,t.TTD]}),W})(),pe=(()=>{class W{}return W.\u0275fac=function(m){return new(m||W)},W.\u0275mod=t.oAB({type:W}),W.\u0275inj=t.cJS({providers:[V.rD],imports:[K,F.lN,V.BQ,K,F.lN]}),W})()},1948:(Le,Me,r)=>{r.d(Me,{Fk:()=>Y,U0:()=>W,VQ:()=>ye});var o=r(4650),l=r(3238),t=r(2687),x=r(1281),oe=r(5017),R=r(4006);const me=["input"],ce=function(m){return{enterDuration:m}},b=["*"],K=new o.OlP("mat-radio-default-options",{providedIn:"root",factory:function re(){return{color:"accent"}}});let V=0;const F={provide:R.JU,useExisting:(0,o.Gpc)(()=>ye),multi:!0};class N{constructor(E,g){this.source=E,this.value=g}}const C=new o.OlP("MatRadioGroup");let $=(()=>{class m{constructor(g){this._changeDetector=g,this._value=null,this._name="mat-radio-group-"+V++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new o.vpe}get name(){return this._name}set name(g){this._name=g,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(g){this._labelPosition="before"===g?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(g){this._value!==g&&(this._value=g,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(g){this._selected=g,this.value=g?g.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(g){this._disabled=(0,x.Ig)(g),this._markRadiosForCheck()}get required(){return this._required}set required(g){this._required=(0,x.Ig)(g),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(g=>{g.name=this.name,g._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(S=>{S.checked=this.value===S.value,S.checked&&(this._selected=S)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new N(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(g=>g._markForCheck())}writeValue(g){this.value=g,this._changeDetector.markForCheck()}registerOnChange(g){this._controlValueAccessorChangeFn=g}registerOnTouched(g){this.onTouched=g}setDisabledState(g){this.disabled=g,this._changeDetector.markForCheck()}}return m.\u0275fac=function(g){return new(g||m)(o.Y36(o.sBO))},m.\u0275dir=o.lG2({type:m,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),m})(),ye=(()=>{class m extends ${}return m.\u0275fac=function(){let E;return function(S){return(E||(E=o.n5z(m)))(S||m)}}(),m.\u0275dir=o.lG2({type:m,selectors:[["mat-radio-group"]],contentQueries:function(g,S,ee){if(1&g&&o.Suo(ee,W,5),2&g){let ge;o.iGM(ge=o.CRH())&&(S._radios=ge)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[o._Bn([F,{provide:C,useExisting:m}]),o.qOj]}),m})();class he{constructor(E){this._elementRef=E}}const ne=(0,l.Kr)((0,l.sb)(he));let pe=(()=>{class m extends ne{constructor(g,S,ee,ge,be,xe,Ee,_e){super(S),this._changeDetector=ee,this._focusMonitor=ge,this._radioDispatcher=be,this._providerOverride=Ee,this._uniqueId="mat-radio-"+ ++V,this.id=this._uniqueId,this.change=new o.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=g,this._noopAnimations="NoopAnimations"===xe,_e&&(this.tabIndex=(0,x.su)(_e,0)),this._removeUniqueSelectionListener=be.listen((ve,H)=>{ve!==this.id&&H===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(g){const S=(0,x.Ig)(g);this._checked!==S&&(this._checked=S,S&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!S&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),S&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(g){this._value!==g&&(this._value=g,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===g),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(g){this._labelPosition=g}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(g){this._setDisabled((0,x.Ig)(g))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(g){this._required=(0,x.Ig)(g)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(g){this._color=g}get inputId(){return`${this.id||this._uniqueId}-input`}focus(g,S){S?this._focusMonitor.focusVia(this._inputElement,S,g):this._inputElement.nativeElement.focus(g)}_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(g=>{!g&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new N(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(g){g.stopPropagation()}_onInputInteraction(g){if(g.stopPropagation(),!this.checked&&!this.disabled){const S=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),S&&this.radioGroup._emitChangeEvent())}}_setDisabled(g){this._disabled!==g&&(this._disabled=g,this._changeDetector.markForCheck())}_updateTabIndex(){const g=this.radioGroup;let S;if(S=g&&g.selected&&!this.disabled?g.selected===this?this.tabIndex:-1:this.tabIndex,S!==this._previousTabIndex){const ee=this._inputElement?.nativeElement;ee&&(ee.setAttribute("tabindex",S+""),this._previousTabIndex=S)}}}return m.\u0275fac=function(g){o.$Z()},m.\u0275dir=o.lG2({type:m,viewQuery:function(g,S){if(1&g&&o.Gf(me,5),2&g){let ee;o.iGM(ee=o.CRH())&&(S._inputElement=ee.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:[o.qOj]}),m})(),W=(()=>{class m extends pe{constructor(g,S,ee,ge,be,xe,Ee,_e){super(g,S,ee,ge,be,xe,Ee,_e)}}return m.\u0275fac=function(g){return new(g||m)(o.Y36(C,8),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(t.tE),o.Y36(oe.A8),o.Y36(o.QbO,8),o.Y36(K,8),o.$8M("tabindex"))},m.\u0275cmp=o.Xpm({type:m,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(g,S){1&g&&o.NdJ("focus",function(){return S._inputElement.nativeElement.focus()}),2&g&&(o.uIk("tabindex",null)("id",S.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),o.ekj("mat-radio-checked",S.checked)("mat-radio-disabled",S.disabled)("_mat-animation-noopable",S._noopAnimations)("mat-primary","primary"===S.color)("mat-accent","accent"===S.color)("mat-warn","warn"===S.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[o.qOj],ngContentSelectors:b,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(g,S){if(1&g&&(o.F$t(),o.TgZ(0,"label",0,1)(2,"span",2),o._UZ(3,"span",3)(4,"span",4),o.TgZ(5,"input",5,6),o.NdJ("change",function(ge){return S._onInputInteraction(ge)})("click",function(ge){return S._onInputClick(ge)}),o.qZA(),o.TgZ(7,"span",7),o._UZ(8,"span",8),o.qZA()(),o.TgZ(9,"span",9)(10,"span",10),o._uU(11,"\xa0"),o.qZA(),o.Hsn(12),o.qZA()()),2&g){const ee=o.MAs(1);o.uIk("for",S.inputId),o.xp6(5),o.Q6J("id",S.inputId)("checked",S.checked)("disabled",S.disabled)("required",S.required),o.uIk("name",S.name)("value",S.value)("aria-label",S.ariaLabel)("aria-labelledby",S.ariaLabelledby)("aria-describedby",S.ariaDescribedby),o.xp6(2),o.Q6J("matRippleTrigger",ee)("matRippleDisabled",S._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",o.VKq(17,ce,S._noopAnimations?0:150)),o.xp6(2),o.ekj("mat-radio-label-before","before"==S.labelPosition)}},dependencies:[l.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}),m})(),Y=(()=>{class m{}return m.\u0275fac=function(g){return new(g||m)},m.\u0275mod=o.oAB({type:m}),m.\u0275inj=o.cJS({imports:[l.si,l.BQ,l.BQ]}),m})()},4385:(Le,Me,r)=>{r.d(Me,{LD:()=>Ue,gD:()=>Re});var o=r(2561),l=r(6895),t=r(4650),x=r(3238),oe=r(9549),R=r(7376),me=r(2687),ce=r(445),b=r(1281),K=r(5017),re=r(9521),V=r(4006),F=r(7579),N=r(9770),C=r(6451),$=r(8675),ye=r(3900),he=r(5698),ne=r(9300),pe=r(4004),W=r(1884),Y=r(2722),m=r(7340);const E=["trigger"],g=["panel"];function S(we,O){if(1&we&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&we){const h=t.oxw();t.xp6(1),t.Oqu(h.placeholder)}}function ee(we,O){if(1&we&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&we){const h=t.oxw(2);t.xp6(1),t.Oqu(h.triggerValue)}}function ge(we,O){1&we&&t.Hsn(0,0,["*ngSwitchCase","true"])}function be(we,O){if(1&we&&(t.TgZ(0,"span",9),t.YNc(1,ee,2,1,"span",10),t.YNc(2,ge,1,0,"ng-content",11),t.qZA()),2&we){const h=t.oxw();t.Q6J("ngSwitch",!!h.customTrigger),t.xp6(2),t.Q6J("ngSwitchCase",!0)}}function xe(we,O){if(1&we){const h=t.EpF();t.TgZ(0,"div",13)(1,"div",14,15),t.NdJ("@transformPanel.done",function(e){t.CHM(h);const a=t.oxw();return t.KtG(a._panelDoneAnimatingStream.next(e.toState))})("keydown",function(e){t.CHM(h);const a=t.oxw();return t.KtG(a._handleKeydown(e))}),t.Hsn(3,1),t.qZA()()}if(2&we){const h=t.oxw();t.Q6J("@transformPanelWrap",void 0),t.xp6(1),t.Gre("mat-select-panel ",h._getPanelTheme(),""),t.Udp("transform-origin",h._transformOrigin)("font-size",h._triggerFontSize,"px"),t.Q6J("ngClass",h.panelClass)("@transformPanel",h.multiple?"showing-multiple":"showing"),t.uIk("id",h.id+"-panel")("aria-multiselectable",h.multiple)("aria-label",h.ariaLabel||null)("aria-labelledby",h._getPanelAriaLabelledby())}}const Ee=[[["mat-select-trigger"]],"*"],_e=["mat-select-trigger","*"],ve={transformPanelWrap:(0,m.X$)("transformPanelWrap",[(0,m.eR)("* => void",(0,m.IO)("@transformPanel",[(0,m.pV)()],{optional:!0}))]),transformPanel:(0,m.X$)("transformPanel",[(0,m.SB)("void",(0,m.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,m.SB)("showing",(0,m.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,m.SB)("showing-multiple",(0,m.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,m.eR)("void => *",(0,m.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,m.eR)("* => void",(0,m.jt)("100ms 25ms linear",(0,m.oB)({opacity:0})))])};let P=0;const G=256,U=new t.OlP("mat-select-scroll-strategy"),L=new t.OlP("MAT_SELECT_CONFIG"),se={provide:U,deps:[o.aV],useFactory:function ie(we){return()=>we.scrollStrategies.reposition()}};class z{constructor(O,h){this.source=O,this.value=h}}const te=(0,x.Kr)((0,x.sb)((0,x.Id)((0,x.FD)(class{constructor(we,O,h,i,e){this._elementRef=we,this._defaultErrorStateMatcher=O,this._parentForm=h,this._parentFormGroup=i,this.ngControl=e,this.stateChanges=new F.x}})))),Ie=new t.OlP("MatSelectTrigger");let Fe=(()=>{class we extends te{constructor(h,i,e,a,p,w,A,Z,fe,Ce,Ae,ke,T,n){super(p,a,A,Z,Ce),this._viewportRuler=h,this._changeDetectorRef=i,this._ngZone=e,this._dir=w,this._parentFormField=fe,this._liveAnnouncer=T,this._defaultOptions=n,this._panelOpen=!1,this._compareWith=(s,_)=>s===_,this._uid="mat-select-"+P++,this._triggerAriaLabelledBy=null,this._destroy=new F.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+P++,this._panelDoneAnimatingStream=new F.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,N.P)(()=>{const s=this.options;return s?s.changes.pipe((0,$.O)(s),(0,ye.w)(()=>(0,C.T)(...s.map(_=>_.onSelectionChange)))):this._ngZone.onStable.pipe((0,he.q)(1),(0,ye.w)(()=>this.optionSelectionChanges))}),this.openedChange=new t.vpe,this._openedStream=this.openedChange.pipe((0,ne.h)(s=>s),(0,pe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ne.h)(s=>!s),(0,pe.U)(()=>{})),this.selectionChange=new t.vpe,this.valueChange=new t.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=n?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=n.typeaheadDebounceInterval),this._scrollStrategyFactory=ke,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Ae)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(h){this._placeholder=h,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(V.kI.required)??!1}set required(h){this._required=(0,b.Ig)(h),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(h){this._multiple=(0,b.Ig)(h)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(h){this._disableOptionCentering=(0,b.Ig)(h)}get compareWith(){return this._compareWith}set compareWith(h){this._compareWith=h,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(h){this._assignValue(h)&&this._onChange(h)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(h){this._typeaheadDebounceInterval=(0,b.su)(h)}get id(){return this._id}set id(h){this._id=h||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new K.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,W.x)(),(0,Y.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Y.R)(this._destroy)).subscribe(h=>{h.added.forEach(i=>i.select()),h.removed.forEach(i=>i.deselect())}),this.options.changes.pipe((0,$.O)(null),(0,Y.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const h=this._getTriggerAriaLabelledby(),i=this.ngControl;if(h!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=h,h?e.setAttribute("aria-labelledby",h):e.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(h){(h.disabled||h.userAriaDescribedBy)&&this.stateChanges.next(),h.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(h){this._assignValue(h)}registerOnChange(h){this._onChange=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h,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 h=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&h.reverse(),h.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(h){this.disabled||(this.panelOpen?this._handleOpenKeydown(h):this._handleClosedKeydown(h))}_handleClosedKeydown(h){const i=h.keyCode,e=i===re.JH||i===re.LH||i===re.oh||i===re.SV,a=i===re.K5||i===re.L_,p=this._keyManager;if(!p.isTyping()&&a&&!(0,re.Vb)(h)||(this.multiple||h.altKey)&&e)h.preventDefault(),this.open();else if(!this.multiple){const w=this.selected;p.onKeydown(h);const A=this.selected;A&&w!==A&&this._liveAnnouncer.announce(A.viewValue,1e4)}}_handleOpenKeydown(h){const i=this._keyManager,e=h.keyCode,a=e===re.JH||e===re.LH,p=i.isTyping();if(a&&h.altKey)h.preventDefault(),this.close();else if(p||e!==re.K5&&e!==re.L_||!i.activeItem||(0,re.Vb)(h))if(!p&&this._multiple&&e===re.A&&h.ctrlKey){h.preventDefault();const w=this.options.some(A=>!A.disabled&&!A.selected);this.options.forEach(A=>{A.disabled||(w?A.select():A.deselect())})}else{const w=i.activeItemIndex;i.onKeydown(h),this._multiple&&a&&h.shiftKey&&i.activeItem&&i.activeItemIndex!==w&&i.activeItem._selectViaInteraction()}else h.preventDefault(),i.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,he.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(h){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&h)Array.isArray(h),h.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(h);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(h){const i=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,h)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(h){return!!(h!==this._value||this._multiple&&Array.isArray(h))&&(this.options&&this._setSelectionByValue(h),this._value=h,!0)}_initKeyManager(){this._keyManager=new me.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Y.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Y.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 h=(0,C.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Y.R)(h)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,C.T)(...this.options.map(i=>i._stateChanges)).pipe((0,Y.R)(h)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(h,i){const e=this._selectionModel.isSelected(h);null!=h.value||this._multiple?(e!==h.selected&&(h.selected?this._selectionModel.select(h):this._selectionModel.deselect(h)),i&&this._keyManager.setActiveItem(h),this.multiple&&(this._sortValues(),i&&this.focus())):(h.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(h.value)),e!==this._selectionModel.isSelected(h)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const h=this.options.toArray();this._selectionModel.sort((i,e)=>this.sortComparator?this.sortComparator(i,e,h):h.indexOf(i)-h.indexOf(e)),this.stateChanges.next()}}_propagateChanges(h){let i=null;i=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:h,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),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(h){this._elementRef.nativeElement.focus(h)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const h=this._parentFormField?.getLabelId();return this.ariaLabelledby?(h?h+" ":"")+this.ariaLabelledby:h}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const h=this._parentFormField?.getLabelId();let i=(h?h+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(h){this.openedChange.emit(h)}setDescribedByIds(h){h.length?this._elementRef.nativeElement.setAttribute("aria-describedby",h.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return we.\u0275fac=function(h){return new(h||we)(t.Y36(R.rL),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(x.rD),t.Y36(t.SBq),t.Y36(ce.Is,8),t.Y36(V.F,8),t.Y36(V.sg,8),t.Y36(oe.G_,8),t.Y36(V.a5,10),t.$8M("tabindex"),t.Y36(U),t.Y36(me.Kd),t.Y36(L,8))},we.\u0275dir=t.lG2({type:we,viewQuery:function(h,i){if(1&h&&(t.Gf(E,5),t.Gf(g,5),t.Gf(o.pI,5)),2&h){let e;t.iGM(e=t.CRH())&&(i.trigger=e.first),t.iGM(e=t.CRH())&&(i.panel=e.first),t.iGM(e=t.CRH())&&(i._overlayDir=e.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:[t.qOj,t.TTD]}),we})(),Re=(()=>{class we extends Fe{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(h,i,e){const a=this._getItemHeight();return Math.min(Math.max(0,a*h-i+a/2),e)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Y.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,he.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(h){const i=(0,x.CB)(h,this.options,this.optionGroups),e=this._getItemHeight();this.panel.nativeElement.scrollTop=0===h&&1===i?0:(0,x.jH)((h+i)*e,e,this.panel.nativeElement.scrollTop,G)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(h){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(h)}_getChangeEvent(h){return new z(this,h)}_calculateOverlayOffsetX(){const h=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),e=this._isRtl(),a=this.multiple?56:32;let p;if(this.multiple)p=40;else if(this.disableOptionCentering)p=16;else{let Z=this._selectionModel.selected[0]||this.options.first;p=Z&&Z.group?32:16}e||(p*=-1);const w=0-(h.left+p-(e?a:0)),A=h.right+p-i.width+(e?0:a);w>0?p+=w+8:A>0&&(p-=A+8),this._overlayDir.offsetX=Math.round(p),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(h,i,e){const a=this._getItemHeight(),p=(a-this._triggerRect.height)/2,w=Math.floor(G/a);let A;return this.disableOptionCentering?0:(A=0===this._scrollTop?h*a:this._scrollTop===e?(h-(this._getItemCount()-w))*a+(a-(this._getItemCount()*a-G)%a):i-a/2,Math.round(-1*A-p))}_checkOverlayWithinViewport(h){const i=this._getItemHeight(),e=this._viewportRuler.getViewportSize(),a=this._triggerRect.top-8,p=e.height-this._triggerRect.bottom-8,w=Math.abs(this._offsetY),Z=Math.min(this._getItemCount()*i,G)-w-this._triggerRect.height;Z>p?this._adjustPanelUp(Z,p):w>a?this._adjustPanelDown(w,a,h):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(h,i){const e=Math.round(h-i);this._scrollTop-=e,this._offsetY-=e,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(h,i,e){const a=Math.round(h-i);if(this._scrollTop+=a,this._offsetY+=a,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=e)return this._scrollTop=e,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const h=this._getItemHeight(),i=this._getItemCount(),e=Math.min(i*h,G),p=i*h-e;let w;w=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),w+=(0,x.CB)(w,this.options,this.optionGroups);const A=e/2;this._scrollTop=this._calculateOverlayScroll(w,A,p),this._offsetY=this._calculateOverlayOffsetY(w,A,p),this._checkOverlayWithinViewport(p)}_getOriginBasedOnOption(){const h=this._getItemHeight(),i=(h-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+h/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return we.\u0275fac=function(){let O;return function(i){return(O||(O=t.n5z(we)))(i||we)}}(),we.\u0275cmp=t.Xpm({type:we,selectors:[["mat-select"]],contentQueries:function(h,i,e){if(1&h&&(t.Suo(e,Ie,5),t.Suo(e,x.ey,5),t.Suo(e,x.K7,5)),2&h){let a;t.iGM(a=t.CRH())&&(i.customTrigger=a.first),t.iGM(a=t.CRH())&&(i.options=a),t.iGM(a=t.CRH())&&(i.optionGroups=a)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(h,i){1&h&&t.NdJ("keydown",function(a){return i._handleKeydown(a)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&h&&(t.uIk("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),t.ekj("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[t._Bn([{provide:oe.Eo,useExisting:we},{provide:x.HF,useExisting:we}]),t.qOj],ngContentSelectors:_e,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(h,i){if(1&h&&(t.F$t(Ee),t.TgZ(0,"div",0,1),t.NdJ("click",function(){return i.toggle()}),t.TgZ(3,"div",2),t.YNc(4,S,2,1,"span",3),t.YNc(5,be,3,2,"span",4),t.qZA(),t.TgZ(6,"div",5),t._UZ(7,"div",6),t.qZA()(),t.YNc(8,xe,4,14,"ng-template",7),t.NdJ("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&h){const e=t.MAs(1);t.uIk("aria-owns",i.panelOpen?i.id+"-panel":null),t.xp6(3),t.Q6J("ngSwitch",i.empty),t.uIk("id",i._valueId),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1),t.xp6(3),t.Q6J("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[l.mk,l.RF,l.n9,l.ED,o.pI,o.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:[ve.transformPanelWrap,ve.transformPanel]},changeDetection:0}),we})(),Ue=(()=>{class we{}return we.\u0275fac=function(h){return new(h||we)},we.\u0275mod=t.oAB({type:we}),we.\u0275inj=t.cJS({providers:[se],imports:[l.ez,o.U8,x.Ng,x.BQ,R.ZD,oe.lN,x.Ng,x.BQ]}),we})()},266:(Le,Me,r)=>{r.d(Me,{AV:()=>ve,gM:()=>xe});var o=r(2561),l=r(2687),t=r(6895),x=r(4650),oe=r(3238),R=r(7376),me=r(445),ce=r(1281),b=r(9521),K=r(2289),re=r(3353),V=r(4080),F=r(7579),N=r(2722),C=r(5698);r(7340);const ye=["tooltip"],pe="tooltip-panel",W=(0,re.i$)({passive:!0}),E=new x.OlP("mat-tooltip-scroll-strategy"),S={provide:E,deps:[o.aV],useFactory:function g(j){return()=>j.scrollStrategies.reposition({scrollThrottle:20})}},ee=new x.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ge(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let be=(()=>{class j{constructor(P,G,Q,ue,J,Se,I,U,ie,L,se,z){this._overlay=P,this._elementRef=G,this._scrollDispatcher=Q,this._viewContainerRef=ue,this._ngZone=J,this._platform=Se,this._ariaDescriber=I,this._focusMonitor=U,this._dir=L,this._defaultOptions=se,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 F.x,this._scrollStrategy=ie,this._document=z,se&&(se.position&&(this.position=se.position),se.touchGestures&&(this.touchGestures=se.touchGestures)),L.change.pipe((0,N.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(P){P!==this._position&&(this._position=P,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(P){this._disabled=(0,ce.Ig)(P),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(P){this._showDelay=(0,ce.su)(P)}get hideDelay(){return this._hideDelay}set hideDelay(P){this._hideDelay=(0,ce.su)(P),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(P){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=P?String(P).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(P){this._tooltipClass=P,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,N.R)(this._destroyed)).subscribe(P=>{P?"keyboard"===P&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const P=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([G,Q])=>{P.removeEventListener(G,Q,W)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(P,this.message,"tooltip"),this._focusMonitor.stopMonitoring(P)}show(P=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const G=this._createOverlay();this._detach(),this._portal=this._portal||new V.C5(this._tooltipComponent,this._viewContainerRef);const Q=this._tooltipInstance=G.attach(this._portal).instance;Q._triggerElement=this._elementRef.nativeElement,Q._mouseLeaveHideDelay=this._hideDelay,Q.afterHidden().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Q.show(P)}hide(P=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(P)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const P=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),G=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(P);return G.positionChanges.pipe((0,N.R)(this._destroyed)).subscribe(Q=>{this._updateCurrentPositionClass(Q.connectionPair),this._tooltipInstance&&Q.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:G,panelClass:`${this._cssClassPrefix}-${pe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,N.R)(this._destroyed)).subscribe(Q=>{this._isTooltipVisible()&&Q.keyCode===b.hY&&!(0,b.Vb)(Q)&&(Q.preventDefault(),Q.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(P){const G=P.getConfig().positionStrategy,Q=this._getOrigin(),ue=this._getOverlayPosition();G.withPositions([this._addOffset({...Q.main,...ue.main}),this._addOffset({...Q.fallback,...ue.fallback})])}_addOffset(P){return P}_getOrigin(){const P=!this._dir||"ltr"==this._dir.value,G=this.position;let Q;"above"==G||"below"==G?Q={originX:"center",originY:"above"==G?"top":"bottom"}:"before"==G||"left"==G&&P||"right"==G&&!P?Q={originX:"start",originY:"center"}:("after"==G||"right"==G&&P||"left"==G&&!P)&&(Q={originX:"end",originY:"center"});const{x:ue,y:J}=this._invertPosition(Q.originX,Q.originY);return{main:Q,fallback:{originX:ue,originY:J}}}_getOverlayPosition(){const P=!this._dir||"ltr"==this._dir.value,G=this.position;let Q;"above"==G?Q={overlayX:"center",overlayY:"bottom"}:"below"==G?Q={overlayX:"center",overlayY:"top"}:"before"==G||"left"==G&&P||"right"==G&&!P?Q={overlayX:"end",overlayY:"center"}:("after"==G||"right"==G&&P||"left"==G&&!P)&&(Q={overlayX:"start",overlayY:"center"});const{x:ue,y:J}=this._invertPosition(Q.overlayX,Q.overlayY);return{main:Q,fallback:{overlayX:ue,overlayY:J}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,C.q)(1),(0,N.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(P){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=P,this._tooltipInstance._markForCheck())}_invertPosition(P,G){return"above"===this.position||"below"===this.position?"top"===G?G="bottom":"bottom"===G&&(G="top"):"end"===P?P="start":"start"===P&&(P="end"),{x:P,y:G}}_updateCurrentPositionClass(P){const{overlayY:G,originX:Q,originY:ue}=P;let J;if(J="center"===G?this._dir&&"rtl"===this._dir.value?"end"===Q?"left":"right":"start"===Q?"left":"right":"bottom"===G&&"top"===ue?"above":"below",J!==this._currentPosition){const Se=this._overlayRef;if(Se){const I=`${this._cssClassPrefix}-${pe}-`;Se.removePanelClass(I+this._currentPosition),Se.addPanelClass(I+J)}this._currentPosition=J}}_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 P=[];if(this._platformSupportsMouseEvents())P.push(["mouseleave",G=>{const Q=G.relatedTarget;(!Q||!this._overlayRef?.overlayElement.contains(Q))&&this.hide()}],["wheel",G=>this._wheelListener(G)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const G=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};P.push(["touchend",G],["touchcancel",G])}this._addListeners(P),this._passiveListeners.push(...P)}_addListeners(P){P.forEach(([G,Q])=>{this._elementRef.nativeElement.addEventListener(G,Q,W)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(P){if(this._isTooltipVisible()){const G=this._document.elementFromPoint(P.clientX,P.clientY),Q=this._elementRef.nativeElement;G!==Q&&!Q.contains(G)&&this.hide()}}_disableNativeGesturesIfNecessary(){const P=this.touchGestures;if("off"!==P){const G=this._elementRef.nativeElement,Q=G.style;("on"===P||"INPUT"!==G.nodeName&&"TEXTAREA"!==G.nodeName)&&(Q.userSelect=Q.msUserSelect=Q.webkitUserSelect=Q.MozUserSelect="none"),("on"===P||!G.draggable)&&(Q.webkitUserDrag="none"),Q.touchAction="none",Q.webkitTapHighlightColor="transparent"}}}return j.\u0275fac=function(P){x.$Z()},j.\u0275dir=x.lG2({type:j,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),j})(),xe=(()=>{class j extends be{constructor(P,G,Q,ue,J,Se,I,U,ie,L,se,z){super(P,G,Q,ue,J,Se,I,U,ie,L,se,z),this._tooltipComponent=_e}}return j.\u0275fac=function(P){return new(P||j)(x.Y36(o.aV),x.Y36(x.SBq),x.Y36(R.mF),x.Y36(x.s_b),x.Y36(x.R0b),x.Y36(re.t4),x.Y36(l.$s),x.Y36(l.tE),x.Y36(E),x.Y36(me.Is,8),x.Y36(ee,8),x.Y36(t.K0))},j.\u0275dir=x.lG2({type:j,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[x.qOj]}),j})(),Ee=(()=>{class j{constructor(P,G){this._changeDetectorRef=P,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new F.x,this._animationsDisabled="NoopAnimations"===G}show(P){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},P)}hide(P){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},P)}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:P}){(!P||!this._triggerElement.contains(P))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:P}){(P===this._showAnimation||P===this._hideAnimation)&&this._finalizeAnimation(P===this._showAnimation)}_finalizeAnimation(P){P?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(P){const G=this._tooltip.nativeElement,Q=this._showAnimation,ue=this._hideAnimation;if(G.classList.remove(P?ue:Q),G.classList.add(P?Q:ue),this._isVisible=P,P&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const J=getComputedStyle(G);("0s"===J.getPropertyValue("animation-duration")||"none"===J.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}P&&this._onShow(),this._animationsDisabled&&(G.classList.add("_mat-animation-noopable"),this._finalizeAnimation(P))}}return j.\u0275fac=function(P){return new(P||j)(x.Y36(x.sBO),x.Y36(x.QbO,8))},j.\u0275dir=x.lG2({type:j}),j})(),_e=(()=>{class j extends Ee{constructor(P,G,Q){super(P,Q),this._breakpointObserver=G,this._isHandset=this._breakpointObserver.observe(K.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return j.\u0275fac=function(P){return new(P||j)(x.Y36(x.sBO),x.Y36(K.Yg),x.Y36(x.QbO,8))},j.\u0275cmp=x.Xpm({type:j,selectors:[["mat-tooltip-component"]],viewQuery:function(P,G){if(1&P&&x.Gf(ye,7),2&P){let Q;x.iGM(Q=x.CRH())&&(G._tooltip=Q.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(P,G){1&P&&x.NdJ("mouseleave",function(ue){return G._handleMouseLeave(ue)}),2&P&&x.Udp("zoom",G.isVisible()?1:null)},features:[x.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(P,G){if(1&P&&(x.TgZ(0,"div",0,1),x.NdJ("animationend",function(ue){return G._handleAnimationEnd(ue)}),x.ALo(2,"async"),x._uU(3),x.qZA()),2&P){let Q;x.ekj("mat-tooltip-handset",null==(Q=x.lcZ(2,4,G._isHandset))?null:Q.matches),x.Q6J("ngClass",G.tooltipClass),x.xp6(3),x.Oqu(G.message)}},dependencies:[t.mk,t.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}),j})(),ve=(()=>{class j{}return j.\u0275fac=function(P){return new(P||j)},j.\u0275mod=x.oAB({type:j}),j.\u0275inj=x.cJS({providers:[S],imports:[l.rt,t.ez,o.U8,oe.BQ,oe.BQ,R.ZD]}),j})()}}]);
|