marketplacepos 2.4.0 → 2.4.1
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/102.635de205af00df15.js +1 -0
- package/Marketplace/387.04d02414af56d750.js +1 -0
- package/Marketplace/3rdpartylicenses.txt +25 -0
- package/Marketplace/402.2999196dce334514.js +1 -0
- package/Marketplace/455.fc7663306b753727.js +1 -0
- package/Marketplace/458.c769122ade2c10ed.js +1 -0
- package/Marketplace/472.54413a4f69aa673d.js +1 -0
- package/Marketplace/585.9e916b668a91cc94.js +1 -0
- package/Marketplace/667.81e6162196d486da.js +1 -0
- package/Marketplace/{767.297995f3aba0da57.js → 767.79e23997e93fb6c3.js} +1 -1
- package/Marketplace/801.8eb1454f763d4534.js +1 -0
- package/Marketplace/882.b34c3cc6e65d7a17.js +1 -0
- package/Marketplace/970.d0e3ee1e2aec0db5.js +1 -0
- package/Marketplace/assets/lbd/_sidebar-and-main-panel.scss +0 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.f30bf3b0f501021c.js +1 -0
- package/Marketplace/runtime.d01f3ddbb2b8f1f2.js +1 -0
- package/Marketplace/scripts.6c7ffbfab0ec93ff.js +1 -0
- package/Marketplace/styles.296cdf56f9059ddb.css +39 -0
- package/package.json +1 -1
- package/Marketplace/146.bc63745556a7579e.js +0 -1
- package/Marketplace/288.9b236c96f7411cc2.js +0 -1
- package/Marketplace/327.72c9ed40548e876f.js +0 -1
- package/Marketplace/402.76aaae9b8dfdc4fd.js +0 -1
- package/Marketplace/458.175fffe756700561.js +0 -1
- package/Marketplace/466.02b13502d80588a2.js +0 -1
- package/Marketplace/472.2a25cc631023dd9d.js +0 -1
- package/Marketplace/585.c93552ac67f4550c.js +0 -1
- package/Marketplace/61.6bf2570c9c03e65d.js +0 -1
- package/Marketplace/970.3f4eb2182e0ed6ff.js +0 -1
- package/Marketplace/main.7b5711d2efb046b5.js +0 -1
- package/Marketplace/runtime.ec27a3ee2f27cef3.js +0 -1
- package/Marketplace/scripts.512baec01df5d79f.js +0 -1
- package/Marketplace/styles.84477c613818f650.css +0 -39
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[387],{7481:(ze,ye,a)=>{a.d(ye,{R:()=>C,p:()=>B});var s=a(4650),r=a(6895),t=a(4006),D=a(8252),re=a(1589);function T(L,R){if(1&L){const N=s.EpF();s.ynx(0),s.TgZ(1,"div",18)(2,"input",19),s.NdJ("ngModelChange",function(K){s.CHM(N);const Q=s.oxw();return s.KtG(Q.text=K)})("keyup",function(){s.CHM(N);const K=s.oxw();return s.KtG(K.onTextChange())})("keyup.enter",function(){s.CHM(N);const K=s.oxw();return s.KtG(K.submit())}),s.qZA(),s.TgZ(3,"div")(4,"button",20),s.NdJ("click",function(){s.CHM(N);const K=s.oxw();return s.KtG(K.submit())}),s._UZ(5,"i",21),s.qZA()()(),s.BQk()}if(2&L){const N=s.oxw();s.xp6(2),s.Q6J("ngModel",N.text)("placeholder",N.searchBoxPlaceHolder)}}function ge(L,R){if(1&L){const N=s.EpF();s.TgZ(0,"div",22)(1,"a",23)(2,"i",24),s._UZ(3,"i",25),s.qZA()(),s.TgZ(4,"form",26),s.Hsn(5,2),s.TgZ(6,"button",27),s.NdJ("click",function(){s.CHM(N);const K=s.oxw();return s.KtG(K.submit())}),s._UZ(7,"i",28),s._uU(8,"Search "),s.qZA()()()}}const oe=[[["actions"]],[["content"]],[["filters"]]],Z=["actions","content","filters"];let B=(()=>{class L{constructor(N){this.sidebarService=N,this.onSubmit=new s.vpe,this.textChange=new s.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 U=N.split("#");if(U.length>1){var Q=U[1].split("/");return""!=Q[0]?Q[0]:Q[1]}return N}toggleMenu(){this.sidebarService.toggleSidebar()}}return L.\u0275fac=function(N){return new(N||L)(s.Y36(re.g))},L.\u0275cmp=s.Xpm({type:L,selectors:[["mainpanel"]],inputs:{text:"text",headerTitle:"headerTitle",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",showBeside:"showBeside"},outputs:{onSubmit:"onSubmit",textChange:"textChange"},ngContentSelectors:Z,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",3,"title"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0"],[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,U){1&N&&(s.F$t(oe),s.TgZ(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),s._uU(4),s.qZA()(),s.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),s.YNc(10,T,6,2,"ng-container",7),s.qZA()(),s.YNc(11,ge,9,0,"div",8),s.qZA()()(),s.TgZ(12,"div",9)(13,"button",10),s._UZ(14,"i",11),s.qZA(),s.TgZ(15,"button",12),s._UZ(16,"i",13),s.qZA(),s.TgZ(17,"button",14),s.NdJ("click",function(){return U.toggleMenu()}),s._UZ(18,"span",15)(19,"span",15)(20,"span",15),s.qZA()(),s.TgZ(21,"div",16),s.Hsn(22),s.qZA()()(),s.TgZ(23,"div",17)(24,"div"),s.Hsn(25,1),s.qZA()()),2&N&&(s.xp6(3),s.s9C("title",U.headerTitle),s.xp6(1),s.hij(" ",U.headerTitle," "),s.xp6(6),s.Q6J("ngIf",!U.hideSearchBox),s.xp6(1),s.Q6J("ngIf",!U.hideSearchDropdown))},dependencies:[r.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}),L})(),C=(()=>{class L{}return L.\u0275fac=function(N){return new(N||L)},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[r.ez,t.u5,D.Bz]}),L})()},2387:(ze,ye,a)=>{a.r(ye),a.d(ye,{MenuModule:()=>ht});var c,s=a(6895),r=a(8252),t=a(8063),D=(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var d in n)n.hasOwnProperty(d)&&(o[d]=n[d])},function(o,n){function d(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(d.prototype=n.prototype,new d)}),re=function(c){function o(n,d){var h=this,H=this.constructor.prototype;return(h=c.call(this,n)||this).statusCode=d,h.__proto__=H,h}return D(o,c),o}(Error),T=function(c){function o(n){void 0===n&&(n="A timeout occurred.");var m=this,h=this.constructor.prototype;return(m=c.call(this,n)||this).__proto__=h,m}return D(o,c),o}(Error),ge=function(c){function o(n){void 0===n&&(n="An abort occurred.");var m=this,h=this.constructor.prototype;return(m=c.call(this,n)||this).__proto__=h,m}return D(o,c),o}(Error),oe=Object.assign||function(c){for(var o,n=1,d=arguments.length;n<d;n++)for(var m in o=arguments[n])Object.prototype.hasOwnProperty.call(o,m)&&(c[m]=o[m]);return c},Z=function c(o,n,d){this.statusCode=o,this.statusText=n,this.content=d},B=function(){function c(){}return c.prototype.get=function(o,n){return this.send(oe({},n,{method:"GET",url:o}))},c.prototype.post=function(o,n){return this.send(oe({},n,{method:"POST",url:o}))},c.prototype.delete=function(o,n){return this.send(oe({},n,{method:"DELETE",url:o}))},c.prototype.getCookieString=function(o){return""},c}(),C=(()=>(function(c){c[c.Trace=0]="Trace",c[c.Debug=1]="Debug",c[c.Information=2]="Information",c[c.Warning=3]="Warning",c[c.Error=4]="Error",c[c.Critical=5]="Critical",c[c.None=6]="None"}(C||(C={})),C))(),L=function(){function c(){}return c.prototype.log=function(o,n){},c.instance=new c,c}(),U=function(){function c(){}return c.isRequired=function(o,n){if(null==o)throw new Error("The '"+n+"' argument is required.")},c.isIn=function(o,n,d){if(!(o in n))throw new Error("Unknown "+d+" value: "+o+".")},c}(),K=function(){function c(){}return Object.defineProperty(c,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(c,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(c,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0}),c}();function Q(c,o){var n="";return Se(c)?(n="Binary data of length "+c.byteLength,o&&(n+=". Content: '"+function me(c){var o=new Uint8Array(c),n="";return o.forEach(function(d){n+="0x"+(d<16?"0":"")+d.toString(16)+" "}),n.substr(0,n.length-1)}(c)+"'")):"string"==typeof c&&(n="String data of length "+c.length,o&&(n+=". Content: '"+c+"'")),n}function Se(c){return c&&typeof ArrayBuffer<"u"&&(c instanceof ArrayBuffer||c.constructor&&"ArrayBuffer"===c.constructor.name)}function we(c,o,n,d,m,h,H){return function(c,o,n,d){return new(n||(n=Promise))(function(m,h){function H(g){try{X(d.next(g))}catch(he){h(he)}}function J(g){try{X(d.throw(g))}catch(he){h(he)}}function X(g){g.done?m(g.value):new n(function(he){he(g.value)}).then(H,J)}X((d=d.apply(c,[])).next())})}(this,0,void 0,function(){var J,X,g,he,He;return function(c,o){var d,m,h,H,n={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function J(g){return function(he){return function X(g){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,m&&(h=2&g[0]?m.return:g[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,g[1])).done)return h;switch(m=0,h&&(g=[2&g[0],h.value]),g[0]){case 0:case 1:h=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(h=(h=n.trys).length>0&&h[h.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!h||g[1]>h[0]&&g[1]<h[3])){n.label=g[1];break}if(6===g[0]&&n.label<h[1]){n.label=h[1],h=g;break}if(h&&n.label<h[2]){n.label=h[2],n.ops.push(g);break}h[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(he){g=[6,he],m=0}finally{d=h=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,he])}}}(this,function(We){switch(We.label){case 0:return m?[4,m()]:[3,2];case 1:(g=We.sent())&&((J={}).Authorization="Bearer "+g,X=J),We.label=2;case 2:return c.log(C.Trace,"("+o+" transport) sending data. "+Q(h,H)+"."),he=Se(h)?"arraybuffer":"text",[4,n.post(d,{content:h,headers:X,responseType:he})];case 3:return He=We.sent(),c.log(C.Trace,"("+o+" transport) request complete. Response status: "+He.statusCode+"."),[2]}})})}var k,ne=function(){function c(o,n){this.subject=o,this.observer=n}return c.prototype.dispose=function(){var o=this.subject.observers.indexOf(this.observer);o>-1&&this.subject.observers.splice(o,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch(function(n){})},c}(),_=function(){function c(o){this.minimumLogLevel=o,this.outputConsole=console}return c.prototype.log=function(o,n){if(o>=this.minimumLogLevel)switch(o){case C.Critical:case C.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+C[o]+": "+n);break;case C.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+C[o]+": "+n);break;case C.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+C[o]+": "+n);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+C[o]+": "+n)}},c}(),M=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var d in n)n.hasOwnProperty(d)&&(o[d]=n[d])};return function(o,n){function d(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(d.prototype=n.prototype,new d)}}(),v=Object.assign||function(c){for(var o,n=1,d=arguments.length;n<d;n++)for(var m in o=arguments[n])Object.prototype.hasOwnProperty.call(o,m)&&(c[m]=o[m]);return c};if(typeof XMLHttpRequest>"u"){var le=require;k=le("request")}var xe=function(c){function o(n){var d=c.call(this)||this;if(typeof k>"u")throw new Error("The 'request' module could not be loaded.");return d.logger=n,d.cookieJar=k.jar(),d.request=k.defaults({jar:d.cookieJar}),d}return M(o,c),o.prototype.send=function(n){var d=this;return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new ge):new Promise(function(m,h){var H;H=Se(n.content)?Buffer.from(n.content):n.content||"";var J=d.request(n.url,{body:H,encoding:"arraybuffer"===n.responseType?null:"utf8",headers:v({"X-Requested-With":"XMLHttpRequest"},n.headers),method:n.method,timeout:n.timeout},function(X,g,he){if(n.abortSignal&&(n.abortSignal.onabort=null),X)return"ETIMEDOUT"===X.code&&(d.logger.log(C.Warning,"Timeout from HTTP request."),h(new T)),d.logger.log(C.Warning,"Error from HTTP request. "+X),void h(X);g.statusCode>=200&&g.statusCode<300?m(new Z(g.statusCode,g.statusMessage||"",he)):h(new re(g.statusMessage||"",g.statusCode||0))});n.abortSignal&&(n.abortSignal.onabort=function(){J.abort(),h(new ge)})})},o.prototype.getCookieString=function(n){return this.cookieJar.getCookieString(n)},o}(B),Ce=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var d in n)n.hasOwnProperty(d)&&(o[d]=n[d])};return function(o,n){function d(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(d.prototype=n.prototype,new d)}}(),Te=function(c){function o(n){var d=c.call(this)||this;return d.logger=n,d}return Ce(o,c),o.prototype.send=function(n){var d=this;return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new ge):n.method?n.url?new Promise(function(m,h){var H=new XMLHttpRequest;H.open(n.method,n.url,!0),H.withCredentials=!0,H.setRequestHeader("X-Requested-With","XMLHttpRequest"),H.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var J=n.headers;J&&Object.keys(J).forEach(function(X){H.setRequestHeader(X,J[X])}),n.responseType&&(H.responseType=n.responseType),n.abortSignal&&(n.abortSignal.onabort=function(){H.abort(),h(new ge)}),n.timeout&&(H.timeout=n.timeout),H.onload=function(){n.abortSignal&&(n.abortSignal.onabort=null),H.status>=200&&H.status<300?m(new Z(H.status,H.statusText,H.response||H.responseText)):h(new re(H.statusText,H.status))},H.onerror=function(){d.logger.log(C.Warning,"Error from HTTP request. "+H.status+": "+H.statusText+"."),h(new re(H.statusText,H.status))},H.ontimeout=function(){d.logger.log(C.Warning,"Timeout from HTTP request."),h(new T)},H.send(n.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},o}(B),De=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var d in n)n.hasOwnProperty(d)&&(o[d]=n[d])};return function(o,n){function d(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(d.prototype=n.prototype,new d)}}(),be=function(c){function o(n){var d=c.call(this)||this;return d.httpClient=typeof XMLHttpRequest<"u"?new Te(n):new xe(n),d}return De(o,c),o.prototype.send=function(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new ge):n.method?n.url?this.httpClient.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},o.prototype.getCookieString=function(n){return this.httpClient.getCookieString(n)},o}(B),_e=function(){function c(){}return c.write=function(o){return""+o+c.RecordSeparator},c.parse=function(o){if(o[o.length-1]!==c.RecordSeparator)throw new Error("Message is incomplete.");var n=o.split(c.RecordSeparator);return n.pop(),n},c.RecordSeparatorCode=30,c.RecordSeparator=String.fromCharCode(c.RecordSeparatorCode),c}(),W=function(){function c(){}return c.prototype.writeHandshakeRequest=function(o){return _e.write(JSON.stringify(o))},c.prototype.parseHandshakeResponse=function(o){var d,m;if(Se(o)||typeof Buffer<"u"&&o instanceof Buffer){var h=new Uint8Array(o);if(-1===(H=h.indexOf(_e.RecordSeparatorCode)))throw new Error("Message is incomplete.");var J=H+1;d=String.fromCharCode.apply(null,h.slice(0,J)),m=h.byteLength>J?h.slice(J).buffer:null}else{var H,X=o;if(-1===(H=X.indexOf(_e.RecordSeparator)))throw new Error("Message is incomplete.");d=X.substring(0,J=H+1),m=X.length>J?X.substring(J):null}var g=_e.parse(d),he=JSON.parse(g[0]);if(he.type)throw new Error("Expected a handshake response from the server.");return[m,he]},c}(),Y=(()=>(function(c){c[c.Invocation=1]="Invocation",c[c.StreamItem=2]="StreamItem",c[c.Completion=3]="Completion",c[c.StreamInvocation=4]="StreamInvocation",c[c.CancelInvocation=5]="CancelInvocation",c[c.Ping=6]="Ping",c[c.Close=7]="Close"}(Y||(Y={})),Y))(),ue=function(){function c(){this.observers=[]}return c.prototype.next=function(o){for(var n=0,d=this.observers;n<d.length;n++)d[n].next(o)},c.prototype.error=function(o){for(var n=0,d=this.observers;n<d.length;n++){var m=d[n];m.error&&m.error(o)}},c.prototype.complete=function(){for(var o=0,n=this.observers;o<n.length;o++){var d=n[o];d.complete&&d.complete()}},c.prototype.subscribe=function(o){return this.observers.push(o),new ne(this,o)},c}(),F=function(c,o,n,d){return new(n||(n=Promise))(function(m,h){function H(g){try{X(d.next(g))}catch(he){h(he)}}function J(g){try{X(d.throw(g))}catch(he){h(he)}}function X(g){g.done?m(g.value):new n(function(he){he(g.value)}).then(H,J)}X((d=d.apply(c,o||[])).next())})},$=function(c,o){var d,m,h,H,n={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function J(g){return function(he){return function X(g){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,m&&(h=2&g[0]?m.return:g[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,g[1])).done)return h;switch(m=0,h&&(g=[2&g[0],h.value]),g[0]){case 0:case 1:h=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(h=(h=n.trys).length>0&&h[h.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!h||g[1]>h[0]&&g[1]<h[3])){n.label=g[1];break}if(6===g[0]&&n.label<h[1]){n.label=h[1],h=g;break}if(h&&n.label<h[2]){n.label=h[2],n.ops.push(g);break}h[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(he){g=[6,he],m=0}finally{d=h=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,he])}}},ee=(()=>(function(c){c.Disconnected="Disconnected",c.Connecting="Connecting",c.Connected="Connected",c.Disconnecting="Disconnecting",c.Reconnecting="Reconnecting"}(ee||(ee={})),ee))(),Le=function(){function c(o,n,d,m){var h=this;this.nextKeepAlive=0,U.isRequired(o,"connection"),U.isRequired(n,"logger"),U.isRequired(d,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=n,this.protocol=d,this.connection=o,this.reconnectPolicy=m,this.handshakeProtocol=new W,this.connection.onreceive=function(H){return h.processIncomingData(H)},this.connection.onclose=function(H){return h.connectionClosed(H)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=ee.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:Y.Ping})}return c.create=function(o,n,d,m){return new c(o,n,d,m)},Object.defineProperty(c.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(o){if(this.connectionState!==ee.Disconnected&&this.connectionState!==ee.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!o)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=o},enumerable:!0,configurable:!0}),c.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},c.prototype.startWithStateTransitions=function(){return F(this,void 0,void 0,function(){var o;return $(this,function(n){switch(n.label){case 0:if(this.connectionState!==ee.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=ee.Connecting,this.logger.log(C.Debug,"Starting HubConnection."),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return n.sent(),this.connectionState=ee.Connected,this.connectionStarted=!0,this.logger.log(C.Debug,"HubConnection connected successfully."),[3,4];case 3:return o=n.sent(),this.connectionState=ee.Disconnected,this.logger.log(C.Debug,"HubConnection failed to start successfully because of error '"+o+"'."),[2,Promise.reject(o)];case 4:return[2]}})})},c.prototype.startInternal=function(){return F(this,void 0,void 0,function(){var o,n,d,m=this;return $(this,function(h){switch(h.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,o=new Promise(function(H,J){m.handshakeResolver=H,m.handshakeRejecter=J}),[4,this.connection.start(this.protocol.transferFormat)];case 1:h.sent(),h.label=2;case 2:return h.trys.push([2,5,,7]),n={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(C.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(n))];case 3:return h.sent(),this.logger.log(C.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,o];case 4:if(h.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return d=h.sent(),this.logger.log(C.Debug,"Hub handshake failed with error '"+d+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(d)];case 6:throw h.sent(),d;case 7:return[2]}})})},c.prototype.stop=function(){return F(this,void 0,void 0,function(){var o;return $(this,function(d){switch(d.label){case 0:return o=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:d.sent(),d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:case 4:return d.sent(),[3,5];case 5:return[2]}})})},c.prototype.stopInternal=function(o){return this.connectionState===ee.Disconnected?(this.logger.log(C.Debug,"Call to HubConnection.stop("+o+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===ee.Disconnecting?(this.logger.log(C.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=ee.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=o||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(o)))},c.prototype.stream=function(o){for(var n=this,d=[],m=1;m<arguments.length;m++)d[m-1]=arguments[m];var g,h=this.replaceStreamingParams(d),H=h[0],J=h[1],X=this.createStreamInvocation(o,d,J),he=new ue;return he.cancelCallback=function(){var He=n.createCancelInvocation(X.invocationId);return delete n.callbacks[X.invocationId],g.then(function(){return n.sendWithProtocol(He)})},this.callbacks[X.invocationId]=function(He,We){We?he.error(We):He&&(He.type===Y.Completion?He.error?he.error(new Error(He.error)):he.complete():he.next(He.item))},g=this.sendWithProtocol(X).catch(function(He){he.error(He),delete n.callbacks[X.invocationId]}),this.launchStreams(H,g),he},c.prototype.sendMessage=function(o){return this.resetKeepAliveInterval(),this.connection.send(o)},c.prototype.sendWithProtocol=function(o){return this.sendMessage(this.protocol.writeMessage(o))},c.prototype.send=function(o){for(var n=[],d=1;d<arguments.length;d++)n[d-1]=arguments[d];var m=this.replaceStreamingParams(n),h=m[0],H=m[1],J=this.sendWithProtocol(this.createInvocation(o,n,!0,H));return this.launchStreams(h,J),J},c.prototype.invoke=function(o){for(var n=this,d=[],m=1;m<arguments.length;m++)d[m-1]=arguments[m];var h=this.replaceStreamingParams(d),H=h[0],J=h[1],X=this.createInvocation(o,d,!1,J),g=new Promise(function(he,He){n.callbacks[X.invocationId]=function(tt,ot){ot?He(ot):tt&&(tt.type===Y.Completion?tt.error?He(new Error(tt.error)):he(tt.result):He(new Error("Unexpected message type: "+tt.type)))};var We=n.sendWithProtocol(X).catch(function(tt){He(tt),delete n.callbacks[X.invocationId]});n.launchStreams(H,We)});return g},c.prototype.on=function(o,n){!o||!n||(o=o.toLowerCase(),this.methods[o]||(this.methods[o]=[]),-1===this.methods[o].indexOf(n)&&this.methods[o].push(n))},c.prototype.off=function(o,n){if(o){o=o.toLowerCase();var d=this.methods[o];if(d)if(n){var m=d.indexOf(n);-1!==m&&(d.splice(m,1),0===d.length&&delete this.methods[o])}else delete this.methods[o]}},c.prototype.onclose=function(o){o&&this.closedCallbacks.push(o)},c.prototype.onreconnecting=function(o){o&&this.reconnectingCallbacks.push(o)},c.prototype.onreconnected=function(o){o&&this.reconnectedCallbacks.push(o)},c.prototype.processIncomingData=function(o){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(o=this.processHandshakeResponse(o),this.receivedHandshakeResponse=!0),o)for(var d=0,m=this.protocol.parseMessages(o,this.logger);d<m.length;d++){var h=m[d];switch(h.type){case Y.Invocation:this.invokeClientMethod(h);break;case Y.StreamItem:case Y.Completion:var H=this.callbacks[h.invocationId];H&&(h.type===Y.Completion&&delete this.callbacks[h.invocationId],H(h));break;case Y.Ping:break;case Y.Close:this.logger.log(C.Information,"Close message received from server.");var J=h.error?new Error("Server returned an error on close: "+h.error):void 0;!0===h.allowReconnect?this.connection.stop(J):this.stopPromise=this.stopInternal(J);break;default:this.logger.log(C.Warning,"Invalid message type: "+h.type+".")}}this.resetTimeoutPeriod()},c.prototype.processHandshakeResponse=function(o){var n,d,m,h;try{m=(n=this.handshakeProtocol.parseHandshakeResponse(o))[0],d=n[1]}catch(J){this.logger.log(C.Error,h="Error parsing handshake response: "+J);var H=new Error(h);throw this.handshakeRejecter(H),H}if(d.error)throw this.logger.log(C.Error,h="Server returned handshake error: "+d.error),H=new Error(h),this.handshakeRejecter(H),H;return this.logger.log(C.Debug,"Server handshake complete."),this.handshakeResolver(),m},c.prototype.resetKeepAliveInterval=function(){this.connection.features.inherentKeepAlive||(this.nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.cleanupPingTimer())},c.prototype.resetTimeoutPeriod=function(){var o=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout(function(){return o.serverTimeout()},this.serverTimeoutInMilliseconds),void 0!==this.pingServerHandle))){var n=this.nextKeepAlive-(new Date).getTime();n<0&&(n=0),this.pingServerHandle=setTimeout(function(){return F(o,void 0,void 0,function(){return $(this,function(m){switch(m.label){case 0:if(this.connectionState!==ee.Connected)return[3,4];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return m.sent(),[3,4];case 3:return m.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}})})},n)}},c.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},c.prototype.invokeClientMethod=function(o){var n=this,d=this.methods[o.target.toLowerCase()];if(d){try{d.forEach(function(h){return h.apply(n,o.arguments)})}catch(h){this.logger.log(C.Error,"A callback for the method "+o.target.toLowerCase()+" threw error '"+h+"'.")}if(o.invocationId){var m="Server requested a response, which is not supported in this version of the client.";this.logger.log(C.Error,m),this.stopPromise=this.stopInternal(new Error(m))}}else this.logger.log(C.Warning,"No client method with the name '"+o.target+"' found.")},c.prototype.connectionClosed=function(o){this.logger.log(C.Debug,"HubConnection.connectionClosed("+o+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||o||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(o||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===ee.Disconnecting?this.completeClose(o):this.connectionState===ee.Connected&&this.reconnectPolicy?this.reconnect(o):this.connectionState===ee.Connected&&this.completeClose(o)},c.prototype.completeClose=function(o){var n=this;if(this.connectionStarted){this.connectionState=ee.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach(function(d){return d.apply(n,[o])})}catch(d){this.logger.log(C.Error,"An onclose callback called with error '"+o+"' threw error '"+d+"'.")}}},c.prototype.reconnect=function(o){return F(this,void 0,void 0,function(){var n,d,m,h,H,J=this;return $(this,function(X){switch(X.label){case 0:if(n=Date.now(),d=0,m=void 0!==o?o:new Error("Attempting to reconnect due to a unknown error."),null===(h=this.getNextRetryDelay(d++,0,m)))return this.logger.log(C.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(o),[2];if(this.connectionState=ee.Reconnecting,this.logger.log(C.Information,o?"Connection reconnecting because of error '"+o+"'.":"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach(function(g){return g.apply(J,[o])})}catch(g){this.logger.log(C.Error,"An onreconnecting callback called with error '"+o+"' threw error '"+g+"'.")}if(this.connectionState!==ee.Reconnecting)return this.logger.log(C.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}X.label=1;case 1:return null===h?[3,7]:(this.logger.log(C.Information,"Reconnect attempt number "+d+" will start in "+h+" ms."),[4,new Promise(function(g){J.reconnectDelayHandle=setTimeout(g,h)})]);case 2:if(X.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==ee.Reconnecting)return this.logger.log(C.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];X.label=3;case 3:return X.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(X.sent(),this.connectionState=ee.Connected,this.logger.log(C.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach(function(g){return g.apply(J,[J.connection.connectionId])})}catch(g){this.logger.log(C.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+g+"'.")}return[2];case 5:return H=X.sent(),this.logger.log(C.Information,"Reconnect attempt failed because of error '"+H+"'."),this.connectionState!==ee.Reconnecting?(this.logger.log(C.Debug,"Connection moved to the '"+this.connectionState+"' from the reconnecting state during reconnect attempt. Done reconnecting."),this.connectionState===ee.Disconnecting&&this.completeClose(),[2]):(m=H instanceof Error?H:new Error(H.toString()),h=this.getNextRetryDelay(d++,Date.now()-n,m),[3,6]);case 6:return[3,1];case 7:return this.logger.log(C.Information,"Reconnect retries have been exhausted after "+(Date.now()-n)+" ms and "+d+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}})})},c.prototype.getNextRetryDelay=function(o,n,d){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:o,retryReason:d})}catch(m){return this.logger.log(C.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+o+", "+n+") threw error '"+m+"'."),null}},c.prototype.cancelCallbacksWithError=function(o){var n=this.callbacks;this.callbacks={},Object.keys(n).forEach(function(d){(0,n[d])(null,o)})},c.prototype.cleanupPingTimer=function(){this.pingServerHandle&&(clearTimeout(this.pingServerHandle),this.pingServerHandle=void 0)},c.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},c.prototype.createInvocation=function(o,n,d,m){if(d)return{arguments:n,streamIds:m,target:o,type:Y.Invocation};var h=this.invocationId;return this.invocationId++,{arguments:n,invocationId:h.toString(),streamIds:m,target:o,type:Y.Invocation}},c.prototype.launchStreams=function(o,n){var d=this;if(0!==o.length){n||(n=Promise.resolve());var m=function(H){o[H].subscribe({complete:function(){n=n.then(function(){return d.sendWithProtocol(d.createCompletionMessage(H))})},error:function(J){var X;X=J instanceof Error?J.message:J&&J.toString?J.toString():"Unknown error",n=n.then(function(){return d.sendWithProtocol(d.createCompletionMessage(H,X))})},next:function(J){n=n.then(function(){return d.sendWithProtocol(d.createStreamItemMessage(H,J))})}})};for(var h in o)m(h)}},c.prototype.replaceStreamingParams=function(o){for(var n=[],d=[],m=0;m<o.length;m++){var h=o[m];if(this.isObservable(h)){var H=this.invocationId;this.invocationId++,n[H]=h,d.push(H.toString()),o.splice(m,1)}}return[n,d]},c.prototype.isObservable=function(o){return o&&o.subscribe&&"function"==typeof o.subscribe},c.prototype.createStreamInvocation=function(o,n,d){var m=this.invocationId;return this.invocationId++,{arguments:n,invocationId:m.toString(),streamIds:d,target:o,type:Y.StreamInvocation}},c.prototype.createCancelInvocation=function(o){return{invocationId:o,type:Y.CancelInvocation}},c.prototype.createStreamItemMessage=function(o,n){return{invocationId:o,item:n,type:Y.StreamItem}},c.prototype.createCompletionMessage=function(o,n,d){return n?{error:n,invocationId:o,type:Y.Completion}:{invocationId:o,result:d,type:Y.Completion}},c}(),P=[0,2e3,1e4,3e4,null],j=function(){function c(o){this.retryDelays=void 0!==o?o.concat([null]):P}return c.prototype.nextRetryDelayInMilliseconds=function(o){return this.retryDelays[o.previousRetryCount]},c}(),te=(()=>(function(c){c[c.None=0]="None",c[c.WebSockets=1]="WebSockets",c[c.ServerSentEvents=2]="ServerSentEvents",c[c.LongPolling=4]="LongPolling"}(te||(te={})),te))(),ce=(()=>(function(c){c[c.Text=1]="Text",c[c.Binary=2]="Binary"}(ce||(ce={})),ce))(),Ee=function(){function c(){this.isAborted=!1,this.onabort=null}return c.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(c.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),c}(),Pe=function(c,o,n,d){return new(n||(n=Promise))(function(m,h){function H(g){try{X(d.next(g))}catch(he){h(he)}}function J(g){try{X(d.throw(g))}catch(he){h(he)}}function X(g){g.done?m(g.value):new n(function(he){he(g.value)}).then(H,J)}X((d=d.apply(c,o||[])).next())})},Ue=function(c,o){var d,m,h,H,n={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function J(g){return function(he){return function X(g){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,m&&(h=2&g[0]?m.return:g[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,g[1])).done)return h;switch(m=0,h&&(g=[2&g[0],h.value]),g[0]){case 0:case 1:h=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(h=(h=n.trys).length>0&&h[h.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!h||g[1]>h[0]&&g[1]<h[3])){n.label=g[1];break}if(6===g[0]&&n.label<h[1]){n.label=h[1],h=g;break}if(h&&n.label<h[2]){n.label=h[2],n.ops.push(g);break}h[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(he){g=[6,he],m=0}finally{d=h=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,he])}}},je=function(){function c(o,n,d,m){this.httpClient=o,this.accessTokenFactory=n,this.logger=d,this.pollAbort=new Ee,this.logMessageContent=m,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(c.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),c.prototype.connect=function(o,n){return Pe(this,void 0,void 0,function(){var d,m,h,H;return Ue(this,function(J){switch(J.label){case 0:if(U.isRequired(o,"url"),U.isRequired(n,"transferFormat"),U.isIn(n,ce,"transferFormat"),this.url=o,this.logger.log(C.Trace,"(LongPolling transport) Connecting."),n===ce.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return d={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},n===ce.Binary&&(d.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return m=J.sent(),this.updateHeaderToken(d,m),h=o+"&_="+Date.now(),this.logger.log(C.Trace,"(LongPolling transport) polling: "+h+"."),[4,this.httpClient.get(h,d)];case 2:return 200!==(H=J.sent()).statusCode?(this.logger.log(C.Error,"(LongPolling transport) Unexpected response code: "+H.statusCode+"."),this.closeError=new re(H.statusText||"",H.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,d),[2]}})})},c.prototype.getAccessToken=function(){return Pe(this,void 0,void 0,function(){return Ue(this,function(o){switch(o.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,o.sent()];case 2:return[2,null]}})})},c.prototype.updateHeaderToken=function(o,n){o.headers||(o.headers={}),n?o.headers.Authorization="Bearer "+n:o.headers.Authorization&&delete o.headers.Authorization},c.prototype.poll=function(o,n){return Pe(this,void 0,void 0,function(){var d,m,h,H;return Ue(this,function(J){switch(J.label){case 0:J.trys.push([0,,8,9]),J.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:d=J.sent(),this.updateHeaderToken(n,d),J.label=3;case 3:return J.trys.push([3,5,,6]),m=o+"&_="+Date.now(),this.logger.log(C.Trace,"(LongPolling transport) polling: "+m+"."),[4,this.httpClient.get(m,n)];case 4:return 204===(h=J.sent()).statusCode?(this.logger.log(C.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==h.statusCode?(this.logger.log(C.Error,"(LongPolling transport) Unexpected response code: "+h.statusCode+"."),this.closeError=new re(h.statusText||"",h.statusCode),this.running=!1):h.content?(this.logger.log(C.Trace,"(LongPolling transport) data received. "+Q(h.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(h.content)):this.logger.log(C.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return H=J.sent(),this.running?H instanceof T?this.logger.log(C.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=H,this.running=!1):this.logger.log(C.Trace,"(LongPolling transport) Poll errored after shutdown: "+H.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(C.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}})})},c.prototype.send=function(o){return Pe(this,void 0,void 0,function(){return Ue(this,function(n){return this.running?[2,we(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,o,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},c.prototype.stop=function(){return Pe(this,void 0,void 0,function(){var o,n;return Ue(this,function(d){switch(d.label){case 0:this.logger.log(C.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),d.label=1;case 1:return d.trys.push([1,,5,6]),[4,this.receiving];case 2:return d.sent(),this.logger.log(C.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),o={headers:{}},[4,this.getAccessToken()];case 3:return n=d.sent(),this.updateHeaderToken(o,n),[4,this.httpClient.delete(this.url,o)];case 4:return d.sent(),this.logger.log(C.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(C.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}})})},c.prototype.raiseOnClose=function(){if(this.onclose){var o="(LongPolling transport) Firing onclose event.";this.closeError&&(o+=" Error: "+this.closeError),this.logger.log(C.Trace,o),this.onclose(this.closeError)}},c}(),$e=function(c,o,n,d){return new(n||(n=Promise))(function(m,h){function H(g){try{X(d.next(g))}catch(he){h(he)}}function J(g){try{X(d.throw(g))}catch(he){h(he)}}function X(g){g.done?m(g.value):new n(function(he){he(g.value)}).then(H,J)}X((d=d.apply(c,o||[])).next())})},Xe=function(c,o){var d,m,h,H,n={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function J(g){return function(he){return function X(g){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,m&&(h=2&g[0]?m.return:g[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,g[1])).done)return h;switch(m=0,h&&(g=[2&g[0],h.value]),g[0]){case 0:case 1:h=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(h=(h=n.trys).length>0&&h[h.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!h||g[1]>h[0]&&g[1]<h[3])){n.label=g[1];break}if(6===g[0]&&n.label<h[1]){n.label=h[1],h=g;break}if(h&&n.label<h[2]){n.label=h[2],n.ops.push(g);break}h[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(he){g=[6,he],m=0}finally{d=h=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,he])}}},Je=function(){function c(o,n,d,m,h){this.httpClient=o,this.accessTokenFactory=n,this.logger=d,this.logMessageContent=m,this.eventSourceConstructor=h,this.onreceive=null,this.onclose=null}return c.prototype.connect=function(o,n){return $e(this,void 0,void 0,function(){var d,m=this;return Xe(this,function(h){switch(h.label){case 0:return U.isRequired(o,"url"),U.isRequired(n,"transferFormat"),U.isIn(n,ce,"transferFormat"),this.logger.log(C.Trace,"(SSE transport) Connecting."),this.url=o,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(d=h.sent())&&(o+=(o.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(d)),h.label=2;case 2:return[2,new Promise(function(H,J){var X=!1;if(n===ce.Text){var g;if(K.isBrowser||K.isWebWorker)g=new m.eventSourceConstructor(o,{withCredentials:!0});else{var he=m.httpClient.getCookieString(o);g=new m.eventSourceConstructor(o,{withCredentials:!0,headers:{Cookie:he}})}try{g.onmessage=function(He){if(m.onreceive)try{m.logger.log(C.Trace,"(SSE transport) data received. "+Q(He.data,m.logMessageContent)+"."),m.onreceive(He.data)}catch(We){return void m.close(We)}},g.onerror=function(He){var We=new Error(He.data||"Error occurred");X?m.close(We):J(We)},g.onopen=function(){m.logger.log(C.Information,"SSE connected to "+m.url),m.eventSource=g,X=!0,H()}}catch(He){return void J(He)}}else J(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})]}})})},c.prototype.send=function(o){return $e(this,void 0,void 0,function(){return Xe(this,function(n){return this.eventSource?[2,we(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,o,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},c.prototype.stop=function(){return this.close(),Promise.resolve()},c.prototype.close=function(o){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(o))},c}(),E=function(){function c(o,n,d,m,h){this.logger=d,this.accessTokenFactory=n,this.logMessageContent=m,this.webSocketConstructor=h,this.httpClient=o,this.onreceive=null,this.onclose=null}return c.prototype.connect=function(o,n){return function(c,o,n,d){return new(n||(n=Promise))(function(m,h){function H(g){try{X(d.next(g))}catch(he){h(he)}}function J(g){try{X(d.throw(g))}catch(he){h(he)}}function X(g){g.done?m(g.value):new n(function(he){he(g.value)}).then(H,J)}X((d=d.apply(c,[])).next())})}(this,0,void 0,function(){var d,m=this;return function(c,o){var d,m,h,H,n={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function J(g){return function(he){return function X(g){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,m&&(h=2&g[0]?m.return:g[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,g[1])).done)return h;switch(m=0,h&&(g=[2&g[0],h.value]),g[0]){case 0:case 1:h=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(h=(h=n.trys).length>0&&h[h.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!h||g[1]>h[0]&&g[1]<h[3])){n.label=g[1];break}if(6===g[0]&&n.label<h[1]){n.label=h[1],h=g;break}if(h&&n.label<h[2]){n.label=h[2],n.ops.push(g);break}h[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(he){g=[6,he],m=0}finally{d=h=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,he])}}}(this,function(h){switch(h.label){case 0:return U.isRequired(o,"url"),U.isRequired(n,"transferFormat"),U.isIn(n,ce,"transferFormat"),this.logger.log(C.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(d=h.sent())&&(o+=(o.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(d)),h.label=2;case 2:return[2,new Promise(function(H,J){o=o.replace(/^http/,"ws");var X,g=m.httpClient.getCookieString(o),he=!1;K.isNode&&g&&(X=new m.webSocketConstructor(o,void 0,{headers:{Cookie:""+g}})),X||(X=new m.webSocketConstructor(o)),n===ce.Binary&&(X.binaryType="arraybuffer"),X.onopen=function(He){m.logger.log(C.Information,"WebSocket connected to "+o+"."),m.webSocket=X,he=!0,H()},X.onerror=function(He){var We;We=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:new Error("There was an error with the transport."),J(We)},X.onmessage=function(He){m.logger.log(C.Trace,"(WebSockets transport) data received. "+Q(He.data,m.logMessageContent)+"."),m.onreceive&&m.onreceive(He.data)},X.onclose=function(He){if(he)m.close(He);else{var We;We=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:new Error("There was an error with the transport."),J(We)}}})]}})})},c.prototype.send=function(o){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(C.Trace,"(WebSockets transport) sending data. "+Q(o,this.logMessageContent)+"."),this.webSocket.send(o),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},c.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},c.prototype.close=function(o){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(C.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!o||!1!==o.wasClean&&1e3===o.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+o.code+" ("+o.reason+").")))},c}(),u=function(c,o,n,d){return new(n||(n=Promise))(function(m,h){function H(g){try{X(d.next(g))}catch(he){h(he)}}function J(g){try{X(d.throw(g))}catch(he){h(he)}}function X(g){g.done?m(g.value):new n(function(he){he(g.value)}).then(H,J)}X((d=d.apply(c,o||[])).next())})},i=function(c,o){var d,m,h,H,n={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function J(g){return function(he){return function X(g){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,m&&(h=2&g[0]?m.return:g[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,g[1])).done)return h;switch(m=0,h&&(g=[2&g[0],h.value]),g[0]){case 0:case 1:h=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,m=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(h=(h=n.trys).length>0&&h[h.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!h||g[1]>h[0]&&g[1]<h[3])){n.label=g[1];break}if(6===g[0]&&n.label<h[1]){n.label=h[1],h=g;break}if(h&&n.label<h[2]){n.label=h[2],n.ops.push(g);break}h[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(he){g=[6,he],m=0}finally{d=h=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,he])}}},l=null,f=null;if(K.isNode){var S=require;l=S("ws"),f=S("eventsource")}var I=function(){function c(o,n){void 0===n&&(n={}),this.stopPromiseResolver=function(){},this.features={},this.negotiateVersion=1,U.isRequired(o,"url"),this.logger=function de(c){return void 0===c?new _(C.Information):null===c?L.instance:c.log?c:new _(c)}(n.logger),this.baseUrl=this.resolveUrl(o),(n=n||{}).logMessageContent=n.logMessageContent||!1,!K.isNode&&typeof WebSocket<"u"&&!n.WebSocket?n.WebSocket=WebSocket:K.isNode&&!n.WebSocket&&l&&(n.WebSocket=l),!K.isNode&&typeof EventSource<"u"&&!n.EventSource?n.EventSource=EventSource:K.isNode&&!n.EventSource&&typeof f<"u"&&(n.EventSource=f),this.httpClient=n.httpClient||new be(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=n,this.onreceive=null,this.onclose=null}return c.prototype.start=function(o){return u(this,void 0,void 0,function(){var n;return i(this,function(d){switch(d.label){case 0:return U.isIn(o=o||ce.Binary,ce,"transferFormat"),this.logger.log(C.Debug,"Starting connection with transfer format '"+ce[o]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(o),[4,this.startInternalPromise]);case 1:return d.sent(),"Disconnecting"!==this.connectionState?[3,3]:(this.logger.log(C.Error,n="Failed to start the HttpConnection before stop() was called."),[4,this.stopPromise]);case 2:return d.sent(),[2,Promise.reject(new Error(n))];case 3:if("Connected"!==this.connectionState)return this.logger.log(C.Error,n="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!"),[2,Promise.reject(new Error(n))];d.label=4;case 4:return this.connectionStarted=!0,[2]}})})},c.prototype.send=function(o){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 ve(this.transport)),this.sendQueue.send(o))},c.prototype.stop=function(o){return u(this,void 0,void 0,function(){var n=this;return i(this,function(d){switch(d.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(C.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(C.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise(function(m){n.stopPromiseResolver=m}),[4,this.stopInternal(o)]);case 1:return d.sent(),[4,this.stopPromise];case 2:return d.sent(),[2]}})})},c.prototype.stopInternal=function(o){return u(this,void 0,void 0,function(){var d;return i(this,function(m){switch(m.label){case 0:this.stopError=o,m.label=1;case 1:return m.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:case 3:return m.sent(),[3,4];case 4:if(!this.transport)return[3,9];m.label=5;case 5:return m.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return m.sent(),[3,8];case 7:return d=m.sent(),this.logger.log(C.Error,"HttpConnection.transport.stop() threw error '"+d+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(C.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),m.label=10;case 10:return[2]}})})},c.prototype.startInternal=function(o){return u(this,void 0,void 0,function(){var n,d,m,h,H,J;return i(this,function(X){switch(X.label){case 0:n=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,X.label=1;case 1:return X.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==te.WebSockets?[3,3]:(this.transport=this.constructTransport(te.WebSockets),[4,this.startTransport(n,o)]):[3,5];case 2:return X.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:d=null,m=0,h=function(){var g;return i(this,function(he){switch(he.label){case 0:return[4,H.getNegotiationResponse(n)];case 1:if(d=he.sent(),"Disconnecting"===H.connectionState||"Disconnected"===H.connectionState)throw new Error("The connection was stopped during negotiation.");if(d.error)throw new Error(d.error);if(d.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return d.url&&(n=d.url),d.accessToken&&(g=d.accessToken,H.accessTokenFactory=function(){return g}),m++,[2]}})},H=this,X.label=6;case 6:return[5,h()];case 7:X.sent(),X.label=8;case 8:if(d.url&&m<100)return[3,6];X.label=9;case 9:if(100===m&&d.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(n,this.options.transport,d,o)];case 10:X.sent(),X.label=11;case 11:return this.transport instanceof je&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(C.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return J=X.sent(),this.logger.log(C.Error,"Failed to start the connection: "+J),this.connectionState="Disconnected",this.transport=void 0,this.stopPromiseResolver(),[2,Promise.reject(J)];case 13:return[2]}})})},c.prototype.getNegotiationResponse=function(o){return u(this,void 0,void 0,function(){var n,d,m,h,H,J,X;return i(this,function(g){switch(g.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(m=g.sent())&&((n={}).Authorization="Bearer "+m,d=n),g.label=2;case 2:h=this.resolveNegotiateUrl(o),this.logger.log(C.Debug,"Sending negotiation request: "+h+"."),g.label=3;case 3:return g.trys.push([3,5,,6]),[4,this.httpClient.post(h,{content:"",headers:d})];case 4:return 200!==(H=g.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+H.statusCode))]:((!(J=JSON.parse(H.content)).negotiateVersion||J.negotiateVersion<1)&&(J.connectionToken=J.connectionId),[2,J]);case 5:return X=g.sent(),this.logger.log(C.Error,"Failed to complete negotiation with the server: "+X),[2,Promise.reject(X)];case 6:return[2]}})})},c.prototype.createConnectUrl=function(o,n){return n?o+(-1===o.indexOf("?")?"?":"&")+"id="+n:o},c.prototype.createTransport=function(o,n,d,m){return u(this,void 0,void 0,function(){var h,H,X,g,he,He,We,tt,ot;return i(this,function(it){switch(it.label){case 0:return h=this.createConnectUrl(o,d.connectionToken),this.isITransport(n)?(this.logger.log(C.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=n,[4,this.startTransport(h,m)]):[3,2];case 1:return it.sent(),this.connectionId=d.connectionId,[2];case 2:H=[],X=d,g=0,he=d.availableTransports||[],it.label=3;case 3:return g<he.length?(We=this.resolveTransportOrError(He=he[g],n,m))instanceof Error?(H.push(He.transport+" failed: "+We),[3,12]):[3,4]:[3,13];case 4:if(!this.isITransport(We))return[3,12];if(this.transport=We,X)return[3,9];it.label=5;case 5:return it.trys.push([5,7,,8]),[4,this.getNegotiationResponse(o)];case 6:return X=it.sent(),[3,8];case 7:return tt=it.sent(),[2,Promise.reject(tt)];case 8:h=this.createConnectUrl(o,X.connectionToken),it.label=9;case 9:return it.trys.push([9,11,,12]),[4,this.startTransport(h,m)];case 10:return it.sent(),this.connectionId=X.connectionId,[2];case 11:return ot=it.sent(),this.logger.log(C.Error,"Failed to start the transport '"+He.transport+"': "+ot),X=void 0,H.push(He.transport+" failed: "+ot),"Connecting "!==this.connectionState?(this.logger.log(C.Debug,"Failed to select transport before stop() was called."),[2,Promise.reject(new Error("Failed to select transport before stop() was called."))]):[3,12];case 12:return g++,[3,3];case 13:return H.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+H.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}})})},c.prototype.constructTransport=function(o){switch(o){case te.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new E(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case te.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Je(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case te.LongPolling:return new je(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+o+".")}},c.prototype.startTransport=function(o,n){var d=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(m){return d.stopConnection(m)},this.transport.connect(o,n)},c.prototype.resolveTransportOrError=function(o,n,d){var m=te[o.transport];if(null==m)return this.logger.log(C.Debug,"Skipping transport '"+o.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+o.transport+"' because it is not supported by this client.");if(!function q(c,o){return!c||0!=(o&c)}(n,m))return this.logger.log(C.Debug,"Skipping transport '"+te[m]+"' because it was disabled by the client."),new Error("'"+te[m]+"' is disabled by the client.");if(!(o.transferFormats.map(function(H){return ce[H]}).indexOf(d)>=0))return this.logger.log(C.Debug,"Skipping transport '"+te[m]+"' because it does not support the requested transfer format '"+ce[d]+"'."),new Error("'"+te[m]+"' does not support "+ce[d]+".");if(m===te.WebSockets&&!this.options.WebSocket||m===te.ServerSentEvents&&!this.options.EventSource)return this.logger.log(C.Debug,"Skipping transport '"+te[m]+"' because it is not supported in your environment.'"),new Error("'"+te[m]+"' is not supported in your environment.");this.logger.log(C.Debug,"Selecting transport '"+te[m]+"'.");try{return this.constructTransport(m)}catch(H){return H}},c.prototype.isITransport=function(o){return o&&"object"==typeof o&&"connect"in o},c.prototype.stopConnection=function(o){var n=this;if(this.logger.log(C.Debug,"HttpConnection.stopConnection("+o+") called while in state "+this.connectionState+"."),this.transport=void 0,o=this.stopError||o,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),o?this.logger.log(C.Error,"Connection disconnected with error '"+o+"'."):this.logger.log(C.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch(function(d){n.logger.log(C.Error,"TransportSendQueue.stop() threw error '"+d+"'.")}),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(o)}catch(d){this.logger.log(C.Error,"HttpConnection.onclose("+o+") threw error '"+d+"'.")}}}else this.logger.log(C.Warning,"Call to HttpConnection.stopConnection("+o+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(C.Debug,"Call to HttpConnection.stopConnection("+o+") was ignored because the connection is already in the disconnected state.")},c.prototype.resolveUrl=function(o){if(0===o.lastIndexOf("https://",0)||0===o.lastIndexOf("http://",0))return o;if(!K.isBrowser||!window.document)throw new Error("Cannot resolve '"+o+"'.");var n=window.document.createElement("a");return n.href=o,this.logger.log(C.Information,"Normalizing '"+o+"' to '"+n.href+"'."),n.href},c.prototype.resolveNegotiateUrl=function(o){var n=o.indexOf("?"),d=o.substring(0,-1===n?o.length:n);return"/"!==d[d.length-1]&&(d+="/"),d+="negotiate",-1===(d+=-1===n?"":o.substring(n)).indexOf("negotiateVersion")&&(d+=-1===n?"?":"&",d+="negotiateVersion="+this.negotiateVersion),d},c}(),ve=function(){function c(o){this.transport=o,this.buffer=[],this.executing=!0,this.sendBufferedData=new Me,this.transportResult=new Me,this.sendLoopPromise=this.sendLoop()}return c.prototype.send=function(o){return this.bufferData(o),this.transportResult||(this.transportResult=new Me),this.transportResult.promise},c.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},c.prototype.bufferData=function(o){if(this.buffer.length&&typeof this.buffer[0]!=typeof o)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof o);this.buffer.push(o),this.sendBufferedData.resolve()},c.prototype.sendLoop=function(){return u(this,void 0,void 0,function(){var o,n,d;return i(this,function(m){switch(m.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(m.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new Me,o=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):c.concatBuffers(this.buffer),this.buffer.length=0,m.label=2;case 2:return m.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return m.sent(),o.resolve(),[3,5];case 4:return d=m.sent(),o.reject(d),[3,5];case 5:return[3,0];case 6:return[2]}})})},c.concatBuffers=function(o){for(var n=o.map(function(X){return X.byteLength}).reduce(function(X,g){return X+g}),d=new Uint8Array(n),m=0,h=0,H=o;h<H.length;h++){var J=H[h];d.set(new Uint8Array(J),m),m+=J.byteLength}return d},c}(),Me=function(){function c(){var o=this;this.promise=new Promise(function(n,d){var m;return o.resolver=(m=[n,d])[0],o.rejecter=m[1],m})}return c.prototype.resolve=function(){this.resolver()},c.prototype.reject=function(o){this.rejecter(o)},c}(),Oe=function(){function c(){this.name="json",this.version=1,this.transferFormat=ce.Text}return c.prototype.parseMessages=function(o,n){if("string"!=typeof o)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!o)return[];null===n&&(n=L.instance);for(var m=[],h=0,H=_e.parse(o);h<H.length;h++){var X=JSON.parse(H[h]);if("number"!=typeof X.type)throw new Error("Invalid payload.");switch(X.type){case Y.Invocation:this.isInvocationMessage(X);break;case Y.StreamItem:this.isStreamItemMessage(X);break;case Y.Completion:this.isCompletionMessage(X);break;case Y.Ping:case Y.Close:break;default:n.log(C.Information,"Unknown message type '"+X.type+"' ignored.");continue}m.push(X)}return m},c.prototype.writeMessage=function(o){return _e.write(JSON.stringify(o))},c.prototype.isInvocationMessage=function(o){this.assertNotEmptyString(o.target,"Invalid payload for Invocation message."),void 0!==o.invocationId&&this.assertNotEmptyString(o.invocationId,"Invalid payload for Invocation message.")},c.prototype.isStreamItemMessage=function(o){if(this.assertNotEmptyString(o.invocationId,"Invalid payload for StreamItem message."),void 0===o.item)throw new Error("Invalid payload for StreamItem message.")},c.prototype.isCompletionMessage=function(o){if(o.result&&o.error)throw new Error("Invalid payload for Completion message.");!o.result&&o.error&&this.assertNotEmptyString(o.error,"Invalid payload for Completion message."),this.assertNotEmptyString(o.invocationId,"Invalid payload for Completion message.")},c.prototype.assertNotEmptyString=function(o,n){if("string"!=typeof o||""===o)throw new Error(n)},c}(),Ne=Object.assign||function(c){for(var o,n=1,d=arguments.length;n<d;n++)for(var m in o=arguments[n])Object.prototype.hasOwnProperty.call(o,m)&&(c[m]=o[m]);return c},Ye={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},Ge=function(){function c(){}return c.prototype.configureLogging=function(o){if(U.isRequired(o,"logging"),function V(c){return void 0!==c.log}(o))this.logger=o;else if("string"==typeof o){var n=function Ve(c){var o=Ye[c.toLowerCase()];if(typeof o<"u")return o;throw new Error("Unknown log level: "+c)}(o);this.logger=new _(n)}else this.logger=new _(o);return this},c.prototype.withUrl=function(o,n){return U.isRequired(o,"url"),this.url=o,this.httpConnectionOptions=Ne({},this.httpConnectionOptions,"object"==typeof n?n:{transport:n}),this},c.prototype.withHubProtocol=function(o){return U.isRequired(o,"protocol"),this.protocol=o,this},c.prototype.withAutomaticReconnect=function(o){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=o?Array.isArray(o)?new j(o):o:new j,this},c.prototype.build=function(){var o=this.httpConnectionOptions||{};if(void 0===o.logger&&(o.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var n=new I(this.url,o);return Le.create(n,this.logger||L.instance,this.protocol||new Oe,this.reconnectPolicy)},c}(),y=a(2722),G=a(7579);class x{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"}]}get getMenu(){return this.menus}}var p=a(4650),b=a(8002),A=a(7185),z=a(3841),fe=a(1589),Ie=a(266);function Ze(c,o){if(1&c&&(p.TgZ(0,"li",17)(1,"a",18),p._UZ(2,"i"),p.TgZ(3,"p"),p._uU(4),p.qZA()()()),2&c){const n=o.$implicit,d=p.oxw();p.xp6(1),p.Q6J("matTooltip",d.isCollapseSidebar?n.Title:"")("routerLink",n.Url),p.xp6(1),p.Tol(n.Icon),p.xp6(2),p.Oqu(n.Title)}}function ie(c,o){if(1&c){const n=p.EpF();p.TgZ(0,"div",19)(1,"span"),p._uU(2),p.TgZ(3,"a",20),p._uU(4,"this Article"),p.qZA(),p._uU(5," to renew your ShopID! "),p.qZA(),p.TgZ(6,"a",21),p.NdJ("click",function(){p.CHM(n);const m=p.oxw();return p.KtG(m.CloseWarning())}),p._UZ(7,"i",22),p.qZA()()}if(2&c){const n=p.oxw();p.xp6(2),p.AsE(" Your Shopee Channel ShopID ",n.ShopID," is expired in (",n.Difference_In_Days,") days, please refer to ")}}const w=[{path:"",component:(()=>{class c{constructor(n,d,m,h,H){this._router=n,this.tokendecode=d,this.toastr=m,this.LocalData=h,this.toggleSidebarService=H,this.Menu={},this.connection=!1,this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new G.x,this.isCollapseSidebar=!1,this.initIntercom(),this.token=this.tokendecode.GetNamePOS(),this.storeName=this.token.StoreName,this.Menu=(new x).getMenu,this.CheckExpired()}ngOnInit(){this.startConnection(),this.subscribeToSidebarChange()}initIntercom(){var n=localStorage.getItem("Intercom"),d=JSON.parse(n);null==d?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:d.Name,email:d.Email,created_at:d.Created,user_hash:d.Hash})}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe((0,y.R)(this.destroy$)).subscribe(n=>{this.isNavOpen=n})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}CheckExpired(){let n=JSON.parse(window.localStorage.getItem("user"));if(n)if(null!=n.expiredAt)this.LogOut();else{let m=n.Channel;if(m.length>0)for(let h of m)if(null!=h.ExpiredTime&&0==h.TypeID){let H=new Date(h.ExpiredTime),J=new Date;var d=H.getTime()-J.getTime();this.Difference_In_Days=Math.round(d/864e5),this.Difference_In_Days<=10&&(this.IsExpired=!0,this.ShopID=h.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([""])}startConnection(){this.hubConnection=(new Ge).withUrl("/MarketplaceHub").withAutomaticReconnect([0,1e4,1e4,1e4,1e4,null]).configureLogging(C.Information).build(),this.hubConnection.start().then(()=>{this.connection=!0,this.connectToRegister()}).catch(n=>console.log("Error while starting connection: "+n)),this.hubConnection.onclose(()=>{this.startConnection(),this.connection=!1}),this.hubConnection.on("Notification",n=>{let d=JSON.parse(n);d.ID==this.token.POSAccountID&&(200!=d.StatusCode?this.toastr.error(d.Message,d.Title,{enableHtml:!0}):this.toastr.success(d.Message,d.Title,{enableHtml:!0}))})}connectToRegister(){this.hubConnection.invoke("SubscribeGroup",this.token.POSAccountID)}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(n){if(n){let d;const m=n.split(" ");return d=1==m.length?m[0].substring(0,2):m.shift().charAt(0)+m.pop().charAt(0),d}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(p.Y36(r.F0),p.Y36(b.e),p.Y36(A._W),p.Y36(z.T),p.Y36(fe.g))},c.\u0275cmp=p.Xpm({type:c,selectors:[["app-menu"]],decls:23,vars:9,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer",3,"title"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["routerLinkActive","active"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["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(n,d){1&n&&(p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return d.onCallapseSidebar()}),p._UZ(3,"i",3),p.qZA(),p.TgZ(4,"div",4)(5,"div",5)(6,"a",6),p._uU(7),p.qZA(),p.TgZ(8,"div",7)(9,"div",8),p._uU(10),p.qZA(),p._UZ(11,"div",9),p.TgZ(12,"a",10),p.NdJ("click",function(){return d.LogOut()}),p._UZ(13,"i",11),p._uU(14,"\xa0 "),p.TgZ(15,"span"),p._uU(16," Log Out"),p.qZA()()()()(),p.TgZ(17,"div",12)(18,"ul",13),p.YNc(19,Ze,5,5,"li",14),p.qZA()()(),p.TgZ(20,"div",15),p.YNc(21,ie,8,2,"div",16),p._UZ(22,"router-outlet"),p.qZA()()),2&n&&(p.ekj("nav-open",d.isNavOpen),p.xp6(1),p.Q6J("ngClass",d.isCollapseSidebar?"collapses":""),p.xp6(2),p.Q6J("ngClass",d.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),p.xp6(3),p.s9C("title",d.token.StoreName),p.xp6(1),p.hij(" ",d.storeName," "),p.xp6(3),p.hij("",d.token.UserName," "),p.xp6(9),p.Q6J("ngForOf",d.Menu),p.xp6(2),p.Q6J("ngIf",d.IsExpired))},dependencies:[s.mk,s.sg,s.O5,r.lC,r.yS,r.Od,Ie.gM],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}}"]}),c})(),children:[{path:"",redirectTo:"products",pathMatch:"full"},{path:"products",loadChildren:()=>Promise.all([a.e(796),a.e(882),a.e(739),a.e(592),a.e(667)]).then(a.bind(a,1667)).then(c=>c.ProductModule),canActivate:[t.a],data:{title:"Products"}},{path:"inventory",loadChildren:()=>Promise.all([a.e(796),a.e(882),a.e(455),a.e(801),a.e(472)]).then(a.bind(a,1472)).then(c=>c.InventoryModule),canActivate:[t.a],data:{title:"Inventory"}},{path:"price",loadChildren:()=>Promise.all([a.e(796),a.e(882),a.e(455),a.e(801),a.e(970)]).then(a.bind(a,7970)).then(c=>c.PriceModule),canActivate:[t.a],data:{title:"Price"}},{path:"Order",loadChildren:()=>Promise.all([a.e(796),a.e(616),a.e(739),a.e(592),a.e(402)]).then(a.bind(a,5402)).then(c=>c.OrdersModule),canActivate:[t.a],data:{title:"Order"}},{path:"report",loadChildren:()=>Promise.all([a.e(616),a.e(585),a.e(285)]).then(a.bind(a,4285)).then(c=>c.ReportModule),canActivate:[t.a],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>a.e(512).then(a.bind(a,5512)).then(c=>c.LogisticModule),canActivate:[t.a],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>Promise.all([a.e(796),a.e(455),a.e(592),a.e(102)]).then(a.bind(a,102)).then(c=>c.ChannelsModule),canActivate:[t.a],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>Promise.all([a.e(796),a.e(616),a.e(739),a.e(585),a.e(767)]).then(a.bind(a,6767)).then(c=>c.LogsModule),canActivate:[t.a],data:{title:"Orders"}},{path:"Notification",loadChildren:()=>Promise.all([a.e(796),a.e(717)]).then(a.bind(a,6717)).then(c=>c.NotificationModule),canActivate:[t.a],data:{title:"Push Notification"}}]}];let se=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[r.Bz.forChild(w),r.Bz]}),c})();var Re=a(7481),Be=a(4006),Ke=a(5412),et=a(1948),nt=a(4144),Qe=a(9549),rt=a(4385),lt=a(8966),ct=a(6709);let dt=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[s.ez,Be.u5,Ke.Is,et.Fk,nt.c,Qe.lN,rt.LD,ct.p9,Ie.AV,lt.n]}),c})(),ht=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({providers:[s.uU],imports:[s.ez,se,Re.R,Ie.AV,dt]}),c})()},9694:(ze,ye,a)=>{a.d(ye,{x:()=>s});var s=(()=>{return(r=s||(s={}))[r.Shopee=0]="Shopee",r[r.Tokopedia=1]="Tokopedia",r[r.WooCommerce=2]="WooCommerce",r[r.None=3]="None",r[r.KalCare=4]="KalCare",r[r.ShopeeV2=5]="ShopeeV2",r[r.Tiktok=6]="Tiktok",r[r.Lazada=7]="Lazada",s;var r})()},8063:(ze,ye,a)=>{a.d(ye,{a:()=>t});var s=a(4650),r=a(8252);let t=(()=>{class D{constructor(T){this.router=T}canActivate(T,ge){let oe=JSON.parse(window.localStorage.getItem("user")),Z=new Date;return null!=oe&&Z<new Date(oe.Token.expiredAt)||(this.router.navigate([""]),!1)}}return D.\u0275fac=function(T){return new(T||D)(s.LFG(r.F0))},D.\u0275prov=s.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},3841:(ze,ye,a)=>{a.d(ye,{T:()=>re});var s=a(4004),r=a(9694),t=a(4650),D=a(3131);let re=(()=>{class T{constructor(oe){this.db=oe,this.DATABASE="Categories"}saveCategoriesByChannelType(oe,Z){let B=this.getKey(Z);return this.db.add(this.DATABASE,oe,B).pipe((0,s.U)(C=>oe))}getCategoriesByChannelType(oe){let Z=this.getKey(oe);return this.db.getByKey(this.DATABASE,Z)}getKey(oe){let Z="";switch(oe){case r.x.Lazada:Z="Lazada";break;case r.x.Tokopedia:Z="Tokopedia"}return Z}clearDatabase(){this.db.clear(this.DATABASE)}}return T.\u0275fac=function(oe){return new(oe||T)(t.LFG(D.ys))},T.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})()},1589:(ze,ye,a)=>{a.d(ye,{g:()=>t});var s=a(1135),r=a(4650);let t=(()=>{class D{constructor(){this._toggleState=new s.X(!1),this.toggleState$=this._toggleState.asObservable()}toggleSidebar(){this._toggleState.next(!this._toggleState.value)}}return D.\u0275fac=function(T){return new(T||D)},D.\u0275prov=r.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},8966:(ze,ye,a)=>{a.d(ye,{h:()=>Ie,n:()=>Ze});var s=a(6895),r=a(4650),t=a(4006),D=a(9549),re=a(4385),T=a(2722),ge=a(8372),oe=a(8505),Z=a(7579),B=a(4968);let L=(()=>{class ie{constructor(w,se){this.matSelect=w,this.ngZone=se,this.threshold="15%",this.debounceTime=150,this.infiniteScroll=new r.vpe,this.thrPx=0,this.thrPc=0,this.singleOptionHeight=3,this.destroyed$=new Z.x}ngOnInit(){this.evaluateThreshold()}ngAfterViewInit(){this.matSelect.openedChange.pipe((0,T.R)(this.destroyed$)).subscribe(w=>{w&&(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,B.R)(this.panel,"scroll").pipe((0,T.R)(this.destroyed$),(0,ge.b)(this.debounceTime),(0,oe.b)(w=>{this.handleScrollEvent(w)})).subscribe()}handleScrollEvent(w){this.ngZone.runOutsideAngular(()=>{if(this.complete)return;const Re=this.singleOptionHeight*this.matSelect.options.length;this.panel.clientHeight+w.target.scrollTop+(0!==this.thrPc?Re*this.thrPc:this.thrPx)>=Re&&this.ngZone.run(()=>this.infiniteScroll.emit())})}getSelectItemHeightPx(){return 3*parseFloat(getComputedStyle(this.panel).fontSize)}}return ie.\u0275fac=function(w){return new(w||ie)(r.Y36(re.gD),r.Y36(r.R0b))},ie.\u0275dir=r.lG2({type:ie,selectors:[["","msInfiniteScroll",""]],inputs:{threshold:"threshold",debounceTime:"debounceTime",complete:"complete"},outputs:{infiniteScroll:"infiniteScroll"}}),ie})(),R=(()=>{class ie{}return ie.\u0275fac=function(w){return new(w||ie)},ie.\u0275mod=r.oAB({type:ie}),ie.\u0275inj=r.cJS({imports:[[re.LD]]}),ie})();var N=a(9521),U=a(3238),K=a(1135),Q=a(9646),me=a(9841),Se=a(3900),we=a(4004),de=a(8675),ne=a(4986),_=a(7272),M=a(5698),v=a(4482),k=a(5403),le=a(5032),Ce=a(9718),Te=a(5577);function De(ie,pe){return pe?w=>(0,_.z)(pe.pipe((0,M.q)(1),function xe(){return(0,v.e)((ie,pe)=>{ie.subscribe((0,k.x)(pe,le.Z))})}()),w.pipe(De(ie))):(0,Te.z)((w,se)=>ie(w,se).pipe((0,M.q)(1),(0,Ce.h)(w)))}var be=a(2805),W=a(9300),Y=a(7376),ue=a(2687),F=a(6709),$=a(1281),ae=a(3353),ke=a(727);function ee(ie,pe){if(1&ie&&(r.O4$(),r._UZ(0,"circle",4)),2&ie){const w=r.oxw(),se=r.MAs(1);r.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+w._spinnerAnimationLabel)("stroke-dashoffset",w._getStrokeDashOffset(),"px")("stroke-dasharray",w._getStrokeCircumference(),"px")("stroke-width",w._getCircleStrokeWidth(),"%")("transform-origin",w._getCircleTransformOrigin(se)),r.uIk("r",w._getCircleRadius())}}function Le(ie,pe){if(1&ie&&(r.O4$(),r._UZ(0,"circle",4)),2&ie){const w=r.oxw(),se=r.MAs(1);r.Udp("stroke-dashoffset",w._getStrokeDashOffset(),"px")("stroke-dasharray",w._getStrokeCircumference(),"px")("stroke-width",w._getCircleStrokeWidth(),"%")("transform-origin",w._getCircleTransformOrigin(se)),r.uIk("r",w._getCircleRadius())}}const te=(0,U.pj)(class{constructor(ie){this._elementRef=ie}},"primary"),ce=new r.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Ee(){return{diameter:100}}});class Ue extends te{constructor(pe,w,se,Re,Be,Ke,et,nt){super(pe),this._document=se,this._diameter=100,this._value=0,this._resizeSubscription=ke.w0.EMPTY,this.mode="determinate";const Qe=Ue._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Qe.has(se.head)||Qe.set(se.head,new Set([100])),this._noopAnimations="NoopAnimations"===Re&&!!Be&&!Be._forceAnimations,"mat-spinner"===pe.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Be&&(Be.color&&(this.color=this.defaultColor=Be.color),Be.diameter&&(this.diameter=Be.diameter),Be.strokeWidth&&(this.strokeWidth=Be.strokeWidth)),w.isBrowser&&w.SAFARI&&et&&Ke&&nt&&(this._resizeSubscription=et.change(150).subscribe(()=>{"indeterminate"===this.mode&&nt.run(()=>Ke.markForCheck())}))}get diameter(){return this._diameter}set diameter(pe){this._diameter=(0,$.su)(pe),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(pe){this._strokeWidth=(0,$.su)(pe)}get value(){return"determinate"===this.mode?this._value:0}set value(pe){this._value=Math.max(0,Math.min(100,(0,$.su)(pe)))}ngOnInit(){const pe=this._elementRef.nativeElement;this._styleRoot=(0,ae.kV)(pe)||this._document.head,this._attachStyleNode(),pe.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const pe=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${pe} ${pe}`}_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(pe){const w=50*(pe.currentScale??1);return`${w}% ${w}%`}_attachStyleNode(){const pe=this._styleRoot,w=this._diameter,se=Ue._diameters;let Re=se.get(pe);if(!Re||!Re.has(w)){const Be=this._document.createElement("style");Be.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Be.textContent=this._getAnimationText(),pe.appendChild(Be),Re||(Re=new Set,se.set(pe,Re)),Re.add(w)}}_getAnimationText(){const pe=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*pe).replace(/END_VALUE/g,""+.2*pe).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ue._diameters=new WeakMap,Ue.\u0275fac=function(pe){return new(pe||Ue)(r.Y36(r.SBq),r.Y36(ae.t4),r.Y36(s.K0,8),r.Y36(r.QbO,8),r.Y36(ce),r.Y36(r.sBO),r.Y36(Y.rL),r.Y36(r.R0b))},Ue.\u0275cmp=r.Xpm({type:Ue,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(pe,w){2&pe&&(r.uIk("aria-valuemin","determinate"===w.mode?0:null)("aria-valuemax","determinate"===w.mode?100:null)("aria-valuenow","determinate"===w.mode?w.value:null)("mode",w.mode),r.Udp("width",w.diameter,"px")("height",w.diameter,"px"),r.ekj("_mat-animation-noopable",w._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[r.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(pe,w){1&pe&&(r.O4$(),r.TgZ(0,"svg",0,1),r.YNc(2,ee,1,11,"circle",2),r.YNc(3,Le,1,9,"circle",3),r.qZA()),2&pe&&(r.Udp("width",w.diameter,"px")("height",w.diameter,"px"),r.Q6J("ngSwitch","indeterminate"===w.mode),r.uIk("viewBox",w._getViewBox()),r.xp6(2),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1))},dependencies:[s.RF,s.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 je=(()=>{class ie{}return ie.\u0275fac=function(w){return new(w||ie)},ie.\u0275mod=r.oAB({type:ie}),ie.\u0275inj=r.cJS({imports:[U.BQ,s.ez,U.BQ]}),ie})();var Xe=a(4859),Je=a(7392),qe=a(266);const Ae=["searchSelectInput"],E=["innerSelectSearch"];function u(ie,pe){if(1&ie){const w=r.EpF();r.TgZ(0,"mat-checkbox",9),r.NdJ("change",function(Re){r.CHM(w);const Be=r.oxw();return r.KtG(Be._emitSelectAllBooleanToParent(Re.checked))}),r.qZA()}if(2&ie){const w=r.oxw();r.Q6J("color",null==w.matFormField?null:w.matFormField.color)("checked",w.toggleAllCheckboxChecked)("indeterminate",w.toggleAllCheckboxIndeterminate)("matTooltip",w.toggleAllCheckboxTooltipMessage)("matTooltipPosition",w.toogleAllCheckboxTooltipPosition)}}function i(ie,pe){1&ie&&r._UZ(0,"mat-spinner",10)}function e(ie,pe){1&ie&&r.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function l(ie,pe){if(1&ie&&(r.TgZ(0,"mat-icon",14),r._uU(1),r.qZA()),2&ie){const w=r.oxw(2);r.Q6J("svgIcon",w.closeSvgIcon),r.xp6(1),r.hij(" ",w.closeSvgIcon?null:w.closeIcon," ")}}function f(ie,pe){if(1&ie){const w=r.EpF();r.TgZ(0,"button",11),r.NdJ("click",function(){r.CHM(w);const Re=r.oxw();return r.KtG(Re._reset(!0))}),r.YNc(1,e,1,0,"ng-content",12),r.YNc(2,l,2,2,"ng-template",null,13,r.W1O),r.qZA()}if(2&ie){const w=r.MAs(3),se=r.oxw();r.xp6(1),r.Q6J("ngIf",se.clearIcon)("ngIfElse",w)}}function S(ie,pe){1&ie&&r.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function I(ie,pe){if(1&ie&&r._uU(0),2&ie){const w=r.oxw(2);r.Oqu(w.noEntriesFoundLabel)}}function q(ie,pe){if(1&ie&&(r.TgZ(0,"div",15),r.YNc(1,S,1,0,"ng-content",12),r.YNc(2,I,1,1,"ng-template",null,16,r.W1O),r.qZA()),2&ie){const w=r.MAs(3),se=r.oxw();r.xp6(1),r.Q6J("ngIf",se.noEntriesFound)("ngIfElse",w)}}const ve=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Me=function(ie,pe){return{"mat-select-search-inner-multiple":ie,"mat-select-search-inner-toggle-all":pe}},Fe=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Oe=(()=>{class ie{}return ie.\u0275fac=function(w){return new(w||ie)},ie.\u0275dir=r.lG2({type:ie,selectors:[["","ngxMatSelectSearchClear",""]]}),ie})();const Ne=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Ye=new r.OlP("mat-selectsearch-default-options");let V=(()=>{class ie{}return ie.\u0275fac=function(w){return new(w||ie)},ie.\u0275dir=r.lG2({type:ie,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ie})(),y=(()=>{class ie{constructor(w,se,Re,Be=null,Ke,et=null,nt){this.matSelect=w,this.changeDetectorRef=se,this._viewportRuler=Re,this.matOption=Be,this.liveAnnouncer=Ke,this.matFormField=et,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 r.vpe,this.onTouched=Qe=>{},this._options$=new K.X(null),this.optionsList$=this._options$.pipe((0,Se.w)(Qe=>Qe?Qe.changes.pipe((0,we.U)(rt=>rt.toArray()),(0,de.O)(Qe.toArray())):(0,Q.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,we.U)(Qe=>Qe?Qe.length:0)),this._formControl=new t.NI(""),this._showNoEntriesFound$=(0,me.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,we.U)(([Qe,rt])=>this.noEntriesFoundLabel&&Qe&&rt===this.getOptionsLengthOffset())),this._onDestroy=new Z.x,this.applyDefaultOptions(nt)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(w){this._options$.next(w)}get _options(){return this._options$.getValue()}applyDefaultOptions(w){if(w)for(const se of Ne)w.hasOwnProperty(se)&&(this[se]=w[se])}ngOnInit(){const w="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(w):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,w]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[w]=!0):this.matSelect.panelClass=w,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 _e(ie,pe=ne.z){const w=(0,be.H)(ie,pe);return De(()=>w)}(1),(0,T.R)(this._onDestroy)).subscribe(se=>{se?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,M.q)(1)).pipe((0,T.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,T.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let se=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,T.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Re=this._options.toArray(),Be=Re[this.getOptionsLengthOffset()],Ke=this.matSelect._keyManager;Ke&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(se,Be)||!Ke.activeItem||!Re.find(nt=>this.matSelect.compareWith(nt,Ke.activeItem)))&&Ke.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),se=Be})})}),this._showNoEntriesFound$.pipe((0,T.R)(this._onDestroy)).subscribe(se=>{this.matOption&&(se?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,T.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,T.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(w){this.toggleAll.emit(w)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(w){(w.key&&1===w.key.length||w.keyCode>=N.A&&w.keyCode<=N.Z||w.keyCode>=N.xE&&w.keyCode<=N.aO||w.keyCode===N.L_||this.preventHomeEndKeyPropagation&&(w.keyCode===N.Sd||w.keyCode===N.uR))&&w.stopPropagation(),this.matSelect.multiple&&w.key&&w.keyCode===N.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&w.keyCode===N.hY&&this.value&&(this._reset(!0),w.stopPropagation())}_handleKeyup(w){if(w.keyCode===N.LH||w.keyCode===N.JH){const se=this.matSelect._getAriaActiveDescendant(),Re=this._options.toArray().findIndex(Be=>Be.id===se);if(-1!==Re){const Be=this._options.toArray()[Re];this.liveAnnouncer.announce(Be.viewValue+" "+this.getAriaIndex(Re)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(w){return 0===this.getOptionsLengthOffset()?w+1:w}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(w){this._lastExternalInputValue=w,this._formControl.setValue(w),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(w){this._formControl.valueChanges.pipe((0,W.h)(se=>se!==this._lastExternalInputValue),(0,oe.b)(()=>this._lastExternalInputValue=void 0),(0,T.R)(this._onDestroy)).subscribe(w)}registerOnTouched(w){this.onTouched=w}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const w=this.matSelect.panel.nativeElement,se=w.scrollTop;this.searchSelectInput.nativeElement.focus(),w.scrollTop=se}_reset(w){this._formControl.setValue(""),w&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,T.R)(this._onDestroy)).subscribe(w=>{let se=!1;const Re=w&&Array.isArray(w)?[...w]:[];if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){const Be=this.matSelect.options.map(Ke=>Ke.value);this.previousSelectedValues.forEach(Ke=>{!Re.some(et=>this.matSelect.compareWith(et,Ke))&&!Be.some(et=>this.matSelect.compareWith(et,Ke))&&(Re.push(Ke),se=!0)})}this.previousSelectedValues=Re,se&&this.matSelect._onChange(Re)})):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 w=this.getMatOptionHeight(),se=this.matSelect._keyManager.activeItemIndex||0,Re=(0,U.CB)(se,this.matSelect.options,this.matSelect.optionGroups),Be=(this.matOption?-1:0)+Re+se,Ke=this.matSelect.panel.nativeElement.scrollTop,et=this.innerSelectSearch.nativeElement.offsetHeight,nt=Math.floor((256-et)/w),Qe=Math.round((Ke+et)/w)-1;Qe>=Be?this.matSelect.panel.nativeElement.scrollTop=Be*w:Qe+nt<=Be&&(this.matSelect.panel.nativeElement.scrollTop=(Be+1)*w-(256-et))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let se,w=this.innerSelectSearch.nativeElement;for(;w=w.parentElement;)if(w.classList.contains("mat-select-panel")){se=w;break}se&&(this.innerSelectSearch.nativeElement.style.width=se.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return ie.\u0275fac=function(w){return new(w||ie)(r.Y36(re.gD),r.Y36(r.sBO),r.Y36(Y.rL),r.Y36(U.ey,8),r.Y36(ue.Kd),r.Y36(D.KE,8),r.Y36(Ye,8))},ie.\u0275cmp=r.Xpm({type:ie,selectors:[["ngx-mat-select-search"]],contentQueries:function(w,se,Re){if(1&w&&(r.Suo(Re,Oe,5),r.Suo(Re,V,5)),2&w){let Be;r.iGM(Be=r.CRH())&&(se.clearIcon=Be.first),r.iGM(Be=r.CRH())&&(se.noEntriesFound=Be.first)}},viewQuery:function(w,se){if(1&w&&(r.Gf(Ae,7,r.SBq),r.Gf(E,7,r.SBq)),2&w){let Re;r.iGM(Re=r.CRH())&&(se.searchSelectInput=Re.first),r.iGM(Re=r.CRH())&&(se.innerSelectSearch=Re.first)}},hostVars:2,hostBindings:function(w,se){2&w&&r.ekj("mat-select-search-inside-mat-option",se.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:[r._Bn([{provide:t.JU,useExisting:(0,r.Gpc)(()=>ie),multi:!0}])],ngContentSelectors:Fe,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(w,se){1&w&&(r.F$t(ve),r._UZ(0,"input",0),r.TgZ(1,"div",1,2),r.YNc(3,u,1,5,"mat-checkbox",3),r.TgZ(4,"input",4,5),r.NdJ("keydown",function(Be){return se._handleKeydown(Be)})("keyup",function(Be){return se._handleKeyup(Be)})("blur",function(){return se.onBlur()}),r.qZA(),r.YNc(6,i,1,0,"mat-spinner",6),r.YNc(7,f,4,2,"button",7),r.Hsn(8),r.qZA(),r.YNc(9,q,4,2,"div",8),r.ALo(10,"async")),2&w&&(r.xp6(1),r.Q6J("ngClass",r.WLB(11,Me,se.matSelect.multiple,se._isToggleAllCheckboxVisible())),r.xp6(2),r.Q6J("ngIf",se._isToggleAllCheckboxVisible()),r.xp6(1),r.Q6J("type",se.type)("formControl",se._formControl)("placeholder",se.placeholderLabel),r.uIk("aria-label",se.ariaLabel),r.xp6(2),r.Q6J("ngIf",se.searching),r.xp6(1),r.Q6J("ngIf",!se.hideClearSearchButton&&se.value&&!se.searching),r.xp6(2),r.Q6J("ngIf",r.lcZ(10,9,se._showNoEntriesFound$)))},dependencies:[F.oG,Ue,Xe.lW,Je.Hw,s.mk,s.O5,qe.gM,t.Fj,t.JJ,t.oH,s.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}),ie})(),x=(()=>{class ie{}return ie.\u0275fac=function(w){return new(w||ie)},ie.\u0275mod=r.oAB({type:ie}),ie.\u0275inj=r.cJS({imports:[[s.ez,t.UX,Xe.ot,F.p9,Je.Ps,je,qe.AV]]}),ie})();var p=a(6451),b=a(5026);const A=["matSelectInfiniteScroll"];function z(ie,pe){if(1&ie&&(r.ynx(0),r._UZ(1,"img",7),r.BQk()),2&ie){const w=r.oxw().$implicit;r.xp6(1),r.Q6J("src",w.Img,r.LSH)}}function fe(ie,pe){if(1&ie&&(r.TgZ(0,"mat-option",5),r.YNc(1,z,2,1,"ng-container",6),r._uU(2),r.qZA()),2&ie){const w=pe.$implicit,se=r.oxw();r.Q6J("value",w[se.bindValue]),r.xp6(1),r.Q6J("ngIf",null==w?null:w.Img),r.xp6(1),r.hij(" ",w[se.bindLabel]," ")}}let Ie=(()=>{class ie{constructor(){this.disabled=!1,this.batchSize=50,this.optionCtrl=new t.p4,this.searchCtrl=new t.p4,this.filteredData$=this.searchCtrl.valueChanges.pipe((0,de.O)(""),(0,we.U)(w=>w?this.data.filter(se=>se[this.bindLabel].toLowerCase().indexOf(w.toLowerCase())>-1):this.data)),this.incrementBatchOffset$=new Z.x,this.resetBatchOffset$=new Z.x,this.minimumBatchOffset$=(0,me.a)([this.filteredData$,this.searchCtrl.valueChanges]).pipe((0,we.U)(([w,se])=>!this.searchCtrl.value&&this.optionCtrl.value?w.findIndex(Be=>Be[this.bindValue]===this.optionCtrl.value)+this.batchSize:0),(0,de.O)(0)),this.batchOffset$=(0,me.a)([(0,p.T)(this.incrementBatchOffset$.pipe((0,Ce.h)(!0)),this.resetBatchOffset$.pipe((0,Ce.h)(!1))),this.minimumBatchOffset$]).pipe((0,b.R)((w,[se,Re])=>se?Math.max(w+this.batchSize,Re+this.batchSize):Math.max(Re,this.batchSize),this.batchSize)),this.filteredBatchedData$=(0,me.a)([this.filteredData$,this.batchOffset$]).pipe((0,we.U)(([w,se])=>w.slice(0,se))),this.destroy$=new Z.x,this.data=[],this.onSelect=new r.vpe}ngOnInit(){this.infiniteScrollSelect.openedChange.pipe((0,T.R)(this.destroy$)).subscribe(w=>{w&&this.resetBatchOffset$.next()}),this.onSelectData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSelectData(){this.optionCtrl.valueChanges.subscribe(w=>{w&&this.onSelect.emit(w)})}getNextBatch(){this.incrementBatchOffset$.next()}}return ie.\u0275fac=function(w){return new(w||ie)},ie.\u0275cmp=r.Xpm({type:ie,selectors:[["app-select-search"]],viewQuery:function(w,se){if(1&w&&r.Gf(A,7),2&w){let Re;r.iGM(Re=r.CRH())&&(se.infiniteScrollSelect=Re.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(w,se){1&w&&(r.TgZ(0,"mat-form-field",0)(1,"mat-select",1,2),r.NdJ("infiniteScroll",function(){return se.getNextBatch()}),r.TgZ(3,"mat-option"),r._UZ(4,"ngx-mat-select-search",3),r.qZA(),r.YNc(5,fe,3,3,"mat-option",4),r.ALo(6,"async"),r.qZA()()),2&w&&(r.Q6J("appearance",se.appearance),r.xp6(1),r.Q6J("disabled",se.disabled)("formControl",se.optionCtrl)("placeholder",se.placeholder),r.xp6(3),r.Q6J("formControl",se.searchCtrl)("disableScrollToActiveOnOptionsChanged",!0),r.xp6(1),r.Q6J("ngForOf",r.lcZ(6,7,se.filteredBatchedData$)))},dependencies:[s.sg,s.O5,t.JJ,t.oH,D.KE,re.gD,U.ey,y,L,s.Ov],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} mat-form-field.select-search>div.mat-form-field-wrapper{padding-bottom:0}"]}),ie})(),Ze=(()=>{class ie{}return ie.\u0275fac=function(w){return new(w||ie)},ie.\u0275mod=r.oAB({type:ie}),ie.\u0275inj=r.cJS({imports:[s.ez,t.UX,re.LD,D.lN,x,R]}),ie})()},4968:(ze,ye,a)=>{a.d(ye,{R:()=>B});var s=a(8421),r=a(8306),t=a(5577),D=a(1144),re=a(576),T=a(3268);const ge=["addListener","removeListener"],oe=["addEventListener","removeEventListener"],Z=["on","off"];function B(U,K,Q,me){if((0,re.m)(Q)&&(me=Q,Q=void 0),me)return B(U,K,Q).pipe((0,T.Z)(me));const[Se,we]=function N(U){return(0,re.m)(U.addEventListener)&&(0,re.m)(U.removeEventListener)}(U)?oe.map(de=>ne=>U[de](K,ne,Q)):function L(U){return(0,re.m)(U.addListener)&&(0,re.m)(U.removeListener)}(U)?ge.map(C(U,K)):function R(U){return(0,re.m)(U.on)&&(0,re.m)(U.off)}(U)?Z.map(C(U,K)):[];if(!Se&&(0,D.z)(U))return(0,t.z)(de=>B(de,K,Q))((0,s.Xf)(U));if(!Se)throw new TypeError("Invalid event target");return new r.y(de=>{const ne=(..._)=>de.next(1<_.length?_:_[0]);return Se(ne),()=>we(ne)})}function C(U,K){return Q=>me=>U[Q](K,me)}},3601:(ze,ye,a)=>{a.d(ye,{e:()=>ge});var s=a(4986),r=a(4482),t=a(8421),D=a(5403),T=a(2805);function ge(oe,Z=s.z){return function re(oe){return(0,r.e)((Z,B)=>{let C=!1,L=null,R=null,N=!1;const U=()=>{if(R?.unsubscribe(),R=null,C){C=!1;const Q=L;L=null,B.next(Q)}N&&B.complete()},K=()=>{R=null,N&&B.complete()};Z.subscribe((0,D.x)(B,Q=>{C=!0,L=Q,R||(0,t.Xf)(oe(Q)).subscribe(R=(0,D.x)(B,U,K))},()=>{N=!0,(!C||!R||R.closed)&&B.complete()}))})}(()=>(0,T.H)(oe,Z))}},8372:(ze,ye,a)=>{a.d(ye,{b:()=>D});var s=a(4986),r=a(4482),t=a(5403);function D(re,T=s.z){return(0,r.e)((ge,oe)=>{let Z=null,B=null,C=null;const L=()=>{if(Z){Z.unsubscribe(),Z=null;const N=B;B=null,oe.next(N)}};function R(){const N=C+re,U=T.now();if(U<N)return Z=this.schedule(void 0,N-U),void oe.add(Z);L()}ge.subscribe((0,t.x)(oe,N=>{B=N,C=T.now(),Z||(Z=T.schedule(R,re),oe.add(Z))},()=>{L(),oe.complete()},void 0,()=>{B=Z=null}))})}},5684:(ze,ye,a)=>{a.d(ye,{T:()=>r});var s=a(9300);function r(t){return(0,s.h)((D,re)=>t<=re)}},2722:(ze,ye,a)=>{a.d(ye,{R:()=>re});var s=a(4482),r=a(5403),t=a(8421),D=a(5032);function re(T){return(0,s.e)((ge,oe)=>{(0,t.Xf)(T).subscribe((0,r.x)(oe,()=>oe.complete(),D.Z)),!oe.closed&&ge.subscribe(oe)})}},6406:(ze,ye,a)=>{a.d(ye,{Z:()=>ge});var s=a(4408),r=a(727);const t={schedule(Z){let B=requestAnimationFrame,C=cancelAnimationFrame;const{delegate:L}=t;L&&(B=L.requestAnimationFrame,C=L.cancelAnimationFrame);const R=B(N=>{C=void 0,Z(N)});return new r.w0(()=>C?.(R))},requestAnimationFrame(...Z){const{delegate:B}=t;return(B?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){const{delegate:B}=t;return(B?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0};var re=a(7565);const ge=new class T extends re.v{flush(B){this._active=!0;const C=this._scheduled;this._scheduled=void 0;const{actions:L}=this;let R;B=B||L.shift();do{if(R=B.execute(B.state,B.delay))break}while((B=L[0])&&B.id===C&&L.shift());if(this._active=!1,R){for(;(B=L[0])&&B.id===C&&L.shift();)B.unsubscribe();throw R}}}(class D extends s.o{constructor(B,C){super(B,C),this.scheduler=B,this.work=C}requestAsyncId(B,C,L=0){return null!==L&&L>0?super.requestAsyncId(B,C,L):(B.actions.push(this),B._scheduled||(B._scheduled=t.requestAnimationFrame(()=>B.flush(void 0))))}recycleAsyncId(B,C,L=0){if(null!=L&&L>0||null==L&&this.delay>0)return super.recycleAsyncId(B,C,L);B.actions.some(R=>R.id===C)||(t.cancelAnimationFrame(C),B._scheduled=void 0)}})},3101:(ze,ye,a)=>{a.d(ye,{E:()=>N});var s=a(4408);let t,r=1;const D={};function re(K){return K in D&&(delete D[K],!0)}const T={setImmediate(K){const Q=r++;return D[Q]=!0,t||(t=Promise.resolve()),t.then(()=>re(Q)&&K()),Q},clearImmediate(K){re(K)}},{setImmediate:oe,clearImmediate:Z}=T,B={setImmediate(...K){const{delegate:Q}=B;return(Q?.setImmediate||oe)(...K)},clearImmediate(K){const{delegate:Q}=B;return(Q?.clearImmediate||Z)(K)},delegate:void 0};var L=a(7565);const N=new class R extends L.v{flush(Q){this._active=!0;const me=this._scheduled;this._scheduled=void 0;const{actions:Se}=this;let we;Q=Q||Se.shift();do{if(we=Q.execute(Q.state,Q.delay))break}while((Q=Se[0])&&Q.id===me&&Se.shift());if(this._active=!1,we){for(;(Q=Se[0])&&Q.id===me&&Se.shift();)Q.unsubscribe();throw we}}}(class C extends s.o{constructor(Q,me){super(Q,me),this.scheduler=Q,this.work=me}requestAsyncId(Q,me,Se=0){return null!==Se&&Se>0?super.requestAsyncId(Q,me,Se):(Q.actions.push(this),Q._scheduled||(Q._scheduled=B.setImmediate(Q.flush.bind(Q,void 0))))}recycleAsyncId(Q,me,Se=0){if(null!=Se&&Se>0||null==Se&&this.delay>0)return super.recycleAsyncId(Q,me,Se);Q.actions.some(we=>we.id===me)||(B.clearImmediate(me),Q._scheduled=void 0)}})},2687:(ze,ye,a)=>{a.d(ye,{$s:()=>xe,Em:()=>_e,Kd:()=>Me,X6:()=>E,ic:()=>Y,kH:()=>Ve,mK:()=>je,qV:()=>Ue,qm:()=>y,rt:()=>G,s1:()=>be,tE:()=>Ye,yG:()=>u});var s=a(6895),r=a(4650),t=a(3353),D=a(7579),re=a(727),T=a(1135),ge=a(9646),oe=a(9521),Z=a(8505),B=a(8372),C=a(9300),L=a(4004),R=a(5698),N=a(5684),U=a(1884),K=a(2722),Q=a(1281),me=a(9643),Se=a(2289);function _(x,p){return(x.getAttribute(p)||"").match(/\S+/g)||[]}const v="cdk-describedby-message",k="cdk-describedby-host";let le=0,xe=(()=>{class x{constructor(b,A){this._platform=A,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+le++,this._document=b,this._id=(0,r.f3M)(r.AFp)+"-"+le++}describe(b,A,z){if(!this._canBeDescribed(b,A))return;const fe=Ce(A,z);"string"!=typeof A?(Te(A,this._id),this._messageRegistry.set(fe,{messageElement:A,referenceCount:0})):this._messageRegistry.has(fe)||this._createMessageElement(A,z),this._isElementDescribedByMessage(b,fe)||this._addMessageReference(b,fe)}removeDescription(b,A,z){if(!A||!this._isElementNode(b))return;const fe=Ce(A,z);if(this._isElementDescribedByMessage(b,fe)&&this._removeMessageReference(b,fe),"string"==typeof A){const Ie=this._messageRegistry.get(fe);Ie&&0===Ie.referenceCount&&this._deleteMessageElement(fe)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const b=this._document.querySelectorAll(`[${k}="${this._id}"]`);for(let A=0;A<b.length;A++)this._removeCdkDescribedByReferenceIds(b[A]),b[A].removeAttribute(k);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(b,A){const z=this._document.createElement("div");Te(z,this._id),z.textContent=b,A&&z.setAttribute("role",A),this._createMessagesContainer(),this._messagesContainer.appendChild(z),this._messageRegistry.set(Ce(b,A),{messageElement:z,referenceCount:0})}_deleteMessageElement(b){this._messageRegistry.get(b)?.messageElement?.remove(),this._messageRegistry.delete(b)}_createMessagesContainer(){if(this._messagesContainer)return;const b="cdk-describedby-message-container",A=this._document.querySelectorAll(`.${b}[platform="server"]`);for(let fe=0;fe<A.length;fe++)A[fe].remove();const z=this._document.createElement("div");z.style.visibility="hidden",z.classList.add(b),z.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&z.setAttribute("platform","server"),this._document.body.appendChild(z),this._messagesContainer=z}_removeCdkDescribedByReferenceIds(b){const A=_(b,"aria-describedby").filter(z=>0!=z.indexOf(v));b.setAttribute("aria-describedby",A.join(" "))}_addMessageReference(b,A){const z=this._messageRegistry.get(A);(function de(x,p,b){const A=_(x,p);A.some(z=>z.trim()==b.trim())||(A.push(b.trim()),x.setAttribute(p,A.join(" ")))})(b,"aria-describedby",z.messageElement.id),b.setAttribute(k,this._id),z.referenceCount++}_removeMessageReference(b,A){const z=this._messageRegistry.get(A);z.referenceCount--,function ne(x,p,b){const z=_(x,p).filter(fe=>fe!=b.trim());z.length?x.setAttribute(p,z.join(" ")):x.removeAttribute(p)}(b,"aria-describedby",z.messageElement.id),b.removeAttribute(k)}_isElementDescribedByMessage(b,A){const z=_(b,"aria-describedby"),fe=this._messageRegistry.get(A),Ie=fe&&fe.messageElement.id;return!!Ie&&-1!=z.indexOf(Ie)}_canBeDescribed(b,A){if(!this._isElementNode(b))return!1;if(A&&"object"==typeof A)return!0;const z=null==A?"":`${A}`.trim(),fe=b.getAttribute("aria-label");return!(!z||fe&&fe.trim()===z)}_isElementNode(b){return b.nodeType===this._document.ELEMENT_NODE}}return x.\u0275fac=function(b){return new(b||x)(r.LFG(s.K0),r.LFG(t.t4))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})();function Ce(x,p){return"string"==typeof x?`${p||""}/${x}`:x}function Te(x,p){x.id||(x.id=`${v}-${p}-${le++}`)}class De{constructor(p){this._items=p,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new D.x,this._typeaheadSubscription=re.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=b=>b.disabled,this._pressedLetters=[],this.tabOut=new D.x,this.change=new D.x,p instanceof r.n_E&&p.changes.subscribe(b=>{if(this._activeItem){const z=b.toArray().indexOf(this._activeItem);z>-1&&z!==this._activeItemIndex&&(this._activeItemIndex=z)}})}skipPredicate(p){return this._skipPredicateFn=p,this}withWrap(p=!0){return this._wrap=p,this}withVerticalOrientation(p=!0){return this._vertical=p,this}withHorizontalOrientation(p){return this._horizontal=p,this}withAllowedModifierKeys(p){return this._allowedModifierKeys=p,this}withTypeAhead(p=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Z.b)(b=>this._pressedLetters.push(b)),(0,B.b)(p),(0,C.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(b=>{const A=this._getItemsArray();for(let z=1;z<A.length+1;z++){const fe=(this._activeItemIndex+z)%A.length,Ie=A[fe];if(!this._skipPredicateFn(Ie)&&0===Ie.getLabel().toUpperCase().trim().indexOf(b)){this.setActiveItem(fe);break}}this._pressedLetters=[]}),this}withHomeAndEnd(p=!0){return this._homeAndEnd=p,this}setActiveItem(p){const b=this._activeItem;this.updateActiveItem(p),this._activeItem!==b&&this.change.next(this._activeItemIndex)}onKeydown(p){const b=p.keyCode,z=["altKey","ctrlKey","metaKey","shiftKey"].every(fe=>!p[fe]||this._allowedModifierKeys.indexOf(fe)>-1);switch(b){case oe.Mf:return void this.tabOut.next();case oe.JH:if(this._vertical&&z){this.setNextItemActive();break}return;case oe.LH:if(this._vertical&&z){this.setPreviousItemActive();break}return;case oe.SV:if(this._horizontal&&z){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case oe.oh:if(this._horizontal&&z){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case oe.Sd:if(this._homeAndEnd&&z){this.setFirstItemActive();break}return;case oe.uR:if(this._homeAndEnd&&z){this.setLastItemActive();break}return;default:return void((z||(0,oe.Vb)(p,"shiftKey"))&&(p.key&&1===p.key.length?this._letterKeyStream.next(p.key.toLocaleUpperCase()):(b>=oe.A&&b<=oe.Z||b>=oe.xE&&b<=oe.aO)&&this._letterKeyStream.next(String.fromCharCode(b))))}this._pressedLetters=[],p.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(p){const b=this._getItemsArray(),A="number"==typeof p?p:b.indexOf(p);this._activeItem=b[A]??null,this._activeItemIndex=A}_setActiveItemByDelta(p){this._wrap?this._setActiveInWrapMode(p):this._setActiveInDefaultMode(p)}_setActiveInWrapMode(p){const b=this._getItemsArray();for(let A=1;A<=b.length;A++){const z=(this._activeItemIndex+p*A+b.length)%b.length;if(!this._skipPredicateFn(b[z]))return void this.setActiveItem(z)}}_setActiveInDefaultMode(p){this._setActiveItemByIndex(this._activeItemIndex+p,p)}_setActiveItemByIndex(p,b){const A=this._getItemsArray();if(A[p]){for(;this._skipPredicateFn(A[p]);)if(!A[p+=b])return;this.setActiveItem(p)}}_getItemsArray(){return this._items instanceof r.n_E?this._items.toArray():this._items}}class be extends De{setActiveItem(p){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(p),this.activeItem&&this.activeItem.setActiveStyles()}}class _e extends De{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(p){return this._origin=p,this}setActiveItem(p){super.setActiveItem(p),this.activeItem&&this.activeItem.focus(this._origin)}}let Y=(()=>{class x{constructor(b){this._platform=b}isDisabled(b){return b.hasAttribute("disabled")}isVisible(b){return function F(x){return!!(x.offsetWidth||x.offsetHeight||"function"==typeof x.getClientRects&&x.getClientRects().length)}(b)&&"visible"===getComputedStyle(b).visibility}isTabbable(b){if(!this._platform.isBrowser)return!1;const A=function ue(x){try{return x.frameElement}catch{return null}}(function Ee(x){return x.ownerDocument&&x.ownerDocument.defaultView||window}(b));if(A&&(-1===j(A)||!this.isVisible(A)))return!1;let z=b.nodeName.toLowerCase(),fe=j(b);return b.hasAttribute("contenteditable")?-1!==fe:!("iframe"===z||"object"===z||this._platform.WEBKIT&&this._platform.IOS&&!function te(x){let p=x.nodeName.toLowerCase(),b="input"===p&&x.type;return"text"===b||"password"===b||"select"===p||"textarea"===p}(b))&&("audio"===z?!!b.hasAttribute("controls")&&-1!==fe:"video"===z?-1!==fe&&(null!==fe||this._platform.FIREFOX||b.hasAttribute("controls")):b.tabIndex>=0)}isFocusable(b,A){return function ce(x){return!function ae(x){return function ee(x){return"input"==x.nodeName.toLowerCase()}(x)&&"hidden"==x.type}(x)&&(function $(x){let p=x.nodeName.toLowerCase();return"input"===p||"select"===p||"button"===p||"textarea"===p}(x)||function ke(x){return function Le(x){return"a"==x.nodeName.toLowerCase()}(x)&&x.hasAttribute("href")}(x)||x.hasAttribute("contenteditable")||P(x))}(b)&&!this.isDisabled(b)&&(A?.ignoreVisibility||this.isVisible(b))}}return x.\u0275fac=function(b){return new(b||x)(r.LFG(t.t4))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})();function P(x){if(!x.hasAttribute("tabindex")||void 0===x.tabIndex)return!1;let p=x.getAttribute("tabindex");return!(!p||isNaN(parseInt(p,10)))}function j(x){if(!P(x))return null;const p=parseInt(x.getAttribute("tabindex")||"",10);return isNaN(p)?-1:p}class Pe{constructor(p,b,A,z,fe=!1){this._element=p,this._checker=b,this._ngZone=A,this._document=z,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,fe||this.attachAnchors()}get enabled(){return this._enabled}set enabled(p){this._enabled=p,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(p,this._startAnchor),this._toggleAnchorTabIndex(p,this._endAnchor))}destroy(){const p=this._startAnchor,b=this._endAnchor;p&&(p.removeEventListener("focus",this.startAnchorListener),p.remove()),b&&(b.removeEventListener("focus",this.endAnchorListener),b.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(p){return new Promise(b=>{this._executeOnStable(()=>b(this.focusInitialElement(p)))})}focusFirstTabbableElementWhenReady(p){return new Promise(b=>{this._executeOnStable(()=>b(this.focusFirstTabbableElement(p)))})}focusLastTabbableElementWhenReady(p){return new Promise(b=>{this._executeOnStable(()=>b(this.focusLastTabbableElement(p)))})}_getRegionBoundary(p){const b=this._element.querySelectorAll(`[cdk-focus-region-${p}], [cdkFocusRegion${p}], [cdk-focus-${p}]`);return"start"==p?b.length?b[0]:this._getFirstTabbableElement(this._element):b.length?b[b.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(p){const b=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(b){if(!this._checker.isFocusable(b)){const A=this._getFirstTabbableElement(b);return A?.focus(p),!!A}return b.focus(p),!0}return this.focusFirstTabbableElement(p)}focusFirstTabbableElement(p){const b=this._getRegionBoundary("start");return b&&b.focus(p),!!b}focusLastTabbableElement(p){const b=this._getRegionBoundary("end");return b&&b.focus(p),!!b}hasAttached(){return this._hasAttached}_getFirstTabbableElement(p){if(this._checker.isFocusable(p)&&this._checker.isTabbable(p))return p;const b=p.children;for(let A=0;A<b.length;A++){const z=b[A].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(b[A]):null;if(z)return z}return null}_getLastTabbableElement(p){if(this._checker.isFocusable(p)&&this._checker.isTabbable(p))return p;const b=p.children;for(let A=b.length-1;A>=0;A--){const z=b[A].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(b[A]):null;if(z)return z}return null}_createAnchor(){const p=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,p),p.classList.add("cdk-visually-hidden"),p.classList.add("cdk-focus-trap-anchor"),p.setAttribute("aria-hidden","true"),p}_toggleAnchorTabIndex(p,b){p?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")}toggleAnchors(p){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(p,this._startAnchor),this._toggleAnchorTabIndex(p,this._endAnchor))}_executeOnStable(p){this._ngZone.isStable?p():this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(p)}}let Ue=(()=>{class x{constructor(b,A,z){this._checker=b,this._ngZone=A,this._document=z}create(b,A=!1){return new Pe(b,this._checker,this._ngZone,this._document,A)}}return x.\u0275fac=function(b){return new(b||x)(r.LFG(Y),r.LFG(r.R0b),r.LFG(s.K0))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),je=(()=>{class x{constructor(b,A,z){this._elementRef=b,this._focusTrapFactory=A,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(b){this.focusTrap.enabled=(0,Q.Ig)(b)}get autoCapture(){return this._autoCapture}set autoCapture(b){this._autoCapture=(0,Q.Ig)(b)}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(b){const A=b.autoCapture;A&&!A.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,t.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return x.\u0275fac=function(b){return new(b||x)(r.Y36(r.SBq),r.Y36(Ue),r.Y36(s.K0))},x.\u0275dir=r.lG2({type:x,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.TTD]}),x})();function E(x){return 0===x.buttons||0===x.offsetX&&0===x.offsetY}function u(x){const p=x.touches&&x.touches[0]||x.changedTouches&&x.changedTouches[0];return!(!p||-1!==p.identifier||null!=p.radiusX&&1!==p.radiusX||null!=p.radiusY&&1!==p.radiusY)}const i=new r.OlP("cdk-input-modality-detector-options"),e={ignoreKeys:[oe.zL,oe.jx,oe.b2,oe.MW,oe.JU]},f=(0,t.i$)({passive:!0,capture:!0});let S=(()=>{class x{constructor(b,A,z,fe){this._platform=b,this._mostRecentTarget=null,this._modality=new T.X(null),this._lastTouchMs=0,this._onKeydown=Ie=>{this._options?.ignoreKeys?.some(Ze=>Ze===Ie.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,t.sA)(Ie))},this._onMousedown=Ie=>{Date.now()-this._lastTouchMs<650||(this._modality.next(E(Ie)?"keyboard":"mouse"),this._mostRecentTarget=(0,t.sA)(Ie))},this._onTouchstart=Ie=>{u(Ie)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,t.sA)(Ie))},this._options={...e,...fe},this.modalityDetected=this._modality.pipe((0,N.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,U.x)()),b.isBrowser&&A.runOutsideAngular(()=>{z.addEventListener("keydown",this._onKeydown,f),z.addEventListener("mousedown",this._onMousedown,f),z.addEventListener("touchstart",this._onTouchstart,f)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,f),document.removeEventListener("mousedown",this._onMousedown,f),document.removeEventListener("touchstart",this._onTouchstart,f))}}return x.\u0275fac=function(b){return new(b||x)(r.LFG(t.t4),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(i,8))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})();const I=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function q(){return null}}),ve=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Me=(()=>{class x{constructor(b,A,z,fe){this._ngZone=A,this._defaultOptions=fe,this._document=z,this._liveElement=b||this._createLiveElement()}announce(b,...A){const z=this._defaultOptions;let fe,Ie;return 1===A.length&&"number"==typeof A[0]?Ie=A[0]:[fe,Ie]=A,this.clear(),clearTimeout(this._previousTimeout),fe||(fe=z&&z.politeness?z.politeness:"polite"),null==Ie&&z&&(Ie=z.duration),this._liveElement.setAttribute("aria-live",fe),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ze=>this._currentResolve=Ze)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=b,"number"==typeof Ie&&(this._previousTimeout=setTimeout(()=>this.clear(),Ie)),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 b="cdk-live-announcer-element",A=this._document.getElementsByClassName(b),z=this._document.createElement("div");for(let fe=0;fe<A.length;fe++)A[fe].remove();return z.classList.add(b),z.classList.add("cdk-visually-hidden"),z.setAttribute("aria-atomic","true"),z.setAttribute("aria-live","polite"),this._document.body.appendChild(z),z}}return x.\u0275fac=function(b){return new(b||x)(r.LFG(I,8),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(ve,8))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})();const Oe=new r.OlP("cdk-focus-monitor-default-options"),Ne=(0,t.i$)({passive:!0,capture:!0});let Ye=(()=>{class x{constructor(b,A,z,fe,Ie){this._ngZone=b,this._platform=A,this._inputModalityDetector=z,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 D.x,this._rootNodeFocusAndBlurListener=Ze=>{const ie=(0,t.sA)(Ze),pe="focus"===Ze.type?this._onFocus:this._onBlur;for(let w=ie;w;w=w.parentElement)pe.call(this,Ze,w)},this._document=fe,this._detectionMode=Ie?.detectionMode||0}monitor(b,A=!1){const z=(0,Q.fI)(b);if(!this._platform.isBrowser||1!==z.nodeType)return(0,ge.of)(null);const fe=(0,t.kV)(z)||this._getDocument(),Ie=this._elementInfo.get(z);if(Ie)return A&&(Ie.checkChildren=!0),Ie.subject;const Ze={checkChildren:A,subject:new D.x,rootNode:fe};return this._elementInfo.set(z,Ze),this._registerGlobalListeners(Ze),Ze.subject}stopMonitoring(b){const A=(0,Q.fI)(b),z=this._elementInfo.get(A);z&&(z.subject.complete(),this._setClasses(A),this._elementInfo.delete(A),this._removeGlobalListeners(z))}focusVia(b,A,z){const fe=(0,Q.fI)(b);fe===this._getDocument().activeElement?this._getClosestElementsInfo(fe).forEach(([Ze,ie])=>this._originChanged(Ze,A,ie)):(this._setOrigin(A),"function"==typeof fe.focus&&fe.focus(z))}ngOnDestroy(){this._elementInfo.forEach((b,A)=>this.stopMonitoring(A))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(b){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(b)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(b){return 1===this._detectionMode||!!b?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(b,A){b.classList.toggle("cdk-focused",!!A),b.classList.toggle("cdk-touch-focused","touch"===A),b.classList.toggle("cdk-keyboard-focused","keyboard"===A),b.classList.toggle("cdk-mouse-focused","mouse"===A),b.classList.toggle("cdk-program-focused","program"===A)}_setOrigin(b,A=!1){this._ngZone.runOutsideAngular(()=>{this._origin=b,this._originFromTouchInteraction="touch"===b&&A,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(b,A){const z=this._elementInfo.get(A),fe=(0,t.sA)(b);!z||!z.checkChildren&&A!==fe||this._originChanged(A,this._getFocusOrigin(fe),z)}_onBlur(b,A){const z=this._elementInfo.get(A);!z||z.checkChildren&&b.relatedTarget instanceof Node&&A.contains(b.relatedTarget)||(this._setClasses(A),this._emitOrigin(z,null))}_emitOrigin(b,A){b.subject.observers.length&&this._ngZone.run(()=>b.subject.next(A))}_registerGlobalListeners(b){if(!this._platform.isBrowser)return;const A=b.rootNode,z=this._rootNodeFocusListenerCount.get(A)||0;z||this._ngZone.runOutsideAngular(()=>{A.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),A.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ne)}),this._rootNodeFocusListenerCount.set(A,z+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,K.R)(this._stopInputModalityDetector)).subscribe(fe=>{this._setOrigin(fe,!0)}))}_removeGlobalListeners(b){const A=b.rootNode;if(this._rootNodeFocusListenerCount.has(A)){const z=this._rootNodeFocusListenerCount.get(A);z>1?this._rootNodeFocusListenerCount.set(A,z-1):(A.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),A.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ne),this._rootNodeFocusListenerCount.delete(A))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(b,A,z){this._setClasses(b,A),this._emitOrigin(z,A),this._lastFocusOrigin=A}_getClosestElementsInfo(b){const A=[];return this._elementInfo.forEach((z,fe)=>{(fe===b||z.checkChildren&&fe.contains(b))&&A.push([fe,z])}),A}}return x.\u0275fac=function(b){return new(b||x)(r.LFG(r.R0b),r.LFG(t.t4),r.LFG(S),r.LFG(s.K0,8),r.LFG(Oe,8))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),Ve=(()=>{class x{constructor(b,A){this._elementRef=b,this._focusMonitor=A,this.cdkFocusChange=new r.vpe}ngAfterViewInit(){const b=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(b,1===b.nodeType&&b.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(A=>this.cdkFocusChange.emit(A))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return x.\u0275fac=function(b){return new(b||x)(r.Y36(r.SBq),r.Y36(Ye))},x.\u0275dir=r.lG2({type:x,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),x})();const Ge="cdk-high-contrast-black-on-white",V="cdk-high-contrast-white-on-black",O="cdk-high-contrast-active";let y=(()=>{class x{constructor(b,A){this._platform=b,this._document=A,this._breakpointSubscription=(0,r.f3M)(Se.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const b=this._document.createElement("div");b.style.backgroundColor="rgb(1,2,3)",b.style.position="absolute",this._document.body.appendChild(b);const A=this._document.defaultView||window,z=A&&A.getComputedStyle?A.getComputedStyle(b):null,fe=(z&&z.backgroundColor||"").replace(/ /g,"");switch(b.remove(),fe){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 b=this._document.body.classList;b.remove(O,Ge,V),this._hasCheckedHighContrastMode=!0;const A=this.getHighContrastMode();1===A?b.add(O,Ge):2===A&&b.add(O,V)}}}return x.\u0275fac=function(b){return new(b||x)(r.LFG(t.t4),r.LFG(s.K0))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),G=(()=>{class x{constructor(b){b._applyBodyHighContrastModeCssClasses()}}return x.\u0275fac=function(b){return new(b||x)(r.LFG(y))},x.\u0275mod=r.oAB({type:x}),x.\u0275inj=r.cJS({imports:[me.Q8]}),x})()},445:(ze,ye,a)=>{a.d(ye,{Is:()=>ge,vT:()=>Z});var s=a(4650),r=a(6895);const t=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function D(){return(0,s.f3M)(r.K0)}}),re=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let ge=(()=>{class B{constructor(L){if(this.value="ltr",this.change=new s.vpe,L){const N=L.documentElement?L.documentElement.dir:null;this.value=function T(B){const C=B?.toLowerCase()||"";return"auto"===C&&typeof navigator<"u"&&navigator?.language?re.test(navigator.language)?"rtl":"ltr":"rtl"===C?"rtl":"ltr"}((L.body?L.body.dir:null)||N||"ltr")}}ngOnDestroy(){this.change.complete()}}return B.\u0275fac=function(L){return new(L||B)(s.LFG(t,8))},B.\u0275prov=s.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),Z=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=s.oAB({type:B}),B.\u0275inj=s.cJS({}),B})()},1281:(ze,ye,a)=>{a.d(ye,{Eq:()=>re,HM:()=>T,Ig:()=>r,du:()=>oe,fI:()=>ge,su:()=>t});var s=a(4650);function r(Z){return null!=Z&&"false"!=`${Z}`}function t(Z,B=0){return function D(Z){return!isNaN(parseFloat(Z))&&!isNaN(Number(Z))}(Z)?Number(Z):B}function re(Z){return Array.isArray(Z)?Z:[Z]}function T(Z){return null==Z?"":"string"==typeof Z?Z:`${Z}px`}function ge(Z){return Z instanceof s.SBq?Z.nativeElement:Z}function oe(Z,B=/\s+/){const C=[];if(null!=Z){const L=Array.isArray(Z)?Z:`${Z}`.split(B);for(const R of L){const N=`${R}`.trim();N&&C.push(N)}}return C}},5017:(ze,ye,a)=>{a.d(ye,{A8:()=>B,Ov:()=>oe});var s=a(7579),r=a(4650);class oe{constructor(R=!1,N,U=!0){this._multiple=R,this._emitChanges=U,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new s.x,N&&N.length&&(R?N.forEach(K=>this._markSelected(K)):this._markSelected(N[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...R){this._verifyValueAssignment(R),R.forEach(N=>this._markSelected(N)),this._emitChangeEvent()}deselect(...R){this._verifyValueAssignment(R),R.forEach(N=>this._unmarkSelected(N)),this._emitChangeEvent()}toggle(R){this.isSelected(R)?this.deselect(R):this.select(R)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(R){return this._selection.has(R)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(R){this._multiple&&this.selected&&this._selected.sort(R)}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(R){this.isSelected(R)||(this._multiple||this._unmarkAll(),this._selection.add(R),this._emitChanges&&this._selectedToEmit.push(R))}_unmarkSelected(R){this.isSelected(R)&&(this._selection.delete(R),this._emitChanges&&this._deselectedToEmit.push(R))}_unmarkAll(){this.isEmpty()||this._selection.forEach(R=>this._unmarkSelected(R))}_verifyValueAssignment(R){}}let B=(()=>{class L{constructor(){this._listeners=[]}notify(N,U){for(let K of this._listeners)K(N,U)}listen(N){return this._listeners.push(N),()=>{this._listeners=this._listeners.filter(U=>N!==U)}}ngOnDestroy(){this._listeners=[]}}return L.\u0275fac=function(N){return new(N||L)},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},9521:(ze,ye,a)=>{a.d(ye,{A:()=>ae,JH:()=>we,JU:()=>T,K5:()=>re,Ku:()=>R,LH:()=>me,L_:()=>L,MW:()=>ve,Mf:()=>t,SV:()=>Se,Sd:()=>K,VM:()=>N,Vb:()=>pt,Z:()=>q,ZH:()=>r,aO:()=>W,b2:()=>ft,hY:()=>C,jx:()=>ge,oh:()=>Q,uR:()=>U,xE:()=>v,yY:()=>M,zL:()=>oe});const r=8,t=9,re=13,T=16,ge=17,oe=18,C=27,L=32,R=33,N=34,U=35,K=36,Q=37,me=38,Se=39,we=40,M=46,v=48,W=57,ae=65,q=90,ve=91,ft=224;function pt(st,...ut){return ut.length?ut.some(mt=>st[mt]):st.altKey||st.shiftKey||st.ctrlKey||st.metaKey}},2289:(ze,ye,a)=>{a.d(ye,{Yg:()=>we,u3:()=>ne});var s=a(4650),r=a(1281),t=a(7579),D=a(9841),re=a(7272),T=a(8306),ge=a(5698),oe=a(5684),Z=a(8372),B=a(4004),C=a(8675),L=a(2722),R=a(3353);const U=new Set;let K,Q=(()=>{class _{constructor(v){this._platform=v,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Se}matchMedia(v){return(this._platform.WEBKIT||this._platform.BLINK)&&function me(_){if(!U.has(_))try{K||(K=document.createElement("style"),K.setAttribute("type","text/css"),document.head.appendChild(K)),K.sheet&&(K.sheet.insertRule(`@media ${_} {body{ }}`,0),U.add(_))}catch(M){console.error(M)}}(v),this._matchMedia(v)}}return _.\u0275fac=function(v){return new(v||_)(s.LFG(R.t4))},_.\u0275prov=s.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Se(_){return{matches:"all"===_||""===_,media:_,addListener:()=>{},removeListener:()=>{}}}let we=(()=>{class _{constructor(v,k){this._mediaMatcher=v,this._zone=k,this._queries=new Map,this._destroySubject=new t.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(v){return de((0,r.Eq)(v)).some(le=>this._registerQuery(le).mql.matches)}observe(v){const le=de((0,r.Eq)(v)).map(Ce=>this._registerQuery(Ce).observable);let xe=(0,D.a)(le);return xe=(0,re.z)(xe.pipe((0,ge.q)(1)),xe.pipe((0,oe.T)(1),(0,Z.b)(0))),xe.pipe((0,B.U)(Ce=>{const Te={matches:!1,breakpoints:{}};return Ce.forEach(({matches:De,query:be})=>{Te.matches=Te.matches||De,Te.breakpoints[be]=De}),Te}))}_registerQuery(v){if(this._queries.has(v))return this._queries.get(v);const k=this._mediaMatcher.matchMedia(v),xe={observable:new T.y(Ce=>{const Te=De=>this._zone.run(()=>Ce.next(De));return k.addListener(Te),()=>{k.removeListener(Te)}}).pipe((0,C.O)(k),(0,B.U)(({matches:Ce})=>({query:v,matches:Ce})),(0,L.R)(this._destroySubject)),mql:k};return this._queries.set(v,xe),xe}}return _.\u0275fac=function(v){return new(v||_)(s.LFG(Q),s.LFG(s.R0b))},_.\u0275prov=s.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function de(_){return _.map(M=>M.split(",")).reduce((M,v)=>M.concat(v)).map(M=>M.trim())}const ne={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:(ze,ye,a)=>{a.d(ye,{Q8:()=>Z,wD:()=>oe});var s=a(1281),r=a(4650),t=a(8306),D=a(7579),re=a(8372);let T=(()=>{class B{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return B.\u0275fac=function(L){return new(L||B)},B.\u0275prov=r.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),ge=(()=>{class B{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,R)=>this._cleanupObserver(R))}observe(L){const R=(0,s.fI)(L);return new t.y(N=>{const K=this._observeElement(R).subscribe(N);return()=>{K.unsubscribe(),this._unobserveElement(R)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const R=new D.x,N=this._mutationObserverFactory.create(U=>R.next(U));N&&N.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:N,stream:R,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:R,stream:N}=this._observedElements.get(L);R&&R.disconnect(),N.complete(),this._observedElements.delete(L)}}}return B.\u0275fac=function(L){return new(L||B)(r.LFG(T))},B.\u0275prov=r.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),oe=(()=>{class B{constructor(L,R,N){this._contentObserver=L,this._elementRef=R,this._ngZone=N,this.event=new r.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,s.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,s.su)(L),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,re.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return B.\u0275fac=function(L){return new(L||B)(r.Y36(ge),r.Y36(r.SBq),r.Y36(r.R0b))},B.\u0275dir=r.lG2({type:B,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),B})(),Z=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=r.oAB({type:B}),B.\u0275inj=r.cJS({providers:[T]}),B})()},2561:(ze,ye,a)=>{a.d(ye,{pI:()=>Je,xu:()=>Xe,_G:()=>ae,aV:()=>Ue,X_:()=>k,Xj:()=>Y,U8:()=>E,Iu:()=>ue});var s=a(7376),r=a(6895),t=a(4650),D=a(1281),re=a(3353),T=a(445),ge=a(4080),oe=a(7579),Z=a(727),B=a(6451),C=a(4482),L=a(5403),N=a(5698),U=a(2722),K=a(9521);const Q=(0,re.Mq)();class me{constructor(e,l){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=l}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,D.HM)(-this._previousScrollPosition.left),e.style.top=(0,D.HM)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,f=e.style,S=this._document.body.style,I=f.scrollBehavior||"",q=S.scrollBehavior||"";this._isEnabled=!1,f.left=this._previousHTMLStyles.left,f.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Q&&(f.scrollBehavior=S.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Q&&(f.scrollBehavior=I,S.scrollBehavior=q)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const l=this._document.body,f=this._viewportRuler.getViewportSize();return l.scrollHeight>f.height||l.scrollWidth>f.width}}class we{constructor(e,l,f,S){this._scrollDispatcher=e,this._ngZone=l,this._viewportRuler=f,this._config=S,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 l=this._viewportRuler.getViewportScrollPosition().top;Math.abs(l-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 de{enable(){}disable(){}attach(){}}function ne(i,e){return e.some(l=>i.bottom<l.top||i.top>l.bottom||i.right<l.left||i.left>l.right)}function _(i,e){return e.some(l=>i.top<l.top||i.bottom>l.bottom||i.left<l.left||i.right>l.right)}class M{constructor(e,l,f,S){this._scrollDispatcher=e,this._viewportRuler=l,this._ngZone=f,this._config=S,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 l=this._overlayRef.overlayElement.getBoundingClientRect(),{width:f,height:S}=this._viewportRuler.getViewportSize();ne(l,[{width:f,height:S,bottom:S,right:f,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let v=(()=>{class i{constructor(l,f,S,I){this._scrollDispatcher=l,this._viewportRuler=f,this._ngZone=S,this.noop=()=>new de,this.close=q=>new we(this._scrollDispatcher,this._ngZone,this._viewportRuler,q),this.block=()=>new me(this._viewportRuler,this._document),this.reposition=q=>new M(this._scrollDispatcher,this._viewportRuler,this._ngZone,q),this._document=I}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(s.mF),t.LFG(s.rL),t.LFG(t.R0b),t.LFG(r.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class k{constructor(e){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const l=Object.keys(e);for(const f of l)void 0!==e[f]&&(this[f]=e[f])}}}class Ce{constructor(e,l){this.connectionPair=e,this.scrollableViewProperties=l}}let be=(()=>{class i{constructor(l){this._attachedOverlays=[],this._document=l}ngOnDestroy(){this.detach()}add(l){this.remove(l),this._attachedOverlays.push(l)}remove(l){const f=this._attachedOverlays.indexOf(l);f>-1&&this._attachedOverlays.splice(f,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(r.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),_e=(()=>{class i extends be{constructor(l,f){super(l),this._ngZone=f,this._keydownListener=S=>{const I=this._attachedOverlays;for(let q=I.length-1;q>-1;q--)if(I[q]._keydownEvents.observers.length>0){const ve=I[q]._keydownEvents;this._ngZone?this._ngZone.run(()=>ve.next(S)):ve.next(S);break}}}add(l){super.add(l),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(l){return new(l||i)(t.LFG(r.K0),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),W=(()=>{class i extends be{constructor(l,f,S){super(l),this._platform=f,this._ngZone=S,this._cursorStyleIsSet=!1,this._pointerDownListener=I=>{this._pointerDownEventTarget=(0,re.sA)(I)},this._clickListener=I=>{const q=(0,re.sA)(I),ve="click"===I.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:q;this._pointerDownEventTarget=null;const Me=this._attachedOverlays.slice();for(let Fe=Me.length-1;Fe>-1;Fe--){const Oe=Me[Fe];if(Oe._outsidePointerEvents.observers.length<1||!Oe.hasAttached())continue;if(Oe.overlayElement.contains(q)||Oe.overlayElement.contains(ve))break;const Ne=Oe._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ne.next(I)):Ne.next(I)}}}add(l){if(super.add(l),!this._isAttached){const f=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(f)):this._addEventListeners(f),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=f.style.cursor,f.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const l=this._document.body;l.removeEventListener("pointerdown",this._pointerDownListener,!0),l.removeEventListener("click",this._clickListener,!0),l.removeEventListener("auxclick",this._clickListener,!0),l.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(l.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(l){l.addEventListener("pointerdown",this._pointerDownListener,!0),l.addEventListener("click",this._clickListener,!0),l.addEventListener("auxclick",this._clickListener,!0),l.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(r.K0),t.LFG(re.t4),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Y=(()=>{class i{constructor(l,f){this._platform=f,this._document=l}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const l="cdk-overlay-container";if(this._platform.isBrowser||(0,re.Oy)()){const S=this._document.querySelectorAll(`.${l}[platform="server"], .${l}[platform="test"]`);for(let I=0;I<S.length;I++)S[I].remove()}const f=this._document.createElement("div");f.classList.add(l),(0,re.Oy)()?f.setAttribute("platform","test"):this._platform.isBrowser||f.setAttribute("platform","server"),this._document.body.appendChild(f),this._containerElement=f}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(r.K0),t.LFG(re.t4))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class ue{constructor(e,l,f,S,I,q,ve,Me,Fe,Oe=!1){this._portalOutlet=e,this._host=l,this._pane=f,this._config=S,this._ngZone=I,this._keyboardDispatcher=q,this._document=ve,this._location=Me,this._outsideClickDispatcher=Fe,this._animationsDisabled=Oe,this._backdropElement=null,this._backdropClick=new oe.x,this._attachments=new oe.x,this._detachments=new oe.x,this._locationChanges=Z.w0.EMPTY,this._backdropClickHandler=Ne=>this._backdropClick.next(Ne),this._backdropTransitionendHandler=Ne=>{this._disposeBackdrop(Ne.target)},this._keydownEvents=new oe.x,this._outsidePointerEvents=new oe.x,S.scrollStrategy&&(this._scrollStrategy=S.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=S.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 l=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),l}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,D.HM)(this._config.width),e.height=(0,D.HM)(this._config.height),e.minWidth=(0,D.HM)(this._config.minWidth),e.minHeight=(0,D.HM)(this._config.minHeight),e.maxWidth=(0,D.HM)(this._config.maxWidth),e.maxHeight=(0,D.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,l,f){const S=(0,D.Eq)(l||[]).filter(I=>!!I);S.length&&(f?e.classList.add(...S):e.classList.remove(...S))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe((0,U.R)((0,B.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 F="cdk-overlay-connected-position-bounding-box",$=/([A-Za-z%]+)$/;class ae{constructor(e,l,f,S,I){this._viewportRuler=l,this._document=f,this._platform=S,this._overlayContainer=I,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 oe.x,this._resizeSubscription=Z.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(F),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,l=this._overlayRect,f=this._viewportRect,S=this._containerRect,I=[];let q;for(let ve of this._preferredPositions){let Me=this._getOriginPoint(e,S,ve),Fe=this._getOverlayPoint(Me,l,ve),Oe=this._getOverlayFit(Fe,l,f,ve);if(Oe.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ve,Me);this._canFitWithFlexibleDimensions(Oe,Fe,f)?I.push({position:ve,origin:Me,overlayRect:l,boundingBoxRect:this._calculateBoundingBoxRect(Me,ve)}):(!q||q.overlayFit.visibleArea<Oe.visibleArea)&&(q={overlayFit:Oe,overlayPoint:Fe,originPoint:Me,position:ve,overlayRect:l})}if(I.length){let ve=null,Me=-1;for(const Fe of I){const Oe=Fe.boundingBoxRect.width*Fe.boundingBoxRect.height*(Fe.position.weight||1);Oe>Me&&(Me=Oe,ve=Fe)}return this._isPushed=!1,void this._applyPosition(ve.position,ve.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(q.position,q.originPoint);this._applyPosition(q.position,q.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ke(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(F),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 l=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,l)}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,l,f){let S,I;if("center"==f.originX)S=e.left+e.width/2;else{const q=this._isRtl()?e.right:e.left,ve=this._isRtl()?e.left:e.right;S="start"==f.originX?q:ve}return l.left<0&&(S-=l.left),I="center"==f.originY?e.top+e.height/2:"top"==f.originY?e.top:e.bottom,l.top<0&&(I-=l.top),{x:S,y:I}}_getOverlayPoint(e,l,f){let S,I;return S="center"==f.overlayX?-l.width/2:"start"===f.overlayX?this._isRtl()?-l.width:0:this._isRtl()?0:-l.width,I="center"==f.overlayY?-l.height/2:"top"==f.overlayY?0:-l.height,{x:e.x+S,y:e.y+I}}_getOverlayFit(e,l,f,S){const I=Le(l);let{x:q,y:ve}=e,Me=this._getOffset(S,"x"),Fe=this._getOffset(S,"y");Me&&(q+=Me),Fe&&(ve+=Fe);let Ye=0-ve,Ve=ve+I.height-f.height,Ge=this._subtractOverflows(I.width,0-q,q+I.width-f.width),V=this._subtractOverflows(I.height,Ye,Ve),O=Ge*V;return{visibleArea:O,isCompletelyWithinViewport:I.width*I.height===O,fitsInViewportVertically:V===I.height,fitsInViewportHorizontally:Ge==I.width}}_canFitWithFlexibleDimensions(e,l,f){if(this._hasFlexibleDimensions){const S=f.bottom-l.y,I=f.right-l.x,q=ee(this._overlayRef.getConfig().minHeight),ve=ee(this._overlayRef.getConfig().minWidth),Fe=e.fitsInViewportHorizontally||null!=ve&&ve<=I;return(e.fitsInViewportVertically||null!=q&&q<=S)&&Fe}return!1}_pushOverlayOnScreen(e,l,f){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const S=Le(l),I=this._viewportRect,q=Math.max(e.x+S.width-I.width,0),ve=Math.max(e.y+S.height-I.height,0),Me=Math.max(I.top-f.top-e.y,0),Fe=Math.max(I.left-f.left-e.x,0);let Oe=0,Ne=0;return Oe=S.width<=I.width?Fe||-q:e.x<this._viewportMargin?I.left-f.left-e.x:0,Ne=S.height<=I.height?Me||-ve:e.y<this._viewportMargin?I.top-f.top-e.y:0,this._previousPushAmount={x:Oe,y:Ne},{x:e.x+Oe,y:e.y+Ne}}_applyPosition(e,l){if(this._setTransformOrigin(e),this._setOverlayElementStyles(l,e),this._setBoundingBoxStyles(l,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const f=this._getScrollVisibility(),S=new Ce(e,f);this._positionChanges.next(S)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const l=this._boundingBox.querySelectorAll(this._transformOriginSelector);let f,S=e.overlayY;f="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let I=0;I<l.length;I++)l[I].style.transformOrigin=`${f} ${S}`}_calculateBoundingBoxRect(e,l){const f=this._viewportRect,S=this._isRtl();let I,q,ve,Oe,Ne,Ye;if("top"===l.overlayY)q=e.y,I=f.height-q+this._viewportMargin;else if("bottom"===l.overlayY)ve=f.height-e.y+2*this._viewportMargin,I=f.height-ve+this._viewportMargin;else{const Ve=Math.min(f.bottom-e.y+f.top,e.y),Ge=this._lastBoundingBoxSize.height;I=2*Ve,q=e.y-Ve,I>Ge&&!this._isInitialRender&&!this._growAfterOpen&&(q=e.y-Ge/2)}if("end"===l.overlayX&&!S||"start"===l.overlayX&&S)Ye=f.width-e.x+this._viewportMargin,Oe=e.x-this._viewportMargin;else if("start"===l.overlayX&&!S||"end"===l.overlayX&&S)Ne=e.x,Oe=f.right-e.x;else{const Ve=Math.min(f.right-e.x+f.left,e.x),Ge=this._lastBoundingBoxSize.width;Oe=2*Ve,Ne=e.x-Ve,Oe>Ge&&!this._isInitialRender&&!this._growAfterOpen&&(Ne=e.x-Ge/2)}return{top:q,left:Ne,bottom:ve,right:Ye,width:Oe,height:I}}_setBoundingBoxStyles(e,l){const f=this._calculateBoundingBoxRect(e,l);!this._isInitialRender&&!this._growAfterOpen&&(f.height=Math.min(f.height,this._lastBoundingBoxSize.height),f.width=Math.min(f.width,this._lastBoundingBoxSize.width));const S={};if(this._hasExactPosition())S.top=S.left="0",S.bottom=S.right=S.maxHeight=S.maxWidth="",S.width=S.height="100%";else{const I=this._overlayRef.getConfig().maxHeight,q=this._overlayRef.getConfig().maxWidth;S.height=(0,D.HM)(f.height),S.top=(0,D.HM)(f.top),S.bottom=(0,D.HM)(f.bottom),S.width=(0,D.HM)(f.width),S.left=(0,D.HM)(f.left),S.right=(0,D.HM)(f.right),S.alignItems="center"===l.overlayX?"center":"end"===l.overlayX?"flex-end":"flex-start",S.justifyContent="center"===l.overlayY?"center":"bottom"===l.overlayY?"flex-end":"flex-start",I&&(S.maxHeight=(0,D.HM)(I)),q&&(S.maxWidth=(0,D.HM)(q))}this._lastBoundingBoxSize=f,ke(this._boundingBox.style,S)}_resetBoundingBoxStyles(){ke(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ke(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,l){const f={},S=this._hasExactPosition(),I=this._hasFlexibleDimensions,q=this._overlayRef.getConfig();if(S){const Oe=this._viewportRuler.getViewportScrollPosition();ke(f,this._getExactOverlayY(l,e,Oe)),ke(f,this._getExactOverlayX(l,e,Oe))}else f.position="static";let ve="",Me=this._getOffset(l,"x"),Fe=this._getOffset(l,"y");Me&&(ve+=`translateX(${Me}px) `),Fe&&(ve+=`translateY(${Fe}px)`),f.transform=ve.trim(),q.maxHeight&&(S?f.maxHeight=(0,D.HM)(q.maxHeight):I&&(f.maxHeight="")),q.maxWidth&&(S?f.maxWidth=(0,D.HM)(q.maxWidth):I&&(f.maxWidth="")),ke(this._pane.style,f)}_getExactOverlayY(e,l,f){let S={top:"",bottom:""},I=this._getOverlayPoint(l,this._overlayRect,e);return this._isPushed&&(I=this._pushOverlayOnScreen(I,this._overlayRect,f)),"bottom"===e.overlayY?S.bottom=this._document.documentElement.clientHeight-(I.y+this._overlayRect.height)+"px":S.top=(0,D.HM)(I.y),S}_getExactOverlayX(e,l,f){let q,S={left:"",right:""},I=this._getOverlayPoint(l,this._overlayRect,e);return this._isPushed&&(I=this._pushOverlayOnScreen(I,this._overlayRect,f)),q=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===q?S.right=this._document.documentElement.clientWidth-(I.x+this._overlayRect.width)+"px":S.left=(0,D.HM)(I.x),S}_getScrollVisibility(){const e=this._getOriginRect(),l=this._pane.getBoundingClientRect(),f=this._scrollables.map(S=>S.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_(e,f),isOriginOutsideView:ne(e,f),isOverlayClipped:_(l,f),isOverlayOutsideView:ne(l,f)}}_subtractOverflows(e,...l){return l.reduce((f,S)=>f-Math.max(S,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,l=this._document.documentElement.clientHeight,f=this._viewportRuler.getViewportScrollPosition();return{top:f.top+this._viewportMargin,left:f.left+this._viewportMargin,right:f.left+e-this._viewportMargin,bottom:f.top+l-this._viewportMargin,width:e-2*this._viewportMargin,height:l-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,l){return"x"===l?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&(0,D.Eq)(e).forEach(l=>{""!==l&&-1===this._appliedPanelClasses.indexOf(l)&&(this._appliedPanelClasses.push(l),this._pane.classList.add(l))})}_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 l=e.width||0,f=e.height||0;return{top:e.y,bottom:e.y+f,left:e.x,right:e.x+l,height:f,width:l}}}function ke(i,e){for(let l in e)e.hasOwnProperty(l)&&(i[l]=e[l]);return i}function ee(i){if("number"!=typeof i&&null!=i){const[e,l]=i.split($);return l&&"px"!==l?null:parseFloat(e)}return i||null}function Le(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 te="cdk-global-overlay-wrapper";class ce{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const l=e.getConfig();this._overlayRef=e,this._width&&!l.width&&e.updateSize({width:this._width}),this._height&&!l.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(te),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,l=this._overlayRef.hostElement.style,f=this._overlayRef.getConfig(),{width:S,height:I,maxWidth:q,maxHeight:ve}=f,Me=!("100%"!==S&&"100vw"!==S||q&&"100%"!==q&&"100vw"!==q),Fe=!("100%"!==I&&"100vh"!==I||ve&&"100%"!==ve&&"100vh"!==ve),Oe=this._xPosition,Ne=this._xOffset,Ye="rtl"===this._overlayRef.getConfig().direction;let Ve="",Ge="",V="";Me?V="flex-start":"center"===Oe?(V="center",Ye?Ge=Ne:Ve=Ne):Ye?"left"===Oe||"end"===Oe?(V="flex-end",Ve=Ne):("right"===Oe||"start"===Oe)&&(V="flex-start",Ge=Ne):"left"===Oe||"start"===Oe?(V="flex-start",Ve=Ne):("right"===Oe||"end"===Oe)&&(V="flex-end",Ge=Ne),e.position=this._cssPosition,e.marginLeft=Me?"0":Ve,e.marginTop=Fe?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=Me?"0":Ge,l.justifyContent=V,l.alignItems=Fe?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,l=this._overlayRef.hostElement,f=l.style;l.classList.remove(te),f.justifyContent=f.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let Ee=(()=>{class i{constructor(l,f,S,I){this._viewportRuler=l,this._document=f,this._platform=S,this._overlayContainer=I}global(){return new ce}flexibleConnectedTo(l){return new ae(l,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(s.rL),t.LFG(r.K0),t.LFG(re.t4),t.LFG(Y))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Pe=0,Ue=(()=>{class i{constructor(l,f,S,I,q,ve,Me,Fe,Oe,Ne,Ye,Ve){this.scrollStrategies=l,this._overlayContainer=f,this._componentFactoryResolver=S,this._positionBuilder=I,this._keyboardDispatcher=q,this._injector=ve,this._ngZone=Me,this._document=Fe,this._directionality=Oe,this._location=Ne,this._outsideClickDispatcher=Ye,this._animationsModuleType=Ve}create(l){const f=this._createHostElement(),S=this._createPaneElement(f),I=this._createPortalOutlet(S),q=new k(l);return q.direction=q.direction||this._directionality.value,new ue(I,f,S,q,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(l){const f=this._document.createElement("div");return f.id="cdk-overlay-"+Pe++,f.classList.add("cdk-overlay-pane"),l.appendChild(f),f}_createHostElement(){const l=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(l),l}_createPortalOutlet(l){return this._appRef||(this._appRef=this._injector.get(t.z2F)),new ge.u0(l,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(v),t.LFG(Y),t.LFG(t._Vd),t.LFG(Ee),t.LFG(_e),t.LFG(t.zs3),t.LFG(t.R0b),t.LFG(r.K0),t.LFG(T.Is),t.LFG(r.Ye),t.LFG(W),t.LFG(t.QbO,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac}),i})();const je=[{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"}],$e=new t.OlP("cdk-connected-overlay-scroll-strategy");let Xe=(()=>{class i{constructor(l){this.elementRef=l}}return i.\u0275fac=function(l){return new(l||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Je=(()=>{class i{constructor(l,f,S,I,q){this._overlay=l,this._dir=q,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Z.w0.EMPTY,this._attachSubscription=Z.w0.EMPTY,this._detachSubscription=Z.w0.EMPTY,this._positionSubscription=Z.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 ge.UE(f,S),this._scrollStrategyFactory=I,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(l){this._offsetX=l,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(l){this._offsetY=l,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(l){this._hasBackdrop=(0,D.Ig)(l)}get lockPosition(){return this._lockPosition}set lockPosition(l){this._lockPosition=(0,D.Ig)(l)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(l){this._flexibleDimensions=(0,D.Ig)(l)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(l){this._growAfterOpen=(0,D.Ig)(l)}get push(){return this._push}set push(l){this._push=(0,D.Ig)(l)}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(l){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),l.origin&&this.open&&this._position.apply()),l.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=je);const l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=l.detachments().subscribe(()=>this.detach.emit()),l.keydownEvents().subscribe(f=>{this.overlayKeydown.next(f),f.keyCode===K.hY&&!this.disableClose&&!(0,K.Vb)(f)&&(f.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(f=>{this.overlayOutsideClick.next(f)})}_buildConfig(){const l=this._position=this.positionStrategy||this._createPositionStrategy(),f=new k({direction:this._dir,positionStrategy:l,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(f.width=this.width),(this.height||0===this.height)&&(f.height=this.height),(this.minWidth||0===this.minWidth)&&(f.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(f.minHeight=this.minHeight),this.backdropClass&&(f.backdropClass=this.backdropClass),this.panelClass&&(f.panelClass=this.panelClass),f}_updatePositionStrategy(l){const f=this.positions.map(S=>({originX:S.originX,originY:S.originY,overlayX:S.overlayX,overlayY:S.overlayY,offsetX:S.offsetX||this.offsetX,offsetY:S.offsetY||this.offsetY,panelClass:S.panelClass||void 0}));return l.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(f).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const l=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(l),l}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Xe?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(l=>{this.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function R(i,e=!1){return(0,C.e)((l,f)=>{let S=0;l.subscribe((0,L.x)(f,I=>{const q=i(I,S++);(q||e)&&f.next(I),!q&&f.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(l=>{this.positionChange.emit(l),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(l){return new(l||i)(t.Y36(Ue),t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36($e),t.Y36(T.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 Ae={provide:$e,deps:[Ue],useFactory:function qe(i){return()=>i.scrollStrategies.reposition()}};let E=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Ue,Ae],imports:[T.vT,ge.eL,s.Cl,s.Cl]}),i})()},3353:(ze,ye,a)=>{a.d(ye,{Mq:()=>N,Oy:()=>de,ht:()=>Se,i$:()=>C,kV:()=>me,qK:()=>oe,sA:()=>we,t4:()=>D});var s=a(4650),r=a(6895);let t;try{t=typeof Intl<"u"&&Intl.v8BreakIterator}catch{t=!1}let T,D=(()=>{class ne{constructor(M){this._platformId=M,this.isBrowser=this._platformId?(0,r.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 ne.\u0275fac=function(M){return new(M||ne)(s.LFG(s.Lbi))},ne.\u0275prov=s.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();const ge=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function oe(){if(T)return T;if("object"!=typeof document||!document)return T=new Set(ge),T;let ne=document.createElement("input");return T=new Set(ge.filter(_=>(ne.setAttribute("type",_),ne.type===_))),T}let Z,R,K;function C(ne){return function B(){if(null==Z&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Z=!0}))}finally{Z=Z||!1}return Z}()?ne:!!ne.capture}function N(){if(null==R){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return R=!1,R;if("scrollBehavior"in document.documentElement.style)R=!0;else{const ne=Element.prototype.scrollTo;R=!!ne&&!/\{\s*\[native code\]\s*\}/.test(ne.toString())}}return R}function me(ne){if(function Q(){if(null==K){const ne=typeof document<"u"?document.head:null;K=!(!ne||!ne.createShadowRoot&&!ne.attachShadow)}return K}()){const _=ne.getRootNode?ne.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&_ instanceof ShadowRoot)return _}return null}function Se(){let ne=typeof document<"u"&&document?document.activeElement:null;for(;ne&&ne.shadowRoot;){const _=ne.shadowRoot.activeElement;if(_===ne)break;ne=_}return ne}function we(ne){return ne.composedPath?ne.composedPath()[0]:ne.target}function de(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(ze,ye,a)=>{a.d(ye,{C5:()=>B,Pl:()=>Se,UE:()=>C,eL:()=>de,en:()=>R,u0:()=>U});var s=a(4650),r=a(6895);class Z{attach(M){return this._attachedHost=M,M.attach(this)}detach(){let M=this._attachedHost;null!=M&&(this._attachedHost=null,M.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(M){this._attachedHost=M}}class B extends Z{constructor(M,v,k,le){super(),this.component=M,this.viewContainerRef=v,this.injector=k,this.componentFactoryResolver=le}}class C extends Z{constructor(M,v,k,le){super(),this.templateRef=M,this.viewContainerRef=v,this.context=k,this.injector=le}get origin(){return this.templateRef.elementRef}attach(M,v=this.context){return this.context=v,super.attach(M)}detach(){return this.context=void 0,super.detach()}}class L extends Z{constructor(M){super(),this.element=M instanceof s.SBq?M.nativeElement:M}}class R{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(M){return M instanceof B?(this._attachedPortal=M,this.attachComponentPortal(M)):M instanceof C?(this._attachedPortal=M,this.attachTemplatePortal(M)):this.attachDomPortal&&M instanceof L?(this._attachedPortal=M,this.attachDomPortal(M)):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(M){this._disposeFn=M}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class U extends R{constructor(M,v,k,le,xe){super(),this.outletElement=M,this._componentFactoryResolver=v,this._appRef=k,this._defaultInjector=le,this.attachDomPortal=Ce=>{const Te=Ce.element,De=this._document.createComment("dom-portal");Te.parentNode.insertBefore(De,Te),this.outletElement.appendChild(Te),this._attachedPortal=Ce,super.setDisposeFn(()=>{De.parentNode&&De.parentNode.replaceChild(Te,De)})},this._document=xe}attachComponentPortal(M){const k=(M.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(M.component);let le;return M.viewContainerRef?(le=M.viewContainerRef.createComponent(k,M.viewContainerRef.length,M.injector||M.viewContainerRef.injector),this.setDisposeFn(()=>le.destroy())):(le=k.create(M.injector||this._defaultInjector||s.zs3.NULL),this._appRef.attachView(le.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(le.hostView),le.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(le)),this._attachedPortal=M,le}attachTemplatePortal(M){let v=M.viewContainerRef,k=v.createEmbeddedView(M.templateRef,M.context,{injector:M.injector});return k.rootNodes.forEach(le=>this.outletElement.appendChild(le)),k.detectChanges(),this.setDisposeFn(()=>{let le=v.indexOf(k);-1!==le&&v.remove(le)}),this._attachedPortal=M,k}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(M){return M.hostView.rootNodes[0]}}let Se=(()=>{class _ extends R{constructor(v,k,le){super(),this._componentFactoryResolver=v,this._viewContainerRef=k,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=xe=>{const Ce=xe.element,Te=this._document.createComment("dom-portal");xe.setAttachedHost(this),Ce.parentNode.insertBefore(Te,Ce),this._getRootNode().appendChild(Ce),this._attachedPortal=xe,super.setDisposeFn(()=>{Te.parentNode&&Te.parentNode.replaceChild(Ce,Te)})},this._document=le}get portal(){return this._attachedPortal}set portal(v){this.hasAttached()&&!v&&!this._isInitialized||(this.hasAttached()&&super.detach(),v&&super.attach(v),this._attachedPortal=v||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(v){v.setAttachedHost(this);const k=null!=v.viewContainerRef?v.viewContainerRef:this._viewContainerRef,xe=(v.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(v.component),Ce=k.createComponent(xe,k.length,v.injector||k.injector);return k!==this._viewContainerRef&&this._getRootNode().appendChild(Ce.hostView.rootNodes[0]),super.setDisposeFn(()=>Ce.destroy()),this._attachedPortal=v,this._attachedRef=Ce,this.attached.emit(Ce),Ce}attachTemplatePortal(v){v.setAttachedHost(this);const k=this._viewContainerRef.createEmbeddedView(v.templateRef,v.context,{injector:v.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=v,this._attachedRef=k,this.attached.emit(k),k}_getRootNode(){const v=this._viewContainerRef.element.nativeElement;return v.nodeType===v.ELEMENT_NODE?v:v.parentNode}}return _.\u0275fac=function(v){return new(v||_)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(r.K0))},_.\u0275dir=s.lG2({type:_,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),_})(),de=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({}),_})()},7376:(ze,ye,a)=>{a.d(ye,{Cl:()=>De,ZD:()=>Te,mF:()=>de,rL:()=>M});var s=a(1281),r=a(4650),t=a(7579),D=a(9646),re=a(8306),T=a(4968),Z=(a(6406),a(3101),a(3601)),B=a(9300),C=a(3353),L=a(6895),R=a(445);let de=(()=>{class be{constructor(W,Y,ue){this._ngZone=W,this._platform=Y,this._scrolled=new t.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ue}register(W){this.scrollContainers.has(W)||this.scrollContainers.set(W,W.elementScrolled().subscribe(()=>this._scrolled.next(W)))}deregister(W){const Y=this.scrollContainers.get(W);Y&&(Y.unsubscribe(),this.scrollContainers.delete(W))}scrolled(W=20){return this._platform.isBrowser?new re.y(Y=>{this._globalSubscription||this._addGlobalListener();const ue=W>0?this._scrolled.pipe((0,Z.e)(W)).subscribe(Y):this._scrolled.subscribe(Y);return this._scrolledCount++,()=>{ue.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,D.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((W,Y)=>this.deregister(Y)),this._scrolled.complete()}ancestorScrolled(W,Y){const ue=this.getAncestorScrollContainers(W);return this.scrolled(Y).pipe((0,B.h)(F=>!F||ue.indexOf(F)>-1))}getAncestorScrollContainers(W){const Y=[];return this.scrollContainers.forEach((ue,F)=>{this._scrollableContainsElement(F,W)&&Y.push(F)}),Y}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(W,Y){let ue=(0,s.fI)(Y),F=W.getElementRef().nativeElement;do{if(ue==F)return!0}while(ue=ue.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const W=this._getWindow();return(0,T.R)(W.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return be.\u0275fac=function(W){return new(W||be)(r.LFG(r.R0b),r.LFG(C.t4),r.LFG(L.K0,8))},be.\u0275prov=r.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),M=(()=>{class be{constructor(W,Y,ue){this._platform=W,this._change=new t.x,this._changeListener=F=>{this._change.next(F)},this._document=ue,Y.runOutsideAngular(()=>{if(W.isBrowser){const F=this._getWindow();F.addEventListener("resize",this._changeListener),F.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const W=this._getWindow();W.removeEventListener("resize",this._changeListener),W.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const W={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),W}getViewportRect(){const W=this.getViewportScrollPosition(),{width:Y,height:ue}=this.getViewportSize();return{top:W.top,left:W.left,bottom:W.top+ue,right:W.left+Y,height:ue,width:Y}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const W=this._document,Y=this._getWindow(),ue=W.documentElement,F=ue.getBoundingClientRect();return{top:-F.top||W.body.scrollTop||Y.scrollY||ue.scrollTop||0,left:-F.left||W.body.scrollLeft||Y.scrollX||ue.scrollLeft||0}}change(W=20){return W>0?this._change.pipe((0,Z.e)(W)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const W=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:W.innerWidth,height:W.innerHeight}:{width:0,height:0}}}return be.\u0275fac=function(W){return new(W||be)(r.LFG(C.t4),r.LFG(r.R0b),r.LFG(L.K0,8))},be.\u0275prov=r.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),Te=(()=>{class be{}return be.\u0275fac=function(W){return new(W||be)},be.\u0275mod=r.oAB({type:be}),be.\u0275inj=r.cJS({}),be})(),De=(()=>{class be{}return be.\u0275fac=function(W){return new(W||be)},be.\u0275mod=r.oAB({type:be}),be.\u0275inj=r.cJS({imports:[R.vT,Te,R.vT,Te]}),be})()},4859:(ze,ye,a)=>{a.d(ye,{lW:()=>B,ot:()=>L});var s=a(4650),r=a(3238),t=a(2687);const D=["mat-button",""],re=["*"],oe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Z=(0,r.pj)((0,r.Id)((0,r.Kr)(class{constructor(R){this._elementRef=R}})));let B=(()=>{class R extends Z{constructor(U,K,Q){super(U),this._focusMonitor=K,this._animationMode=Q,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const me of oe)this._hasHostAttributes(me)&&this._getHostElement().classList.add(me);U.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(U,K){U?this._focusMonitor.focusVia(this._getHostElement(),U,K):this._getHostElement().focus(K)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...U){return U.some(K=>this._getHostElement().hasAttribute(K))}}return R.\u0275fac=function(U){return new(U||R)(s.Y36(s.SBq),s.Y36(t.tE),s.Y36(s.QbO,8))},R.\u0275cmp=s.Xpm({type:R,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(U,K){if(1&U&&s.Gf(r.wG,5),2&U){let Q;s.iGM(Q=s.CRH())&&(K.ripple=Q.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(U,K){2&U&&(s.uIk("disabled",K.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-button-disabled",K.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:D,ngContentSelectors:re,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(U,K){1&U&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1)(3,"span",2)),2&U&&(s.xp6(2),s.ekj("mat-button-ripple-round",K.isRoundButton||K.isIconButton),s.Q6J("matRippleDisabled",K._isRippleDisabled())("matRippleCentered",K.isIconButton)("matRippleTrigger",K._getHostElement()))},dependencies:[r.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}),R})(),L=(()=>{class R{}return R.\u0275fac=function(U){return new(U||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({imports:[r.si,r.BQ,r.BQ]}),R})()},6709:(ze,ye,a)=>{a.d(ye,{oG:()=>me,p9:()=>ne});var s=a(2687),r=a(1281),t=a(4650),D=a(4006),re=a(3238),T=a(9643);const ge=["input"],oe=function(_){return{enterDuration:_}},Z=["*"],B=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:C});function C(){return{color:"accent",clickAction:"check-indeterminate"}}let L=0;const R=C(),N={provide:D.JU,useExisting:(0,t.Gpc)(()=>me),multi:!0};class U{}const K=(0,re.sb)((0,re.pj)((0,re.Kr)((0,re.Id)(class{constructor(_){this._elementRef=_}}))));let Q=(()=>{class _ extends K{constructor(v,k,le,xe,Ce,Te,De){super(k),this._changeDetectorRef=le,this._ngZone=xe,this._animationMode=Te,this._options=De,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||R,this.color=this.defaultColor=this._options.color||R.color,this.tabIndex=parseInt(Ce)||0,this.id=this._uniqueId=`${v}${++L}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(v){this._required=(0,r.Ig)(v)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(v){const k=(0,r.Ig)(v);k!=this.checked&&(this._checked=k,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(v){const k=(0,r.Ig)(v);k!==this.disabled&&(this._disabled=k,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(v){const k=v!=this._indeterminate;this._indeterminate=(0,r.Ig)(v),k&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(v){this.checked=!!v}registerOnChange(v){this._controlValueAccessorChangeFn=v}registerOnTouched(v){this._onTouched=v}setDisabledState(v){this.disabled=v}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(v){let k=this._currentCheckState,le=this._getAnimationTargetElement();if(k!==v&&le&&(this._currentAnimationClass.length>0&&le.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(k,v),this._currentCheckState=v,this._currentAnimationClass.length>0)){le.classList.add(this._currentAnimationClass);const xe=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{le.classList.remove(xe)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const v=this._options?.clickAction;this.disabled||"noop"===v?!this.disabled&&"noop"===v&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==v&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(v){v.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(v,k){if("NoopAnimations"===this._animationMode)return"";switch(v){case 0:if(1===k)return this._animationClasses.uncheckedToChecked;if(3==k)return this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===k?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===k?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===k?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(v){const k=this._inputElement;k&&(k.nativeElement.indeterminate=v)}}return _.\u0275fac=function(v){t.$Z()},_.\u0275dir=t.lG2({type:_,viewQuery:function(v,k){if(1&v&&(t.Gf(ge,5),t.Gf(re.wG,5)),2&v){let le;t.iGM(le=t.CRH())&&(k._inputElement=le.first),t.iGM(le=t.CRH())&&(k.ripple=le.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]}),_})(),me=(()=>{class _ extends Q{constructor(v,k,le,xe,Ce,Te,De){super("mat-checkbox-",v,k,xe,Ce,Te,De),this._focusMonitor=le,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(v){const k=new U;return k.source=this,k.checked=v,k}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{v||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(v){v.stopPropagation(),super._handleInputClick()}focus(v,k){v?this._focusMonitor.focusVia(this._inputElement,v,k):this._inputElement.nativeElement.focus(k)}}return _.\u0275fac=function(v){return new(v||_)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(s.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(B,8))},_.\u0275cmp=t.Xpm({type:_,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(v,k){2&v&&(t.Ikx("id",k.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",k.indeterminate)("mat-checkbox-checked",k.checked)("mat-checkbox-disabled",k.disabled)("mat-checkbox-label-before","before"==k.labelPosition)("_mat-animation-noopable","NoopAnimations"===k._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([N]),t.qOj],ngContentSelectors:Z,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(v,k){if(1&v&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(xe){return k._onInteractionEvent(xe)})("click",function(xe){return k._onInputClick(xe)}),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 k._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&v){const le=t.MAs(1),xe=t.MAs(13);t.uIk("for",k.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!xe.textContent||!xe.textContent.trim()),t.xp6(1),t.Q6J("id",k.inputId)("required",k.required)("checked",k.checked)("disabled",k.disabled)("tabIndex",k.tabIndex),t.uIk("value",k.value)("name",k.name)("aria-label",k.ariaLabel||null)("aria-labelledby",k.ariaLabelledby)("aria-checked",k._getAriaChecked())("aria-describedby",k.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",le)("matRippleDisabled",k._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,oe,"NoopAnimations"===k._animationMode?0:150))}},dependencies:[re.wG,T.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}),_})(),de=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({}),_})(),ne=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[re.si,re.BQ,T.Q8,de,re.BQ,de]}),_})()},3238:(ze,ye,a)=>{a.d(ye,{_A:()=>_e,rD:()=>Le,sG:()=>W,Ad:()=>De,K7:()=>q,HF:()=>l,Y2:()=>Ae,BQ:()=>de,XK:()=>ke,ey:()=>Ne,Ng:()=>Ge,wG:()=>E,si:()=>u,IR:()=>Je,CB:()=>Ye,jH:()=>Ve,pj:()=>k,Kr:()=>le,Id:()=>v,FD:()=>Ce,dB:()=>Te,sb:()=>xe});var s=a(4650),r=a(2687),t=a(445),re=a(6895),T=a(3353),ge=a(1281),oe=a(8306),Z=a(7579),B=a(9521);function R(V,O){if(1&V&&s._UZ(0,"mat-pseudo-checkbox",4),2&V){const y=s.oxw();s.Q6J("state",y.selected?"checked":"unchecked")("disabled",y.disabled)}}function N(V,O){if(1&V&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&V){const y=s.oxw();s.xp6(1),s.hij("(",y.group.label,")")}}const U=["*"],we=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function Se(){return!0}});let de=(()=>{class V{constructor(y,G,x){this._sanityChecks=G,this._document=x,this._hasDoneGlobalChecks=!1,y._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(y){return!(0,T.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[y])}}return V.\u0275fac=function(y){return new(y||V)(s.LFG(r.qm),s.LFG(we,8),s.LFG(re.K0))},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({imports:[t.vT,t.vT]}),V})();function v(V){return class extends V{constructor(...O){super(...O),this._disabled=!1}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,ge.Ig)(O)}}}function k(V,O){return class extends V{constructor(...y){super(...y),this.defaultColor=O,this.color=O}get color(){return this._color}set color(y){const G=y||this.defaultColor;G!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),G&&this._elementRef.nativeElement.classList.add(`mat-${G}`),this._color=G)}}}function le(V){return class extends V{constructor(...O){super(...O),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(O){this._disableRipple=(0,ge.Ig)(O)}}}function xe(V,O=0){return class extends V{constructor(...y){super(...y),this._tabIndex=O,this.defaultTabIndex=O}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(y){this._tabIndex=null!=y?(0,ge.su)(y):this.defaultTabIndex}}}function Ce(V){return class extends V{constructor(...O){super(...O),this.errorState=!1}updateErrorState(){const O=this.errorState,p=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);p!==O&&(this.errorState=p,this.stateChanges.next())}}}function Te(V){return class extends V{constructor(...O){super(...O),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new oe.y(y=>{this._isInitialized?this._notifySubscriber(y):this._pendingSubscribers.push(y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(O){O.next(),O.complete()}}}const De=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function be(){return(0,s.f3M)(s.soG)}});class _e{constructor(){this._localeChanges=new Z.x,this.localeChanges=this._localeChanges}getValidDateOrNull(O){return this.isDateInstance(O)&&this.isValid(O)?O:null}deserialize(O){return null==O||this.isDateInstance(O)&&this.isValid(O)?O:this.invalid()}setLocale(O){this.locale=O,this._localeChanges.next()}compareDate(O,y){return this.getYear(O)-this.getYear(y)||this.getMonth(O)-this.getMonth(y)||this.getDate(O)-this.getDate(y)}sameDate(O,y){if(O&&y){let G=this.isValid(O),x=this.isValid(y);return G&&x?!this.compareDate(O,y):G==x}return O==y}clampDate(O,y,G){return y&&this.compareDate(O,y)<0?y:G&&this.compareDate(O,G)>0?G:O}}const W=new s.OlP("mat-date-formats"),Y=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ue(V,O){const y=Array(V);for(let G=0;G<V;G++)y[G]=O(G);return y}let F=(()=>{class V extends _e{constructor(y,G){super(),this.useUtcForDisplay=!1,super.setLocale(y)}getYear(y){return y.getFullYear()}getMonth(y){return y.getMonth()}getDate(y){return y.getDate()}getDayOfWeek(y){return y.getDay()}getMonthNames(y){const G=new Intl.DateTimeFormat(this.locale,{month:y,timeZone:"utc"});return ue(12,x=>this._format(G,new Date(2017,x,1)))}getDateNames(){const y=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ue(31,G=>this._format(y,new Date(2017,0,G+1)))}getDayOfWeekNames(y){const G=new Intl.DateTimeFormat(this.locale,{weekday:y,timeZone:"utc"});return ue(7,x=>this._format(G,new Date(2017,0,x+1)))}getYearName(y){const G=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(G,y)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(y){return this.getDate(this._createDateWithOverflow(this.getYear(y),this.getMonth(y)+1,0))}clone(y){return new Date(y.getTime())}createDate(y,G,x){let p=this._createDateWithOverflow(y,G,x);return p.getMonth(),p}today(){return new Date}parse(y){return"number"==typeof y?new Date(y):y?new Date(Date.parse(y)):null}format(y,G){if(!this.isValid(y))throw Error("NativeDateAdapter: Cannot format invalid date.");const x=new Intl.DateTimeFormat(this.locale,{...G,timeZone:"utc"});return this._format(x,y)}addCalendarYears(y,G){return this.addCalendarMonths(y,12*G)}addCalendarMonths(y,G){let x=this._createDateWithOverflow(this.getYear(y),this.getMonth(y)+G,this.getDate(y));return this.getMonth(x)!=((this.getMonth(y)+G)%12+12)%12&&(x=this._createDateWithOverflow(this.getYear(x),this.getMonth(x),0)),x}addCalendarDays(y,G){return this._createDateWithOverflow(this.getYear(y),this.getMonth(y),this.getDate(y)+G)}toIso8601(y){return[y.getUTCFullYear(),this._2digit(y.getUTCMonth()+1),this._2digit(y.getUTCDate())].join("-")}deserialize(y){if("string"==typeof y){if(!y)return null;if(Y.test(y)){let G=new Date(y);if(this.isValid(G))return G}}return super.deserialize(y)}isDateInstance(y){return y instanceof Date}isValid(y){return!isNaN(y.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(y,G,x){const p=new Date;return p.setFullYear(y,G,x),p.setHours(0,0,0,0),p}_2digit(y){return("00"+y).slice(-2)}_format(y,G){const x=new Date;return x.setUTCFullYear(G.getFullYear(),G.getMonth(),G.getDate()),x.setUTCHours(G.getHours(),G.getMinutes(),G.getSeconds(),G.getMilliseconds()),y.format(x)}}return V.\u0275fac=function(y){return new(y||V)(s.LFG(De,8),s.LFG(T.t4))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac}),V})();const $={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 ae=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({providers:[{provide:_e,useClass:F}]}),V})(),ke=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({providers:[{provide:W,useValue:$}],imports:[ae]}),V})(),Le=(()=>{class V{isErrorState(y,G){return!!(y&&y.invalid&&(y.touched||G&&G.submitted))}}return V.\u0275fac=function(y){return new(y||V)},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();class Ee{constructor(O,y,G,x=!1){this._renderer=O,this.element=y,this.config=G,this._animationForciblyDisabledThroughCss=x,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Pe={enterDuration:225,exitDuration:150},je=(0,T.i$)({passive:!0}),$e=["mousedown","touchstart"],Xe=["mouseup","mouseleave","touchend","touchcancel"];class Je{constructor(O,y,G,x){this._target=O,this._ngZone=y,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,x.isBrowser&&(this._containerElement=(0,ge.fI)(G))}fadeInRipple(O,y,G={}){const x=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),p={...Pe,...G.animation};G.centered&&(O=x.left+x.width/2,y=x.top+x.height/2);const b=G.radius||function qe(V,O,y){const G=Math.max(Math.abs(V-y.left),Math.abs(V-y.right)),x=Math.max(Math.abs(O-y.top),Math.abs(O-y.bottom));return Math.sqrt(G*G+x*x)}(O,y,x),A=O-x.left,z=y-x.top,fe=p.enterDuration,Ie=document.createElement("div");Ie.classList.add("mat-ripple-element"),Ie.style.left=A-b+"px",Ie.style.top=z-b+"px",Ie.style.height=2*b+"px",Ie.style.width=2*b+"px",null!=G.color&&(Ie.style.backgroundColor=G.color),Ie.style.transitionDuration=`${fe}ms`,this._containerElement.appendChild(Ie);const Ze=window.getComputedStyle(Ie),pe=Ze.transitionDuration,w="none"===Ze.transitionProperty||"0s"===pe||"0s, 0s"===pe,se=new Ee(this,Ie,G,w);Ie.style.transform="scale3d(1, 1, 1)",se.state=0,G.persistent||(this._mostRecentTransientRipple=se);let Re=null;return!w&&(fe||p.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Be=()=>this._finishRippleTransition(se),Ke=()=>this._destroyRipple(se);Ie.addEventListener("transitionend",Be),Ie.addEventListener("transitioncancel",Ke),Re={onTransitionEnd:Be,onTransitionCancel:Ke}}),this._activeRipples.set(se,Re),(w||!fe)&&this._finishRippleTransition(se),se}fadeOutRipple(O){if(2===O.state||3===O.state)return;const y=O.element,G={...Pe,...O.config.animation};y.style.transitionDuration=`${G.exitDuration}ms`,y.style.opacity="0",O.state=2,(O._animationForciblyDisabledThroughCss||!G.exitDuration)&&this._finishRippleTransition(O)}fadeOutAll(){this._getActiveRipples().forEach(O=>O.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(O=>{O.config.persistent||O.fadeOut()})}setupTriggerEvents(O){const y=(0,ge.fI)(O);!y||y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=y,this._registerEvents($e))}handleEvent(O){"mousedown"===O.type?this._onMousedown(O):"touchstart"===O.type?this._onTouchStart(O):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Xe),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(O){0===O.state?this._startFadeOutTransition(O):2===O.state&&this._destroyRipple(O)}_startFadeOutTransition(O){const y=O===this._mostRecentTransientRipple,{persistent:G}=O.config;O.state=1,!G&&(!y||!this._isPointerDown)&&O.fadeOut()}_destroyRipple(O){const y=this._activeRipples.get(O)??null;this._activeRipples.delete(O),this._activeRipples.size||(this._containerRect=null),O===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),O.state=3,null!==y&&(O.element.removeEventListener("transitionend",y.onTransitionEnd),O.element.removeEventListener("transitioncancel",y.onTransitionCancel)),O.element.remove()}_onMousedown(O){const y=(0,r.X6)(O),G=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!y&&!G&&(this._isPointerDown=!0,this.fadeInRipple(O.clientX,O.clientY,this._target.rippleConfig))}_onTouchStart(O){if(!this._target.rippleDisabled&&!(0,r.yG)(O)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const y=O.changedTouches;for(let G=0;G<y.length;G++)this.fadeInRipple(y[G].clientX,y[G].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(O=>{!O.config.persistent&&(1===O.state||O.config.terminateOnPointerUp&&0===O.state)&&O.fadeOut()}))}_registerEvents(O){this._ngZone.runOutsideAngular(()=>{O.forEach(y=>{this._triggerElement.addEventListener(y,this,je)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&($e.forEach(O=>{this._triggerElement.removeEventListener(O,this,je)}),this._pointerUpEventsRegistered&&Xe.forEach(O=>{this._triggerElement.removeEventListener(O,this,je)}))}}const Ae=new s.OlP("mat-ripple-global-options");let E=(()=>{class V{constructor(y,G,x,p,b){this._elementRef=y,this._animationMode=b,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=p||{},this._rippleRenderer=new Je(this,G,y,x)}get disabled(){return this._disabled}set disabled(y){y&&this.fadeOutAllNonPersistent(),this._disabled=y,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(y){this._trigger=y,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(y,G=0,x){return"number"==typeof y?this._rippleRenderer.fadeInRipple(y,G,{...this.rippleConfig,...x}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...y})}}return V.\u0275fac=function(y){return new(y||V)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(T.t4),s.Y36(Ae,8),s.Y36(s.QbO,8))},V.\u0275dir=s.lG2({type:V,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(y,G){2&y&&s.ekj("mat-ripple-unbounded",G.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"]}),V})(),u=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({imports:[de,de]}),V})(),i=(()=>{class V{constructor(y){this._animationMode=y,this.state="unchecked",this.disabled=!1}}return V.\u0275fac=function(y){return new(y||V)(s.Y36(s.QbO,8))},V.\u0275cmp=s.Xpm({type:V,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(y,G){2&y&&s.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===G.state)("mat-pseudo-checkbox-checked","checked"===G.state)("mat-pseudo-checkbox-disabled",G.disabled)("_mat-animation-noopable","NoopAnimations"===G._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(y,G){},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}),V})(),e=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({imports:[de]}),V})();const l=new s.OlP("MAT_OPTION_PARENT_COMPONENT"),q=new s.OlP("MatOptgroup");let Me=0;class Fe{constructor(O,y=!1){this.source=O,this.isUserInput=y}}let Oe=(()=>{class V{constructor(y,G,x,p){this._element=y,this._changeDetectorRef=G,this._parent=x,this.group=p,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Me++,this.onSelectionChange=new s.vpe,this._stateChanges=new Z.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(y){this._disabled=(0,ge.Ig)(y)}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(y,G){const x=this._getHostElement();"function"==typeof x.focus&&x.focus(G)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(y){(y.keyCode===B.K5||y.keyCode===B.L_)&&!(0,B.Vb)(y)&&(this._selectViaInteraction(),y.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 y=this.viewValue;y!==this._mostRecentViewValue&&(this._mostRecentViewValue=y,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(y=!1){this.onSelectionChange.emit(new Fe(this,y))}}return V.\u0275fac=function(y){s.$Z()},V.\u0275dir=s.lG2({type:V,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),V})(),Ne=(()=>{class V extends Oe{constructor(y,G,x,p){super(y,G,x,p)}}return V.\u0275fac=function(y){return new(y||V)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(l,8),s.Y36(q,8))},V.\u0275cmp=s.Xpm({type:V,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(y,G){1&y&&s.NdJ("click",function(){return G._selectViaInteraction()})("keydown",function(p){return G._handleKeydown(p)}),2&y&&(s.Ikx("id",G.id),s.uIk("tabindex",G._getTabIndex())("aria-selected",G._getAriaSelected())("aria-disabled",G.disabled.toString()),s.ekj("mat-selected",G.selected)("mat-option-multiple",G.multiple)("mat-active",G.active)("mat-option-disabled",G.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:U,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(y,G){1&y&&(s.F$t(),s.YNc(0,R,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,N,2,1,"span",2),s._UZ(4,"div",3)),2&y&&(s.Q6J("ngIf",G.multiple),s.xp6(3),s.Q6J("ngIf",G.group&&G.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",G._getHostElement())("matRippleDisabled",G.disabled||G.disableRipple))},dependencies:[E,re.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}),V})();function Ye(V,O,y){if(y.length){let G=O.toArray(),x=y.toArray(),p=0;for(let b=0;b<V+1;b++)G[b].group&&G[b].group===x[p]&&p++;return p}return 0}function Ve(V,O,y,G){return V<y?V:V+O>y+G?Math.max(0,V-G+O):y}let Ge=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({imports:[u,re.ez,de,e]}),V})()},5412:(ze,ye,a)=>{a.d(ye,{WI:()=>ke,uw:()=>Pe,H8:()=>Je,xY:()=>Xe,Is:()=>Ae,so:()=>$,uh:()=>$e});var s=a(2687),r=a(2561),t=a(3353),D=a(4080),re=a(6895),T=a(4650),ge=a(9521),oe=a(7579),Z=a(9770),B=a(9646),C=a(445),L=a(8675);function R(E,u){}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 K=(()=>{class E extends D.en{constructor(i,e,l,f,S,I,q,ve){super(),this._elementRef=i,this._focusTrapFactory=e,this._config=f,this._interactivityChecker=S,this._ngZone=I,this._overlayRef=q,this._focusMonitor=ve,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Me=>{this._portalOutlet.hasAttached();const Fe=this._portalOutlet.attachDomPortal(Me);return this._contentAttached(),Fe},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=l}_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 l=()=>{i.removeEventListener("blur",l),i.removeEventListener("mousedown",l),i.removeAttribute("tabindex")};i.addEventListener("blur",l),i.addEventListener("mousedown",l)})),i.focus(e)}_focusByCssSelector(i,e){let l=this._elementRef.nativeElement.querySelector(i);l&&this._forceFocus(l,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 l=(0,t.ht)(),f=this._elementRef.nativeElement;(!l||l===this._document.body||l===f||f.contains(l))&&(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 E.\u0275fac=function(i){return new(i||E)(T.Y36(T.SBq),T.Y36(s.qV),T.Y36(re.K0,8),T.Y36(N),T.Y36(s.ic),T.Y36(T.R0b),T.Y36(r.Iu),T.Y36(s.tE))},E.\u0275cmp=T.Xpm({type:E,selectors:[["cdk-dialog-container"]],viewQuery:function(i,e){if(1&i&&T.Gf(D.Pl,7),2&i){let l;T.iGM(l=T.CRH())&&(e._portalOutlet=l.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,e){2&i&&T.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:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&T.YNc(0,R,0,0,"ng-template",0)},dependencies:[D.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),E})();class Q{constructor(u,i){this.overlayRef=u,this.config=i,this.closed=new oe.x,this.disableClose=i.disableClose,this.backdropClick=u.backdropClick(),this.keydownEvents=u.keydownEvents(),this.outsidePointerEvents=u.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(e=>{e.keyCode===ge.hY&&!this.disableClose&&!(0,ge.Vb)(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(u,i){if(this.containerInstance){const e=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this.overlayRef.dispose(),e.next(u),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(u="",i=""){return this.overlayRef.updateSize({width:u,height:i}),this}addPanelClass(u){return this.overlayRef.addPanelClass(u),this}removePanelClass(u){return this.overlayRef.removePanelClass(u),this}}const me=new T.OlP("DialogScrollStrategy"),Se=new T.OlP("DialogData"),we=new T.OlP("DefaultDialogConfig"),ne={provide:me,deps:[r.aV],useFactory:function de(E){return()=>E.scrollStrategies.block()}};let _=0,M=(()=>{class E{constructor(i,e,l,f,S,I){this._overlay=i,this._injector=e,this._defaultOptions=l,this._parentDialog=f,this._overlayContainer=S,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new oe.x,this._afterOpenedAtThisLevel=new oe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,Z.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=I}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-"+_++,e.id&&this.getDialogById(e.id);const f=this._getOverlayConfig(e),S=this._overlay.create(f),I=new Q(S,e),q=this._attachContainer(S,I,e);return I.containerInstance=q,this._attachDialogContent(i,I,q,e),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(I),I.closed.subscribe(()=>this._removeOpenDialog(I,!0)),this.afterOpened.next(I),I}closeAll(){v(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(e=>e.id===i)}ngOnDestroy(){v(this._openDialogsAtThisLevel,i=>{!1===i.config.closeOnDestroy&&this._removeOpenDialog(i,!1)}),v(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){const e=new r.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,l){const f=l.injector??l.viewContainerRef?.injector,S=[{provide:N,useValue:l},{provide:Q,useValue:e},{provide:r.Iu,useValue:i}];let I;l.container?"function"==typeof l.container?I=l.container:(I=l.container.type,S.push(...l.container.providers(l))):I=K;const q=new D.C5(I,l.viewContainerRef,T.zs3.create({parent:f||this._injector,providers:S}),l.componentFactoryResolver);return i.attach(q).instance}_attachDialogContent(i,e,l,f){const S=this._createInjector(f,e,l);if(i instanceof T.Rgc){let I={$implicit:f.data,dialogRef:e};f.templateContext&&(I={...I,..."function"==typeof f.templateContext?f.templateContext():f.templateContext}),l.attachTemplatePortal(new D.UE(i,null,I,S))}else{const I=l.attachComponentPortal(new D.C5(i,f.viewContainerRef,S,f.componentFactoryResolver));e.componentInstance=I.instance}}_createInjector(i,e,l){const f=i&&i.viewContainerRef&&i.viewContainerRef.injector,S=[{provide:Se,useValue:i.data},{provide:Q,useValue:e}];return i.providers&&("function"==typeof i.providers?S.push(...i.providers(e,i,l)):S.push(...i.providers)),i.direction&&(!f||!f.get(C.Is,null,T.XFs.Optional))&&S.push({provide:C.Is,useValue:{value:i.direction,change:(0,B.of)()}}),T.zs3.create({parent:f||this._injector,providers:S})}_removeOpenDialog(i,e){const l=this.openDialogs.indexOf(i);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((f,S)=>{f?S.setAttribute("aria-hidden",f):S.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 l=e.length-1;l>-1;l--){const f=e[l];f!==i&&"SCRIPT"!==f.nodeName&&"STYLE"!==f.nodeName&&!f.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(f,f.getAttribute("aria-hidden")),f.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return E.\u0275fac=function(i){return new(i||E)(T.LFG(r.aV),T.LFG(T.zs3),T.LFG(we,8),T.LFG(E,12),T.LFG(r.Xj),T.LFG(me))},E.\u0275prov=T.Yz7({token:E,factory:E.\u0275fac}),E})();function v(E,u){let i=E.length;for(;i--;)u(E[i])}let k=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=T.oAB({type:E}),E.\u0275inj=T.cJS({providers:[M,ne],imports:[r.U8,D.eL,s.rt,D.eL]}),E})();var le=a(3238),xe=a(6451),Ce=a(9300),Te=a(5698),De=a(7340);function be(E,u){}const _e={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},W={dialogContainer:(0,De.X$)("dialogContainer",[(0,De.SB)("void, exit",(0,De.oB)({opacity:0,transform:"scale(0.7)"})),(0,De.SB)("enter",(0,De.oB)({transform:"none"})),(0,De.eR)("* => enter",(0,De.ru)([(0,De.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,De.oB)({transform:"none",opacity:1})),(0,De.IO)("@*",(0,De.pV)(),{optional:!0})]),_e),(0,De.eR)("* => void, * => exit",(0,De.ru)([(0,De.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,De.oB)({opacity:0})),(0,De.IO)("@*",(0,De.pV)(),{optional:!0})]),_e)])};class Y{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=_e.params.enterAnimationDuration,this.exitAnimationDuration=_e.params.exitAnimationDuration}}let ue=(()=>{class E extends K{constructor(i,e,l,f,S,I,q,ve){super(i,e,l,f,S,I,q,ve),this._animationStateChanged=new T.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})}}return E.\u0275fac=function(i){return new(i||E)(T.Y36(T.SBq),T.Y36(s.qV),T.Y36(re.K0,8),T.Y36(Y),T.Y36(s.ic),T.Y36(T.R0b),T.Y36(r.Iu),T.Y36(s.tE))},E.\u0275cmp=T.Xpm({type:E,selectors:[["ng-component"]],features:[T.qOj],decls:0,vars:0,template:function(i,e){},encapsulation:2}),E})(),F=(()=>{class E extends ue{constructor(i,e,l,f,S,I,q,ve,Me){super(i,e,l,f,S,I,q,Me),this._changeDetectorRef=ve,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||_e.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||_e.params.exitAnimationDuration}}}}return E.\u0275fac=function(i){return new(i||E)(T.Y36(T.SBq),T.Y36(s.qV),T.Y36(re.K0,8),T.Y36(Y),T.Y36(s.ic),T.Y36(T.R0b),T.Y36(r.Iu),T.Y36(T.sBO),T.Y36(s.tE))},E.\u0275cmp=T.Xpm({type:E,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(i,e){1&i&&T.WFA("@dialogContainer.start",function(f){return e._onAnimationStart(f)})("@dialogContainer.done",function(f){return e._onAnimationDone(f)}),2&i&&(T.Ikx("id",e._config.id),T.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),T.d8E("@dialogContainer",e._getAnimationState()))},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&T.YNc(0,be,0,0,"ng-template",0)},dependencies:[D.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:[W.dialogContainer]}}),E})();class ${constructor(u,i,e){this._ref=u,this._containerInstance=e,this._afterOpened=new oe.x,this._beforeClosed=new oe.x,this._state=0,this.disableClose=i.disableClose,this.id=u.id,e._animationStateChanged.pipe((0,Ce.h)(l=>"opened"===l.state),(0,Te.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,Ce.h)(l=>"closed"===l.state),(0,Te.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),u.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,xe.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ce.h)(l=>l.keyCode===ge.hY&&!this.disableClose&&!(0,ge.Vb)(l)))).subscribe(l=>{this.disableClose||(l.preventDefault(),function ae(E,u,i){E._closeInteractionType=u,E.close(i)}(this,"keydown"===l.type?"keyboard":"mouse"))})}close(u){this._result=u,this._containerInstance._animationStateChanged.pipe((0,Ce.h)(i=>"closing"===i.state),(0,Te.q)(1)).subscribe(i=>{this._beforeClosed.next(u),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(u){let i=this._ref.config.positionStrategy;return u&&(u.left||u.right)?u.left?i.left(u.left):i.right(u.right):i.centerHorizontally(),u&&(u.top||u.bottom)?u.top?i.top(u.top):i.bottom(u.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(u="",i=""){return this._ref.updateSize(u,i),this}addPanelClass(u){return this._ref.addPanelClass(u),this}removePanelClass(u){return this._ref.removePanelClass(u),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ke=new T.OlP("MatDialogData"),ee=new T.OlP("mat-dialog-default-options"),Le=new T.OlP("mat-dialog-scroll-strategy"),te={provide:Le,deps:[r.aV],useFactory:function j(E){return()=>E.scrollStrategies.block()}};let ce=0,Ee=(()=>{class E{constructor(i,e,l,f,S,I,q,ve,Me,Fe){this._overlay=i,this._defaultOptions=l,this._parentDialog=f,this._dialogRefConstructor=q,this._dialogContainerType=ve,this._dialogDataToken=Me,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new oe.x,this._afterOpenedAtThisLevel=new oe.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,Z.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=I,this._dialog=e.get(M)}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 l;(e={...this._defaultOptions||new Y,...e}).id=e.id||`${this._idPrefix}${ce++}`,e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();const f=this._dialog.open(i,{...e,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Y,useValue:e},{provide:N,useValue:e}]},templateContext:()=>({dialogRef:l}),providers:(S,I,q)=>(l=new this._dialogRefConstructor(S,e,q),l.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:q},{provide:this._dialogDataToken,useValue:I.data},{provide:this._dialogRefConstructor,useValue:l}])});return l.componentInstance=f.componentInstance,this.openDialogs.push(l),this.afterOpened.next(l),l.afterClosed().subscribe(()=>{const S=this.openDialogs.indexOf(l);S>-1&&(this.openDialogs.splice(S,1),this.openDialogs.length||this._getAfterAllClosed().next())}),l}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 E.\u0275fac=function(i){T.$Z()},E.\u0275prov=T.Yz7({token:E,factory:E.\u0275fac}),E})(),Pe=(()=>{class E extends Ee{constructor(i,e,l,f,S,I,q,ve){super(i,e,f,I,q,S,$,F,ke,ve)}}return E.\u0275fac=function(i){return new(i||E)(T.LFG(r.aV),T.LFG(T.zs3),T.LFG(re.Ye,8),T.LFG(ee,8),T.LFG(Le),T.LFG(E,12),T.LFG(r.Xj),T.LFG(T.QbO,8))},E.\u0275prov=T.Yz7({token:E,factory:E.\u0275fac}),E})(),Ue=0,$e=(()=>{class E{constructor(i,e,l){this._dialogRef=i,this._elementRef=e,this._dialog=l,this.id="mat-dialog-title-"+Ue++}ngOnInit(){this._dialogRef||(this._dialogRef=function qe(E,u){let i=E.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?u.find(e=>e.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const i=this._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=this.id)})}}return E.\u0275fac=function(i){return new(i||E)(T.Y36($,8),T.Y36(T.SBq),T.Y36(Pe))},E.\u0275dir=T.lG2({type:E,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(i,e){2&i&&T.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),E})(),Xe=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=T.lG2({type:E,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),E})(),Je=(()=>{class E{constructor(){this.align="start"}}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=T.lG2({type:E,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(i,e){2&i&&T.ekj("mat-dialog-actions-align-center","center"===e.align)("mat-dialog-actions-align-end","end"===e.align)},inputs:{align:"align"}}),E})(),Ae=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=T.oAB({type:E}),E.\u0275inj=T.cJS({providers:[Pe,te],imports:[k,r.U8,D.eL,le.BQ,le.BQ]}),E})()},9549:(ze,ye,a)=>{a.d(ye,{Eo:()=>Y,G_:()=>Je,KE:()=>qe,R9:()=>Ee,hX:()=>Le,lN:()=>Ae,qo:()=>te});var s=a(9643),r=a(6895),t=a(4650),D=a(3238),re=a(445),T=a(1281),ge=a(7579),oe=a(6451),Z=a(4968),B=a(8675),C=a(2722),L=a(5698),R=a(7340),N=a(3353);const U=["connectionContainer"],K=["inputContainer"],Q=["label"];function me(E,u){1&E&&(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 Se(E,u){if(1&E){const i=t.EpF();t.TgZ(0,"div",19),t.NdJ("cdkObserveContent",function(){t.CHM(i);const l=t.oxw();return t.KtG(l.updateOutlineGap())}),t.Hsn(1,1),t.qZA()}if(2&E){const i=t.oxw();t.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)}}function we(E,u){if(1&E&&(t.ynx(0),t.Hsn(1,2),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.BQk()),2&E){const i=t.oxw(2);t.xp6(3),t.Oqu(i._control.placeholder)}}function de(E,u){1&E&&t.Hsn(0,3,["*ngSwitchCase","true"])}function ne(E,u){1&E&&(t.TgZ(0,"span",23),t._uU(1," *"),t.qZA())}function _(E,u){if(1&E){const i=t.EpF();t.TgZ(0,"label",20,21),t.NdJ("cdkObserveContent",function(){t.CHM(i);const l=t.oxw();return t.KtG(l.updateOutlineGap())}),t.YNc(2,we,4,1,"ng-container",12),t.YNc(3,de,1,0,"ng-content",12),t.YNc(4,ne,2,0,"span",22),t.qZA()}if(2&E){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 M(E,u){1&E&&(t.TgZ(0,"div",24),t.Hsn(1,4),t.qZA())}function v(E,u){if(1&E&&(t.TgZ(0,"div",25),t._UZ(1,"span",26),t.qZA()),2&E){const i=t.oxw();t.xp6(1),t.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function k(E,u){if(1&E&&(t.TgZ(0,"div"),t.Hsn(1,5),t.qZA()),2&E){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState)}}function le(E,u){if(1&E&&(t.TgZ(0,"div",30),t._uU(1),t.qZA()),2&E){const i=t.oxw(2);t.Q6J("id",i._hintLabelId),t.xp6(1),t.Oqu(i.hintLabel)}}function xe(E,u){if(1&E&&(t.TgZ(0,"div",27),t.YNc(1,le,2,2,"div",28),t.Hsn(2,6),t._UZ(3,"div",29),t.Hsn(4,7),t.qZA()),2&E){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",i.hintLabel)}}const Ce=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Te=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],be=new t.OlP("MatError"),W={transitionMessages:(0,R.X$)("transitionMessages",[(0,R.SB)("enter",(0,R.oB)({opacity:1,transform:"translateY(0%)"})),(0,R.eR)("void => enter",[(0,R.oB)({opacity:0,transform:"translateY(-5px)"}),(0,R.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Y=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E}),E})();const ke=new t.OlP("MatHint");let Le=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["mat-label"]]}),E})(),P=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["mat-placeholder"]]}),E})();const j=new t.OlP("MatPrefix");let te=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["","matPrefix",""]],features:[t._Bn([{provide:j,useExisting:E}])]}),E})();const ce=new t.OlP("MatSuffix");let Ee=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["","matSuffix",""]],features:[t._Bn([{provide:ce,useExisting:E}])]}),E})(),Pe=0;const $e=(0,D.pj)(class{constructor(E){this._elementRef=E}},"primary"),Xe=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Je=new t.OlP("MatFormField");let qe=(()=>{class E extends $e{constructor(i,e,l,f,S,I,q){super(i),this._changeDetectorRef=e,this._dir=l,this._defaults=f,this._platform=S,this._ngZone=I,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ge.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Pe++,this._labelId="mat-form-field-label-"+Pe++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==q,this.appearance=f?.appearance||"legacy",f&&(this._hideRequiredMarker=Boolean(f.hideRequiredMarker),f.color&&(this.color=this.defaultColor=f.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,T.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,B.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,C.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,oe.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,B.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,B.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,C.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,Z.R)(this._label.nativeElement,"transitionend").pipe((0,L.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(f=>"start"===f.align):null,l=this._hintChildren?this._hintChildren.find(f=>"end"===f.align):null;e?i.push(e.id):this._hintLabel&&i.push(this._hintLabelId),l&&i.push(l.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,l=".mat-form-field-outline-start",f=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!i||!i.children.length||!i.textContent.trim()){const Me=e.querySelectorAll(`${l}, ${f}`);for(let Fe=0;Fe<Me.length;Fe++)Me[Fe].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let S=0,I=0;const q=e.querySelectorAll(l),ve=e.querySelectorAll(f);if(this._label&&this._label.nativeElement.children.length){const Me=e.getBoundingClientRect();if(0===Me.width&&0===Me.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Fe=this._getStartEnd(Me),Oe=i.children,Ne=this._getStartEnd(Oe[0].getBoundingClientRect());let Ye=0;for(let Ve=0;Ve<Oe.length;Ve++)Ye+=Oe[Ve].offsetWidth;S=Math.abs(Ne-Fe)-5,I=Ye>0?.75*Ye+10:0}for(let Me=0;Me<q.length;Me++)q[Me].style.width=`${S}px`;for(let Me=0;Me<ve.length;Me++)ve[Me].style.width=`${I}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 E.\u0275fac=function(i){return new(i||E)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(re.Is,8),t.Y36(Xe,8),t.Y36(N.t4),t.Y36(t.R0b),t.Y36(t.QbO,8))},E.\u0275cmp=t.Xpm({type:E,selectors:[["mat-form-field"]],contentQueries:function(i,e,l){if(1&i&&(t.Suo(l,Y,5),t.Suo(l,Y,7),t.Suo(l,Le,5),t.Suo(l,Le,7),t.Suo(l,P,5),t.Suo(l,be,5),t.Suo(l,ke,5),t.Suo(l,j,5),t.Suo(l,ce,5)),2&i){let f;t.iGM(f=t.CRH())&&(e._controlNonStatic=f.first),t.iGM(f=t.CRH())&&(e._controlStatic=f.first),t.iGM(f=t.CRH())&&(e._labelChildNonStatic=f.first),t.iGM(f=t.CRH())&&(e._labelChildStatic=f.first),t.iGM(f=t.CRH())&&(e._placeholderChild=f.first),t.iGM(f=t.CRH())&&(e._errorChildren=f),t.iGM(f=t.CRH())&&(e._hintChildren=f),t.iGM(f=t.CRH())&&(e._prefixChildren=f),t.iGM(f=t.CRH())&&(e._suffixChildren=f)}},viewQuery:function(i,e){if(1&i&&(t.Gf(U,7),t.Gf(K,5),t.Gf(Q,5)),2&i){let l;t.iGM(l=t.CRH())&&(e._connectionContainerRef=l.first),t.iGM(l=t.CRH())&&(e._inputContainerRef=l.first),t.iGM(l=t.CRH())&&(e._label=l.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:Je,useExisting:E}]),t.qOj],ngContentSelectors:Te,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(Ce),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("click",function(f){return e._control.onContainerClick&&e._control.onContainerClick(f)}),t.YNc(3,me,9,0,"ng-container",3),t.YNc(4,Se,2,1,"div",4),t.TgZ(5,"div",5,6),t.Hsn(7),t.TgZ(8,"span",7),t.YNc(9,_,5,16,"label",8),t.qZA()(),t.YNc(10,M,2,0,"div",9),t.qZA(),t.YNc(11,v,2,4,"div",10),t.TgZ(12,"div",11),t.YNc(13,k,2,1,"div",12),t.YNc(14,xe,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:[r.O5,r.RF,r.n9,s.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:[W.transitionMessages]},changeDetection:0}),E})(),Ae=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=t.oAB({type:E}),E.\u0275inj=t.cJS({imports:[r.ez,D.BQ,s.Q8,D.BQ]}),E})()},7392:(ze,ye,a)=>{a.d(ye,{Hw:()=>ae,Ps:()=>ke});var s=a(4650),r=a(3238),t=a(1281),D=a(6895),re=a(9646),T=a(2843),ge=a(4128),oe=a(727),Z=a(8505),B=a(4004),C=a(262),L=a(8746),R=a(3099),N=a(5698),U=a(529),K=a(1481);const Q=["*"];let me;function we(ee){return function Se(){if(void 0===me&&(me=null,typeof window<"u")){const ee=window;void 0!==ee.trustedTypes&&(me=ee.trustedTypes.createPolicy("angular#components",{createHTML:Le=>Le}))}return me}()?.createHTML(ee)||ee}function de(ee){return Error(`Unable to find icon with the name "${ee}"`)}function _(ee){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ee}".`)}function M(ee){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ee}".`)}class v{constructor(Le,P,j){this.url=Le,this.svgText=P,this.options=j}}let k=(()=>{class ee{constructor(P,j,te,ce){this._httpClient=P,this._sanitizer=j,this._errorHandler=ce,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons"],this._document=te}addSvgIcon(P,j,te){return this.addSvgIconInNamespace("",P,j,te)}addSvgIconLiteral(P,j,te){return this.addSvgIconLiteralInNamespace("",P,j,te)}addSvgIconInNamespace(P,j,te,ce){return this._addSvgIconConfig(P,j,new v(te,null,ce))}addSvgIconResolver(P){return this._resolvers.push(P),this}addSvgIconLiteralInNamespace(P,j,te,ce){const Ee=this._sanitizer.sanitize(s.q3G.HTML,te);if(!Ee)throw M(te);const Pe=we(Ee);return this._addSvgIconConfig(P,j,new v("",Pe,ce))}addSvgIconSet(P,j){return this.addSvgIconSetInNamespace("",P,j)}addSvgIconSetLiteral(P,j){return this.addSvgIconSetLiteralInNamespace("",P,j)}addSvgIconSetInNamespace(P,j,te){return this._addSvgIconSetConfig(P,new v(j,null,te))}addSvgIconSetLiteralInNamespace(P,j,te){const ce=this._sanitizer.sanitize(s.q3G.HTML,j);if(!ce)throw M(j);const Ee=we(ce);return this._addSvgIconSetConfig(P,new v("",Ee,te))}registerFontClassAlias(P,j=P){return this._fontCssClassesByAlias.set(P,j),this}classNameForFontAlias(P){return this._fontCssClassesByAlias.get(P)||P}setDefaultFontSetClass(...P){return this._defaultFontSetClass=P,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(P){const j=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,P);if(!j)throw _(P);const te=this._cachedIconsByUrl.get(j);return te?(0,re.of)(Ce(te)):this._loadSvgIconFromConfig(new v(P,null)).pipe((0,Z.b)(ce=>this._cachedIconsByUrl.set(j,ce)),(0,B.U)(ce=>Ce(ce)))}getNamedSvgIcon(P,j=""){const te=Te(j,P);let ce=this._svgIconConfigs.get(te);if(ce)return this._getSvgFromConfig(ce);if(ce=this._getIconConfigFromResolvers(j,P),ce)return this._svgIconConfigs.set(te,ce),this._getSvgFromConfig(ce);const Ee=this._iconSetConfigs.get(j);return Ee?this._getSvgFromIconSetConfigs(P,Ee):(0,T._)(de(te))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(P){return P.svgText?(0,re.of)(Ce(this._svgElementFromConfig(P))):this._loadSvgIconFromConfig(P).pipe((0,B.U)(j=>Ce(j)))}_getSvgFromIconSetConfigs(P,j){const te=this._extractIconWithNameFromAnySet(P,j);if(te)return(0,re.of)(te);const ce=j.filter(Ee=>!Ee.svgText).map(Ee=>this._loadSvgIconSetFromConfig(Ee).pipe((0,C.K)(Pe=>{const je=`Loading icon set URL: ${this._sanitizer.sanitize(s.q3G.RESOURCE_URL,Ee.url)} failed: ${Pe.message}`;return this._errorHandler.handleError(new Error(je)),(0,re.of)(null)})));return(0,ge.D)(ce).pipe((0,B.U)(()=>{const Ee=this._extractIconWithNameFromAnySet(P,j);if(!Ee)throw de(P);return Ee}))}_extractIconWithNameFromAnySet(P,j){for(let te=j.length-1;te>=0;te--){const ce=j[te];if(ce.svgText&&ce.svgText.toString().indexOf(P)>-1){const Ee=this._svgElementFromConfig(ce),Pe=this._extractSvgIconFromSet(Ee,P,ce.options);if(Pe)return Pe}}return null}_loadSvgIconFromConfig(P){return this._fetchIcon(P).pipe((0,Z.b)(j=>P.svgText=j),(0,B.U)(()=>this._svgElementFromConfig(P)))}_loadSvgIconSetFromConfig(P){return P.svgText?(0,re.of)(null):this._fetchIcon(P).pipe((0,Z.b)(j=>P.svgText=j))}_extractSvgIconFromSet(P,j,te){const ce=P.querySelector(`[id="${j}"]`);if(!ce)return null;const Ee=ce.cloneNode(!0);if(Ee.removeAttribute("id"),"svg"===Ee.nodeName.toLowerCase())return this._setSvgAttributes(Ee,te);if("symbol"===Ee.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Ee),te);const Pe=this._svgElementFromString(we("<svg></svg>"));return Pe.appendChild(Ee),this._setSvgAttributes(Pe,te)}_svgElementFromString(P){const j=this._document.createElement("DIV");j.innerHTML=P;const te=j.querySelector("svg");if(!te)throw Error("<svg> tag not found");return te}_toSvgElement(P){const j=this._svgElementFromString(we("<svg></svg>")),te=P.attributes;for(let ce=0;ce<te.length;ce++){const{name:Ee,value:Pe}=te[ce];"id"!==Ee&&j.setAttribute(Ee,Pe)}for(let ce=0;ce<P.childNodes.length;ce++)P.childNodes[ce].nodeType===this._document.ELEMENT_NODE&&j.appendChild(P.childNodes[ce].cloneNode(!0));return j}_setSvgAttributes(P,j){return P.setAttribute("fit",""),P.setAttribute("height","100%"),P.setAttribute("width","100%"),P.setAttribute("preserveAspectRatio","xMidYMid meet"),P.setAttribute("focusable","false"),j&&j.viewBox&&P.setAttribute("viewBox",j.viewBox),P}_fetchIcon(P){const{url:j,options:te}=P,ce=te?.withCredentials??!1;if(!this._httpClient)throw function ne(){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==j)throw Error(`Cannot fetch icon from URL "${j}".`);const Ee=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,j);if(!Ee)throw _(j);const Pe=this._inProgressUrlFetches.get(Ee);if(Pe)return Pe;const Ue=this._httpClient.get(Ee,{responseType:"text",withCredentials:ce}).pipe((0,B.U)(je=>we(je)),(0,L.x)(()=>this._inProgressUrlFetches.delete(Ee)),(0,R.B)());return this._inProgressUrlFetches.set(Ee,Ue),Ue}_addSvgIconConfig(P,j,te){return this._svgIconConfigs.set(Te(P,j),te),this}_addSvgIconSetConfig(P,j){const te=this._iconSetConfigs.get(P);return te?te.push(j):this._iconSetConfigs.set(P,[j]),this}_svgElementFromConfig(P){if(!P.svgElement){const j=this._svgElementFromString(P.svgText);this._setSvgAttributes(j,P.options),P.svgElement=j}return P.svgElement}_getIconConfigFromResolvers(P,j){for(let te=0;te<this._resolvers.length;te++){const ce=this._resolvers[te](j,P);if(ce)return De(ce)?new v(ce.url,null,ce.options):new v(ce,null)}}}return ee.\u0275fac=function(P){return new(P||ee)(s.LFG(U.eN,8),s.LFG(K.H7),s.LFG(D.K0,8),s.LFG(s.qLn))},ee.\u0275prov=s.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();function Ce(ee){return ee.cloneNode(!0)}function Te(ee,Le){return ee+":"+Le}function De(ee){return!(!ee.url||!ee.options)}const be=(0,r.pj)(class{constructor(ee){this._elementRef=ee}}),_e=new s.OlP("MAT_ICON_DEFAULT_OPTIONS"),W=new s.OlP("mat-icon-location",{providedIn:"root",factory:function Y(){const ee=(0,s.f3M)(D.K0),Le=ee?ee.location:null;return{getPathname:()=>Le?Le.pathname+Le.search:""}}}),ue=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],F=ue.map(ee=>`[${ee}]`).join(", "),$=/^url\(['"]?#(.*?)['"]?\)$/;let ae=(()=>{class ee extends be{constructor(P,j,te,ce,Ee,Pe){super(P),this._iconRegistry=j,this._location=ce,this._errorHandler=Ee,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=oe.w0.EMPTY,Pe&&(Pe.color&&(this.color=this.defaultColor=Pe.color),Pe.fontSet&&(this.fontSet=Pe.fontSet)),te||P.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(P){this._inline=(0,t.Ig)(P)}get svgIcon(){return this._svgIcon}set svgIcon(P){P!==this._svgIcon&&(P?this._updateSvgIcon(P):this._svgIcon&&this._clearSvgElement(),this._svgIcon=P)}get fontSet(){return this._fontSet}set fontSet(P){const j=this._cleanupFontValue(P);j!==this._fontSet&&(this._fontSet=j,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(P){const j=this._cleanupFontValue(P);j!==this._fontIcon&&(this._fontIcon=j,this._updateFontIconClasses())}_splitIconName(P){if(!P)return["",""];const j=P.split(":");switch(j.length){case 1:return["",j[0]];case 2:return j;default:throw Error(`Invalid icon name: "${P}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const P=this._elementsWithExternalReferences;if(P&&P.size){const j=this._location.getPathname();j!==this._previousPath&&(this._previousPath=j,this._prependPathToReferences(j))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(P){this._clearSvgElement();const j=this._location.getPathname();this._previousPath=j,this._cacheChildrenWithExternalReferences(P),this._prependPathToReferences(j),this._elementRef.nativeElement.appendChild(P)}_clearSvgElement(){const P=this._elementRef.nativeElement;let j=P.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();j--;){const te=P.childNodes[j];(1!==te.nodeType||"svg"===te.nodeName.toLowerCase())&&te.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const P=this._elementRef.nativeElement,j=(this.fontSet?[this._iconRegistry.classNameForFontAlias(this.fontSet)]:this._iconRegistry.getDefaultFontSetClass()).filter(te=>te.length>0);this._previousFontSetClass.forEach(te=>P.classList.remove(te)),j.forEach(te=>P.classList.add(te)),this._previousFontSetClass=j,this.fontIcon!==this._previousFontIconClass&&(this._previousFontIconClass&&P.classList.remove(this._previousFontIconClass),this.fontIcon&&P.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(P){return"string"==typeof P?P.trim().split(" ")[0]:P}_prependPathToReferences(P){const j=this._elementsWithExternalReferences;j&&j.forEach((te,ce)=>{te.forEach(Ee=>{ce.setAttribute(Ee.name,`url('${P}#${Ee.value}')`)})})}_cacheChildrenWithExternalReferences(P){const j=P.querySelectorAll(F),te=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ce=0;ce<j.length;ce++)ue.forEach(Ee=>{const Pe=j[ce],Ue=Pe.getAttribute(Ee),je=Ue?Ue.match($):null;if(je){let $e=te.get(Pe);$e||($e=[],te.set(Pe,$e)),$e.push({name:Ee,value:je[1]})}})}_updateSvgIcon(P){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),P){const[j,te]=this._splitIconName(P);j&&(this._svgNamespace=j),te&&(this._svgName=te),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(te,j).pipe((0,N.q)(1)).subscribe(ce=>this._setSvgElement(ce),ce=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${j}:${te}! ${ce.message}`))})}}}return ee.\u0275fac=function(P){return new(P||ee)(s.Y36(s.SBq),s.Y36(k),s.$8M("aria-hidden"),s.Y36(W),s.Y36(s.qLn),s.Y36(_e,8))},ee.\u0275cmp=s.Xpm({type:ee,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(P,j){2&P&&(s.uIk("data-mat-icon-type",j._usingFontIcon()?"font":"svg")("data-mat-icon-name",j._svgName||j.fontIcon)("data-mat-icon-namespace",j._svgNamespace||j.fontSet),s.ekj("mat-icon-inline",j.inline)("mat-icon-no-color","primary"!==j.color&&"accent"!==j.color&&"warn"!==j.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.qOj],ngContentSelectors:Q,decls:1,vars:0,template:function(P,j){1&P&&(s.F$t(),s.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}),ee})(),ke=(()=>{class ee{}return ee.\u0275fac=function(P){return new(P||ee)},ee.\u0275mod=s.oAB({type:ee}),ee.\u0275inj=s.cJS({imports:[r.BQ,r.BQ]}),ee})()},4144:(ze,ye,a)=>{a.d(ye,{Jk:()=>U,Nt:()=>Se,c:()=>we});var s=a(1281),r=a(3353),t=a(4650),D=a(515),re=a(7579);const T=(0,r.i$)({passive:!0});let ge=(()=>{class de{constructor(_,M){this._platform=_,this._ngZone=M,this._monitoredElements=new Map}monitor(_){if(!this._platform.isBrowser)return D.E;const M=(0,s.fI)(_),v=this._monitoredElements.get(M);if(v)return v.subject;const k=new re.x,le="cdk-text-field-autofilled",xe=Ce=>{"cdk-text-field-autofill-start"!==Ce.animationName||M.classList.contains(le)?"cdk-text-field-autofill-end"===Ce.animationName&&M.classList.contains(le)&&(M.classList.remove(le),this._ngZone.run(()=>k.next({target:Ce.target,isAutofilled:!1}))):(M.classList.add(le),this._ngZone.run(()=>k.next({target:Ce.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{M.addEventListener("animationstart",xe,T),M.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(M,{subject:k,unlisten:()=>{M.removeEventListener("animationstart",xe,T)}}),k}stopMonitoring(_){const M=(0,s.fI)(_),v=this._monitoredElements.get(M);v&&(v.unlisten(),v.subject.complete(),M.classList.remove("cdk-text-field-autofill-monitored"),M.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(M))}ngOnDestroy(){this._monitoredElements.forEach((_,M)=>this.stopMonitoring(M))}}return de.\u0275fac=function(_){return new(_||de)(t.LFG(r.t4),t.LFG(t.R0b))},de.\u0275prov=t.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),B=(()=>{class de{}return de.\u0275fac=function(_){return new(_||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({}),de})();var C=a(4006),L=a(3238),R=a(9549);const U=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),K=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Q=0;const me=(0,L.FD)(class{constructor(de,ne,_,M){this._defaultErrorStateMatcher=de,this._parentForm=ne,this._parentFormGroup=_,this.ngControl=M,this.stateChanges=new re.x}});let Se=(()=>{class de extends me{constructor(_,M,v,k,le,xe,Ce,Te,De,be){super(xe,k,le,v),this._elementRef=_,this._platform=M,this._autofillMonitor=Te,this._formField=be,this._uid="mat-input-"+Q++,this.focused=!1,this.stateChanges=new re.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(Y=>(0,r.qK)().has(Y)),this._iOSKeyupListener=Y=>{const ue=Y.target;!ue.value&&0===ue.selectionStart&&0===ue.selectionEnd&&(ue.setSelectionRange(1,1),ue.setSelectionRange(0,0))};const _e=this._elementRef.nativeElement,W=_e.nodeName.toLowerCase();this._inputValueAccessor=Ce||_e,this._previousNativeValue=this.value,this.id=this.id,M.IOS&&De.runOutsideAngular(()=>{_.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===W,this._isTextarea="textarea"===W,this._isInFormField=!!be,this._isNativeSelect&&(this.controlType=_e.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(_){this._disabled=(0,s.Ig)(_),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(_){this._id=_||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(C.kI.required)??!1}set required(_){this._required=(0,s.Ig)(_)}get type(){return this._type}set type(_){this._type=_||"text",this._validateType(),!this._isTextarea&&(0,r.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(_){_!==this.value&&(this._inputValueAccessor.value=_,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(_){this._readonly=(0,s.Ig)(_)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(_=>{this.autofilled=_.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(_){this._elementRef.nativeElement.focus(_)}_focusChanged(_){_!==this.focused&&(this.focused=_,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const _=this._formField,M=_&&"legacy"===_.appearance&&!_._hasLabel?.()?null:this.placeholder;if(M!==this._previousPlaceholder){const v=this._elementRef.nativeElement;this._previousPlaceholder=M,M?v.setAttribute("placeholder",M):v.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const _=this._elementRef.nativeElement.value;this._previousNativeValue!==_&&(this._previousNativeValue=_,this.stateChanges.next())}_validateType(){K.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let _=this._elementRef.nativeElement.validity;return _&&_.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const _=this._elementRef.nativeElement,M=_.options[0];return this.focused||_.multiple||!this.empty||!!(_.selectedIndex>-1&&M&&M.label)}return this.focused||!this.empty}setDescribedByIds(_){_.length?this._elementRef.nativeElement.setAttribute("aria-describedby",_.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const _=this._elementRef.nativeElement;return this._isNativeSelect&&(_.multiple||_.size>1)}}return de.\u0275fac=function(_){return new(_||de)(t.Y36(t.SBq),t.Y36(r.t4),t.Y36(C.a5,10),t.Y36(C.F,8),t.Y36(C.sg,8),t.Y36(L.rD),t.Y36(U,10),t.Y36(ge),t.Y36(t.R0b),t.Y36(R.G_,8))},de.\u0275dir=t.lG2({type:de,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){1&_&&t.NdJ("focus",function(){return M._focusChanged(!0)})("blur",function(){return M._focusChanged(!1)})("input",function(){return M._onInput()}),2&_&&(t.Ikx("disabled",M.disabled)("required",M.required),t.uIk("id",M.id)("data-placeholder",M.placeholder)("name",M.name||null)("readonly",M.readonly&&!M._isNativeSelect||null)("aria-invalid",M.empty&&M.required?null:M.errorState)("aria-required",M.required),t.ekj("mat-input-server",M._isServer)("mat-native-select-inline",M._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:R.Eo,useExisting:de}]),t.qOj,t.TTD]}),de})(),we=(()=>{class de{}return de.\u0275fac=function(_){return new(_||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({providers:[L.rD],imports:[B,R.lN,L.BQ,B,R.lN]}),de})()},1948:(ze,ye,a)=>{a.d(ye,{Fk:()=>ne,U0:()=>de,VQ:()=>Q});var s=a(4650),r=a(3238),t=a(2687),D=a(1281),re=a(5017),T=a(4006);const ge=["input"],oe=function(_){return{enterDuration:_}},Z=["*"],B=new s.OlP("mat-radio-default-options",{providedIn:"root",factory:function C(){return{color:"accent"}}});let L=0;const R={provide:T.JU,useExisting:(0,s.Gpc)(()=>Q),multi:!0};class N{constructor(M,v){this.source=M,this.value=v}}const U=new s.OlP("MatRadioGroup");let K=(()=>{class _{constructor(v){this._changeDetector=v,this._value=null,this._name="mat-radio-group-"+L++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.vpe}get name(){return this._name}set name(v){this._name=v,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(v){this._labelPosition="before"===v?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(v){this._value!==v&&(this._value=v,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(v){this._selected=v,this.value=v?v.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(v){this._disabled=(0,D.Ig)(v),this._markRadiosForCheck()}get required(){return this._required}set required(v){this._required=(0,D.Ig)(v),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(v=>{v.name=this.name,v._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(k=>{k.checked=this.value===k.value,k.checked&&(this._selected=k)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new N(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(v=>v._markForCheck())}writeValue(v){this.value=v,this._changeDetector.markForCheck()}registerOnChange(v){this._controlValueAccessorChangeFn=v}registerOnTouched(v){this.onTouched=v}setDisabledState(v){this.disabled=v,this._changeDetector.markForCheck()}}return _.\u0275fac=function(v){return new(v||_)(s.Y36(s.sBO))},_.\u0275dir=s.lG2({type:_,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),_})(),Q=(()=>{class _ extends K{}return _.\u0275fac=function(){let M;return function(k){return(M||(M=s.n5z(_)))(k||_)}}(),_.\u0275dir=s.lG2({type:_,selectors:[["mat-radio-group"]],contentQueries:function(v,k,le){if(1&v&&s.Suo(le,de,5),2&v){let xe;s.iGM(xe=s.CRH())&&(k._radios=xe)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[s._Bn([R,{provide:U,useExisting:_}]),s.qOj]}),_})();class me{constructor(M){this._elementRef=M}}const Se=(0,r.Kr)((0,r.sb)(me));let we=(()=>{class _ extends Se{constructor(v,k,le,xe,Ce,Te,De,be){super(k),this._changeDetector=le,this._focusMonitor=xe,this._radioDispatcher=Ce,this._providerOverride=De,this._uniqueId="mat-radio-"+ ++L,this.id=this._uniqueId,this.change=new s.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=v,this._noopAnimations="NoopAnimations"===Te,be&&(this.tabIndex=(0,D.su)(be,0)),this._removeUniqueSelectionListener=Ce.listen((_e,W)=>{_e!==this.id&&W===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(v){const k=(0,D.Ig)(v);this._checked!==k&&(this._checked=k,k&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!k&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),k&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(v){this._value!==v&&(this._value=v,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===v),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(v){this._labelPosition=v}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(v){this._setDisabled((0,D.Ig)(v))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(v){this._required=(0,D.Ig)(v)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(v){this._color=v}get inputId(){return`${this.id||this._uniqueId}-input`}focus(v,k){k?this._focusMonitor.focusVia(this._inputElement,k,v):this._inputElement.nativeElement.focus(v)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{!v&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new N(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(v){v.stopPropagation()}_onInputInteraction(v){if(v.stopPropagation(),!this.checked&&!this.disabled){const k=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),k&&this.radioGroup._emitChangeEvent())}}_setDisabled(v){this._disabled!==v&&(this._disabled=v,this._changeDetector.markForCheck())}_updateTabIndex(){const v=this.radioGroup;let k;if(k=v&&v.selected&&!this.disabled?v.selected===this?this.tabIndex:-1:this.tabIndex,k!==this._previousTabIndex){const le=this._inputElement?.nativeElement;le&&(le.setAttribute("tabindex",k+""),this._previousTabIndex=k)}}}return _.\u0275fac=function(v){s.$Z()},_.\u0275dir=s.lG2({type:_,viewQuery:function(v,k){if(1&v&&s.Gf(ge,5),2&v){let le;s.iGM(le=s.CRH())&&(k._inputElement=le.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:[s.qOj]}),_})(),de=(()=>{class _ extends we{constructor(v,k,le,xe,Ce,Te,De,be){super(v,k,le,xe,Ce,Te,De,be)}}return _.\u0275fac=function(v){return new(v||_)(s.Y36(U,8),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(t.tE),s.Y36(re.A8),s.Y36(s.QbO,8),s.Y36(B,8),s.$8M("tabindex"))},_.\u0275cmp=s.Xpm({type:_,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(v,k){1&v&&s.NdJ("focus",function(){return k._inputElement.nativeElement.focus()}),2&v&&(s.uIk("tabindex",null)("id",k.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.ekj("mat-radio-checked",k.checked)("mat-radio-disabled",k.disabled)("_mat-animation-noopable",k._noopAnimations)("mat-primary","primary"===k.color)("mat-accent","accent"===k.color)("mat-warn","warn"===k.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[s.qOj],ngContentSelectors:Z,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(v,k){if(1&v&&(s.F$t(),s.TgZ(0,"label",0,1)(2,"span",2),s._UZ(3,"span",3)(4,"span",4),s.TgZ(5,"input",5,6),s.NdJ("change",function(xe){return k._onInputInteraction(xe)})("click",function(xe){return k._onInputClick(xe)}),s.qZA(),s.TgZ(7,"span",7),s._UZ(8,"span",8),s.qZA()(),s.TgZ(9,"span",9)(10,"span",10),s._uU(11,"\xa0"),s.qZA(),s.Hsn(12),s.qZA()()),2&v){const le=s.MAs(1);s.uIk("for",k.inputId),s.xp6(5),s.Q6J("id",k.inputId)("checked",k.checked)("disabled",k.disabled)("required",k.required),s.uIk("name",k.name)("value",k.value)("aria-label",k.ariaLabel)("aria-labelledby",k.ariaLabelledby)("aria-describedby",k.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",le)("matRippleDisabled",k._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.VKq(17,oe,k._noopAnimations?0:150)),s.xp6(2),s.ekj("mat-radio-label-before","before"==k.labelPosition)}},dependencies:[r.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}),_})(),ne=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[r.si,r.BQ,r.BQ]}),_})()},4385:(ze,ye,a)=>{a.d(ye,{LD:()=>qe,gD:()=>Je});var s=a(2561),r=a(6895),t=a(4650),D=a(3238),re=a(9549),T=a(7376),ge=a(2687),oe=a(445),Z=a(1281),B=a(5017),C=a(9521),L=a(4006),R=a(7579),N=a(9770),U=a(6451),K=a(8675),Q=a(3900),me=a(5698),Se=a(9300),we=a(4004),de=a(1884),ne=a(2722),_=a(7340);const M=["trigger"],v=["panel"];function k(Ae,E){if(1&Ae&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&Ae){const u=t.oxw();t.xp6(1),t.Oqu(u.placeholder)}}function le(Ae,E){if(1&Ae&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&Ae){const u=t.oxw(2);t.xp6(1),t.Oqu(u.triggerValue)}}function xe(Ae,E){1&Ae&&t.Hsn(0,0,["*ngSwitchCase","true"])}function Ce(Ae,E){if(1&Ae&&(t.TgZ(0,"span",9),t.YNc(1,le,2,1,"span",10),t.YNc(2,xe,1,0,"ng-content",11),t.qZA()),2&Ae){const u=t.oxw();t.Q6J("ngSwitch",!!u.customTrigger),t.xp6(2),t.Q6J("ngSwitchCase",!0)}}function Te(Ae,E){if(1&Ae){const u=t.EpF();t.TgZ(0,"div",13)(1,"div",14,15),t.NdJ("@transformPanel.done",function(e){t.CHM(u);const l=t.oxw();return t.KtG(l._panelDoneAnimatingStream.next(e.toState))})("keydown",function(e){t.CHM(u);const l=t.oxw();return t.KtG(l._handleKeydown(e))}),t.Hsn(3,1),t.qZA()()}if(2&Ae){const u=t.oxw();t.Q6J("@transformPanelWrap",void 0),t.xp6(1),t.Gre("mat-select-panel ",u._getPanelTheme(),""),t.Udp("transform-origin",u._transformOrigin)("font-size",u._triggerFontSize,"px"),t.Q6J("ngClass",u.panelClass)("@transformPanel",u.multiple?"showing-multiple":"showing"),t.uIk("id",u.id+"-panel")("aria-multiselectable",u.multiple)("aria-label",u.ariaLabel||null)("aria-labelledby",u._getPanelAriaLabelledby())}}const De=[[["mat-select-trigger"]],"*"],be=["mat-select-trigger","*"],_e={transformPanelWrap:(0,_.X$)("transformPanelWrap",[(0,_.eR)("* => void",(0,_.IO)("@transformPanel",[(0,_.pV)()],{optional:!0}))]),transformPanel:(0,_.X$)("transformPanel",[(0,_.SB)("void",(0,_.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,_.SB)("showing",(0,_.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,_.SB)("showing-multiple",(0,_.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,_.eR)("void => *",(0,_.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,_.eR)("* => void",(0,_.jt)("100ms 25ms linear",(0,_.oB)({opacity:0})))])};let F=0;const $=256,j=new t.OlP("mat-select-scroll-strategy"),ce=new t.OlP("MAT_SELECT_CONFIG"),Ee={provide:j,deps:[s.aV],useFactory:function te(Ae){return()=>Ae.scrollStrategies.reposition()}};class Pe{constructor(E,u){this.source=E,this.value=u}}const Ue=(0,D.Kr)((0,D.sb)((0,D.Id)((0,D.FD)(class{constructor(Ae,E,u,i,e){this._elementRef=Ae,this._defaultErrorStateMatcher=E,this._parentForm=u,this._parentFormGroup=i,this.ngControl=e,this.stateChanges=new R.x}})))),je=new t.OlP("MatSelectTrigger");let Xe=(()=>{class Ae extends Ue{constructor(u,i,e,l,f,S,I,q,ve,Me,Fe,Oe,Ne,Ye){super(f,l,I,q,Me),this._viewportRuler=u,this._changeDetectorRef=i,this._ngZone=e,this._dir=S,this._parentFormField=ve,this._liveAnnouncer=Ne,this._defaultOptions=Ye,this._panelOpen=!1,this._compareWith=(Ve,Ge)=>Ve===Ge,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new R.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new R.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 Ve=this.options;return Ve?Ve.changes.pipe((0,K.O)(Ve),(0,Q.w)(()=>(0,U.T)(...Ve.map(Ge=>Ge.onSelectionChange)))):this._ngZone.onStable.pipe((0,me.q)(1),(0,Q.w)(()=>this.optionSelectionChanges))}),this.openedChange=new t.vpe,this._openedStream=this.openedChange.pipe((0,Se.h)(Ve=>Ve),(0,we.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Se.h)(Ve=>!Ve),(0,we.U)(()=>{})),this.selectionChange=new t.vpe,this.valueChange=new t.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ye?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Ye.typeaheadDebounceInterval),this._scrollStrategyFactory=Oe,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Fe)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(u){this._placeholder=u,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.kI.required)??!1}set required(u){this._required=(0,Z.Ig)(u),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(u){this._multiple=(0,Z.Ig)(u)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(u){this._disableOptionCentering=(0,Z.Ig)(u)}get compareWith(){return this._compareWith}set compareWith(u){this._compareWith=u,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(u){this._assignValue(u)&&this._onChange(u)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(u){this._typeaheadDebounceInterval=(0,Z.su)(u)}get id(){return this._id}set id(u){this._id=u||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new B.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,de.x)(),(0,ne.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ne.R)(this._destroy)).subscribe(u=>{u.added.forEach(i=>i.select()),u.removed.forEach(i=>i.deselect())}),this.options.changes.pipe((0,K.O)(null),(0,ne.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const u=this._getTriggerAriaLabelledby(),i=this.ngControl;if(u!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=u,u?e.setAttribute("aria-labelledby",u):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(u){(u.disabled||u.userAriaDescribedBy)&&this.stateChanges.next(),u.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(u){this._assignValue(u)}registerOnChange(u){this._onChange=u}registerOnTouched(u){this._onTouched=u}setDisabledState(u){this.disabled=u,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 u=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&u.reverse(),u.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(u){this.disabled||(this.panelOpen?this._handleOpenKeydown(u):this._handleClosedKeydown(u))}_handleClosedKeydown(u){const i=u.keyCode,e=i===C.JH||i===C.LH||i===C.oh||i===C.SV,l=i===C.K5||i===C.L_,f=this._keyManager;if(!f.isTyping()&&l&&!(0,C.Vb)(u)||(this.multiple||u.altKey)&&e)u.preventDefault(),this.open();else if(!this.multiple){const S=this.selected;f.onKeydown(u);const I=this.selected;I&&S!==I&&this._liveAnnouncer.announce(I.viewValue,1e4)}}_handleOpenKeydown(u){const i=this._keyManager,e=u.keyCode,l=e===C.JH||e===C.LH,f=i.isTyping();if(l&&u.altKey)u.preventDefault(),this.close();else if(f||e!==C.K5&&e!==C.L_||!i.activeItem||(0,C.Vb)(u))if(!f&&this._multiple&&e===C.A&&u.ctrlKey){u.preventDefault();const S=this.options.some(I=>!I.disabled&&!I.selected);this.options.forEach(I=>{I.disabled||(S?I.select():I.deselect())})}else{const S=i.activeItemIndex;i.onKeydown(u),this._multiple&&l&&u.shiftKey&&i.activeItem&&i.activeItemIndex!==S&&i.activeItem._selectViaInteraction()}else u.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,me.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(u){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&u)Array.isArray(u),u.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(u);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(u){const i=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,u)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(u){return!!(u!==this._value||this._multiple&&Array.isArray(u))&&(this.options&&this._setSelectionByValue(u),this._value=u,!0)}_initKeyManager(){this._keyManager=new ge.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ne.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ne.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 u=(0,U.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ne.R)(u)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,U.T)(...this.options.map(i=>i._stateChanges)).pipe((0,ne.R)(u)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(u,i){const e=this._selectionModel.isSelected(u);null!=u.value||this._multiple?(e!==u.selected&&(u.selected?this._selectionModel.select(u):this._selectionModel.deselect(u)),i&&this._keyManager.setActiveItem(u),this.multiple&&(this._sortValues(),i&&this.focus())):(u.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(u.value)),e!==this._selectionModel.isSelected(u)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const u=this.options.toArray();this._selectionModel.sort((i,e)=>this.sortComparator?this.sortComparator(i,e,u):u.indexOf(i)-u.indexOf(e)),this.stateChanges.next()}}_propagateChanges(u){let i=null;i=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:u,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(u){this._elementRef.nativeElement.focus(u)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const u=this._parentFormField?.getLabelId();return this.ariaLabelledby?(u?u+" ":"")+this.ariaLabelledby:u}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const u=this._parentFormField?.getLabelId();let i=(u?u+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(u){this.openedChange.emit(u)}setDescribedByIds(u){u.length?this._elementRef.nativeElement.setAttribute("aria-describedby",u.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ae.\u0275fac=function(u){return new(u||Ae)(t.Y36(T.rL),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(D.rD),t.Y36(t.SBq),t.Y36(oe.Is,8),t.Y36(L.F,8),t.Y36(L.sg,8),t.Y36(re.G_,8),t.Y36(L.a5,10),t.$8M("tabindex"),t.Y36(j),t.Y36(ge.Kd),t.Y36(ce,8))},Ae.\u0275dir=t.lG2({type:Ae,viewQuery:function(u,i){if(1&u&&(t.Gf(M,5),t.Gf(v,5),t.Gf(s.pI,5)),2&u){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]}),Ae})(),Je=(()=>{class Ae extends Xe{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(u,i,e){const l=this._getItemHeight();return Math.min(Math.max(0,l*u-i+l/2),e)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ne.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,me.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(u){const i=(0,D.CB)(u,this.options,this.optionGroups),e=this._getItemHeight();this.panel.nativeElement.scrollTop=0===u&&1===i?0:(0,D.jH)((u+i)*e,e,this.panel.nativeElement.scrollTop,$)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(u){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(u)}_getChangeEvent(u){return new Pe(this,u)}_calculateOverlayOffsetX(){const u=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),e=this._isRtl(),l=this.multiple?56:32;let f;if(this.multiple)f=40;else if(this.disableOptionCentering)f=16;else{let q=this._selectionModel.selected[0]||this.options.first;f=q&&q.group?32:16}e||(f*=-1);const S=0-(u.left+f-(e?l:0)),I=u.right+f-i.width+(e?0:l);S>0?f+=S+8:I>0&&(f-=I+8),this._overlayDir.offsetX=Math.round(f),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(u,i,e){const l=this._getItemHeight(),f=(l-this._triggerRect.height)/2,S=Math.floor($/l);let I;return this.disableOptionCentering?0:(I=0===this._scrollTop?u*l:this._scrollTop===e?(u-(this._getItemCount()-S))*l+(l-(this._getItemCount()*l-$)%l):i-l/2,Math.round(-1*I-f))}_checkOverlayWithinViewport(u){const i=this._getItemHeight(),e=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,f=e.height-this._triggerRect.bottom-8,S=Math.abs(this._offsetY),q=Math.min(this._getItemCount()*i,$)-S-this._triggerRect.height;q>f?this._adjustPanelUp(q,f):S>l?this._adjustPanelDown(S,l,u):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(u,i){const e=Math.round(u-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(u,i,e){const l=Math.round(u-i);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=e)return this._scrollTop=e,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const u=this._getItemHeight(),i=this._getItemCount(),e=Math.min(i*u,$),f=i*u-e;let S;S=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),S+=(0,D.CB)(S,this.options,this.optionGroups);const I=e/2;this._scrollTop=this._calculateOverlayScroll(S,I,f),this._offsetY=this._calculateOverlayOffsetY(S,I,f),this._checkOverlayWithinViewport(f)}_getOriginBasedOnOption(){const u=this._getItemHeight(),i=(u-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+u/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ae.\u0275fac=function(){let E;return function(i){return(E||(E=t.n5z(Ae)))(i||Ae)}}(),Ae.\u0275cmp=t.Xpm({type:Ae,selectors:[["mat-select"]],contentQueries:function(u,i,e){if(1&u&&(t.Suo(e,je,5),t.Suo(e,D.ey,5),t.Suo(e,D.K7,5)),2&u){let l;t.iGM(l=t.CRH())&&(i.customTrigger=l.first),t.iGM(l=t.CRH())&&(i.options=l),t.iGM(l=t.CRH())&&(i.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(u,i){1&u&&t.NdJ("keydown",function(l){return i._handleKeydown(l)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&u&&(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:re.Eo,useExisting:Ae},{provide:D.HF,useExisting:Ae}]),t.qOj],ngContentSelectors:be,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(u,i){if(1&u&&(t.F$t(De),t.TgZ(0,"div",0,1),t.NdJ("click",function(){return i.toggle()}),t.TgZ(3,"div",2),t.YNc(4,k,2,1,"span",3),t.YNc(5,Ce,3,2,"span",4),t.qZA(),t.TgZ(6,"div",5),t._UZ(7,"div",6),t.qZA()(),t.YNc(8,Te,4,14,"ng-template",7),t.NdJ("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&u){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:[r.mk,r.RF,r.n9,r.ED,s.pI,s.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:[_e.transformPanelWrap,_e.transformPanel]},changeDetection:0}),Ae})(),qe=(()=>{class Ae{}return Ae.\u0275fac=function(u){return new(u||Ae)},Ae.\u0275mod=t.oAB({type:Ae}),Ae.\u0275inj=t.cJS({providers:[Ee],imports:[r.ez,s.U8,D.Ng,D.BQ,T.ZD,re.lN,D.Ng,D.BQ]}),Ae})()},266:(ze,ye,a)=>{a.d(ye,{AV:()=>_e,gM:()=>Te});var s=a(2561),r=a(2687),t=a(6895),D=a(4650),re=a(3238),T=a(7376),ge=a(445),oe=a(1281),Z=a(9521),B=a(2289),C=a(3353),L=a(4080),R=a(7579),N=a(2722),U=a(5698);a(7340);const Q=["tooltip"],we="tooltip-panel",de=(0,C.i$)({passive:!0}),M=new D.OlP("mat-tooltip-scroll-strategy"),k={provide:M,deps:[s.aV],useFactory:function v(Y){return()=>Y.scrollStrategies.reposition({scrollThrottle:20})}},le=new D.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function xe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ce=(()=>{class Y{constructor(F,$,ae,ke,ee,Le,P,j,te,ce,Ee,Pe){this._overlay=F,this._elementRef=$,this._scrollDispatcher=ae,this._viewContainerRef=ke,this._ngZone=ee,this._platform=Le,this._ariaDescriber=P,this._focusMonitor=j,this._dir=ce,this._defaultOptions=Ee,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 R.x,this._scrollStrategy=te,this._document=Pe,Ee&&(Ee.position&&(this.position=Ee.position),Ee.touchGestures&&(this.touchGestures=Ee.touchGestures)),ce.change.pipe((0,N.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(F){F!==this._position&&(this._position=F,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(F){this._disabled=(0,oe.Ig)(F),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(F){this._showDelay=(0,oe.su)(F)}get hideDelay(){return this._hideDelay}set hideDelay(F){this._hideDelay=(0,oe.su)(F),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(F){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=F?String(F).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(F){this._tooltipClass=F,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,N.R)(this._destroyed)).subscribe(F=>{F?"keyboard"===F&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const F=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([$,ae])=>{F.removeEventListener($,ae,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(F,this.message,"tooltip"),this._focusMonitor.stopMonitoring(F)}show(F=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const $=this._createOverlay();this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const ae=this._tooltipInstance=$.attach(this._portal).instance;ae._triggerElement=this._elementRef.nativeElement,ae._mouseLeaveHideDelay=this._hideDelay,ae.afterHidden().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ae.show(F)}hide(F=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(F)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const F=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),$=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(F);return $.positionChanges.pipe((0,N.R)(this._destroyed)).subscribe(ae=>{this._updateCurrentPositionClass(ae.connectionPair),this._tooltipInstance&&ae.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:$,panelClass:`${this._cssClassPrefix}-${we}`,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(ae=>{this._isTooltipVisible()&&ae.keyCode===Z.hY&&!(0,Z.Vb)(ae)&&(ae.preventDefault(),ae.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(F){const $=F.getConfig().positionStrategy,ae=this._getOrigin(),ke=this._getOverlayPosition();$.withPositions([this._addOffset({...ae.main,...ke.main}),this._addOffset({...ae.fallback,...ke.fallback})])}_addOffset(F){return F}_getOrigin(){const F=!this._dir||"ltr"==this._dir.value,$=this.position;let ae;"above"==$||"below"==$?ae={originX:"center",originY:"above"==$?"top":"bottom"}:"before"==$||"left"==$&&F||"right"==$&&!F?ae={originX:"start",originY:"center"}:("after"==$||"right"==$&&F||"left"==$&&!F)&&(ae={originX:"end",originY:"center"});const{x:ke,y:ee}=this._invertPosition(ae.originX,ae.originY);return{main:ae,fallback:{originX:ke,originY:ee}}}_getOverlayPosition(){const F=!this._dir||"ltr"==this._dir.value,$=this.position;let ae;"above"==$?ae={overlayX:"center",overlayY:"bottom"}:"below"==$?ae={overlayX:"center",overlayY:"top"}:"before"==$||"left"==$&&F||"right"==$&&!F?ae={overlayX:"end",overlayY:"center"}:("after"==$||"right"==$&&F||"left"==$&&!F)&&(ae={overlayX:"start",overlayY:"center"});const{x:ke,y:ee}=this._invertPosition(ae.overlayX,ae.overlayY);return{main:ae,fallback:{overlayX:ke,overlayY:ee}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,U.q)(1),(0,N.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(F){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=F,this._tooltipInstance._markForCheck())}_invertPosition(F,$){return"above"===this.position||"below"===this.position?"top"===$?$="bottom":"bottom"===$&&($="top"):"end"===F?F="start":"start"===F&&(F="end"),{x:F,y:$}}_updateCurrentPositionClass(F){const{overlayY:$,originX:ae,originY:ke}=F;let ee;if(ee="center"===$?this._dir&&"rtl"===this._dir.value?"end"===ae?"left":"right":"start"===ae?"left":"right":"bottom"===$&&"top"===ke?"above":"below",ee!==this._currentPosition){const Le=this._overlayRef;if(Le){const P=`${this._cssClassPrefix}-${we}-`;Le.removePanelClass(P+this._currentPosition),Le.addPanelClass(P+ee)}this._currentPosition=ee}}_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 F=[];if(this._platformSupportsMouseEvents())F.push(["mouseleave",$=>{const ae=$.relatedTarget;(!ae||!this._overlayRef?.overlayElement.contains(ae))&&this.hide()}],["wheel",$=>this._wheelListener($)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const $=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};F.push(["touchend",$],["touchcancel",$])}this._addListeners(F),this._passiveListeners.push(...F)}_addListeners(F){F.forEach(([$,ae])=>{this._elementRef.nativeElement.addEventListener($,ae,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(F){if(this._isTooltipVisible()){const $=this._document.elementFromPoint(F.clientX,F.clientY),ae=this._elementRef.nativeElement;$!==ae&&!ae.contains($)&&this.hide()}}_disableNativeGesturesIfNecessary(){const F=this.touchGestures;if("off"!==F){const $=this._elementRef.nativeElement,ae=$.style;("on"===F||"INPUT"!==$.nodeName&&"TEXTAREA"!==$.nodeName)&&(ae.userSelect=ae.msUserSelect=ae.webkitUserSelect=ae.MozUserSelect="none"),("on"===F||!$.draggable)&&(ae.webkitUserDrag="none"),ae.touchAction="none",ae.webkitTapHighlightColor="transparent"}}}return Y.\u0275fac=function(F){D.$Z()},Y.\u0275dir=D.lG2({type:Y,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Y})(),Te=(()=>{class Y extends Ce{constructor(F,$,ae,ke,ee,Le,P,j,te,ce,Ee,Pe){super(F,$,ae,ke,ee,Le,P,j,te,ce,Ee,Pe),this._tooltipComponent=be}}return Y.\u0275fac=function(F){return new(F||Y)(D.Y36(s.aV),D.Y36(D.SBq),D.Y36(T.mF),D.Y36(D.s_b),D.Y36(D.R0b),D.Y36(C.t4),D.Y36(r.$s),D.Y36(r.tE),D.Y36(M),D.Y36(ge.Is,8),D.Y36(le,8),D.Y36(t.K0))},Y.\u0275dir=D.lG2({type:Y,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[D.qOj]}),Y})(),De=(()=>{class Y{constructor(F,$){this._changeDetectorRef=F,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new R.x,this._animationsDisabled="NoopAnimations"===$}show(F){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},F)}hide(F){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},F)}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:F}){(!F||!this._triggerElement.contains(F))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:F}){(F===this._showAnimation||F===this._hideAnimation)&&this._finalizeAnimation(F===this._showAnimation)}_finalizeAnimation(F){F?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(F){const $=this._tooltip.nativeElement,ae=this._showAnimation,ke=this._hideAnimation;if($.classList.remove(F?ke:ae),$.classList.add(F?ae:ke),this._isVisible=F,F&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ee=getComputedStyle($);("0s"===ee.getPropertyValue("animation-duration")||"none"===ee.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}F&&this._onShow(),this._animationsDisabled&&($.classList.add("_mat-animation-noopable"),this._finalizeAnimation(F))}}return Y.\u0275fac=function(F){return new(F||Y)(D.Y36(D.sBO),D.Y36(D.QbO,8))},Y.\u0275dir=D.lG2({type:Y}),Y})(),be=(()=>{class Y extends De{constructor(F,$,ae){super(F,ae),this._breakpointObserver=$,this._isHandset=this._breakpointObserver.observe(B.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Y.\u0275fac=function(F){return new(F||Y)(D.Y36(D.sBO),D.Y36(B.Yg),D.Y36(D.QbO,8))},Y.\u0275cmp=D.Xpm({type:Y,selectors:[["mat-tooltip-component"]],viewQuery:function(F,$){if(1&F&&D.Gf(Q,7),2&F){let ae;D.iGM(ae=D.CRH())&&($._tooltip=ae.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(F,$){1&F&&D.NdJ("mouseleave",function(ke){return $._handleMouseLeave(ke)}),2&F&&D.Udp("zoom",$.isVisible()?1:null)},features:[D.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(F,$){if(1&F&&(D.TgZ(0,"div",0,1),D.NdJ("animationend",function(ke){return $._handleAnimationEnd(ke)}),D.ALo(2,"async"),D._uU(3),D.qZA()),2&F){let ae;D.ekj("mat-tooltip-handset",null==(ae=D.lcZ(2,4,$._isHandset))?null:ae.matches),D.Q6J("ngClass",$.tooltipClass),D.xp6(3),D.Oqu($.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}),Y})(),_e=(()=>{class Y{}return Y.\u0275fac=function(F){return new(F||Y)},Y.\u0275mod=D.oAB({type:Y}),Y.\u0275inj=D.cJS({providers:[k],imports:[r.rt,t.ez,s.U8,re.BQ,re.BQ,T.ZD]}),Y})()}}]);
|